@azure/arm-frontdoor 5.3.1-alpha.20250102.1 → 5.3.1-alpha.20250106.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +156 -156
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
|
|
|
47
47
|
if (typeof page !== "object" || page === null) {
|
|
48
48
|
return undefined;
|
|
49
49
|
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -4326,7 +4326,7 @@ function createLroSpec(inputs) {
|
|
|
4326
4326
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
4327
4327
|
sendPollRequest: (path, options) => {
|
|
4328
4328
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
4329
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
4329
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
4330
4330
|
},
|
|
4331
4331
|
};
|
|
4332
4332
|
}
|
|
@@ -4363,7 +4363,7 @@ class PoliciesImpl {
|
|
|
4363
4363
|
return this;
|
|
4364
4364
|
},
|
|
4365
4365
|
byPage: (settings) => {
|
|
4366
|
-
if (settings === null || settings ===
|
|
4366
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4367
4367
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4368
4368
|
}
|
|
4369
4369
|
return this.listPagingPage(resourceGroupName, options, settings);
|
|
@@ -4373,7 +4373,7 @@ class PoliciesImpl {
|
|
|
4373
4373
|
listPagingPage(resourceGroupName, options, settings) {
|
|
4374
4374
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4375
4375
|
let result;
|
|
4376
|
-
let continuationToken = settings === null || settings ===
|
|
4376
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4377
4377
|
if (!continuationToken) {
|
|
4378
4378
|
result = yield tslib.__await(this._list(resourceGroupName, options));
|
|
4379
4379
|
let page = result.value || [];
|
|
@@ -4424,7 +4424,7 @@ class PoliciesImpl {
|
|
|
4424
4424
|
return this;
|
|
4425
4425
|
},
|
|
4426
4426
|
byPage: (settings) => {
|
|
4427
|
-
if (settings === null || settings ===
|
|
4427
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4428
4428
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4429
4429
|
}
|
|
4430
4430
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -4434,7 +4434,7 @@ class PoliciesImpl {
|
|
|
4434
4434
|
listBySubscriptionPagingPage(options, settings) {
|
|
4435
4435
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
4436
4436
|
let result;
|
|
4437
|
-
let continuationToken = settings === null || settings ===
|
|
4437
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4438
4438
|
if (!continuationToken) {
|
|
4439
4439
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
4440
4440
|
let page = result.value || [];
|
|
@@ -4503,17 +4503,17 @@ class PoliciesImpl {
|
|
|
4503
4503
|
* @param options The options parameters.
|
|
4504
4504
|
*/
|
|
4505
4505
|
beginCreateOrUpdate(resourceGroupName, policyName, parameters, options) {
|
|
4506
|
-
return tslib.__awaiter(this,
|
|
4507
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4506
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4507
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4508
4508
|
return this.client.sendOperationRequest(args, spec);
|
|
4509
4509
|
});
|
|
4510
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4510
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4511
4511
|
var _a;
|
|
4512
4512
|
let currentRawResponse = undefined;
|
|
4513
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4513
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4514
4514
|
const callback = (rawResponse, flatResponse) => {
|
|
4515
4515
|
currentRawResponse = rawResponse;
|
|
4516
|
-
providedCallback === null || providedCallback ===
|
|
4516
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4517
4517
|
};
|
|
4518
4518
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4519
4519
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4532,8 +4532,8 @@ class PoliciesImpl {
|
|
|
4532
4532
|
spec: createOrUpdateOperationSpec$4,
|
|
4533
4533
|
});
|
|
4534
4534
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4535
|
-
restoreFrom: options === null || options ===
|
|
4536
|
-
intervalInMs: options === null || options ===
|
|
4535
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4536
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4537
4537
|
});
|
|
4538
4538
|
yield poller.poll();
|
|
4539
4539
|
return poller;
|
|
@@ -4547,7 +4547,7 @@ class PoliciesImpl {
|
|
|
4547
4547
|
* @param options The options parameters.
|
|
4548
4548
|
*/
|
|
4549
4549
|
beginCreateOrUpdateAndWait(resourceGroupName, policyName, parameters, options) {
|
|
4550
|
-
return tslib.__awaiter(this,
|
|
4550
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4551
4551
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, policyName, parameters, options);
|
|
4552
4552
|
return poller.pollUntilDone();
|
|
4553
4553
|
});
|
|
@@ -4561,17 +4561,17 @@ class PoliciesImpl {
|
|
|
4561
4561
|
* @param options The options parameters.
|
|
4562
4562
|
*/
|
|
4563
4563
|
beginUpdate(resourceGroupName, policyName, parameters, options) {
|
|
4564
|
-
return tslib.__awaiter(this,
|
|
4565
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4564
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4565
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4566
4566
|
return this.client.sendOperationRequest(args, spec);
|
|
4567
4567
|
});
|
|
4568
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4568
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4569
4569
|
var _a;
|
|
4570
4570
|
let currentRawResponse = undefined;
|
|
4571
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4571
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4572
4572
|
const callback = (rawResponse, flatResponse) => {
|
|
4573
4573
|
currentRawResponse = rawResponse;
|
|
4574
|
-
providedCallback === null || providedCallback ===
|
|
4574
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4575
4575
|
};
|
|
4576
4576
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4577
4577
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4590,8 +4590,8 @@ class PoliciesImpl {
|
|
|
4590
4590
|
spec: updateOperationSpec$2,
|
|
4591
4591
|
});
|
|
4592
4592
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4593
|
-
restoreFrom: options === null || options ===
|
|
4594
|
-
intervalInMs: options === null || options ===
|
|
4593
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4594
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4595
4595
|
});
|
|
4596
4596
|
yield poller.poll();
|
|
4597
4597
|
return poller;
|
|
@@ -4606,7 +4606,7 @@ class PoliciesImpl {
|
|
|
4606
4606
|
* @param options The options parameters.
|
|
4607
4607
|
*/
|
|
4608
4608
|
beginUpdateAndWait(resourceGroupName, policyName, parameters, options) {
|
|
4609
|
-
return tslib.__awaiter(this,
|
|
4609
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4610
4610
|
const poller = yield this.beginUpdate(resourceGroupName, policyName, parameters, options);
|
|
4611
4611
|
return poller.pollUntilDone();
|
|
4612
4612
|
});
|
|
@@ -4618,17 +4618,17 @@ class PoliciesImpl {
|
|
|
4618
4618
|
* @param options The options parameters.
|
|
4619
4619
|
*/
|
|
4620
4620
|
beginDelete(resourceGroupName, policyName, options) {
|
|
4621
|
-
return tslib.__awaiter(this,
|
|
4622
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4621
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4622
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4623
4623
|
return this.client.sendOperationRequest(args, spec);
|
|
4624
4624
|
});
|
|
4625
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4625
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4626
4626
|
var _a;
|
|
4627
4627
|
let currentRawResponse = undefined;
|
|
4628
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4628
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4629
4629
|
const callback = (rawResponse, flatResponse) => {
|
|
4630
4630
|
currentRawResponse = rawResponse;
|
|
4631
|
-
providedCallback === null || providedCallback ===
|
|
4631
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4632
4632
|
};
|
|
4633
4633
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4634
4634
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4647,8 +4647,8 @@ class PoliciesImpl {
|
|
|
4647
4647
|
spec: deleteOperationSpec$4,
|
|
4648
4648
|
});
|
|
4649
4649
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4650
|
-
restoreFrom: options === null || options ===
|
|
4651
|
-
intervalInMs: options === null || options ===
|
|
4650
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4651
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4652
4652
|
});
|
|
4653
4653
|
yield poller.poll();
|
|
4654
4654
|
return poller;
|
|
@@ -4661,7 +4661,7 @@ class PoliciesImpl {
|
|
|
4661
4661
|
* @param options The options parameters.
|
|
4662
4662
|
*/
|
|
4663
4663
|
beginDeleteAndWait(resourceGroupName, policyName, options) {
|
|
4664
|
-
return tslib.__awaiter(this,
|
|
4664
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4665
4665
|
const poller = yield this.beginDelete(resourceGroupName, policyName, options);
|
|
4666
4666
|
return poller.pollUntilDone();
|
|
4667
4667
|
});
|
|
@@ -4891,7 +4891,7 @@ class ManagedRuleSetsImpl {
|
|
|
4891
4891
|
return this;
|
|
4892
4892
|
},
|
|
4893
4893
|
byPage: (settings) => {
|
|
4894
|
-
if (settings === null || settings ===
|
|
4894
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4895
4895
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4896
4896
|
}
|
|
4897
4897
|
return this.listPagingPage(options, settings);
|
|
@@ -4901,7 +4901,7 @@ class ManagedRuleSetsImpl {
|
|
|
4901
4901
|
listPagingPage(options, settings) {
|
|
4902
4902
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4903
4903
|
let result;
|
|
4904
|
-
let continuationToken = settings === null || settings ===
|
|
4904
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4905
4905
|
if (!continuationToken) {
|
|
4906
4906
|
result = yield tslib.__await(this._list(options));
|
|
4907
4907
|
let page = result.value || [];
|
|
@@ -5115,7 +5115,7 @@ class FrontDoorsImpl {
|
|
|
5115
5115
|
return this;
|
|
5116
5116
|
},
|
|
5117
5117
|
byPage: (settings) => {
|
|
5118
|
-
if (settings === null || settings ===
|
|
5118
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5119
5119
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5120
5120
|
}
|
|
5121
5121
|
return this.listPagingPage(options, settings);
|
|
@@ -5125,7 +5125,7 @@ class FrontDoorsImpl {
|
|
|
5125
5125
|
listPagingPage(options, settings) {
|
|
5126
5126
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5127
5127
|
let result;
|
|
5128
|
-
let continuationToken = settings === null || settings ===
|
|
5128
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5129
5129
|
if (!continuationToken) {
|
|
5130
5130
|
result = yield tslib.__await(this._list(options));
|
|
5131
5131
|
let page = result.value || [];
|
|
@@ -5177,7 +5177,7 @@ class FrontDoorsImpl {
|
|
|
5177
5177
|
return this;
|
|
5178
5178
|
},
|
|
5179
5179
|
byPage: (settings) => {
|
|
5180
|
-
if (settings === null || settings ===
|
|
5180
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5181
5181
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5182
5182
|
}
|
|
5183
5183
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5187,7 +5187,7 @@ class FrontDoorsImpl {
|
|
|
5187
5187
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5188
5188
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5189
5189
|
let result;
|
|
5190
|
-
let continuationToken = settings === null || settings ===
|
|
5190
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5191
5191
|
if (!continuationToken) {
|
|
5192
5192
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5193
5193
|
let page = result.value || [];
|
|
@@ -5257,17 +5257,17 @@ class FrontDoorsImpl {
|
|
|
5257
5257
|
* @param options The options parameters.
|
|
5258
5258
|
*/
|
|
5259
5259
|
beginCreateOrUpdate(resourceGroupName, frontDoorName, frontDoorParameters, options) {
|
|
5260
|
-
return tslib.__awaiter(this,
|
|
5261
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5260
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5261
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5262
5262
|
return this.client.sendOperationRequest(args, spec);
|
|
5263
5263
|
});
|
|
5264
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5264
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5265
5265
|
var _a;
|
|
5266
5266
|
let currentRawResponse = undefined;
|
|
5267
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5267
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5268
5268
|
const callback = (rawResponse, flatResponse) => {
|
|
5269
5269
|
currentRawResponse = rawResponse;
|
|
5270
|
-
providedCallback === null || providedCallback ===
|
|
5270
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5271
5271
|
};
|
|
5272
5272
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5273
5273
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5286,8 +5286,8 @@ class FrontDoorsImpl {
|
|
|
5286
5286
|
spec: createOrUpdateOperationSpec$3,
|
|
5287
5287
|
});
|
|
5288
5288
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5289
|
-
restoreFrom: options === null || options ===
|
|
5290
|
-
intervalInMs: options === null || options ===
|
|
5289
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5290
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5291
5291
|
resourceLocationConfig: "azure-async-operation",
|
|
5292
5292
|
});
|
|
5293
5293
|
yield poller.poll();
|
|
@@ -5302,7 +5302,7 @@ class FrontDoorsImpl {
|
|
|
5302
5302
|
* @param options The options parameters.
|
|
5303
5303
|
*/
|
|
5304
5304
|
beginCreateOrUpdateAndWait(resourceGroupName, frontDoorName, frontDoorParameters, options) {
|
|
5305
|
-
return tslib.__awaiter(this,
|
|
5305
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5306
5306
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, frontDoorName, frontDoorParameters, options);
|
|
5307
5307
|
return poller.pollUntilDone();
|
|
5308
5308
|
});
|
|
@@ -5314,17 +5314,17 @@ class FrontDoorsImpl {
|
|
|
5314
5314
|
* @param options The options parameters.
|
|
5315
5315
|
*/
|
|
5316
5316
|
beginDelete(resourceGroupName, frontDoorName, options) {
|
|
5317
|
-
return tslib.__awaiter(this,
|
|
5318
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5317
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5318
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5319
5319
|
return this.client.sendOperationRequest(args, spec);
|
|
5320
5320
|
});
|
|
5321
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5321
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5322
5322
|
var _a;
|
|
5323
5323
|
let currentRawResponse = undefined;
|
|
5324
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5324
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5325
5325
|
const callback = (rawResponse, flatResponse) => {
|
|
5326
5326
|
currentRawResponse = rawResponse;
|
|
5327
|
-
providedCallback === null || providedCallback ===
|
|
5327
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5328
5328
|
};
|
|
5329
5329
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5330
5330
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5343,8 +5343,8 @@ class FrontDoorsImpl {
|
|
|
5343
5343
|
spec: deleteOperationSpec$3,
|
|
5344
5344
|
});
|
|
5345
5345
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5346
|
-
restoreFrom: options === null || options ===
|
|
5347
|
-
intervalInMs: options === null || options ===
|
|
5346
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5347
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5348
5348
|
resourceLocationConfig: "azure-async-operation",
|
|
5349
5349
|
});
|
|
5350
5350
|
yield poller.poll();
|
|
@@ -5358,7 +5358,7 @@ class FrontDoorsImpl {
|
|
|
5358
5358
|
* @param options The options parameters.
|
|
5359
5359
|
*/
|
|
5360
5360
|
beginDeleteAndWait(resourceGroupName, frontDoorName, options) {
|
|
5361
|
-
return tslib.__awaiter(this,
|
|
5361
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5362
5362
|
const poller = yield this.beginDelete(resourceGroupName, frontDoorName, options);
|
|
5363
5363
|
return poller.pollUntilDone();
|
|
5364
5364
|
});
|
|
@@ -5600,7 +5600,7 @@ class FrontendEndpointsImpl {
|
|
|
5600
5600
|
return this;
|
|
5601
5601
|
},
|
|
5602
5602
|
byPage: (settings) => {
|
|
5603
|
-
if (settings === null || settings ===
|
|
5603
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5604
5604
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5605
5605
|
}
|
|
5606
5606
|
return this.listByFrontDoorPagingPage(resourceGroupName, frontDoorName, options, settings);
|
|
@@ -5610,7 +5610,7 @@ class FrontendEndpointsImpl {
|
|
|
5610
5610
|
listByFrontDoorPagingPage(resourceGroupName, frontDoorName, options, settings) {
|
|
5611
5611
|
return tslib.__asyncGenerator(this, arguments, function* listByFrontDoorPagingPage_1() {
|
|
5612
5612
|
let result;
|
|
5613
|
-
let continuationToken = settings === null || settings ===
|
|
5613
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5614
5614
|
if (!continuationToken) {
|
|
5615
5615
|
result = yield tslib.__await(this._listByFrontDoor(resourceGroupName, frontDoorName, options));
|
|
5616
5616
|
let page = result.value || [];
|
|
@@ -5675,17 +5675,17 @@ class FrontendEndpointsImpl {
|
|
|
5675
5675
|
* @param options The options parameters.
|
|
5676
5676
|
*/
|
|
5677
5677
|
beginEnableHttps(resourceGroupName, frontDoorName, frontendEndpointName, customHttpsConfiguration, options) {
|
|
5678
|
-
return tslib.__awaiter(this,
|
|
5679
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5678
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5679
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5680
5680
|
return this.client.sendOperationRequest(args, spec);
|
|
5681
5681
|
});
|
|
5682
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5682
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5683
5683
|
var _a;
|
|
5684
5684
|
let currentRawResponse = undefined;
|
|
5685
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5685
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5686
5686
|
const callback = (rawResponse, flatResponse) => {
|
|
5687
5687
|
currentRawResponse = rawResponse;
|
|
5688
|
-
providedCallback === null || providedCallback ===
|
|
5688
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5689
5689
|
};
|
|
5690
5690
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5691
5691
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5710,8 +5710,8 @@ class FrontendEndpointsImpl {
|
|
|
5710
5710
|
spec: enableHttpsOperationSpec,
|
|
5711
5711
|
});
|
|
5712
5712
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5713
|
-
restoreFrom: options === null || options ===
|
|
5714
|
-
intervalInMs: options === null || options ===
|
|
5713
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5714
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5715
5715
|
resourceLocationConfig: "azure-async-operation",
|
|
5716
5716
|
});
|
|
5717
5717
|
yield poller.poll();
|
|
@@ -5727,7 +5727,7 @@ class FrontendEndpointsImpl {
|
|
|
5727
5727
|
* @param options The options parameters.
|
|
5728
5728
|
*/
|
|
5729
5729
|
beginEnableHttpsAndWait(resourceGroupName, frontDoorName, frontendEndpointName, customHttpsConfiguration, options) {
|
|
5730
|
-
return tslib.__awaiter(this,
|
|
5730
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5731
5731
|
const poller = yield this.beginEnableHttps(resourceGroupName, frontDoorName, frontendEndpointName, customHttpsConfiguration, options);
|
|
5732
5732
|
return poller.pollUntilDone();
|
|
5733
5733
|
});
|
|
@@ -5740,17 +5740,17 @@ class FrontendEndpointsImpl {
|
|
|
5740
5740
|
* @param options The options parameters.
|
|
5741
5741
|
*/
|
|
5742
5742
|
beginDisableHttps(resourceGroupName, frontDoorName, frontendEndpointName, options) {
|
|
5743
|
-
return tslib.__awaiter(this,
|
|
5744
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5743
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5744
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5745
5745
|
return this.client.sendOperationRequest(args, spec);
|
|
5746
5746
|
});
|
|
5747
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5747
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5748
5748
|
var _a;
|
|
5749
5749
|
let currentRawResponse = undefined;
|
|
5750
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5750
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5751
5751
|
const callback = (rawResponse, flatResponse) => {
|
|
5752
5752
|
currentRawResponse = rawResponse;
|
|
5753
|
-
providedCallback === null || providedCallback ===
|
|
5753
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5754
5754
|
};
|
|
5755
5755
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5756
5756
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5769,8 +5769,8 @@ class FrontendEndpointsImpl {
|
|
|
5769
5769
|
spec: disableHttpsOperationSpec,
|
|
5770
5770
|
});
|
|
5771
5771
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5772
|
-
restoreFrom: options === null || options ===
|
|
5773
|
-
intervalInMs: options === null || options ===
|
|
5772
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5773
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5774
5774
|
resourceLocationConfig: "azure-async-operation",
|
|
5775
5775
|
});
|
|
5776
5776
|
yield poller.poll();
|
|
@@ -5785,7 +5785,7 @@ class FrontendEndpointsImpl {
|
|
|
5785
5785
|
* @param options The options parameters.
|
|
5786
5786
|
*/
|
|
5787
5787
|
beginDisableHttpsAndWait(resourceGroupName, frontDoorName, frontendEndpointName, options) {
|
|
5788
|
-
return tslib.__awaiter(this,
|
|
5788
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5789
5789
|
const poller = yield this.beginDisableHttps(resourceGroupName, frontDoorName, frontendEndpointName, options);
|
|
5790
5790
|
return poller.pollUntilDone();
|
|
5791
5791
|
});
|
|
@@ -5942,17 +5942,17 @@ class EndpointsImpl {
|
|
|
5942
5942
|
* @param options The options parameters.
|
|
5943
5943
|
*/
|
|
5944
5944
|
beginPurgeContent(resourceGroupName, frontDoorName, contentFilePaths, options) {
|
|
5945
|
-
return tslib.__awaiter(this,
|
|
5946
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5945
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5946
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5947
5947
|
return this.client.sendOperationRequest(args, spec);
|
|
5948
5948
|
});
|
|
5949
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5949
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5950
5950
|
var _a;
|
|
5951
5951
|
let currentRawResponse = undefined;
|
|
5952
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5952
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5953
5953
|
const callback = (rawResponse, flatResponse) => {
|
|
5954
5954
|
currentRawResponse = rawResponse;
|
|
5955
|
-
providedCallback === null || providedCallback ===
|
|
5955
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5956
5956
|
};
|
|
5957
5957
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5958
5958
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5971,8 +5971,8 @@ class EndpointsImpl {
|
|
|
5971
5971
|
spec: purgeContentOperationSpec,
|
|
5972
5972
|
});
|
|
5973
5973
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5974
|
-
restoreFrom: options === null || options ===
|
|
5975
|
-
intervalInMs: options === null || options ===
|
|
5974
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5975
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5976
5976
|
resourceLocationConfig: "azure-async-operation",
|
|
5977
5977
|
});
|
|
5978
5978
|
yield poller.poll();
|
|
@@ -5989,7 +5989,7 @@ class EndpointsImpl {
|
|
|
5989
5989
|
* @param options The options parameters.
|
|
5990
5990
|
*/
|
|
5991
5991
|
beginPurgeContentAndWait(resourceGroupName, frontDoorName, contentFilePaths, options) {
|
|
5992
|
-
return tslib.__awaiter(this,
|
|
5992
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5993
5993
|
const poller = yield this.beginPurgeContent(resourceGroupName, frontDoorName, contentFilePaths, options);
|
|
5994
5994
|
return poller.pollUntilDone();
|
|
5995
5995
|
});
|
|
@@ -6055,7 +6055,7 @@ class RulesEnginesImpl {
|
|
|
6055
6055
|
return this;
|
|
6056
6056
|
},
|
|
6057
6057
|
byPage: (settings) => {
|
|
6058
|
-
if (settings === null || settings ===
|
|
6058
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6059
6059
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6060
6060
|
}
|
|
6061
6061
|
return this.listByFrontDoorPagingPage(resourceGroupName, frontDoorName, options, settings);
|
|
@@ -6065,7 +6065,7 @@ class RulesEnginesImpl {
|
|
|
6065
6065
|
listByFrontDoorPagingPage(resourceGroupName, frontDoorName, options, settings) {
|
|
6066
6066
|
return tslib.__asyncGenerator(this, arguments, function* listByFrontDoorPagingPage_1() {
|
|
6067
6067
|
let result;
|
|
6068
|
-
let continuationToken = settings === null || settings ===
|
|
6068
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6069
6069
|
if (!continuationToken) {
|
|
6070
6070
|
result = yield tslib.__await(this._listByFrontDoor(resourceGroupName, frontDoorName, options));
|
|
6071
6071
|
let page = result.value || [];
|
|
@@ -6131,17 +6131,17 @@ class RulesEnginesImpl {
|
|
|
6131
6131
|
* @param options The options parameters.
|
|
6132
6132
|
*/
|
|
6133
6133
|
beginCreateOrUpdate(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters, options) {
|
|
6134
|
-
return tslib.__awaiter(this,
|
|
6135
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6134
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6135
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6136
6136
|
return this.client.sendOperationRequest(args, spec);
|
|
6137
6137
|
});
|
|
6138
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6138
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6139
6139
|
var _a;
|
|
6140
6140
|
let currentRawResponse = undefined;
|
|
6141
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6141
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6142
6142
|
const callback = (rawResponse, flatResponse) => {
|
|
6143
6143
|
currentRawResponse = rawResponse;
|
|
6144
|
-
providedCallback === null || providedCallback ===
|
|
6144
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6145
6145
|
};
|
|
6146
6146
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6147
6147
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6166,8 +6166,8 @@ class RulesEnginesImpl {
|
|
|
6166
6166
|
spec: createOrUpdateOperationSpec$2,
|
|
6167
6167
|
});
|
|
6168
6168
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6169
|
-
restoreFrom: options === null || options ===
|
|
6170
|
-
intervalInMs: options === null || options ===
|
|
6169
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6170
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6171
6171
|
resourceLocationConfig: "azure-async-operation",
|
|
6172
6172
|
});
|
|
6173
6173
|
yield poller.poll();
|
|
@@ -6184,7 +6184,7 @@ class RulesEnginesImpl {
|
|
|
6184
6184
|
* @param options The options parameters.
|
|
6185
6185
|
*/
|
|
6186
6186
|
beginCreateOrUpdateAndWait(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters, options) {
|
|
6187
|
-
return tslib.__awaiter(this,
|
|
6187
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6188
6188
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, frontDoorName, rulesEngineName, rulesEngineParameters, options);
|
|
6189
6189
|
return poller.pollUntilDone();
|
|
6190
6190
|
});
|
|
@@ -6197,17 +6197,17 @@ class RulesEnginesImpl {
|
|
|
6197
6197
|
* @param options The options parameters.
|
|
6198
6198
|
*/
|
|
6199
6199
|
beginDelete(resourceGroupName, frontDoorName, rulesEngineName, options) {
|
|
6200
|
-
return tslib.__awaiter(this,
|
|
6201
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6200
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6201
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6202
6202
|
return this.client.sendOperationRequest(args, spec);
|
|
6203
6203
|
});
|
|
6204
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6204
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6205
6205
|
var _a;
|
|
6206
6206
|
let currentRawResponse = undefined;
|
|
6207
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6207
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6208
6208
|
const callback = (rawResponse, flatResponse) => {
|
|
6209
6209
|
currentRawResponse = rawResponse;
|
|
6210
|
-
providedCallback === null || providedCallback ===
|
|
6210
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6211
6211
|
};
|
|
6212
6212
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6213
6213
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6226,8 +6226,8 @@ class RulesEnginesImpl {
|
|
|
6226
6226
|
spec: deleteOperationSpec$2,
|
|
6227
6227
|
});
|
|
6228
6228
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6229
|
-
restoreFrom: options === null || options ===
|
|
6230
|
-
intervalInMs: options === null || options ===
|
|
6229
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6230
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6231
6231
|
resourceLocationConfig: "azure-async-operation",
|
|
6232
6232
|
});
|
|
6233
6233
|
yield poller.poll();
|
|
@@ -6242,7 +6242,7 @@ class RulesEnginesImpl {
|
|
|
6242
6242
|
* @param options The options parameters.
|
|
6243
6243
|
*/
|
|
6244
6244
|
beginDeleteAndWait(resourceGroupName, frontDoorName, rulesEngineName, options) {
|
|
6245
|
-
return tslib.__awaiter(this,
|
|
6245
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6246
6246
|
const poller = yield this.beginDelete(resourceGroupName, frontDoorName, rulesEngineName, options);
|
|
6247
6247
|
return poller.pollUntilDone();
|
|
6248
6248
|
});
|
|
@@ -6412,7 +6412,7 @@ class NetworkExperimentProfilesImpl {
|
|
|
6412
6412
|
return this;
|
|
6413
6413
|
},
|
|
6414
6414
|
byPage: (settings) => {
|
|
6415
|
-
if (settings === null || settings ===
|
|
6415
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6416
6416
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6417
6417
|
}
|
|
6418
6418
|
return this.listPagingPage(options, settings);
|
|
@@ -6422,7 +6422,7 @@ class NetworkExperimentProfilesImpl {
|
|
|
6422
6422
|
listPagingPage(options, settings) {
|
|
6423
6423
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6424
6424
|
let result;
|
|
6425
|
-
let continuationToken = settings === null || settings ===
|
|
6425
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6426
6426
|
if (!continuationToken) {
|
|
6427
6427
|
result = yield tslib.__await(this._list(options));
|
|
6428
6428
|
let page = result.value || [];
|
|
@@ -6474,7 +6474,7 @@ class NetworkExperimentProfilesImpl {
|
|
|
6474
6474
|
return this;
|
|
6475
6475
|
},
|
|
6476
6476
|
byPage: (settings) => {
|
|
6477
|
-
if (settings === null || settings ===
|
|
6477
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6478
6478
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6479
6479
|
}
|
|
6480
6480
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6484,7 +6484,7 @@ class NetworkExperimentProfilesImpl {
|
|
|
6484
6484
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6485
6485
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6486
6486
|
let result;
|
|
6487
|
-
let continuationToken = settings === null || settings ===
|
|
6487
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6488
6488
|
if (!continuationToken) {
|
|
6489
6489
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6490
6490
|
let page = result.value || [];
|
|
@@ -6553,17 +6553,17 @@ class NetworkExperimentProfilesImpl {
|
|
|
6553
6553
|
* @param options The options parameters.
|
|
6554
6554
|
*/
|
|
6555
6555
|
beginCreateOrUpdate(profileName, resourceGroupName, parameters, options) {
|
|
6556
|
-
return tslib.__awaiter(this,
|
|
6557
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6556
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6557
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6558
6558
|
return this.client.sendOperationRequest(args, spec);
|
|
6559
6559
|
});
|
|
6560
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6560
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6561
6561
|
var _a;
|
|
6562
6562
|
let currentRawResponse = undefined;
|
|
6563
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6563
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6564
6564
|
const callback = (rawResponse, flatResponse) => {
|
|
6565
6565
|
currentRawResponse = rawResponse;
|
|
6566
|
-
providedCallback === null || providedCallback ===
|
|
6566
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6567
6567
|
};
|
|
6568
6568
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6569
6569
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6582,8 +6582,8 @@ class NetworkExperimentProfilesImpl {
|
|
|
6582
6582
|
spec: createOrUpdateOperationSpec$1,
|
|
6583
6583
|
});
|
|
6584
6584
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6585
|
-
restoreFrom: options === null || options ===
|
|
6586
|
-
intervalInMs: options === null || options ===
|
|
6585
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6586
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6587
6587
|
});
|
|
6588
6588
|
yield poller.poll();
|
|
6589
6589
|
return poller;
|
|
@@ -6597,7 +6597,7 @@ class NetworkExperimentProfilesImpl {
|
|
|
6597
6597
|
* @param options The options parameters.
|
|
6598
6598
|
*/
|
|
6599
6599
|
beginCreateOrUpdateAndWait(profileName, resourceGroupName, parameters, options) {
|
|
6600
|
-
return tslib.__awaiter(this,
|
|
6600
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6601
6601
|
const poller = yield this.beginCreateOrUpdate(profileName, resourceGroupName, parameters, options);
|
|
6602
6602
|
return poller.pollUntilDone();
|
|
6603
6603
|
});
|
|
@@ -6610,17 +6610,17 @@ class NetworkExperimentProfilesImpl {
|
|
|
6610
6610
|
* @param options The options parameters.
|
|
6611
6611
|
*/
|
|
6612
6612
|
beginUpdate(resourceGroupName, profileName, parameters, options) {
|
|
6613
|
-
return tslib.__awaiter(this,
|
|
6614
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6613
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6614
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6615
6615
|
return this.client.sendOperationRequest(args, spec);
|
|
6616
6616
|
});
|
|
6617
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6617
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, 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 === undefined ? undefined : _a.onResponse;
|
|
6621
6621
|
const callback = (rawResponse, flatResponse) => {
|
|
6622
6622
|
currentRawResponse = rawResponse;
|
|
6623
|
-
providedCallback === null || providedCallback ===
|
|
6623
|
+
providedCallback === null || providedCallback === undefined ? undefined : 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);
|
|
@@ -6639,8 +6639,8 @@ class NetworkExperimentProfilesImpl {
|
|
|
6639
6639
|
spec: updateOperationSpec$1,
|
|
6640
6640
|
});
|
|
6641
6641
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6642
|
-
restoreFrom: options === null || options ===
|
|
6643
|
-
intervalInMs: options === null || options ===
|
|
6642
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6643
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6644
6644
|
});
|
|
6645
6645
|
yield poller.poll();
|
|
6646
6646
|
return poller;
|
|
@@ -6654,7 +6654,7 @@ class NetworkExperimentProfilesImpl {
|
|
|
6654
6654
|
* @param options The options parameters.
|
|
6655
6655
|
*/
|
|
6656
6656
|
beginUpdateAndWait(resourceGroupName, profileName, parameters, options) {
|
|
6657
|
-
return tslib.__awaiter(this,
|
|
6657
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6658
6658
|
const poller = yield this.beginUpdate(resourceGroupName, profileName, parameters, options);
|
|
6659
6659
|
return poller.pollUntilDone();
|
|
6660
6660
|
});
|
|
@@ -6666,17 +6666,17 @@ class NetworkExperimentProfilesImpl {
|
|
|
6666
6666
|
* @param options The options parameters.
|
|
6667
6667
|
*/
|
|
6668
6668
|
beginDelete(resourceGroupName, profileName, options) {
|
|
6669
|
-
return tslib.__awaiter(this,
|
|
6670
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6669
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6670
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6671
6671
|
return this.client.sendOperationRequest(args, spec);
|
|
6672
6672
|
});
|
|
6673
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6673
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, 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 === undefined ? undefined : _a.onResponse;
|
|
6677
6677
|
const callback = (rawResponse, flatResponse) => {
|
|
6678
6678
|
currentRawResponse = rawResponse;
|
|
6679
|
-
providedCallback === null || providedCallback ===
|
|
6679
|
+
providedCallback === null || providedCallback === undefined ? undefined : 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);
|
|
@@ -6695,8 +6695,8 @@ class NetworkExperimentProfilesImpl {
|
|
|
6695
6695
|
spec: deleteOperationSpec$1,
|
|
6696
6696
|
});
|
|
6697
6697
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6698
|
-
restoreFrom: options === null || options ===
|
|
6699
|
-
intervalInMs: options === null || options ===
|
|
6698
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6699
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6700
6700
|
});
|
|
6701
6701
|
yield poller.poll();
|
|
6702
6702
|
return poller;
|
|
@@ -6709,7 +6709,7 @@ class NetworkExperimentProfilesImpl {
|
|
|
6709
6709
|
* @param options The options parameters.
|
|
6710
6710
|
*/
|
|
6711
6711
|
beginDeleteAndWait(resourceGroupName, profileName, options) {
|
|
6712
|
-
return tslib.__awaiter(this,
|
|
6712
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6713
6713
|
const poller = yield this.beginDelete(resourceGroupName, profileName, options);
|
|
6714
6714
|
return poller.pollUntilDone();
|
|
6715
6715
|
});
|
|
@@ -6950,7 +6950,7 @@ class PreconfiguredEndpointsImpl {
|
|
|
6950
6950
|
return this;
|
|
6951
6951
|
},
|
|
6952
6952
|
byPage: (settings) => {
|
|
6953
|
-
if (settings === null || settings ===
|
|
6953
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6954
6954
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6955
6955
|
}
|
|
6956
6956
|
return this.listPagingPage(resourceGroupName, profileName, options, settings);
|
|
@@ -6960,7 +6960,7 @@ class PreconfiguredEndpointsImpl {
|
|
|
6960
6960
|
listPagingPage(resourceGroupName, profileName, options, settings) {
|
|
6961
6961
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6962
6962
|
let result;
|
|
6963
|
-
let continuationToken = settings === null || settings ===
|
|
6963
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6964
6964
|
if (!continuationToken) {
|
|
6965
6965
|
result = yield tslib.__await(this._list(resourceGroupName, profileName, options));
|
|
6966
6966
|
let page = result.value || [];
|
|
@@ -7095,7 +7095,7 @@ class ExperimentsImpl {
|
|
|
7095
7095
|
return this;
|
|
7096
7096
|
},
|
|
7097
7097
|
byPage: (settings) => {
|
|
7098
|
-
if (settings === null || settings ===
|
|
7098
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7099
7099
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7100
7100
|
}
|
|
7101
7101
|
return this.listByProfilePagingPage(resourceGroupName, profileName, options, settings);
|
|
@@ -7105,7 +7105,7 @@ class ExperimentsImpl {
|
|
|
7105
7105
|
listByProfilePagingPage(resourceGroupName, profileName, options, settings) {
|
|
7106
7106
|
return tslib.__asyncGenerator(this, arguments, function* listByProfilePagingPage_1() {
|
|
7107
7107
|
let result;
|
|
7108
|
-
let continuationToken = settings === null || settings ===
|
|
7108
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7109
7109
|
if (!continuationToken) {
|
|
7110
7110
|
result = yield tslib.__await(this._listByProfile(resourceGroupName, profileName, options));
|
|
7111
7111
|
let page = result.value || [];
|
|
@@ -7170,17 +7170,17 @@ class ExperimentsImpl {
|
|
|
7170
7170
|
* @param options The options parameters.
|
|
7171
7171
|
*/
|
|
7172
7172
|
beginCreateOrUpdate(resourceGroupName, profileName, experimentName, parameters, options) {
|
|
7173
|
-
return tslib.__awaiter(this,
|
|
7174
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7173
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7174
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7175
7175
|
return this.client.sendOperationRequest(args, spec);
|
|
7176
7176
|
});
|
|
7177
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7177
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7178
7178
|
var _a;
|
|
7179
7179
|
let currentRawResponse = undefined;
|
|
7180
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7180
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7181
7181
|
const callback = (rawResponse, flatResponse) => {
|
|
7182
7182
|
currentRawResponse = rawResponse;
|
|
7183
|
-
providedCallback === null || providedCallback ===
|
|
7183
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7184
7184
|
};
|
|
7185
7185
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7186
7186
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7205,8 +7205,8 @@ class ExperimentsImpl {
|
|
|
7205
7205
|
spec: createOrUpdateOperationSpec,
|
|
7206
7206
|
});
|
|
7207
7207
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7208
|
-
restoreFrom: options === null || options ===
|
|
7209
|
-
intervalInMs: options === null || options ===
|
|
7208
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7209
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7210
7210
|
});
|
|
7211
7211
|
yield poller.poll();
|
|
7212
7212
|
return poller;
|
|
@@ -7221,7 +7221,7 @@ class ExperimentsImpl {
|
|
|
7221
7221
|
* @param options The options parameters.
|
|
7222
7222
|
*/
|
|
7223
7223
|
beginCreateOrUpdateAndWait(resourceGroupName, profileName, experimentName, parameters, options) {
|
|
7224
|
-
return tslib.__awaiter(this,
|
|
7224
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7225
7225
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, profileName, experimentName, parameters, options);
|
|
7226
7226
|
return poller.pollUntilDone();
|
|
7227
7227
|
});
|
|
@@ -7235,17 +7235,17 @@ class ExperimentsImpl {
|
|
|
7235
7235
|
* @param options The options parameters.
|
|
7236
7236
|
*/
|
|
7237
7237
|
beginUpdate(resourceGroupName, profileName, experimentName, parameters, options) {
|
|
7238
|
-
return tslib.__awaiter(this,
|
|
7239
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7238
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7239
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7240
7240
|
return this.client.sendOperationRequest(args, spec);
|
|
7241
7241
|
});
|
|
7242
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7242
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7243
7243
|
var _a;
|
|
7244
7244
|
let currentRawResponse = undefined;
|
|
7245
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7245
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7246
7246
|
const callback = (rawResponse, flatResponse) => {
|
|
7247
7247
|
currentRawResponse = rawResponse;
|
|
7248
|
-
providedCallback === null || providedCallback ===
|
|
7248
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7249
7249
|
};
|
|
7250
7250
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7251
7251
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7270,8 +7270,8 @@ class ExperimentsImpl {
|
|
|
7270
7270
|
spec: updateOperationSpec,
|
|
7271
7271
|
});
|
|
7272
7272
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7273
|
-
restoreFrom: options === null || options ===
|
|
7274
|
-
intervalInMs: options === null || options ===
|
|
7273
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7274
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7275
7275
|
});
|
|
7276
7276
|
yield poller.poll();
|
|
7277
7277
|
return poller;
|
|
@@ -7286,7 +7286,7 @@ class ExperimentsImpl {
|
|
|
7286
7286
|
* @param options The options parameters.
|
|
7287
7287
|
*/
|
|
7288
7288
|
beginUpdateAndWait(resourceGroupName, profileName, experimentName, parameters, options) {
|
|
7289
|
-
return tslib.__awaiter(this,
|
|
7289
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7290
7290
|
const poller = yield this.beginUpdate(resourceGroupName, profileName, experimentName, parameters, options);
|
|
7291
7291
|
return poller.pollUntilDone();
|
|
7292
7292
|
});
|
|
@@ -7299,17 +7299,17 @@ class ExperimentsImpl {
|
|
|
7299
7299
|
* @param options The options parameters.
|
|
7300
7300
|
*/
|
|
7301
7301
|
beginDelete(resourceGroupName, profileName, experimentName, options) {
|
|
7302
|
-
return tslib.__awaiter(this,
|
|
7303
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7302
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7303
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7304
7304
|
return this.client.sendOperationRequest(args, spec);
|
|
7305
7305
|
});
|
|
7306
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7306
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7307
7307
|
var _a;
|
|
7308
7308
|
let currentRawResponse = undefined;
|
|
7309
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7309
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7310
7310
|
const callback = (rawResponse, flatResponse) => {
|
|
7311
7311
|
currentRawResponse = rawResponse;
|
|
7312
|
-
providedCallback === null || providedCallback ===
|
|
7312
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7313
7313
|
};
|
|
7314
7314
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7315
7315
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7328,8 +7328,8 @@ class ExperimentsImpl {
|
|
|
7328
7328
|
spec: deleteOperationSpec,
|
|
7329
7329
|
});
|
|
7330
7330
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7331
|
-
restoreFrom: options === null || options ===
|
|
7332
|
-
intervalInMs: options === null || options ===
|
|
7331
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7332
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7333
7333
|
});
|
|
7334
7334
|
yield poller.poll();
|
|
7335
7335
|
return poller;
|
|
@@ -7343,7 +7343,7 @@ class ExperimentsImpl {
|
|
|
7343
7343
|
* @param options The options parameters.
|
|
7344
7344
|
*/
|
|
7345
7345
|
beginDeleteAndWait(resourceGroupName, profileName, experimentName, options) {
|
|
7346
|
-
return tslib.__awaiter(this,
|
|
7346
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7347
7347
|
const poller = yield this.beginDelete(resourceGroupName, profileName, experimentName, options);
|
|
7348
7348
|
return poller.pollUntilDone();
|
|
7349
7349
|
});
|
|
@@ -7666,10 +7666,10 @@ class FrontDoorManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
7666
7666
|
: `${packageDetails}`;
|
|
7667
7667
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
7668
7668
|
userAgentPrefix,
|
|
7669
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
7669
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
7670
7670
|
super(optionsWithDefaults);
|
|
7671
7671
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
7672
|
-
if ((options === null || options ===
|
|
7672
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
7673
7673
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
7674
7674
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
7675
7675
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -7683,7 +7683,7 @@ class FrontDoorManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
7683
7683
|
});
|
|
7684
7684
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
7685
7685
|
credential: credentials,
|
|
7686
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
7686
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
7687
7687
|
challengeCallbacks: {
|
|
7688
7688
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
7689
7689
|
},
|