@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
|
@@ -1,201 +1,217 @@
|
|
|
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 { ResourcePools } 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
|
+
ResourcePool,
|
|
17
|
+
ResourcePoolsListNextOptionalParams,
|
|
18
|
+
ResourcePoolsListOptionalParams,
|
|
19
|
+
ResourcePoolsListOperationResponse,
|
|
20
|
+
ResourcePoolsGetOptionalParams,
|
|
21
|
+
ResourcePoolsGetResponse,
|
|
22
|
+
ResourcePoolsListNextResponse
|
|
23
|
+
} from "../models";
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Class containing ResourcePools operations. */
|
|
27
|
+
export class ResourcePoolsImpl implements ResourcePools {
|
|
28
|
+
private readonly client: VMwareCloudSimple;
|
|
20
29
|
|
|
21
30
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
31
|
+
* Initialize a new instance of the class ResourcePools 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 resource pools in region for private cloud
|
|
31
|
-
* @summary Implements get of resource pools list
|
|
32
40
|
* @param regionId The region Id (westus, eastus)
|
|
33
41
|
* @param pcName The private cloud name
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.ResourcePoolsListResponse2>
|
|
42
|
+
* @param options The options parameters.
|
|
36
43
|
*/
|
|
37
|
-
list(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
public list(
|
|
45
|
+
regionId: string,
|
|
46
|
+
pcName: string,
|
|
47
|
+
options?: ResourcePoolsListOptionalParams
|
|
48
|
+
): PagedAsyncIterableIterator<ResourcePool> {
|
|
49
|
+
const iter = this.listPagingAll(regionId, pcName, options);
|
|
50
|
+
return {
|
|
51
|
+
next() {
|
|
52
|
+
return iter.next();
|
|
53
|
+
},
|
|
54
|
+
[Symbol.asyncIterator]() {
|
|
55
|
+
return this;
|
|
56
|
+
},
|
|
57
|
+
byPage: () => {
|
|
58
|
+
return this.listPagingPage(regionId, pcName, options);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private async *listPagingPage(
|
|
64
|
+
regionId: string,
|
|
65
|
+
pcName: string,
|
|
66
|
+
options?: ResourcePoolsListOptionalParams
|
|
67
|
+
): AsyncIterableIterator<ResourcePool[]> {
|
|
68
|
+
let result = await this._list(regionId, pcName, options);
|
|
69
|
+
yield result.value || [];
|
|
70
|
+
let continuationToken = result.nextLink;
|
|
71
|
+
while (continuationToken) {
|
|
72
|
+
result = await this._listNext(
|
|
54
73
|
regionId,
|
|
55
74
|
pcName,
|
|
75
|
+
continuationToken,
|
|
56
76
|
options
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
77
|
+
);
|
|
78
|
+
continuationToken = result.nextLink;
|
|
79
|
+
yield result.value || [];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
private async *listPagingAll(
|
|
84
|
+
regionId: string,
|
|
85
|
+
pcName: string,
|
|
86
|
+
options?: ResourcePoolsListOptionalParams
|
|
87
|
+
): AsyncIterableIterator<ResourcePool> {
|
|
88
|
+
for await (const page of this.listPagingPage(regionId, pcName, options)) {
|
|
89
|
+
yield* page;
|
|
90
|
+
}
|
|
60
91
|
}
|
|
61
92
|
|
|
62
93
|
/**
|
|
63
|
-
* Returns resource
|
|
64
|
-
* @summary Implements get of resource pool
|
|
65
|
-
* @param regionId The region Id (westus, eastus)
|
|
66
|
-
* @param pcName The private cloud name
|
|
67
|
-
* @param resourcePoolName resource pool id (vsphereId)
|
|
68
|
-
* @param [options] The optional parameters
|
|
69
|
-
* @returns Promise<Models.ResourcePoolsGetResponse>
|
|
70
|
-
*/
|
|
71
|
-
get(regionId: string, pcName: string, resourcePoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.ResourcePoolsGetResponse>;
|
|
72
|
-
/**
|
|
94
|
+
* Returns list of resource pools in region for private cloud
|
|
73
95
|
* @param regionId The region Id (westus, eastus)
|
|
74
96
|
* @param pcName The private cloud name
|
|
75
|
-
* @param
|
|
76
|
-
* @param callback The callback
|
|
97
|
+
* @param options The options parameters.
|
|
77
98
|
*/
|
|
78
|
-
|
|
99
|
+
private _list(
|
|
100
|
+
regionId: string,
|
|
101
|
+
pcName: string,
|
|
102
|
+
options?: ResourcePoolsListOptionalParams
|
|
103
|
+
): Promise<ResourcePoolsListOperationResponse> {
|
|
104
|
+
return this.client.sendOperationRequest(
|
|
105
|
+
{ regionId, pcName, options },
|
|
106
|
+
listOperationSpec
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
79
110
|
/**
|
|
111
|
+
* Returns resource pool templates by its name
|
|
80
112
|
* @param regionId The region Id (westus, eastus)
|
|
81
113
|
* @param pcName The private cloud name
|
|
82
114
|
* @param resourcePoolName resource pool id (vsphereId)
|
|
83
|
-
* @param options The
|
|
84
|
-
* @param callback The callback
|
|
115
|
+
* @param options The options parameters.
|
|
85
116
|
*/
|
|
86
|
-
get(
|
|
87
|
-
|
|
117
|
+
get(
|
|
118
|
+
regionId: string,
|
|
119
|
+
pcName: string,
|
|
120
|
+
resourcePoolName: string,
|
|
121
|
+
options?: ResourcePoolsGetOptionalParams
|
|
122
|
+
): Promise<ResourcePoolsGetResponse> {
|
|
88
123
|
return this.client.sendOperationRequest(
|
|
89
|
-
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
resourcePoolName,
|
|
93
|
-
options
|
|
94
|
-
},
|
|
95
|
-
getOperationSpec,
|
|
96
|
-
callback) as Promise<Models.ResourcePoolsGetResponse>;
|
|
124
|
+
{ regionId, pcName, resourcePoolName, options },
|
|
125
|
+
getOperationSpec
|
|
126
|
+
);
|
|
97
127
|
}
|
|
98
128
|
|
|
99
129
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @
|
|
102
|
-
* @param
|
|
103
|
-
* @param
|
|
104
|
-
* @
|
|
105
|
-
*/
|
|
106
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ResourcePoolsListNextResponse>;
|
|
107
|
-
/**
|
|
108
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
109
|
-
* @param callback The callback
|
|
110
|
-
*/
|
|
111
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ResourcePoolsListResponse>): void;
|
|
112
|
-
/**
|
|
113
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
114
|
-
* @param options The optional parameters
|
|
115
|
-
* @param callback The callback
|
|
130
|
+
* ListNext
|
|
131
|
+
* @param regionId The region Id (westus, eastus)
|
|
132
|
+
* @param pcName The private cloud name
|
|
133
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
134
|
+
* @param options The options parameters.
|
|
116
135
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
136
|
+
private _listNext(
|
|
137
|
+
regionId: string,
|
|
138
|
+
pcName: string,
|
|
139
|
+
nextLink: string,
|
|
140
|
+
options?: ResourcePoolsListNextOptionalParams
|
|
141
|
+
): Promise<ResourcePoolsListNextResponse> {
|
|
119
142
|
return this.client.sendOperationRequest(
|
|
120
|
-
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
listNextOperationSpec,
|
|
125
|
-
callback) as Promise<Models.ResourcePoolsListNextResponse>;
|
|
143
|
+
{ regionId, pcName, nextLink, options },
|
|
144
|
+
listNextOperationSpec
|
|
145
|
+
);
|
|
126
146
|
}
|
|
127
147
|
}
|
|
128
|
-
|
|
129
148
|
// Operation Specifications
|
|
130
|
-
const serializer =
|
|
131
|
-
|
|
149
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
150
|
+
|
|
151
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
152
|
+
path:
|
|
153
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools",
|
|
132
154
|
httpMethod: "GET",
|
|
133
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools",
|
|
134
|
-
urlParameters: [
|
|
135
|
-
Parameters.subscriptionId,
|
|
136
|
-
Parameters.regionId,
|
|
137
|
-
Parameters.pcName
|
|
138
|
-
],
|
|
139
|
-
queryParameters: [
|
|
140
|
-
Parameters.apiVersion
|
|
141
|
-
],
|
|
142
|
-
headerParameters: [
|
|
143
|
-
Parameters.acceptLanguage
|
|
144
|
-
],
|
|
145
155
|
responses: {
|
|
146
156
|
200: {
|
|
147
157
|
bodyMapper: Mappers.ResourcePoolsListResponse
|
|
148
158
|
},
|
|
149
159
|
default: {
|
|
150
|
-
bodyMapper: Mappers.
|
|
160
|
+
bodyMapper: Mappers.CsrpError
|
|
151
161
|
}
|
|
152
162
|
},
|
|
153
|
-
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
157
|
-
httpMethod: "GET",
|
|
158
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools/{resourcePoolName}",
|
|
163
|
+
queryParameters: [Parameters.apiVersion],
|
|
159
164
|
urlParameters: [
|
|
165
|
+
Parameters.$host,
|
|
160
166
|
Parameters.subscriptionId,
|
|
161
167
|
Parameters.regionId,
|
|
162
|
-
Parameters.pcName
|
|
163
|
-
Parameters.resourcePoolName
|
|
164
|
-
],
|
|
165
|
-
queryParameters: [
|
|
166
|
-
Parameters.apiVersion
|
|
167
|
-
],
|
|
168
|
-
headerParameters: [
|
|
169
|
-
Parameters.acceptLanguage
|
|
168
|
+
Parameters.pcName
|
|
170
169
|
],
|
|
170
|
+
headerParameters: [Parameters.accept],
|
|
171
|
+
serializer
|
|
172
|
+
};
|
|
173
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
174
|
+
path:
|
|
175
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools/{resourcePoolName}",
|
|
176
|
+
httpMethod: "GET",
|
|
171
177
|
responses: {
|
|
172
178
|
200: {
|
|
173
179
|
bodyMapper: Mappers.ResourcePool
|
|
174
180
|
},
|
|
175
181
|
default: {
|
|
176
|
-
bodyMapper: Mappers.
|
|
182
|
+
bodyMapper: Mappers.CsrpError
|
|
177
183
|
}
|
|
178
184
|
},
|
|
185
|
+
queryParameters: [Parameters.apiVersion],
|
|
186
|
+
urlParameters: [
|
|
187
|
+
Parameters.$host,
|
|
188
|
+
Parameters.subscriptionId,
|
|
189
|
+
Parameters.regionId,
|
|
190
|
+
Parameters.pcName,
|
|
191
|
+
Parameters.resourcePoolName
|
|
192
|
+
],
|
|
193
|
+
headerParameters: [Parameters.accept],
|
|
179
194
|
serializer
|
|
180
195
|
};
|
|
181
|
-
|
|
182
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
183
|
-
httpMethod: "GET",
|
|
184
|
-
baseUrl: "https://management.azure.com",
|
|
196
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
185
197
|
path: "{nextLink}",
|
|
186
|
-
|
|
187
|
-
Parameters.nextPageLink
|
|
188
|
-
],
|
|
189
|
-
headerParameters: [
|
|
190
|
-
Parameters.acceptLanguage
|
|
191
|
-
],
|
|
198
|
+
httpMethod: "GET",
|
|
192
199
|
responses: {
|
|
193
200
|
200: {
|
|
194
201
|
bodyMapper: Mappers.ResourcePoolsListResponse
|
|
195
202
|
},
|
|
196
203
|
default: {
|
|
197
|
-
bodyMapper: Mappers.
|
|
204
|
+
bodyMapper: Mappers.CsrpError
|
|
198
205
|
}
|
|
199
206
|
},
|
|
207
|
+
queryParameters: [Parameters.apiVersion],
|
|
208
|
+
urlParameters: [
|
|
209
|
+
Parameters.$host,
|
|
210
|
+
Parameters.subscriptionId,
|
|
211
|
+
Parameters.regionId,
|
|
212
|
+
Parameters.nextLink,
|
|
213
|
+
Parameters.pcName
|
|
214
|
+
],
|
|
215
|
+
headerParameters: [Parameters.accept],
|
|
200
216
|
serializer
|
|
201
217
|
};
|
|
@@ -1,134 +1,158 @@
|
|
|
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 { SkusAvailability } 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
|
+
SkuAvailability,
|
|
17
|
+
SkusAvailabilityListNextOptionalParams,
|
|
18
|
+
SkusAvailabilityListOptionalParams,
|
|
19
|
+
SkusAvailabilityListResponse,
|
|
20
|
+
SkusAvailabilityListNextResponse
|
|
21
|
+
} from "../models";
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing SkusAvailability operations. */
|
|
25
|
+
export class SkusAvailabilityImpl implements SkusAvailability {
|
|
26
|
+
private readonly client: VMwareCloudSimple;
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class SkusAvailability class.
|
|
30
|
+
* @param client Reference to the service client
|
|
24
31
|
*/
|
|
25
|
-
constructor(client:
|
|
32
|
+
constructor(client: VMwareCloudSimple) {
|
|
26
33
|
this.client = client;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
/**
|
|
30
37
|
* Returns list of available resources in region
|
|
31
|
-
* @summary Implements SkuAvailability List method
|
|
32
38
|
* @param regionId The region Id (westus, eastus)
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.SkusAvailabilityListResponse>
|
|
39
|
+
* @param options The options parameters.
|
|
35
40
|
*/
|
|
36
|
-
list(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
list(regionId: string, options: Models.SkusAvailabilityListOptionalParams, callback: msRest.ServiceCallback<Models.SkuAvailabilityListResponse>): void;
|
|
48
|
-
list(regionId: string, options?: Models.SkusAvailabilityListOptionalParams | msRest.ServiceCallback<Models.SkuAvailabilityListResponse>, callback?: msRest.ServiceCallback<Models.SkuAvailabilityListResponse>): Promise<Models.SkusAvailabilityListResponse> {
|
|
49
|
-
return this.client.sendOperationRequest(
|
|
50
|
-
{
|
|
51
|
-
regionId,
|
|
52
|
-
options
|
|
41
|
+
public list(
|
|
42
|
+
regionId: string,
|
|
43
|
+
options?: SkusAvailabilityListOptionalParams
|
|
44
|
+
): PagedAsyncIterableIterator<SkuAvailability> {
|
|
45
|
+
const iter = this.listPagingAll(regionId, options);
|
|
46
|
+
return {
|
|
47
|
+
next() {
|
|
48
|
+
return iter.next();
|
|
49
|
+
},
|
|
50
|
+
[Symbol.asyncIterator]() {
|
|
51
|
+
return this;
|
|
53
52
|
},
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
byPage: () => {
|
|
54
|
+
return this.listPagingPage(regionId, options);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private async *listPagingPage(
|
|
60
|
+
regionId: string,
|
|
61
|
+
options?: SkusAvailabilityListOptionalParams
|
|
62
|
+
): AsyncIterableIterator<SkuAvailability[]> {
|
|
63
|
+
let result = await this._list(regionId, options);
|
|
64
|
+
yield result.value || [];
|
|
65
|
+
let continuationToken = result.nextLink;
|
|
66
|
+
while (continuationToken) {
|
|
67
|
+
result = await this._listNext(regionId, continuationToken, options);
|
|
68
|
+
continuationToken = result.nextLink;
|
|
69
|
+
yield result.value || [];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
private async *listPagingAll(
|
|
74
|
+
regionId: string,
|
|
75
|
+
options?: SkusAvailabilityListOptionalParams
|
|
76
|
+
): AsyncIterableIterator<SkuAvailability> {
|
|
77
|
+
for await (const page of this.listPagingPage(regionId, options)) {
|
|
78
|
+
yield* page;
|
|
79
|
+
}
|
|
56
80
|
}
|
|
57
81
|
|
|
58
82
|
/**
|
|
59
83
|
* Returns list of available resources in region
|
|
60
|
-
* @
|
|
61
|
-
* @param
|
|
62
|
-
* @param [options] The optional parameters
|
|
63
|
-
* @returns Promise<Models.SkusAvailabilityListNextResponse>
|
|
64
|
-
*/
|
|
65
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SkusAvailabilityListNextResponse>;
|
|
66
|
-
/**
|
|
67
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
68
|
-
* @param callback The callback
|
|
84
|
+
* @param regionId The region Id (westus, eastus)
|
|
85
|
+
* @param options The options parameters.
|
|
69
86
|
*/
|
|
70
|
-
|
|
87
|
+
private _list(
|
|
88
|
+
regionId: string,
|
|
89
|
+
options?: SkusAvailabilityListOptionalParams
|
|
90
|
+
): Promise<SkusAvailabilityListResponse> {
|
|
91
|
+
return this.client.sendOperationRequest(
|
|
92
|
+
{ regionId, options },
|
|
93
|
+
listOperationSpec
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
71
97
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @param
|
|
74
|
-
* @param
|
|
98
|
+
* ListNext
|
|
99
|
+
* @param regionId The region Id (westus, eastus)
|
|
100
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
101
|
+
* @param options The options parameters.
|
|
75
102
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
103
|
+
private _listNext(
|
|
104
|
+
regionId: string,
|
|
105
|
+
nextLink: string,
|
|
106
|
+
options?: SkusAvailabilityListNextOptionalParams
|
|
107
|
+
): Promise<SkusAvailabilityListNextResponse> {
|
|
78
108
|
return this.client.sendOperationRequest(
|
|
79
|
-
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
listNextOperationSpec,
|
|
84
|
-
callback) as Promise<Models.SkusAvailabilityListNextResponse>;
|
|
109
|
+
{ regionId, nextLink, options },
|
|
110
|
+
listNextOperationSpec
|
|
111
|
+
);
|
|
85
112
|
}
|
|
86
113
|
}
|
|
87
|
-
|
|
88
114
|
// Operation Specifications
|
|
89
|
-
const serializer =
|
|
90
|
-
|
|
115
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
116
|
+
|
|
117
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
118
|
+
path:
|
|
119
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/availabilities",
|
|
91
120
|
httpMethod: "GET",
|
|
92
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/availabilities",
|
|
93
|
-
urlParameters: [
|
|
94
|
-
Parameters.subscriptionId,
|
|
95
|
-
Parameters.regionId
|
|
96
|
-
],
|
|
97
|
-
queryParameters: [
|
|
98
|
-
Parameters.skuId,
|
|
99
|
-
Parameters.apiVersion
|
|
100
|
-
],
|
|
101
|
-
headerParameters: [
|
|
102
|
-
Parameters.acceptLanguage
|
|
103
|
-
],
|
|
104
121
|
responses: {
|
|
105
122
|
200: {
|
|
106
123
|
bodyMapper: Mappers.SkuAvailabilityListResponse
|
|
107
124
|
},
|
|
108
125
|
default: {
|
|
109
|
-
bodyMapper: Mappers.
|
|
126
|
+
bodyMapper: Mappers.CsrpError
|
|
110
127
|
}
|
|
111
128
|
},
|
|
129
|
+
queryParameters: [Parameters.apiVersion, Parameters.skuId],
|
|
130
|
+
urlParameters: [
|
|
131
|
+
Parameters.$host,
|
|
132
|
+
Parameters.subscriptionId,
|
|
133
|
+
Parameters.regionId
|
|
134
|
+
],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
112
136
|
serializer
|
|
113
137
|
};
|
|
114
|
-
|
|
115
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
116
|
-
httpMethod: "GET",
|
|
117
|
-
baseUrl: "https://management.azure.com",
|
|
138
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
118
139
|
path: "{nextLink}",
|
|
119
|
-
|
|
120
|
-
Parameters.nextPageLink
|
|
121
|
-
],
|
|
122
|
-
headerParameters: [
|
|
123
|
-
Parameters.acceptLanguage
|
|
124
|
-
],
|
|
140
|
+
httpMethod: "GET",
|
|
125
141
|
responses: {
|
|
126
142
|
200: {
|
|
127
143
|
bodyMapper: Mappers.SkuAvailabilityListResponse
|
|
128
144
|
},
|
|
129
145
|
default: {
|
|
130
|
-
bodyMapper: Mappers.
|
|
146
|
+
bodyMapper: Mappers.CsrpError
|
|
131
147
|
}
|
|
132
148
|
},
|
|
149
|
+
queryParameters: [Parameters.apiVersion, Parameters.skuId],
|
|
150
|
+
urlParameters: [
|
|
151
|
+
Parameters.$host,
|
|
152
|
+
Parameters.subscriptionId,
|
|
153
|
+
Parameters.regionId,
|
|
154
|
+
Parameters.nextLink
|
|
155
|
+
],
|
|
156
|
+
headerParameters: [Parameters.accept],
|
|
133
157
|
serializer
|
|
134
158
|
};
|