@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
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ScriptPackages } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
|
|
15
|
+
import {
|
|
16
|
+
ScriptPackage,
|
|
17
|
+
ScriptPackagesListNextOptionalParams,
|
|
18
|
+
ScriptPackagesListOptionalParams,
|
|
19
|
+
ScriptPackagesListResponse,
|
|
20
|
+
ScriptPackagesGetOptionalParams,
|
|
21
|
+
ScriptPackagesGetResponse,
|
|
22
|
+
ScriptPackagesListNextResponse
|
|
23
|
+
} from "../models";
|
|
24
|
+
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Class containing ScriptPackages operations. */
|
|
27
|
+
export class ScriptPackagesImpl implements ScriptPackages {
|
|
28
|
+
private readonly client: AzureVMwareSolutionAPI;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initialize a new instance of the class ScriptPackages class.
|
|
32
|
+
* @param client Reference to the service client
|
|
33
|
+
*/
|
|
34
|
+
constructor(client: AzureVMwareSolutionAPI) {
|
|
35
|
+
this.client = client;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* List script packages available to run on the private cloud
|
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
41
|
+
* @param privateCloudName Name of the private cloud
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
public list(
|
|
45
|
+
resourceGroupName: string,
|
|
46
|
+
privateCloudName: string,
|
|
47
|
+
options?: ScriptPackagesListOptionalParams
|
|
48
|
+
): PagedAsyncIterableIterator<ScriptPackage> {
|
|
49
|
+
const iter = this.listPagingAll(
|
|
50
|
+
resourceGroupName,
|
|
51
|
+
privateCloudName,
|
|
52
|
+
options
|
|
53
|
+
);
|
|
54
|
+
return {
|
|
55
|
+
next() {
|
|
56
|
+
return iter.next();
|
|
57
|
+
},
|
|
58
|
+
[Symbol.asyncIterator]() {
|
|
59
|
+
return this;
|
|
60
|
+
},
|
|
61
|
+
byPage: () => {
|
|
62
|
+
return this.listPagingPage(
|
|
63
|
+
resourceGroupName,
|
|
64
|
+
privateCloudName,
|
|
65
|
+
options
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private async *listPagingPage(
|
|
72
|
+
resourceGroupName: string,
|
|
73
|
+
privateCloudName: string,
|
|
74
|
+
options?: ScriptPackagesListOptionalParams
|
|
75
|
+
): AsyncIterableIterator<ScriptPackage[]> {
|
|
76
|
+
let result = await this._list(resourceGroupName, privateCloudName, options);
|
|
77
|
+
yield result.value || [];
|
|
78
|
+
let continuationToken = result.nextLink;
|
|
79
|
+
while (continuationToken) {
|
|
80
|
+
result = await this._listNext(
|
|
81
|
+
resourceGroupName,
|
|
82
|
+
privateCloudName,
|
|
83
|
+
continuationToken,
|
|
84
|
+
options
|
|
85
|
+
);
|
|
86
|
+
continuationToken = result.nextLink;
|
|
87
|
+
yield result.value || [];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
private async *listPagingAll(
|
|
92
|
+
resourceGroupName: string,
|
|
93
|
+
privateCloudName: string,
|
|
94
|
+
options?: ScriptPackagesListOptionalParams
|
|
95
|
+
): AsyncIterableIterator<ScriptPackage> {
|
|
96
|
+
for await (const page of this.listPagingPage(
|
|
97
|
+
resourceGroupName,
|
|
98
|
+
privateCloudName,
|
|
99
|
+
options
|
|
100
|
+
)) {
|
|
101
|
+
yield* page;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* List script packages available to run on the private cloud
|
|
107
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
108
|
+
* @param privateCloudName Name of the private cloud
|
|
109
|
+
* @param options The options parameters.
|
|
110
|
+
*/
|
|
111
|
+
private _list(
|
|
112
|
+
resourceGroupName: string,
|
|
113
|
+
privateCloudName: string,
|
|
114
|
+
options?: ScriptPackagesListOptionalParams
|
|
115
|
+
): Promise<ScriptPackagesListResponse> {
|
|
116
|
+
return this.client.sendOperationRequest(
|
|
117
|
+
{ resourceGroupName, privateCloudName, options },
|
|
118
|
+
listOperationSpec
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Get a script package available to run on a private cloud
|
|
124
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
125
|
+
* @param privateCloudName Name of the private cloud
|
|
126
|
+
* @param scriptPackageName Name of the script package in the private cloud
|
|
127
|
+
* @param options The options parameters.
|
|
128
|
+
*/
|
|
129
|
+
get(
|
|
130
|
+
resourceGroupName: string,
|
|
131
|
+
privateCloudName: string,
|
|
132
|
+
scriptPackageName: string,
|
|
133
|
+
options?: ScriptPackagesGetOptionalParams
|
|
134
|
+
): Promise<ScriptPackagesGetResponse> {
|
|
135
|
+
return this.client.sendOperationRequest(
|
|
136
|
+
{ resourceGroupName, privateCloudName, scriptPackageName, options },
|
|
137
|
+
getOperationSpec
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* ListNext
|
|
143
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
144
|
+
* @param privateCloudName Name of the private cloud
|
|
145
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
146
|
+
* @param options The options parameters.
|
|
147
|
+
*/
|
|
148
|
+
private _listNext(
|
|
149
|
+
resourceGroupName: string,
|
|
150
|
+
privateCloudName: string,
|
|
151
|
+
nextLink: string,
|
|
152
|
+
options?: ScriptPackagesListNextOptionalParams
|
|
153
|
+
): Promise<ScriptPackagesListNextResponse> {
|
|
154
|
+
return this.client.sendOperationRequest(
|
|
155
|
+
{ resourceGroupName, privateCloudName, nextLink, options },
|
|
156
|
+
listNextOperationSpec
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
// Operation Specifications
|
|
161
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
162
|
+
|
|
163
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
164
|
+
path:
|
|
165
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages",
|
|
166
|
+
httpMethod: "GET",
|
|
167
|
+
responses: {
|
|
168
|
+
200: {
|
|
169
|
+
bodyMapper: Mappers.ScriptPackagesList
|
|
170
|
+
},
|
|
171
|
+
default: {
|
|
172
|
+
bodyMapper: Mappers.CloudError
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
queryParameters: [Parameters.apiVersion],
|
|
176
|
+
urlParameters: [
|
|
177
|
+
Parameters.$host,
|
|
178
|
+
Parameters.subscriptionId,
|
|
179
|
+
Parameters.resourceGroupName,
|
|
180
|
+
Parameters.privateCloudName
|
|
181
|
+
],
|
|
182
|
+
headerParameters: [Parameters.accept],
|
|
183
|
+
serializer
|
|
184
|
+
};
|
|
185
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
186
|
+
path:
|
|
187
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}",
|
|
188
|
+
httpMethod: "GET",
|
|
189
|
+
responses: {
|
|
190
|
+
200: {
|
|
191
|
+
bodyMapper: Mappers.ScriptPackage
|
|
192
|
+
},
|
|
193
|
+
default: {
|
|
194
|
+
bodyMapper: Mappers.CloudError
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
queryParameters: [Parameters.apiVersion],
|
|
198
|
+
urlParameters: [
|
|
199
|
+
Parameters.$host,
|
|
200
|
+
Parameters.subscriptionId,
|
|
201
|
+
Parameters.resourceGroupName,
|
|
202
|
+
Parameters.privateCloudName,
|
|
203
|
+
Parameters.scriptPackageName
|
|
204
|
+
],
|
|
205
|
+
headerParameters: [Parameters.accept],
|
|
206
|
+
serializer
|
|
207
|
+
};
|
|
208
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
209
|
+
path: "{nextLink}",
|
|
210
|
+
httpMethod: "GET",
|
|
211
|
+
responses: {
|
|
212
|
+
200: {
|
|
213
|
+
bodyMapper: Mappers.ScriptPackagesList
|
|
214
|
+
},
|
|
215
|
+
default: {
|
|
216
|
+
bodyMapper: Mappers.CloudError
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
queryParameters: [Parameters.apiVersion],
|
|
220
|
+
urlParameters: [
|
|
221
|
+
Parameters.$host,
|
|
222
|
+
Parameters.nextLink,
|
|
223
|
+
Parameters.subscriptionId,
|
|
224
|
+
Parameters.resourceGroupName,
|
|
225
|
+
Parameters.privateCloudName
|
|
226
|
+
],
|
|
227
|
+
headerParameters: [Parameters.accept],
|
|
228
|
+
serializer
|
|
229
|
+
};
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { VirtualMachines } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
VirtualMachine,
|
|
19
|
+
VirtualMachinesListNextOptionalParams,
|
|
20
|
+
VirtualMachinesListOptionalParams,
|
|
21
|
+
VirtualMachinesListResponse,
|
|
22
|
+
VirtualMachinesGetOptionalParams,
|
|
23
|
+
VirtualMachinesGetResponse,
|
|
24
|
+
VirtualMachineRestrictMovement,
|
|
25
|
+
VirtualMachinesRestrictMovementOptionalParams,
|
|
26
|
+
VirtualMachinesListNextResponse
|
|
27
|
+
} from "../models";
|
|
28
|
+
|
|
29
|
+
/// <reference lib="esnext.asynciterable" />
|
|
30
|
+
/** Class containing VirtualMachines operations. */
|
|
31
|
+
export class VirtualMachinesImpl implements VirtualMachines {
|
|
32
|
+
private readonly client: AzureVMwareSolutionAPI;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initialize a new instance of the class VirtualMachines class.
|
|
36
|
+
* @param client Reference to the service client
|
|
37
|
+
*/
|
|
38
|
+
constructor(client: AzureVMwareSolutionAPI) {
|
|
39
|
+
this.client = client;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* List of virtual machines in a private cloud cluster
|
|
44
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
+
* @param privateCloudName Name of the private cloud
|
|
46
|
+
* @param clusterName Name of the cluster in the private cloud
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
public list(
|
|
50
|
+
resourceGroupName: string,
|
|
51
|
+
privateCloudName: string,
|
|
52
|
+
clusterName: string,
|
|
53
|
+
options?: VirtualMachinesListOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<VirtualMachine> {
|
|
55
|
+
const iter = this.listPagingAll(
|
|
56
|
+
resourceGroupName,
|
|
57
|
+
privateCloudName,
|
|
58
|
+
clusterName,
|
|
59
|
+
options
|
|
60
|
+
);
|
|
61
|
+
return {
|
|
62
|
+
next() {
|
|
63
|
+
return iter.next();
|
|
64
|
+
},
|
|
65
|
+
[Symbol.asyncIterator]() {
|
|
66
|
+
return this;
|
|
67
|
+
},
|
|
68
|
+
byPage: () => {
|
|
69
|
+
return this.listPagingPage(
|
|
70
|
+
resourceGroupName,
|
|
71
|
+
privateCloudName,
|
|
72
|
+
clusterName,
|
|
73
|
+
options
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
private async *listPagingPage(
|
|
80
|
+
resourceGroupName: string,
|
|
81
|
+
privateCloudName: string,
|
|
82
|
+
clusterName: string,
|
|
83
|
+
options?: VirtualMachinesListOptionalParams
|
|
84
|
+
): AsyncIterableIterator<VirtualMachine[]> {
|
|
85
|
+
let result = await this._list(
|
|
86
|
+
resourceGroupName,
|
|
87
|
+
privateCloudName,
|
|
88
|
+
clusterName,
|
|
89
|
+
options
|
|
90
|
+
);
|
|
91
|
+
yield result.value || [];
|
|
92
|
+
let continuationToken = result.nextLink;
|
|
93
|
+
while (continuationToken) {
|
|
94
|
+
result = await this._listNext(
|
|
95
|
+
resourceGroupName,
|
|
96
|
+
privateCloudName,
|
|
97
|
+
clusterName,
|
|
98
|
+
continuationToken,
|
|
99
|
+
options
|
|
100
|
+
);
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
yield result.value || [];
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
private async *listPagingAll(
|
|
107
|
+
resourceGroupName: string,
|
|
108
|
+
privateCloudName: string,
|
|
109
|
+
clusterName: string,
|
|
110
|
+
options?: VirtualMachinesListOptionalParams
|
|
111
|
+
): AsyncIterableIterator<VirtualMachine> {
|
|
112
|
+
for await (const page of this.listPagingPage(
|
|
113
|
+
resourceGroupName,
|
|
114
|
+
privateCloudName,
|
|
115
|
+
clusterName,
|
|
116
|
+
options
|
|
117
|
+
)) {
|
|
118
|
+
yield* page;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* List of virtual machines in a private cloud cluster
|
|
124
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
125
|
+
* @param privateCloudName Name of the private cloud
|
|
126
|
+
* @param clusterName Name of the cluster in the private cloud
|
|
127
|
+
* @param options The options parameters.
|
|
128
|
+
*/
|
|
129
|
+
private _list(
|
|
130
|
+
resourceGroupName: string,
|
|
131
|
+
privateCloudName: string,
|
|
132
|
+
clusterName: string,
|
|
133
|
+
options?: VirtualMachinesListOptionalParams
|
|
134
|
+
): Promise<VirtualMachinesListResponse> {
|
|
135
|
+
return this.client.sendOperationRequest(
|
|
136
|
+
{ resourceGroupName, privateCloudName, clusterName, options },
|
|
137
|
+
listOperationSpec
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Get a virtual machine by id in a private cloud cluster
|
|
143
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
144
|
+
* @param privateCloudName Name of the private cloud
|
|
145
|
+
* @param clusterName Name of the cluster in the private cloud
|
|
146
|
+
* @param virtualMachineId Virtual Machine identifier
|
|
147
|
+
* @param options The options parameters.
|
|
148
|
+
*/
|
|
149
|
+
get(
|
|
150
|
+
resourceGroupName: string,
|
|
151
|
+
privateCloudName: string,
|
|
152
|
+
clusterName: string,
|
|
153
|
+
virtualMachineId: string,
|
|
154
|
+
options?: VirtualMachinesGetOptionalParams
|
|
155
|
+
): Promise<VirtualMachinesGetResponse> {
|
|
156
|
+
return this.client.sendOperationRequest(
|
|
157
|
+
{
|
|
158
|
+
resourceGroupName,
|
|
159
|
+
privateCloudName,
|
|
160
|
+
clusterName,
|
|
161
|
+
virtualMachineId,
|
|
162
|
+
options
|
|
163
|
+
},
|
|
164
|
+
getOperationSpec
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Enable or disable DRS-driven VM movement restriction
|
|
170
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
171
|
+
* @param privateCloudName Name of the private cloud
|
|
172
|
+
* @param clusterName Name of the cluster in the private cloud
|
|
173
|
+
* @param virtualMachineId Virtual Machine identifier
|
|
174
|
+
* @param restrictMovement Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled)
|
|
175
|
+
* @param options The options parameters.
|
|
176
|
+
*/
|
|
177
|
+
async beginRestrictMovement(
|
|
178
|
+
resourceGroupName: string,
|
|
179
|
+
privateCloudName: string,
|
|
180
|
+
clusterName: string,
|
|
181
|
+
virtualMachineId: string,
|
|
182
|
+
restrictMovement: VirtualMachineRestrictMovement,
|
|
183
|
+
options?: VirtualMachinesRestrictMovementOptionalParams
|
|
184
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
185
|
+
const directSendOperation = async (
|
|
186
|
+
args: coreClient.OperationArguments,
|
|
187
|
+
spec: coreClient.OperationSpec
|
|
188
|
+
): Promise<void> => {
|
|
189
|
+
return this.client.sendOperationRequest(args, spec);
|
|
190
|
+
};
|
|
191
|
+
const sendOperation = async (
|
|
192
|
+
args: coreClient.OperationArguments,
|
|
193
|
+
spec: coreClient.OperationSpec
|
|
194
|
+
) => {
|
|
195
|
+
let currentRawResponse:
|
|
196
|
+
| coreClient.FullOperationResponse
|
|
197
|
+
| undefined = undefined;
|
|
198
|
+
const providedCallback = args.options?.onResponse;
|
|
199
|
+
const callback: coreClient.RawResponseCallback = (
|
|
200
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
201
|
+
flatResponse: unknown
|
|
202
|
+
) => {
|
|
203
|
+
currentRawResponse = rawResponse;
|
|
204
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
205
|
+
};
|
|
206
|
+
const updatedArgs = {
|
|
207
|
+
...args,
|
|
208
|
+
options: {
|
|
209
|
+
...args.options,
|
|
210
|
+
onResponse: callback
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
214
|
+
return {
|
|
215
|
+
flatResponse,
|
|
216
|
+
rawResponse: {
|
|
217
|
+
statusCode: currentRawResponse!.status,
|
|
218
|
+
body: currentRawResponse!.parsedBody,
|
|
219
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
const lro = new LroImpl(
|
|
225
|
+
sendOperation,
|
|
226
|
+
{
|
|
227
|
+
resourceGroupName,
|
|
228
|
+
privateCloudName,
|
|
229
|
+
clusterName,
|
|
230
|
+
virtualMachineId,
|
|
231
|
+
restrictMovement,
|
|
232
|
+
options
|
|
233
|
+
},
|
|
234
|
+
restrictMovementOperationSpec
|
|
235
|
+
);
|
|
236
|
+
return new LroEngine(lro, {
|
|
237
|
+
resumeFrom: options?.resumeFrom,
|
|
238
|
+
intervalInMs: options?.updateIntervalInMs
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Enable or disable DRS-driven VM movement restriction
|
|
244
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
245
|
+
* @param privateCloudName Name of the private cloud
|
|
246
|
+
* @param clusterName Name of the cluster in the private cloud
|
|
247
|
+
* @param virtualMachineId Virtual Machine identifier
|
|
248
|
+
* @param restrictMovement Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled)
|
|
249
|
+
* @param options The options parameters.
|
|
250
|
+
*/
|
|
251
|
+
async beginRestrictMovementAndWait(
|
|
252
|
+
resourceGroupName: string,
|
|
253
|
+
privateCloudName: string,
|
|
254
|
+
clusterName: string,
|
|
255
|
+
virtualMachineId: string,
|
|
256
|
+
restrictMovement: VirtualMachineRestrictMovement,
|
|
257
|
+
options?: VirtualMachinesRestrictMovementOptionalParams
|
|
258
|
+
): Promise<void> {
|
|
259
|
+
const poller = await this.beginRestrictMovement(
|
|
260
|
+
resourceGroupName,
|
|
261
|
+
privateCloudName,
|
|
262
|
+
clusterName,
|
|
263
|
+
virtualMachineId,
|
|
264
|
+
restrictMovement,
|
|
265
|
+
options
|
|
266
|
+
);
|
|
267
|
+
return poller.pollUntilDone();
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* ListNext
|
|
272
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
273
|
+
* @param privateCloudName Name of the private cloud
|
|
274
|
+
* @param clusterName Name of the cluster in the private cloud
|
|
275
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
276
|
+
* @param options The options parameters.
|
|
277
|
+
*/
|
|
278
|
+
private _listNext(
|
|
279
|
+
resourceGroupName: string,
|
|
280
|
+
privateCloudName: string,
|
|
281
|
+
clusterName: string,
|
|
282
|
+
nextLink: string,
|
|
283
|
+
options?: VirtualMachinesListNextOptionalParams
|
|
284
|
+
): Promise<VirtualMachinesListNextResponse> {
|
|
285
|
+
return this.client.sendOperationRequest(
|
|
286
|
+
{ resourceGroupName, privateCloudName, clusterName, nextLink, options },
|
|
287
|
+
listNextOperationSpec
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
// Operation Specifications
|
|
292
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
293
|
+
|
|
294
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
295
|
+
path:
|
|
296
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines",
|
|
297
|
+
httpMethod: "GET",
|
|
298
|
+
responses: {
|
|
299
|
+
200: {
|
|
300
|
+
bodyMapper: Mappers.VirtualMachinesList
|
|
301
|
+
},
|
|
302
|
+
default: {
|
|
303
|
+
bodyMapper: Mappers.CloudError
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
queryParameters: [Parameters.apiVersion],
|
|
307
|
+
urlParameters: [
|
|
308
|
+
Parameters.$host,
|
|
309
|
+
Parameters.subscriptionId,
|
|
310
|
+
Parameters.resourceGroupName,
|
|
311
|
+
Parameters.privateCloudName,
|
|
312
|
+
Parameters.clusterName
|
|
313
|
+
],
|
|
314
|
+
headerParameters: [Parameters.accept],
|
|
315
|
+
serializer
|
|
316
|
+
};
|
|
317
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
318
|
+
path:
|
|
319
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}",
|
|
320
|
+
httpMethod: "GET",
|
|
321
|
+
responses: {
|
|
322
|
+
200: {
|
|
323
|
+
bodyMapper: Mappers.VirtualMachine
|
|
324
|
+
},
|
|
325
|
+
default: {
|
|
326
|
+
bodyMapper: Mappers.CloudError
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
queryParameters: [Parameters.apiVersion],
|
|
330
|
+
urlParameters: [
|
|
331
|
+
Parameters.$host,
|
|
332
|
+
Parameters.subscriptionId,
|
|
333
|
+
Parameters.resourceGroupName,
|
|
334
|
+
Parameters.privateCloudName,
|
|
335
|
+
Parameters.clusterName,
|
|
336
|
+
Parameters.virtualMachineId
|
|
337
|
+
],
|
|
338
|
+
headerParameters: [Parameters.accept],
|
|
339
|
+
serializer
|
|
340
|
+
};
|
|
341
|
+
const restrictMovementOperationSpec: coreClient.OperationSpec = {
|
|
342
|
+
path:
|
|
343
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement",
|
|
344
|
+
httpMethod: "POST",
|
|
345
|
+
responses: {
|
|
346
|
+
200: {},
|
|
347
|
+
201: {},
|
|
348
|
+
202: {},
|
|
349
|
+
204: {},
|
|
350
|
+
default: {
|
|
351
|
+
bodyMapper: Mappers.CloudError
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
requestBody: Parameters.restrictMovement,
|
|
355
|
+
queryParameters: [Parameters.apiVersion],
|
|
356
|
+
urlParameters: [
|
|
357
|
+
Parameters.$host,
|
|
358
|
+
Parameters.subscriptionId,
|
|
359
|
+
Parameters.resourceGroupName,
|
|
360
|
+
Parameters.privateCloudName,
|
|
361
|
+
Parameters.clusterName,
|
|
362
|
+
Parameters.virtualMachineId
|
|
363
|
+
],
|
|
364
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
365
|
+
mediaType: "json",
|
|
366
|
+
serializer
|
|
367
|
+
};
|
|
368
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
369
|
+
path: "{nextLink}",
|
|
370
|
+
httpMethod: "GET",
|
|
371
|
+
responses: {
|
|
372
|
+
200: {
|
|
373
|
+
bodyMapper: Mappers.VirtualMachinesList
|
|
374
|
+
},
|
|
375
|
+
default: {
|
|
376
|
+
bodyMapper: Mappers.CloudError
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
queryParameters: [Parameters.apiVersion],
|
|
380
|
+
urlParameters: [
|
|
381
|
+
Parameters.$host,
|
|
382
|
+
Parameters.nextLink,
|
|
383
|
+
Parameters.subscriptionId,
|
|
384
|
+
Parameters.resourceGroupName,
|
|
385
|
+
Parameters.privateCloudName,
|
|
386
|
+
Parameters.clusterName
|
|
387
|
+
],
|
|
388
|
+
headerParameters: [Parameters.accept],
|
|
389
|
+
serializer
|
|
390
|
+
};
|