@azure/arm-vmwarecloudsimple 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +11 -0
- package/dist/index.js +242 -166
- 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/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 +1 -3
- package/dist-esm/src/vMwareCloudSimple.d.ts.map +1 -1
- package/dist-esm/src/vMwareCloudSimple.js +21 -8
- package/dist-esm/src/vMwareCloudSimple.js.map +1 -1
- package/package.json +36 -15
- package/review/arm-vmwarecloudsimple.api.md +12 -14
- package/rollup.config.js +6 -72
- 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 +27 -9
- package/tsconfig.json +19 -5
- package/types/arm-vmwarecloudsimple.d.ts +23 -14
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
package/dist/index.js
CHANGED
|
@@ -3,9 +3,31 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
7
|
var tslib = require('tslib');
|
|
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,10 +35,14 @@ 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) {
|
|
17
41
|
KnownGuestOsnicCustomizationAllocation["Static"] = "static";
|
|
18
42
|
KnownGuestOsnicCustomizationAllocation["Dynamic"] = "dynamic";
|
|
19
43
|
})(exports.KnownGuestOsnicCustomizationAllocation || (exports.KnownGuestOsnicCustomizationAllocation = {}));
|
|
44
|
+
/** Known values of {@link CustomizationHostNameType} that the service accepts. */
|
|
45
|
+
exports.KnownCustomizationHostNameType = void 0;
|
|
20
46
|
(function (KnownCustomizationHostNameType) {
|
|
21
47
|
KnownCustomizationHostNameType["UserDefined"] = "USER_DEFINED";
|
|
22
48
|
KnownCustomizationHostNameType["PrefixBased"] = "PREFIX_BASED";
|
|
@@ -24,17 +50,23 @@ var coreLro = require('@azure/core-lro');
|
|
|
24
50
|
KnownCustomizationHostNameType["VirtualMachineName"] = "VIRTUAL_MACHINE_NAME";
|
|
25
51
|
KnownCustomizationHostNameType["CustomName"] = "CUSTOM_NAME";
|
|
26
52
|
})(exports.KnownCustomizationHostNameType || (exports.KnownCustomizationHostNameType = {}));
|
|
53
|
+
/** Known values of {@link CustomizationIdentityType} that the service accepts. */
|
|
54
|
+
exports.KnownCustomizationIdentityType = void 0;
|
|
27
55
|
(function (KnownCustomizationIdentityType) {
|
|
28
56
|
KnownCustomizationIdentityType["WindowsText"] = "WINDOWS_TEXT";
|
|
29
57
|
KnownCustomizationIdentityType["Windows"] = "WINDOWS";
|
|
30
58
|
KnownCustomizationIdentityType["Linux"] = "LINUX";
|
|
31
59
|
})(exports.KnownCustomizationIdentityType || (exports.KnownCustomizationIdentityType = {}));
|
|
60
|
+
/** Known values of {@link CustomizationIPAddressType} that the service accepts. */
|
|
61
|
+
exports.KnownCustomizationIPAddressType = void 0;
|
|
32
62
|
(function (KnownCustomizationIPAddressType) {
|
|
33
63
|
KnownCustomizationIPAddressType["Custom"] = "CUSTOM";
|
|
34
64
|
KnownCustomizationIPAddressType["DhcpIP"] = "DHCP_IP";
|
|
35
65
|
KnownCustomizationIPAddressType["FixedIP"] = "FIXED_IP";
|
|
36
66
|
KnownCustomizationIPAddressType["UserDefined"] = "USER_DEFINED";
|
|
37
67
|
})(exports.KnownCustomizationIPAddressType || (exports.KnownCustomizationIPAddressType = {}));
|
|
68
|
+
/** Known values of {@link CustomizationPolicyPropertiesType} that the service accepts. */
|
|
69
|
+
exports.KnownCustomizationPolicyPropertiesType = void 0;
|
|
38
70
|
(function (KnownCustomizationPolicyPropertiesType) {
|
|
39
71
|
KnownCustomizationPolicyPropertiesType["Linux"] = "LINUX";
|
|
40
72
|
KnownCustomizationPolicyPropertiesType["Windows"] = "WINDOWS";
|
|
@@ -2880,16 +2912,17 @@ class OperationsImpl {
|
|
|
2880
2912
|
* @param options The options parameters.
|
|
2881
2913
|
*/
|
|
2882
2914
|
_list(options) {
|
|
2883
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2915
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$7);
|
|
2884
2916
|
}
|
|
2885
2917
|
/**
|
|
2886
2918
|
* Return an async operation
|
|
2887
2919
|
* @param regionId The region Id (westus, eastus)
|
|
2920
|
+
* @param referer referer url
|
|
2888
2921
|
* @param operationId operation id
|
|
2889
2922
|
* @param options The options parameters.
|
|
2890
2923
|
*/
|
|
2891
|
-
get(regionId, operationId, options) {
|
|
2892
|
-
return this.client.sendOperationRequest({ regionId, operationId, options }, getOperationSpec);
|
|
2924
|
+
get(regionId, referer, operationId, options) {
|
|
2925
|
+
return this.client.sendOperationRequest({ regionId, referer, operationId, options }, getOperationSpec$8);
|
|
2893
2926
|
}
|
|
2894
2927
|
/**
|
|
2895
2928
|
* ListNext
|
|
@@ -2897,12 +2930,12 @@ class OperationsImpl {
|
|
|
2897
2930
|
* @param options The options parameters.
|
|
2898
2931
|
*/
|
|
2899
2932
|
_listNext(nextLink, options) {
|
|
2900
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2933
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$7);
|
|
2901
2934
|
}
|
|
2902
2935
|
}
|
|
2903
2936
|
// Operation Specifications
|
|
2904
|
-
const serializer =
|
|
2905
|
-
const listOperationSpec = {
|
|
2937
|
+
const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2938
|
+
const listOperationSpec$7 = {
|
|
2906
2939
|
path: "/providers/Microsoft.VMwareCloudSimple/operations",
|
|
2907
2940
|
httpMethod: "GET",
|
|
2908
2941
|
responses: {
|
|
@@ -2916,9 +2949,9 @@ const listOperationSpec = {
|
|
|
2916
2949
|
queryParameters: [apiVersion],
|
|
2917
2950
|
urlParameters: [$host],
|
|
2918
2951
|
headerParameters: [accept],
|
|
2919
|
-
serializer
|
|
2952
|
+
serializer: serializer$a
|
|
2920
2953
|
};
|
|
2921
|
-
const getOperationSpec = {
|
|
2954
|
+
const getOperationSpec$8 = {
|
|
2922
2955
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/operationResults/{operationId}",
|
|
2923
2956
|
httpMethod: "GET",
|
|
2924
2957
|
responses: {
|
|
@@ -2942,9 +2975,9 @@ const getOperationSpec = {
|
|
|
2942
2975
|
operationId
|
|
2943
2976
|
],
|
|
2944
2977
|
headerParameters: [accept, referer],
|
|
2945
|
-
serializer
|
|
2978
|
+
serializer: serializer$a
|
|
2946
2979
|
};
|
|
2947
|
-
const listNextOperationSpec = {
|
|
2980
|
+
const listNextOperationSpec$7 = {
|
|
2948
2981
|
path: "{nextLink}",
|
|
2949
2982
|
httpMethod: "GET",
|
|
2950
2983
|
responses: {
|
|
@@ -2958,7 +2991,7 @@ const listNextOperationSpec = {
|
|
|
2958
2991
|
queryParameters: [apiVersion],
|
|
2959
2992
|
urlParameters: [$host, nextLink],
|
|
2960
2993
|
headerParameters: [accept],
|
|
2961
|
-
serializer
|
|
2994
|
+
serializer: serializer$a
|
|
2962
2995
|
};
|
|
2963
2996
|
|
|
2964
2997
|
/*
|
|
@@ -3108,7 +3141,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3108
3141
|
* @param options The options parameters.
|
|
3109
3142
|
*/
|
|
3110
3143
|
_listBySubscription(options) {
|
|
3111
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
3144
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$2);
|
|
3112
3145
|
}
|
|
3113
3146
|
/**
|
|
3114
3147
|
* Returns list of dedicate cloud nodes within resource group
|
|
@@ -3116,7 +3149,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3116
3149
|
* @param options The options parameters.
|
|
3117
3150
|
*/
|
|
3118
3151
|
_listByResourceGroup(resourceGroupName, options) {
|
|
3119
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3152
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$2);
|
|
3120
3153
|
}
|
|
3121
3154
|
/**
|
|
3122
3155
|
* Returns dedicated cloud node
|
|
@@ -3125,16 +3158,17 @@ class DedicatedCloudNodesImpl {
|
|
|
3125
3158
|
* @param options The options parameters.
|
|
3126
3159
|
*/
|
|
3127
3160
|
get(resourceGroupName, dedicatedCloudNodeName, options) {
|
|
3128
|
-
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudNodeName, options }, getOperationSpec$
|
|
3161
|
+
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudNodeName, options }, getOperationSpec$7);
|
|
3129
3162
|
}
|
|
3130
3163
|
/**
|
|
3131
3164
|
* Returns dedicated cloud node by its name
|
|
3132
3165
|
* @param resourceGroupName The name of the resource group
|
|
3166
|
+
* @param referer referer url
|
|
3133
3167
|
* @param dedicatedCloudNodeName dedicated cloud node name
|
|
3134
3168
|
* @param dedicatedCloudNodeRequest Create Dedicated Cloud Node request
|
|
3135
3169
|
* @param options The options parameters.
|
|
3136
3170
|
*/
|
|
3137
|
-
beginCreateOrUpdate(resourceGroupName, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3171
|
+
beginCreateOrUpdate(resourceGroupName, referer, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3138
3172
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3139
3173
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3140
3174
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -3160,26 +3194,30 @@ class DedicatedCloudNodesImpl {
|
|
|
3160
3194
|
});
|
|
3161
3195
|
const lro = new LroImpl(sendOperation, {
|
|
3162
3196
|
resourceGroupName,
|
|
3197
|
+
referer,
|
|
3163
3198
|
dedicatedCloudNodeName,
|
|
3164
3199
|
dedicatedCloudNodeRequest,
|
|
3165
3200
|
options
|
|
3166
|
-
}, createOrUpdateOperationSpec);
|
|
3167
|
-
|
|
3201
|
+
}, createOrUpdateOperationSpec$2);
|
|
3202
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3168
3203
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3169
3204
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3170
3205
|
});
|
|
3206
|
+
yield poller.poll();
|
|
3207
|
+
return poller;
|
|
3171
3208
|
});
|
|
3172
3209
|
}
|
|
3173
3210
|
/**
|
|
3174
3211
|
* Returns dedicated cloud node by its name
|
|
3175
3212
|
* @param resourceGroupName The name of the resource group
|
|
3213
|
+
* @param referer referer url
|
|
3176
3214
|
* @param dedicatedCloudNodeName dedicated cloud node name
|
|
3177
3215
|
* @param dedicatedCloudNodeRequest Create Dedicated Cloud Node request
|
|
3178
3216
|
* @param options The options parameters.
|
|
3179
3217
|
*/
|
|
3180
|
-
beginCreateOrUpdateAndWait(resourceGroupName, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3218
|
+
beginCreateOrUpdateAndWait(resourceGroupName, referer, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3181
3219
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3182
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options);
|
|
3220
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, referer, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options);
|
|
3183
3221
|
return poller.pollUntilDone();
|
|
3184
3222
|
});
|
|
3185
3223
|
}
|
|
@@ -3190,7 +3228,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3190
3228
|
* @param options The options parameters.
|
|
3191
3229
|
*/
|
|
3192
3230
|
delete(resourceGroupName, dedicatedCloudNodeName, options) {
|
|
3193
|
-
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudNodeName, options }, deleteOperationSpec);
|
|
3231
|
+
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudNodeName, options }, deleteOperationSpec$2);
|
|
3194
3232
|
}
|
|
3195
3233
|
/**
|
|
3196
3234
|
* Patches dedicated node properties
|
|
@@ -3205,7 +3243,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3205
3243
|
dedicatedCloudNodeName,
|
|
3206
3244
|
dedicatedCloudNodeRequest,
|
|
3207
3245
|
options
|
|
3208
|
-
}, updateOperationSpec);
|
|
3246
|
+
}, updateOperationSpec$2);
|
|
3209
3247
|
}
|
|
3210
3248
|
/**
|
|
3211
3249
|
* ListBySubscriptionNext
|
|
@@ -3213,7 +3251,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3213
3251
|
* @param options The options parameters.
|
|
3214
3252
|
*/
|
|
3215
3253
|
_listBySubscriptionNext(nextLink, options) {
|
|
3216
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
3254
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$2);
|
|
3217
3255
|
}
|
|
3218
3256
|
/**
|
|
3219
3257
|
* ListByResourceGroupNext
|
|
@@ -3222,12 +3260,12 @@ class DedicatedCloudNodesImpl {
|
|
|
3222
3260
|
* @param options The options parameters.
|
|
3223
3261
|
*/
|
|
3224
3262
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
3225
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
3263
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$2);
|
|
3226
3264
|
}
|
|
3227
3265
|
}
|
|
3228
3266
|
// Operation Specifications
|
|
3229
|
-
const serializer$
|
|
3230
|
-
const listBySubscriptionOperationSpec = {
|
|
3267
|
+
const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3268
|
+
const listBySubscriptionOperationSpec$2 = {
|
|
3231
3269
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes",
|
|
3232
3270
|
httpMethod: "GET",
|
|
3233
3271
|
responses: {
|
|
@@ -3246,9 +3284,9 @@ const listBySubscriptionOperationSpec = {
|
|
|
3246
3284
|
],
|
|
3247
3285
|
urlParameters: [$host, subscriptionId],
|
|
3248
3286
|
headerParameters: [accept],
|
|
3249
|
-
serializer: serializer$
|
|
3287
|
+
serializer: serializer$9
|
|
3250
3288
|
};
|
|
3251
|
-
const listByResourceGroupOperationSpec = {
|
|
3289
|
+
const listByResourceGroupOperationSpec$2 = {
|
|
3252
3290
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes",
|
|
3253
3291
|
httpMethod: "GET",
|
|
3254
3292
|
responses: {
|
|
@@ -3271,9 +3309,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
3271
3309
|
resourceGroupName
|
|
3272
3310
|
],
|
|
3273
3311
|
headerParameters: [accept],
|
|
3274
|
-
serializer: serializer$
|
|
3312
|
+
serializer: serializer$9
|
|
3275
3313
|
};
|
|
3276
|
-
const getOperationSpec$
|
|
3314
|
+
const getOperationSpec$7 = {
|
|
3277
3315
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}",
|
|
3278
3316
|
httpMethod: "GET",
|
|
3279
3317
|
responses: {
|
|
@@ -3292,9 +3330,9 @@ const getOperationSpec$1 = {
|
|
|
3292
3330
|
dedicatedCloudNodeName
|
|
3293
3331
|
],
|
|
3294
3332
|
headerParameters: [accept],
|
|
3295
|
-
serializer: serializer$
|
|
3333
|
+
serializer: serializer$9
|
|
3296
3334
|
};
|
|
3297
|
-
const createOrUpdateOperationSpec = {
|
|
3335
|
+
const createOrUpdateOperationSpec$2 = {
|
|
3298
3336
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}",
|
|
3299
3337
|
httpMethod: "PUT",
|
|
3300
3338
|
responses: {
|
|
@@ -3332,9 +3370,9 @@ const createOrUpdateOperationSpec = {
|
|
|
3332
3370
|
contentType
|
|
3333
3371
|
],
|
|
3334
3372
|
mediaType: "json",
|
|
3335
|
-
serializer: serializer$
|
|
3373
|
+
serializer: serializer$9
|
|
3336
3374
|
};
|
|
3337
|
-
const deleteOperationSpec = {
|
|
3375
|
+
const deleteOperationSpec$2 = {
|
|
3338
3376
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}",
|
|
3339
3377
|
httpMethod: "DELETE",
|
|
3340
3378
|
responses: {
|
|
@@ -3352,9 +3390,9 @@ const deleteOperationSpec = {
|
|
|
3352
3390
|
dedicatedCloudNodeName
|
|
3353
3391
|
],
|
|
3354
3392
|
headerParameters: [accept],
|
|
3355
|
-
serializer: serializer$
|
|
3393
|
+
serializer: serializer$9
|
|
3356
3394
|
};
|
|
3357
|
-
const updateOperationSpec = {
|
|
3395
|
+
const updateOperationSpec$2 = {
|
|
3358
3396
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}",
|
|
3359
3397
|
httpMethod: "PATCH",
|
|
3360
3398
|
responses: {
|
|
@@ -3375,9 +3413,9 @@ const updateOperationSpec = {
|
|
|
3375
3413
|
],
|
|
3376
3414
|
headerParameters: [accept, contentType],
|
|
3377
3415
|
mediaType: "json",
|
|
3378
|
-
serializer: serializer$
|
|
3416
|
+
serializer: serializer$9
|
|
3379
3417
|
};
|
|
3380
|
-
const listBySubscriptionNextOperationSpec = {
|
|
3418
|
+
const listBySubscriptionNextOperationSpec$2 = {
|
|
3381
3419
|
path: "{nextLink}",
|
|
3382
3420
|
httpMethod: "GET",
|
|
3383
3421
|
responses: {
|
|
@@ -3400,9 +3438,9 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
3400
3438
|
nextLink
|
|
3401
3439
|
],
|
|
3402
3440
|
headerParameters: [accept],
|
|
3403
|
-
serializer: serializer$
|
|
3441
|
+
serializer: serializer$9
|
|
3404
3442
|
};
|
|
3405
|
-
const listByResourceGroupNextOperationSpec = {
|
|
3443
|
+
const listByResourceGroupNextOperationSpec$2 = {
|
|
3406
3444
|
path: "{nextLink}",
|
|
3407
3445
|
httpMethod: "GET",
|
|
3408
3446
|
responses: {
|
|
@@ -3426,7 +3464,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
3426
3464
|
resourceGroupName
|
|
3427
3465
|
],
|
|
3428
3466
|
headerParameters: [accept],
|
|
3429
|
-
serializer: serializer$
|
|
3467
|
+
serializer: serializer$9
|
|
3430
3468
|
};
|
|
3431
3469
|
|
|
3432
3470
|
/*
|
|
@@ -3565,7 +3603,7 @@ class DedicatedCloudServicesImpl {
|
|
|
3565
3603
|
* @param options The options parameters.
|
|
3566
3604
|
*/
|
|
3567
3605
|
get(resourceGroupName, dedicatedCloudServiceName, options) {
|
|
3568
|
-
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudServiceName, options }, getOperationSpec$
|
|
3606
|
+
return this.client.sendOperationRequest({ resourceGroupName, dedicatedCloudServiceName, options }, getOperationSpec$6);
|
|
3569
3607
|
}
|
|
3570
3608
|
/**
|
|
3571
3609
|
* Create dedicate cloud service
|
|
@@ -3613,10 +3651,12 @@ class DedicatedCloudServicesImpl {
|
|
|
3613
3651
|
};
|
|
3614
3652
|
});
|
|
3615
3653
|
const lro = new LroImpl(sendOperation, { resourceGroupName, dedicatedCloudServiceName, options }, deleteOperationSpec$1);
|
|
3616
|
-
|
|
3654
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3617
3655
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3618
3656
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3619
3657
|
});
|
|
3658
|
+
yield poller.poll();
|
|
3659
|
+
return poller;
|
|
3620
3660
|
});
|
|
3621
3661
|
}
|
|
3622
3662
|
/**
|
|
@@ -3665,7 +3705,7 @@ class DedicatedCloudServicesImpl {
|
|
|
3665
3705
|
}
|
|
3666
3706
|
}
|
|
3667
3707
|
// Operation Specifications
|
|
3668
|
-
const serializer$
|
|
3708
|
+
const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3669
3709
|
const listBySubscriptionOperationSpec$1 = {
|
|
3670
3710
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices",
|
|
3671
3711
|
httpMethod: "GET",
|
|
@@ -3685,7 +3725,7 @@ const listBySubscriptionOperationSpec$1 = {
|
|
|
3685
3725
|
],
|
|
3686
3726
|
urlParameters: [$host, subscriptionId],
|
|
3687
3727
|
headerParameters: [accept],
|
|
3688
|
-
serializer: serializer$
|
|
3728
|
+
serializer: serializer$8
|
|
3689
3729
|
};
|
|
3690
3730
|
const listByResourceGroupOperationSpec$1 = {
|
|
3691
3731
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices",
|
|
@@ -3710,9 +3750,9 @@ const listByResourceGroupOperationSpec$1 = {
|
|
|
3710
3750
|
resourceGroupName
|
|
3711
3751
|
],
|
|
3712
3752
|
headerParameters: [accept],
|
|
3713
|
-
serializer: serializer$
|
|
3753
|
+
serializer: serializer$8
|
|
3714
3754
|
};
|
|
3715
|
-
const getOperationSpec$
|
|
3755
|
+
const getOperationSpec$6 = {
|
|
3716
3756
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}",
|
|
3717
3757
|
httpMethod: "GET",
|
|
3718
3758
|
responses: {
|
|
@@ -3731,7 +3771,7 @@ const getOperationSpec$2 = {
|
|
|
3731
3771
|
dedicatedCloudServiceName
|
|
3732
3772
|
],
|
|
3733
3773
|
headerParameters: [accept],
|
|
3734
|
-
serializer: serializer$
|
|
3774
|
+
serializer: serializer$8
|
|
3735
3775
|
};
|
|
3736
3776
|
const createOrUpdateOperationSpec$1 = {
|
|
3737
3777
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}",
|
|
@@ -3754,7 +3794,7 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
3754
3794
|
],
|
|
3755
3795
|
headerParameters: [accept, contentType],
|
|
3756
3796
|
mediaType: "json",
|
|
3757
|
-
serializer: serializer$
|
|
3797
|
+
serializer: serializer$8
|
|
3758
3798
|
};
|
|
3759
3799
|
const deleteOperationSpec$1 = {
|
|
3760
3800
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}",
|
|
@@ -3777,7 +3817,7 @@ const deleteOperationSpec$1 = {
|
|
|
3777
3817
|
dedicatedCloudServiceName
|
|
3778
3818
|
],
|
|
3779
3819
|
headerParameters: [accept],
|
|
3780
|
-
serializer: serializer$
|
|
3820
|
+
serializer: serializer$8
|
|
3781
3821
|
};
|
|
3782
3822
|
const updateOperationSpec$1 = {
|
|
3783
3823
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/{dedicatedCloudServiceName}",
|
|
@@ -3800,7 +3840,7 @@ const updateOperationSpec$1 = {
|
|
|
3800
3840
|
],
|
|
3801
3841
|
headerParameters: [accept, contentType],
|
|
3802
3842
|
mediaType: "json",
|
|
3803
|
-
serializer: serializer$
|
|
3843
|
+
serializer: serializer$8
|
|
3804
3844
|
};
|
|
3805
3845
|
const listBySubscriptionNextOperationSpec$1 = {
|
|
3806
3846
|
path: "{nextLink}",
|
|
@@ -3825,7 +3865,7 @@ const listBySubscriptionNextOperationSpec$1 = {
|
|
|
3825
3865
|
nextLink
|
|
3826
3866
|
],
|
|
3827
3867
|
headerParameters: [accept],
|
|
3828
|
-
serializer: serializer$
|
|
3868
|
+
serializer: serializer$8
|
|
3829
3869
|
};
|
|
3830
3870
|
const listByResourceGroupNextOperationSpec$1 = {
|
|
3831
3871
|
path: "{nextLink}",
|
|
@@ -3851,7 +3891,7 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
3851
3891
|
resourceGroupName
|
|
3852
3892
|
],
|
|
3853
3893
|
headerParameters: [accept],
|
|
3854
|
-
serializer: serializer$
|
|
3894
|
+
serializer: serializer$8
|
|
3855
3895
|
};
|
|
3856
3896
|
|
|
3857
3897
|
/*
|
|
@@ -3926,7 +3966,7 @@ class SkusAvailabilityImpl {
|
|
|
3926
3966
|
* @param options The options parameters.
|
|
3927
3967
|
*/
|
|
3928
3968
|
_list(regionId, options) {
|
|
3929
|
-
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec$
|
|
3969
|
+
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec$6);
|
|
3930
3970
|
}
|
|
3931
3971
|
/**
|
|
3932
3972
|
* ListNext
|
|
@@ -3935,12 +3975,12 @@ class SkusAvailabilityImpl {
|
|
|
3935
3975
|
* @param options The options parameters.
|
|
3936
3976
|
*/
|
|
3937
3977
|
_listNext(regionId, nextLink, options) {
|
|
3938
|
-
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec$
|
|
3978
|
+
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec$6);
|
|
3939
3979
|
}
|
|
3940
3980
|
}
|
|
3941
3981
|
// Operation Specifications
|
|
3942
|
-
const serializer$
|
|
3943
|
-
const listOperationSpec$
|
|
3982
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3983
|
+
const listOperationSpec$6 = {
|
|
3944
3984
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/availabilities",
|
|
3945
3985
|
httpMethod: "GET",
|
|
3946
3986
|
responses: {
|
|
@@ -3958,9 +3998,9 @@ const listOperationSpec$1 = {
|
|
|
3958
3998
|
regionId
|
|
3959
3999
|
],
|
|
3960
4000
|
headerParameters: [accept],
|
|
3961
|
-
serializer: serializer$
|
|
4001
|
+
serializer: serializer$7
|
|
3962
4002
|
};
|
|
3963
|
-
const listNextOperationSpec$
|
|
4003
|
+
const listNextOperationSpec$6 = {
|
|
3964
4004
|
path: "{nextLink}",
|
|
3965
4005
|
httpMethod: "GET",
|
|
3966
4006
|
responses: {
|
|
@@ -3979,7 +4019,7 @@ const listNextOperationSpec$1 = {
|
|
|
3979
4019
|
nextLink
|
|
3980
4020
|
],
|
|
3981
4021
|
headerParameters: [accept],
|
|
3982
|
-
serializer: serializer$
|
|
4022
|
+
serializer: serializer$7
|
|
3983
4023
|
};
|
|
3984
4024
|
|
|
3985
4025
|
/*
|
|
@@ -4054,7 +4094,7 @@ class PrivateCloudsImpl {
|
|
|
4054
4094
|
* @param options The options parameters.
|
|
4055
4095
|
*/
|
|
4056
4096
|
_list(regionId, options) {
|
|
4057
|
-
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec$
|
|
4097
|
+
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec$5);
|
|
4058
4098
|
}
|
|
4059
4099
|
/**
|
|
4060
4100
|
* Returns private cloud by its name
|
|
@@ -4063,7 +4103,7 @@ class PrivateCloudsImpl {
|
|
|
4063
4103
|
* @param options The options parameters.
|
|
4064
4104
|
*/
|
|
4065
4105
|
get(pcName, regionId, options) {
|
|
4066
|
-
return this.client.sendOperationRequest({ pcName, regionId, options }, getOperationSpec$
|
|
4106
|
+
return this.client.sendOperationRequest({ pcName, regionId, options }, getOperationSpec$5);
|
|
4067
4107
|
}
|
|
4068
4108
|
/**
|
|
4069
4109
|
* ListNext
|
|
@@ -4072,12 +4112,12 @@ class PrivateCloudsImpl {
|
|
|
4072
4112
|
* @param options The options parameters.
|
|
4073
4113
|
*/
|
|
4074
4114
|
_listNext(regionId, nextLink, options) {
|
|
4075
|
-
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec$
|
|
4115
|
+
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec$5);
|
|
4076
4116
|
}
|
|
4077
4117
|
}
|
|
4078
4118
|
// Operation Specifications
|
|
4079
|
-
const serializer$
|
|
4080
|
-
const listOperationSpec$
|
|
4119
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4120
|
+
const listOperationSpec$5 = {
|
|
4081
4121
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds",
|
|
4082
4122
|
httpMethod: "GET",
|
|
4083
4123
|
responses: {
|
|
@@ -4095,9 +4135,9 @@ const listOperationSpec$2 = {
|
|
|
4095
4135
|
regionId
|
|
4096
4136
|
],
|
|
4097
4137
|
headerParameters: [accept],
|
|
4098
|
-
serializer: serializer$
|
|
4138
|
+
serializer: serializer$6
|
|
4099
4139
|
};
|
|
4100
|
-
const getOperationSpec$
|
|
4140
|
+
const getOperationSpec$5 = {
|
|
4101
4141
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}",
|
|
4102
4142
|
httpMethod: "GET",
|
|
4103
4143
|
responses: {
|
|
@@ -4116,9 +4156,9 @@ const getOperationSpec$3 = {
|
|
|
4116
4156
|
pcName
|
|
4117
4157
|
],
|
|
4118
4158
|
headerParameters: [accept],
|
|
4119
|
-
serializer: serializer$
|
|
4159
|
+
serializer: serializer$6
|
|
4120
4160
|
};
|
|
4121
|
-
const listNextOperationSpec$
|
|
4161
|
+
const listNextOperationSpec$5 = {
|
|
4122
4162
|
path: "{nextLink}",
|
|
4123
4163
|
httpMethod: "GET",
|
|
4124
4164
|
responses: {
|
|
@@ -4137,7 +4177,7 @@ const listNextOperationSpec$2 = {
|
|
|
4137
4177
|
nextLink
|
|
4138
4178
|
],
|
|
4139
4179
|
headerParameters: [accept],
|
|
4140
|
-
serializer: serializer$
|
|
4180
|
+
serializer: serializer$6
|
|
4141
4181
|
};
|
|
4142
4182
|
|
|
4143
4183
|
/*
|
|
@@ -4214,7 +4254,7 @@ class CustomizationPoliciesImpl {
|
|
|
4214
4254
|
* @param options The options parameters.
|
|
4215
4255
|
*/
|
|
4216
4256
|
_list(regionId, pcName, options) {
|
|
4217
|
-
return this.client.sendOperationRequest({ regionId, pcName, options }, listOperationSpec$
|
|
4257
|
+
return this.client.sendOperationRequest({ regionId, pcName, options }, listOperationSpec$4);
|
|
4218
4258
|
}
|
|
4219
4259
|
/**
|
|
4220
4260
|
* Returns customization policy by its name
|
|
@@ -4234,12 +4274,12 @@ class CustomizationPoliciesImpl {
|
|
|
4234
4274
|
* @param options The options parameters.
|
|
4235
4275
|
*/
|
|
4236
4276
|
_listNext(regionId, pcName, nextLink, options) {
|
|
4237
|
-
return this.client.sendOperationRequest({ regionId, pcName, nextLink, options }, listNextOperationSpec$
|
|
4277
|
+
return this.client.sendOperationRequest({ regionId, pcName, nextLink, options }, listNextOperationSpec$4);
|
|
4238
4278
|
}
|
|
4239
4279
|
}
|
|
4240
4280
|
// Operation Specifications
|
|
4241
|
-
const serializer$5 =
|
|
4242
|
-
const listOperationSpec$
|
|
4281
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4282
|
+
const listOperationSpec$4 = {
|
|
4243
4283
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/customizationPolicies",
|
|
4244
4284
|
httpMethod: "GET",
|
|
4245
4285
|
responses: {
|
|
@@ -4282,7 +4322,7 @@ const getOperationSpec$4 = {
|
|
|
4282
4322
|
headerParameters: [accept],
|
|
4283
4323
|
serializer: serializer$5
|
|
4284
4324
|
};
|
|
4285
|
-
const listNextOperationSpec$
|
|
4325
|
+
const listNextOperationSpec$4 = {
|
|
4286
4326
|
path: "{nextLink}",
|
|
4287
4327
|
httpMethod: "GET",
|
|
4288
4328
|
responses: {
|
|
@@ -4379,7 +4419,7 @@ class ResourcePoolsImpl {
|
|
|
4379
4419
|
* @param options The options parameters.
|
|
4380
4420
|
*/
|
|
4381
4421
|
_list(regionId, pcName, options) {
|
|
4382
|
-
return this.client.sendOperationRequest({ regionId, pcName, options }, listOperationSpec$
|
|
4422
|
+
return this.client.sendOperationRequest({ regionId, pcName, options }, listOperationSpec$3);
|
|
4383
4423
|
}
|
|
4384
4424
|
/**
|
|
4385
4425
|
* Returns resource pool templates by its name
|
|
@@ -4389,7 +4429,7 @@ class ResourcePoolsImpl {
|
|
|
4389
4429
|
* @param options The options parameters.
|
|
4390
4430
|
*/
|
|
4391
4431
|
get(regionId, pcName, resourcePoolName, options) {
|
|
4392
|
-
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, options }, getOperationSpec$
|
|
4432
|
+
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, options }, getOperationSpec$3);
|
|
4393
4433
|
}
|
|
4394
4434
|
/**
|
|
4395
4435
|
* ListNext
|
|
@@ -4399,12 +4439,12 @@ class ResourcePoolsImpl {
|
|
|
4399
4439
|
* @param options The options parameters.
|
|
4400
4440
|
*/
|
|
4401
4441
|
_listNext(regionId, pcName, nextLink, options) {
|
|
4402
|
-
return this.client.sendOperationRequest({ regionId, pcName, nextLink, options }, listNextOperationSpec$
|
|
4442
|
+
return this.client.sendOperationRequest({ regionId, pcName, nextLink, options }, listNextOperationSpec$3);
|
|
4403
4443
|
}
|
|
4404
4444
|
}
|
|
4405
4445
|
// Operation Specifications
|
|
4406
|
-
const serializer$
|
|
4407
|
-
const listOperationSpec$
|
|
4446
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4447
|
+
const listOperationSpec$3 = {
|
|
4408
4448
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools",
|
|
4409
4449
|
httpMethod: "GET",
|
|
4410
4450
|
responses: {
|
|
@@ -4423,9 +4463,9 @@ const listOperationSpec$4 = {
|
|
|
4423
4463
|
pcName
|
|
4424
4464
|
],
|
|
4425
4465
|
headerParameters: [accept],
|
|
4426
|
-
serializer: serializer$
|
|
4466
|
+
serializer: serializer$4
|
|
4427
4467
|
};
|
|
4428
|
-
const getOperationSpec$
|
|
4468
|
+
const getOperationSpec$3 = {
|
|
4429
4469
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/resourcePools/{resourcePoolName}",
|
|
4430
4470
|
httpMethod: "GET",
|
|
4431
4471
|
responses: {
|
|
@@ -4445,9 +4485,9 @@ const getOperationSpec$5 = {
|
|
|
4445
4485
|
resourcePoolName
|
|
4446
4486
|
],
|
|
4447
4487
|
headerParameters: [accept],
|
|
4448
|
-
serializer: serializer$
|
|
4488
|
+
serializer: serializer$4
|
|
4449
4489
|
};
|
|
4450
|
-
const listNextOperationSpec$
|
|
4490
|
+
const listNextOperationSpec$3 = {
|
|
4451
4491
|
path: "{nextLink}",
|
|
4452
4492
|
httpMethod: "GET",
|
|
4453
4493
|
responses: {
|
|
@@ -4467,7 +4507,7 @@ const listNextOperationSpec$4 = {
|
|
|
4467
4507
|
pcName
|
|
4468
4508
|
],
|
|
4469
4509
|
headerParameters: [accept],
|
|
4470
|
-
serializer: serializer$
|
|
4510
|
+
serializer: serializer$4
|
|
4471
4511
|
};
|
|
4472
4512
|
|
|
4473
4513
|
/*
|
|
@@ -4546,7 +4586,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
4546
4586
|
* @param options The options parameters.
|
|
4547
4587
|
*/
|
|
4548
4588
|
_list(pcName, regionId, resourcePoolName, options) {
|
|
4549
|
-
return this.client.sendOperationRequest({ pcName, regionId, resourcePoolName, options }, listOperationSpec$
|
|
4589
|
+
return this.client.sendOperationRequest({ pcName, regionId, resourcePoolName, options }, listOperationSpec$2);
|
|
4550
4590
|
}
|
|
4551
4591
|
/**
|
|
4552
4592
|
* Returns virtual machine templates by its name
|
|
@@ -4556,7 +4596,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
4556
4596
|
* @param options The options parameters.
|
|
4557
4597
|
*/
|
|
4558
4598
|
get(regionId, pcName, virtualMachineTemplateName, options) {
|
|
4559
|
-
return this.client.sendOperationRequest({ regionId, pcName, virtualMachineTemplateName, options }, getOperationSpec$
|
|
4599
|
+
return this.client.sendOperationRequest({ regionId, pcName, virtualMachineTemplateName, options }, getOperationSpec$2);
|
|
4560
4600
|
}
|
|
4561
4601
|
/**
|
|
4562
4602
|
* ListNext
|
|
@@ -4567,12 +4607,12 @@ class VirtualMachineTemplatesImpl {
|
|
|
4567
4607
|
* @param options The options parameters.
|
|
4568
4608
|
*/
|
|
4569
4609
|
_listNext(pcName, regionId, resourcePoolName, nextLink, options) {
|
|
4570
|
-
return this.client.sendOperationRequest({ pcName, regionId, resourcePoolName, nextLink, options }, listNextOperationSpec$
|
|
4610
|
+
return this.client.sendOperationRequest({ pcName, regionId, resourcePoolName, nextLink, options }, listNextOperationSpec$2);
|
|
4571
4611
|
}
|
|
4572
4612
|
}
|
|
4573
4613
|
// Operation Specifications
|
|
4574
|
-
const serializer$
|
|
4575
|
-
const listOperationSpec$
|
|
4614
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4615
|
+
const listOperationSpec$2 = {
|
|
4576
4616
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualMachineTemplates",
|
|
4577
4617
|
httpMethod: "GET",
|
|
4578
4618
|
responses: {
|
|
@@ -4591,9 +4631,9 @@ const listOperationSpec$5 = {
|
|
|
4591
4631
|
pcName
|
|
4592
4632
|
],
|
|
4593
4633
|
headerParameters: [accept],
|
|
4594
|
-
serializer: serializer$
|
|
4634
|
+
serializer: serializer$3
|
|
4595
4635
|
};
|
|
4596
|
-
const getOperationSpec$
|
|
4636
|
+
const getOperationSpec$2 = {
|
|
4597
4637
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualMachineTemplates/{virtualMachineTemplateName}",
|
|
4598
4638
|
httpMethod: "GET",
|
|
4599
4639
|
responses: {
|
|
@@ -4613,9 +4653,9 @@ const getOperationSpec$6 = {
|
|
|
4613
4653
|
virtualMachineTemplateName
|
|
4614
4654
|
],
|
|
4615
4655
|
headerParameters: [accept],
|
|
4616
|
-
serializer: serializer$
|
|
4656
|
+
serializer: serializer$3
|
|
4617
4657
|
};
|
|
4618
|
-
const listNextOperationSpec$
|
|
4658
|
+
const listNextOperationSpec$2 = {
|
|
4619
4659
|
path: "{nextLink}",
|
|
4620
4660
|
httpMethod: "GET",
|
|
4621
4661
|
responses: {
|
|
@@ -4635,7 +4675,7 @@ const listNextOperationSpec$5 = {
|
|
|
4635
4675
|
pcName
|
|
4636
4676
|
],
|
|
4637
4677
|
headerParameters: [accept],
|
|
4638
|
-
serializer: serializer$
|
|
4678
|
+
serializer: serializer$3
|
|
4639
4679
|
};
|
|
4640
4680
|
|
|
4641
4681
|
/*
|
|
@@ -4714,7 +4754,7 @@ class VirtualNetworksImpl {
|
|
|
4714
4754
|
* @param options The options parameters.
|
|
4715
4755
|
*/
|
|
4716
4756
|
_list(regionId, pcName, resourcePoolName, options) {
|
|
4717
|
-
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, options }, listOperationSpec$
|
|
4757
|
+
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, options }, listOperationSpec$1);
|
|
4718
4758
|
}
|
|
4719
4759
|
/**
|
|
4720
4760
|
* Return virtual network by its name
|
|
@@ -4724,7 +4764,7 @@ class VirtualNetworksImpl {
|
|
|
4724
4764
|
* @param options The options parameters.
|
|
4725
4765
|
*/
|
|
4726
4766
|
get(regionId, pcName, virtualNetworkName, options) {
|
|
4727
|
-
return this.client.sendOperationRequest({ regionId, pcName, virtualNetworkName, options }, getOperationSpec$
|
|
4767
|
+
return this.client.sendOperationRequest({ regionId, pcName, virtualNetworkName, options }, getOperationSpec$1);
|
|
4728
4768
|
}
|
|
4729
4769
|
/**
|
|
4730
4770
|
* ListNext
|
|
@@ -4735,12 +4775,12 @@ class VirtualNetworksImpl {
|
|
|
4735
4775
|
* @param options The options parameters.
|
|
4736
4776
|
*/
|
|
4737
4777
|
_listNext(regionId, pcName, resourcePoolName, nextLink, options) {
|
|
4738
|
-
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, nextLink, options }, listNextOperationSpec$
|
|
4778
|
+
return this.client.sendOperationRequest({ regionId, pcName, resourcePoolName, nextLink, options }, listNextOperationSpec$1);
|
|
4739
4779
|
}
|
|
4740
4780
|
}
|
|
4741
4781
|
// Operation Specifications
|
|
4742
|
-
const serializer$
|
|
4743
|
-
const listOperationSpec$
|
|
4782
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4783
|
+
const listOperationSpec$1 = {
|
|
4744
4784
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualNetworks",
|
|
4745
4785
|
httpMethod: "GET",
|
|
4746
4786
|
responses: {
|
|
@@ -4759,9 +4799,9 @@ const listOperationSpec$6 = {
|
|
|
4759
4799
|
pcName
|
|
4760
4800
|
],
|
|
4761
4801
|
headerParameters: [accept],
|
|
4762
|
-
serializer: serializer$
|
|
4802
|
+
serializer: serializer$2
|
|
4763
4803
|
};
|
|
4764
|
-
const getOperationSpec$
|
|
4804
|
+
const getOperationSpec$1 = {
|
|
4765
4805
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds/{pcName}/virtualNetworks/{virtualNetworkName}",
|
|
4766
4806
|
httpMethod: "GET",
|
|
4767
4807
|
responses: {
|
|
@@ -4781,9 +4821,9 @@ const getOperationSpec$7 = {
|
|
|
4781
4821
|
virtualNetworkName
|
|
4782
4822
|
],
|
|
4783
4823
|
headerParameters: [accept],
|
|
4784
|
-
serializer: serializer$
|
|
4824
|
+
serializer: serializer$2
|
|
4785
4825
|
};
|
|
4786
|
-
const listNextOperationSpec$
|
|
4826
|
+
const listNextOperationSpec$1 = {
|
|
4787
4827
|
path: "{nextLink}",
|
|
4788
4828
|
httpMethod: "GET",
|
|
4789
4829
|
responses: {
|
|
@@ -4803,7 +4843,7 @@ const listNextOperationSpec$6 = {
|
|
|
4803
4843
|
pcName
|
|
4804
4844
|
],
|
|
4805
4845
|
headerParameters: [accept],
|
|
4806
|
-
serializer: serializer$
|
|
4846
|
+
serializer: serializer$2
|
|
4807
4847
|
};
|
|
4808
4848
|
|
|
4809
4849
|
/*
|
|
@@ -4878,7 +4918,7 @@ class UsagesImpl {
|
|
|
4878
4918
|
* @param options The options parameters.
|
|
4879
4919
|
*/
|
|
4880
4920
|
_list(regionId, options) {
|
|
4881
|
-
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec
|
|
4921
|
+
return this.client.sendOperationRequest({ regionId, options }, listOperationSpec);
|
|
4882
4922
|
}
|
|
4883
4923
|
/**
|
|
4884
4924
|
* ListNext
|
|
@@ -4887,12 +4927,12 @@ class UsagesImpl {
|
|
|
4887
4927
|
* @param options The options parameters.
|
|
4888
4928
|
*/
|
|
4889
4929
|
_listNext(regionId, nextLink, options) {
|
|
4890
|
-
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec
|
|
4930
|
+
return this.client.sendOperationRequest({ regionId, nextLink, options }, listNextOperationSpec);
|
|
4891
4931
|
}
|
|
4892
4932
|
}
|
|
4893
4933
|
// Operation Specifications
|
|
4894
|
-
const serializer$
|
|
4895
|
-
const listOperationSpec
|
|
4934
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4935
|
+
const listOperationSpec = {
|
|
4896
4936
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/usages",
|
|
4897
4937
|
httpMethod: "GET",
|
|
4898
4938
|
responses: {
|
|
@@ -4910,9 +4950,9 @@ const listOperationSpec$7 = {
|
|
|
4910
4950
|
regionId
|
|
4911
4951
|
],
|
|
4912
4952
|
headerParameters: [accept],
|
|
4913
|
-
serializer: serializer$
|
|
4953
|
+
serializer: serializer$1
|
|
4914
4954
|
};
|
|
4915
|
-
const listNextOperationSpec
|
|
4955
|
+
const listNextOperationSpec = {
|
|
4916
4956
|
path: "{nextLink}",
|
|
4917
4957
|
httpMethod: "GET",
|
|
4918
4958
|
responses: {
|
|
@@ -4931,7 +4971,7 @@ const listNextOperationSpec$7 = {
|
|
|
4931
4971
|
nextLink
|
|
4932
4972
|
],
|
|
4933
4973
|
headerParameters: [accept],
|
|
4934
|
-
serializer: serializer$
|
|
4974
|
+
serializer: serializer$1
|
|
4935
4975
|
};
|
|
4936
4976
|
|
|
4937
4977
|
/*
|
|
@@ -5053,7 +5093,7 @@ class VirtualMachinesImpl {
|
|
|
5053
5093
|
* @param options The options parameters.
|
|
5054
5094
|
*/
|
|
5055
5095
|
_listBySubscription(options) {
|
|
5056
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec
|
|
5096
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
5057
5097
|
}
|
|
5058
5098
|
/**
|
|
5059
5099
|
* Returns list of virtual machine within resource group
|
|
@@ -5061,7 +5101,7 @@ class VirtualMachinesImpl {
|
|
|
5061
5101
|
* @param options The options parameters.
|
|
5062
5102
|
*/
|
|
5063
5103
|
_listByResourceGroup(resourceGroupName, options) {
|
|
5064
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec
|
|
5104
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
5065
5105
|
}
|
|
5066
5106
|
/**
|
|
5067
5107
|
* Get virtual machine
|
|
@@ -5070,16 +5110,17 @@ class VirtualMachinesImpl {
|
|
|
5070
5110
|
* @param options The options parameters.
|
|
5071
5111
|
*/
|
|
5072
5112
|
get(resourceGroupName, virtualMachineName, options) {
|
|
5073
|
-
return this.client.sendOperationRequest({ resourceGroupName, virtualMachineName, options }, getOperationSpec
|
|
5113
|
+
return this.client.sendOperationRequest({ resourceGroupName, virtualMachineName, options }, getOperationSpec);
|
|
5074
5114
|
}
|
|
5075
5115
|
/**
|
|
5076
5116
|
* Create Or Update Virtual Machine
|
|
5077
5117
|
* @param resourceGroupName The name of the resource group
|
|
5118
|
+
* @param referer referer url
|
|
5078
5119
|
* @param virtualMachineName virtual machine name
|
|
5079
5120
|
* @param virtualMachineRequest Create or Update Virtual Machine request
|
|
5080
5121
|
* @param options The options parameters.
|
|
5081
5122
|
*/
|
|
5082
|
-
beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
|
|
5123
|
+
beginCreateOrUpdate(resourceGroupName, referer, virtualMachineName, virtualMachineRequest, options) {
|
|
5083
5124
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5084
5125
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5085
5126
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -5103,33 +5144,43 @@ class VirtualMachinesImpl {
|
|
|
5103
5144
|
}
|
|
5104
5145
|
};
|
|
5105
5146
|
});
|
|
5106
|
-
const lro = new LroImpl(sendOperation, {
|
|
5107
|
-
|
|
5147
|
+
const lro = new LroImpl(sendOperation, {
|
|
5148
|
+
resourceGroupName,
|
|
5149
|
+
referer,
|
|
5150
|
+
virtualMachineName,
|
|
5151
|
+
virtualMachineRequest,
|
|
5152
|
+
options
|
|
5153
|
+
}, createOrUpdateOperationSpec);
|
|
5154
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5108
5155
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5109
5156
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5110
5157
|
});
|
|
5158
|
+
yield poller.poll();
|
|
5159
|
+
return poller;
|
|
5111
5160
|
});
|
|
5112
5161
|
}
|
|
5113
5162
|
/**
|
|
5114
5163
|
* Create Or Update Virtual Machine
|
|
5115
5164
|
* @param resourceGroupName The name of the resource group
|
|
5165
|
+
* @param referer referer url
|
|
5116
5166
|
* @param virtualMachineName virtual machine name
|
|
5117
5167
|
* @param virtualMachineRequest Create or Update Virtual Machine request
|
|
5118
5168
|
* @param options The options parameters.
|
|
5119
5169
|
*/
|
|
5120
|
-
beginCreateOrUpdateAndWait(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
|
|
5170
|
+
beginCreateOrUpdateAndWait(resourceGroupName, referer, virtualMachineName, virtualMachineRequest, options) {
|
|
5121
5171
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5122
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options);
|
|
5172
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, referer, virtualMachineName, virtualMachineRequest, options);
|
|
5123
5173
|
return poller.pollUntilDone();
|
|
5124
5174
|
});
|
|
5125
5175
|
}
|
|
5126
5176
|
/**
|
|
5127
5177
|
* Delete virtual machine
|
|
5128
5178
|
* @param resourceGroupName The name of the resource group
|
|
5179
|
+
* @param referer referer url
|
|
5129
5180
|
* @param virtualMachineName virtual machine name
|
|
5130
5181
|
* @param options The options parameters.
|
|
5131
5182
|
*/
|
|
5132
|
-
beginDelete(resourceGroupName, virtualMachineName, options) {
|
|
5183
|
+
beginDelete(resourceGroupName, referer, virtualMachineName, options) {
|
|
5133
5184
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5134
5185
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5135
5186
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -5153,22 +5204,25 @@ class VirtualMachinesImpl {
|
|
|
5153
5204
|
}
|
|
5154
5205
|
};
|
|
5155
5206
|
});
|
|
5156
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, options }, deleteOperationSpec
|
|
5157
|
-
|
|
5207
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, referer, virtualMachineName, options }, deleteOperationSpec);
|
|
5208
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5158
5209
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5159
5210
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5160
5211
|
});
|
|
5212
|
+
yield poller.poll();
|
|
5213
|
+
return poller;
|
|
5161
5214
|
});
|
|
5162
5215
|
}
|
|
5163
5216
|
/**
|
|
5164
5217
|
* Delete virtual machine
|
|
5165
5218
|
* @param resourceGroupName The name of the resource group
|
|
5219
|
+
* @param referer referer url
|
|
5166
5220
|
* @param virtualMachineName virtual machine name
|
|
5167
5221
|
* @param options The options parameters.
|
|
5168
5222
|
*/
|
|
5169
|
-
beginDeleteAndWait(resourceGroupName, virtualMachineName, options) {
|
|
5223
|
+
beginDeleteAndWait(resourceGroupName, referer, virtualMachineName, options) {
|
|
5170
5224
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5171
|
-
const poller = yield this.beginDelete(resourceGroupName, virtualMachineName, options);
|
|
5225
|
+
const poller = yield this.beginDelete(resourceGroupName, referer, virtualMachineName, options);
|
|
5172
5226
|
return poller.pollUntilDone();
|
|
5173
5227
|
});
|
|
5174
5228
|
}
|
|
@@ -5203,11 +5257,13 @@ class VirtualMachinesImpl {
|
|
|
5203
5257
|
}
|
|
5204
5258
|
};
|
|
5205
5259
|
});
|
|
5206
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, virtualMachineRequest, options }, updateOperationSpec
|
|
5207
|
-
|
|
5260
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, virtualMachineRequest, options }, updateOperationSpec);
|
|
5261
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5208
5262
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5209
5263
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5210
5264
|
});
|
|
5265
|
+
yield poller.poll();
|
|
5266
|
+
return poller;
|
|
5211
5267
|
});
|
|
5212
5268
|
}
|
|
5213
5269
|
/**
|
|
@@ -5226,10 +5282,11 @@ class VirtualMachinesImpl {
|
|
|
5226
5282
|
/**
|
|
5227
5283
|
* Power on virtual machine
|
|
5228
5284
|
* @param resourceGroupName The name of the resource group
|
|
5285
|
+
* @param referer referer url
|
|
5229
5286
|
* @param virtualMachineName virtual machine name
|
|
5230
5287
|
* @param options The options parameters.
|
|
5231
5288
|
*/
|
|
5232
|
-
beginStart(resourceGroupName, virtualMachineName, options) {
|
|
5289
|
+
beginStart(resourceGroupName, referer, virtualMachineName, options) {
|
|
5233
5290
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5234
5291
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5235
5292
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -5253,32 +5310,36 @@ class VirtualMachinesImpl {
|
|
|
5253
5310
|
}
|
|
5254
5311
|
};
|
|
5255
5312
|
});
|
|
5256
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, options }, startOperationSpec);
|
|
5257
|
-
|
|
5313
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, referer, virtualMachineName, options }, startOperationSpec);
|
|
5314
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5258
5315
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5259
5316
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5260
5317
|
});
|
|
5318
|
+
yield poller.poll();
|
|
5319
|
+
return poller;
|
|
5261
5320
|
});
|
|
5262
5321
|
}
|
|
5263
5322
|
/**
|
|
5264
5323
|
* Power on virtual machine
|
|
5265
5324
|
* @param resourceGroupName The name of the resource group
|
|
5325
|
+
* @param referer referer url
|
|
5266
5326
|
* @param virtualMachineName virtual machine name
|
|
5267
5327
|
* @param options The options parameters.
|
|
5268
5328
|
*/
|
|
5269
|
-
beginStartAndWait(resourceGroupName, virtualMachineName, options) {
|
|
5329
|
+
beginStartAndWait(resourceGroupName, referer, virtualMachineName, options) {
|
|
5270
5330
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5271
|
-
const poller = yield this.beginStart(resourceGroupName, virtualMachineName, options);
|
|
5331
|
+
const poller = yield this.beginStart(resourceGroupName, referer, virtualMachineName, options);
|
|
5272
5332
|
return poller.pollUntilDone();
|
|
5273
5333
|
});
|
|
5274
5334
|
}
|
|
5275
5335
|
/**
|
|
5276
5336
|
* Power off virtual machine, options: shutdown, poweroff, and suspend
|
|
5277
5337
|
* @param resourceGroupName The name of the resource group
|
|
5338
|
+
* @param referer referer url
|
|
5278
5339
|
* @param virtualMachineName virtual machine name
|
|
5279
5340
|
* @param options The options parameters.
|
|
5280
5341
|
*/
|
|
5281
|
-
beginStop(resourceGroupName, virtualMachineName, options) {
|
|
5342
|
+
beginStop(resourceGroupName, referer, virtualMachineName, options) {
|
|
5282
5343
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5283
5344
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5284
5345
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -5302,22 +5363,25 @@ class VirtualMachinesImpl {
|
|
|
5302
5363
|
}
|
|
5303
5364
|
};
|
|
5304
5365
|
});
|
|
5305
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, options }, stopOperationSpec);
|
|
5306
|
-
|
|
5366
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, referer, virtualMachineName, options }, stopOperationSpec);
|
|
5367
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
5307
5368
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5308
5369
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5309
5370
|
});
|
|
5371
|
+
yield poller.poll();
|
|
5372
|
+
return poller;
|
|
5310
5373
|
});
|
|
5311
5374
|
}
|
|
5312
5375
|
/**
|
|
5313
5376
|
* Power off virtual machine, options: shutdown, poweroff, and suspend
|
|
5314
5377
|
* @param resourceGroupName The name of the resource group
|
|
5378
|
+
* @param referer referer url
|
|
5315
5379
|
* @param virtualMachineName virtual machine name
|
|
5316
5380
|
* @param options The options parameters.
|
|
5317
5381
|
*/
|
|
5318
|
-
beginStopAndWait(resourceGroupName, virtualMachineName, options) {
|
|
5382
|
+
beginStopAndWait(resourceGroupName, referer, virtualMachineName, options) {
|
|
5319
5383
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5320
|
-
const poller = yield this.beginStop(resourceGroupName, virtualMachineName, options);
|
|
5384
|
+
const poller = yield this.beginStop(resourceGroupName, referer, virtualMachineName, options);
|
|
5321
5385
|
return poller.pollUntilDone();
|
|
5322
5386
|
});
|
|
5323
5387
|
}
|
|
@@ -5327,7 +5391,7 @@ class VirtualMachinesImpl {
|
|
|
5327
5391
|
* @param options The options parameters.
|
|
5328
5392
|
*/
|
|
5329
5393
|
_listBySubscriptionNext(nextLink, options) {
|
|
5330
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec
|
|
5394
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
5331
5395
|
}
|
|
5332
5396
|
/**
|
|
5333
5397
|
* ListByResourceGroupNext
|
|
@@ -5336,12 +5400,12 @@ class VirtualMachinesImpl {
|
|
|
5336
5400
|
* @param options The options parameters.
|
|
5337
5401
|
*/
|
|
5338
5402
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
5339
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec
|
|
5403
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
5340
5404
|
}
|
|
5341
5405
|
}
|
|
5342
5406
|
// Operation Specifications
|
|
5343
|
-
const serializer
|
|
5344
|
-
const listBySubscriptionOperationSpec
|
|
5407
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
5408
|
+
const listBySubscriptionOperationSpec = {
|
|
5345
5409
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/virtualMachines",
|
|
5346
5410
|
httpMethod: "GET",
|
|
5347
5411
|
responses: {
|
|
@@ -5360,9 +5424,9 @@ const listBySubscriptionOperationSpec$2 = {
|
|
|
5360
5424
|
],
|
|
5361
5425
|
urlParameters: [$host, subscriptionId],
|
|
5362
5426
|
headerParameters: [accept],
|
|
5363
|
-
serializer
|
|
5427
|
+
serializer
|
|
5364
5428
|
};
|
|
5365
|
-
const listByResourceGroupOperationSpec
|
|
5429
|
+
const listByResourceGroupOperationSpec = {
|
|
5366
5430
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines",
|
|
5367
5431
|
httpMethod: "GET",
|
|
5368
5432
|
responses: {
|
|
@@ -5385,9 +5449,9 @@ const listByResourceGroupOperationSpec$2 = {
|
|
|
5385
5449
|
resourceGroupName
|
|
5386
5450
|
],
|
|
5387
5451
|
headerParameters: [accept],
|
|
5388
|
-
serializer
|
|
5452
|
+
serializer
|
|
5389
5453
|
};
|
|
5390
|
-
const getOperationSpec
|
|
5454
|
+
const getOperationSpec = {
|
|
5391
5455
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
|
|
5392
5456
|
httpMethod: "GET",
|
|
5393
5457
|
responses: {
|
|
@@ -5406,9 +5470,9 @@ const getOperationSpec$8 = {
|
|
|
5406
5470
|
virtualMachineName
|
|
5407
5471
|
],
|
|
5408
5472
|
headerParameters: [accept],
|
|
5409
|
-
serializer
|
|
5473
|
+
serializer
|
|
5410
5474
|
};
|
|
5411
|
-
const createOrUpdateOperationSpec
|
|
5475
|
+
const createOrUpdateOperationSpec = {
|
|
5412
5476
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
|
|
5413
5477
|
httpMethod: "PUT",
|
|
5414
5478
|
responses: {
|
|
@@ -5446,9 +5510,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
5446
5510
|
contentType
|
|
5447
5511
|
],
|
|
5448
5512
|
mediaType: "json",
|
|
5449
|
-
serializer
|
|
5513
|
+
serializer
|
|
5450
5514
|
};
|
|
5451
|
-
const deleteOperationSpec
|
|
5515
|
+
const deleteOperationSpec = {
|
|
5452
5516
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
|
|
5453
5517
|
httpMethod: "DELETE",
|
|
5454
5518
|
responses: {
|
|
@@ -5477,9 +5541,9 @@ const deleteOperationSpec$2 = {
|
|
|
5477
5541
|
virtualMachineName
|
|
5478
5542
|
],
|
|
5479
5543
|
headerParameters: [accept, referer],
|
|
5480
|
-
serializer
|
|
5544
|
+
serializer
|
|
5481
5545
|
};
|
|
5482
|
-
const updateOperationSpec
|
|
5546
|
+
const updateOperationSpec = {
|
|
5483
5547
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}",
|
|
5484
5548
|
httpMethod: "PATCH",
|
|
5485
5549
|
responses: {
|
|
@@ -5509,7 +5573,7 @@ const updateOperationSpec$2 = {
|
|
|
5509
5573
|
],
|
|
5510
5574
|
headerParameters: [accept, contentType],
|
|
5511
5575
|
mediaType: "json",
|
|
5512
|
-
serializer
|
|
5576
|
+
serializer
|
|
5513
5577
|
};
|
|
5514
5578
|
const startOperationSpec = {
|
|
5515
5579
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}/start",
|
|
@@ -5532,7 +5596,7 @@ const startOperationSpec = {
|
|
|
5532
5596
|
virtualMachineName
|
|
5533
5597
|
],
|
|
5534
5598
|
headerParameters: [accept, referer],
|
|
5535
|
-
serializer
|
|
5599
|
+
serializer
|
|
5536
5600
|
};
|
|
5537
5601
|
const stopOperationSpec = {
|
|
5538
5602
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/virtualMachines/{virtualMachineName}/stop",
|
|
@@ -5561,9 +5625,9 @@ const stopOperationSpec = {
|
|
|
5561
5625
|
contentType
|
|
5562
5626
|
],
|
|
5563
5627
|
mediaType: "json",
|
|
5564
|
-
serializer
|
|
5628
|
+
serializer
|
|
5565
5629
|
};
|
|
5566
|
-
const listBySubscriptionNextOperationSpec
|
|
5630
|
+
const listBySubscriptionNextOperationSpec = {
|
|
5567
5631
|
path: "{nextLink}",
|
|
5568
5632
|
httpMethod: "GET",
|
|
5569
5633
|
responses: {
|
|
@@ -5586,9 +5650,9 @@ const listBySubscriptionNextOperationSpec$2 = {
|
|
|
5586
5650
|
nextLink
|
|
5587
5651
|
],
|
|
5588
5652
|
headerParameters: [accept],
|
|
5589
|
-
serializer
|
|
5653
|
+
serializer
|
|
5590
5654
|
};
|
|
5591
|
-
const listByResourceGroupNextOperationSpec
|
|
5655
|
+
const listByResourceGroupNextOperationSpec = {
|
|
5592
5656
|
path: "{nextLink}",
|
|
5593
5657
|
httpMethod: "GET",
|
|
5594
5658
|
responses: {
|
|
@@ -5612,7 +5676,7 @@ const listByResourceGroupNextOperationSpec$2 = {
|
|
|
5612
5676
|
resourceGroupName
|
|
5613
5677
|
],
|
|
5614
5678
|
headerParameters: [accept],
|
|
5615
|
-
serializer
|
|
5679
|
+
serializer
|
|
5616
5680
|
};
|
|
5617
5681
|
|
|
5618
5682
|
/*
|
|
@@ -5622,24 +5686,21 @@ const listByResourceGroupNextOperationSpec$2 = {
|
|
|
5622
5686
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
5623
5687
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5624
5688
|
*/
|
|
5625
|
-
class VMwareCloudSimple extends
|
|
5689
|
+
class VMwareCloudSimple extends coreClient__namespace.ServiceClient {
|
|
5626
5690
|
/**
|
|
5627
5691
|
* Initializes a new instance of the VMwareCloudSimple class.
|
|
5628
5692
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
5629
5693
|
* @param subscriptionId The subscription ID.
|
|
5630
|
-
* @param referer referer url
|
|
5631
5694
|
* @param options The parameter options
|
|
5632
5695
|
*/
|
|
5633
|
-
constructor(credentials, subscriptionId,
|
|
5696
|
+
constructor(credentials, subscriptionId, options) {
|
|
5697
|
+
var _a, _b;
|
|
5634
5698
|
if (credentials === undefined) {
|
|
5635
5699
|
throw new Error("'credentials' cannot be null");
|
|
5636
5700
|
}
|
|
5637
5701
|
if (subscriptionId === undefined) {
|
|
5638
5702
|
throw new Error("'subscriptionId' cannot be null");
|
|
5639
5703
|
}
|
|
5640
|
-
if (referer === undefined) {
|
|
5641
|
-
throw new Error("'referer' cannot be null");
|
|
5642
|
-
}
|
|
5643
5704
|
// Initializing default values for options
|
|
5644
5705
|
if (!options) {
|
|
5645
5706
|
options = {};
|
|
@@ -5648,7 +5709,7 @@ class VMwareCloudSimple extends coreClient.ServiceClient {
|
|
|
5648
5709
|
requestContentType: "application/json; charset=utf-8",
|
|
5649
5710
|
credential: credentials
|
|
5650
5711
|
};
|
|
5651
|
-
const packageDetails = `azsdk-js-arm-vmwarecloudsimple/
|
|
5712
|
+
const packageDetails = `azsdk-js-arm-vmwarecloudsimple/3.0.0`;
|
|
5652
5713
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
5653
5714
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
5654
5715
|
: `${packageDetails}`;
|
|
@@ -5657,11 +5718,26 @@ class VMwareCloudSimple extends coreClient.ServiceClient {
|
|
|
5657
5718
|
}
|
|
5658
5719
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5659
5720
|
userAgentPrefix
|
|
5660
|
-
}, baseUri: options.endpoint
|
|
5721
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5661
5722
|
super(optionsWithDefaults);
|
|
5723
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5724
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5725
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5726
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
5727
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
5728
|
+
this.pipeline.removePolicy({
|
|
5729
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
5730
|
+
});
|
|
5731
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5732
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
5733
|
+
challengeCallbacks: {
|
|
5734
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5735
|
+
}
|
|
5736
|
+
}));
|
|
5737
|
+
}
|
|
5738
|
+
}
|
|
5662
5739
|
// Parameter assignments
|
|
5663
5740
|
this.subscriptionId = subscriptionId;
|
|
5664
|
-
this.referer = referer;
|
|
5665
5741
|
// Assigning values to Constant parameters
|
|
5666
5742
|
this.$host = options.$host || "https://management.azure.com";
|
|
5667
5743
|
this.apiVersion = options.apiVersion || "2019-04-01";
|