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