@azure/arm-resources-profile-2020-09-01-hybrid 2.1.1-alpha.20250207.1 → 2.1.1-alpha.20250211.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 +274 -274
- 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 === void 0 ? void 0 : _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 !== void 0 ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -2829,7 +2829,7 @@ class OperationsImpl {
|
|
|
2829
2829
|
return this;
|
|
2830
2830
|
},
|
|
2831
2831
|
byPage: (settings) => {
|
|
2832
|
-
if (settings === null || settings ===
|
|
2832
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2833
2833
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2834
2834
|
}
|
|
2835
2835
|
return this.listPagingPage(options, settings);
|
|
@@ -2839,7 +2839,7 @@ class OperationsImpl {
|
|
|
2839
2839
|
listPagingPage(options, settings) {
|
|
2840
2840
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2841
2841
|
let result;
|
|
2842
|
-
let continuationToken = settings === null || settings ===
|
|
2842
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2843
2843
|
if (!continuationToken) {
|
|
2844
2844
|
result = yield tslib.__await(this._list(options));
|
|
2845
2845
|
let page = result.value || [];
|
|
@@ -2942,12 +2942,12 @@ class LroImpl {
|
|
|
2942
2942
|
this.requestMethod = requestMethod;
|
|
2943
2943
|
}
|
|
2944
2944
|
sendInitialRequest() {
|
|
2945
|
-
return tslib.__awaiter(this,
|
|
2945
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2946
2946
|
return this.sendOperationFn(this.args, this.spec);
|
|
2947
2947
|
});
|
|
2948
2948
|
}
|
|
2949
2949
|
sendPollRequest(path) {
|
|
2950
|
-
return tslib.__awaiter(this,
|
|
2950
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2951
2951
|
const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
2952
2952
|
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
2953
2953
|
});
|
|
@@ -2986,7 +2986,7 @@ class DeploymentsImpl {
|
|
|
2986
2986
|
return this;
|
|
2987
2987
|
},
|
|
2988
2988
|
byPage: (settings) => {
|
|
2989
|
-
if (settings === null || settings ===
|
|
2989
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2990
2990
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2991
2991
|
}
|
|
2992
2992
|
return this.listAtScopePagingPage(scope, options, settings);
|
|
@@ -2996,7 +2996,7 @@ class DeploymentsImpl {
|
|
|
2996
2996
|
listAtScopePagingPage(scope, options, settings) {
|
|
2997
2997
|
return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
|
|
2998
2998
|
let result;
|
|
2999
|
-
let continuationToken = settings === null || settings ===
|
|
2999
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3000
3000
|
if (!continuationToken) {
|
|
3001
3001
|
result = yield tslib.__await(this._listAtScope(scope, options));
|
|
3002
3002
|
let page = result.value || [];
|
|
@@ -3047,7 +3047,7 @@ class DeploymentsImpl {
|
|
|
3047
3047
|
return this;
|
|
3048
3048
|
},
|
|
3049
3049
|
byPage: (settings) => {
|
|
3050
|
-
if (settings === null || settings ===
|
|
3050
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3051
3051
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3052
3052
|
}
|
|
3053
3053
|
return this.listAtTenantScopePagingPage(options, settings);
|
|
@@ -3057,7 +3057,7 @@ class DeploymentsImpl {
|
|
|
3057
3057
|
listAtTenantScopePagingPage(options, settings) {
|
|
3058
3058
|
return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
|
|
3059
3059
|
let result;
|
|
3060
|
-
let continuationToken = settings === null || settings ===
|
|
3060
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3061
3061
|
if (!continuationToken) {
|
|
3062
3062
|
result = yield tslib.__await(this._listAtTenantScope(options));
|
|
3063
3063
|
let page = result.value || [];
|
|
@@ -3109,7 +3109,7 @@ class DeploymentsImpl {
|
|
|
3109
3109
|
return this;
|
|
3110
3110
|
},
|
|
3111
3111
|
byPage: (settings) => {
|
|
3112
|
-
if (settings === null || settings ===
|
|
3112
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3113
3113
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3114
3114
|
}
|
|
3115
3115
|
return this.listAtManagementGroupScopePagingPage(groupId, options, settings);
|
|
@@ -3119,7 +3119,7 @@ class DeploymentsImpl {
|
|
|
3119
3119
|
listAtManagementGroupScopePagingPage(groupId, options, settings) {
|
|
3120
3120
|
return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
|
|
3121
3121
|
let result;
|
|
3122
|
-
let continuationToken = settings === null || settings ===
|
|
3122
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3123
3123
|
if (!continuationToken) {
|
|
3124
3124
|
result = yield tslib.__await(this._listAtManagementGroupScope(groupId, options));
|
|
3125
3125
|
let page = result.value || [];
|
|
@@ -3170,7 +3170,7 @@ class DeploymentsImpl {
|
|
|
3170
3170
|
return this;
|
|
3171
3171
|
},
|
|
3172
3172
|
byPage: (settings) => {
|
|
3173
|
-
if (settings === null || settings ===
|
|
3173
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3174
3174
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3175
3175
|
}
|
|
3176
3176
|
return this.listAtSubscriptionScopePagingPage(options, settings);
|
|
@@ -3180,7 +3180,7 @@ class DeploymentsImpl {
|
|
|
3180
3180
|
listAtSubscriptionScopePagingPage(options, settings) {
|
|
3181
3181
|
return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
|
|
3182
3182
|
let result;
|
|
3183
|
-
let continuationToken = settings === null || settings ===
|
|
3183
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3184
3184
|
if (!continuationToken) {
|
|
3185
3185
|
result = yield tslib.__await(this._listAtSubscriptionScope(options));
|
|
3186
3186
|
let page = result.value || [];
|
|
@@ -3233,7 +3233,7 @@ class DeploymentsImpl {
|
|
|
3233
3233
|
return this;
|
|
3234
3234
|
},
|
|
3235
3235
|
byPage: (settings) => {
|
|
3236
|
-
if (settings === null || settings ===
|
|
3236
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3237
3237
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3238
3238
|
}
|
|
3239
3239
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3243,7 +3243,7 @@ class DeploymentsImpl {
|
|
|
3243
3243
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3244
3244
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3245
3245
|
let result;
|
|
3246
|
-
let continuationToken = settings === null || settings ===
|
|
3246
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3247
3247
|
if (!continuationToken) {
|
|
3248
3248
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3249
3249
|
let page = result.value || [];
|
|
@@ -3293,17 +3293,17 @@ class DeploymentsImpl {
|
|
|
3293
3293
|
* @param options The options parameters.
|
|
3294
3294
|
*/
|
|
3295
3295
|
beginDeleteAtScope(scope, deploymentName, options) {
|
|
3296
|
-
return tslib.__awaiter(this,
|
|
3297
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3296
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3297
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3298
3298
|
return this.client.sendOperationRequest(args, spec);
|
|
3299
3299
|
});
|
|
3300
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3300
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3301
3301
|
var _a;
|
|
3302
3302
|
let currentRawResponse = undefined;
|
|
3303
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3303
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3304
3304
|
const callback = (rawResponse, flatResponse) => {
|
|
3305
3305
|
currentRawResponse = rawResponse;
|
|
3306
|
-
providedCallback === null || providedCallback ===
|
|
3306
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3307
3307
|
};
|
|
3308
3308
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3309
3309
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3318,8 +3318,8 @@ class DeploymentsImpl {
|
|
|
3318
3318
|
});
|
|
3319
3319
|
const lro = new LroImpl(sendOperation, { scope, deploymentName, options }, deleteAtScopeOperationSpec$1);
|
|
3320
3320
|
const poller = new coreLro.LroEngine(lro, {
|
|
3321
|
-
resumeFrom: options === null || options ===
|
|
3322
|
-
intervalInMs: options === null || options ===
|
|
3321
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3322
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3323
3323
|
});
|
|
3324
3324
|
yield poller.poll();
|
|
3325
3325
|
return poller;
|
|
@@ -3338,7 +3338,7 @@ class DeploymentsImpl {
|
|
|
3338
3338
|
* @param options The options parameters.
|
|
3339
3339
|
*/
|
|
3340
3340
|
beginDeleteAtScopeAndWait(scope, deploymentName, options) {
|
|
3341
|
-
return tslib.__awaiter(this,
|
|
3341
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3342
3342
|
const poller = yield this.beginDeleteAtScope(scope, deploymentName, options);
|
|
3343
3343
|
return poller.pollUntilDone();
|
|
3344
3344
|
});
|
|
@@ -3360,17 +3360,17 @@ class DeploymentsImpl {
|
|
|
3360
3360
|
* @param options The options parameters.
|
|
3361
3361
|
*/
|
|
3362
3362
|
beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
|
|
3363
|
-
return tslib.__awaiter(this,
|
|
3364
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3363
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3364
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3365
3365
|
return this.client.sendOperationRequest(args, spec);
|
|
3366
3366
|
});
|
|
3367
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3367
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3368
3368
|
var _a;
|
|
3369
3369
|
let currentRawResponse = undefined;
|
|
3370
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3370
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3371
3371
|
const callback = (rawResponse, flatResponse) => {
|
|
3372
3372
|
currentRawResponse = rawResponse;
|
|
3373
|
-
providedCallback === null || providedCallback ===
|
|
3373
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3374
3374
|
};
|
|
3375
3375
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3376
3376
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3385,8 +3385,8 @@ class DeploymentsImpl {
|
|
|
3385
3385
|
});
|
|
3386
3386
|
const lro = new LroImpl(sendOperation, { scope, deploymentName, parameters, options }, createOrUpdateAtScopeOperationSpec$1);
|
|
3387
3387
|
const poller = new coreLro.LroEngine(lro, {
|
|
3388
|
-
resumeFrom: options === null || options ===
|
|
3389
|
-
intervalInMs: options === null || options ===
|
|
3388
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3389
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3390
3390
|
});
|
|
3391
3391
|
yield poller.poll();
|
|
3392
3392
|
return poller;
|
|
@@ -3400,7 +3400,7 @@ class DeploymentsImpl {
|
|
|
3400
3400
|
* @param options The options parameters.
|
|
3401
3401
|
*/
|
|
3402
3402
|
beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
3403
|
-
return tslib.__awaiter(this,
|
|
3403
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3404
3404
|
const poller = yield this.beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options);
|
|
3405
3405
|
return poller.pollUntilDone();
|
|
3406
3406
|
});
|
|
@@ -3434,17 +3434,17 @@ class DeploymentsImpl {
|
|
|
3434
3434
|
* @param options The options parameters.
|
|
3435
3435
|
*/
|
|
3436
3436
|
beginValidateAtScope(scope, deploymentName, parameters, options) {
|
|
3437
|
-
return tslib.__awaiter(this,
|
|
3438
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3437
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3438
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3439
3439
|
return this.client.sendOperationRequest(args, spec);
|
|
3440
3440
|
});
|
|
3441
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3441
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3442
3442
|
var _a;
|
|
3443
3443
|
let currentRawResponse = undefined;
|
|
3444
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3444
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3445
3445
|
const callback = (rawResponse, flatResponse) => {
|
|
3446
3446
|
currentRawResponse = rawResponse;
|
|
3447
|
-
providedCallback === null || providedCallback ===
|
|
3447
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3448
3448
|
};
|
|
3449
3449
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3450
3450
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3459,8 +3459,8 @@ class DeploymentsImpl {
|
|
|
3459
3459
|
});
|
|
3460
3460
|
const lro = new LroImpl(sendOperation, { scope, deploymentName, parameters, options }, validateAtScopeOperationSpec);
|
|
3461
3461
|
const poller = new coreLro.LroEngine(lro, {
|
|
3462
|
-
resumeFrom: options === null || options ===
|
|
3463
|
-
intervalInMs: options === null || options ===
|
|
3462
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3463
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3464
3464
|
});
|
|
3465
3465
|
yield poller.poll();
|
|
3466
3466
|
return poller;
|
|
@@ -3475,7 +3475,7 @@ class DeploymentsImpl {
|
|
|
3475
3475
|
* @param options The options parameters.
|
|
3476
3476
|
*/
|
|
3477
3477
|
beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
3478
|
-
return tslib.__awaiter(this,
|
|
3478
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3479
3479
|
const poller = yield this.beginValidateAtScope(scope, deploymentName, parameters, options);
|
|
3480
3480
|
return poller.pollUntilDone();
|
|
3481
3481
|
});
|
|
@@ -3509,17 +3509,17 @@ class DeploymentsImpl {
|
|
|
3509
3509
|
* @param options The options parameters.
|
|
3510
3510
|
*/
|
|
3511
3511
|
beginDeleteAtTenantScope(deploymentName, options) {
|
|
3512
|
-
return tslib.__awaiter(this,
|
|
3513
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3512
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3513
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3514
3514
|
return this.client.sendOperationRequest(args, spec);
|
|
3515
3515
|
});
|
|
3516
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3516
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3517
3517
|
var _a;
|
|
3518
3518
|
let currentRawResponse = undefined;
|
|
3519
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3519
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3520
3520
|
const callback = (rawResponse, flatResponse) => {
|
|
3521
3521
|
currentRawResponse = rawResponse;
|
|
3522
|
-
providedCallback === null || providedCallback ===
|
|
3522
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3523
3523
|
};
|
|
3524
3524
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3525
3525
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3534,8 +3534,8 @@ class DeploymentsImpl {
|
|
|
3534
3534
|
});
|
|
3535
3535
|
const lro = new LroImpl(sendOperation, { deploymentName, options }, deleteAtTenantScopeOperationSpec);
|
|
3536
3536
|
const poller = new coreLro.LroEngine(lro, {
|
|
3537
|
-
resumeFrom: options === null || options ===
|
|
3538
|
-
intervalInMs: options === null || options ===
|
|
3537
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3538
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3539
3539
|
});
|
|
3540
3540
|
yield poller.poll();
|
|
3541
3541
|
return poller;
|
|
@@ -3553,7 +3553,7 @@ class DeploymentsImpl {
|
|
|
3553
3553
|
* @param options The options parameters.
|
|
3554
3554
|
*/
|
|
3555
3555
|
beginDeleteAtTenantScopeAndWait(deploymentName, options) {
|
|
3556
|
-
return tslib.__awaiter(this,
|
|
3556
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3557
3557
|
const poller = yield this.beginDeleteAtTenantScope(deploymentName, options);
|
|
3558
3558
|
return poller.pollUntilDone();
|
|
3559
3559
|
});
|
|
@@ -3573,17 +3573,17 @@ class DeploymentsImpl {
|
|
|
3573
3573
|
* @param options The options parameters.
|
|
3574
3574
|
*/
|
|
3575
3575
|
beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
|
|
3576
|
-
return tslib.__awaiter(this,
|
|
3577
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3576
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3577
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3578
3578
|
return this.client.sendOperationRequest(args, spec);
|
|
3579
3579
|
});
|
|
3580
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3580
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3581
3581
|
var _a;
|
|
3582
3582
|
let currentRawResponse = undefined;
|
|
3583
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3583
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3584
3584
|
const callback = (rawResponse, flatResponse) => {
|
|
3585
3585
|
currentRawResponse = rawResponse;
|
|
3586
|
-
providedCallback === null || providedCallback ===
|
|
3586
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3587
3587
|
};
|
|
3588
3588
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3589
3589
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3598,8 +3598,8 @@ class DeploymentsImpl {
|
|
|
3598
3598
|
});
|
|
3599
3599
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtTenantScopeOperationSpec);
|
|
3600
3600
|
const poller = new coreLro.LroEngine(lro, {
|
|
3601
|
-
resumeFrom: options === null || options ===
|
|
3602
|
-
intervalInMs: options === null || options ===
|
|
3601
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3602
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3603
3603
|
});
|
|
3604
3604
|
yield poller.poll();
|
|
3605
3605
|
return poller;
|
|
@@ -3612,7 +3612,7 @@ class DeploymentsImpl {
|
|
|
3612
3612
|
* @param options The options parameters.
|
|
3613
3613
|
*/
|
|
3614
3614
|
beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
3615
|
-
return tslib.__awaiter(this,
|
|
3615
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3616
3616
|
const poller = yield this.beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options);
|
|
3617
3617
|
return poller.pollUntilDone();
|
|
3618
3618
|
});
|
|
@@ -3643,17 +3643,17 @@ class DeploymentsImpl {
|
|
|
3643
3643
|
* @param options The options parameters.
|
|
3644
3644
|
*/
|
|
3645
3645
|
beginValidateAtTenantScope(deploymentName, parameters, options) {
|
|
3646
|
-
return tslib.__awaiter(this,
|
|
3647
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3646
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3647
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3648
3648
|
return this.client.sendOperationRequest(args, spec);
|
|
3649
3649
|
});
|
|
3650
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3650
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3651
3651
|
var _a;
|
|
3652
3652
|
let currentRawResponse = undefined;
|
|
3653
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3653
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3654
3654
|
const callback = (rawResponse, flatResponse) => {
|
|
3655
3655
|
currentRawResponse = rawResponse;
|
|
3656
|
-
providedCallback === null || providedCallback ===
|
|
3656
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3657
3657
|
};
|
|
3658
3658
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3659
3659
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3668,8 +3668,8 @@ class DeploymentsImpl {
|
|
|
3668
3668
|
});
|
|
3669
3669
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtTenantScopeOperationSpec);
|
|
3670
3670
|
const poller = new coreLro.LroEngine(lro, {
|
|
3671
|
-
resumeFrom: options === null || options ===
|
|
3672
|
-
intervalInMs: options === null || options ===
|
|
3671
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3672
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3673
3673
|
});
|
|
3674
3674
|
yield poller.poll();
|
|
3675
3675
|
return poller;
|
|
@@ -3683,7 +3683,7 @@ class DeploymentsImpl {
|
|
|
3683
3683
|
* @param options The options parameters.
|
|
3684
3684
|
*/
|
|
3685
3685
|
beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
3686
|
-
return tslib.__awaiter(this,
|
|
3686
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3687
3687
|
const poller = yield this.beginValidateAtTenantScope(deploymentName, parameters, options);
|
|
3688
3688
|
return poller.pollUntilDone();
|
|
3689
3689
|
});
|
|
@@ -3695,17 +3695,17 @@ class DeploymentsImpl {
|
|
|
3695
3695
|
* @param options The options parameters.
|
|
3696
3696
|
*/
|
|
3697
3697
|
beginWhatIfAtTenantScope(deploymentName, parameters, options) {
|
|
3698
|
-
return tslib.__awaiter(this,
|
|
3699
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3698
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3699
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3700
3700
|
return this.client.sendOperationRequest(args, spec);
|
|
3701
3701
|
});
|
|
3702
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3702
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3703
3703
|
var _a;
|
|
3704
3704
|
let currentRawResponse = undefined;
|
|
3705
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3705
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3706
3706
|
const callback = (rawResponse, flatResponse) => {
|
|
3707
3707
|
currentRawResponse = rawResponse;
|
|
3708
|
-
providedCallback === null || providedCallback ===
|
|
3708
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3709
3709
|
};
|
|
3710
3710
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3711
3711
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3720,8 +3720,8 @@ class DeploymentsImpl {
|
|
|
3720
3720
|
});
|
|
3721
3721
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtTenantScopeOperationSpec);
|
|
3722
3722
|
const poller = new coreLro.LroEngine(lro, {
|
|
3723
|
-
resumeFrom: options === null || options ===
|
|
3724
|
-
intervalInMs: options === null || options ===
|
|
3723
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3724
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3725
3725
|
lroResourceLocationConfig: "location"
|
|
3726
3726
|
});
|
|
3727
3727
|
yield poller.poll();
|
|
@@ -3735,7 +3735,7 @@ class DeploymentsImpl {
|
|
|
3735
3735
|
* @param options The options parameters.
|
|
3736
3736
|
*/
|
|
3737
3737
|
beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
3738
|
-
return tslib.__awaiter(this,
|
|
3738
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3739
3739
|
const poller = yield this.beginWhatIfAtTenantScope(deploymentName, parameters, options);
|
|
3740
3740
|
return poller.pollUntilDone();
|
|
3741
3741
|
});
|
|
@@ -3768,17 +3768,17 @@ class DeploymentsImpl {
|
|
|
3768
3768
|
* @param options The options parameters.
|
|
3769
3769
|
*/
|
|
3770
3770
|
beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
|
|
3771
|
-
return tslib.__awaiter(this,
|
|
3772
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3771
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3772
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3773
3773
|
return this.client.sendOperationRequest(args, spec);
|
|
3774
3774
|
});
|
|
3775
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3775
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3776
3776
|
var _a;
|
|
3777
3777
|
let currentRawResponse = undefined;
|
|
3778
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3778
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3779
3779
|
const callback = (rawResponse, flatResponse) => {
|
|
3780
3780
|
currentRawResponse = rawResponse;
|
|
3781
|
-
providedCallback === null || providedCallback ===
|
|
3781
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3782
3782
|
};
|
|
3783
3783
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3784
3784
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3793,8 +3793,8 @@ class DeploymentsImpl {
|
|
|
3793
3793
|
});
|
|
3794
3794
|
const lro = new LroImpl(sendOperation, { groupId, deploymentName, options }, deleteAtManagementGroupScopeOperationSpec);
|
|
3795
3795
|
const poller = new coreLro.LroEngine(lro, {
|
|
3796
|
-
resumeFrom: options === null || options ===
|
|
3797
|
-
intervalInMs: options === null || options ===
|
|
3796
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3797
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3798
3798
|
});
|
|
3799
3799
|
yield poller.poll();
|
|
3800
3800
|
return poller;
|
|
@@ -3813,7 +3813,7 @@ class DeploymentsImpl {
|
|
|
3813
3813
|
* @param options The options parameters.
|
|
3814
3814
|
*/
|
|
3815
3815
|
beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
|
|
3816
|
-
return tslib.__awaiter(this,
|
|
3816
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3817
3817
|
const poller = yield this.beginDeleteAtManagementGroupScope(groupId, deploymentName, options);
|
|
3818
3818
|
return poller.pollUntilDone();
|
|
3819
3819
|
});
|
|
@@ -3835,17 +3835,17 @@ class DeploymentsImpl {
|
|
|
3835
3835
|
* @param options The options parameters.
|
|
3836
3836
|
*/
|
|
3837
3837
|
beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
3838
|
-
return tslib.__awaiter(this,
|
|
3839
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3838
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3839
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3840
3840
|
return this.client.sendOperationRequest(args, spec);
|
|
3841
3841
|
});
|
|
3842
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3842
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3843
3843
|
var _a;
|
|
3844
3844
|
let currentRawResponse = undefined;
|
|
3845
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3845
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3846
3846
|
const callback = (rawResponse, flatResponse) => {
|
|
3847
3847
|
currentRawResponse = rawResponse;
|
|
3848
|
-
providedCallback === null || providedCallback ===
|
|
3848
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3849
3849
|
};
|
|
3850
3850
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3851
3851
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3860,8 +3860,8 @@ class DeploymentsImpl {
|
|
|
3860
3860
|
});
|
|
3861
3861
|
const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, createOrUpdateAtManagementGroupScopeOperationSpec);
|
|
3862
3862
|
const poller = new coreLro.LroEngine(lro, {
|
|
3863
|
-
resumeFrom: options === null || options ===
|
|
3864
|
-
intervalInMs: options === null || options ===
|
|
3863
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3864
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3865
3865
|
});
|
|
3866
3866
|
yield poller.poll();
|
|
3867
3867
|
return poller;
|
|
@@ -3875,7 +3875,7 @@ class DeploymentsImpl {
|
|
|
3875
3875
|
* @param options The options parameters.
|
|
3876
3876
|
*/
|
|
3877
3877
|
beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
3878
|
-
return tslib.__awaiter(this,
|
|
3878
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3879
3879
|
const poller = yield this.beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
3880
3880
|
return poller.pollUntilDone();
|
|
3881
3881
|
});
|
|
@@ -3909,17 +3909,17 @@ class DeploymentsImpl {
|
|
|
3909
3909
|
* @param options The options parameters.
|
|
3910
3910
|
*/
|
|
3911
3911
|
beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
3912
|
-
return tslib.__awaiter(this,
|
|
3913
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3912
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3913
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3914
3914
|
return this.client.sendOperationRequest(args, spec);
|
|
3915
3915
|
});
|
|
3916
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3916
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3917
3917
|
var _a;
|
|
3918
3918
|
let currentRawResponse = undefined;
|
|
3919
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3919
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3920
3920
|
const callback = (rawResponse, flatResponse) => {
|
|
3921
3921
|
currentRawResponse = rawResponse;
|
|
3922
|
-
providedCallback === null || providedCallback ===
|
|
3922
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3923
3923
|
};
|
|
3924
3924
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3925
3925
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3934,8 +3934,8 @@ class DeploymentsImpl {
|
|
|
3934
3934
|
});
|
|
3935
3935
|
const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, validateAtManagementGroupScopeOperationSpec);
|
|
3936
3936
|
const poller = new coreLro.LroEngine(lro, {
|
|
3937
|
-
resumeFrom: options === null || options ===
|
|
3938
|
-
intervalInMs: options === null || options ===
|
|
3937
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3938
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3939
3939
|
});
|
|
3940
3940
|
yield poller.poll();
|
|
3941
3941
|
return poller;
|
|
@@ -3950,7 +3950,7 @@ class DeploymentsImpl {
|
|
|
3950
3950
|
* @param options The options parameters.
|
|
3951
3951
|
*/
|
|
3952
3952
|
beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
3953
|
-
return tslib.__awaiter(this,
|
|
3953
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3954
3954
|
const poller = yield this.beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
3955
3955
|
return poller.pollUntilDone();
|
|
3956
3956
|
});
|
|
@@ -3964,17 +3964,17 @@ class DeploymentsImpl {
|
|
|
3964
3964
|
* @param options The options parameters.
|
|
3965
3965
|
*/
|
|
3966
3966
|
beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
3967
|
-
return tslib.__awaiter(this,
|
|
3968
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3967
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3968
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3969
3969
|
return this.client.sendOperationRequest(args, spec);
|
|
3970
3970
|
});
|
|
3971
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3971
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3972
3972
|
var _a;
|
|
3973
3973
|
let currentRawResponse = undefined;
|
|
3974
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3974
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3975
3975
|
const callback = (rawResponse, flatResponse) => {
|
|
3976
3976
|
currentRawResponse = rawResponse;
|
|
3977
|
-
providedCallback === null || providedCallback ===
|
|
3977
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3978
3978
|
};
|
|
3979
3979
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3980
3980
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3989,8 +3989,8 @@ class DeploymentsImpl {
|
|
|
3989
3989
|
});
|
|
3990
3990
|
const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, whatIfAtManagementGroupScopeOperationSpec);
|
|
3991
3991
|
const poller = new coreLro.LroEngine(lro, {
|
|
3992
|
-
resumeFrom: options === null || options ===
|
|
3993
|
-
intervalInMs: options === null || options ===
|
|
3992
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3993
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3994
3994
|
lroResourceLocationConfig: "location"
|
|
3995
3995
|
});
|
|
3996
3996
|
yield poller.poll();
|
|
@@ -4006,7 +4006,7 @@ class DeploymentsImpl {
|
|
|
4006
4006
|
* @param options The options parameters.
|
|
4007
4007
|
*/
|
|
4008
4008
|
beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
4009
|
-
return tslib.__awaiter(this,
|
|
4009
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4010
4010
|
const poller = yield this.beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
4011
4011
|
return poller.pollUntilDone();
|
|
4012
4012
|
});
|
|
@@ -4040,17 +4040,17 @@ class DeploymentsImpl {
|
|
|
4040
4040
|
* @param options The options parameters.
|
|
4041
4041
|
*/
|
|
4042
4042
|
beginDeleteAtSubscriptionScope(deploymentName, options) {
|
|
4043
|
-
return tslib.__awaiter(this,
|
|
4044
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4043
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4044
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4045
4045
|
return this.client.sendOperationRequest(args, spec);
|
|
4046
4046
|
});
|
|
4047
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4047
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4048
4048
|
var _a;
|
|
4049
4049
|
let currentRawResponse = undefined;
|
|
4050
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4050
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4051
4051
|
const callback = (rawResponse, flatResponse) => {
|
|
4052
4052
|
currentRawResponse = rawResponse;
|
|
4053
|
-
providedCallback === null || providedCallback ===
|
|
4053
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4054
4054
|
};
|
|
4055
4055
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4056
4056
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4065,8 +4065,8 @@ class DeploymentsImpl {
|
|
|
4065
4065
|
});
|
|
4066
4066
|
const lro = new LroImpl(sendOperation, { deploymentName, options }, deleteAtSubscriptionScopeOperationSpec);
|
|
4067
4067
|
const poller = new coreLro.LroEngine(lro, {
|
|
4068
|
-
resumeFrom: options === null || options ===
|
|
4069
|
-
intervalInMs: options === null || options ===
|
|
4068
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4069
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4070
4070
|
});
|
|
4071
4071
|
yield poller.poll();
|
|
4072
4072
|
return poller;
|
|
@@ -4084,7 +4084,7 @@ class DeploymentsImpl {
|
|
|
4084
4084
|
* @param options The options parameters.
|
|
4085
4085
|
*/
|
|
4086
4086
|
beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
|
|
4087
|
-
return tslib.__awaiter(this,
|
|
4087
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4088
4088
|
const poller = yield this.beginDeleteAtSubscriptionScope(deploymentName, options);
|
|
4089
4089
|
return poller.pollUntilDone();
|
|
4090
4090
|
});
|
|
@@ -4104,17 +4104,17 @@ class DeploymentsImpl {
|
|
|
4104
4104
|
* @param options The options parameters.
|
|
4105
4105
|
*/
|
|
4106
4106
|
beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
4107
|
-
return tslib.__awaiter(this,
|
|
4108
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4107
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4108
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4109
4109
|
return this.client.sendOperationRequest(args, spec);
|
|
4110
4110
|
});
|
|
4111
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4111
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4112
4112
|
var _a;
|
|
4113
4113
|
let currentRawResponse = undefined;
|
|
4114
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4114
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4115
4115
|
const callback = (rawResponse, flatResponse) => {
|
|
4116
4116
|
currentRawResponse = rawResponse;
|
|
4117
|
-
providedCallback === null || providedCallback ===
|
|
4117
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4118
4118
|
};
|
|
4119
4119
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4120
4120
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4129,8 +4129,8 @@ class DeploymentsImpl {
|
|
|
4129
4129
|
});
|
|
4130
4130
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtSubscriptionScopeOperationSpec);
|
|
4131
4131
|
const poller = new coreLro.LroEngine(lro, {
|
|
4132
|
-
resumeFrom: options === null || options ===
|
|
4133
|
-
intervalInMs: options === null || options ===
|
|
4132
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4133
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4134
4134
|
});
|
|
4135
4135
|
yield poller.poll();
|
|
4136
4136
|
return poller;
|
|
@@ -4143,7 +4143,7 @@ class DeploymentsImpl {
|
|
|
4143
4143
|
* @param options The options parameters.
|
|
4144
4144
|
*/
|
|
4145
4145
|
beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
4146
|
-
return tslib.__awaiter(this,
|
|
4146
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4147
4147
|
const poller = yield this.beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options);
|
|
4148
4148
|
return poller.pollUntilDone();
|
|
4149
4149
|
});
|
|
@@ -4174,17 +4174,17 @@ class DeploymentsImpl {
|
|
|
4174
4174
|
* @param options The options parameters.
|
|
4175
4175
|
*/
|
|
4176
4176
|
beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
4177
|
-
return tslib.__awaiter(this,
|
|
4178
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4177
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4178
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4179
4179
|
return this.client.sendOperationRequest(args, spec);
|
|
4180
4180
|
});
|
|
4181
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4181
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4182
4182
|
var _a;
|
|
4183
4183
|
let currentRawResponse = undefined;
|
|
4184
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4184
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4185
4185
|
const callback = (rawResponse, flatResponse) => {
|
|
4186
4186
|
currentRawResponse = rawResponse;
|
|
4187
|
-
providedCallback === null || providedCallback ===
|
|
4187
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4188
4188
|
};
|
|
4189
4189
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4190
4190
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4199,8 +4199,8 @@ class DeploymentsImpl {
|
|
|
4199
4199
|
});
|
|
4200
4200
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtSubscriptionScopeOperationSpec);
|
|
4201
4201
|
const poller = new coreLro.LroEngine(lro, {
|
|
4202
|
-
resumeFrom: options === null || options ===
|
|
4203
|
-
intervalInMs: options === null || options ===
|
|
4202
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4203
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4204
4204
|
});
|
|
4205
4205
|
yield poller.poll();
|
|
4206
4206
|
return poller;
|
|
@@ -4214,7 +4214,7 @@ class DeploymentsImpl {
|
|
|
4214
4214
|
* @param options The options parameters.
|
|
4215
4215
|
*/
|
|
4216
4216
|
beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
4217
|
-
return tslib.__awaiter(this,
|
|
4217
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4218
4218
|
const poller = yield this.beginValidateAtSubscriptionScope(deploymentName, parameters, options);
|
|
4219
4219
|
return poller.pollUntilDone();
|
|
4220
4220
|
});
|
|
@@ -4226,17 +4226,17 @@ class DeploymentsImpl {
|
|
|
4226
4226
|
* @param options The options parameters.
|
|
4227
4227
|
*/
|
|
4228
4228
|
beginWhatIfAtSubscriptionScope(deploymentName, parameters, options) {
|
|
4229
|
-
return tslib.__awaiter(this,
|
|
4230
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4229
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4230
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4231
4231
|
return this.client.sendOperationRequest(args, spec);
|
|
4232
4232
|
});
|
|
4233
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4233
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4234
4234
|
var _a;
|
|
4235
4235
|
let currentRawResponse = undefined;
|
|
4236
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4236
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4237
4237
|
const callback = (rawResponse, flatResponse) => {
|
|
4238
4238
|
currentRawResponse = rawResponse;
|
|
4239
|
-
providedCallback === null || providedCallback ===
|
|
4239
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4240
4240
|
};
|
|
4241
4241
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4242
4242
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4251,8 +4251,8 @@ class DeploymentsImpl {
|
|
|
4251
4251
|
});
|
|
4252
4252
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtSubscriptionScopeOperationSpec);
|
|
4253
4253
|
const poller = new coreLro.LroEngine(lro, {
|
|
4254
|
-
resumeFrom: options === null || options ===
|
|
4255
|
-
intervalInMs: options === null || options ===
|
|
4254
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4255
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4256
4256
|
lroResourceLocationConfig: "location"
|
|
4257
4257
|
});
|
|
4258
4258
|
yield poller.poll();
|
|
@@ -4266,7 +4266,7 @@ class DeploymentsImpl {
|
|
|
4266
4266
|
* @param options The options parameters.
|
|
4267
4267
|
*/
|
|
4268
4268
|
beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
4269
|
-
return tslib.__awaiter(this,
|
|
4269
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4270
4270
|
const poller = yield this.beginWhatIfAtSubscriptionScope(deploymentName, parameters, options);
|
|
4271
4271
|
return poller.pollUntilDone();
|
|
4272
4272
|
});
|
|
@@ -4301,17 +4301,17 @@ class DeploymentsImpl {
|
|
|
4301
4301
|
* @param options The options parameters.
|
|
4302
4302
|
*/
|
|
4303
4303
|
beginDelete(resourceGroupName, deploymentName, options) {
|
|
4304
|
-
return tslib.__awaiter(this,
|
|
4305
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4304
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4305
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4306
4306
|
return this.client.sendOperationRequest(args, spec);
|
|
4307
4307
|
});
|
|
4308
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4308
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4309
4309
|
var _a;
|
|
4310
4310
|
let currentRawResponse = undefined;
|
|
4311
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4311
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4312
4312
|
const callback = (rawResponse, flatResponse) => {
|
|
4313
4313
|
currentRawResponse = rawResponse;
|
|
4314
|
-
providedCallback === null || providedCallback ===
|
|
4314
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4315
4315
|
};
|
|
4316
4316
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4317
4317
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4326,8 +4326,8 @@ class DeploymentsImpl {
|
|
|
4326
4326
|
});
|
|
4327
4327
|
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, options }, deleteOperationSpec$3);
|
|
4328
4328
|
const poller = new coreLro.LroEngine(lro, {
|
|
4329
|
-
resumeFrom: options === null || options ===
|
|
4330
|
-
intervalInMs: options === null || options ===
|
|
4329
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4330
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4331
4331
|
});
|
|
4332
4332
|
yield poller.poll();
|
|
4333
4333
|
return poller;
|
|
@@ -4348,7 +4348,7 @@ class DeploymentsImpl {
|
|
|
4348
4348
|
* @param options The options parameters.
|
|
4349
4349
|
*/
|
|
4350
4350
|
beginDeleteAndWait(resourceGroupName, deploymentName, options) {
|
|
4351
|
-
return tslib.__awaiter(this,
|
|
4351
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4352
4352
|
const poller = yield this.beginDelete(resourceGroupName, deploymentName, options);
|
|
4353
4353
|
return poller.pollUntilDone();
|
|
4354
4354
|
});
|
|
@@ -4372,17 +4372,17 @@ class DeploymentsImpl {
|
|
|
4372
4372
|
* @param options The options parameters.
|
|
4373
4373
|
*/
|
|
4374
4374
|
beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
|
|
4375
|
-
return tslib.__awaiter(this,
|
|
4376
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4375
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4376
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4377
4377
|
return this.client.sendOperationRequest(args, spec);
|
|
4378
4378
|
});
|
|
4379
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4379
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4380
4380
|
var _a;
|
|
4381
4381
|
let currentRawResponse = undefined;
|
|
4382
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4382
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4383
4383
|
const callback = (rawResponse, flatResponse) => {
|
|
4384
4384
|
currentRawResponse = rawResponse;
|
|
4385
|
-
providedCallback === null || providedCallback ===
|
|
4385
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4386
4386
|
};
|
|
4387
4387
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4388
4388
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4397,8 +4397,8 @@ class DeploymentsImpl {
|
|
|
4397
4397
|
});
|
|
4398
4398
|
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, createOrUpdateOperationSpec$3);
|
|
4399
4399
|
const poller = new coreLro.LroEngine(lro, {
|
|
4400
|
-
resumeFrom: options === null || options ===
|
|
4401
|
-
intervalInMs: options === null || options ===
|
|
4400
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4401
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4402
4402
|
});
|
|
4403
4403
|
yield poller.poll();
|
|
4404
4404
|
return poller;
|
|
@@ -4413,7 +4413,7 @@ class DeploymentsImpl {
|
|
|
4413
4413
|
* @param options The options parameters.
|
|
4414
4414
|
*/
|
|
4415
4415
|
beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
4416
|
-
return tslib.__awaiter(this,
|
|
4416
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4417
4417
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options);
|
|
4418
4418
|
return poller.pollUntilDone();
|
|
4419
4419
|
});
|
|
@@ -4448,17 +4448,17 @@ class DeploymentsImpl {
|
|
|
4448
4448
|
* @param options The options parameters.
|
|
4449
4449
|
*/
|
|
4450
4450
|
beginValidate(resourceGroupName, deploymentName, parameters, options) {
|
|
4451
|
-
return tslib.__awaiter(this,
|
|
4452
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4451
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4452
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4453
4453
|
return this.client.sendOperationRequest(args, spec);
|
|
4454
4454
|
});
|
|
4455
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4455
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4456
4456
|
var _a;
|
|
4457
4457
|
let currentRawResponse = undefined;
|
|
4458
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4458
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4459
4459
|
const callback = (rawResponse, flatResponse) => {
|
|
4460
4460
|
currentRawResponse = rawResponse;
|
|
4461
|
-
providedCallback === null || providedCallback ===
|
|
4461
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4462
4462
|
};
|
|
4463
4463
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4464
4464
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4473,8 +4473,8 @@ class DeploymentsImpl {
|
|
|
4473
4473
|
});
|
|
4474
4474
|
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, validateOperationSpec);
|
|
4475
4475
|
const poller = new coreLro.LroEngine(lro, {
|
|
4476
|
-
resumeFrom: options === null || options ===
|
|
4477
|
-
intervalInMs: options === null || options ===
|
|
4476
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4477
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4478
4478
|
});
|
|
4479
4479
|
yield poller.poll();
|
|
4480
4480
|
return poller;
|
|
@@ -4490,7 +4490,7 @@ class DeploymentsImpl {
|
|
|
4490
4490
|
* @param options The options parameters.
|
|
4491
4491
|
*/
|
|
4492
4492
|
beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
4493
|
-
return tslib.__awaiter(this,
|
|
4493
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4494
4494
|
const poller = yield this.beginValidate(resourceGroupName, deploymentName, parameters, options);
|
|
4495
4495
|
return poller.pollUntilDone();
|
|
4496
4496
|
});
|
|
@@ -4504,17 +4504,17 @@ class DeploymentsImpl {
|
|
|
4504
4504
|
* @param options The options parameters.
|
|
4505
4505
|
*/
|
|
4506
4506
|
beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
|
|
4507
|
-
return tslib.__awaiter(this,
|
|
4508
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4507
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4508
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4509
4509
|
return this.client.sendOperationRequest(args, spec);
|
|
4510
4510
|
});
|
|
4511
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4511
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4512
4512
|
var _a;
|
|
4513
4513
|
let currentRawResponse = undefined;
|
|
4514
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4514
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4515
4515
|
const callback = (rawResponse, flatResponse) => {
|
|
4516
4516
|
currentRawResponse = rawResponse;
|
|
4517
|
-
providedCallback === null || providedCallback ===
|
|
4517
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4518
4518
|
};
|
|
4519
4519
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4520
4520
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4529,8 +4529,8 @@ class DeploymentsImpl {
|
|
|
4529
4529
|
});
|
|
4530
4530
|
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, whatIfOperationSpec);
|
|
4531
4531
|
const poller = new coreLro.LroEngine(lro, {
|
|
4532
|
-
resumeFrom: options === null || options ===
|
|
4533
|
-
intervalInMs: options === null || options ===
|
|
4532
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4533
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4534
4534
|
lroResourceLocationConfig: "location"
|
|
4535
4535
|
});
|
|
4536
4536
|
yield poller.poll();
|
|
@@ -4546,7 +4546,7 @@ class DeploymentsImpl {
|
|
|
4546
4546
|
* @param options The options parameters.
|
|
4547
4547
|
*/
|
|
4548
4548
|
beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
4549
|
-
return tslib.__awaiter(this,
|
|
4549
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4550
4550
|
const poller = yield this.beginWhatIf(resourceGroupName, deploymentName, parameters, options);
|
|
4551
4551
|
return poller.pollUntilDone();
|
|
4552
4552
|
});
|
|
@@ -5744,7 +5744,7 @@ class ProvidersImpl {
|
|
|
5744
5744
|
return this;
|
|
5745
5745
|
},
|
|
5746
5746
|
byPage: (settings) => {
|
|
5747
|
-
if (settings === null || settings ===
|
|
5747
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5748
5748
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5749
5749
|
}
|
|
5750
5750
|
return this.listPagingPage(options, settings);
|
|
@@ -5754,7 +5754,7 @@ class ProvidersImpl {
|
|
|
5754
5754
|
listPagingPage(options, settings) {
|
|
5755
5755
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5756
5756
|
let result;
|
|
5757
|
-
let continuationToken = settings === null || settings ===
|
|
5757
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5758
5758
|
if (!continuationToken) {
|
|
5759
5759
|
result = yield tslib.__await(this._list(options));
|
|
5760
5760
|
let page = result.value || [];
|
|
@@ -5805,7 +5805,7 @@ class ProvidersImpl {
|
|
|
5805
5805
|
return this;
|
|
5806
5806
|
},
|
|
5807
5807
|
byPage: (settings) => {
|
|
5808
|
-
if (settings === null || settings ===
|
|
5808
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5809
5809
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5810
5810
|
}
|
|
5811
5811
|
return this.listAtTenantScopePagingPage(options, settings);
|
|
@@ -5815,7 +5815,7 @@ class ProvidersImpl {
|
|
|
5815
5815
|
listAtTenantScopePagingPage(options, settings) {
|
|
5816
5816
|
return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
|
|
5817
5817
|
let result;
|
|
5818
|
-
let continuationToken = settings === null || settings ===
|
|
5818
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5819
5819
|
if (!continuationToken) {
|
|
5820
5820
|
result = yield tslib.__await(this._listAtTenantScope(options));
|
|
5821
5821
|
let page = result.value || [];
|
|
@@ -6092,7 +6092,7 @@ class ResourcesImpl {
|
|
|
6092
6092
|
return this;
|
|
6093
6093
|
},
|
|
6094
6094
|
byPage: (settings) => {
|
|
6095
|
-
if (settings === null || settings ===
|
|
6095
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6096
6096
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6097
6097
|
}
|
|
6098
6098
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6102,7 +6102,7 @@ class ResourcesImpl {
|
|
|
6102
6102
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6103
6103
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6104
6104
|
let result;
|
|
6105
|
-
let continuationToken = settings === null || settings ===
|
|
6105
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6106
6106
|
if (!continuationToken) {
|
|
6107
6107
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6108
6108
|
let page = result.value || [];
|
|
@@ -6153,7 +6153,7 @@ class ResourcesImpl {
|
|
|
6153
6153
|
return this;
|
|
6154
6154
|
},
|
|
6155
6155
|
byPage: (settings) => {
|
|
6156
|
-
if (settings === null || settings ===
|
|
6156
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6157
6157
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6158
6158
|
}
|
|
6159
6159
|
return this.listPagingPage(options, settings);
|
|
@@ -6163,7 +6163,7 @@ class ResourcesImpl {
|
|
|
6163
6163
|
listPagingPage(options, settings) {
|
|
6164
6164
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6165
6165
|
let result;
|
|
6166
|
-
let continuationToken = settings === null || settings ===
|
|
6166
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6167
6167
|
if (!continuationToken) {
|
|
6168
6168
|
result = yield tslib.__await(this._list(options));
|
|
6169
6169
|
let page = result.value || [];
|
|
@@ -6218,17 +6218,17 @@ class ResourcesImpl {
|
|
|
6218
6218
|
* @param options The options parameters.
|
|
6219
6219
|
*/
|
|
6220
6220
|
beginMoveResources(sourceResourceGroupName, parameters, options) {
|
|
6221
|
-
return tslib.__awaiter(this,
|
|
6222
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6221
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6222
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6223
6223
|
return this.client.sendOperationRequest(args, spec);
|
|
6224
6224
|
});
|
|
6225
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6225
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6226
6226
|
var _a;
|
|
6227
6227
|
let currentRawResponse = undefined;
|
|
6228
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6228
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6229
6229
|
const callback = (rawResponse, flatResponse) => {
|
|
6230
6230
|
currentRawResponse = rawResponse;
|
|
6231
|
-
providedCallback === null || providedCallback ===
|
|
6231
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6232
6232
|
};
|
|
6233
6233
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6234
6234
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6243,8 +6243,8 @@ class ResourcesImpl {
|
|
|
6243
6243
|
});
|
|
6244
6244
|
const lro = new LroImpl(sendOperation, { sourceResourceGroupName, parameters, options }, moveResourcesOperationSpec);
|
|
6245
6245
|
const poller = new coreLro.LroEngine(lro, {
|
|
6246
|
-
resumeFrom: options === null || options ===
|
|
6247
|
-
intervalInMs: options === null || options ===
|
|
6246
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6247
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6248
6248
|
});
|
|
6249
6249
|
yield poller.poll();
|
|
6250
6250
|
return poller;
|
|
@@ -6260,7 +6260,7 @@ class ResourcesImpl {
|
|
|
6260
6260
|
* @param options The options parameters.
|
|
6261
6261
|
*/
|
|
6262
6262
|
beginMoveResourcesAndWait(sourceResourceGroupName, parameters, options) {
|
|
6263
|
-
return tslib.__awaiter(this,
|
|
6263
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6264
6264
|
const poller = yield this.beginMoveResources(sourceResourceGroupName, parameters, options);
|
|
6265
6265
|
return poller.pollUntilDone();
|
|
6266
6266
|
});
|
|
@@ -6277,17 +6277,17 @@ class ResourcesImpl {
|
|
|
6277
6277
|
* @param options The options parameters.
|
|
6278
6278
|
*/
|
|
6279
6279
|
beginValidateMoveResources(sourceResourceGroupName, parameters, options) {
|
|
6280
|
-
return tslib.__awaiter(this,
|
|
6281
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6280
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6281
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6282
6282
|
return this.client.sendOperationRequest(args, spec);
|
|
6283
6283
|
});
|
|
6284
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6284
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6285
6285
|
var _a;
|
|
6286
6286
|
let currentRawResponse = undefined;
|
|
6287
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6287
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6288
6288
|
const callback = (rawResponse, flatResponse) => {
|
|
6289
6289
|
currentRawResponse = rawResponse;
|
|
6290
|
-
providedCallback === null || providedCallback ===
|
|
6290
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6291
6291
|
};
|
|
6292
6292
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6293
6293
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6302,8 +6302,8 @@ class ResourcesImpl {
|
|
|
6302
6302
|
});
|
|
6303
6303
|
const lro = new LroImpl(sendOperation, { sourceResourceGroupName, parameters, options }, validateMoveResourcesOperationSpec);
|
|
6304
6304
|
const poller = new coreLro.LroEngine(lro, {
|
|
6305
|
-
resumeFrom: options === null || options ===
|
|
6306
|
-
intervalInMs: options === null || options ===
|
|
6305
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6306
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6307
6307
|
});
|
|
6308
6308
|
yield poller.poll();
|
|
6309
6309
|
return poller;
|
|
@@ -6321,7 +6321,7 @@ class ResourcesImpl {
|
|
|
6321
6321
|
* @param options The options parameters.
|
|
6322
6322
|
*/
|
|
6323
6323
|
beginValidateMoveResourcesAndWait(sourceResourceGroupName, parameters, options) {
|
|
6324
|
-
return tslib.__awaiter(this,
|
|
6324
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6325
6325
|
const poller = yield this.beginValidateMoveResources(sourceResourceGroupName, parameters, options);
|
|
6326
6326
|
return poller.pollUntilDone();
|
|
6327
6327
|
});
|
|
@@ -6367,17 +6367,17 @@ class ResourcesImpl {
|
|
|
6367
6367
|
* @param options The options parameters.
|
|
6368
6368
|
*/
|
|
6369
6369
|
beginDelete(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, options) {
|
|
6370
|
-
return tslib.__awaiter(this,
|
|
6371
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6370
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6371
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6372
6372
|
return this.client.sendOperationRequest(args, spec);
|
|
6373
6373
|
});
|
|
6374
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6374
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6375
6375
|
var _a;
|
|
6376
6376
|
let currentRawResponse = undefined;
|
|
6377
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6377
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6378
6378
|
const callback = (rawResponse, flatResponse) => {
|
|
6379
6379
|
currentRawResponse = rawResponse;
|
|
6380
|
-
providedCallback === null || providedCallback ===
|
|
6380
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6381
6381
|
};
|
|
6382
6382
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6383
6383
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6400,8 +6400,8 @@ class ResourcesImpl {
|
|
|
6400
6400
|
options
|
|
6401
6401
|
}, deleteOperationSpec$2);
|
|
6402
6402
|
const poller = new coreLro.LroEngine(lro, {
|
|
6403
|
-
resumeFrom: options === null || options ===
|
|
6404
|
-
intervalInMs: options === null || options ===
|
|
6403
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6404
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6405
6405
|
});
|
|
6406
6406
|
yield poller.poll();
|
|
6407
6407
|
return poller;
|
|
@@ -6419,7 +6419,7 @@ class ResourcesImpl {
|
|
|
6419
6419
|
* @param options The options parameters.
|
|
6420
6420
|
*/
|
|
6421
6421
|
beginDeleteAndWait(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, options) {
|
|
6422
|
-
return tslib.__awaiter(this,
|
|
6422
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6423
6423
|
const poller = yield this.beginDelete(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, options);
|
|
6424
6424
|
return poller.pollUntilDone();
|
|
6425
6425
|
});
|
|
@@ -6437,17 +6437,17 @@ class ResourcesImpl {
|
|
|
6437
6437
|
* @param options The options parameters.
|
|
6438
6438
|
*/
|
|
6439
6439
|
beginCreateOrUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
|
|
6440
|
-
return tslib.__awaiter(this,
|
|
6441
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6440
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6441
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6442
6442
|
return this.client.sendOperationRequest(args, spec);
|
|
6443
6443
|
});
|
|
6444
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6444
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6445
6445
|
var _a;
|
|
6446
6446
|
let currentRawResponse = undefined;
|
|
6447
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6447
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6448
6448
|
const callback = (rawResponse, flatResponse) => {
|
|
6449
6449
|
currentRawResponse = rawResponse;
|
|
6450
|
-
providedCallback === null || providedCallback ===
|
|
6450
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6451
6451
|
};
|
|
6452
6452
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6453
6453
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6471,8 +6471,8 @@ class ResourcesImpl {
|
|
|
6471
6471
|
options
|
|
6472
6472
|
}, createOrUpdateOperationSpec$2);
|
|
6473
6473
|
const poller = new coreLro.LroEngine(lro, {
|
|
6474
|
-
resumeFrom: options === null || options ===
|
|
6475
|
-
intervalInMs: options === null || options ===
|
|
6474
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6475
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6476
6476
|
});
|
|
6477
6477
|
yield poller.poll();
|
|
6478
6478
|
return poller;
|
|
@@ -6491,7 +6491,7 @@ class ResourcesImpl {
|
|
|
6491
6491
|
* @param options The options parameters.
|
|
6492
6492
|
*/
|
|
6493
6493
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
|
|
6494
|
-
return tslib.__awaiter(this,
|
|
6494
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6495
6495
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options);
|
|
6496
6496
|
return poller.pollUntilDone();
|
|
6497
6497
|
});
|
|
@@ -6509,17 +6509,17 @@ class ResourcesImpl {
|
|
|
6509
6509
|
* @param options The options parameters.
|
|
6510
6510
|
*/
|
|
6511
6511
|
beginUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
|
|
6512
|
-
return tslib.__awaiter(this,
|
|
6513
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6512
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6513
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6514
6514
|
return this.client.sendOperationRequest(args, spec);
|
|
6515
6515
|
});
|
|
6516
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6516
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6517
6517
|
var _a;
|
|
6518
6518
|
let currentRawResponse = undefined;
|
|
6519
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6519
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6520
6520
|
const callback = (rawResponse, flatResponse) => {
|
|
6521
6521
|
currentRawResponse = rawResponse;
|
|
6522
|
-
providedCallback === null || providedCallback ===
|
|
6522
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6523
6523
|
};
|
|
6524
6524
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6525
6525
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6543,8 +6543,8 @@ class ResourcesImpl {
|
|
|
6543
6543
|
options
|
|
6544
6544
|
}, updateOperationSpec$1);
|
|
6545
6545
|
const poller = new coreLro.LroEngine(lro, {
|
|
6546
|
-
resumeFrom: options === null || options ===
|
|
6547
|
-
intervalInMs: options === null || options ===
|
|
6546
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6547
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6548
6548
|
});
|
|
6549
6549
|
yield poller.poll();
|
|
6550
6550
|
return poller;
|
|
@@ -6563,7 +6563,7 @@ class ResourcesImpl {
|
|
|
6563
6563
|
* @param options The options parameters.
|
|
6564
6564
|
*/
|
|
6565
6565
|
beginUpdateAndWait(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
|
|
6566
|
-
return tslib.__awaiter(this,
|
|
6566
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6567
6567
|
const poller = yield this.beginUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options);
|
|
6568
6568
|
return poller.pollUntilDone();
|
|
6569
6569
|
});
|
|
@@ -6610,17 +6610,17 @@ class ResourcesImpl {
|
|
|
6610
6610
|
* @param options The options parameters.
|
|
6611
6611
|
*/
|
|
6612
6612
|
beginDeleteById(resourceId, apiVersion, options) {
|
|
6613
|
-
return tslib.__awaiter(this,
|
|
6614
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6613
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6614
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6615
6615
|
return this.client.sendOperationRequest(args, spec);
|
|
6616
6616
|
});
|
|
6617
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6617
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6618
6618
|
var _a;
|
|
6619
6619
|
let currentRawResponse = undefined;
|
|
6620
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6620
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6621
6621
|
const callback = (rawResponse, flatResponse) => {
|
|
6622
6622
|
currentRawResponse = rawResponse;
|
|
6623
|
-
providedCallback === null || providedCallback ===
|
|
6623
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6624
6624
|
};
|
|
6625
6625
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6626
6626
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6635,8 +6635,8 @@ class ResourcesImpl {
|
|
|
6635
6635
|
});
|
|
6636
6636
|
const lro = new LroImpl(sendOperation, { resourceId, apiVersion, options }, deleteByIdOperationSpec);
|
|
6637
6637
|
const poller = new coreLro.LroEngine(lro, {
|
|
6638
|
-
resumeFrom: options === null || options ===
|
|
6639
|
-
intervalInMs: options === null || options ===
|
|
6638
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6639
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6640
6640
|
});
|
|
6641
6641
|
yield poller.poll();
|
|
6642
6642
|
return poller;
|
|
@@ -6651,7 +6651,7 @@ class ResourcesImpl {
|
|
|
6651
6651
|
* @param options The options parameters.
|
|
6652
6652
|
*/
|
|
6653
6653
|
beginDeleteByIdAndWait(resourceId, apiVersion, options) {
|
|
6654
|
-
return tslib.__awaiter(this,
|
|
6654
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6655
6655
|
const poller = yield this.beginDeleteById(resourceId, apiVersion, options);
|
|
6656
6656
|
return poller.pollUntilDone();
|
|
6657
6657
|
});
|
|
@@ -6666,17 +6666,17 @@ class ResourcesImpl {
|
|
|
6666
6666
|
* @param options The options parameters.
|
|
6667
6667
|
*/
|
|
6668
6668
|
beginCreateOrUpdateById(resourceId, apiVersion, parameters, options) {
|
|
6669
|
-
return tslib.__awaiter(this,
|
|
6670
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6669
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6670
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6671
6671
|
return this.client.sendOperationRequest(args, spec);
|
|
6672
6672
|
});
|
|
6673
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6673
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6674
6674
|
var _a;
|
|
6675
6675
|
let currentRawResponse = undefined;
|
|
6676
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6676
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6677
6677
|
const callback = (rawResponse, flatResponse) => {
|
|
6678
6678
|
currentRawResponse = rawResponse;
|
|
6679
|
-
providedCallback === null || providedCallback ===
|
|
6679
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6680
6680
|
};
|
|
6681
6681
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6682
6682
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6691,8 +6691,8 @@ class ResourcesImpl {
|
|
|
6691
6691
|
});
|
|
6692
6692
|
const lro = new LroImpl(sendOperation, { resourceId, apiVersion, parameters, options }, createOrUpdateByIdOperationSpec);
|
|
6693
6693
|
const poller = new coreLro.LroEngine(lro, {
|
|
6694
|
-
resumeFrom: options === null || options ===
|
|
6695
|
-
intervalInMs: options === null || options ===
|
|
6694
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6695
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6696
6696
|
});
|
|
6697
6697
|
yield poller.poll();
|
|
6698
6698
|
return poller;
|
|
@@ -6708,7 +6708,7 @@ class ResourcesImpl {
|
|
|
6708
6708
|
* @param options The options parameters.
|
|
6709
6709
|
*/
|
|
6710
6710
|
beginCreateOrUpdateByIdAndWait(resourceId, apiVersion, parameters, options) {
|
|
6711
|
-
return tslib.__awaiter(this,
|
|
6711
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6712
6712
|
const poller = yield this.beginCreateOrUpdateById(resourceId, apiVersion, parameters, options);
|
|
6713
6713
|
return poller.pollUntilDone();
|
|
6714
6714
|
});
|
|
@@ -6723,17 +6723,17 @@ class ResourcesImpl {
|
|
|
6723
6723
|
* @param options The options parameters.
|
|
6724
6724
|
*/
|
|
6725
6725
|
beginUpdateById(resourceId, apiVersion, parameters, options) {
|
|
6726
|
-
return tslib.__awaiter(this,
|
|
6727
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6726
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6727
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6728
6728
|
return this.client.sendOperationRequest(args, spec);
|
|
6729
6729
|
});
|
|
6730
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6730
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6731
6731
|
var _a;
|
|
6732
6732
|
let currentRawResponse = undefined;
|
|
6733
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6733
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6734
6734
|
const callback = (rawResponse, flatResponse) => {
|
|
6735
6735
|
currentRawResponse = rawResponse;
|
|
6736
|
-
providedCallback === null || providedCallback ===
|
|
6736
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6737
6737
|
};
|
|
6738
6738
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6739
6739
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6748,8 +6748,8 @@ class ResourcesImpl {
|
|
|
6748
6748
|
});
|
|
6749
6749
|
const lro = new LroImpl(sendOperation, { resourceId, apiVersion, parameters, options }, updateByIdOperationSpec);
|
|
6750
6750
|
const poller = new coreLro.LroEngine(lro, {
|
|
6751
|
-
resumeFrom: options === null || options ===
|
|
6752
|
-
intervalInMs: options === null || options ===
|
|
6751
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6752
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6753
6753
|
});
|
|
6754
6754
|
yield poller.poll();
|
|
6755
6755
|
return poller;
|
|
@@ -6765,7 +6765,7 @@ class ResourcesImpl {
|
|
|
6765
6765
|
* @param options The options parameters.
|
|
6766
6766
|
*/
|
|
6767
6767
|
beginUpdateByIdAndWait(resourceId, apiVersion, parameters, options) {
|
|
6768
|
-
return tslib.__awaiter(this,
|
|
6768
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6769
6769
|
const poller = yield this.beginUpdateById(resourceId, apiVersion, parameters, options);
|
|
6770
6770
|
return poller.pollUntilDone();
|
|
6771
6771
|
});
|
|
@@ -7208,7 +7208,7 @@ class ResourceGroupsImpl {
|
|
|
7208
7208
|
return this;
|
|
7209
7209
|
},
|
|
7210
7210
|
byPage: (settings) => {
|
|
7211
|
-
if (settings === null || settings ===
|
|
7211
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7212
7212
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7213
7213
|
}
|
|
7214
7214
|
return this.listPagingPage(options, settings);
|
|
@@ -7218,7 +7218,7 @@ class ResourceGroupsImpl {
|
|
|
7218
7218
|
listPagingPage(options, settings) {
|
|
7219
7219
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7220
7220
|
let result;
|
|
7221
|
-
let continuationToken = settings === null || settings ===
|
|
7221
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7222
7222
|
if (!continuationToken) {
|
|
7223
7223
|
result = yield tslib.__await(this._list(options));
|
|
7224
7224
|
let page = result.value || [];
|
|
@@ -7281,17 +7281,17 @@ class ResourceGroupsImpl {
|
|
|
7281
7281
|
* @param options The options parameters.
|
|
7282
7282
|
*/
|
|
7283
7283
|
beginDelete(resourceGroupName, options) {
|
|
7284
|
-
return tslib.__awaiter(this,
|
|
7285
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7284
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7285
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7286
7286
|
return this.client.sendOperationRequest(args, spec);
|
|
7287
7287
|
});
|
|
7288
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7288
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7289
7289
|
var _a;
|
|
7290
7290
|
let currentRawResponse = undefined;
|
|
7291
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7291
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7292
7292
|
const callback = (rawResponse, flatResponse) => {
|
|
7293
7293
|
currentRawResponse = rawResponse;
|
|
7294
|
-
providedCallback === null || providedCallback ===
|
|
7294
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7295
7295
|
};
|
|
7296
7296
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7297
7297
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7306,8 +7306,8 @@ class ResourceGroupsImpl {
|
|
|
7306
7306
|
});
|
|
7307
7307
|
const lro = new LroImpl(sendOperation, { resourceGroupName, options }, deleteOperationSpec$1);
|
|
7308
7308
|
const poller = new coreLro.LroEngine(lro, {
|
|
7309
|
-
resumeFrom: options === null || options ===
|
|
7310
|
-
intervalInMs: options === null || options ===
|
|
7309
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7310
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
7311
7311
|
});
|
|
7312
7312
|
yield poller.poll();
|
|
7313
7313
|
return poller;
|
|
@@ -7320,7 +7320,7 @@ class ResourceGroupsImpl {
|
|
|
7320
7320
|
* @param options The options parameters.
|
|
7321
7321
|
*/
|
|
7322
7322
|
beginDeleteAndWait(resourceGroupName, options) {
|
|
7323
|
-
return tslib.__awaiter(this,
|
|
7323
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7324
7324
|
const poller = yield this.beginDelete(resourceGroupName, options);
|
|
7325
7325
|
return poller.pollUntilDone();
|
|
7326
7326
|
});
|
|
@@ -7351,17 +7351,17 @@ class ResourceGroupsImpl {
|
|
|
7351
7351
|
* @param options The options parameters.
|
|
7352
7352
|
*/
|
|
7353
7353
|
beginExportTemplate(resourceGroupName, parameters, options) {
|
|
7354
|
-
return tslib.__awaiter(this,
|
|
7355
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7354
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7355
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7356
7356
|
return this.client.sendOperationRequest(args, spec);
|
|
7357
7357
|
});
|
|
7358
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7358
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7359
7359
|
var _a;
|
|
7360
7360
|
let currentRawResponse = undefined;
|
|
7361
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7361
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7362
7362
|
const callback = (rawResponse, flatResponse) => {
|
|
7363
7363
|
currentRawResponse = rawResponse;
|
|
7364
|
-
providedCallback === null || providedCallback ===
|
|
7364
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7365
7365
|
};
|
|
7366
7366
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7367
7367
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7376,8 +7376,8 @@ class ResourceGroupsImpl {
|
|
|
7376
7376
|
});
|
|
7377
7377
|
const lro = new LroImpl(sendOperation, { resourceGroupName, parameters, options }, exportTemplateOperationSpec);
|
|
7378
7378
|
const poller = new coreLro.LroEngine(lro, {
|
|
7379
|
-
resumeFrom: options === null || options ===
|
|
7380
|
-
intervalInMs: options === null || options ===
|
|
7379
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7380
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7381
7381
|
lroResourceLocationConfig: "location"
|
|
7382
7382
|
});
|
|
7383
7383
|
yield poller.poll();
|
|
@@ -7391,7 +7391,7 @@ class ResourceGroupsImpl {
|
|
|
7391
7391
|
* @param options The options parameters.
|
|
7392
7392
|
*/
|
|
7393
7393
|
beginExportTemplateAndWait(resourceGroupName, parameters, options) {
|
|
7394
|
-
return tslib.__awaiter(this,
|
|
7394
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7395
7395
|
const poller = yield this.beginExportTemplate(resourceGroupName, parameters, options);
|
|
7396
7396
|
return poller.pollUntilDone();
|
|
7397
7397
|
});
|
|
@@ -7622,7 +7622,7 @@ class TagsOperationsImpl {
|
|
|
7622
7622
|
return this;
|
|
7623
7623
|
},
|
|
7624
7624
|
byPage: (settings) => {
|
|
7625
|
-
if (settings === null || settings ===
|
|
7625
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7626
7626
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7627
7627
|
}
|
|
7628
7628
|
return this.listPagingPage(options, settings);
|
|
@@ -7632,7 +7632,7 @@ class TagsOperationsImpl {
|
|
|
7632
7632
|
listPagingPage(options, settings) {
|
|
7633
7633
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7634
7634
|
let result;
|
|
7635
|
-
let continuationToken = settings === null || settings ===
|
|
7635
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7636
7636
|
if (!continuationToken) {
|
|
7637
7637
|
result = yield tslib.__await(this._list(options));
|
|
7638
7638
|
let page = result.value || [];
|
|
@@ -7991,7 +7991,7 @@ class DeploymentOperationsImpl {
|
|
|
7991
7991
|
return this;
|
|
7992
7992
|
},
|
|
7993
7993
|
byPage: (settings) => {
|
|
7994
|
-
if (settings === null || settings ===
|
|
7994
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7995
7995
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7996
7996
|
}
|
|
7997
7997
|
return this.listAtScopePagingPage(scope, deploymentName, options, settings);
|
|
@@ -8001,7 +8001,7 @@ class DeploymentOperationsImpl {
|
|
|
8001
8001
|
listAtScopePagingPage(scope, deploymentName, options, settings) {
|
|
8002
8002
|
return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
|
|
8003
8003
|
let result;
|
|
8004
|
-
let continuationToken = settings === null || settings ===
|
|
8004
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8005
8005
|
if (!continuationToken) {
|
|
8006
8006
|
result = yield tslib.__await(this._listAtScope(scope, deploymentName, options));
|
|
8007
8007
|
let page = result.value || [];
|
|
@@ -8053,7 +8053,7 @@ class DeploymentOperationsImpl {
|
|
|
8053
8053
|
return this;
|
|
8054
8054
|
},
|
|
8055
8055
|
byPage: (settings) => {
|
|
8056
|
-
if (settings === null || settings ===
|
|
8056
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8057
8057
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8058
8058
|
}
|
|
8059
8059
|
return this.listAtTenantScopePagingPage(deploymentName, options, settings);
|
|
@@ -8063,7 +8063,7 @@ class DeploymentOperationsImpl {
|
|
|
8063
8063
|
listAtTenantScopePagingPage(deploymentName, options, settings) {
|
|
8064
8064
|
return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
|
|
8065
8065
|
let result;
|
|
8066
|
-
let continuationToken = settings === null || settings ===
|
|
8066
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8067
8067
|
if (!continuationToken) {
|
|
8068
8068
|
result = yield tslib.__await(this._listAtTenantScope(deploymentName, options));
|
|
8069
8069
|
let page = result.value || [];
|
|
@@ -8116,7 +8116,7 @@ class DeploymentOperationsImpl {
|
|
|
8116
8116
|
return this;
|
|
8117
8117
|
},
|
|
8118
8118
|
byPage: (settings) => {
|
|
8119
|
-
if (settings === null || settings ===
|
|
8119
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8120
8120
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8121
8121
|
}
|
|
8122
8122
|
return this.listAtManagementGroupScopePagingPage(groupId, deploymentName, options, settings);
|
|
@@ -8126,7 +8126,7 @@ class DeploymentOperationsImpl {
|
|
|
8126
8126
|
listAtManagementGroupScopePagingPage(groupId, deploymentName, options, settings) {
|
|
8127
8127
|
return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
|
|
8128
8128
|
let result;
|
|
8129
|
-
let continuationToken = settings === null || settings ===
|
|
8129
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8130
8130
|
if (!continuationToken) {
|
|
8131
8131
|
result = yield tslib.__await(this._listAtManagementGroupScope(groupId, deploymentName, options));
|
|
8132
8132
|
let page = result.value || [];
|
|
@@ -8178,7 +8178,7 @@ class DeploymentOperationsImpl {
|
|
|
8178
8178
|
return this;
|
|
8179
8179
|
},
|
|
8180
8180
|
byPage: (settings) => {
|
|
8181
|
-
if (settings === null || settings ===
|
|
8181
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8182
8182
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8183
8183
|
}
|
|
8184
8184
|
return this.listAtSubscriptionScopePagingPage(deploymentName, options, settings);
|
|
@@ -8188,7 +8188,7 @@ class DeploymentOperationsImpl {
|
|
|
8188
8188
|
listAtSubscriptionScopePagingPage(deploymentName, options, settings) {
|
|
8189
8189
|
return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
|
|
8190
8190
|
let result;
|
|
8191
|
-
let continuationToken = settings === null || settings ===
|
|
8191
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8192
8192
|
if (!continuationToken) {
|
|
8193
8193
|
result = yield tslib.__await(this._listAtSubscriptionScope(deploymentName, options));
|
|
8194
8194
|
let page = result.value || [];
|
|
@@ -8241,7 +8241,7 @@ class DeploymentOperationsImpl {
|
|
|
8241
8241
|
return this;
|
|
8242
8242
|
},
|
|
8243
8243
|
byPage: (settings) => {
|
|
8244
|
-
if (settings === null || settings ===
|
|
8244
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8245
8245
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8246
8246
|
}
|
|
8247
8247
|
return this.listPagingPage(resourceGroupName, deploymentName, options, settings);
|
|
@@ -8251,7 +8251,7 @@ class DeploymentOperationsImpl {
|
|
|
8251
8251
|
listPagingPage(resourceGroupName, deploymentName, options, settings) {
|
|
8252
8252
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8253
8253
|
let result;
|
|
8254
|
-
let continuationToken = settings === null || settings ===
|
|
8254
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8255
8255
|
if (!continuationToken) {
|
|
8256
8256
|
result = yield tslib.__await(this._list(resourceGroupName, deploymentName, options));
|
|
8257
8257
|
let page = result.value || [];
|
|
@@ -8771,10 +8771,10 @@ class ResourceManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8771
8771
|
: `${packageDetails}`;
|
|
8772
8772
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
8773
8773
|
userAgentPrefix
|
|
8774
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
8774
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
8775
8775
|
super(optionsWithDefaults);
|
|
8776
8776
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
8777
|
-
if ((options === null || options ===
|
|
8777
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
8778
8778
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
8779
8779
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
8780
8780
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -8788,7 +8788,7 @@ class ResourceManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8788
8788
|
});
|
|
8789
8789
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
8790
8790
|
credential: credentials,
|
|
8791
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
8791
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
8792
8792
|
challengeCallbacks: {
|
|
8793
8793
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
8794
8794
|
}
|
|
@@ -8816,7 +8816,7 @@ class ResourceManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8816
8816
|
const apiVersionPolicy = {
|
|
8817
8817
|
name: "CustomApiVersionPolicy",
|
|
8818
8818
|
sendRequest(request, next) {
|
|
8819
|
-
return tslib.__awaiter(this,
|
|
8819
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8820
8820
|
const param = request.url.split("?");
|
|
8821
8821
|
if (param.length > 1) {
|
|
8822
8822
|
const newParams = param[1].split("&").map((item) => {
|