@azure/arm-networkcloud 1.2.0-beta.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +148 -0
- package/README.md +3 -3
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +308 -2
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +126 -18
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +2 -0
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +19 -1
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/networkCloud.js +2 -2
- package/dist/browser/networkCloud.js.map +1 -1
- package/dist/browser/operations/agentPools.js +17 -3
- package/dist/browser/operations/agentPools.js.map +1 -1
- package/dist/browser/operations/bareMetalMachineKeySets.js +17 -3
- package/dist/browser/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/browser/operations/bareMetalMachines.js +17 -3
- package/dist/browser/operations/bareMetalMachines.js.map +1 -1
- package/dist/browser/operations/bmcKeySets.js +17 -3
- package/dist/browser/operations/bmcKeySets.js.map +1 -1
- package/dist/browser/operations/cloudServicesNetworks.js +17 -3
- package/dist/browser/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/browser/operations/clusterManagers.js +17 -3
- package/dist/browser/operations/clusterManagers.js.map +1 -1
- package/dist/browser/operations/clusters.js +17 -3
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/consoles.js +17 -3
- package/dist/browser/operations/consoles.js.map +1 -1
- package/dist/browser/operations/kubernetesClusterFeatures.js +17 -3
- package/dist/browser/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/browser/operations/kubernetesClusters.js +17 -3
- package/dist/browser/operations/kubernetesClusters.js.map +1 -1
- package/dist/browser/operations/l2Networks.js +17 -3
- package/dist/browser/operations/l2Networks.js.map +1 -1
- package/dist/browser/operations/l3Networks.js +17 -3
- package/dist/browser/operations/l3Networks.js.map +1 -1
- package/dist/browser/operations/metricsConfigurations.js +17 -3
- package/dist/browser/operations/metricsConfigurations.js.map +1 -1
- package/dist/browser/operations/racks.js +17 -3
- package/dist/browser/operations/racks.js.map +1 -1
- package/dist/browser/operations/storageAppliances.js +17 -3
- package/dist/browser/operations/storageAppliances.js.map +1 -1
- package/dist/browser/operations/trunkedNetworks.js +17 -3
- package/dist/browser/operations/trunkedNetworks.js.map +1 -1
- package/dist/browser/operations/virtualMachines.js +17 -3
- package/dist/browser/operations/virtualMachines.js.map +1 -1
- package/dist/browser/operations/volumes.js +17 -3
- package/dist/browser/operations/volumes.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +308 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +126 -18
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +2 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +21 -3
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/networkCloud.js +2 -2
- package/dist/commonjs/networkCloud.js.map +1 -1
- package/dist/commonjs/operations/agentPools.js +17 -3
- package/dist/commonjs/operations/agentPools.js.map +1 -1
- package/dist/commonjs/operations/bareMetalMachineKeySets.js +17 -3
- package/dist/commonjs/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/commonjs/operations/bareMetalMachines.js +17 -3
- package/dist/commonjs/operations/bareMetalMachines.js.map +1 -1
- package/dist/commonjs/operations/bmcKeySets.js +17 -3
- package/dist/commonjs/operations/bmcKeySets.js.map +1 -1
- package/dist/commonjs/operations/cloudServicesNetworks.js +17 -3
- package/dist/commonjs/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/commonjs/operations/clusterManagers.js +17 -3
- package/dist/commonjs/operations/clusterManagers.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +17 -3
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/consoles.js +17 -3
- package/dist/commonjs/operations/consoles.js.map +1 -1
- package/dist/commonjs/operations/kubernetesClusterFeatures.js +17 -3
- package/dist/commonjs/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/commonjs/operations/kubernetesClusters.js +17 -3
- package/dist/commonjs/operations/kubernetesClusters.js.map +1 -1
- package/dist/commonjs/operations/l2Networks.js +17 -3
- package/dist/commonjs/operations/l2Networks.js.map +1 -1
- package/dist/commonjs/operations/l3Networks.js +17 -3
- package/dist/commonjs/operations/l3Networks.js.map +1 -1
- package/dist/commonjs/operations/metricsConfigurations.js +17 -3
- package/dist/commonjs/operations/metricsConfigurations.js.map +1 -1
- package/dist/commonjs/operations/racks.js +17 -3
- package/dist/commonjs/operations/racks.js.map +1 -1
- package/dist/commonjs/operations/storageAppliances.js +17 -3
- package/dist/commonjs/operations/storageAppliances.js.map +1 -1
- package/dist/commonjs/operations/trunkedNetworks.js +17 -3
- package/dist/commonjs/operations/trunkedNetworks.js.map +1 -1
- package/dist/commonjs/operations/virtualMachines.js +17 -3
- package/dist/commonjs/operations/virtualMachines.js.map +1 -1
- package/dist/commonjs/operations/volumes.js +17 -3
- package/dist/commonjs/operations/volumes.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +308 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +126 -18
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +2 -0
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +19 -1
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/networkCloud.js +2 -2
- package/dist/esm/networkCloud.js.map +1 -1
- package/dist/esm/operations/agentPools.js +17 -3
- package/dist/esm/operations/agentPools.js.map +1 -1
- package/dist/esm/operations/bareMetalMachineKeySets.js +17 -3
- package/dist/esm/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/esm/operations/bareMetalMachines.js +17 -3
- package/dist/esm/operations/bareMetalMachines.js.map +1 -1
- package/dist/esm/operations/bmcKeySets.js +17 -3
- package/dist/esm/operations/bmcKeySets.js.map +1 -1
- package/dist/esm/operations/cloudServicesNetworks.js +17 -3
- package/dist/esm/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/esm/operations/clusterManagers.js +17 -3
- package/dist/esm/operations/clusterManagers.js.map +1 -1
- package/dist/esm/operations/clusters.js +17 -3
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/consoles.js +17 -3
- package/dist/esm/operations/consoles.js.map +1 -1
- package/dist/esm/operations/kubernetesClusterFeatures.js +17 -3
- package/dist/esm/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/esm/operations/kubernetesClusters.js +17 -3
- package/dist/esm/operations/kubernetesClusters.js.map +1 -1
- package/dist/esm/operations/l2Networks.js +17 -3
- package/dist/esm/operations/l2Networks.js.map +1 -1
- package/dist/esm/operations/l3Networks.js +17 -3
- package/dist/esm/operations/l3Networks.js.map +1 -1
- package/dist/esm/operations/metricsConfigurations.js +17 -3
- package/dist/esm/operations/metricsConfigurations.js.map +1 -1
- package/dist/esm/operations/racks.js +17 -3
- package/dist/esm/operations/racks.js.map +1 -1
- package/dist/esm/operations/storageAppliances.js +17 -3
- package/dist/esm/operations/storageAppliances.js.map +1 -1
- package/dist/esm/operations/trunkedNetworks.js +17 -3
- package/dist/esm/operations/trunkedNetworks.js.map +1 -1
- package/dist/esm/operations/virtualMachines.js +17 -3
- package/dist/esm/operations/virtualMachines.js.map +1 -1
- package/dist/esm/operations/volumes.js +17 -3
- package/dist/esm/operations/volumes.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +308 -2
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +126 -18
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +2 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +19 -1
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/networkCloud.js +2 -2
- package/dist/react-native/networkCloud.js.map +1 -1
- package/dist/react-native/operations/agentPools.js +17 -3
- package/dist/react-native/operations/agentPools.js.map +1 -1
- package/dist/react-native/operations/bareMetalMachineKeySets.js +17 -3
- package/dist/react-native/operations/bareMetalMachineKeySets.js.map +1 -1
- package/dist/react-native/operations/bareMetalMachines.js +17 -3
- package/dist/react-native/operations/bareMetalMachines.js.map +1 -1
- package/dist/react-native/operations/bmcKeySets.js +17 -3
- package/dist/react-native/operations/bmcKeySets.js.map +1 -1
- package/dist/react-native/operations/cloudServicesNetworks.js +17 -3
- package/dist/react-native/operations/cloudServicesNetworks.js.map +1 -1
- package/dist/react-native/operations/clusterManagers.js +17 -3
- package/dist/react-native/operations/clusterManagers.js.map +1 -1
- package/dist/react-native/operations/clusters.js +17 -3
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/consoles.js +17 -3
- package/dist/react-native/operations/consoles.js.map +1 -1
- package/dist/react-native/operations/kubernetesClusterFeatures.js +17 -3
- package/dist/react-native/operations/kubernetesClusterFeatures.js.map +1 -1
- package/dist/react-native/operations/kubernetesClusters.js +17 -3
- package/dist/react-native/operations/kubernetesClusters.js.map +1 -1
- package/dist/react-native/operations/l2Networks.js +17 -3
- package/dist/react-native/operations/l2Networks.js.map +1 -1
- package/dist/react-native/operations/l3Networks.js +17 -3
- package/dist/react-native/operations/l3Networks.js.map +1 -1
- package/dist/react-native/operations/metricsConfigurations.js +17 -3
- package/dist/react-native/operations/metricsConfigurations.js.map +1 -1
- package/dist/react-native/operations/racks.js +17 -3
- package/dist/react-native/operations/racks.js.map +1 -1
- package/dist/react-native/operations/storageAppliances.js +17 -3
- package/dist/react-native/operations/storageAppliances.js.map +1 -1
- package/dist/react-native/operations/trunkedNetworks.js +17 -3
- package/dist/react-native/operations/trunkedNetworks.js.map +1 -1
- package/dist/react-native/operations/virtualMachines.js +17 -3
- package/dist/react-native/operations/virtualMachines.js.map +1 -1
- package/dist/react-native/operations/volumes.js +17 -3
- package/dist/react-native/operations/volumes.js.map +1 -1
- package/package.json +33 -44
- package/review/arm-networkcloud.api.md +126 -0
|
@@ -664,7 +664,12 @@ const createOrUpdateOperationSpec = {
|
|
|
664
664
|
Parameters.resourceGroupName,
|
|
665
665
|
Parameters.clusterName,
|
|
666
666
|
],
|
|
667
|
-
headerParameters: [
|
|
667
|
+
headerParameters: [
|
|
668
|
+
Parameters.accept,
|
|
669
|
+
Parameters.contentType,
|
|
670
|
+
Parameters.ifMatch,
|
|
671
|
+
Parameters.ifNoneMatch,
|
|
672
|
+
],
|
|
668
673
|
mediaType: "json",
|
|
669
674
|
serializer,
|
|
670
675
|
};
|
|
@@ -695,7 +700,11 @@ const deleteOperationSpec = {
|
|
|
695
700
|
Parameters.resourceGroupName,
|
|
696
701
|
Parameters.clusterName,
|
|
697
702
|
],
|
|
698
|
-
headerParameters: [
|
|
703
|
+
headerParameters: [
|
|
704
|
+
Parameters.accept,
|
|
705
|
+
Parameters.ifMatch,
|
|
706
|
+
Parameters.ifNoneMatch,
|
|
707
|
+
],
|
|
699
708
|
serializer,
|
|
700
709
|
};
|
|
701
710
|
const updateOperationSpec = {
|
|
@@ -726,7 +735,12 @@ const updateOperationSpec = {
|
|
|
726
735
|
Parameters.resourceGroupName,
|
|
727
736
|
Parameters.clusterName,
|
|
728
737
|
],
|
|
729
|
-
headerParameters: [
|
|
738
|
+
headerParameters: [
|
|
739
|
+
Parameters.accept,
|
|
740
|
+
Parameters.contentType,
|
|
741
|
+
Parameters.ifMatch,
|
|
742
|
+
Parameters.ifNoneMatch,
|
|
743
|
+
],
|
|
730
744
|
mediaType: "json",
|
|
731
745
|
serializer,
|
|
732
746
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clusters.js","sourceRoot":"","sources":["../../../src/operations/clusters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA+B9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CA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AQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Clusters } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Cluster,\n ClustersListBySubscriptionNextOptionalParams,\n ClustersListBySubscriptionOptionalParams,\n ClustersListBySubscriptionResponse,\n ClustersListByResourceGroupNextOptionalParams,\n ClustersListByResourceGroupOptionalParams,\n ClustersListByResourceGroupResponse,\n ClustersGetOptionalParams,\n ClustersGetResponse,\n ClustersCreateOrUpdateOptionalParams,\n ClustersCreateOrUpdateResponse,\n ClustersDeleteOptionalParams,\n ClustersDeleteResponse,\n ClustersUpdateOptionalParams,\n ClustersUpdateResponse,\n ClusterContinueUpdateVersionParameters,\n ClustersContinueUpdateVersionOptionalParams,\n ClustersContinueUpdateVersionResponse,\n ClustersDeployOptionalParams,\n ClustersDeployResponse,\n ClustersScanRuntimeOptionalParams,\n ClustersScanRuntimeResponse,\n ClusterUpdateVersionParameters,\n ClustersUpdateVersionOptionalParams,\n ClustersUpdateVersionResponse,\n ClustersListBySubscriptionNextResponse,\n ClustersListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Clusters operations. */\nexport class ClustersImpl implements Clusters {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class Clusters class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of clusters in the provided subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ClustersListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: ClustersListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Cluster[]> {\n let result: ClustersListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ClustersListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get a list of clusters in the provided resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Cluster[]> {\n let result: ClustersListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of clusters in the provided subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ClustersListBySubscriptionOptionalParams,\n ): Promise<ClustersListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Get a list of clusters in the provided resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ): Promise<ClustersListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersGetOptionalParams,\n ): Promise<ClustersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new cluster or update the properties of the cluster if it exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n clusterParameters: Cluster,\n options?: ClustersCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersCreateOrUpdateResponse>,\n ClustersCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, clusterParameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersCreateOrUpdateResponse,\n OperationState<ClustersCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new cluster or update the properties of the cluster if it exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n clusterParameters: Cluster,\n options?: ClustersCreateOrUpdateOptionalParams,\n ): Promise<ClustersCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n clusterParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersDeleteResponse>,\n ClustersDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersDeleteResponse,\n OperationState<ClustersDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ): Promise<ClustersDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch the properties of the provided cluster, or update the tags associated with the cluster.\n * Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersUpdateResponse>,\n ClustersUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersUpdateResponse,\n OperationState<ClustersUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch the properties of the provided cluster, or update the tags associated with the cluster.\n * Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersUpdateOptionalParams,\n ): Promise<ClustersUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Trigger the continuation of an update for a cluster with a matching update strategy that has paused\n * after completing a segment of the update.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterContinueUpdateVersionParameters The request body.\n * @param options The options parameters.\n */\n async beginContinueUpdateVersion(\n resourceGroupName: string,\n clusterName: string,\n clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters,\n options?: ClustersContinueUpdateVersionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersContinueUpdateVersionResponse>,\n ClustersContinueUpdateVersionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersContinueUpdateVersionResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n clusterContinueUpdateVersionParameters,\n options,\n },\n spec: continueUpdateVersionOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersContinueUpdateVersionResponse,\n OperationState<ClustersContinueUpdateVersionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Trigger the continuation of an update for a cluster with a matching update strategy that has paused\n * after completing a segment of the update.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterContinueUpdateVersionParameters The request body.\n * @param options The options parameters.\n */\n async beginContinueUpdateVersionAndWait(\n resourceGroupName: string,\n clusterName: string,\n clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters,\n options?: ClustersContinueUpdateVersionOptionalParams,\n ): Promise<ClustersContinueUpdateVersionResponse> {\n const poller = await this.beginContinueUpdateVersion(\n resourceGroupName,\n clusterName,\n clusterContinueUpdateVersionParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deploy the cluster using the rack configuration provided during creation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginDeploy(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeployOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersDeployResponse>,\n ClustersDeployResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersDeployResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, options },\n spec: deployOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersDeployResponse,\n OperationState<ClustersDeployResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deploy the cluster using the rack configuration provided during creation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginDeployAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeployOptionalParams,\n ): Promise<ClustersDeployResponse> {\n const poller = await this.beginDeploy(\n resourceGroupName,\n clusterName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in\n * accordance with the cluster configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginScanRuntime(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersScanRuntimeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersScanRuntimeResponse>,\n ClustersScanRuntimeResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersScanRuntimeResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, options },\n spec: scanRuntimeOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersScanRuntimeResponse,\n OperationState<ClustersScanRuntimeResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in\n * accordance with the cluster configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginScanRuntimeAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersScanRuntimeOptionalParams,\n ): Promise<ClustersScanRuntimeResponse> {\n const poller = await this.beginScanRuntime(\n resourceGroupName,\n clusterName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update the version of the provided cluster to one of the available supported versions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterUpdateVersionParameters The request body.\n * @param options The options parameters.\n */\n async beginUpdateVersion(\n resourceGroupName: string,\n clusterName: string,\n clusterUpdateVersionParameters: ClusterUpdateVersionParameters,\n options?: ClustersUpdateVersionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersUpdateVersionResponse>,\n ClustersUpdateVersionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersUpdateVersionResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n clusterUpdateVersionParameters,\n options,\n },\n spec: updateVersionOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersUpdateVersionResponse,\n OperationState<ClustersUpdateVersionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the version of the provided cluster to one of the available supported versions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterUpdateVersionParameters The request body.\n * @param options The options parameters.\n */\n async beginUpdateVersionAndWait(\n resourceGroupName: string,\n clusterName: string,\n clusterUpdateVersionParameters: ClusterUpdateVersionParameters,\n options?: ClustersUpdateVersionOptionalParams,\n ): Promise<ClustersUpdateVersionResponse> {\n const poller = await this.beginUpdateVersion(\n resourceGroupName,\n clusterName,\n clusterUpdateVersionParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: ClustersListBySubscriptionNextOptionalParams,\n ): Promise<ClustersListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ClustersListByResourceGroupNextOptionalParams,\n ): Promise<ClustersListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster,\n },\n 201: {\n bodyMapper: Mappers.Cluster,\n },\n 202: {\n bodyMapper: Mappers.Cluster,\n },\n 204: {\n bodyMapper: Mappers.Cluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster,\n },\n 201: {\n bodyMapper: Mappers.Cluster,\n },\n 202: {\n bodyMapper: Mappers.Cluster,\n },\n 204: {\n bodyMapper: Mappers.Cluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst continueUpdateVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/continueUpdateVersion\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterContinueUpdateVersionParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deployOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/deploy\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterDeployParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst scanRuntimeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/scanRuntime\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterScanRuntimeParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/updateVersion\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterUpdateVersionParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"clusters.js","sourceRoot":"","sources":["../../../src/operations/clusters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA+B9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MA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SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Clusters } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Cluster,\n ClustersListBySubscriptionNextOptionalParams,\n ClustersListBySubscriptionOptionalParams,\n ClustersListBySubscriptionResponse,\n ClustersListByResourceGroupNextOptionalParams,\n ClustersListByResourceGroupOptionalParams,\n ClustersListByResourceGroupResponse,\n ClustersGetOptionalParams,\n ClustersGetResponse,\n ClustersCreateOrUpdateOptionalParams,\n ClustersCreateOrUpdateResponse,\n ClustersDeleteOptionalParams,\n ClustersDeleteResponse,\n ClustersUpdateOptionalParams,\n ClustersUpdateResponse,\n ClusterContinueUpdateVersionParameters,\n ClustersContinueUpdateVersionOptionalParams,\n ClustersContinueUpdateVersionResponse,\n ClustersDeployOptionalParams,\n ClustersDeployResponse,\n ClustersScanRuntimeOptionalParams,\n ClustersScanRuntimeResponse,\n ClusterUpdateVersionParameters,\n ClustersUpdateVersionOptionalParams,\n ClustersUpdateVersionResponse,\n ClustersListBySubscriptionNextResponse,\n ClustersListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Clusters operations. */\nexport class ClustersImpl implements Clusters {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class Clusters class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of clusters in the provided subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ClustersListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: ClustersListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Cluster[]> {\n let result: ClustersListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ClustersListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get a list of clusters in the provided resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Cluster[]> {\n let result: ClustersListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of clusters in the provided subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ClustersListBySubscriptionOptionalParams,\n ): Promise<ClustersListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Get a list of clusters in the provided resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ): Promise<ClustersListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersGetOptionalParams,\n ): Promise<ClustersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new cluster or update the properties of the cluster if it exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n clusterParameters: Cluster,\n options?: ClustersCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersCreateOrUpdateResponse>,\n ClustersCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, clusterParameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersCreateOrUpdateResponse,\n OperationState<ClustersCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new cluster or update the properties of the cluster if it exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n clusterParameters: Cluster,\n options?: ClustersCreateOrUpdateOptionalParams,\n ): Promise<ClustersCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n clusterParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersDeleteResponse>,\n ClustersDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersDeleteResponse,\n OperationState<ClustersDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ): Promise<ClustersDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch the properties of the provided cluster, or update the tags associated with the cluster.\n * Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersUpdateResponse>,\n ClustersUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersUpdateResponse,\n OperationState<ClustersUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch the properties of the provided cluster, or update the tags associated with the cluster.\n * Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersUpdateOptionalParams,\n ): Promise<ClustersUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Trigger the continuation of an update for a cluster with a matching update strategy that has paused\n * after completing a segment of the update.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterContinueUpdateVersionParameters The request body.\n * @param options The options parameters.\n */\n async beginContinueUpdateVersion(\n resourceGroupName: string,\n clusterName: string,\n clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters,\n options?: ClustersContinueUpdateVersionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersContinueUpdateVersionResponse>,\n ClustersContinueUpdateVersionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersContinueUpdateVersionResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n clusterContinueUpdateVersionParameters,\n options,\n },\n spec: continueUpdateVersionOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersContinueUpdateVersionResponse,\n OperationState<ClustersContinueUpdateVersionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Trigger the continuation of an update for a cluster with a matching update strategy that has paused\n * after completing a segment of the update.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterContinueUpdateVersionParameters The request body.\n * @param options The options parameters.\n */\n async beginContinueUpdateVersionAndWait(\n resourceGroupName: string,\n clusterName: string,\n clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters,\n options?: ClustersContinueUpdateVersionOptionalParams,\n ): Promise<ClustersContinueUpdateVersionResponse> {\n const poller = await this.beginContinueUpdateVersion(\n resourceGroupName,\n clusterName,\n clusterContinueUpdateVersionParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deploy the cluster using the rack configuration provided during creation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginDeploy(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeployOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersDeployResponse>,\n ClustersDeployResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersDeployResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, options },\n spec: deployOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersDeployResponse,\n OperationState<ClustersDeployResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deploy the cluster using the rack configuration provided during creation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginDeployAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeployOptionalParams,\n ): Promise<ClustersDeployResponse> {\n const poller = await this.beginDeploy(\n resourceGroupName,\n clusterName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in\n * accordance with the cluster configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginScanRuntime(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersScanRuntimeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersScanRuntimeResponse>,\n ClustersScanRuntimeResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersScanRuntimeResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, options },\n spec: scanRuntimeOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersScanRuntimeResponse,\n OperationState<ClustersScanRuntimeResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in\n * accordance with the cluster configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n async beginScanRuntimeAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersScanRuntimeOptionalParams,\n ): Promise<ClustersScanRuntimeResponse> {\n const poller = await this.beginScanRuntime(\n resourceGroupName,\n clusterName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update the version of the provided cluster to one of the available supported versions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterUpdateVersionParameters The request body.\n * @param options The options parameters.\n */\n async beginUpdateVersion(\n resourceGroupName: string,\n clusterName: string,\n clusterUpdateVersionParameters: ClusterUpdateVersionParameters,\n options?: ClustersUpdateVersionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ClustersUpdateVersionResponse>,\n ClustersUpdateVersionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ClustersUpdateVersionResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n clusterUpdateVersionParameters,\n options,\n },\n spec: updateVersionOperationSpec,\n });\n const poller = await createHttpPoller<\n ClustersUpdateVersionResponse,\n OperationState<ClustersUpdateVersionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the version of the provided cluster to one of the available supported versions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param clusterUpdateVersionParameters The request body.\n * @param options The options parameters.\n */\n async beginUpdateVersionAndWait(\n resourceGroupName: string,\n clusterName: string,\n clusterUpdateVersionParameters: ClusterUpdateVersionParameters,\n options?: ClustersUpdateVersionOptionalParams,\n ): Promise<ClustersUpdateVersionResponse> {\n const poller = await this.beginUpdateVersion(\n resourceGroupName,\n clusterName,\n clusterUpdateVersionParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: ClustersListBySubscriptionNextOptionalParams,\n ): Promise<ClustersListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ClustersListByResourceGroupNextOptionalParams,\n ): Promise<ClustersListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster,\n },\n 201: {\n bodyMapper: Mappers.Cluster,\n },\n 202: {\n bodyMapper: Mappers.Cluster,\n },\n 204: {\n bodyMapper: Mappers.Cluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster,\n },\n 201: {\n bodyMapper: Mappers.Cluster,\n },\n 202: {\n bodyMapper: Mappers.Cluster,\n },\n 204: {\n bodyMapper: Mappers.Cluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst continueUpdateVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/continueUpdateVersion\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterContinueUpdateVersionParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deployOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/deploy\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterDeployParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst scanRuntimeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/scanRuntime\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterScanRuntimeParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/updateVersion\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.clusterUpdateVersionParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -367,7 +367,12 @@ const createOrUpdateOperationSpec = {
|
|
|
367
367
|
Parameters.virtualMachineName,
|
|
368
368
|
Parameters.consoleName,
|
|
369
369
|
],
|
|
370
|
-
headerParameters: [
|
|
370
|
+
headerParameters: [
|
|
371
|
+
Parameters.accept,
|
|
372
|
+
Parameters.contentType,
|
|
373
|
+
Parameters.ifMatch,
|
|
374
|
+
Parameters.ifNoneMatch,
|
|
375
|
+
],
|
|
371
376
|
mediaType: "json",
|
|
372
377
|
serializer,
|
|
373
378
|
};
|
|
@@ -399,7 +404,11 @@ const deleteOperationSpec = {
|
|
|
399
404
|
Parameters.virtualMachineName,
|
|
400
405
|
Parameters.consoleName,
|
|
401
406
|
],
|
|
402
|
-
headerParameters: [
|
|
407
|
+
headerParameters: [
|
|
408
|
+
Parameters.accept,
|
|
409
|
+
Parameters.ifMatch,
|
|
410
|
+
Parameters.ifNoneMatch,
|
|
411
|
+
],
|
|
403
412
|
serializer,
|
|
404
413
|
};
|
|
405
414
|
const updateOperationSpec = {
|
|
@@ -431,7 +440,12 @@ const updateOperationSpec = {
|
|
|
431
440
|
Parameters.virtualMachineName,
|
|
432
441
|
Parameters.consoleName,
|
|
433
442
|
],
|
|
434
|
-
headerParameters: [
|
|
443
|
+
headerParameters: [
|
|
444
|
+
Parameters.accept,
|
|
445
|
+
Parameters.contentType,
|
|
446
|
+
Parameters.ifMatch,
|
|
447
|
+
Parameters.ifNoneMatch,
|
|
448
|
+
],
|
|
435
449
|
mediaType: "json",
|
|
436
450
|
serializer,
|
|
437
451
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoles.js","sourceRoot":"","sources":["../../../src/operations/consoles.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,oBAAoB,CACzB,iBAAyB,EACzB,kBAA0B,EAC1B,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,6BAA6B,CAC7C,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,8BAA8B,CACxC,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,8BAA8B,CAC3C,iBAAyB,EACzB,kBAA0B,EAC1B,OAAoD,EACpD,QAAuB;;YAEvB,IAAI,MAA4C,CAAC;YACjD,IAAI,iBAAiB,G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AAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,uBAAuB;IAC/C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Consoles } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Console,\n ConsolesListByVirtualMachineNextOptionalParams,\n ConsolesListByVirtualMachineOptionalParams,\n ConsolesListByVirtualMachineResponse,\n ConsolesGetOptionalParams,\n ConsolesGetResponse,\n ConsolesCreateOrUpdateOptionalParams,\n ConsolesCreateOrUpdateResponse,\n ConsolesDeleteOptionalParams,\n ConsolesDeleteResponse,\n ConsolesUpdateOptionalParams,\n ConsolesUpdateResponse,\n ConsolesListByVirtualMachineNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Consoles operations. */\nexport class ConsolesImpl implements Consoles {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class Consoles class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of consoles for the provided virtual machine.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param options The options parameters.\n */\n public listByVirtualMachine(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): PagedAsyncIterableIterator<Console> {\n const iter = this.listByVirtualMachinePagingAll(\n resourceGroupName,\n virtualMachineName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByVirtualMachinePagingPage(\n resourceGroupName,\n virtualMachineName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByVirtualMachinePagingPage(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Console[]> {\n let result: ConsolesListByVirtualMachineResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByVirtualMachine(\n resourceGroupName,\n virtualMachineName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByVirtualMachineNext(\n resourceGroupName,\n virtualMachineName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByVirtualMachinePagingAll(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): AsyncIterableIterator<Console> {\n for await (const page of this.listByVirtualMachinePagingPage(\n resourceGroupName,\n virtualMachineName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of consoles for the provided virtual machine.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param options The options parameters.\n */\n private _listByVirtualMachine(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): Promise<ConsolesListByVirtualMachineResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, options },\n listByVirtualMachineOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesGetOptionalParams,\n ): Promise<ConsolesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, consoleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new virtual machine console or update the properties of the existing virtual machine\n * console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param consoleParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n consoleParameters: Console,\n options?: ConsolesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesCreateOrUpdateResponse>,\n ConsolesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n virtualMachineName,\n consoleName,\n consoleParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesCreateOrUpdateResponse,\n OperationState<ConsolesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new virtual machine console or update the properties of the existing virtual machine\n * console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param consoleParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n consoleParameters: Console,\n options?: ConsolesCreateOrUpdateOptionalParams,\n ): Promise<ConsolesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n consoleParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesDeleteResponse>,\n ConsolesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, virtualMachineName, consoleName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesDeleteResponse,\n OperationState<ConsolesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesDeleteOptionalParams,\n ): Promise<ConsolesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch the properties of the provided virtual machine console, or update the tags associated with the\n * virtual machine console. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesUpdateResponse>,\n ConsolesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, virtualMachineName, consoleName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesUpdateResponse,\n OperationState<ConsolesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch the properties of the provided virtual machine console, or update the tags associated with the\n * virtual machine console. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesUpdateOptionalParams,\n ): Promise<ConsolesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByVirtualMachineNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param nextLink The nextLink from the previous successful call to the ListByVirtualMachine method.\n * @param options The options parameters.\n */\n private _listByVirtualMachineNext(\n resourceGroupName: string,\n virtualMachineName: string,\n nextLink: string,\n options?: ConsolesListByVirtualMachineNextOptionalParams,\n ): Promise<ConsolesListByVirtualMachineNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, nextLink, options },\n listByVirtualMachineNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByVirtualMachineOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConsoleList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n 201: {\n bodyMapper: Mappers.Console,\n },\n 202: {\n bodyMapper: Mappers.Console,\n },\n 204: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.consoleParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n 201: {\n bodyMapper: Mappers.Console,\n },\n 202: {\n bodyMapper: Mappers.Console,\n },\n 204: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.consoleUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConsoleList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"consoles.js","sourceRoot":"","sources":["../../../src/operations/consoles.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,oBAAoB,CACzB,iBAAyB,EACzB,kBAA0B,EAC1B,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,6BAA6B,CAC7C,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,8BAA8B,CACxC,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,8BAA8B,CAC3C,iBAAyB,EACzB,kBAA0B,EAC1B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C5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Consoles } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Console,\n ConsolesListByVirtualMachineNextOptionalParams,\n ConsolesListByVirtualMachineOptionalParams,\n ConsolesListByVirtualMachineResponse,\n ConsolesGetOptionalParams,\n ConsolesGetResponse,\n ConsolesCreateOrUpdateOptionalParams,\n ConsolesCreateOrUpdateResponse,\n ConsolesDeleteOptionalParams,\n ConsolesDeleteResponse,\n ConsolesUpdateOptionalParams,\n ConsolesUpdateResponse,\n ConsolesListByVirtualMachineNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Consoles operations. */\nexport class ConsolesImpl implements Consoles {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class Consoles class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of consoles for the provided virtual machine.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param options The options parameters.\n */\n public listByVirtualMachine(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): PagedAsyncIterableIterator<Console> {\n const iter = this.listByVirtualMachinePagingAll(\n resourceGroupName,\n virtualMachineName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByVirtualMachinePagingPage(\n resourceGroupName,\n virtualMachineName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByVirtualMachinePagingPage(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Console[]> {\n let result: ConsolesListByVirtualMachineResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByVirtualMachine(\n resourceGroupName,\n virtualMachineName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByVirtualMachineNext(\n resourceGroupName,\n virtualMachineName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByVirtualMachinePagingAll(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): AsyncIterableIterator<Console> {\n for await (const page of this.listByVirtualMachinePagingPage(\n resourceGroupName,\n virtualMachineName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of consoles for the provided virtual machine.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param options The options parameters.\n */\n private _listByVirtualMachine(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ConsolesListByVirtualMachineOptionalParams,\n ): Promise<ConsolesListByVirtualMachineResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, options },\n listByVirtualMachineOperationSpec,\n );\n }\n\n /**\n * Get properties of the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesGetOptionalParams,\n ): Promise<ConsolesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, consoleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new virtual machine console or update the properties of the existing virtual machine\n * console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param consoleParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n consoleParameters: Console,\n options?: ConsolesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesCreateOrUpdateResponse>,\n ConsolesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n virtualMachineName,\n consoleName,\n consoleParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesCreateOrUpdateResponse,\n OperationState<ConsolesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new virtual machine console or update the properties of the existing virtual machine\n * console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param consoleParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n consoleParameters: Console,\n options?: ConsolesCreateOrUpdateOptionalParams,\n ): Promise<ConsolesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n consoleParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesDeleteResponse>,\n ConsolesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, virtualMachineName, consoleName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesDeleteResponse,\n OperationState<ConsolesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the provided virtual machine console.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesDeleteOptionalParams,\n ): Promise<ConsolesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch the properties of the provided virtual machine console, or update the tags associated with the\n * virtual machine console. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConsolesUpdateResponse>,\n ConsolesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConsolesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, virtualMachineName, consoleName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ConsolesUpdateResponse,\n OperationState<ConsolesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch the properties of the provided virtual machine console, or update the tags associated with the\n * virtual machine console. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param consoleName The name of the virtual machine console.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n virtualMachineName: string,\n consoleName: string,\n options?: ConsolesUpdateOptionalParams,\n ): Promise<ConsolesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n virtualMachineName,\n consoleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByVirtualMachineNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param virtualMachineName The name of the virtual machine.\n * @param nextLink The nextLink from the previous successful call to the ListByVirtualMachine method.\n * @param options The options parameters.\n */\n private _listByVirtualMachineNext(\n resourceGroupName: string,\n virtualMachineName: string,\n nextLink: string,\n options?: ConsolesListByVirtualMachineNextOptionalParams,\n ): Promise<ConsolesListByVirtualMachineNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, nextLink, options },\n listByVirtualMachineNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByVirtualMachineOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConsoleList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n 201: {\n bodyMapper: Mappers.Console,\n },\n 202: {\n bodyMapper: Mappers.Console,\n },\n 204: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.consoleParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Console,\n },\n 201: {\n bodyMapper: Mappers.Console,\n },\n 202: {\n bodyMapper: Mappers.Console,\n },\n 204: {\n bodyMapper: Mappers.Console,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.consoleUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n Parameters.consoleName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConsoleList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -366,7 +366,12 @@ const createOrUpdateOperationSpec = {
|
|
|
366
366
|
Parameters.kubernetesClusterName,
|
|
367
367
|
Parameters.featureName,
|
|
368
368
|
],
|
|
369
|
-
headerParameters: [
|
|
369
|
+
headerParameters: [
|
|
370
|
+
Parameters.accept,
|
|
371
|
+
Parameters.contentType,
|
|
372
|
+
Parameters.ifMatch,
|
|
373
|
+
Parameters.ifNoneMatch,
|
|
374
|
+
],
|
|
370
375
|
mediaType: "json",
|
|
371
376
|
serializer,
|
|
372
377
|
};
|
|
@@ -398,7 +403,11 @@ const deleteOperationSpec = {
|
|
|
398
403
|
Parameters.kubernetesClusterName,
|
|
399
404
|
Parameters.featureName,
|
|
400
405
|
],
|
|
401
|
-
headerParameters: [
|
|
406
|
+
headerParameters: [
|
|
407
|
+
Parameters.accept,
|
|
408
|
+
Parameters.ifMatch,
|
|
409
|
+
Parameters.ifNoneMatch,
|
|
410
|
+
],
|
|
402
411
|
serializer,
|
|
403
412
|
};
|
|
404
413
|
const updateOperationSpec = {
|
|
@@ -430,7 +439,12 @@ const updateOperationSpec = {
|
|
|
430
439
|
Parameters.kubernetesClusterName,
|
|
431
440
|
Parameters.featureName,
|
|
432
441
|
],
|
|
433
|
-
headerParameters: [
|
|
442
|
+
headerParameters: [
|
|
443
|
+
Parameters.accept,
|
|
444
|
+
Parameters.contentType,
|
|
445
|
+
Parameters.ifMatch,
|
|
446
|
+
Parameters.ifNoneMatch,
|
|
447
|
+
],
|
|
434
448
|
mediaType: "json",
|
|
435
449
|
serializer,
|
|
436
450
|
};
|