@azure/arm-avs 1.0.0 → 3.0.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +72 -73
- package/dist/index.js +11681 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/azureVMwareSolutionAPI.d.ts +33 -0
- package/dist-esm/src/azureVMwareSolutionAPI.d.ts.map +1 -0
- package/dist-esm/src/azureVMwareSolutionAPI.js +66 -0
- package/dist-esm/src/azureVMwareSolutionAPI.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2962 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +363 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +115 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +3114 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +53 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +409 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/addons.d.ts +81 -0
- package/dist-esm/src/operations/addons.d.ts.map +1 -0
- package/dist-esm/src/operations/addons.js +331 -0
- package/dist-esm/src/operations/addons.js.map +1 -0
- package/dist-esm/src/operations/authorizations.d.ts +81 -0
- package/dist-esm/src/operations/authorizations.d.ts.map +1 -0
- package/dist-esm/src/operations/authorizations.js +337 -0
- package/dist-esm/src/operations/authorizations.js.map +1 -0
- package/dist-esm/src/operations/cloudLinks.d.ts +81 -0
- package/dist-esm/src/operations/cloudLinks.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudLinks.js +337 -0
- package/dist-esm/src/operations/cloudLinks.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +99 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +423 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/datastores.d.ts +89 -0
- package/dist-esm/src/operations/datastores.d.ts.map +1 -0
- package/dist-esm/src/operations/datastores.js +363 -0
- package/dist-esm/src/operations/datastores.js.map +1 -0
- package/dist-esm/src/operations/globalReachConnections.d.ts +81 -0
- package/dist-esm/src/operations/globalReachConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/globalReachConnections.js +347 -0
- package/dist-esm/src/operations/globalReachConnections.js.map +1 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.d.ts +63 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.d.ts.map +1 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.js +244 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +17 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +24 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +25 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +79 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/placementPolicies.d.ts +116 -0
- package/dist-esm/src/operations/placementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/placementPolicies.js +466 -0
- package/dist-esm/src/operations/placementPolicies.js.map +1 -0
- package/dist-esm/src/operations/privateClouds.d.ts +142 -0
- package/dist-esm/src/operations/privateClouds.d.ts.map +1 -0
- package/dist-esm/src/operations/privateClouds.js +672 -0
- package/dist-esm/src/operations/privateClouds.js.map +1 -0
- package/dist-esm/src/operations/scriptCmdlets.d.ts +53 -0
- package/dist-esm/src/operations/scriptCmdlets.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptCmdlets.js +191 -0
- package/dist-esm/src/operations/scriptCmdlets.js.map +1 -0
- package/dist-esm/src/operations/scriptExecutions.d.ts +89 -0
- package/dist-esm/src/operations/scriptExecutions.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptExecutions.js +371 -0
- package/dist-esm/src/operations/scriptExecutions.js.map +1 -0
- package/dist-esm/src/operations/scriptPackages.d.ts +46 -0
- package/dist-esm/src/operations/scriptPackages.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptPackages.js +169 -0
- package/dist-esm/src/operations/scriptPackages.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +71 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +272 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operations/workloadNetworks.d.ts +661 -0
- package/dist-esm/src/operations/workloadNetworks.d.ts.map +1 -0
- package/dist-esm/src/operations/workloadNetworks.js +3049 -0
- package/dist-esm/src/operations/workloadNetworks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/addons.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/addons.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/addons.js +9 -0
- package/dist-esm/src/operationsInterfaces/addons.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/authorizations.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/authorizations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/authorizations.js +9 -0
- package/dist-esm/src/operationsInterfaces/authorizations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/datastores.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/datastores.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/datastores.js +9 -0
- package/dist-esm/src/operationsInterfaces/datastores.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js +9 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +24 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts +89 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.d.ts +106 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts +25 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts +500 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.js +9 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-avs.api.md +2534 -0
- package/rollup.config.js +181 -30
- package/src/azureVMwareSolutionAPI.ts +139 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +3101 -931
- package/src/models/mappers.ts +2874 -387
- package/src/models/parameters.ts +407 -44
- package/src/operations/addons.ts +472 -0
- package/src/operations/authorizations.ts +341 -196
- package/src/operations/cloudLinks.ts +478 -0
- package/src/operations/clusters.ts +444 -238
- package/src/operations/datastores.ts +525 -0
- package/src/operations/globalReachConnections.ts +488 -0
- package/src/operations/hcxEnterpriseSites.ts +200 -210
- package/src/operations/index.ts +13 -5
- package/src/operations/locations.ts +56 -83
- package/src/operations/operations.ts +87 -73
- package/src/operations/placementPolicies.ts +677 -0
- package/src/operations/privateClouds.ts +705 -319
- package/src/operations/scriptCmdlets.ts +266 -0
- package/src/operations/scriptExecutions.ts +524 -0
- package/src/operations/scriptPackages.ts +229 -0
- package/src/operations/virtualMachines.ts +390 -0
- package/src/operations/workloadNetworks.ts +4398 -0
- package/src/operationsInterfaces/addons.ts +109 -0
- package/src/operationsInterfaces/authorizations.ts +109 -0
- package/src/operationsInterfaces/cloudLinks.ts +109 -0
- package/src/operationsInterfaces/clusters.ts +147 -0
- package/src/operationsInterfaces/datastores.ts +121 -0
- package/src/operationsInterfaces/globalReachConnections.ts +109 -0
- package/src/operationsInterfaces/hcxEnterpriseSites.ts +75 -0
- package/src/operationsInterfaces/index.ts +24 -0
- package/src/operationsInterfaces/locations.ts +36 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/placementPolicies.ts +170 -0
- package/src/operationsInterfaces/privateClouds.ts +198 -0
- package/src/operationsInterfaces/scriptCmdlets.ts +50 -0
- package/src/operationsInterfaces/scriptExecutions.ts +124 -0
- package/src/operationsInterfaces/scriptPackages.ts +44 -0
- package/src/operationsInterfaces/virtualMachines.ts +85 -0
- package/src/operationsInterfaces/workloadNetworks.ts +951 -0
- package/tsconfig.json +3 -3
- package/types/arm-avs.d.ts +4645 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-avs.js +0 -2585
- package/dist/arm-avs.js.map +0 -1
- package/dist/arm-avs.min.js +0 -1
- package/dist/arm-avs.min.js.map +0 -1
- package/esm/avsClient.d.ts +0 -23
- package/esm/avsClient.d.ts.map +0 -1
- package/esm/avsClient.js +0 -38
- package/esm/avsClient.js.map +0 -1
- package/esm/avsClientContext.d.ts +0 -16
- package/esm/avsClientContext.d.ts.map +0 -1
- package/esm/avsClientContext.js +0 -56
- package/esm/avsClientContext.js.map +0 -1
- package/esm/models/authorizationsMappers.d.ts +0 -2
- package/esm/models/authorizationsMappers.d.ts.map +0 -1
- package/esm/models/authorizationsMappers.js +0 -9
- package/esm/models/authorizationsMappers.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/hcxEnterpriseSitesMappers.d.ts +0 -2
- package/esm/models/hcxEnterpriseSitesMappers.d.ts.map +0 -1
- package/esm/models/hcxEnterpriseSitesMappers.js +0 -9
- package/esm/models/hcxEnterpriseSitesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1163
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js +0 -9
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -30
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -881
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -122
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateCloudsMappers.d.ts +0 -2
- package/esm/models/privateCloudsMappers.d.ts.map +0 -1
- package/esm/models/privateCloudsMappers.js +0 -9
- package/esm/models/privateCloudsMappers.js.map +0 -1
- package/esm/operations/authorizations.d.ts +0 -115
- package/esm/operations/authorizations.d.ts.map +0 -1
- package/esm/operations/authorizations.js +0 -239
- package/esm/operations/authorizations.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -133
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -299
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/hcxEnterpriseSites.d.ts +0 -127
- package/esm/operations/hcxEnterpriseSites.d.ts.map +0 -1
- package/esm/operations/hcxEnterpriseSites.js +0 -196
- package/esm/operations/hcxEnterpriseSites.js.map +0 -1
- package/esm/operations/index.d.ts +0 -7
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -16
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -49
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -85
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateClouds.d.ts +0 -177
- package/esm/operations/privateClouds.d.ts.map +0 -1
- package/esm/operations/privateClouds.js +0 -365
- package/esm/operations/privateClouds.js.map +0 -1
- package/src/avsClient.ts +0 -52
- package/src/avsClientContext.ts +0 -62
- package/src/models/authorizationsMappers.ts +0 -27
- package/src/models/clustersMappers.ts +0 -28
- package/src/models/hcxEnterpriseSitesMappers.ts +0 -27
- package/src/models/locationsMappers.ts +0 -15
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/privateCloudsMappers.ts +0 -29
|
@@ -1,247 +1,458 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Clusters } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Cluster,
|
|
19
|
+
ClustersListNextOptionalParams,
|
|
20
|
+
ClustersListOptionalParams,
|
|
21
|
+
ClustersListResponse,
|
|
22
|
+
ClustersGetOptionalParams,
|
|
23
|
+
ClustersGetResponse,
|
|
24
|
+
ClustersCreateOrUpdateOptionalParams,
|
|
25
|
+
ClustersCreateOrUpdateResponse,
|
|
26
|
+
ClusterUpdate,
|
|
27
|
+
ClustersUpdateOptionalParams,
|
|
28
|
+
ClustersUpdateResponse,
|
|
29
|
+
ClustersDeleteOptionalParams,
|
|
30
|
+
ClustersListNextResponse
|
|
31
|
+
} from "../models";
|
|
17
32
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
33
|
+
/// <reference lib="esnext.asynciterable" />
|
|
34
|
+
/** Class containing Clusters operations. */
|
|
35
|
+
export class ClustersImpl implements Clusters {
|
|
36
|
+
private readonly client: AzureVMwareSolutionAPI;
|
|
21
37
|
|
|
22
38
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
39
|
+
* Initialize a new instance of the class Clusters class.
|
|
40
|
+
* @param client Reference to the service client
|
|
25
41
|
*/
|
|
26
|
-
constructor(client:
|
|
42
|
+
constructor(client: AzureVMwareSolutionAPI) {
|
|
27
43
|
this.client = client;
|
|
28
44
|
}
|
|
29
45
|
|
|
30
46
|
/**
|
|
31
|
-
*
|
|
47
|
+
* List clusters in a private cloud
|
|
32
48
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
33
49
|
* @param privateCloudName Name of the private cloud
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.ClustersListResponse>
|
|
50
|
+
* @param options The options parameters.
|
|
36
51
|
*/
|
|
37
|
-
list(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
public list(
|
|
53
|
+
resourceGroupName: string,
|
|
54
|
+
privateCloudName: string,
|
|
55
|
+
options?: ClustersListOptionalParams
|
|
56
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
57
|
+
const iter = this.listPagingAll(
|
|
58
|
+
resourceGroupName,
|
|
59
|
+
privateCloudName,
|
|
60
|
+
options
|
|
61
|
+
);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
65
|
+
},
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
68
|
+
},
|
|
69
|
+
byPage: () => {
|
|
70
|
+
return this.listPagingPage(
|
|
71
|
+
resourceGroupName,
|
|
72
|
+
privateCloudName,
|
|
73
|
+
options
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
private async *listPagingPage(
|
|
80
|
+
resourceGroupName: string,
|
|
81
|
+
privateCloudName: string,
|
|
82
|
+
options?: ClustersListOptionalParams
|
|
83
|
+
): AsyncIterableIterator<Cluster[]> {
|
|
84
|
+
let result = await this._list(resourceGroupName, privateCloudName, options);
|
|
85
|
+
yield result.value || [];
|
|
86
|
+
let continuationToken = result.nextLink;
|
|
87
|
+
while (continuationToken) {
|
|
88
|
+
result = await this._listNext(
|
|
54
89
|
resourceGroupName,
|
|
55
90
|
privateCloudName,
|
|
91
|
+
continuationToken,
|
|
56
92
|
options
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
93
|
+
);
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
yield result.value || [];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
private async *listPagingAll(
|
|
100
|
+
resourceGroupName: string,
|
|
101
|
+
privateCloudName: string,
|
|
102
|
+
options?: ClustersListOptionalParams
|
|
103
|
+
): AsyncIterableIterator<Cluster> {
|
|
104
|
+
for await (const page of this.listPagingPage(
|
|
105
|
+
resourceGroupName,
|
|
106
|
+
privateCloudName,
|
|
107
|
+
options
|
|
108
|
+
)) {
|
|
109
|
+
yield* page;
|
|
110
|
+
}
|
|
60
111
|
}
|
|
61
112
|
|
|
62
113
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
65
|
-
* @param privateCloudName Name of the private cloud
|
|
66
|
-
* @param clusterName Name of the cluster in the private cloud
|
|
67
|
-
* @param [options] The optional parameters
|
|
68
|
-
* @returns Promise<Models.ClustersGetResponse>
|
|
69
|
-
*/
|
|
70
|
-
get(resourceGroupName: string, privateCloudName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersGetResponse>;
|
|
71
|
-
/**
|
|
114
|
+
* List clusters in a private cloud
|
|
72
115
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
73
116
|
* @param privateCloudName Name of the private cloud
|
|
74
|
-
* @param
|
|
75
|
-
* @param callback The callback
|
|
117
|
+
* @param options The options parameters.
|
|
76
118
|
*/
|
|
77
|
-
|
|
119
|
+
private _list(
|
|
120
|
+
resourceGroupName: string,
|
|
121
|
+
privateCloudName: string,
|
|
122
|
+
options?: ClustersListOptionalParams
|
|
123
|
+
): Promise<ClustersListResponse> {
|
|
124
|
+
return this.client.sendOperationRequest(
|
|
125
|
+
{ resourceGroupName, privateCloudName, options },
|
|
126
|
+
listOperationSpec
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
78
130
|
/**
|
|
131
|
+
* Get a cluster by name in a private cloud
|
|
79
132
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
80
133
|
* @param privateCloudName Name of the private cloud
|
|
81
134
|
* @param clusterName Name of the cluster in the private cloud
|
|
82
|
-
* @param options The
|
|
83
|
-
* @param callback The callback
|
|
135
|
+
* @param options The options parameters.
|
|
84
136
|
*/
|
|
85
|
-
get(
|
|
86
|
-
|
|
137
|
+
get(
|
|
138
|
+
resourceGroupName: string,
|
|
139
|
+
privateCloudName: string,
|
|
140
|
+
clusterName: string,
|
|
141
|
+
options?: ClustersGetOptionalParams
|
|
142
|
+
): Promise<ClustersGetResponse> {
|
|
87
143
|
return this.client.sendOperationRequest(
|
|
88
|
-
{
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
clusterName,
|
|
92
|
-
options
|
|
93
|
-
},
|
|
94
|
-
getOperationSpec,
|
|
95
|
-
callback) as Promise<Models.ClustersGetResponse>;
|
|
144
|
+
{ resourceGroupName, privateCloudName, clusterName, options },
|
|
145
|
+
getOperationSpec
|
|
146
|
+
);
|
|
96
147
|
}
|
|
97
148
|
|
|
98
149
|
/**
|
|
99
|
-
*
|
|
150
|
+
* Create or update a cluster in a private cloud
|
|
100
151
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
101
152
|
* @param privateCloudName The name of the private cloud.
|
|
102
153
|
* @param clusterName Name of the cluster in the private cloud
|
|
103
154
|
* @param cluster A cluster in the private cloud
|
|
104
|
-
* @param
|
|
105
|
-
* @returns Promise<Models.ClustersCreateOrUpdateResponse>
|
|
155
|
+
* @param options The options parameters.
|
|
106
156
|
*/
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
157
|
+
async beginCreateOrUpdate(
|
|
158
|
+
resourceGroupName: string,
|
|
159
|
+
privateCloudName: string,
|
|
160
|
+
clusterName: string,
|
|
161
|
+
cluster: Cluster,
|
|
162
|
+
options?: ClustersCreateOrUpdateOptionalParams
|
|
163
|
+
): Promise<
|
|
164
|
+
PollerLike<
|
|
165
|
+
PollOperationState<ClustersCreateOrUpdateResponse>,
|
|
166
|
+
ClustersCreateOrUpdateResponse
|
|
167
|
+
>
|
|
168
|
+
> {
|
|
169
|
+
const directSendOperation = async (
|
|
170
|
+
args: coreClient.OperationArguments,
|
|
171
|
+
spec: coreClient.OperationSpec
|
|
172
|
+
): Promise<ClustersCreateOrUpdateResponse> => {
|
|
173
|
+
return this.client.sendOperationRequest(args, spec);
|
|
174
|
+
};
|
|
175
|
+
const sendOperation = async (
|
|
176
|
+
args: coreClient.OperationArguments,
|
|
177
|
+
spec: coreClient.OperationSpec
|
|
178
|
+
) => {
|
|
179
|
+
let currentRawResponse:
|
|
180
|
+
| coreClient.FullOperationResponse
|
|
181
|
+
| undefined = undefined;
|
|
182
|
+
const providedCallback = args.options?.onResponse;
|
|
183
|
+
const callback: coreClient.RawResponseCallback = (
|
|
184
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
185
|
+
flatResponse: unknown
|
|
186
|
+
) => {
|
|
187
|
+
currentRawResponse = rawResponse;
|
|
188
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
189
|
+
};
|
|
190
|
+
const updatedArgs = {
|
|
191
|
+
...args,
|
|
192
|
+
options: {
|
|
193
|
+
...args.options,
|
|
194
|
+
onResponse: callback
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
198
|
+
return {
|
|
199
|
+
flatResponse,
|
|
200
|
+
rawResponse: {
|
|
201
|
+
statusCode: currentRawResponse!.status,
|
|
202
|
+
body: currentRawResponse!.parsedBody,
|
|
203
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
const lro = new LroImpl(
|
|
209
|
+
sendOperation,
|
|
210
|
+
{ resourceGroupName, privateCloudName, clusterName, cluster, options },
|
|
211
|
+
createOrUpdateOperationSpec
|
|
212
|
+
);
|
|
213
|
+
return new LroEngine(lro, {
|
|
214
|
+
resumeFrom: options?.resumeFrom,
|
|
215
|
+
intervalInMs: options?.updateIntervalInMs
|
|
216
|
+
});
|
|
110
217
|
}
|
|
111
218
|
|
|
112
219
|
/**
|
|
113
|
-
*
|
|
220
|
+
* Create or update a cluster in a private cloud
|
|
114
221
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
115
|
-
* @param privateCloudName
|
|
222
|
+
* @param privateCloudName The name of the private cloud.
|
|
116
223
|
* @param clusterName Name of the cluster in the private cloud
|
|
117
|
-
* @param
|
|
118
|
-
* @
|
|
224
|
+
* @param cluster A cluster in the private cloud
|
|
225
|
+
* @param options The options parameters.
|
|
119
226
|
*/
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
227
|
+
async beginCreateOrUpdateAndWait(
|
|
228
|
+
resourceGroupName: string,
|
|
229
|
+
privateCloudName: string,
|
|
230
|
+
clusterName: string,
|
|
231
|
+
cluster: Cluster,
|
|
232
|
+
options?: ClustersCreateOrUpdateOptionalParams
|
|
233
|
+
): Promise<ClustersCreateOrUpdateResponse> {
|
|
234
|
+
const poller = await this.beginCreateOrUpdate(
|
|
235
|
+
resourceGroupName,
|
|
236
|
+
privateCloudName,
|
|
237
|
+
clusterName,
|
|
238
|
+
cluster,
|
|
239
|
+
options
|
|
240
|
+
);
|
|
241
|
+
return poller.pollUntilDone();
|
|
123
242
|
}
|
|
124
243
|
|
|
125
244
|
/**
|
|
126
|
-
*
|
|
245
|
+
* Update a cluster in a private cloud
|
|
127
246
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
128
247
|
* @param privateCloudName Name of the private cloud
|
|
129
248
|
* @param clusterName Name of the cluster in the private cloud
|
|
130
|
-
* @param
|
|
131
|
-
* @
|
|
249
|
+
* @param clusterUpdate The cluster properties to be updated
|
|
250
|
+
* @param options The options parameters.
|
|
132
251
|
*/
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
252
|
+
async beginUpdate(
|
|
253
|
+
resourceGroupName: string,
|
|
254
|
+
privateCloudName: string,
|
|
255
|
+
clusterName: string,
|
|
256
|
+
clusterUpdate: ClusterUpdate,
|
|
257
|
+
options?: ClustersUpdateOptionalParams
|
|
258
|
+
): Promise<
|
|
259
|
+
PollerLike<
|
|
260
|
+
PollOperationState<ClustersUpdateResponse>,
|
|
261
|
+
ClustersUpdateResponse
|
|
262
|
+
>
|
|
263
|
+
> {
|
|
264
|
+
const directSendOperation = async (
|
|
265
|
+
args: coreClient.OperationArguments,
|
|
266
|
+
spec: coreClient.OperationSpec
|
|
267
|
+
): Promise<ClustersUpdateResponse> => {
|
|
268
|
+
return this.client.sendOperationRequest(args, spec);
|
|
269
|
+
};
|
|
270
|
+
const sendOperation = async (
|
|
271
|
+
args: coreClient.OperationArguments,
|
|
272
|
+
spec: coreClient.OperationSpec
|
|
273
|
+
) => {
|
|
274
|
+
let currentRawResponse:
|
|
275
|
+
| coreClient.FullOperationResponse
|
|
276
|
+
| undefined = undefined;
|
|
277
|
+
const providedCallback = args.options?.onResponse;
|
|
278
|
+
const callback: coreClient.RawResponseCallback = (
|
|
279
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
280
|
+
flatResponse: unknown
|
|
281
|
+
) => {
|
|
282
|
+
currentRawResponse = rawResponse;
|
|
283
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
284
|
+
};
|
|
285
|
+
const updatedArgs = {
|
|
286
|
+
...args,
|
|
287
|
+
options: {
|
|
288
|
+
...args.options,
|
|
289
|
+
onResponse: callback
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
293
|
+
return {
|
|
294
|
+
flatResponse,
|
|
295
|
+
rawResponse: {
|
|
296
|
+
statusCode: currentRawResponse!.status,
|
|
297
|
+
body: currentRawResponse!.parsedBody,
|
|
298
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
};
|
|
137
302
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
141
|
-
* @param privateCloudName The name of the private cloud.
|
|
142
|
-
* @param clusterName Name of the cluster in the private cloud
|
|
143
|
-
* @param cluster A cluster in the private cloud
|
|
144
|
-
* @param [options] The optional parameters
|
|
145
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
146
|
-
*/
|
|
147
|
-
beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, clusterName: string, cluster: Models.Cluster, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
148
|
-
return this.client.sendLRORequest(
|
|
303
|
+
const lro = new LroImpl(
|
|
304
|
+
sendOperation,
|
|
149
305
|
{
|
|
150
306
|
resourceGroupName,
|
|
151
307
|
privateCloudName,
|
|
152
308
|
clusterName,
|
|
153
|
-
|
|
309
|
+
clusterUpdate,
|
|
154
310
|
options
|
|
155
311
|
},
|
|
156
|
-
|
|
157
|
-
|
|
312
|
+
updateOperationSpec
|
|
313
|
+
);
|
|
314
|
+
return new LroEngine(lro, {
|
|
315
|
+
resumeFrom: options?.resumeFrom,
|
|
316
|
+
intervalInMs: options?.updateIntervalInMs
|
|
317
|
+
});
|
|
158
318
|
}
|
|
159
319
|
|
|
160
320
|
/**
|
|
161
|
-
*
|
|
321
|
+
* Update a cluster in a private cloud
|
|
162
322
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
163
323
|
* @param privateCloudName Name of the private cloud
|
|
164
324
|
* @param clusterName Name of the cluster in the private cloud
|
|
165
|
-
* @param
|
|
166
|
-
* @
|
|
325
|
+
* @param clusterUpdate The cluster properties to be updated
|
|
326
|
+
* @param options The options parameters.
|
|
167
327
|
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
328
|
+
async beginUpdateAndWait(
|
|
329
|
+
resourceGroupName: string,
|
|
330
|
+
privateCloudName: string,
|
|
331
|
+
clusterName: string,
|
|
332
|
+
clusterUpdate: ClusterUpdate,
|
|
333
|
+
options?: ClustersUpdateOptionalParams
|
|
334
|
+
): Promise<ClustersUpdateResponse> {
|
|
335
|
+
const poller = await this.beginUpdate(
|
|
336
|
+
resourceGroupName,
|
|
337
|
+
privateCloudName,
|
|
338
|
+
clusterName,
|
|
339
|
+
clusterUpdate,
|
|
340
|
+
options
|
|
341
|
+
);
|
|
342
|
+
return poller.pollUntilDone();
|
|
178
343
|
}
|
|
179
344
|
|
|
180
345
|
/**
|
|
181
|
-
*
|
|
346
|
+
* Delete a cluster in a private cloud
|
|
182
347
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
183
348
|
* @param privateCloudName Name of the private cloud
|
|
184
349
|
* @param clusterName Name of the cluster in the private cloud
|
|
185
|
-
* @param
|
|
186
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
350
|
+
* @param options The options parameters.
|
|
187
351
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
352
|
+
async beginDelete(
|
|
353
|
+
resourceGroupName: string,
|
|
354
|
+
privateCloudName: string,
|
|
355
|
+
clusterName: string,
|
|
356
|
+
options?: ClustersDeleteOptionalParams
|
|
357
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
358
|
+
const directSendOperation = async (
|
|
359
|
+
args: coreClient.OperationArguments,
|
|
360
|
+
spec: coreClient.OperationSpec
|
|
361
|
+
): Promise<void> => {
|
|
362
|
+
return this.client.sendOperationRequest(args, spec);
|
|
363
|
+
};
|
|
364
|
+
const sendOperation = async (
|
|
365
|
+
args: coreClient.OperationArguments,
|
|
366
|
+
spec: coreClient.OperationSpec
|
|
367
|
+
) => {
|
|
368
|
+
let currentRawResponse:
|
|
369
|
+
| coreClient.FullOperationResponse
|
|
370
|
+
| undefined = undefined;
|
|
371
|
+
const providedCallback = args.options?.onResponse;
|
|
372
|
+
const callback: coreClient.RawResponseCallback = (
|
|
373
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
374
|
+
flatResponse: unknown
|
|
375
|
+
) => {
|
|
376
|
+
currentRawResponse = rawResponse;
|
|
377
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
378
|
+
};
|
|
379
|
+
const updatedArgs = {
|
|
380
|
+
...args,
|
|
381
|
+
options: {
|
|
382
|
+
...args.options,
|
|
383
|
+
onResponse: callback
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
387
|
+
return {
|
|
388
|
+
flatResponse,
|
|
389
|
+
rawResponse: {
|
|
390
|
+
statusCode: currentRawResponse!.status,
|
|
391
|
+
body: currentRawResponse!.parsedBody,
|
|
392
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
const lro = new LroImpl(
|
|
398
|
+
sendOperation,
|
|
399
|
+
{ resourceGroupName, privateCloudName, clusterName, options },
|
|
400
|
+
deleteOperationSpec
|
|
401
|
+
);
|
|
402
|
+
return new LroEngine(lro, {
|
|
403
|
+
resumeFrom: options?.resumeFrom,
|
|
404
|
+
intervalInMs: options?.updateIntervalInMs
|
|
405
|
+
});
|
|
198
406
|
}
|
|
199
407
|
|
|
200
408
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @param
|
|
203
|
-
* @param
|
|
204
|
-
* @
|
|
205
|
-
|
|
206
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersListNextResponse>;
|
|
207
|
-
/**
|
|
208
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
209
|
-
* @param callback The callback
|
|
409
|
+
* Delete a cluster in a private cloud
|
|
410
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
411
|
+
* @param privateCloudName Name of the private cloud
|
|
412
|
+
* @param clusterName Name of the cluster in the private cloud
|
|
413
|
+
* @param options The options parameters.
|
|
210
414
|
*/
|
|
211
|
-
|
|
415
|
+
async beginDeleteAndWait(
|
|
416
|
+
resourceGroupName: string,
|
|
417
|
+
privateCloudName: string,
|
|
418
|
+
clusterName: string,
|
|
419
|
+
options?: ClustersDeleteOptionalParams
|
|
420
|
+
): Promise<void> {
|
|
421
|
+
const poller = await this.beginDelete(
|
|
422
|
+
resourceGroupName,
|
|
423
|
+
privateCloudName,
|
|
424
|
+
clusterName,
|
|
425
|
+
options
|
|
426
|
+
);
|
|
427
|
+
return poller.pollUntilDone();
|
|
428
|
+
}
|
|
429
|
+
|
|
212
430
|
/**
|
|
213
|
-
*
|
|
214
|
-
* @param
|
|
215
|
-
* @param
|
|
431
|
+
* ListNext
|
|
432
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
433
|
+
* @param privateCloudName Name of the private cloud
|
|
434
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
435
|
+
* @param options The options parameters.
|
|
216
436
|
*/
|
|
217
|
-
|
|
218
|
-
|
|
437
|
+
private _listNext(
|
|
438
|
+
resourceGroupName: string,
|
|
439
|
+
privateCloudName: string,
|
|
440
|
+
nextLink: string,
|
|
441
|
+
options?: ClustersListNextOptionalParams
|
|
442
|
+
): Promise<ClustersListNextResponse> {
|
|
219
443
|
return this.client.sendOperationRequest(
|
|
220
|
-
{
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
},
|
|
224
|
-
listNextOperationSpec,
|
|
225
|
-
callback) as Promise<Models.ClustersListNextResponse>;
|
|
444
|
+
{ resourceGroupName, privateCloudName, nextLink, options },
|
|
445
|
+
listNextOperationSpec
|
|
446
|
+
);
|
|
226
447
|
}
|
|
227
448
|
}
|
|
228
|
-
|
|
229
449
|
// Operation Specifications
|
|
230
|
-
const serializer =
|
|
231
|
-
|
|
450
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
451
|
+
|
|
452
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
453
|
+
path:
|
|
454
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters",
|
|
232
455
|
httpMethod: "GET",
|
|
233
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters",
|
|
234
|
-
urlParameters: [
|
|
235
|
-
Parameters.subscriptionId,
|
|
236
|
-
Parameters.resourceGroupName,
|
|
237
|
-
Parameters.privateCloudName
|
|
238
|
-
],
|
|
239
|
-
queryParameters: [
|
|
240
|
-
Parameters.apiVersion
|
|
241
|
-
],
|
|
242
|
-
headerParameters: [
|
|
243
|
-
Parameters.acceptLanguage
|
|
244
|
-
],
|
|
245
456
|
responses: {
|
|
246
457
|
200: {
|
|
247
458
|
bodyMapper: Mappers.ClusterList
|
|
@@ -250,24 +461,20 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
250
461
|
bodyMapper: Mappers.CloudError
|
|
251
462
|
}
|
|
252
463
|
},
|
|
253
|
-
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
257
|
-
httpMethod: "GET",
|
|
258
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
|
|
464
|
+
queryParameters: [Parameters.apiVersion],
|
|
259
465
|
urlParameters: [
|
|
466
|
+
Parameters.$host,
|
|
260
467
|
Parameters.subscriptionId,
|
|
261
468
|
Parameters.resourceGroupName,
|
|
262
|
-
Parameters.privateCloudName
|
|
263
|
-
Parameters.clusterName
|
|
264
|
-
],
|
|
265
|
-
queryParameters: [
|
|
266
|
-
Parameters.apiVersion
|
|
267
|
-
],
|
|
268
|
-
headerParameters: [
|
|
269
|
-
Parameters.acceptLanguage
|
|
469
|
+
Parameters.privateCloudName
|
|
270
470
|
],
|
|
471
|
+
headerParameters: [Parameters.accept],
|
|
472
|
+
serializer
|
|
473
|
+
};
|
|
474
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
475
|
+
path:
|
|
476
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
|
|
477
|
+
httpMethod: "GET",
|
|
271
478
|
responses: {
|
|
272
479
|
200: {
|
|
273
480
|
bodyMapper: Mappers.Cluster
|
|
@@ -276,31 +483,21 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
276
483
|
bodyMapper: Mappers.CloudError
|
|
277
484
|
}
|
|
278
485
|
},
|
|
279
|
-
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
283
|
-
httpMethod: "PUT",
|
|
284
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
|
|
486
|
+
queryParameters: [Parameters.apiVersion],
|
|
285
487
|
urlParameters: [
|
|
488
|
+
Parameters.$host,
|
|
286
489
|
Parameters.subscriptionId,
|
|
287
490
|
Parameters.resourceGroupName,
|
|
288
491
|
Parameters.privateCloudName,
|
|
289
492
|
Parameters.clusterName
|
|
290
493
|
],
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
parameterPath: "cluster",
|
|
299
|
-
mapper: {
|
|
300
|
-
...Mappers.Cluster,
|
|
301
|
-
required: true
|
|
302
|
-
}
|
|
303
|
-
},
|
|
494
|
+
headerParameters: [Parameters.accept],
|
|
495
|
+
serializer
|
|
496
|
+
};
|
|
497
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
498
|
+
path:
|
|
499
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
|
|
500
|
+
httpMethod: "PUT",
|
|
304
501
|
responses: {
|
|
305
502
|
200: {
|
|
306
503
|
bodyMapper: Mappers.Cluster
|
|
@@ -308,40 +505,33 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
308
505
|
201: {
|
|
309
506
|
bodyMapper: Mappers.Cluster
|
|
310
507
|
},
|
|
508
|
+
202: {
|
|
509
|
+
bodyMapper: Mappers.Cluster
|
|
510
|
+
},
|
|
511
|
+
204: {
|
|
512
|
+
bodyMapper: Mappers.Cluster
|
|
513
|
+
},
|
|
311
514
|
default: {
|
|
312
515
|
bodyMapper: Mappers.CloudError
|
|
313
516
|
}
|
|
314
517
|
},
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
319
|
-
httpMethod: "PATCH",
|
|
320
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
|
|
518
|
+
requestBody: Parameters.cluster,
|
|
519
|
+
queryParameters: [Parameters.apiVersion],
|
|
321
520
|
urlParameters: [
|
|
521
|
+
Parameters.$host,
|
|
322
522
|
Parameters.subscriptionId,
|
|
323
523
|
Parameters.resourceGroupName,
|
|
324
524
|
Parameters.privateCloudName,
|
|
325
525
|
Parameters.clusterName
|
|
326
526
|
],
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
clusterSize: [
|
|
336
|
-
"options",
|
|
337
|
-
"clusterSize"
|
|
338
|
-
]
|
|
339
|
-
},
|
|
340
|
-
mapper: {
|
|
341
|
-
...Mappers.ClusterUpdate,
|
|
342
|
-
required: true
|
|
343
|
-
}
|
|
344
|
-
},
|
|
527
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
528
|
+
mediaType: "json",
|
|
529
|
+
serializer
|
|
530
|
+
};
|
|
531
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
532
|
+
path:
|
|
533
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
|
|
534
|
+
httpMethod: "PATCH",
|
|
345
535
|
responses: {
|
|
346
536
|
200: {
|
|
347
537
|
bodyMapper: Mappers.Cluster
|
|
@@ -349,49 +539,56 @@ const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
349
539
|
201: {
|
|
350
540
|
bodyMapper: Mappers.Cluster
|
|
351
541
|
},
|
|
542
|
+
202: {
|
|
543
|
+
bodyMapper: Mappers.Cluster
|
|
544
|
+
},
|
|
545
|
+
204: {
|
|
546
|
+
bodyMapper: Mappers.Cluster
|
|
547
|
+
},
|
|
352
548
|
default: {
|
|
353
549
|
bodyMapper: Mappers.CloudError
|
|
354
550
|
}
|
|
355
551
|
},
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
360
|
-
httpMethod: "DELETE",
|
|
361
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
|
|
552
|
+
requestBody: Parameters.clusterUpdate,
|
|
553
|
+
queryParameters: [Parameters.apiVersion],
|
|
362
554
|
urlParameters: [
|
|
555
|
+
Parameters.$host,
|
|
363
556
|
Parameters.subscriptionId,
|
|
364
557
|
Parameters.resourceGroupName,
|
|
365
558
|
Parameters.privateCloudName,
|
|
366
559
|
Parameters.clusterName
|
|
367
560
|
],
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
561
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
562
|
+
mediaType: "json",
|
|
563
|
+
serializer
|
|
564
|
+
};
|
|
565
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
566
|
+
path:
|
|
567
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}",
|
|
568
|
+
httpMethod: "DELETE",
|
|
374
569
|
responses: {
|
|
375
570
|
200: {},
|
|
571
|
+
201: {},
|
|
376
572
|
202: {},
|
|
377
573
|
204: {},
|
|
378
574
|
default: {
|
|
379
575
|
bodyMapper: Mappers.CloudError
|
|
380
576
|
}
|
|
381
577
|
},
|
|
578
|
+
queryParameters: [Parameters.apiVersion],
|
|
579
|
+
urlParameters: [
|
|
580
|
+
Parameters.$host,
|
|
581
|
+
Parameters.subscriptionId,
|
|
582
|
+
Parameters.resourceGroupName,
|
|
583
|
+
Parameters.privateCloudName,
|
|
584
|
+
Parameters.clusterName
|
|
585
|
+
],
|
|
586
|
+
headerParameters: [Parameters.accept],
|
|
382
587
|
serializer
|
|
383
588
|
};
|
|
384
|
-
|
|
385
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
386
|
-
httpMethod: "GET",
|
|
387
|
-
baseUrl: "https://management.azure.com",
|
|
589
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
388
590
|
path: "{nextLink}",
|
|
389
|
-
|
|
390
|
-
Parameters.nextPageLink
|
|
391
|
-
],
|
|
392
|
-
headerParameters: [
|
|
393
|
-
Parameters.acceptLanguage
|
|
394
|
-
],
|
|
591
|
+
httpMethod: "GET",
|
|
395
592
|
responses: {
|
|
396
593
|
200: {
|
|
397
594
|
bodyMapper: Mappers.ClusterList
|
|
@@ -400,5 +597,14 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
400
597
|
bodyMapper: Mappers.CloudError
|
|
401
598
|
}
|
|
402
599
|
},
|
|
600
|
+
queryParameters: [Parameters.apiVersion],
|
|
601
|
+
urlParameters: [
|
|
602
|
+
Parameters.$host,
|
|
603
|
+
Parameters.nextLink,
|
|
604
|
+
Parameters.subscriptionId,
|
|
605
|
+
Parameters.resourceGroupName,
|
|
606
|
+
Parameters.privateCloudName
|
|
607
|
+
],
|
|
608
|
+
headerParameters: [Parameters.accept],
|
|
403
609
|
serializer
|
|
404
610
|
};
|