@azure/arm-vmwarecloudsimple 1.1.1 → 2.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 +69 -80
- package/dist/index.js +5683 -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/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 +1328 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +44 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +59 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1185 -834
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +35 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +157 -106
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/customizationPolicies.d.ts +46 -0
- package/dist-esm/src/operations/customizationPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/customizationPolicies.js +169 -0
- package/dist-esm/src/operations/customizationPolicies.js.map +1 -0
- package/dist-esm/src/operations/dedicatedCloudNodes.d.ts +92 -0
- package/dist-esm/src/operations/dedicatedCloudNodes.d.ts.map +1 -0
- package/dist-esm/src/operations/dedicatedCloudNodes.js +446 -0
- package/dist-esm/src/operations/dedicatedCloudNodes.js.map +1 -0
- package/dist-esm/src/operations/dedicatedCloudServices.d.ts +91 -0
- package/dist-esm/src/operations/dedicatedCloudServices.d.ts.map +1 -0
- package/dist-esm/src/operations/dedicatedCloudServices.js +431 -0
- package/dist-esm/src/operations/dedicatedCloudServices.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +39 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +155 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateClouds.d.ts +42 -0
- package/dist-esm/src/operations/privateClouds.d.ts.map +1 -0
- package/dist-esm/src/operations/privateClouds.js +162 -0
- package/dist-esm/src/operations/privateClouds.js.map +1 -0
- package/dist-esm/src/operations/resourcePools.d.ts +46 -0
- package/dist-esm/src/operations/resourcePools.d.ts.map +1 -0
- package/dist-esm/src/operations/resourcePools.js +169 -0
- package/dist-esm/src/operations/resourcePools.js.map +1 -0
- package/dist-esm/src/operations/skusAvailability.d.ts +35 -0
- package/dist-esm/src/operations/skusAvailability.d.ts.map +1 -0
- package/dist-esm/src/operations/skusAvailability.js +132 -0
- package/dist-esm/src/operations/skusAvailability.js.map +1 -0
- package/dist-esm/src/operations/usages.d.ts +35 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +132 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operations/virtualMachineTemplates.d.ts +49 -0
- package/dist-esm/src/operations/virtualMachineTemplates.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineTemplates.js +172 -0
- package/dist-esm/src/operations/virtualMachineTemplates.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +135 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +687 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operations/virtualNetworks.d.ts +49 -0
- package/dist-esm/src/operations/virtualNetworks.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualNetworks.js +172 -0
- package/dist-esm/src/operations/virtualNetworks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/customizationPolicies.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/customizationPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/customizationPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/customizationPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.js +9 -0
- package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedCloudServices.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/dedicatedCloudServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedCloudServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/dedicatedCloudServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +19 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +18 -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/privateClouds.d.ts +19 -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/resourcePools.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/resourcePools.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourcePools.js +9 -0
- package/dist-esm/src/operationsInterfaces/resourcePools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/skusAvailability.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/skusAvailability.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skusAvailability.js +9 -0
- package/dist-esm/src/operationsInterfaces/skusAvailability.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineTemplates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +99 -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/virtualNetworks.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworks.js.map +1 -0
- package/dist-esm/src/vMwareCloudSimple.d.ts +30 -0
- package/dist-esm/src/vMwareCloudSimple.d.ts.map +1 -0
- package/dist-esm/src/vMwareCloudSimple.js +66 -0
- package/dist-esm/src/vMwareCloudSimple.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 +70 -32
- package/review/arm-vmwarecloudsimple.api.md +1140 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1155 -1956
- package/src/models/mappers.ts +1229 -846
- package/src/models/parameters.ts +200 -107
- package/src/operations/customizationPolicies.ts +217 -0
- package/src/operations/dedicatedCloudNodes.ts +391 -317
- package/src/operations/dedicatedCloudServices.ts +372 -319
- package/src/operations/index.ts +4 -5
- package/src/operations/operations.ts +117 -125
- package/src/operations/privateClouds.ts +131 -123
- package/src/operations/resourcePools.ts +145 -129
- package/src/operations/skusAvailability.ts +109 -85
- package/src/operations/usages.ts +109 -85
- package/src/operations/virtualMachineTemplates.ts +162 -132
- package/src/operations/virtualMachines.ts +705 -403
- package/src/operations/virtualNetworks.ts +163 -136
- package/src/operationsInterfaces/customizationPolicies.ts +44 -0
- package/src/operationsInterfaces/dedicatedCloudNodes.ts +110 -0
- package/src/operationsInterfaces/dedicatedCloudServices.ts +103 -0
- package/src/operationsInterfaces/index.ts +19 -0
- package/src/operationsInterfaces/operations.ts +38 -0
- package/src/operationsInterfaces/privateClouds.ts +40 -0
- package/src/operationsInterfaces/resourcePools.ts +44 -0
- package/src/operationsInterfaces/skusAvailability.ts +24 -0
- package/src/operationsInterfaces/usages.ts +24 -0
- package/src/operationsInterfaces/virtualMachineTemplates.ts +46 -0
- package/src/operationsInterfaces/virtualMachines.ts +191 -0
- package/src/operationsInterfaces/virtualNetworks.ts +46 -0
- package/src/vMwareCloudSimple.ts +126 -0
- package/tsconfig.json +3 -3
- package/types/arm-vmwarecloudsimple.d.ts +1861 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-vmwarecloudsimple.js +0 -4540
- package/dist/arm-vmwarecloudsimple.js.map +0 -1
- package/dist/arm-vmwarecloudsimple.min.js +0 -1
- package/dist/arm-vmwarecloudsimple.min.js.map +0 -1
- package/esm/models/dedicatedCloudNodesMappers.d.ts +0 -2
- package/esm/models/dedicatedCloudNodesMappers.d.ts.map +0 -1
- package/esm/models/dedicatedCloudNodesMappers.js +0 -9
- package/esm/models/dedicatedCloudNodesMappers.js.map +0 -1
- package/esm/models/dedicatedCloudServicesMappers.d.ts +0 -2
- package/esm/models/dedicatedCloudServicesMappers.d.ts.map +0 -1
- package/esm/models/dedicatedCloudServicesMappers.js +0 -9
- package/esm/models/dedicatedCloudServicesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2190
- 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/mappers.d.ts +0 -46
- package/esm/models/mappers.d.ts.map +0 -1
- 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 -24
- package/esm/models/parameters.d.ts.map +0 -1
- 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/models/resourcePoolsMappers.d.ts +0 -2
- package/esm/models/resourcePoolsMappers.d.ts.map +0 -1
- package/esm/models/resourcePoolsMappers.js +0 -9
- package/esm/models/resourcePoolsMappers.js.map +0 -1
- package/esm/models/skusAvailabilityMappers.d.ts +0 -2
- package/esm/models/skusAvailabilityMappers.d.ts.map +0 -1
- package/esm/models/skusAvailabilityMappers.js +0 -9
- package/esm/models/skusAvailabilityMappers.js.map +0 -1
- package/esm/models/usagesMappers.d.ts +0 -2
- package/esm/models/usagesMappers.d.ts.map +0 -1
- package/esm/models/usagesMappers.js +0 -9
- package/esm/models/usagesMappers.js.map +0 -1
- package/esm/models/virtualMachineTemplatesMappers.d.ts +0 -2
- package/esm/models/virtualMachineTemplatesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachineTemplatesMappers.js +0 -9
- package/esm/models/virtualMachineTemplatesMappers.js.map +0 -1
- package/esm/models/virtualMachinesMappers.d.ts +0 -2
- package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachinesMappers.js +0 -9
- package/esm/models/virtualMachinesMappers.js.map +0 -1
- package/esm/models/virtualNetworksMappers.d.ts +0 -2
- package/esm/models/virtualNetworksMappers.d.ts.map +0 -1
- package/esm/models/virtualNetworksMappers.js +0 -9
- package/esm/models/virtualNetworksMappers.js.map +0 -1
- package/esm/operations/dedicatedCloudNodes.d.ts +0 -173
- package/esm/operations/dedicatedCloudNodes.d.ts.map +0 -1
- package/esm/operations/dedicatedCloudNodes.js +0 -304
- package/esm/operations/dedicatedCloudNodes.js.map +0 -1
- package/esm/operations/dedicatedCloudServices.d.ts +0 -174
- package/esm/operations/dedicatedCloudServices.d.ts.map +0 -1
- package/esm/operations/dedicatedCloudServices.js +0 -300
- package/esm/operations/dedicatedCloudServices.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -70
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -116
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateClouds.d.ts +0 -73
- package/esm/operations/privateClouds.d.ts.map +0 -1
- package/esm/operations/privateClouds.js +0 -113
- package/esm/operations/privateClouds.js.map +0 -1
- package/esm/operations/resourcePools.d.ts +0 -79
- package/esm/operations/resourcePools.d.ts.map +0 -1
- package/esm/operations/resourcePools.js +0 -117
- package/esm/operations/resourcePools.js.map +0 -1
- package/esm/operations/skusAvailability.d.ts +0 -51
- package/esm/operations/skusAvailability.d.ts.map +0 -1
- package/esm/operations/skusAvailability.js +0 -83
- package/esm/operations/skusAvailability.js.map +0 -1
- package/esm/operations/usages.d.ts +0 -51
- package/esm/operations/usages.d.ts.map +0 -1
- package/esm/operations/usages.js +0 -83
- package/esm/operations/usages.js.map +0 -1
- package/esm/operations/virtualMachineTemplates.d.ts +0 -82
- package/esm/operations/virtualMachineTemplates.d.ts.map +0 -1
- package/esm/operations/virtualMachineTemplates.js +0 -119
- package/esm/operations/virtualMachineTemplates.js.map +0 -1
- package/esm/operations/virtualMachines.d.ts +0 -201
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -472
- package/esm/operations/virtualMachines.js.map +0 -1
- package/esm/operations/virtualNetworks.d.ts +0 -85
- package/esm/operations/virtualNetworks.d.ts.map +0 -1
- package/esm/operations/virtualNetworks.js +0 -119
- package/esm/operations/virtualNetworks.js.map +0 -1
- package/esm/vMwareCloudSimpleClient.d.ts +0 -34
- package/esm/vMwareCloudSimpleClient.d.ts.map +0 -1
- package/esm/vMwareCloudSimpleClient.js +0 -48
- package/esm/vMwareCloudSimpleClient.js.map +0 -1
- package/esm/vMwareCloudSimpleClientContext.d.ts +0 -24
- package/esm/vMwareCloudSimpleClientContext.d.ts.map +0 -1
- package/esm/vMwareCloudSimpleClientContext.js +0 -66
- package/esm/vMwareCloudSimpleClientContext.js.map +0 -1
- package/src/models/dedicatedCloudNodesMappers.ts +0 -26
- package/src/models/dedicatedCloudServicesMappers.ts +0 -25
- package/src/models/operationsMappers.ts +0 -20
- package/src/models/privateCloudsMappers.ts +0 -20
- package/src/models/resourcePoolsMappers.ts +0 -14
- package/src/models/skusAvailabilityMappers.ts +0 -14
- package/src/models/usagesMappers.ts +0 -15
- package/src/models/virtualMachineTemplatesMappers.ts +0 -18
- package/src/models/virtualMachinesMappers.ts +0 -29
- package/src/models/virtualNetworksMappers.ts +0 -14
- package/src/vMwareCloudSimpleClient.ts +0 -67
- package/src/vMwareCloudSimpleClientContext.ts +0 -74
package/src/operations/index.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
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
9
|
export * from "./operations";
|
|
@@ -13,6 +11,7 @@ export * from "./dedicatedCloudNodes";
|
|
|
13
11
|
export * from "./dedicatedCloudServices";
|
|
14
12
|
export * from "./skusAvailability";
|
|
15
13
|
export * from "./privateClouds";
|
|
14
|
+
export * from "./customizationPolicies";
|
|
16
15
|
export * from "./resourcePools";
|
|
17
16
|
export * from "./virtualMachineTemplates";
|
|
18
17
|
export * from "./virtualNetworks";
|
|
@@ -1,191 +1,183 @@
|
|
|
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
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { VMwareCloudSimple } from "../vMwareCloudSimple";
|
|
15
|
+
import {
|
|
16
|
+
AvailableOperation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsGetOptionalParams,
|
|
21
|
+
OperationsGetResponse,
|
|
22
|
+
OperationsListNextResponse
|
|
23
|
+
} from "../models";
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Class containing Operations operations. */
|
|
27
|
+
export class OperationsImpl implements Operations {
|
|
28
|
+
private readonly client: VMwareCloudSimple;
|
|
20
29
|
|
|
21
30
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
31
|
+
* Initialize a new instance of the class Operations class.
|
|
32
|
+
* @param client Reference to the service client
|
|
24
33
|
*/
|
|
25
|
-
constructor(client:
|
|
34
|
+
constructor(client: VMwareCloudSimple) {
|
|
26
35
|
this.client = client;
|
|
27
36
|
}
|
|
28
37
|
|
|
29
38
|
/**
|
|
30
39
|
* Return list of operations
|
|
31
|
-
* @
|
|
32
|
-
* @param [options] The optional parameters
|
|
33
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
40
|
+
* @param options The options parameters.
|
|
34
41
|
*/
|
|
35
|
-
list(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AvailableOperationsListResponse>, callback?: msRest.ServiceCallback<Models.AvailableOperationsListResponse>): Promise<Models.OperationsListResponse> {
|
|
46
|
-
return this.client.sendOperationRequest(
|
|
47
|
-
{
|
|
48
|
-
options
|
|
42
|
+
public list(
|
|
43
|
+
options?: OperationsListOptionalParams
|
|
44
|
+
): PagedAsyncIterableIterator<AvailableOperation> {
|
|
45
|
+
const iter = this.listPagingAll(options);
|
|
46
|
+
return {
|
|
47
|
+
next() {
|
|
48
|
+
return iter.next();
|
|
49
|
+
},
|
|
50
|
+
[Symbol.asyncIterator]() {
|
|
51
|
+
return this;
|
|
49
52
|
},
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
byPage: () => {
|
|
54
|
+
return this.listPagingPage(options);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private async *listPagingPage(
|
|
60
|
+
options?: OperationsListOptionalParams
|
|
61
|
+
): AsyncIterableIterator<AvailableOperation[]> {
|
|
62
|
+
let result = await this._list(options);
|
|
63
|
+
yield result.value || [];
|
|
64
|
+
let continuationToken = result.nextLink;
|
|
65
|
+
while (continuationToken) {
|
|
66
|
+
result = await this._listNext(continuationToken, options);
|
|
67
|
+
continuationToken = result.nextLink;
|
|
68
|
+
yield result.value || [];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private async *listPagingAll(
|
|
73
|
+
options?: OperationsListOptionalParams
|
|
74
|
+
): AsyncIterableIterator<AvailableOperation> {
|
|
75
|
+
for await (const page of this.listPagingPage(options)) {
|
|
76
|
+
yield* page;
|
|
77
|
+
}
|
|
52
78
|
}
|
|
53
79
|
|
|
54
80
|
/**
|
|
55
|
-
* Return
|
|
56
|
-
* @
|
|
57
|
-
* @param regionId The region Id (westus, eastus)
|
|
58
|
-
* @param operationId operation id
|
|
59
|
-
* @param [options] The optional parameters
|
|
60
|
-
* @returns Promise<Models.OperationsGetResponse>
|
|
61
|
-
*/
|
|
62
|
-
get(regionId: string, operationId: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsGetResponse>;
|
|
63
|
-
/**
|
|
64
|
-
* @param regionId The region Id (westus, eastus)
|
|
65
|
-
* @param operationId operation id
|
|
66
|
-
* @param callback The callback
|
|
81
|
+
* Return list of operations
|
|
82
|
+
* @param options The options parameters.
|
|
67
83
|
*/
|
|
68
|
-
|
|
84
|
+
private _list(
|
|
85
|
+
options?: OperationsListOptionalParams
|
|
86
|
+
): Promise<OperationsListResponse> {
|
|
87
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
88
|
+
}
|
|
89
|
+
|
|
69
90
|
/**
|
|
91
|
+
* Return an async operation
|
|
70
92
|
* @param regionId The region Id (westus, eastus)
|
|
71
93
|
* @param operationId operation id
|
|
72
|
-
* @param options The
|
|
73
|
-
* @param callback The callback
|
|
94
|
+
* @param options The options parameters.
|
|
74
95
|
*/
|
|
75
|
-
get(
|
|
76
|
-
|
|
96
|
+
get(
|
|
97
|
+
regionId: string,
|
|
98
|
+
operationId: string,
|
|
99
|
+
options?: OperationsGetOptionalParams
|
|
100
|
+
): Promise<OperationsGetResponse> {
|
|
77
101
|
return this.client.sendOperationRequest(
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
options
|
|
82
|
-
},
|
|
83
|
-
getOperationSpec,
|
|
84
|
-
callback) as Promise<Models.OperationsGetResponse>;
|
|
102
|
+
{ regionId, operationId, options },
|
|
103
|
+
getOperationSpec
|
|
104
|
+
);
|
|
85
105
|
}
|
|
86
106
|
|
|
87
107
|
/**
|
|
88
|
-
*
|
|
89
|
-
* @
|
|
90
|
-
* @param
|
|
91
|
-
* @param [options] The optional parameters
|
|
92
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
93
|
-
*/
|
|
94
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
95
|
-
/**
|
|
96
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
97
|
-
* @param callback The callback
|
|
98
|
-
*/
|
|
99
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.AvailableOperationsListResponse>): void;
|
|
100
|
-
/**
|
|
101
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
102
|
-
* @param options The optional parameters
|
|
103
|
-
* @param callback The callback
|
|
108
|
+
* ListNext
|
|
109
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
110
|
+
* @param options The options parameters.
|
|
104
111
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
112
|
+
private _listNext(
|
|
113
|
+
nextLink: string,
|
|
114
|
+
options?: OperationsListNextOptionalParams
|
|
115
|
+
): Promise<OperationsListNextResponse> {
|
|
107
116
|
return this.client.sendOperationRequest(
|
|
108
|
-
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
listNextOperationSpec,
|
|
113
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
117
|
+
{ nextLink, options },
|
|
118
|
+
listNextOperationSpec
|
|
119
|
+
);
|
|
114
120
|
}
|
|
115
121
|
}
|
|
116
|
-
|
|
117
122
|
// Operation Specifications
|
|
118
|
-
const serializer =
|
|
119
|
-
|
|
123
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
124
|
+
|
|
125
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
126
|
+
path: "/providers/Microsoft.VMwareCloudSimple/operations",
|
|
120
127
|
httpMethod: "GET",
|
|
121
|
-
path: "providers/Microsoft.VMwareCloudSimple/operations",
|
|
122
|
-
queryParameters: [
|
|
123
|
-
Parameters.apiVersion
|
|
124
|
-
],
|
|
125
|
-
headerParameters: [
|
|
126
|
-
Parameters.acceptLanguage
|
|
127
|
-
],
|
|
128
128
|
responses: {
|
|
129
129
|
200: {
|
|
130
130
|
bodyMapper: Mappers.AvailableOperationsListResponse
|
|
131
131
|
},
|
|
132
132
|
default: {
|
|
133
|
-
bodyMapper: Mappers.
|
|
133
|
+
bodyMapper: Mappers.CsrpError
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
|
+
queryParameters: [Parameters.apiVersion],
|
|
137
|
+
urlParameters: [Parameters.$host],
|
|
138
|
+
headerParameters: [Parameters.accept],
|
|
136
139
|
serializer
|
|
137
140
|
};
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
142
|
+
path:
|
|
143
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/operationResults/{operationId}",
|
|
140
144
|
httpMethod: "GET",
|
|
141
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/operationResults/{operationId}",
|
|
142
|
-
urlParameters: [
|
|
143
|
-
Parameters.subscriptionId,
|
|
144
|
-
Parameters.regionId,
|
|
145
|
-
Parameters.operationId
|
|
146
|
-
],
|
|
147
|
-
queryParameters: [
|
|
148
|
-
Parameters.apiVersion
|
|
149
|
-
],
|
|
150
|
-
headerParameters: [
|
|
151
|
-
Parameters.referer,
|
|
152
|
-
Parameters.acceptLanguage
|
|
153
|
-
],
|
|
154
145
|
responses: {
|
|
155
146
|
200: {
|
|
156
|
-
bodyMapper: Mappers.OperationResource
|
|
157
|
-
headersMapper: Mappers.OperationsGetHeaders
|
|
147
|
+
bodyMapper: Mappers.OperationResource
|
|
158
148
|
},
|
|
159
149
|
202: {
|
|
160
150
|
headersMapper: Mappers.OperationsGetHeaders
|
|
161
151
|
},
|
|
162
|
-
204: {
|
|
163
|
-
headersMapper: Mappers.OperationsGetHeaders
|
|
164
|
-
},
|
|
152
|
+
204: {},
|
|
165
153
|
default: {
|
|
166
|
-
bodyMapper: Mappers.
|
|
154
|
+
bodyMapper: Mappers.CsrpError,
|
|
155
|
+
headersMapper: Mappers.OperationsGetExceptionHeaders
|
|
167
156
|
}
|
|
168
157
|
},
|
|
158
|
+
queryParameters: [Parameters.apiVersion],
|
|
159
|
+
urlParameters: [
|
|
160
|
+
Parameters.$host,
|
|
161
|
+
Parameters.subscriptionId,
|
|
162
|
+
Parameters.regionId,
|
|
163
|
+
Parameters.operationId
|
|
164
|
+
],
|
|
165
|
+
headerParameters: [Parameters.accept, Parameters.referer],
|
|
169
166
|
serializer
|
|
170
167
|
};
|
|
171
|
-
|
|
172
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
173
|
-
httpMethod: "GET",
|
|
174
|
-
baseUrl: "https://management.azure.com",
|
|
168
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
175
169
|
path: "{nextLink}",
|
|
176
|
-
|
|
177
|
-
Parameters.nextPageLink
|
|
178
|
-
],
|
|
179
|
-
headerParameters: [
|
|
180
|
-
Parameters.acceptLanguage
|
|
181
|
-
],
|
|
170
|
+
httpMethod: "GET",
|
|
182
171
|
responses: {
|
|
183
172
|
200: {
|
|
184
173
|
bodyMapper: Mappers.AvailableOperationsListResponse
|
|
185
174
|
},
|
|
186
175
|
default: {
|
|
187
|
-
bodyMapper: Mappers.
|
|
176
|
+
bodyMapper: Mappers.CsrpError
|
|
188
177
|
}
|
|
189
178
|
},
|
|
179
|
+
queryParameters: [Parameters.apiVersion],
|
|
180
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
181
|
+
headerParameters: [Parameters.accept],
|
|
190
182
|
serializer
|
|
191
183
|
};
|
|
@@ -1,191 +1,199 @@
|
|
|
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
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PrivateClouds } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { VMwareCloudSimple } from "../vMwareCloudSimple";
|
|
15
|
+
import {
|
|
16
|
+
PrivateCloud,
|
|
17
|
+
PrivateCloudsListNextOptionalParams,
|
|
18
|
+
PrivateCloudsListOptionalParams,
|
|
19
|
+
PrivateCloudsListResponse,
|
|
20
|
+
PrivateCloudsGetOptionalParams,
|
|
21
|
+
PrivateCloudsGetResponse,
|
|
22
|
+
PrivateCloudsListNextResponse
|
|
23
|
+
} from "../models";
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Class containing PrivateClouds operations. */
|
|
27
|
+
export class PrivateCloudsImpl implements PrivateClouds {
|
|
28
|
+
private readonly client: VMwareCloudSimple;
|
|
20
29
|
|
|
21
30
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
31
|
+
* Initialize a new instance of the class PrivateClouds class.
|
|
32
|
+
* @param client Reference to the service client
|
|
24
33
|
*/
|
|
25
|
-
constructor(client:
|
|
34
|
+
constructor(client: VMwareCloudSimple) {
|
|
26
35
|
this.client = client;
|
|
27
36
|
}
|
|
28
37
|
|
|
29
38
|
/**
|
|
30
39
|
* Returns list of private clouds in particular region
|
|
31
|
-
* @summary Implements private cloud list GET method
|
|
32
40
|
* @param regionId The region Id (westus, eastus)
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.PrivateCloudsListResponse>
|
|
41
|
+
* @param options The options parameters.
|
|
35
42
|
*/
|
|
36
|
-
list(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
public list(
|
|
44
|
+
regionId: string,
|
|
45
|
+
options?: PrivateCloudsListOptionalParams
|
|
46
|
+
): PagedAsyncIterableIterator<PrivateCloud> {
|
|
47
|
+
const iter = this.listPagingAll(regionId, options);
|
|
48
|
+
return {
|
|
49
|
+
next() {
|
|
50
|
+
return iter.next();
|
|
51
|
+
},
|
|
52
|
+
[Symbol.asyncIterator]() {
|
|
53
|
+
return this;
|
|
54
|
+
},
|
|
55
|
+
byPage: () => {
|
|
56
|
+
return this.listPagingPage(regionId, options);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private async *listPagingPage(
|
|
62
|
+
regionId: string,
|
|
63
|
+
options?: PrivateCloudsListOptionalParams
|
|
64
|
+
): AsyncIterableIterator<PrivateCloud[]> {
|
|
65
|
+
let result = await this._list(regionId, options);
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
let continuationToken = result.nextLink;
|
|
68
|
+
while (continuationToken) {
|
|
69
|
+
result = await this._listNext(regionId, continuationToken, options);
|
|
70
|
+
continuationToken = result.nextLink;
|
|
71
|
+
yield result.value || [];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listPagingAll(
|
|
76
|
+
regionId: string,
|
|
77
|
+
options?: PrivateCloudsListOptionalParams
|
|
78
|
+
): AsyncIterableIterator<PrivateCloud> {
|
|
79
|
+
for await (const page of this.listPagingPage(regionId, options)) {
|
|
80
|
+
yield* page;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
42
84
|
/**
|
|
85
|
+
* Returns list of private clouds in particular region
|
|
43
86
|
* @param regionId The region Id (westus, eastus)
|
|
44
|
-
* @param options The
|
|
45
|
-
* @param callback The callback
|
|
87
|
+
* @param options The options parameters.
|
|
46
88
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
89
|
+
private _list(
|
|
90
|
+
regionId: string,
|
|
91
|
+
options?: PrivateCloudsListOptionalParams
|
|
92
|
+
): Promise<PrivateCloudsListResponse> {
|
|
49
93
|
return this.client.sendOperationRequest(
|
|
50
|
-
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
listOperationSpec,
|
|
55
|
-
callback) as Promise<Models.PrivateCloudsListResponse>;
|
|
94
|
+
{ regionId, options },
|
|
95
|
+
listOperationSpec
|
|
96
|
+
);
|
|
56
97
|
}
|
|
57
98
|
|
|
58
99
|
/**
|
|
59
100
|
* Returns private cloud by its name
|
|
60
|
-
* @summary Implements private cloud GET method
|
|
61
101
|
* @param pcName The private cloud name
|
|
62
102
|
* @param regionId The region Id (westus, eastus)
|
|
63
|
-
* @param
|
|
64
|
-
* @returns Promise<Models.PrivateCloudsGetResponse>
|
|
103
|
+
* @param options The options parameters.
|
|
65
104
|
*/
|
|
66
|
-
get(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*/
|
|
72
|
-
get(pcName: string, regionId: string, callback: msRest.ServiceCallback<Models.PrivateCloud>): void;
|
|
73
|
-
/**
|
|
74
|
-
* @param pcName The private cloud name
|
|
75
|
-
* @param regionId The region Id (westus, eastus)
|
|
76
|
-
* @param options The optional parameters
|
|
77
|
-
* @param callback The callback
|
|
78
|
-
*/
|
|
79
|
-
get(pcName: string, regionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateCloud>): void;
|
|
80
|
-
get(pcName: string, regionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateCloud>, callback?: msRest.ServiceCallback<Models.PrivateCloud>): Promise<Models.PrivateCloudsGetResponse> {
|
|
105
|
+
get(
|
|
106
|
+
pcName: string,
|
|
107
|
+
regionId: string,
|
|
108
|
+
options?: PrivateCloudsGetOptionalParams
|
|
109
|
+
): Promise<PrivateCloudsGetResponse> {
|
|
81
110
|
return this.client.sendOperationRequest(
|
|
82
|
-
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
options
|
|
86
|
-
},
|
|
87
|
-
getOperationSpec,
|
|
88
|
-
callback) as Promise<Models.PrivateCloudsGetResponse>;
|
|
111
|
+
{ pcName, regionId, options },
|
|
112
|
+
getOperationSpec
|
|
113
|
+
);
|
|
89
114
|
}
|
|
90
115
|
|
|
91
116
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @
|
|
94
|
-
* @param
|
|
95
|
-
* @param
|
|
96
|
-
* @returns Promise<Models.PrivateCloudsListNextResponse>
|
|
97
|
-
*/
|
|
98
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateCloudsListNextResponse>;
|
|
99
|
-
/**
|
|
100
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
101
|
-
* @param callback The callback
|
|
102
|
-
*/
|
|
103
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PrivateCloudList>): void;
|
|
104
|
-
/**
|
|
105
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
106
|
-
* @param options The optional parameters
|
|
107
|
-
* @param callback The callback
|
|
117
|
+
* ListNext
|
|
118
|
+
* @param regionId The region Id (westus, eastus)
|
|
119
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
120
|
+
* @param options The options parameters.
|
|
108
121
|
*/
|
|
109
|
-
|
|
110
|
-
|
|
122
|
+
private _listNext(
|
|
123
|
+
regionId: string,
|
|
124
|
+
nextLink: string,
|
|
125
|
+
options?: PrivateCloudsListNextOptionalParams
|
|
126
|
+
): Promise<PrivateCloudsListNextResponse> {
|
|
111
127
|
return this.client.sendOperationRequest(
|
|
112
|
-
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
listNextOperationSpec,
|
|
117
|
-
callback) as Promise<Models.PrivateCloudsListNextResponse>;
|
|
128
|
+
{ regionId, nextLink, options },
|
|
129
|
+
listNextOperationSpec
|
|
130
|
+
);
|
|
118
131
|
}
|
|
119
132
|
}
|
|
120
|
-
|
|
121
133
|
// Operation Specifications
|
|
122
|
-
const serializer =
|
|
123
|
-
|
|
134
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
135
|
+
|
|
136
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
137
|
+
path:
|
|
138
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds",
|
|
124
139
|
httpMethod: "GET",
|
|
125
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds",
|
|
126
|
-
urlParameters: [
|
|
127
|
-
Parameters.subscriptionId,
|
|
128
|
-
Parameters.regionId
|
|
129
|
-
],
|
|
130
|
-
queryParameters: [
|
|
131
|
-
Parameters.apiVersion
|
|
132
|
-
],
|
|
133
|
-
headerParameters: [
|
|
134
|
-
Parameters.acceptLanguage
|
|
135
|
-
],
|
|
136
140
|
responses: {
|
|
137
141
|
200: {
|
|
138
142
|
bodyMapper: Mappers.PrivateCloudList
|
|
139
143
|
},
|
|
140
144
|
default: {
|
|
141
|
-
bodyMapper: Mappers.
|
|
145
|
+
bodyMapper: Mappers.CsrpError
|
|
142
146
|
}
|
|
143
147
|
},
|
|
144
|
-
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
148
|
-
httpMethod: "GET",
|
|
149
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}",
|
|
148
|
+
queryParameters: [Parameters.apiVersion],
|
|
150
149
|
urlParameters: [
|
|
150
|
+
Parameters.$host,
|
|
151
151
|
Parameters.subscriptionId,
|
|
152
|
-
Parameters.pcName,
|
|
153
152
|
Parameters.regionId
|
|
154
153
|
],
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
154
|
+
headerParameters: [Parameters.accept],
|
|
155
|
+
serializer
|
|
156
|
+
};
|
|
157
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
158
|
+
path:
|
|
159
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}",
|
|
160
|
+
httpMethod: "GET",
|
|
161
161
|
responses: {
|
|
162
162
|
200: {
|
|
163
163
|
bodyMapper: Mappers.PrivateCloud
|
|
164
164
|
},
|
|
165
165
|
default: {
|
|
166
|
-
bodyMapper: Mappers.
|
|
166
|
+
bodyMapper: Mappers.CsrpError
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
+
queryParameters: [Parameters.apiVersion],
|
|
170
|
+
urlParameters: [
|
|
171
|
+
Parameters.$host,
|
|
172
|
+
Parameters.subscriptionId,
|
|
173
|
+
Parameters.regionId,
|
|
174
|
+
Parameters.pcName
|
|
175
|
+
],
|
|
176
|
+
headerParameters: [Parameters.accept],
|
|
169
177
|
serializer
|
|
170
178
|
};
|
|
171
|
-
|
|
172
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
173
|
-
httpMethod: "GET",
|
|
174
|
-
baseUrl: "https://management.azure.com",
|
|
179
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
175
180
|
path: "{nextLink}",
|
|
176
|
-
|
|
177
|
-
Parameters.nextPageLink
|
|
178
|
-
],
|
|
179
|
-
headerParameters: [
|
|
180
|
-
Parameters.acceptLanguage
|
|
181
|
-
],
|
|
181
|
+
httpMethod: "GET",
|
|
182
182
|
responses: {
|
|
183
183
|
200: {
|
|
184
184
|
bodyMapper: Mappers.PrivateCloudList
|
|
185
185
|
},
|
|
186
186
|
default: {
|
|
187
|
-
bodyMapper: Mappers.
|
|
187
|
+
bodyMapper: Mappers.CsrpError
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
|
+
queryParameters: [Parameters.apiVersion],
|
|
191
|
+
urlParameters: [
|
|
192
|
+
Parameters.$host,
|
|
193
|
+
Parameters.subscriptionId,
|
|
194
|
+
Parameters.regionId,
|
|
195
|
+
Parameters.nextLink
|
|
196
|
+
],
|
|
197
|
+
headerParameters: [Parameters.accept],
|
|
190
198
|
serializer
|
|
191
199
|
};
|