import { ApiManagementModels } from "@azure/arm-apimanagement" ; import { AzureTreeItem } from "vscode-azureextensionui" ; import { IOperationTreeRoot } from "../../IOperationTreeRoot" ; import { BaseArmResourceEditor } from "./BaseArmResourceEditor" ; export class OperationResourceEditor extends BaseArmResourceEditor < IOperationTreeRoot > { public entityType : string = "Operation" ; constructor ( ) { super ( ) ; } public async getDataInternal ( context ) { return await context . root . client . apiOperation . get ( context . root . resourceGroupName , context . root . serviceName , context . root . apiName , context . root . opName ) ; } public async updateDataInternal ( context , payload ) { return await context . root . client . apiOperation . createOrUpdate ( context . root . resourceGroupName , context . root . serviceName , context . root . apiName , context . root . opName , payload ) ; } }