@azure/arm-connectedvmware 1.0.0-alpha.20250102.1 → 1.0.0-alpha.20250106.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/dist/index.js +221 -221
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
|
|
|
47
47
|
if (typeof page !== "object" || page === null) {
|
|
48
48
|
return undefined;
|
|
49
49
|
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -3976,7 +3976,7 @@ class OperationsImpl {
|
|
|
3976
3976
|
return this;
|
|
3977
3977
|
},
|
|
3978
3978
|
byPage: (settings) => {
|
|
3979
|
-
if (settings === null || settings ===
|
|
3979
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3980
3980
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3981
3981
|
}
|
|
3982
3982
|
return this.listPagingPage(options, settings);
|
|
@@ -3986,7 +3986,7 @@ class OperationsImpl {
|
|
|
3986
3986
|
listPagingPage(options, settings) {
|
|
3987
3987
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3988
3988
|
let result;
|
|
3989
|
-
let continuationToken = settings === null || settings ===
|
|
3989
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3990
3990
|
if (!continuationToken) {
|
|
3991
3991
|
result = yield tslib.__await(this._list(options));
|
|
3992
3992
|
let page = result.value || [];
|
|
@@ -4088,7 +4088,7 @@ function createLroSpec(inputs) {
|
|
|
4088
4088
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
4089
4089
|
sendPollRequest: (path, options) => {
|
|
4090
4090
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
4091
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
4091
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
4092
4092
|
}
|
|
4093
4093
|
};
|
|
4094
4094
|
}
|
|
@@ -4124,7 +4124,7 @@ class ResourcePoolsImpl {
|
|
|
4124
4124
|
return this;
|
|
4125
4125
|
},
|
|
4126
4126
|
byPage: (settings) => {
|
|
4127
|
-
if (settings === null || settings ===
|
|
4127
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4128
4128
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4129
4129
|
}
|
|
4130
4130
|
return this.listPagingPage(options, settings);
|
|
@@ -4134,7 +4134,7 @@ class ResourcePoolsImpl {
|
|
|
4134
4134
|
listPagingPage(options, settings) {
|
|
4135
4135
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4136
4136
|
let result;
|
|
4137
|
-
let continuationToken = settings === null || settings ===
|
|
4137
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4138
4138
|
if (!continuationToken) {
|
|
4139
4139
|
result = yield tslib.__await(this._list(options));
|
|
4140
4140
|
let page = result.value || [];
|
|
@@ -4186,7 +4186,7 @@ class ResourcePoolsImpl {
|
|
|
4186
4186
|
return this;
|
|
4187
4187
|
},
|
|
4188
4188
|
byPage: (settings) => {
|
|
4189
|
-
if (settings === null || settings ===
|
|
4189
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4190
4190
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4191
4191
|
}
|
|
4192
4192
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -4196,7 +4196,7 @@ class ResourcePoolsImpl {
|
|
|
4196
4196
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4197
4197
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4198
4198
|
let result;
|
|
4199
|
-
let continuationToken = settings === null || settings ===
|
|
4199
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4200
4200
|
if (!continuationToken) {
|
|
4201
4201
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
4202
4202
|
let page = result.value || [];
|
|
@@ -4240,17 +4240,17 @@ class ResourcePoolsImpl {
|
|
|
4240
4240
|
* @param options The options parameters.
|
|
4241
4241
|
*/
|
|
4242
4242
|
beginCreate(resourceGroupName, resourcePoolName, options) {
|
|
4243
|
-
return tslib.__awaiter(this,
|
|
4244
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4243
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4244
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4245
4245
|
return this.client.sendOperationRequest(args, spec);
|
|
4246
4246
|
});
|
|
4247
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4247
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4248
4248
|
var _a;
|
|
4249
4249
|
let currentRawResponse = undefined;
|
|
4250
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4250
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4251
4251
|
const callback = (rawResponse, flatResponse) => {
|
|
4252
4252
|
currentRawResponse = rawResponse;
|
|
4253
|
-
providedCallback === null || providedCallback ===
|
|
4253
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4254
4254
|
};
|
|
4255
4255
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4256
4256
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4269,8 +4269,8 @@ class ResourcePoolsImpl {
|
|
|
4269
4269
|
spec: createOperationSpec$8
|
|
4270
4270
|
});
|
|
4271
4271
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4272
|
-
restoreFrom: options === null || options ===
|
|
4273
|
-
intervalInMs: options === null || options ===
|
|
4272
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4273
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4274
4274
|
resourceLocationConfig: "azure-async-operation"
|
|
4275
4275
|
});
|
|
4276
4276
|
yield poller.poll();
|
|
@@ -4284,7 +4284,7 @@ class ResourcePoolsImpl {
|
|
|
4284
4284
|
* @param options The options parameters.
|
|
4285
4285
|
*/
|
|
4286
4286
|
beginCreateAndWait(resourceGroupName, resourcePoolName, options) {
|
|
4287
|
-
return tslib.__awaiter(this,
|
|
4287
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4288
4288
|
const poller = yield this.beginCreate(resourceGroupName, resourcePoolName, options);
|
|
4289
4289
|
return poller.pollUntilDone();
|
|
4290
4290
|
});
|
|
@@ -4314,17 +4314,17 @@ class ResourcePoolsImpl {
|
|
|
4314
4314
|
* @param options The options parameters.
|
|
4315
4315
|
*/
|
|
4316
4316
|
beginDelete(resourceGroupName, resourcePoolName, options) {
|
|
4317
|
-
return tslib.__awaiter(this,
|
|
4318
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4317
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4318
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4319
4319
|
return this.client.sendOperationRequest(args, spec);
|
|
4320
4320
|
});
|
|
4321
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4321
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4322
4322
|
var _a;
|
|
4323
4323
|
let currentRawResponse = undefined;
|
|
4324
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4324
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4325
4325
|
const callback = (rawResponse, flatResponse) => {
|
|
4326
4326
|
currentRawResponse = rawResponse;
|
|
4327
|
-
providedCallback === null || providedCallback ===
|
|
4327
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4328
4328
|
};
|
|
4329
4329
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4330
4330
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4343,8 +4343,8 @@ class ResourcePoolsImpl {
|
|
|
4343
4343
|
spec: deleteOperationSpec$9
|
|
4344
4344
|
});
|
|
4345
4345
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4346
|
-
restoreFrom: options === null || options ===
|
|
4347
|
-
intervalInMs: options === null || options ===
|
|
4346
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4347
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4348
4348
|
});
|
|
4349
4349
|
yield poller.poll();
|
|
4350
4350
|
return poller;
|
|
@@ -4357,7 +4357,7 @@ class ResourcePoolsImpl {
|
|
|
4357
4357
|
* @param options The options parameters.
|
|
4358
4358
|
*/
|
|
4359
4359
|
beginDeleteAndWait(resourceGroupName, resourcePoolName, options) {
|
|
4360
|
-
return tslib.__awaiter(this,
|
|
4360
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4361
4361
|
const poller = yield this.beginDelete(resourceGroupName, resourcePoolName, options);
|
|
4362
4362
|
return poller.pollUntilDone();
|
|
4363
4363
|
});
|
|
@@ -4602,7 +4602,7 @@ class ClustersImpl {
|
|
|
4602
4602
|
return this;
|
|
4603
4603
|
},
|
|
4604
4604
|
byPage: (settings) => {
|
|
4605
|
-
if (settings === null || settings ===
|
|
4605
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4606
4606
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4607
4607
|
}
|
|
4608
4608
|
return this.listPagingPage(options, settings);
|
|
@@ -4612,7 +4612,7 @@ class ClustersImpl {
|
|
|
4612
4612
|
listPagingPage(options, settings) {
|
|
4613
4613
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4614
4614
|
let result;
|
|
4615
|
-
let continuationToken = settings === null || settings ===
|
|
4615
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4616
4616
|
if (!continuationToken) {
|
|
4617
4617
|
result = yield tslib.__await(this._list(options));
|
|
4618
4618
|
let page = result.value || [];
|
|
@@ -4664,7 +4664,7 @@ class ClustersImpl {
|
|
|
4664
4664
|
return this;
|
|
4665
4665
|
},
|
|
4666
4666
|
byPage: (settings) => {
|
|
4667
|
-
if (settings === null || settings ===
|
|
4667
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4668
4668
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4669
4669
|
}
|
|
4670
4670
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -4674,7 +4674,7 @@ class ClustersImpl {
|
|
|
4674
4674
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4675
4675
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4676
4676
|
let result;
|
|
4677
|
-
let continuationToken = settings === null || settings ===
|
|
4677
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4678
4678
|
if (!continuationToken) {
|
|
4679
4679
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
4680
4680
|
let page = result.value || [];
|
|
@@ -4718,17 +4718,17 @@ class ClustersImpl {
|
|
|
4718
4718
|
* @param options The options parameters.
|
|
4719
4719
|
*/
|
|
4720
4720
|
beginCreate(resourceGroupName, clusterName, options) {
|
|
4721
|
-
return tslib.__awaiter(this,
|
|
4722
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4721
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4722
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4723
4723
|
return this.client.sendOperationRequest(args, spec);
|
|
4724
4724
|
});
|
|
4725
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4725
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4726
4726
|
var _a;
|
|
4727
4727
|
let currentRawResponse = undefined;
|
|
4728
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4728
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4729
4729
|
const callback = (rawResponse, flatResponse) => {
|
|
4730
4730
|
currentRawResponse = rawResponse;
|
|
4731
|
-
providedCallback === null || providedCallback ===
|
|
4731
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4732
4732
|
};
|
|
4733
4733
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4734
4734
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4747,8 +4747,8 @@ class ClustersImpl {
|
|
|
4747
4747
|
spec: createOperationSpec$7
|
|
4748
4748
|
});
|
|
4749
4749
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4750
|
-
restoreFrom: options === null || options ===
|
|
4751
|
-
intervalInMs: options === null || options ===
|
|
4750
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4751
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4752
4752
|
resourceLocationConfig: "azure-async-operation"
|
|
4753
4753
|
});
|
|
4754
4754
|
yield poller.poll();
|
|
@@ -4762,7 +4762,7 @@ class ClustersImpl {
|
|
|
4762
4762
|
* @param options The options parameters.
|
|
4763
4763
|
*/
|
|
4764
4764
|
beginCreateAndWait(resourceGroupName, clusterName, options) {
|
|
4765
|
-
return tslib.__awaiter(this,
|
|
4765
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4766
4766
|
const poller = yield this.beginCreate(resourceGroupName, clusterName, options);
|
|
4767
4767
|
return poller.pollUntilDone();
|
|
4768
4768
|
});
|
|
@@ -4792,17 +4792,17 @@ class ClustersImpl {
|
|
|
4792
4792
|
* @param options The options parameters.
|
|
4793
4793
|
*/
|
|
4794
4794
|
beginDelete(resourceGroupName, clusterName, options) {
|
|
4795
|
-
return tslib.__awaiter(this,
|
|
4796
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4795
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4796
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4797
4797
|
return this.client.sendOperationRequest(args, spec);
|
|
4798
4798
|
});
|
|
4799
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4799
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4800
4800
|
var _a;
|
|
4801
4801
|
let currentRawResponse = undefined;
|
|
4802
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4802
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4803
4803
|
const callback = (rawResponse, flatResponse) => {
|
|
4804
4804
|
currentRawResponse = rawResponse;
|
|
4805
|
-
providedCallback === null || providedCallback ===
|
|
4805
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4806
4806
|
};
|
|
4807
4807
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4808
4808
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4821,8 +4821,8 @@ class ClustersImpl {
|
|
|
4821
4821
|
spec: deleteOperationSpec$8
|
|
4822
4822
|
});
|
|
4823
4823
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4824
|
-
restoreFrom: options === null || options ===
|
|
4825
|
-
intervalInMs: options === null || options ===
|
|
4824
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4825
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4826
4826
|
});
|
|
4827
4827
|
yield poller.poll();
|
|
4828
4828
|
return poller;
|
|
@@ -4835,7 +4835,7 @@ class ClustersImpl {
|
|
|
4835
4835
|
* @param options The options parameters.
|
|
4836
4836
|
*/
|
|
4837
4837
|
beginDeleteAndWait(resourceGroupName, clusterName, options) {
|
|
4838
|
-
return tslib.__awaiter(this,
|
|
4838
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4839
4839
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
|
|
4840
4840
|
return poller.pollUntilDone();
|
|
4841
4841
|
});
|
|
@@ -5080,7 +5080,7 @@ class HostsImpl {
|
|
|
5080
5080
|
return this;
|
|
5081
5081
|
},
|
|
5082
5082
|
byPage: (settings) => {
|
|
5083
|
-
if (settings === null || settings ===
|
|
5083
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5084
5084
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5085
5085
|
}
|
|
5086
5086
|
return this.listPagingPage(options, settings);
|
|
@@ -5090,7 +5090,7 @@ class HostsImpl {
|
|
|
5090
5090
|
listPagingPage(options, settings) {
|
|
5091
5091
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5092
5092
|
let result;
|
|
5093
|
-
let continuationToken = settings === null || settings ===
|
|
5093
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5094
5094
|
if (!continuationToken) {
|
|
5095
5095
|
result = yield tslib.__await(this._list(options));
|
|
5096
5096
|
let page = result.value || [];
|
|
@@ -5142,7 +5142,7 @@ class HostsImpl {
|
|
|
5142
5142
|
return this;
|
|
5143
5143
|
},
|
|
5144
5144
|
byPage: (settings) => {
|
|
5145
|
-
if (settings === null || settings ===
|
|
5145
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5146
5146
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5147
5147
|
}
|
|
5148
5148
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5152,7 +5152,7 @@ class HostsImpl {
|
|
|
5152
5152
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5153
5153
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5154
5154
|
let result;
|
|
5155
|
-
let continuationToken = settings === null || settings ===
|
|
5155
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5156
5156
|
if (!continuationToken) {
|
|
5157
5157
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5158
5158
|
let page = result.value || [];
|
|
@@ -5196,17 +5196,17 @@ class HostsImpl {
|
|
|
5196
5196
|
* @param options The options parameters.
|
|
5197
5197
|
*/
|
|
5198
5198
|
beginCreate(resourceGroupName, hostName, options) {
|
|
5199
|
-
return tslib.__awaiter(this,
|
|
5200
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5199
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5200
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5201
5201
|
return this.client.sendOperationRequest(args, spec);
|
|
5202
5202
|
});
|
|
5203
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5203
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5204
5204
|
var _a;
|
|
5205
5205
|
let currentRawResponse = undefined;
|
|
5206
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5206
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5207
5207
|
const callback = (rawResponse, flatResponse) => {
|
|
5208
5208
|
currentRawResponse = rawResponse;
|
|
5209
|
-
providedCallback === null || providedCallback ===
|
|
5209
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5210
5210
|
};
|
|
5211
5211
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5212
5212
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5225,8 +5225,8 @@ class HostsImpl {
|
|
|
5225
5225
|
spec: createOperationSpec$6
|
|
5226
5226
|
});
|
|
5227
5227
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5228
|
-
restoreFrom: options === null || options ===
|
|
5229
|
-
intervalInMs: options === null || options ===
|
|
5228
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5229
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5230
5230
|
resourceLocationConfig: "azure-async-operation"
|
|
5231
5231
|
});
|
|
5232
5232
|
yield poller.poll();
|
|
@@ -5240,7 +5240,7 @@ class HostsImpl {
|
|
|
5240
5240
|
* @param options The options parameters.
|
|
5241
5241
|
*/
|
|
5242
5242
|
beginCreateAndWait(resourceGroupName, hostName, options) {
|
|
5243
|
-
return tslib.__awaiter(this,
|
|
5243
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5244
5244
|
const poller = yield this.beginCreate(resourceGroupName, hostName, options);
|
|
5245
5245
|
return poller.pollUntilDone();
|
|
5246
5246
|
});
|
|
@@ -5270,17 +5270,17 @@ class HostsImpl {
|
|
|
5270
5270
|
* @param options The options parameters.
|
|
5271
5271
|
*/
|
|
5272
5272
|
beginDelete(resourceGroupName, hostName, options) {
|
|
5273
|
-
return tslib.__awaiter(this,
|
|
5274
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5273
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5274
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5275
5275
|
return this.client.sendOperationRequest(args, spec);
|
|
5276
5276
|
});
|
|
5277
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5277
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5278
5278
|
var _a;
|
|
5279
5279
|
let currentRawResponse = undefined;
|
|
5280
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5280
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5281
5281
|
const callback = (rawResponse, flatResponse) => {
|
|
5282
5282
|
currentRawResponse = rawResponse;
|
|
5283
|
-
providedCallback === null || providedCallback ===
|
|
5283
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5284
5284
|
};
|
|
5285
5285
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5286
5286
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5299,8 +5299,8 @@ class HostsImpl {
|
|
|
5299
5299
|
spec: deleteOperationSpec$7
|
|
5300
5300
|
});
|
|
5301
5301
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5302
|
-
restoreFrom: options === null || options ===
|
|
5303
|
-
intervalInMs: options === null || options ===
|
|
5302
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5303
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5304
5304
|
});
|
|
5305
5305
|
yield poller.poll();
|
|
5306
5306
|
return poller;
|
|
@@ -5313,7 +5313,7 @@ class HostsImpl {
|
|
|
5313
5313
|
* @param options The options parameters.
|
|
5314
5314
|
*/
|
|
5315
5315
|
beginDeleteAndWait(resourceGroupName, hostName, options) {
|
|
5316
|
-
return tslib.__awaiter(this,
|
|
5316
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5317
5317
|
const poller = yield this.beginDelete(resourceGroupName, hostName, options);
|
|
5318
5318
|
return poller.pollUntilDone();
|
|
5319
5319
|
});
|
|
@@ -5558,7 +5558,7 @@ class DatastoresImpl {
|
|
|
5558
5558
|
return this;
|
|
5559
5559
|
},
|
|
5560
5560
|
byPage: (settings) => {
|
|
5561
|
-
if (settings === null || settings ===
|
|
5561
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5562
5562
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5563
5563
|
}
|
|
5564
5564
|
return this.listPagingPage(options, settings);
|
|
@@ -5568,7 +5568,7 @@ class DatastoresImpl {
|
|
|
5568
5568
|
listPagingPage(options, settings) {
|
|
5569
5569
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5570
5570
|
let result;
|
|
5571
|
-
let continuationToken = settings === null || settings ===
|
|
5571
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5572
5572
|
if (!continuationToken) {
|
|
5573
5573
|
result = yield tslib.__await(this._list(options));
|
|
5574
5574
|
let page = result.value || [];
|
|
@@ -5620,7 +5620,7 @@ class DatastoresImpl {
|
|
|
5620
5620
|
return this;
|
|
5621
5621
|
},
|
|
5622
5622
|
byPage: (settings) => {
|
|
5623
|
-
if (settings === null || settings ===
|
|
5623
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5624
5624
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5625
5625
|
}
|
|
5626
5626
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5630,7 +5630,7 @@ class DatastoresImpl {
|
|
|
5630
5630
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5631
5631
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5632
5632
|
let result;
|
|
5633
|
-
let continuationToken = settings === null || settings ===
|
|
5633
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5634
5634
|
if (!continuationToken) {
|
|
5635
5635
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5636
5636
|
let page = result.value || [];
|
|
@@ -5674,17 +5674,17 @@ class DatastoresImpl {
|
|
|
5674
5674
|
* @param options The options parameters.
|
|
5675
5675
|
*/
|
|
5676
5676
|
beginCreate(resourceGroupName, datastoreName, options) {
|
|
5677
|
-
return tslib.__awaiter(this,
|
|
5678
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5677
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5678
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5679
5679
|
return this.client.sendOperationRequest(args, spec);
|
|
5680
5680
|
});
|
|
5681
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5681
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5682
5682
|
var _a;
|
|
5683
5683
|
let currentRawResponse = undefined;
|
|
5684
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5684
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5685
5685
|
const callback = (rawResponse, flatResponse) => {
|
|
5686
5686
|
currentRawResponse = rawResponse;
|
|
5687
|
-
providedCallback === null || providedCallback ===
|
|
5687
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5688
5688
|
};
|
|
5689
5689
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5690
5690
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5703,8 +5703,8 @@ class DatastoresImpl {
|
|
|
5703
5703
|
spec: createOperationSpec$5
|
|
5704
5704
|
});
|
|
5705
5705
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5706
|
-
restoreFrom: options === null || options ===
|
|
5707
|
-
intervalInMs: options === null || options ===
|
|
5706
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5707
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5708
5708
|
resourceLocationConfig: "azure-async-operation"
|
|
5709
5709
|
});
|
|
5710
5710
|
yield poller.poll();
|
|
@@ -5718,7 +5718,7 @@ class DatastoresImpl {
|
|
|
5718
5718
|
* @param options The options parameters.
|
|
5719
5719
|
*/
|
|
5720
5720
|
beginCreateAndWait(resourceGroupName, datastoreName, options) {
|
|
5721
|
-
return tslib.__awaiter(this,
|
|
5721
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5722
5722
|
const poller = yield this.beginCreate(resourceGroupName, datastoreName, options);
|
|
5723
5723
|
return poller.pollUntilDone();
|
|
5724
5724
|
});
|
|
@@ -5748,17 +5748,17 @@ class DatastoresImpl {
|
|
|
5748
5748
|
* @param options The options parameters.
|
|
5749
5749
|
*/
|
|
5750
5750
|
beginDelete(resourceGroupName, datastoreName, options) {
|
|
5751
|
-
return tslib.__awaiter(this,
|
|
5752
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5751
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5752
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5753
5753
|
return this.client.sendOperationRequest(args, spec);
|
|
5754
5754
|
});
|
|
5755
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5755
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5756
5756
|
var _a;
|
|
5757
5757
|
let currentRawResponse = undefined;
|
|
5758
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5758
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5759
5759
|
const callback = (rawResponse, flatResponse) => {
|
|
5760
5760
|
currentRawResponse = rawResponse;
|
|
5761
|
-
providedCallback === null || providedCallback ===
|
|
5761
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5762
5762
|
};
|
|
5763
5763
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5764
5764
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5777,8 +5777,8 @@ class DatastoresImpl {
|
|
|
5777
5777
|
spec: deleteOperationSpec$6
|
|
5778
5778
|
});
|
|
5779
5779
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5780
|
-
restoreFrom: options === null || options ===
|
|
5781
|
-
intervalInMs: options === null || options ===
|
|
5780
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5781
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5782
5782
|
});
|
|
5783
5783
|
yield poller.poll();
|
|
5784
5784
|
return poller;
|
|
@@ -5791,7 +5791,7 @@ class DatastoresImpl {
|
|
|
5791
5791
|
* @param options The options parameters.
|
|
5792
5792
|
*/
|
|
5793
5793
|
beginDeleteAndWait(resourceGroupName, datastoreName, options) {
|
|
5794
|
-
return tslib.__awaiter(this,
|
|
5794
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5795
5795
|
const poller = yield this.beginDelete(resourceGroupName, datastoreName, options);
|
|
5796
5796
|
return poller.pollUntilDone();
|
|
5797
5797
|
});
|
|
@@ -6036,7 +6036,7 @@ class VCentersImpl {
|
|
|
6036
6036
|
return this;
|
|
6037
6037
|
},
|
|
6038
6038
|
byPage: (settings) => {
|
|
6039
|
-
if (settings === null || settings ===
|
|
6039
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6040
6040
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6041
6041
|
}
|
|
6042
6042
|
return this.listPagingPage(options, settings);
|
|
@@ -6046,7 +6046,7 @@ class VCentersImpl {
|
|
|
6046
6046
|
listPagingPage(options, settings) {
|
|
6047
6047
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6048
6048
|
let result;
|
|
6049
|
-
let continuationToken = settings === null || settings ===
|
|
6049
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6050
6050
|
if (!continuationToken) {
|
|
6051
6051
|
result = yield tslib.__await(this._list(options));
|
|
6052
6052
|
let page = result.value || [];
|
|
@@ -6098,7 +6098,7 @@ class VCentersImpl {
|
|
|
6098
6098
|
return this;
|
|
6099
6099
|
},
|
|
6100
6100
|
byPage: (settings) => {
|
|
6101
|
-
if (settings === null || settings ===
|
|
6101
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6102
6102
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6103
6103
|
}
|
|
6104
6104
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6108,7 +6108,7 @@ class VCentersImpl {
|
|
|
6108
6108
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6109
6109
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6110
6110
|
let result;
|
|
6111
|
-
let continuationToken = settings === null || settings ===
|
|
6111
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6112
6112
|
if (!continuationToken) {
|
|
6113
6113
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6114
6114
|
let page = result.value || [];
|
|
@@ -6152,17 +6152,17 @@ class VCentersImpl {
|
|
|
6152
6152
|
* @param options The options parameters.
|
|
6153
6153
|
*/
|
|
6154
6154
|
beginCreate(resourceGroupName, vcenterName, options) {
|
|
6155
|
-
return tslib.__awaiter(this,
|
|
6156
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6155
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6156
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6157
6157
|
return this.client.sendOperationRequest(args, spec);
|
|
6158
6158
|
});
|
|
6159
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6159
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6160
6160
|
var _a;
|
|
6161
6161
|
let currentRawResponse = undefined;
|
|
6162
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6162
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6163
6163
|
const callback = (rawResponse, flatResponse) => {
|
|
6164
6164
|
currentRawResponse = rawResponse;
|
|
6165
|
-
providedCallback === null || providedCallback ===
|
|
6165
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6166
6166
|
};
|
|
6167
6167
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6168
6168
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6181,8 +6181,8 @@ class VCentersImpl {
|
|
|
6181
6181
|
spec: createOperationSpec$4
|
|
6182
6182
|
});
|
|
6183
6183
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6184
|
-
restoreFrom: options === null || options ===
|
|
6185
|
-
intervalInMs: options === null || options ===
|
|
6184
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6185
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6186
6186
|
resourceLocationConfig: "azure-async-operation"
|
|
6187
6187
|
});
|
|
6188
6188
|
yield poller.poll();
|
|
@@ -6196,7 +6196,7 @@ class VCentersImpl {
|
|
|
6196
6196
|
* @param options The options parameters.
|
|
6197
6197
|
*/
|
|
6198
6198
|
beginCreateAndWait(resourceGroupName, vcenterName, options) {
|
|
6199
|
-
return tslib.__awaiter(this,
|
|
6199
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6200
6200
|
const poller = yield this.beginCreate(resourceGroupName, vcenterName, options);
|
|
6201
6201
|
return poller.pollUntilDone();
|
|
6202
6202
|
});
|
|
@@ -6226,17 +6226,17 @@ class VCentersImpl {
|
|
|
6226
6226
|
* @param options The options parameters.
|
|
6227
6227
|
*/
|
|
6228
6228
|
beginDelete(resourceGroupName, vcenterName, options) {
|
|
6229
|
-
return tslib.__awaiter(this,
|
|
6230
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6229
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6230
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6231
6231
|
return this.client.sendOperationRequest(args, spec);
|
|
6232
6232
|
});
|
|
6233
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6233
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6234
6234
|
var _a;
|
|
6235
6235
|
let currentRawResponse = undefined;
|
|
6236
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6236
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6237
6237
|
const callback = (rawResponse, flatResponse) => {
|
|
6238
6238
|
currentRawResponse = rawResponse;
|
|
6239
|
-
providedCallback === null || providedCallback ===
|
|
6239
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6240
6240
|
};
|
|
6241
6241
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6242
6242
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6255,8 +6255,8 @@ class VCentersImpl {
|
|
|
6255
6255
|
spec: deleteOperationSpec$5
|
|
6256
6256
|
});
|
|
6257
6257
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6258
|
-
restoreFrom: options === null || options ===
|
|
6259
|
-
intervalInMs: options === null || options ===
|
|
6258
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6259
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
6260
6260
|
});
|
|
6261
6261
|
yield poller.poll();
|
|
6262
6262
|
return poller;
|
|
@@ -6269,7 +6269,7 @@ class VCentersImpl {
|
|
|
6269
6269
|
* @param options The options parameters.
|
|
6270
6270
|
*/
|
|
6271
6271
|
beginDeleteAndWait(resourceGroupName, vcenterName, options) {
|
|
6272
|
-
return tslib.__awaiter(this,
|
|
6272
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6273
6273
|
const poller = yield this.beginDelete(resourceGroupName, vcenterName, options);
|
|
6274
6274
|
return poller.pollUntilDone();
|
|
6275
6275
|
});
|
|
@@ -6514,7 +6514,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6514
6514
|
return this;
|
|
6515
6515
|
},
|
|
6516
6516
|
byPage: (settings) => {
|
|
6517
|
-
if (settings === null || settings ===
|
|
6517
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6518
6518
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6519
6519
|
}
|
|
6520
6520
|
return this.listPagingPage(options, settings);
|
|
@@ -6524,7 +6524,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6524
6524
|
listPagingPage(options, settings) {
|
|
6525
6525
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6526
6526
|
let result;
|
|
6527
|
-
let continuationToken = settings === null || settings ===
|
|
6527
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6528
6528
|
if (!continuationToken) {
|
|
6529
6529
|
result = yield tslib.__await(this._list(options));
|
|
6530
6530
|
let page = result.value || [];
|
|
@@ -6576,7 +6576,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6576
6576
|
return this;
|
|
6577
6577
|
},
|
|
6578
6578
|
byPage: (settings) => {
|
|
6579
|
-
if (settings === null || settings ===
|
|
6579
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6580
6580
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6581
6581
|
}
|
|
6582
6582
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6586,7 +6586,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6586
6586
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6587
6587
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6588
6588
|
let result;
|
|
6589
|
-
let continuationToken = settings === null || settings ===
|
|
6589
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6590
6590
|
if (!continuationToken) {
|
|
6591
6591
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6592
6592
|
let page = result.value || [];
|
|
@@ -6630,17 +6630,17 @@ class VirtualMachineTemplatesImpl {
|
|
|
6630
6630
|
* @param options The options parameters.
|
|
6631
6631
|
*/
|
|
6632
6632
|
beginCreate(resourceGroupName, virtualMachineTemplateName, options) {
|
|
6633
|
-
return tslib.__awaiter(this,
|
|
6634
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6633
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6634
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6635
6635
|
return this.client.sendOperationRequest(args, spec);
|
|
6636
6636
|
});
|
|
6637
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6637
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6638
6638
|
var _a;
|
|
6639
6639
|
let currentRawResponse = undefined;
|
|
6640
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6640
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6641
6641
|
const callback = (rawResponse, flatResponse) => {
|
|
6642
6642
|
currentRawResponse = rawResponse;
|
|
6643
|
-
providedCallback === null || providedCallback ===
|
|
6643
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6644
6644
|
};
|
|
6645
6645
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6646
6646
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6659,8 +6659,8 @@ class VirtualMachineTemplatesImpl {
|
|
|
6659
6659
|
spec: createOperationSpec$3
|
|
6660
6660
|
});
|
|
6661
6661
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6662
|
-
restoreFrom: options === null || options ===
|
|
6663
|
-
intervalInMs: options === null || options ===
|
|
6662
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6663
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6664
6664
|
resourceLocationConfig: "azure-async-operation"
|
|
6665
6665
|
});
|
|
6666
6666
|
yield poller.poll();
|
|
@@ -6674,7 +6674,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6674
6674
|
* @param options The options parameters.
|
|
6675
6675
|
*/
|
|
6676
6676
|
beginCreateAndWait(resourceGroupName, virtualMachineTemplateName, options) {
|
|
6677
|
-
return tslib.__awaiter(this,
|
|
6677
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6678
6678
|
const poller = yield this.beginCreate(resourceGroupName, virtualMachineTemplateName, options);
|
|
6679
6679
|
return poller.pollUntilDone();
|
|
6680
6680
|
});
|
|
@@ -6704,17 +6704,17 @@ class VirtualMachineTemplatesImpl {
|
|
|
6704
6704
|
* @param options The options parameters.
|
|
6705
6705
|
*/
|
|
6706
6706
|
beginDelete(resourceGroupName, virtualMachineTemplateName, options) {
|
|
6707
|
-
return tslib.__awaiter(this,
|
|
6708
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6707
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6708
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6709
6709
|
return this.client.sendOperationRequest(args, spec);
|
|
6710
6710
|
});
|
|
6711
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6711
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6712
6712
|
var _a;
|
|
6713
6713
|
let currentRawResponse = undefined;
|
|
6714
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6714
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6715
6715
|
const callback = (rawResponse, flatResponse) => {
|
|
6716
6716
|
currentRawResponse = rawResponse;
|
|
6717
|
-
providedCallback === null || providedCallback ===
|
|
6717
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6718
6718
|
};
|
|
6719
6719
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6720
6720
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6733,8 +6733,8 @@ class VirtualMachineTemplatesImpl {
|
|
|
6733
6733
|
spec: deleteOperationSpec$4
|
|
6734
6734
|
});
|
|
6735
6735
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6736
|
-
restoreFrom: options === null || options ===
|
|
6737
|
-
intervalInMs: options === null || options ===
|
|
6736
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6737
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
6738
6738
|
});
|
|
6739
6739
|
yield poller.poll();
|
|
6740
6740
|
return poller;
|
|
@@ -6747,7 +6747,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6747
6747
|
* @param options The options parameters.
|
|
6748
6748
|
*/
|
|
6749
6749
|
beginDeleteAndWait(resourceGroupName, virtualMachineTemplateName, options) {
|
|
6750
|
-
return tslib.__awaiter(this,
|
|
6750
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6751
6751
|
const poller = yield this.beginDelete(resourceGroupName, virtualMachineTemplateName, options);
|
|
6752
6752
|
return poller.pollUntilDone();
|
|
6753
6753
|
});
|
|
@@ -6992,7 +6992,7 @@ class VirtualNetworksImpl {
|
|
|
6992
6992
|
return this;
|
|
6993
6993
|
},
|
|
6994
6994
|
byPage: (settings) => {
|
|
6995
|
-
if (settings === null || settings ===
|
|
6995
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6996
6996
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6997
6997
|
}
|
|
6998
6998
|
return this.listPagingPage(options, settings);
|
|
@@ -7002,7 +7002,7 @@ class VirtualNetworksImpl {
|
|
|
7002
7002
|
listPagingPage(options, settings) {
|
|
7003
7003
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7004
7004
|
let result;
|
|
7005
|
-
let continuationToken = settings === null || settings ===
|
|
7005
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7006
7006
|
if (!continuationToken) {
|
|
7007
7007
|
result = yield tslib.__await(this._list(options));
|
|
7008
7008
|
let page = result.value || [];
|
|
@@ -7054,7 +7054,7 @@ class VirtualNetworksImpl {
|
|
|
7054
7054
|
return this;
|
|
7055
7055
|
},
|
|
7056
7056
|
byPage: (settings) => {
|
|
7057
|
-
if (settings === null || settings ===
|
|
7057
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7058
7058
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7059
7059
|
}
|
|
7060
7060
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -7064,7 +7064,7 @@ class VirtualNetworksImpl {
|
|
|
7064
7064
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
7065
7065
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
7066
7066
|
let result;
|
|
7067
|
-
let continuationToken = settings === null || settings ===
|
|
7067
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7068
7068
|
if (!continuationToken) {
|
|
7069
7069
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
7070
7070
|
let page = result.value || [];
|
|
@@ -7108,17 +7108,17 @@ class VirtualNetworksImpl {
|
|
|
7108
7108
|
* @param options The options parameters.
|
|
7109
7109
|
*/
|
|
7110
7110
|
beginCreate(resourceGroupName, virtualNetworkName, options) {
|
|
7111
|
-
return tslib.__awaiter(this,
|
|
7112
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7111
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7112
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7113
7113
|
return this.client.sendOperationRequest(args, spec);
|
|
7114
7114
|
});
|
|
7115
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7115
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7116
7116
|
var _a;
|
|
7117
7117
|
let currentRawResponse = undefined;
|
|
7118
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7118
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7119
7119
|
const callback = (rawResponse, flatResponse) => {
|
|
7120
7120
|
currentRawResponse = rawResponse;
|
|
7121
|
-
providedCallback === null || providedCallback ===
|
|
7121
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7122
7122
|
};
|
|
7123
7123
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7124
7124
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7137,8 +7137,8 @@ class VirtualNetworksImpl {
|
|
|
7137
7137
|
spec: createOperationSpec$2
|
|
7138
7138
|
});
|
|
7139
7139
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7140
|
-
restoreFrom: options === null || options ===
|
|
7141
|
-
intervalInMs: options === null || options ===
|
|
7140
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7141
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7142
7142
|
resourceLocationConfig: "azure-async-operation"
|
|
7143
7143
|
});
|
|
7144
7144
|
yield poller.poll();
|
|
@@ -7152,7 +7152,7 @@ class VirtualNetworksImpl {
|
|
|
7152
7152
|
* @param options The options parameters.
|
|
7153
7153
|
*/
|
|
7154
7154
|
beginCreateAndWait(resourceGroupName, virtualNetworkName, options) {
|
|
7155
|
-
return tslib.__awaiter(this,
|
|
7155
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7156
7156
|
const poller = yield this.beginCreate(resourceGroupName, virtualNetworkName, options);
|
|
7157
7157
|
return poller.pollUntilDone();
|
|
7158
7158
|
});
|
|
@@ -7182,17 +7182,17 @@ class VirtualNetworksImpl {
|
|
|
7182
7182
|
* @param options The options parameters.
|
|
7183
7183
|
*/
|
|
7184
7184
|
beginDelete(resourceGroupName, virtualNetworkName, options) {
|
|
7185
|
-
return tslib.__awaiter(this,
|
|
7186
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7185
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7186
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7187
7187
|
return this.client.sendOperationRequest(args, spec);
|
|
7188
7188
|
});
|
|
7189
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7189
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7190
7190
|
var _a;
|
|
7191
7191
|
let currentRawResponse = undefined;
|
|
7192
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7192
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7193
7193
|
const callback = (rawResponse, flatResponse) => {
|
|
7194
7194
|
currentRawResponse = rawResponse;
|
|
7195
|
-
providedCallback === null || providedCallback ===
|
|
7195
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7196
7196
|
};
|
|
7197
7197
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7198
7198
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7211,8 +7211,8 @@ class VirtualNetworksImpl {
|
|
|
7211
7211
|
spec: deleteOperationSpec$3
|
|
7212
7212
|
});
|
|
7213
7213
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7214
|
-
restoreFrom: options === null || options ===
|
|
7215
|
-
intervalInMs: options === null || options ===
|
|
7214
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7215
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7216
7216
|
});
|
|
7217
7217
|
yield poller.poll();
|
|
7218
7218
|
return poller;
|
|
@@ -7225,7 +7225,7 @@ class VirtualNetworksImpl {
|
|
|
7225
7225
|
* @param options The options parameters.
|
|
7226
7226
|
*/
|
|
7227
7227
|
beginDeleteAndWait(resourceGroupName, virtualNetworkName, options) {
|
|
7228
|
-
return tslib.__awaiter(this,
|
|
7228
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7229
7229
|
const poller = yield this.beginDelete(resourceGroupName, virtualNetworkName, options);
|
|
7230
7230
|
return poller.pollUntilDone();
|
|
7231
7231
|
});
|
|
@@ -7472,7 +7472,7 @@ class InventoryItemsImpl {
|
|
|
7472
7472
|
return this;
|
|
7473
7473
|
},
|
|
7474
7474
|
byPage: (settings) => {
|
|
7475
|
-
if (settings === null || settings ===
|
|
7475
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7476
7476
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7477
7477
|
}
|
|
7478
7478
|
return this.listByVCenterPagingPage(resourceGroupName, vcenterName, options, settings);
|
|
@@ -7482,7 +7482,7 @@ class InventoryItemsImpl {
|
|
|
7482
7482
|
listByVCenterPagingPage(resourceGroupName, vcenterName, options, settings) {
|
|
7483
7483
|
return tslib.__asyncGenerator(this, arguments, function* listByVCenterPagingPage_1() {
|
|
7484
7484
|
let result;
|
|
7485
|
-
let continuationToken = settings === null || settings ===
|
|
7485
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7486
7486
|
if (!continuationToken) {
|
|
7487
7487
|
result = yield tslib.__await(this._listByVCenter(resourceGroupName, vcenterName, options));
|
|
7488
7488
|
let page = result.value || [];
|
|
@@ -7714,7 +7714,7 @@ class VirtualMachineInstancesImpl {
|
|
|
7714
7714
|
return this;
|
|
7715
7715
|
},
|
|
7716
7716
|
byPage: (settings) => {
|
|
7717
|
-
if (settings === null || settings ===
|
|
7717
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7718
7718
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7719
7719
|
}
|
|
7720
7720
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -7724,7 +7724,7 @@ class VirtualMachineInstancesImpl {
|
|
|
7724
7724
|
listPagingPage(resourceUri, options, settings) {
|
|
7725
7725
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7726
7726
|
let result;
|
|
7727
|
-
let continuationToken = settings === null || settings ===
|
|
7727
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7728
7728
|
if (!continuationToken) {
|
|
7729
7729
|
result = yield tslib.__await(this._list(resourceUri, options));
|
|
7730
7730
|
let page = result.value || [];
|
|
@@ -7769,17 +7769,17 @@ class VirtualMachineInstancesImpl {
|
|
|
7769
7769
|
* @param options The options parameters.
|
|
7770
7770
|
*/
|
|
7771
7771
|
beginCreateOrUpdate(resourceUri, options) {
|
|
7772
|
-
return tslib.__awaiter(this,
|
|
7773
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7772
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7773
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7774
7774
|
return this.client.sendOperationRequest(args, spec);
|
|
7775
7775
|
});
|
|
7776
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7776
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7777
7777
|
var _a;
|
|
7778
7778
|
let currentRawResponse = undefined;
|
|
7779
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7779
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7780
7780
|
const callback = (rawResponse, flatResponse) => {
|
|
7781
7781
|
currentRawResponse = rawResponse;
|
|
7782
|
-
providedCallback === null || providedCallback ===
|
|
7782
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7783
7783
|
};
|
|
7784
7784
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7785
7785
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7798,8 +7798,8 @@ class VirtualMachineInstancesImpl {
|
|
|
7798
7798
|
spec: createOrUpdateOperationSpec
|
|
7799
7799
|
});
|
|
7800
7800
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7801
|
-
restoreFrom: options === null || options ===
|
|
7802
|
-
intervalInMs: options === null || options ===
|
|
7801
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7802
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7803
7803
|
resourceLocationConfig: "azure-async-operation"
|
|
7804
7804
|
});
|
|
7805
7805
|
yield poller.poll();
|
|
@@ -7814,7 +7814,7 @@ class VirtualMachineInstancesImpl {
|
|
|
7814
7814
|
* @param options The options parameters.
|
|
7815
7815
|
*/
|
|
7816
7816
|
beginCreateOrUpdateAndWait(resourceUri, options) {
|
|
7817
|
-
return tslib.__awaiter(this,
|
|
7817
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7818
7818
|
const poller = yield this.beginCreateOrUpdate(resourceUri, options);
|
|
7819
7819
|
return poller.pollUntilDone();
|
|
7820
7820
|
});
|
|
@@ -7835,17 +7835,17 @@ class VirtualMachineInstancesImpl {
|
|
|
7835
7835
|
* @param options The options parameters.
|
|
7836
7836
|
*/
|
|
7837
7837
|
beginUpdate(resourceUri, options) {
|
|
7838
|
-
return tslib.__awaiter(this,
|
|
7839
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7838
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7839
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7840
7840
|
return this.client.sendOperationRequest(args, spec);
|
|
7841
7841
|
});
|
|
7842
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7842
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7843
7843
|
var _a;
|
|
7844
7844
|
let currentRawResponse = undefined;
|
|
7845
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7845
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7846
7846
|
const callback = (rawResponse, flatResponse) => {
|
|
7847
7847
|
currentRawResponse = rawResponse;
|
|
7848
|
-
providedCallback === null || providedCallback ===
|
|
7848
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7849
7849
|
};
|
|
7850
7850
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7851
7851
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7864,8 +7864,8 @@ class VirtualMachineInstancesImpl {
|
|
|
7864
7864
|
spec: updateOperationSpec
|
|
7865
7865
|
});
|
|
7866
7866
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7867
|
-
restoreFrom: options === null || options ===
|
|
7868
|
-
intervalInMs: options === null || options ===
|
|
7867
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7868
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7869
7869
|
resourceLocationConfig: "azure-async-operation"
|
|
7870
7870
|
});
|
|
7871
7871
|
yield poller.poll();
|
|
@@ -7879,7 +7879,7 @@ class VirtualMachineInstancesImpl {
|
|
|
7879
7879
|
* @param options The options parameters.
|
|
7880
7880
|
*/
|
|
7881
7881
|
beginUpdateAndWait(resourceUri, options) {
|
|
7882
|
-
return tslib.__awaiter(this,
|
|
7882
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7883
7883
|
const poller = yield this.beginUpdate(resourceUri, options);
|
|
7884
7884
|
return poller.pollUntilDone();
|
|
7885
7885
|
});
|
|
@@ -7891,17 +7891,17 @@ class VirtualMachineInstancesImpl {
|
|
|
7891
7891
|
* @param options The options parameters.
|
|
7892
7892
|
*/
|
|
7893
7893
|
beginDelete(resourceUri, options) {
|
|
7894
|
-
return tslib.__awaiter(this,
|
|
7895
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7894
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7895
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7896
7896
|
return this.client.sendOperationRequest(args, spec);
|
|
7897
7897
|
});
|
|
7898
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7898
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7899
7899
|
var _a;
|
|
7900
7900
|
let currentRawResponse = undefined;
|
|
7901
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7901
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7902
7902
|
const callback = (rawResponse, flatResponse) => {
|
|
7903
7903
|
currentRawResponse = rawResponse;
|
|
7904
|
-
providedCallback === null || providedCallback ===
|
|
7904
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7905
7905
|
};
|
|
7906
7906
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7907
7907
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7920,8 +7920,8 @@ class VirtualMachineInstancesImpl {
|
|
|
7920
7920
|
spec: deleteOperationSpec$1
|
|
7921
7921
|
});
|
|
7922
7922
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7923
|
-
restoreFrom: options === null || options ===
|
|
7924
|
-
intervalInMs: options === null || options ===
|
|
7923
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7924
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7925
7925
|
resourceLocationConfig: "azure-async-operation"
|
|
7926
7926
|
});
|
|
7927
7927
|
yield poller.poll();
|
|
@@ -7935,7 +7935,7 @@ class VirtualMachineInstancesImpl {
|
|
|
7935
7935
|
* @param options The options parameters.
|
|
7936
7936
|
*/
|
|
7937
7937
|
beginDeleteAndWait(resourceUri, options) {
|
|
7938
|
-
return tslib.__awaiter(this,
|
|
7938
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7939
7939
|
const poller = yield this.beginDelete(resourceUri, options);
|
|
7940
7940
|
return poller.pollUntilDone();
|
|
7941
7941
|
});
|
|
@@ -7956,17 +7956,17 @@ class VirtualMachineInstancesImpl {
|
|
|
7956
7956
|
* @param options The options parameters.
|
|
7957
7957
|
*/
|
|
7958
7958
|
beginStop(resourceUri, options) {
|
|
7959
|
-
return tslib.__awaiter(this,
|
|
7960
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7959
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7960
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7961
7961
|
return this.client.sendOperationRequest(args, spec);
|
|
7962
7962
|
});
|
|
7963
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7963
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7964
7964
|
var _a;
|
|
7965
7965
|
let currentRawResponse = undefined;
|
|
7966
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7966
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7967
7967
|
const callback = (rawResponse, flatResponse) => {
|
|
7968
7968
|
currentRawResponse = rawResponse;
|
|
7969
|
-
providedCallback === null || providedCallback ===
|
|
7969
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7970
7970
|
};
|
|
7971
7971
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7972
7972
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7985,8 +7985,8 @@ class VirtualMachineInstancesImpl {
|
|
|
7985
7985
|
spec: stopOperationSpec
|
|
7986
7986
|
});
|
|
7987
7987
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7988
|
-
restoreFrom: options === null || options ===
|
|
7989
|
-
intervalInMs: options === null || options ===
|
|
7988
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7989
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7990
7990
|
resourceLocationConfig: "location"
|
|
7991
7991
|
});
|
|
7992
7992
|
yield poller.poll();
|
|
@@ -8000,7 +8000,7 @@ class VirtualMachineInstancesImpl {
|
|
|
8000
8000
|
* @param options The options parameters.
|
|
8001
8001
|
*/
|
|
8002
8002
|
beginStopAndWait(resourceUri, options) {
|
|
8003
|
-
return tslib.__awaiter(this,
|
|
8003
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8004
8004
|
const poller = yield this.beginStop(resourceUri, options);
|
|
8005
8005
|
return poller.pollUntilDone();
|
|
8006
8006
|
});
|
|
@@ -8012,17 +8012,17 @@ class VirtualMachineInstancesImpl {
|
|
|
8012
8012
|
* @param options The options parameters.
|
|
8013
8013
|
*/
|
|
8014
8014
|
beginStart(resourceUri, options) {
|
|
8015
|
-
return tslib.__awaiter(this,
|
|
8016
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8015
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8016
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8017
8017
|
return this.client.sendOperationRequest(args, spec);
|
|
8018
8018
|
});
|
|
8019
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8019
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8020
8020
|
var _a;
|
|
8021
8021
|
let currentRawResponse = undefined;
|
|
8022
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8022
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8023
8023
|
const callback = (rawResponse, flatResponse) => {
|
|
8024
8024
|
currentRawResponse = rawResponse;
|
|
8025
|
-
providedCallback === null || providedCallback ===
|
|
8025
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8026
8026
|
};
|
|
8027
8027
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8028
8028
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8041,8 +8041,8 @@ class VirtualMachineInstancesImpl {
|
|
|
8041
8041
|
spec: startOperationSpec
|
|
8042
8042
|
});
|
|
8043
8043
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8044
|
-
restoreFrom: options === null || options ===
|
|
8045
|
-
intervalInMs: options === null || options ===
|
|
8044
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8045
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8046
8046
|
resourceLocationConfig: "location"
|
|
8047
8047
|
});
|
|
8048
8048
|
yield poller.poll();
|
|
@@ -8056,7 +8056,7 @@ class VirtualMachineInstancesImpl {
|
|
|
8056
8056
|
* @param options The options parameters.
|
|
8057
8057
|
*/
|
|
8058
8058
|
beginStartAndWait(resourceUri, options) {
|
|
8059
|
-
return tslib.__awaiter(this,
|
|
8059
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8060
8060
|
const poller = yield this.beginStart(resourceUri, options);
|
|
8061
8061
|
return poller.pollUntilDone();
|
|
8062
8062
|
});
|
|
@@ -8068,17 +8068,17 @@ class VirtualMachineInstancesImpl {
|
|
|
8068
8068
|
* @param options The options parameters.
|
|
8069
8069
|
*/
|
|
8070
8070
|
beginRestart(resourceUri, options) {
|
|
8071
|
-
return tslib.__awaiter(this,
|
|
8072
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8071
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8072
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8073
8073
|
return this.client.sendOperationRequest(args, spec);
|
|
8074
8074
|
});
|
|
8075
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8075
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8076
8076
|
var _a;
|
|
8077
8077
|
let currentRawResponse = undefined;
|
|
8078
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8078
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8079
8079
|
const callback = (rawResponse, flatResponse) => {
|
|
8080
8080
|
currentRawResponse = rawResponse;
|
|
8081
|
-
providedCallback === null || providedCallback ===
|
|
8081
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8082
8082
|
};
|
|
8083
8083
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8084
8084
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8097,8 +8097,8 @@ class VirtualMachineInstancesImpl {
|
|
|
8097
8097
|
spec: restartOperationSpec
|
|
8098
8098
|
});
|
|
8099
8099
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8100
|
-
restoreFrom: options === null || options ===
|
|
8101
|
-
intervalInMs: options === null || options ===
|
|
8100
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8101
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8102
8102
|
resourceLocationConfig: "location"
|
|
8103
8103
|
});
|
|
8104
8104
|
yield poller.poll();
|
|
@@ -8112,7 +8112,7 @@ class VirtualMachineInstancesImpl {
|
|
|
8112
8112
|
* @param options The options parameters.
|
|
8113
8113
|
*/
|
|
8114
8114
|
beginRestartAndWait(resourceUri, options) {
|
|
8115
|
-
return tslib.__awaiter(this,
|
|
8115
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8116
8116
|
const poller = yield this.beginRestart(resourceUri, options);
|
|
8117
8117
|
return poller.pollUntilDone();
|
|
8118
8118
|
});
|
|
@@ -8375,7 +8375,7 @@ class VmInstanceHybridIdentityMetadataOperationsImpl {
|
|
|
8375
8375
|
return this;
|
|
8376
8376
|
},
|
|
8377
8377
|
byPage: (settings) => {
|
|
8378
|
-
if (settings === null || settings ===
|
|
8378
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8379
8379
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8380
8380
|
}
|
|
8381
8381
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -8385,7 +8385,7 @@ class VmInstanceHybridIdentityMetadataOperationsImpl {
|
|
|
8385
8385
|
listPagingPage(resourceUri, options, settings) {
|
|
8386
8386
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8387
8387
|
let result;
|
|
8388
|
-
let continuationToken = settings === null || settings ===
|
|
8388
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8389
8389
|
if (!continuationToken) {
|
|
8390
8390
|
result = yield tslib.__await(this._list(resourceUri, options));
|
|
8391
8391
|
let page = result.value || [];
|
|
@@ -8538,7 +8538,7 @@ class VMInstanceGuestAgentsImpl {
|
|
|
8538
8538
|
return this;
|
|
8539
8539
|
},
|
|
8540
8540
|
byPage: (settings) => {
|
|
8541
|
-
if (settings === null || settings ===
|
|
8541
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8542
8542
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8543
8543
|
}
|
|
8544
8544
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -8548,7 +8548,7 @@ class VMInstanceGuestAgentsImpl {
|
|
|
8548
8548
|
listPagingPage(resourceUri, options, settings) {
|
|
8549
8549
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8550
8550
|
let result;
|
|
8551
|
-
let continuationToken = settings === null || settings ===
|
|
8551
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8552
8552
|
if (!continuationToken) {
|
|
8553
8553
|
result = yield tslib.__await(this._list(resourceUri, options));
|
|
8554
8554
|
let page = result.value || [];
|
|
@@ -8592,17 +8592,17 @@ class VMInstanceGuestAgentsImpl {
|
|
|
8592
8592
|
* @param options The options parameters.
|
|
8593
8593
|
*/
|
|
8594
8594
|
beginCreate(resourceUri, options) {
|
|
8595
|
-
return tslib.__awaiter(this,
|
|
8596
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8595
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8596
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8597
8597
|
return this.client.sendOperationRequest(args, spec);
|
|
8598
8598
|
});
|
|
8599
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8599
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8600
8600
|
var _a;
|
|
8601
8601
|
let currentRawResponse = undefined;
|
|
8602
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8602
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8603
8603
|
const callback = (rawResponse, flatResponse) => {
|
|
8604
8604
|
currentRawResponse = rawResponse;
|
|
8605
|
-
providedCallback === null || providedCallback ===
|
|
8605
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8606
8606
|
};
|
|
8607
8607
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8608
8608
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8621,8 +8621,8 @@ class VMInstanceGuestAgentsImpl {
|
|
|
8621
8621
|
spec: createOperationSpec
|
|
8622
8622
|
});
|
|
8623
8623
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8624
|
-
restoreFrom: options === null || options ===
|
|
8625
|
-
intervalInMs: options === null || options ===
|
|
8624
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8625
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8626
8626
|
resourceLocationConfig: "azure-async-operation"
|
|
8627
8627
|
});
|
|
8628
8628
|
yield poller.poll();
|
|
@@ -8636,7 +8636,7 @@ class VMInstanceGuestAgentsImpl {
|
|
|
8636
8636
|
* @param options The options parameters.
|
|
8637
8637
|
*/
|
|
8638
8638
|
beginCreateAndWait(resourceUri, options) {
|
|
8639
|
-
return tslib.__awaiter(this,
|
|
8639
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8640
8640
|
const poller = yield this.beginCreate(resourceUri, options);
|
|
8641
8641
|
return poller.pollUntilDone();
|
|
8642
8642
|
});
|
|
@@ -8657,17 +8657,17 @@ class VMInstanceGuestAgentsImpl {
|
|
|
8657
8657
|
* @param options The options parameters.
|
|
8658
8658
|
*/
|
|
8659
8659
|
beginDelete(resourceUri, options) {
|
|
8660
|
-
return tslib.__awaiter(this,
|
|
8661
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8660
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8661
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8662
8662
|
return this.client.sendOperationRequest(args, spec);
|
|
8663
8663
|
});
|
|
8664
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8664
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8665
8665
|
var _a;
|
|
8666
8666
|
let currentRawResponse = undefined;
|
|
8667
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8667
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8668
8668
|
const callback = (rawResponse, flatResponse) => {
|
|
8669
8669
|
currentRawResponse = rawResponse;
|
|
8670
|
-
providedCallback === null || providedCallback ===
|
|
8670
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8671
8671
|
};
|
|
8672
8672
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8673
8673
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8686,8 +8686,8 @@ class VMInstanceGuestAgentsImpl {
|
|
|
8686
8686
|
spec: deleteOperationSpec
|
|
8687
8687
|
});
|
|
8688
8688
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8689
|
-
restoreFrom: options === null || options ===
|
|
8690
|
-
intervalInMs: options === null || options ===
|
|
8689
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8690
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
8691
8691
|
});
|
|
8692
8692
|
yield poller.poll();
|
|
8693
8693
|
return poller;
|
|
@@ -8700,7 +8700,7 @@ class VMInstanceGuestAgentsImpl {
|
|
|
8700
8700
|
* @param options The options parameters.
|
|
8701
8701
|
*/
|
|
8702
8702
|
beginDeleteAndWait(resourceUri, options) {
|
|
8703
|
-
return tslib.__awaiter(this,
|
|
8703
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8704
8704
|
const poller = yield this.beginDelete(resourceUri, options);
|
|
8705
8705
|
return poller.pollUntilDone();
|
|
8706
8706
|
});
|
|
@@ -8865,10 +8865,10 @@ class AzureArcVMwareManagementServiceAPI extends coreClient__namespace.ServiceCl
|
|
|
8865
8865
|
: `${packageDetails}`;
|
|
8866
8866
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
8867
8867
|
userAgentPrefix
|
|
8868
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
8868
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
8869
8869
|
super(optionsWithDefaults);
|
|
8870
8870
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
8871
|
-
if ((options === null || options ===
|
|
8871
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
8872
8872
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
8873
8873
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
8874
8874
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -8882,7 +8882,7 @@ class AzureArcVMwareManagementServiceAPI extends coreClient__namespace.ServiceCl
|
|
|
8882
8882
|
});
|
|
8883
8883
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
8884
8884
|
credential: credentials,
|
|
8885
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
8885
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
8886
8886
|
challengeCallbacks: {
|
|
8887
8887
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
8888
8888
|
}
|
|
@@ -8915,7 +8915,7 @@ class AzureArcVMwareManagementServiceAPI extends coreClient__namespace.ServiceCl
|
|
|
8915
8915
|
const apiVersionPolicy = {
|
|
8916
8916
|
name: "CustomApiVersionPolicy",
|
|
8917
8917
|
sendRequest(request, next) {
|
|
8918
|
-
return tslib.__awaiter(this,
|
|
8918
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8919
8919
|
const param = request.url.split("?");
|
|
8920
8920
|
if (param.length > 1) {
|
|
8921
8921
|
const newParams = param[1].split("&").map((item) => {
|