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