@azure/arm-vmwarecloudsimple 2.0.0 → 3.0.1
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 +27 -0
- package/README.md +18 -7
- package/dist/index.js +287 -167
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/customizationPoliciesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/customizationPoliciesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customizationPoliciesGetSample.js +32 -0
- package/dist-esm/samples-dev/customizationPoliciesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/customizationPoliciesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/customizationPoliciesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customizationPoliciesListSample.js +45 -0
- package/dist-esm/samples-dev/customizationPoliciesListSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesCreateOrUpdateSample.js +42 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesGetSample.js +31 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesUpdateSample.js +34 -0
- package/dist-esm/samples-dev/dedicatedCloudNodesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesCreateOrUpdateSample.js +35 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesGetSample.js +31 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesUpdateSample.js +34 -0
- package/dist-esm/samples-dev/dedicatedCloudServicesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsGetSample.js +51 -0
- package/dist-esm/samples-dev/operationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateCloudsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateCloudsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateCloudsGetSample.js +31 -0
- package/dist-esm/samples-dev/privateCloudsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateCloudsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateCloudsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateCloudsListSample.js +44 -0
- package/dist-esm/samples-dev/privateCloudsListSample.js.map +1 -0
- package/dist-esm/samples-dev/resourcePoolsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourcePoolsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourcePoolsGetSample.js +32 -0
- package/dist-esm/samples-dev/resourcePoolsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/resourcePoolsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourcePoolsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourcePoolsListSample.js +45 -0
- package/dist-esm/samples-dev/resourcePoolsListSample.js.map +1 -0
- package/dist-esm/samples-dev/skusAvailabilityListSample.d.ts +2 -0
- package/dist-esm/samples-dev/skusAvailabilityListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/skusAvailabilityListSample.js +44 -0
- package/dist-esm/samples-dev/skusAvailabilityListSample.js.map +1 -0
- package/dist-esm/samples-dev/usagesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/usagesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usagesListSample.js +44 -0
- package/dist-esm/samples-dev/usagesListSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js +32 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListSample.js +46 -0
- package/dist-esm/samples-dev/virtualMachineTemplatesListSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js +60 -0
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.js +31 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.js +32 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.js +55 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js +32 -0
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualNetworksGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksGetSample.js +32 -0
- package/dist-esm/samples-dev/virtualNetworksGetSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksListSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualNetworksListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualNetworksListSample.js +46 -0
- package/dist-esm/samples-dev/virtualNetworksListSample.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +16 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +16 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/dedicatedCloudNodes.d.ts +4 -2
- package/dist-esm/src/operations/dedicatedCloudNodes.d.ts.map +1 -1
- package/dist-esm/src/operations/dedicatedCloudNodes.js +9 -4
- package/dist-esm/src/operations/dedicatedCloudNodes.js.map +1 -1
- package/dist-esm/src/operations/dedicatedCloudServices.d.ts.map +1 -1
- package/dist-esm/src/operations/dedicatedCloudServices.js +3 -1
- package/dist-esm/src/operations/dedicatedCloudServices.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +3 -2
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts +16 -8
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +45 -21
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.d.ts +4 -2
- package/dist-esm/src/operationsInterfaces/dedicatedCloudNodes.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +2 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +16 -8
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/vMwareCloudSimple.d.ts +3 -3
- package/dist-esm/src/vMwareCloudSimple.d.ts.map +1 -1
- package/dist-esm/src/vMwareCloudSimple.js +50 -8
- package/dist-esm/src/vMwareCloudSimple.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +44 -20
- package/review/arm-vmwarecloudsimple.api.md +12 -30
- package/rollup.config.js +6 -72
- package/src/models/index.ts +16 -0
- package/src/operations/dedicatedCloudNodes.ts +9 -1
- package/src/operations/dedicatedCloudServices.ts +3 -1
- package/src/operations/operations.ts +3 -1
- package/src/operations/virtualMachines.ts +45 -9
- package/src/operationsInterfaces/dedicatedCloudNodes.ts +4 -0
- package/src/operationsInterfaces/operations.ts +2 -0
- package/src/operationsInterfaces/virtualMachines.ts +16 -0
- package/src/vMwareCloudSimple.ts +61 -9
- package/tsconfig.json +19 -5
- package/types/arm-vmwarecloudsimple.d.ts +41 -14
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
package/dist/index.js
CHANGED
|
@@ -2,10 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var coreClient = require('@azure/core-client');
|
|
6
5
|
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
8
|
var coreLro = require('@azure/core-lro');
|
|
8
9
|
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
9
31
|
/*
|
|
10
32
|
* Copyright (c) Microsoft Corporation.
|
|
11
33
|
* Licensed under the MIT License.
|
|
@@ -13,30 +35,56 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
35
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
36
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
37
|
*/
|
|
38
|
+
/** Known values of {@link GuestOsnicCustomizationAllocation} that the service accepts. */
|
|
39
|
+
exports.KnownGuestOsnicCustomizationAllocation = void 0;
|
|
16
40
|
(function (KnownGuestOsnicCustomizationAllocation) {
|
|
41
|
+
/** Static */
|
|
17
42
|
KnownGuestOsnicCustomizationAllocation["Static"] = "static";
|
|
43
|
+
/** Dynamic */
|
|
18
44
|
KnownGuestOsnicCustomizationAllocation["Dynamic"] = "dynamic";
|
|
19
45
|
})(exports.KnownGuestOsnicCustomizationAllocation || (exports.KnownGuestOsnicCustomizationAllocation = {}));
|
|
46
|
+
/** Known values of {@link CustomizationHostNameType} that the service accepts. */
|
|
47
|
+
exports.KnownCustomizationHostNameType = void 0;
|
|
20
48
|
(function (KnownCustomizationHostNameType) {
|
|
49
|
+
/** UserDefined */
|
|
21
50
|
KnownCustomizationHostNameType["UserDefined"] = "USER_DEFINED";
|
|
51
|
+
/** PrefixBased */
|
|
22
52
|
KnownCustomizationHostNameType["PrefixBased"] = "PREFIX_BASED";
|
|
53
|
+
/** Fixed */
|
|
23
54
|
KnownCustomizationHostNameType["Fixed"] = "FIXED";
|
|
55
|
+
/** VirtualMachineName */
|
|
24
56
|
KnownCustomizationHostNameType["VirtualMachineName"] = "VIRTUAL_MACHINE_NAME";
|
|
57
|
+
/** CustomName */
|
|
25
58
|
KnownCustomizationHostNameType["CustomName"] = "CUSTOM_NAME";
|
|
26
59
|
})(exports.KnownCustomizationHostNameType || (exports.KnownCustomizationHostNameType = {}));
|
|
60
|
+
/** Known values of {@link CustomizationIdentityType} that the service accepts. */
|
|
61
|
+
exports.KnownCustomizationIdentityType = void 0;
|
|
27
62
|
(function (KnownCustomizationIdentityType) {
|
|
63
|
+
/** WindowsText */
|
|
28
64
|
KnownCustomizationIdentityType["WindowsText"] = "WINDOWS_TEXT";
|
|
65
|
+
/** Windows */
|
|
29
66
|
KnownCustomizationIdentityType["Windows"] = "WINDOWS";
|
|
67
|
+
/** Linux */
|
|
30
68
|
KnownCustomizationIdentityType["Linux"] = "LINUX";
|
|
31
69
|
})(exports.KnownCustomizationIdentityType || (exports.KnownCustomizationIdentityType = {}));
|
|
70
|
+
/** Known values of {@link CustomizationIPAddressType} that the service accepts. */
|
|
71
|
+
exports.KnownCustomizationIPAddressType = void 0;
|
|
32
72
|
(function (KnownCustomizationIPAddressType) {
|
|
73
|
+
/** Custom */
|
|
33
74
|
KnownCustomizationIPAddressType["Custom"] = "CUSTOM";
|
|
75
|
+
/** DhcpIP */
|
|
34
76
|
KnownCustomizationIPAddressType["DhcpIP"] = "DHCP_IP";
|
|
77
|
+
/** FixedIP */
|
|
35
78
|
KnownCustomizationIPAddressType["FixedIP"] = "FIXED_IP";
|
|
79
|
+
/** UserDefined */
|
|
36
80
|
KnownCustomizationIPAddressType["UserDefined"] = "USER_DEFINED";
|
|
37
81
|
})(exports.KnownCustomizationIPAddressType || (exports.KnownCustomizationIPAddressType = {}));
|
|
82
|
+
/** Known values of {@link CustomizationPolicyPropertiesType} that the service accepts. */
|
|
83
|
+
exports.KnownCustomizationPolicyPropertiesType = void 0;
|
|
38
84
|
(function (KnownCustomizationPolicyPropertiesType) {
|
|
85
|
+
/** Linux */
|
|
39
86
|
KnownCustomizationPolicyPropertiesType["Linux"] = "LINUX";
|
|
87
|
+
/** Windows */
|
|
40
88
|
KnownCustomizationPolicyPropertiesType["Windows"] = "WINDOWS";
|
|
41
89
|
})(exports.KnownCustomizationPolicyPropertiesType || (exports.KnownCustomizationPolicyPropertiesType = {}));
|
|
42
90
|
|
|
@@ -2880,16 +2928,17 @@ class OperationsImpl {
|
|
|
2880
2928
|
* @param options The options parameters.
|
|
2881
2929
|
*/
|
|
2882
2930
|
_list(options) {
|
|
2883
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2931
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$7);
|
|
2884
2932
|
}
|
|
2885
2933
|
/**
|
|
2886
2934
|
* Return an async operation
|
|
2887
2935
|
* @param regionId The region Id (westus, eastus)
|
|
2936
|
+
* @param referer referer url
|
|
2888
2937
|
* @param operationId operation id
|
|
2889
2938
|
* @param options The options parameters.
|
|
2890
2939
|
*/
|
|
2891
|
-
get(regionId, operationId, options) {
|
|
2892
|
-
return this.client.sendOperationRequest({ regionId, operationId, options }, getOperationSpec);
|
|
2940
|
+
get(regionId, referer, operationId, options) {
|
|
2941
|
+
return this.client.sendOperationRequest({ regionId, referer, operationId, options }, getOperationSpec$8);
|
|
2893
2942
|
}
|
|
2894
2943
|
/**
|
|
2895
2944
|
* ListNext
|
|
@@ -2897,12 +2946,12 @@ class OperationsImpl {
|
|
|
2897
2946
|
* @param options The options parameters.
|
|
2898
2947
|
*/
|
|
2899
2948
|
_listNext(nextLink, options) {
|
|
2900
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2949
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$7);
|
|
2901
2950
|
}
|
|
2902
2951
|
}
|
|
2903
2952
|
// Operation Specifications
|
|
2904
|
-
const serializer =
|
|
2905
|
-
const listOperationSpec = {
|
|
2953
|
+
const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2954
|
+
const listOperationSpec$7 = {
|
|
2906
2955
|
path: "/providers/Microsoft.VMwareCloudSimple/operations",
|
|
2907
2956
|
httpMethod: "GET",
|
|
2908
2957
|
responses: {
|
|
@@ -2916,9 +2965,9 @@ const listOperationSpec = {
|
|
|
2916
2965
|
queryParameters: [apiVersion],
|
|
2917
2966
|
urlParameters: [$host],
|
|
2918
2967
|
headerParameters: [accept],
|
|
2919
|
-
serializer
|
|
2968
|
+
serializer: serializer$a
|
|
2920
2969
|
};
|
|
2921
|
-
const getOperationSpec = {
|
|
2970
|
+
const getOperationSpec$8 = {
|
|
2922
2971
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/operationResults/{operationId}",
|
|
2923
2972
|
httpMethod: "GET",
|
|
2924
2973
|
responses: {
|
|
@@ -2942,9 +2991,9 @@ const getOperationSpec = {
|
|
|
2942
2991
|
operationId
|
|
2943
2992
|
],
|
|
2944
2993
|
headerParameters: [accept, referer],
|
|
2945
|
-
serializer
|
|
2994
|
+
serializer: serializer$a
|
|
2946
2995
|
};
|
|
2947
|
-
const listNextOperationSpec = {
|
|
2996
|
+
const listNextOperationSpec$7 = {
|
|
2948
2997
|
path: "{nextLink}",
|
|
2949
2998
|
httpMethod: "GET",
|
|
2950
2999
|
responses: {
|
|
@@ -2958,7 +3007,7 @@ const listNextOperationSpec = {
|
|
|
2958
3007
|
queryParameters: [apiVersion],
|
|
2959
3008
|
urlParameters: [$host, nextLink],
|
|
2960
3009
|
headerParameters: [accept],
|
|
2961
|
-
serializer
|
|
3010
|
+
serializer: serializer$a
|
|
2962
3011
|
};
|
|
2963
3012
|
|
|
2964
3013
|
/*
|
|
@@ -3108,7 +3157,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3108
3157
|
* @param options The options parameters.
|
|
3109
3158
|
*/
|
|
3110
3159
|
_listBySubscription(options) {
|
|
3111
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
3160
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$2);
|
|
3112
3161
|
}
|
|
3113
3162
|
/**
|
|
3114
3163
|
* Returns list of dedicate cloud nodes within resource group
|
|
@@ -3116,7 +3165,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3116
3165
|
* @param options The options parameters.
|
|
3117
3166
|
*/
|
|
3118
3167
|
_listByResourceGroup(resourceGroupName, options) {
|
|
3119
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3168
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$2);
|
|
3120
3169
|
}
|
|
3121
3170
|
/**
|
|
3122
3171
|
* Returns dedicated cloud node
|
|
@@ -3125,16 +3174,17 @@ class DedicatedCloudNodesImpl {
|
|
|
3125
3174
|
* @param options The options parameters.
|
|
3126
3175
|
*/
|
|
3127
3176
|
get(resourceGroupName, dedicatedCloudNodeName, options) {
|
|
3128
|
-
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudNodeName, options }, getOperationSpec$
|
|
3177
|
+
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudNodeName, options }, getOperationSpec$7);
|
|
3129
3178
|
}
|
|
3130
3179
|
/**
|
|
3131
3180
|
* Returns dedicated cloud node by its name
|
|
3132
3181
|
* @param resourceGroupName The name of the resource group
|
|
3182
|
+
* @param referer referer url
|
|
3133
3183
|
* @param dedicatedCloudNodeName dedicated cloud node name
|
|
3134
3184
|
* @param dedicatedCloudNodeRequest Create Dedicated Cloud Node request
|
|
3135
3185
|
* @param options The options parameters.
|
|
3136
3186
|
*/
|
|
3137
|
-
beginCreateOrUpdate(resourceGroupName, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3187
|
+
beginCreateOrUpdate(resourceGroupName, referer, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3138
3188
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3139
3189
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3140
3190
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -3160,26 +3210,30 @@ class DedicatedCloudNodesImpl {
|
|
|
3160
3210
|
});
|
|
3161
3211
|
const lro = new LroImpl(sendOperation, {
|
|
3162
3212
|
resourceGroupName,
|
|
3213
|
+
referer,
|
|
3163
3214
|
dedicatedCloudNodeName,
|
|
3164
3215
|
dedicatedCloudNodeRequest,
|
|
3165
3216
|
options
|
|
3166
|
-
}, createOrUpdateOperationSpec);
|
|
3167
|
-
|
|
3217
|
+
}, createOrUpdateOperationSpec$2);
|
|
3218
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3168
3219
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3169
3220
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3170
3221
|
});
|
|
3222
|
+
yield poller.poll();
|
|
3223
|
+
return poller;
|
|
3171
3224
|
});
|
|
3172
3225
|
}
|
|
3173
3226
|
/**
|
|
3174
3227
|
* Returns dedicated cloud node by its name
|
|
3175
3228
|
* @param resourceGroupName The name of the resource group
|
|
3229
|
+
* @param referer referer url
|
|
3176
3230
|
* @param dedicatedCloudNodeName dedicated cloud node name
|
|
3177
3231
|
* @param dedicatedCloudNodeRequest Create Dedicated Cloud Node request
|
|
3178
3232
|
* @param options The options parameters.
|
|
3179
3233
|
*/
|
|
3180
|
-
beginCreateOrUpdateAndWait(resourceGroupName, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3234
|
+
beginCreateOrUpdateAndWait(resourceGroupName, referer, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3181
3235
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3182
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options);
|
|
3236
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, referer, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options);
|
|
3183
3237
|
return poller.pollUntilDone();
|
|
3184
3238
|
});
|
|
3185
3239
|
}
|
|
@@ -3190,7 +3244,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3190
3244
|
* @param options The options parameters.
|
|
3191
3245
|
*/
|
|
3192
3246
|
delete(resourceGroupName, dedicatedCloudNodeName, options) {
|
|
3193
|
-
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudNodeName, options }, deleteOperationSpec);
|
|
3247
|
+
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudNodeName, options }, deleteOperationSpec$2);
|
|
3194
3248
|
}
|
|
3195
3249
|
/**
|
|
3196
3250
|
* Patches dedicated node properties
|
|
@@ -3205,7 +3259,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3205
3259
|
dedicatedCloudNodeName,
|
|
3206
3260
|
dedicatedCloudNodeRequest,
|
|
3207
3261
|
options
|
|
3208
|
-
}, updateOperationSpec);
|
|
3262
|
+
}, updateOperationSpec$2);
|
|
3209
3263
|
}
|
|
3210
3264
|
/**
|
|
3211
3265
|
* ListBySubscriptionNext
|
|
@@ -3213,7 +3267,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3213
3267
|
* @param options The options parameters.
|
|
3214
3268
|
*/
|
|
3215
3269
|
_listBySubscriptionNext(nextLink, options) {
|
|
3216
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
3270
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$2);
|
|
3217
3271
|
}
|
|
3218
3272
|
/**
|
|
3219
3273
|
* ListByResourceGroupNext
|
|
@@ -3222,12 +3276,12 @@ class DedicatedCloudNodesImpl {
|
|
|
3222
3276
|
* @param options The options parameters.
|
|
3223
3277
|
*/
|
|
3224
3278
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
3225
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
3279
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$2);
|
|
3226
3280
|
}
|
|
3227
3281
|
}
|
|
3228
3282
|
// Operation Specifications
|
|
3229
|
-
const serializer$
|
|
3230
|
-
const listBySubscriptionOperationSpec = {
|
|
3283
|
+
const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3284
|
+
const listBySubscriptionOperationSpec$2 = {
|
|
3231
3285
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes",
|
|
3232
3286
|
httpMethod: "GET",
|
|
3233
3287
|
responses: {
|
|
@@ -3246,9 +3300,9 @@ const listBySubscriptionOperationSpec = {
|
|
|
3246
3300
|
],
|
|
3247
3301
|
urlParameters: [$host, subscriptionId],
|
|
3248
3302
|
headerParameters: [accept],
|
|
3249
|
-
serializer: serializer$
|
|
3303
|
+
serializer: serializer$9
|
|
3250
3304
|
};
|
|
3251
|
-
const listByResourceGroupOperationSpec = {
|
|
3305
|
+
const listByResourceGroupOperationSpec$2 = {
|
|
3252
3306
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes",
|
|
3253
3307
|
httpMethod: "GET",
|
|
3254
3308
|
responses: {
|
|
@@ -3271,9 +3325,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
3271
3325
|
resourceGroupName
|
|
3272
3326
|
],
|
|
3273
3327
|
headerParameters: [accept],
|
|
3274
|
-
serializer: serializer$
|
|
3328
|
+
serializer: serializer$9
|
|
3275
3329
|
};
|
|
3276
|
-
const getOperationSpec$
|
|
3330
|
+
const getOperationSpec$7 = {
|
|
3277
3331
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}",
|
|
3278
3332
|
httpMethod: "GET",
|
|
3279
3333
|
responses: {
|
|
@@ -3292,9 +3346,9 @@ const getOperationSpec$1 = {
|
|
|
3292
3346
|
dedicatedCloudNodeName
|
|
3293
3347
|
],
|
|
3294
3348
|
headerParameters: [accept],
|
|
3295
|
-
serializer: serializer$
|
|
3349
|
+
serializer: serializer$9
|
|
3296
3350
|
};
|
|
3297
|
-
const createOrUpdateOperationSpec = {
|
|
3351
|
+
const createOrUpdateOperationSpec$2 = {
|
|
3298
3352
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}",
|
|
3299
3353
|
httpMethod: "PUT",
|
|
3300
3354
|
responses: {
|
|
@@ -3332,9 +3386,9 @@ const createOrUpdateOperationSpec = {
|
|
|
3332
3386
|
contentType
|
|
3333
3387
|
],
|
|
3334
3388
|
mediaType: "json",
|
|
3335
|
-
serializer: serializer$
|
|
3389
|
+
serializer: serializer$9
|
|
3336
3390
|
};
|
|
3337
|
-
const deleteOperationSpec = {
|
|
3391
|
+
const deleteOperationSpec$2 = {
|
|
3338
3392
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}",
|
|
3339
3393
|
httpMethod: "DELETE",
|
|
3340
3394
|
responses: {
|
|
@@ -3352,9 +3406,9 @@ const deleteOperationSpec = {
|
|
|
3352
3406
|
dedicatedCloudNodeName
|
|
3353
3407
|
],
|
|
3354
3408
|
headerParameters: [accept],
|
|
3355
|
-
serializer: serializer$
|
|
3409
|
+
serializer: serializer$9
|
|
3356
3410
|
};
|
|
3357
|
-
const updateOperationSpec = {
|
|
3411
|
+
const updateOperationSpec$2 = {
|
|
3358
3412
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}",
|
|
3359
3413
|
httpMethod: "PATCH",
|
|
3360
3414
|
responses: {
|
|
@@ -3375,9 +3429,9 @@ const updateOperationSpec = {
|
|
|
3375
3429
|
],
|
|
3376
3430
|
headerParameters: [accept, contentType],
|
|
3377
3431
|
mediaType: "json",
|
|
3378
|
-
serializer: serializer$
|
|
3432
|
+
serializer: serializer$9
|
|
3379
3433
|
};
|
|
3380
|
-
const listBySubscriptionNextOperationSpec = {
|
|
3434
|
+
const listBySubscriptionNextOperationSpec$2 = {
|
|
3381
3435
|
path: "{nextLink}",
|
|
3382
3436
|
httpMethod: "GET",
|
|
3383
3437
|
responses: {
|
|
@@ -3400,9 +3454,9 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
3400
3454
|
nextLink
|
|
3401
3455
|
],
|
|
3402
3456
|
headerParameters: [accept],
|
|
3403
|
-
serializer: serializer$
|
|
3457
|
+
serializer: serializer$9
|
|
3404
3458
|
};
|
|
3405
|
-
const listByResourceGroupNextOperationSpec = {
|
|
3459
|
+
const listByResourceGroupNextOperationSpec$2 = {
|
|
3406
3460
|
path: "{nextLink}",
|
|
3407
3461
|
httpMethod: "GET",
|
|
3408
3462
|
responses: {
|
|
@@ -3426,7 +3480,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
3426
3480
|
resourceGroupName
|
|
3427
3481
|
],
|
|
3428
3482
|
headerParameters: [accept],
|
|
3429
|
-
serializer: serializer$
|
|
3483
|
+
serializer: serializer$9
|
|
3430
3484
|
};
|
|
3431
3485
|
|
|
3432
3486
|
/*
|
|
@@ -3565,7 +3619,7 @@ class DedicatedCloudServicesImpl {
|
|
|
3565
3619
|
* @param options The options parameters.
|
|
3566
3620
|
*/
|
|
3567
3621
|
get(resourceGroupName, dedicatedCloudServiceName, options) {
|
|
3568
|
-
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudServiceName, options }, getOperationSpec$
|
|
3622
|
+
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudServiceName, options }, getOperationSpec$6);
|
|
3569
3623
|
}
|
|
3570
3624
|
/**
|
|
3571
3625
|
* Create dedicate cloud service
|
|
@@ -3613,10 +3667,12 @@ class DedicatedCloudServicesImpl {
|
|
|
3613
3667
|
};
|
|
3614
3668
|
});
|
|
3615
3669
|
const lro = new LroImpl(sendOperation, { resourceGroupName, dedicatedCloudServiceName, options }, deleteOperationSpec$1);
|
|
3616
|
-
|
|
3670
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3617
3671
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3618
3672
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3619
3673
|
});
|
|
3674
|
+
yield poller.poll();
|
|
3675
|
+
return poller;
|
|
3620
3676
|
});
|
|
3621
3677
|
}
|
|
3622
3678
|
/**
|
|
@@ -3665,7 +3721,7 @@ class DedicatedCloudServicesImpl {
|
|
|
3665
3721
|
}
|
|
3666
3722
|
}
|
|
3667
3723
|
// Operation Specifications
|
|
3668
|
-
const serializer$
|
|
3724
|
+
const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3669
3725
|
const listBySubscriptionOperationSpec$1 = {
|
|
3670
3726
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices",
|
|
3671
3727
|
httpMethod: "GET",
|
|
@@ -3685,7 +3741,7 @@ const listBySubscriptionOperationSpec$1 = {
|
|
|
3685
3741
|
],
|
|
3686
3742
|
urlParameters: [$host, subscriptionId],
|
|
3687
3743
|
headerParameters: [accept],
|
|
3688
|
-
serializer: serializer$
|
|
3744
|
+
serializer: serializer$8
|
|
3689
3745
|
};
|
|
3690
3746
|
const listByResourceGroupOperationSpec$1 = {
|
|
3691
3747
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices",
|
|
@@ -3710,9 +3766,9 @@ const listByResourceGroupOperationSpec$1 = {
|
|
|
3710
3766
|
resourceGroupName
|
|
3711
3767
|
],
|
|
3712
3768
|
headerParameters: [accept],
|
|
3713
|
-
serializer: serializer$
|
|
3769
|
+
serializer: serializer$8
|
|
3714
3770
|
};
|
|
3715
|
-
const getOperationSpec$
|
|
3771
|
+
const getOperationSpec$6 = {
|
|
3716
3772
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}",
|
|
3717
3773
|
httpMethod: "GET",
|
|
3718
3774
|
responses: {
|
|
@@ -3731,7 +3787,7 @@ const getOperationSpec$2 = {
|
|
|
3731
3787
|
dedicatedCloudServiceName
|
|
3732
3788
|
],
|
|
3733
3789
|
headerParameters: [accept],
|
|
3734
|
-
serializer: serializer$
|
|
3790
|
+
serializer: serializer$8
|
|
3735
3791
|
};
|
|
3736
3792
|
const createOrUpdateOperationSpec$1 = {
|
|
3737
3793
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}",
|
|
@@ -3754,7 +3810,7 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
3754
3810
|
],
|
|
3755
3811
|
headerParameters: [accept, contentType],
|
|
3756
3812
|
mediaType: "json",
|
|
3757
|
-
serializer: serializer$
|
|
3813
|
+
serializer: serializer$8
|
|
3758
3814
|
};
|
|
3759
3815
|
const deleteOperationSpec$1 = {
|
|
3760
3816
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}",
|
|
@@ -3777,7 +3833,7 @@ const deleteOperationSpec$1 = {
|
|
|
3777
3833
|
dedicatedCloudServiceName
|
|
3778
3834
|
],
|
|
3779
3835
|
headerParameters: [accept],
|
|
3780
|
-
serializer: serializer$
|
|
3836
|
+
serializer: serializer$8
|
|
3781
3837
|
};
|
|
3782
3838
|
const updateOperationSpec$1 = {
|
|
3783
3839
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}",
|
|
@@ -3800,7 +3856,7 @@ const updateOperationSpec$1 = {
|
|
|
3800
3856
|
],
|
|
3801
3857
|
headerParameters: [accept, contentType],
|
|
3802
3858
|
mediaType: "json",
|
|
3803
|
-
serializer: serializer$
|
|
3859
|
+
serializer: serializer$8
|
|
3804
3860
|
};
|
|
3805
3861
|
const listBySubscriptionNextOperationSpec$1 = {
|
|
3806
3862
|
path: "{nextLink}",
|
|
@@ -3825,7 +3881,7 @@ const listBySubscriptionNextOperationSpec$1 = {
|
|
|
3825
3881
|
nextLink
|
|
3826
3882
|
],
|
|
3827
3883
|
headerParameters: [accept],
|
|
3828
|
-
serializer: serializer$
|
|
3884
|
+
serializer: serializer$8
|
|
3829
3885
|
};
|
|
3830
3886
|
const listByResourceGroupNextOperationSpec$1 = {
|
|
3831
3887
|
path: "{nextLink}",
|
|
@@ -3851,7 +3907,7 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
3851
3907
|
resourceGroupName
|
|
3852
3908
|
],
|
|
3853
3909
|
headerParameters: [accept],
|
|
3854
|
-
serializer: serializer$
|
|
3910
|
+
serializer: serializer$8
|
|
3855
3911
|
};
|
|
3856
3912
|
|
|
3857
3913
|
/*
|
|
@@ -3926,7 +3982,7 @@ class SkusAvailabilityImpl {
|
|
|
3926
3982
|
* @param options The options parameters.
|
|
3927
3983
|
*/
|
|
3928
3984
|
_list(regionId, options) {
|
|
3929
|
-
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec$
|
|
3985
|
+
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec$6);
|
|
3930
3986
|
}
|
|
3931
3987
|
/**
|
|
3932
3988
|
* ListNext
|
|
@@ -3935,12 +3991,12 @@ class SkusAvailabilityImpl {
|
|
|
3935
3991
|
* @param options The options parameters.
|
|
3936
3992
|
*/
|
|
3937
3993
|
_listNext(regionId, nextLink, options) {
|
|
3938
|
-
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec$
|
|
3994
|
+
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec$6);
|
|
3939
3995
|
}
|
|
3940
3996
|
}
|
|
3941
3997
|
// Operation Specifications
|
|
3942
|
-
const serializer$
|
|
3943
|
-
const listOperationSpec$
|
|
3998
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3999
|
+
const listOperationSpec$6 = {
|
|
3944
4000
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/availabilities",
|
|
3945
4001
|
httpMethod: "GET",
|
|
3946
4002
|
responses: {
|
|
@@ -3958,9 +4014,9 @@ const listOperationSpec$1 = {
|
|
|
3958
4014
|
regionId
|
|
3959
4015
|
],
|
|
3960
4016
|
headerParameters: [accept],
|
|
3961
|
-
serializer: serializer$
|
|
4017
|
+
serializer: serializer$7
|
|
3962
4018
|
};
|
|
3963
|
-
const listNextOperationSpec$
|
|
4019
|
+
const listNextOperationSpec$6 = {
|
|
3964
4020
|
path: "{nextLink}",
|
|
3965
4021
|
httpMethod: "GET",
|
|
3966
4022
|
responses: {
|
|
@@ -3979,7 +4035,7 @@ const listNextOperationSpec$1 = {
|
|
|
3979
4035
|
nextLink
|
|
3980
4036
|
],
|
|
3981
4037
|
headerParameters: [accept],
|
|
3982
|
-
serializer: serializer$
|
|
4038
|
+
serializer: serializer$7
|
|
3983
4039
|
};
|
|
3984
4040
|
|
|
3985
4041
|
/*
|
|
@@ -4054,7 +4110,7 @@ class PrivateCloudsImpl {
|
|
|
4054
4110
|
* @param options The options parameters.
|
|
4055
4111
|
*/
|
|
4056
4112
|
_list(regionId, options) {
|
|
4057
|
-
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec$
|
|
4113
|
+
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec$5);
|
|
4058
4114
|
}
|
|
4059
4115
|
/**
|
|
4060
4116
|
* Returns private cloud by its name
|
|
@@ -4063,7 +4119,7 @@ class PrivateCloudsImpl {
|
|
|
4063
4119
|
* @param options The options parameters.
|
|
4064
4120
|
*/
|
|
4065
4121
|
get(pcName, regionId, options) {
|
|
4066
|
-
return this.client.sendOperationRequest({ pcName, regionId, options }, getOperationSpec$
|
|
4122
|
+
return this.client.sendOperationRequest({ pcName, regionId, options }, getOperationSpec$5);
|
|
4067
4123
|
}
|
|
4068
4124
|
/**
|
|
4069
4125
|
* ListNext
|
|
@@ -4072,12 +4128,12 @@ class PrivateCloudsImpl {
|
|
|
4072
4128
|
* @param options The options parameters.
|
|
4073
4129
|
*/
|
|
4074
4130
|
_listNext(regionId, nextLink, options) {
|
|
4075
|
-
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec$
|
|
4131
|
+
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec$5);
|
|
4076
4132
|
}
|
|
4077
4133
|
}
|
|
4078
4134
|
// Operation Specifications
|
|
4079
|
-
const serializer$
|
|
4080
|
-
const listOperationSpec$
|
|
4135
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4136
|
+
const listOperationSpec$5 = {
|
|
4081
4137
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds",
|
|
4082
4138
|
httpMethod: "GET",
|
|
4083
4139
|
responses: {
|
|
@@ -4095,9 +4151,9 @@ const listOperationSpec$2 = {
|
|
|
4095
4151
|
regionId
|
|
4096
4152
|
],
|
|
4097
4153
|
headerParameters: [accept],
|
|
4098
|
-
serializer: serializer$
|
|
4154
|
+
serializer: serializer$6
|
|
4099
4155
|
};
|
|
4100
|
-
const getOperationSpec$
|
|
4156
|
+
const getOperationSpec$5 = {
|
|
4101
4157
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}",
|
|
4102
4158
|
httpMethod: "GET",
|
|
4103
4159
|
responses: {
|
|
@@ -4116,9 +4172,9 @@ const getOperationSpec$3 = {
|
|
|
4116
4172
|
pcName
|
|
4117
4173
|
],
|
|
4118
4174
|
headerParameters: [accept],
|
|
4119
|
-
serializer: serializer$
|
|
4175
|
+
serializer: serializer$6
|
|
4120
4176
|
};
|
|
4121
|
-
const listNextOperationSpec$
|
|
4177
|
+
const listNextOperationSpec$5 = {
|
|
4122
4178
|
path: "{nextLink}",
|
|
4123
4179
|
httpMethod: "GET",
|
|
4124
4180
|
responses: {
|
|
@@ -4137,7 +4193,7 @@ const listNextOperationSpec$2 = {
|
|
|
4137
4193
|
nextLink
|
|
4138
4194
|
],
|
|
4139
4195
|
headerParameters: [accept],
|
|
4140
|
-
serializer: serializer$
|
|
4196
|
+
serializer: serializer$6
|
|
4141
4197
|
};
|
|
4142
4198
|
|
|
4143
4199
|
/*
|
|
@@ -4214,7 +4270,7 @@ class CustomizationPoliciesImpl {
|
|
|
4214
4270
|
* @param options The options parameters.
|
|
4215
4271
|
*/
|
|
4216
4272
|
_list(regionId, pcName, options) {
|
|
4217
|
-
return this.client.sendOperationRequest({ regionId, pcName, options }, listOperationSpec$
|
|
4273
|
+
return this.client.sendOperationRequest({ regionId, pcName, options }, listOperationSpec$4);
|
|
4218
4274
|
}
|
|
4219
4275
|
/**
|
|
4220
4276
|
* Returns customization policy by its name
|
|
@@ -4234,12 +4290,12 @@ class CustomizationPoliciesImpl {
|
|
|
4234
4290
|
* @param options The options parameters.
|
|
4235
4291
|
*/
|
|
4236
4292
|
_listNext(regionId, pcName, nextLink, options) {
|
|
4237
|
-
return this.client.sendOperationRequest({ regionId, pcName, nextLink, options }, listNextOperationSpec$
|
|
4293
|
+
return this.client.sendOperationRequest({ regionId, pcName, nextLink, options }, listNextOperationSpec$4);
|
|
4238
4294
|
}
|
|
4239
4295
|
}
|
|
4240
4296
|
// Operation Specifications
|
|
4241
|
-
const serializer$5 =
|
|
4242
|
-
const listOperationSpec$
|
|
4297
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4298
|
+
const listOperationSpec$4 = {
|
|
4243
4299
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/customizationPolicies",
|
|
4244
4300
|
httpMethod: "GET",
|
|
4245
4301
|
responses: {
|
|
@@ -4282,7 +4338,7 @@ const getOperationSpec$4 = {
|
|
|
4282
4338
|
headerParameters: [accept],
|
|
4283
4339
|
serializer: serializer$5
|
|
4284
4340
|
};
|
|
4285
|
-
const listNextOperationSpec$
|
|
4341
|
+
const listNextOperationSpec$4 = {
|
|
4286
4342
|
path: "{nextLink}",
|
|
4287
4343
|
httpMethod: "GET",
|
|
4288
4344
|
responses: {
|
|
@@ -4379,7 +4435,7 @@ class ResourcePoolsImpl {
|
|
|
4379
4435
|
* @param options The options parameters.
|
|
4380
4436
|
*/
|
|
4381
4437
|
_list(regionId, pcName, options) {
|
|
4382
|
-
return this.client.sendOperationRequest({ regionId, pcName, options }, listOperationSpec$
|
|
4438
|
+
return this.client.sendOperationRequest({ regionId, pcName, options }, listOperationSpec$3);
|
|
4383
4439
|
}
|
|
4384
4440
|
/**
|
|
4385
4441
|
* Returns resource pool templates by its name
|
|
@@ -4389,7 +4445,7 @@ class ResourcePoolsImpl {
|
|
|
4389
4445
|
* @param options The options parameters.
|
|
4390
4446
|
*/
|
|
4391
4447
|
get(regionId, pcName, resourcePoolName, options) {
|
|
4392
|
-
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, options }, getOperationSpec$
|
|
4448
|
+
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, options }, getOperationSpec$3);
|
|
4393
4449
|
}
|
|
4394
4450
|
/**
|
|
4395
4451
|
* ListNext
|
|
@@ -4399,12 +4455,12 @@ class ResourcePoolsImpl {
|
|
|
4399
4455
|
* @param options The options parameters.
|
|
4400
4456
|
*/
|
|
4401
4457
|
_listNext(regionId, pcName, nextLink, options) {
|
|
4402
|
-
return this.client.sendOperationRequest({ regionId, pcName, nextLink, options }, listNextOperationSpec$
|
|
4458
|
+
return this.client.sendOperationRequest({ regionId, pcName, nextLink, options }, listNextOperationSpec$3);
|
|
4403
4459
|
}
|
|
4404
4460
|
}
|
|
4405
4461
|
// Operation Specifications
|
|
4406
|
-
const serializer$
|
|
4407
|
-
const listOperationSpec$
|
|
4462
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4463
|
+
const listOperationSpec$3 = {
|
|
4408
4464
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools",
|
|
4409
4465
|
httpMethod: "GET",
|
|
4410
4466
|
responses: {
|
|
@@ -4423,9 +4479,9 @@ const listOperationSpec$4 = {
|
|
|
4423
4479
|
pcName
|
|
4424
4480
|
],
|
|
4425
4481
|
headerParameters: [accept],
|
|
4426
|
-
serializer: serializer$
|
|
4482
|
+
serializer: serializer$4
|
|
4427
4483
|
};
|
|
4428
|
-
const getOperationSpec$
|
|
4484
|
+
const getOperationSpec$3 = {
|
|
4429
4485
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools/{resourcePoolName}",
|
|
4430
4486
|
httpMethod: "GET",
|
|
4431
4487
|
responses: {
|
|
@@ -4445,9 +4501,9 @@ const getOperationSpec$5 = {
|
|
|
4445
4501
|
resourcePoolName
|
|
4446
4502
|
],
|
|
4447
4503
|
headerParameters: [accept],
|
|
4448
|
-
serializer: serializer$
|
|
4504
|
+
serializer: serializer$4
|
|
4449
4505
|
};
|
|
4450
|
-
const listNextOperationSpec$
|
|
4506
|
+
const listNextOperationSpec$3 = {
|
|
4451
4507
|
path: "{nextLink}",
|
|
4452
4508
|
httpMethod: "GET",
|
|
4453
4509
|
responses: {
|
|
@@ -4467,7 +4523,7 @@ const listNextOperationSpec$4 = {
|
|
|
4467
4523
|
pcName
|
|
4468
4524
|
],
|
|
4469
4525
|
headerParameters: [accept],
|
|
4470
|
-
serializer: serializer$
|
|
4526
|
+
serializer: serializer$4
|
|
4471
4527
|
};
|
|
4472
4528
|
|
|
4473
4529
|
/*
|
|
@@ -4546,7 +4602,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
4546
4602
|
* @param options The options parameters.
|
|
4547
4603
|
*/
|
|
4548
4604
|
_list(pcName, regionId, resourcePoolName, options) {
|
|
4549
|
-
return this.client.sendOperationRequest({ pcName, regionId, resourcePoolName, options }, listOperationSpec$
|
|
4605
|
+
return this.client.sendOperationRequest({ pcName, regionId, resourcePoolName, options }, listOperationSpec$2);
|
|
4550
4606
|
}
|
|
4551
4607
|
/**
|
|
4552
4608
|
* Returns virtual machine templates by its name
|
|
@@ -4556,7 +4612,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
4556
4612
|
* @param options The options parameters.
|
|
4557
4613
|
*/
|
|
4558
4614
|
get(regionId, pcName, virtualMachineTemplateName, options) {
|
|
4559
|
-
return this.client.sendOperationRequest({ regionId, pcName, virtualMachineTemplateName, options }, getOperationSpec$
|
|
4615
|
+
return this.client.sendOperationRequest({ regionId, pcName, virtualMachineTemplateName, options }, getOperationSpec$2);
|
|
4560
4616
|
}
|
|
4561
4617
|
/**
|
|
4562
4618
|
* ListNext
|
|
@@ -4567,12 +4623,12 @@ class VirtualMachineTemplatesImpl {
|
|
|
4567
4623
|
* @param options The options parameters.
|
|
4568
4624
|
*/
|
|
4569
4625
|
_listNext(pcName, regionId, resourcePoolName, nextLink, options) {
|
|
4570
|
-
return this.client.sendOperationRequest({ pcName, regionId, resourcePoolName, nextLink, options }, listNextOperationSpec$
|
|
4626
|
+
return this.client.sendOperationRequest({ pcName, regionId, resourcePoolName, nextLink, options }, listNextOperationSpec$2);
|
|
4571
4627
|
}
|
|
4572
4628
|
}
|
|
4573
4629
|
// Operation Specifications
|
|
4574
|
-
const serializer$
|
|
4575
|
-
const listOperationSpec$
|
|
4630
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4631
|
+
const listOperationSpec$2 = {
|
|
4576
4632
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualMachineTemplates",
|
|
4577
4633
|
httpMethod: "GET",
|
|
4578
4634
|
responses: {
|
|
@@ -4591,9 +4647,9 @@ const listOperationSpec$5 = {
|
|
|
4591
4647
|
pcName
|
|
4592
4648
|
],
|
|
4593
4649
|
headerParameters: [accept],
|
|
4594
|
-
serializer: serializer$
|
|
4650
|
+
serializer: serializer$3
|
|
4595
4651
|
};
|
|
4596
|
-
const getOperationSpec$
|
|
4652
|
+
const getOperationSpec$2 = {
|
|
4597
4653
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualMachineTemplates/{virtualMachineTemplateName}",
|
|
4598
4654
|
httpMethod: "GET",
|
|
4599
4655
|
responses: {
|
|
@@ -4613,9 +4669,9 @@ const getOperationSpec$6 = {
|
|
|
4613
4669
|
virtualMachineTemplateName
|
|
4614
4670
|
],
|
|
4615
4671
|
headerParameters: [accept],
|
|
4616
|
-
serializer: serializer$
|
|
4672
|
+
serializer: serializer$3
|
|
4617
4673
|
};
|
|
4618
|
-
const listNextOperationSpec$
|
|
4674
|
+
const listNextOperationSpec$2 = {
|
|
4619
4675
|
path: "{nextLink}",
|
|
4620
4676
|
httpMethod: "GET",
|
|
4621
4677
|
responses: {
|
|
@@ -4635,7 +4691,7 @@ const listNextOperationSpec$5 = {
|
|
|
4635
4691
|
pcName
|
|
4636
4692
|
],
|
|
4637
4693
|
headerParameters: [accept],
|
|
4638
|
-
serializer: serializer$
|
|
4694
|
+
serializer: serializer$3
|
|
4639
4695
|
};
|
|
4640
4696
|
|
|
4641
4697
|
/*
|
|
@@ -4714,7 +4770,7 @@ class VirtualNetworksImpl {
|
|
|
4714
4770
|
* @param options The options parameters.
|
|
4715
4771
|
*/
|
|
4716
4772
|
_list(regionId, pcName, resourcePoolName, options) {
|
|
4717
|
-
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, options }, listOperationSpec$
|
|
4773
|
+
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, options }, listOperationSpec$1);
|
|
4718
4774
|
}
|
|
4719
4775
|
/**
|
|
4720
4776
|
* Return virtual network by its name
|
|
@@ -4724,7 +4780,7 @@ class VirtualNetworksImpl {
|
|
|
4724
4780
|
* @param options The options parameters.
|
|
4725
4781
|
*/
|
|
4726
4782
|
get(regionId, pcName, virtualNetworkName, options) {
|
|
4727
|
-
return this.client.sendOperationRequest({ regionId, pcName, virtualNetworkName, options }, getOperationSpec$
|
|
4783
|
+
return this.client.sendOperationRequest({ regionId, pcName, virtualNetworkName, options }, getOperationSpec$1);
|
|
4728
4784
|
}
|
|
4729
4785
|
/**
|
|
4730
4786
|
* ListNext
|
|
@@ -4735,12 +4791,12 @@ class VirtualNetworksImpl {
|
|
|
4735
4791
|
* @param options The options parameters.
|
|
4736
4792
|
*/
|
|
4737
4793
|
_listNext(regionId, pcName, resourcePoolName, nextLink, options) {
|
|
4738
|
-
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, nextLink, options }, listNextOperationSpec$
|
|
4794
|
+
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, nextLink, options }, listNextOperationSpec$1);
|
|
4739
4795
|
}
|
|
4740
4796
|
}
|
|
4741
4797
|
// Operation Specifications
|
|
4742
|
-
const serializer$
|
|
4743
|
-
const listOperationSpec$
|
|
4798
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4799
|
+
const listOperationSpec$1 = {
|
|
4744
4800
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualNetworks",
|
|
4745
4801
|
httpMethod: "GET",
|
|
4746
4802
|
responses: {
|
|
@@ -4759,9 +4815,9 @@ const listOperationSpec$6 = {
|
|
|
4759
4815
|
pcName
|
|
4760
4816
|
],
|
|
4761
4817
|
headerParameters: [accept],
|
|
4762
|
-
serializer: serializer$
|
|
4818
|
+
serializer: serializer$2
|
|
4763
4819
|
};
|
|
4764
|
-
const getOperationSpec$
|
|
4820
|
+
const getOperationSpec$1 = {
|
|
4765
4821
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualNetworks/{virtualNetworkName}",
|
|
4766
4822
|
httpMethod: "GET",
|
|
4767
4823
|
responses: {
|
|
@@ -4781,9 +4837,9 @@ const getOperationSpec$7 = {
|
|
|
4781
4837
|
virtualNetworkName
|
|
4782
4838
|
],
|
|
4783
4839
|
headerParameters: [accept],
|
|
4784
|
-
serializer: serializer$
|
|
4840
|
+
serializer: serializer$2
|
|
4785
4841
|
};
|
|
4786
|
-
const listNextOperationSpec$
|
|
4842
|
+
const listNextOperationSpec$1 = {
|
|
4787
4843
|
path: "{nextLink}",
|
|
4788
4844
|
httpMethod: "GET",
|
|
4789
4845
|
responses: {
|
|
@@ -4803,7 +4859,7 @@ const listNextOperationSpec$6 = {
|
|
|
4803
4859
|
pcName
|
|
4804
4860
|
],
|
|
4805
4861
|
headerParameters: [accept],
|
|
4806
|
-
serializer: serializer$
|
|
4862
|
+
serializer: serializer$2
|
|
4807
4863
|
};
|
|
4808
4864
|
|
|
4809
4865
|
/*
|
|
@@ -4878,7 +4934,7 @@ class UsagesImpl {
|
|
|
4878
4934
|
* @param options The options parameters.
|
|
4879
4935
|
*/
|
|
4880
4936
|
_list(regionId, options) {
|
|
4881
|
-
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec
|
|
4937
|
+
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec);
|
|
4882
4938
|
}
|
|
4883
4939
|
/**
|
|
4884
4940
|
* ListNext
|
|
@@ -4887,12 +4943,12 @@ class UsagesImpl {
|
|
|
4887
4943
|
* @param options The options parameters.
|
|
4888
4944
|
*/
|
|
4889
4945
|
_listNext(regionId, nextLink, options) {
|
|
4890
|
-
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec
|
|
4946
|
+
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec);
|
|
4891
4947
|
}
|
|
4892
4948
|
}
|
|
4893
4949
|
// Operation Specifications
|
|
4894
|
-
const serializer$
|
|
4895
|
-
const listOperationSpec
|
|
4950
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4951
|
+
const listOperationSpec = {
|
|
4896
4952
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/usages",
|
|
4897
4953
|
httpMethod: "GET",
|
|
4898
4954
|
responses: {
|
|
@@ -4910,9 +4966,9 @@ const listOperationSpec$7 = {
|
|
|
4910
4966
|
regionId
|
|
4911
4967
|
],
|
|
4912
4968
|
headerParameters: [accept],
|
|
4913
|
-
serializer: serializer$
|
|
4969
|
+
serializer: serializer$1
|
|
4914
4970
|
};
|
|
4915
|
-
const listNextOperationSpec
|
|
4971
|
+
const listNextOperationSpec = {
|
|
4916
4972
|
path: "{nextLink}",
|
|
4917
4973
|
httpMethod: "GET",
|
|
4918
4974
|
responses: {
|
|
@@ -4931,7 +4987,7 @@ const listNextOperationSpec$7 = {
|
|
|
4931
4987
|
nextLink
|
|
4932
4988
|
],
|
|
4933
4989
|
headerParameters: [accept],
|
|
4934
|
-
serializer: serializer$
|
|
4990
|
+
serializer: serializer$1
|
|
4935
4991
|
};
|
|
4936
4992
|
|
|
4937
4993
|
/*
|
|
@@ -5053,7 +5109,7 @@ class VirtualMachinesImpl {
|
|
|
5053
5109
|
* @param options The options parameters.
|
|
5054
5110
|
*/
|
|
5055
5111
|
_listBySubscription(options) {
|
|
5056
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec
|
|
5112
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
5057
5113
|
}
|
|
5058
5114
|
/**
|
|
5059
5115
|
* Returns list of virtual machine within resource group
|
|
@@ -5061,7 +5117,7 @@ class VirtualMachinesImpl {
|
|
|
5061
5117
|
* @param options The options parameters.
|
|
5062
5118
|
*/
|
|
5063
5119
|
_listByResourceGroup(resourceGroupName, options) {
|
|
5064
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec
|
|
5120
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
5065
5121
|
}
|
|
5066
5122
|
/**
|
|
5067
5123
|
* Get virtual machine
|
|
@@ -5070,16 +5126,17 @@ class VirtualMachinesImpl {
|
|
|
5070
5126
|
* @param options The options parameters.
|
|
5071
5127
|
*/
|
|
5072
5128
|
get(resourceGroupName, virtualMachineName, options) {
|
|
5073
|
-
return this.client.sendOperationRequest({ resourceGroupName, virtualMachineName, options }, getOperationSpec
|
|
5129
|
+
return this.client.sendOperationRequest({ resourceGroupName, virtualMachineName, options }, getOperationSpec);
|
|
5074
5130
|
}
|
|
5075
5131
|
/**
|
|
5076
5132
|
* Create Or Update Virtual Machine
|
|
5077
5133
|
* @param resourceGroupName The name of the resource group
|
|
5134
|
+
* @param referer referer url
|
|
5078
5135
|
* @param virtualMachineName virtual machine name
|
|
5079
5136
|
* @param virtualMachineRequest Create or Update Virtual Machine request
|
|
5080
5137
|
* @param options The options parameters.
|
|
5081
5138
|
*/
|
|
5082
|
-
beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
|
|
5139
|
+
beginCreateOrUpdate(resourceGroupName, referer, virtualMachineName, virtualMachineRequest, options) {
|
|
5083
5140
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5084
5141
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5085
5142
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -5103,33 +5160,43 @@ class VirtualMachinesImpl {
|
|
|
5103
5160
|
}
|
|
5104
5161
|
};
|
|
5105
5162
|
});
|
|
5106
|
-
const lro = new LroImpl(sendOperation, {
|
|
5107
|
-
|
|
5163
|
+
const lro = new LroImpl(sendOperation, {
|
|
5164
|
+
resourceGroupName,
|
|
5165
|
+
referer,
|
|
5166
|
+
virtualMachineName,
|
|
5167
|
+
virtualMachineRequest,
|
|
5168
|
+
options
|
|
5169
|
+
}, createOrUpdateOperationSpec);
|
|
5170
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5108
5171
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5109
5172
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5110
5173
|
});
|
|
5174
|
+
yield poller.poll();
|
|
5175
|
+
return poller;
|
|
5111
5176
|
});
|
|
5112
5177
|
}
|
|
5113
5178
|
/**
|
|
5114
5179
|
* Create Or Update Virtual Machine
|
|
5115
5180
|
* @param resourceGroupName The name of the resource group
|
|
5181
|
+
* @param referer referer url
|
|
5116
5182
|
* @param virtualMachineName virtual machine name
|
|
5117
5183
|
* @param virtualMachineRequest Create or Update Virtual Machine request
|
|
5118
5184
|
* @param options The options parameters.
|
|
5119
5185
|
*/
|
|
5120
|
-
beginCreateOrUpdateAndWait(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
|
|
5186
|
+
beginCreateOrUpdateAndWait(resourceGroupName, referer, virtualMachineName, virtualMachineRequest, options) {
|
|
5121
5187
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5122
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options);
|
|
5188
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, referer, virtualMachineName, virtualMachineRequest, options);
|
|
5123
5189
|
return poller.pollUntilDone();
|
|
5124
5190
|
});
|
|
5125
5191
|
}
|
|
5126
5192
|
/**
|
|
5127
5193
|
* Delete virtual machine
|
|
5128
5194
|
* @param resourceGroupName The name of the resource group
|
|
5195
|
+
* @param referer referer url
|
|
5129
5196
|
* @param virtualMachineName virtual machine name
|
|
5130
5197
|
* @param options The options parameters.
|
|
5131
5198
|
*/
|
|
5132
|
-
beginDelete(resourceGroupName, virtualMachineName, options) {
|
|
5199
|
+
beginDelete(resourceGroupName, referer, virtualMachineName, options) {
|
|
5133
5200
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5134
5201
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5135
5202
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -5153,22 +5220,25 @@ class VirtualMachinesImpl {
|
|
|
5153
5220
|
}
|
|
5154
5221
|
};
|
|
5155
5222
|
});
|
|
5156
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, options }, deleteOperationSpec
|
|
5157
|
-
|
|
5223
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, referer, virtualMachineName, options }, deleteOperationSpec);
|
|
5224
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5158
5225
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5159
5226
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5160
5227
|
});
|
|
5228
|
+
yield poller.poll();
|
|
5229
|
+
return poller;
|
|
5161
5230
|
});
|
|
5162
5231
|
}
|
|
5163
5232
|
/**
|
|
5164
5233
|
* Delete virtual machine
|
|
5165
5234
|
* @param resourceGroupName The name of the resource group
|
|
5235
|
+
* @param referer referer url
|
|
5166
5236
|
* @param virtualMachineName virtual machine name
|
|
5167
5237
|
* @param options The options parameters.
|
|
5168
5238
|
*/
|
|
5169
|
-
beginDeleteAndWait(resourceGroupName, virtualMachineName, options) {
|
|
5239
|
+
beginDeleteAndWait(resourceGroupName, referer, virtualMachineName, options) {
|
|
5170
5240
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5171
|
-
const poller = yield this.beginDelete(resourceGroupName, virtualMachineName, options);
|
|
5241
|
+
const poller = yield this.beginDelete(resourceGroupName, referer, virtualMachineName, options);
|
|
5172
5242
|
return poller.pollUntilDone();
|
|
5173
5243
|
});
|
|
5174
5244
|
}
|
|
@@ -5203,11 +5273,13 @@ class VirtualMachinesImpl {
|
|
|
5203
5273
|
}
|
|
5204
5274
|
};
|
|
5205
5275
|
});
|
|
5206
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, virtualMachineRequest, options }, updateOperationSpec
|
|
5207
|
-
|
|
5276
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, virtualMachineRequest, options }, updateOperationSpec);
|
|
5277
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5208
5278
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5209
5279
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5210
5280
|
});
|
|
5281
|
+
yield poller.poll();
|
|
5282
|
+
return poller;
|
|
5211
5283
|
});
|
|
5212
5284
|
}
|
|
5213
5285
|
/**
|
|
@@ -5226,10 +5298,11 @@ class VirtualMachinesImpl {
|
|
|
5226
5298
|
/**
|
|
5227
5299
|
* Power on virtual machine
|
|
5228
5300
|
* @param resourceGroupName The name of the resource group
|
|
5301
|
+
* @param referer referer url
|
|
5229
5302
|
* @param virtualMachineName virtual machine name
|
|
5230
5303
|
* @param options The options parameters.
|
|
5231
5304
|
*/
|
|
5232
|
-
beginStart(resourceGroupName, virtualMachineName, options) {
|
|
5305
|
+
beginStart(resourceGroupName, referer, virtualMachineName, options) {
|
|
5233
5306
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5234
5307
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5235
5308
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -5253,32 +5326,36 @@ class VirtualMachinesImpl {
|
|
|
5253
5326
|
}
|
|
5254
5327
|
};
|
|
5255
5328
|
});
|
|
5256
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, options }, startOperationSpec);
|
|
5257
|
-
|
|
5329
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, referer, virtualMachineName, options }, startOperationSpec);
|
|
5330
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5258
5331
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5259
5332
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5260
5333
|
});
|
|
5334
|
+
yield poller.poll();
|
|
5335
|
+
return poller;
|
|
5261
5336
|
});
|
|
5262
5337
|
}
|
|
5263
5338
|
/**
|
|
5264
5339
|
* Power on virtual machine
|
|
5265
5340
|
* @param resourceGroupName The name of the resource group
|
|
5341
|
+
* @param referer referer url
|
|
5266
5342
|
* @param virtualMachineName virtual machine name
|
|
5267
5343
|
* @param options The options parameters.
|
|
5268
5344
|
*/
|
|
5269
|
-
beginStartAndWait(resourceGroupName, virtualMachineName, options) {
|
|
5345
|
+
beginStartAndWait(resourceGroupName, referer, virtualMachineName, options) {
|
|
5270
5346
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5271
|
-
const poller = yield this.beginStart(resourceGroupName, virtualMachineName, options);
|
|
5347
|
+
const poller = yield this.beginStart(resourceGroupName, referer, virtualMachineName, options);
|
|
5272
5348
|
return poller.pollUntilDone();
|
|
5273
5349
|
});
|
|
5274
5350
|
}
|
|
5275
5351
|
/**
|
|
5276
5352
|
* Power off virtual machine, options: shutdown, poweroff, and suspend
|
|
5277
5353
|
* @param resourceGroupName The name of the resource group
|
|
5354
|
+
* @param referer referer url
|
|
5278
5355
|
* @param virtualMachineName virtual machine name
|
|
5279
5356
|
* @param options The options parameters.
|
|
5280
5357
|
*/
|
|
5281
|
-
beginStop(resourceGroupName, virtualMachineName, options) {
|
|
5358
|
+
beginStop(resourceGroupName, referer, virtualMachineName, options) {
|
|
5282
5359
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5283
5360
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5284
5361
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -5302,22 +5379,25 @@ class VirtualMachinesImpl {
|
|
|
5302
5379
|
}
|
|
5303
5380
|
};
|
|
5304
5381
|
});
|
|
5305
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, options }, stopOperationSpec);
|
|
5306
|
-
|
|
5382
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, referer, virtualMachineName, options }, stopOperationSpec);
|
|
5383
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5307
5384
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5308
5385
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5309
5386
|
});
|
|
5387
|
+
yield poller.poll();
|
|
5388
|
+
return poller;
|
|
5310
5389
|
});
|
|
5311
5390
|
}
|
|
5312
5391
|
/**
|
|
5313
5392
|
* Power off virtual machine, options: shutdown, poweroff, and suspend
|
|
5314
5393
|
* @param resourceGroupName The name of the resource group
|
|
5394
|
+
* @param referer referer url
|
|
5315
5395
|
* @param virtualMachineName virtual machine name
|
|
5316
5396
|
* @param options The options parameters.
|
|
5317
5397
|
*/
|
|
5318
|
-
beginStopAndWait(resourceGroupName, virtualMachineName, options) {
|
|
5398
|
+
beginStopAndWait(resourceGroupName, referer, virtualMachineName, options) {
|
|
5319
5399
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5320
|
-
const poller = yield this.beginStop(resourceGroupName, virtualMachineName, options);
|
|
5400
|
+
const poller = yield this.beginStop(resourceGroupName, referer, virtualMachineName, options);
|
|
5321
5401
|
return poller.pollUntilDone();
|
|
5322
5402
|
});
|
|
5323
5403
|
}
|
|
@@ -5327,7 +5407,7 @@ class VirtualMachinesImpl {
|
|
|
5327
5407
|
* @param options The options parameters.
|
|
5328
5408
|
*/
|
|
5329
5409
|
_listBySubscriptionNext(nextLink, options) {
|
|
5330
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec
|
|
5410
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
5331
5411
|
}
|
|
5332
5412
|
/**
|
|
5333
5413
|
* ListByResourceGroupNext
|
|
@@ -5336,12 +5416,12 @@ class VirtualMachinesImpl {
|
|
|
5336
5416
|
* @param options The options parameters.
|
|
5337
5417
|
*/
|
|
5338
5418
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
5339
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec
|
|
5419
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
5340
5420
|
}
|
|
5341
5421
|
}
|
|
5342
5422
|
// Operation Specifications
|
|
5343
|
-
const serializer
|
|
5344
|
-
const listBySubscriptionOperationSpec
|
|
5423
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
5424
|
+
const listBySubscriptionOperationSpec = {
|
|
5345
5425
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/virtualMachines",
|
|
5346
5426
|
httpMethod: "GET",
|
|
5347
5427
|
responses: {
|
|
@@ -5360,9 +5440,9 @@ const listBySubscriptionOperationSpec$2 = {
|
|
|
5360
5440
|
],
|
|
5361
5441
|
urlParameters: [$host, subscriptionId],
|
|
5362
5442
|
headerParameters: [accept],
|
|
5363
|
-
serializer
|
|
5443
|
+
serializer
|
|
5364
5444
|
};
|
|
5365
|
-
const listByResourceGroupOperationSpec
|
|
5445
|
+
const listByResourceGroupOperationSpec = {
|
|
5366
5446
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines",
|
|
5367
5447
|
httpMethod: "GET",
|
|
5368
5448
|
responses: {
|
|
@@ -5385,9 +5465,9 @@ const listByResourceGroupOperationSpec$2 = {
|
|
|
5385
5465
|
resourceGroupName
|
|
5386
5466
|
],
|
|
5387
5467
|
headerParameters: [accept],
|
|
5388
|
-
serializer
|
|
5468
|
+
serializer
|
|
5389
5469
|
};
|
|
5390
|
-
const getOperationSpec
|
|
5470
|
+
const getOperationSpec = {
|
|
5391
5471
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
|
|
5392
5472
|
httpMethod: "GET",
|
|
5393
5473
|
responses: {
|
|
@@ -5406,9 +5486,9 @@ const getOperationSpec$8 = {
|
|
|
5406
5486
|
virtualMachineName
|
|
5407
5487
|
],
|
|
5408
5488
|
headerParameters: [accept],
|
|
5409
|
-
serializer
|
|
5489
|
+
serializer
|
|
5410
5490
|
};
|
|
5411
|
-
const createOrUpdateOperationSpec
|
|
5491
|
+
const createOrUpdateOperationSpec = {
|
|
5412
5492
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
|
|
5413
5493
|
httpMethod: "PUT",
|
|
5414
5494
|
responses: {
|
|
@@ -5446,9 +5526,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
5446
5526
|
contentType
|
|
5447
5527
|
],
|
|
5448
5528
|
mediaType: "json",
|
|
5449
|
-
serializer
|
|
5529
|
+
serializer
|
|
5450
5530
|
};
|
|
5451
|
-
const deleteOperationSpec
|
|
5531
|
+
const deleteOperationSpec = {
|
|
5452
5532
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
|
|
5453
5533
|
httpMethod: "DELETE",
|
|
5454
5534
|
responses: {
|
|
@@ -5477,9 +5557,9 @@ const deleteOperationSpec$2 = {
|
|
|
5477
5557
|
virtualMachineName
|
|
5478
5558
|
],
|
|
5479
5559
|
headerParameters: [accept, referer],
|
|
5480
|
-
serializer
|
|
5560
|
+
serializer
|
|
5481
5561
|
};
|
|
5482
|
-
const updateOperationSpec
|
|
5562
|
+
const updateOperationSpec = {
|
|
5483
5563
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
|
|
5484
5564
|
httpMethod: "PATCH",
|
|
5485
5565
|
responses: {
|
|
@@ -5509,7 +5589,7 @@ const updateOperationSpec$2 = {
|
|
|
5509
5589
|
],
|
|
5510
5590
|
headerParameters: [accept, contentType],
|
|
5511
5591
|
mediaType: "json",
|
|
5512
|
-
serializer
|
|
5592
|
+
serializer
|
|
5513
5593
|
};
|
|
5514
5594
|
const startOperationSpec = {
|
|
5515
5595
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}/start",
|
|
@@ -5532,7 +5612,7 @@ const startOperationSpec = {
|
|
|
5532
5612
|
virtualMachineName
|
|
5533
5613
|
],
|
|
5534
5614
|
headerParameters: [accept, referer],
|
|
5535
|
-
serializer
|
|
5615
|
+
serializer
|
|
5536
5616
|
};
|
|
5537
5617
|
const stopOperationSpec = {
|
|
5538
5618
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}/stop",
|
|
@@ -5561,9 +5641,9 @@ const stopOperationSpec = {
|
|
|
5561
5641
|
contentType
|
|
5562
5642
|
],
|
|
5563
5643
|
mediaType: "json",
|
|
5564
|
-
serializer
|
|
5644
|
+
serializer
|
|
5565
5645
|
};
|
|
5566
|
-
const listBySubscriptionNextOperationSpec
|
|
5646
|
+
const listBySubscriptionNextOperationSpec = {
|
|
5567
5647
|
path: "{nextLink}",
|
|
5568
5648
|
httpMethod: "GET",
|
|
5569
5649
|
responses: {
|
|
@@ -5586,9 +5666,9 @@ const listBySubscriptionNextOperationSpec$2 = {
|
|
|
5586
5666
|
nextLink
|
|
5587
5667
|
],
|
|
5588
5668
|
headerParameters: [accept],
|
|
5589
|
-
serializer
|
|
5669
|
+
serializer
|
|
5590
5670
|
};
|
|
5591
|
-
const listByResourceGroupNextOperationSpec
|
|
5671
|
+
const listByResourceGroupNextOperationSpec = {
|
|
5592
5672
|
path: "{nextLink}",
|
|
5593
5673
|
httpMethod: "GET",
|
|
5594
5674
|
responses: {
|
|
@@ -5612,7 +5692,7 @@ const listByResourceGroupNextOperationSpec$2 = {
|
|
|
5612
5692
|
resourceGroupName
|
|
5613
5693
|
],
|
|
5614
5694
|
headerParameters: [accept],
|
|
5615
|
-
serializer
|
|
5695
|
+
serializer
|
|
5616
5696
|
};
|
|
5617
5697
|
|
|
5618
5698
|
/*
|
|
@@ -5622,24 +5702,21 @@ const listByResourceGroupNextOperationSpec$2 = {
|
|
|
5622
5702
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
5623
5703
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5624
5704
|
*/
|
|
5625
|
-
class VMwareCloudSimple extends
|
|
5705
|
+
class VMwareCloudSimple extends coreClient__namespace.ServiceClient {
|
|
5626
5706
|
/**
|
|
5627
5707
|
* Initializes a new instance of the VMwareCloudSimple class.
|
|
5628
5708
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
5629
5709
|
* @param subscriptionId The subscription ID.
|
|
5630
|
-
* @param referer referer url
|
|
5631
5710
|
* @param options The parameter options
|
|
5632
5711
|
*/
|
|
5633
|
-
constructor(credentials, subscriptionId,
|
|
5712
|
+
constructor(credentials, subscriptionId, options) {
|
|
5713
|
+
var _a, _b;
|
|
5634
5714
|
if (credentials === undefined) {
|
|
5635
5715
|
throw new Error("'credentials' cannot be null");
|
|
5636
5716
|
}
|
|
5637
5717
|
if (subscriptionId === undefined) {
|
|
5638
5718
|
throw new Error("'subscriptionId' cannot be null");
|
|
5639
5719
|
}
|
|
5640
|
-
if (referer === undefined) {
|
|
5641
|
-
throw new Error("'referer' cannot be null");
|
|
5642
|
-
}
|
|
5643
5720
|
// Initializing default values for options
|
|
5644
5721
|
if (!options) {
|
|
5645
5722
|
options = {};
|
|
@@ -5648,7 +5725,7 @@ class VMwareCloudSimple extends coreClient.ServiceClient {
|
|
|
5648
5725
|
requestContentType: "application/json; charset=utf-8",
|
|
5649
5726
|
credential: credentials
|
|
5650
5727
|
};
|
|
5651
|
-
const packageDetails = `azsdk-js-arm-vmwarecloudsimple/
|
|
5728
|
+
const packageDetails = `azsdk-js-arm-vmwarecloudsimple/3.0.1`;
|
|
5652
5729
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
5653
5730
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
5654
5731
|
: `${packageDetails}`;
|
|
@@ -5657,11 +5734,26 @@ class VMwareCloudSimple extends coreClient.ServiceClient {
|
|
|
5657
5734
|
}
|
|
5658
5735
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5659
5736
|
userAgentPrefix
|
|
5660
|
-
}, baseUri: options.endpoint
|
|
5737
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5661
5738
|
super(optionsWithDefaults);
|
|
5739
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5740
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5741
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5742
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
5743
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
5744
|
+
this.pipeline.removePolicy({
|
|
5745
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
5746
|
+
});
|
|
5747
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5748
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
5749
|
+
challengeCallbacks: {
|
|
5750
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5751
|
+
}
|
|
5752
|
+
}));
|
|
5753
|
+
}
|
|
5754
|
+
}
|
|
5662
5755
|
// Parameter assignments
|
|
5663
5756
|
this.subscriptionId = subscriptionId;
|
|
5664
|
-
this.referer = referer;
|
|
5665
5757
|
// Assigning values to Constant parameters
|
|
5666
5758
|
this.$host = options.$host || "https://management.azure.com";
|
|
5667
5759
|
this.apiVersion = options.apiVersion || "2019-04-01";
|
|
@@ -5676,6 +5768,34 @@ class VMwareCloudSimple extends coreClient.ServiceClient {
|
|
|
5676
5768
|
this.virtualNetworks = new VirtualNetworksImpl(this);
|
|
5677
5769
|
this.usages = new UsagesImpl(this);
|
|
5678
5770
|
this.virtualMachines = new VirtualMachinesImpl(this);
|
|
5771
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
5772
|
+
}
|
|
5773
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
5774
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
5775
|
+
if (!apiVersion) {
|
|
5776
|
+
return;
|
|
5777
|
+
}
|
|
5778
|
+
const apiVersionPolicy = {
|
|
5779
|
+
name: "CustomApiVersionPolicy",
|
|
5780
|
+
sendRequest(request, next) {
|
|
5781
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5782
|
+
const param = request.url.split("?");
|
|
5783
|
+
if (param.length > 1) {
|
|
5784
|
+
const newParams = param[1].split("&").map((item) => {
|
|
5785
|
+
if (item.indexOf("api-version") > -1) {
|
|
5786
|
+
return "api-version=" + apiVersion;
|
|
5787
|
+
}
|
|
5788
|
+
else {
|
|
5789
|
+
return item;
|
|
5790
|
+
}
|
|
5791
|
+
});
|
|
5792
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
5793
|
+
}
|
|
5794
|
+
return next(request);
|
|
5795
|
+
});
|
|
5796
|
+
}
|
|
5797
|
+
};
|
|
5798
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
5679
5799
|
}
|
|
5680
5800
|
}
|
|
5681
5801
|
|