@azure/arm-cognitiveservices 7.6.0-alpha.20250103.1 → 7.6.0-alpha.20250106.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +215 -215
- 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
|
}
|
|
@@ -5144,7 +5144,7 @@ function createLroSpec(inputs) {
|
|
|
5144
5144
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
5145
5145
|
sendPollRequest: (path, options) => {
|
|
5146
5146
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
5147
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
5147
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
5148
5148
|
},
|
|
5149
5149
|
};
|
|
5150
5150
|
}
|
|
@@ -5181,7 +5181,7 @@ class AccountsImpl {
|
|
|
5181
5181
|
return this;
|
|
5182
5182
|
},
|
|
5183
5183
|
byPage: (settings) => {
|
|
5184
|
-
if (settings === null || settings ===
|
|
5184
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5185
5185
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5186
5186
|
}
|
|
5187
5187
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5191,7 +5191,7 @@ class AccountsImpl {
|
|
|
5191
5191
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5192
5192
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5193
5193
|
let result;
|
|
5194
|
-
let continuationToken = settings === null || settings ===
|
|
5194
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5195
5195
|
if (!continuationToken) {
|
|
5196
5196
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5197
5197
|
let page = result.value || [];
|
|
@@ -5242,7 +5242,7 @@ class AccountsImpl {
|
|
|
5242
5242
|
return this;
|
|
5243
5243
|
},
|
|
5244
5244
|
byPage: (settings) => {
|
|
5245
|
-
if (settings === null || settings ===
|
|
5245
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5246
5246
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5247
5247
|
}
|
|
5248
5248
|
return this.listPagingPage(options, settings);
|
|
@@ -5252,7 +5252,7 @@ class AccountsImpl {
|
|
|
5252
5252
|
listPagingPage(options, settings) {
|
|
5253
5253
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5254
5254
|
let result;
|
|
5255
|
-
let continuationToken = settings === null || settings ===
|
|
5255
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5256
5256
|
if (!continuationToken) {
|
|
5257
5257
|
result = yield tslib.__await(this._list(options));
|
|
5258
5258
|
let page = result.value || [];
|
|
@@ -5305,7 +5305,7 @@ class AccountsImpl {
|
|
|
5305
5305
|
return this;
|
|
5306
5306
|
},
|
|
5307
5307
|
byPage: (settings) => {
|
|
5308
|
-
if (settings === null || settings ===
|
|
5308
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5309
5309
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5310
5310
|
}
|
|
5311
5311
|
return this.listModelsPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -5315,7 +5315,7 @@ class AccountsImpl {
|
|
|
5315
5315
|
listModelsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
5316
5316
|
return tslib.__asyncGenerator(this, arguments, function* listModelsPagingPage_1() {
|
|
5317
5317
|
let result;
|
|
5318
|
-
let continuationToken = settings === null || settings ===
|
|
5318
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5319
5319
|
if (!continuationToken) {
|
|
5320
5320
|
result = yield tslib.__await(this._listModels(resourceGroupName, accountName, options));
|
|
5321
5321
|
let page = result.value || [];
|
|
@@ -5361,17 +5361,17 @@ class AccountsImpl {
|
|
|
5361
5361
|
* @param options The options parameters.
|
|
5362
5362
|
*/
|
|
5363
5363
|
beginCreate(resourceGroupName, accountName, account, options) {
|
|
5364
|
-
return tslib.__awaiter(this,
|
|
5365
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5364
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5365
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5366
5366
|
return this.client.sendOperationRequest(args, spec);
|
|
5367
5367
|
});
|
|
5368
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5368
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5369
5369
|
var _a;
|
|
5370
5370
|
let currentRawResponse = undefined;
|
|
5371
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5371
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5372
5372
|
const callback = (rawResponse, flatResponse) => {
|
|
5373
5373
|
currentRawResponse = rawResponse;
|
|
5374
|
-
providedCallback === null || providedCallback ===
|
|
5374
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5375
5375
|
};
|
|
5376
5376
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5377
5377
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5390,8 +5390,8 @@ class AccountsImpl {
|
|
|
5390
5390
|
spec: createOperationSpec,
|
|
5391
5391
|
});
|
|
5392
5392
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5393
|
-
restoreFrom: options === null || options ===
|
|
5394
|
-
intervalInMs: options === null || options ===
|
|
5393
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5394
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5395
5395
|
});
|
|
5396
5396
|
yield poller.poll();
|
|
5397
5397
|
return poller;
|
|
@@ -5406,7 +5406,7 @@ class AccountsImpl {
|
|
|
5406
5406
|
* @param options The options parameters.
|
|
5407
5407
|
*/
|
|
5408
5408
|
beginCreateAndWait(resourceGroupName, accountName, account, options) {
|
|
5409
|
-
return tslib.__awaiter(this,
|
|
5409
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5410
5410
|
const poller = yield this.beginCreate(resourceGroupName, accountName, account, options);
|
|
5411
5411
|
return poller.pollUntilDone();
|
|
5412
5412
|
});
|
|
@@ -5419,17 +5419,17 @@ class AccountsImpl {
|
|
|
5419
5419
|
* @param options The options parameters.
|
|
5420
5420
|
*/
|
|
5421
5421
|
beginUpdate(resourceGroupName, accountName, account, options) {
|
|
5422
|
-
return tslib.__awaiter(this,
|
|
5423
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5422
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5423
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5424
5424
|
return this.client.sendOperationRequest(args, spec);
|
|
5425
5425
|
});
|
|
5426
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5426
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5427
5427
|
var _a;
|
|
5428
5428
|
let currentRawResponse = undefined;
|
|
5429
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5429
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5430
5430
|
const callback = (rawResponse, flatResponse) => {
|
|
5431
5431
|
currentRawResponse = rawResponse;
|
|
5432
|
-
providedCallback === null || providedCallback ===
|
|
5432
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5433
5433
|
};
|
|
5434
5434
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5435
5435
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5448,8 +5448,8 @@ class AccountsImpl {
|
|
|
5448
5448
|
spec: updateOperationSpec$2,
|
|
5449
5449
|
});
|
|
5450
5450
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5451
|
-
restoreFrom: options === null || options ===
|
|
5452
|
-
intervalInMs: options === null || options ===
|
|
5451
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5452
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5453
5453
|
});
|
|
5454
5454
|
yield poller.poll();
|
|
5455
5455
|
return poller;
|
|
@@ -5463,7 +5463,7 @@ class AccountsImpl {
|
|
|
5463
5463
|
* @param options The options parameters.
|
|
5464
5464
|
*/
|
|
5465
5465
|
beginUpdateAndWait(resourceGroupName, accountName, account, options) {
|
|
5466
|
-
return tslib.__awaiter(this,
|
|
5466
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5467
5467
|
const poller = yield this.beginUpdate(resourceGroupName, accountName, account, options);
|
|
5468
5468
|
return poller.pollUntilDone();
|
|
5469
5469
|
});
|
|
@@ -5475,17 +5475,17 @@ class AccountsImpl {
|
|
|
5475
5475
|
* @param options The options parameters.
|
|
5476
5476
|
*/
|
|
5477
5477
|
beginDelete(resourceGroupName, accountName, options) {
|
|
5478
|
-
return tslib.__awaiter(this,
|
|
5479
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5478
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5479
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5480
5480
|
return this.client.sendOperationRequest(args, spec);
|
|
5481
5481
|
});
|
|
5482
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5482
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5483
5483
|
var _a;
|
|
5484
5484
|
let currentRawResponse = undefined;
|
|
5485
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5485
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5486
5486
|
const callback = (rawResponse, flatResponse) => {
|
|
5487
5487
|
currentRawResponse = rawResponse;
|
|
5488
|
-
providedCallback === null || providedCallback ===
|
|
5488
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5489
5489
|
};
|
|
5490
5490
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5491
5491
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5504,8 +5504,8 @@ class AccountsImpl {
|
|
|
5504
5504
|
spec: deleteOperationSpec$7,
|
|
5505
5505
|
});
|
|
5506
5506
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5507
|
-
restoreFrom: options === null || options ===
|
|
5508
|
-
intervalInMs: options === null || options ===
|
|
5507
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5508
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5509
5509
|
});
|
|
5510
5510
|
yield poller.poll();
|
|
5511
5511
|
return poller;
|
|
@@ -5518,7 +5518,7 @@ class AccountsImpl {
|
|
|
5518
5518
|
* @param options The options parameters.
|
|
5519
5519
|
*/
|
|
5520
5520
|
beginDeleteAndWait(resourceGroupName, accountName, options) {
|
|
5521
|
-
return tslib.__awaiter(this,
|
|
5521
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5522
5522
|
const poller = yield this.beginDelete(resourceGroupName, accountName, options);
|
|
5523
5523
|
return poller.pollUntilDone();
|
|
5524
5524
|
});
|
|
@@ -5968,7 +5968,7 @@ class DeletedAccountsImpl {
|
|
|
5968
5968
|
return this;
|
|
5969
5969
|
},
|
|
5970
5970
|
byPage: (settings) => {
|
|
5971
|
-
if (settings === null || settings ===
|
|
5971
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5972
5972
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5973
5973
|
}
|
|
5974
5974
|
return this.listPagingPage(options, settings);
|
|
@@ -5978,7 +5978,7 @@ class DeletedAccountsImpl {
|
|
|
5978
5978
|
listPagingPage(options, settings) {
|
|
5979
5979
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5980
5980
|
let result;
|
|
5981
|
-
let continuationToken = settings === null || settings ===
|
|
5981
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5982
5982
|
if (!continuationToken) {
|
|
5983
5983
|
result = yield tslib.__await(this._list(options));
|
|
5984
5984
|
let page = result.value || [];
|
|
@@ -6033,17 +6033,17 @@ class DeletedAccountsImpl {
|
|
|
6033
6033
|
* @param options The options parameters.
|
|
6034
6034
|
*/
|
|
6035
6035
|
beginPurge(location, resourceGroupName, accountName, options) {
|
|
6036
|
-
return tslib.__awaiter(this,
|
|
6037
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6036
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6037
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6038
6038
|
return this.client.sendOperationRequest(args, spec);
|
|
6039
6039
|
});
|
|
6040
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6040
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6041
6041
|
var _a;
|
|
6042
6042
|
let currentRawResponse = undefined;
|
|
6043
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6043
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6044
6044
|
const callback = (rawResponse, flatResponse) => {
|
|
6045
6045
|
currentRawResponse = rawResponse;
|
|
6046
|
-
providedCallback === null || providedCallback ===
|
|
6046
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6047
6047
|
};
|
|
6048
6048
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6049
6049
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6062,8 +6062,8 @@ class DeletedAccountsImpl {
|
|
|
6062
6062
|
spec: purgeOperationSpec,
|
|
6063
6063
|
});
|
|
6064
6064
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6065
|
-
restoreFrom: options === null || options ===
|
|
6066
|
-
intervalInMs: options === null || options ===
|
|
6065
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6066
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6067
6067
|
});
|
|
6068
6068
|
yield poller.poll();
|
|
6069
6069
|
return poller;
|
|
@@ -6077,7 +6077,7 @@ class DeletedAccountsImpl {
|
|
|
6077
6077
|
* @param options The options parameters.
|
|
6078
6078
|
*/
|
|
6079
6079
|
beginPurgeAndWait(location, resourceGroupName, accountName, options) {
|
|
6080
|
-
return tslib.__awaiter(this,
|
|
6080
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6081
6081
|
const poller = yield this.beginPurge(location, resourceGroupName, accountName, options);
|
|
6082
6082
|
return poller.pollUntilDone();
|
|
6083
6083
|
});
|
|
@@ -6212,7 +6212,7 @@ class ResourceSkusImpl {
|
|
|
6212
6212
|
return this;
|
|
6213
6213
|
},
|
|
6214
6214
|
byPage: (settings) => {
|
|
6215
|
-
if (settings === null || settings ===
|
|
6215
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6216
6216
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6217
6217
|
}
|
|
6218
6218
|
return this.listPagingPage(options, settings);
|
|
@@ -6222,7 +6222,7 @@ class ResourceSkusImpl {
|
|
|
6222
6222
|
listPagingPage(options, settings) {
|
|
6223
6223
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6224
6224
|
let result;
|
|
6225
|
-
let continuationToken = settings === null || settings ===
|
|
6225
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6226
6226
|
if (!continuationToken) {
|
|
6227
6227
|
result = yield tslib.__await(this._list(options));
|
|
6228
6228
|
let page = result.value || [];
|
|
@@ -6345,7 +6345,7 @@ class UsagesImpl {
|
|
|
6345
6345
|
return this;
|
|
6346
6346
|
},
|
|
6347
6347
|
byPage: (settings) => {
|
|
6348
|
-
if (settings === null || settings ===
|
|
6348
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6349
6349
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6350
6350
|
}
|
|
6351
6351
|
return this.listPagingPage(location, options, settings);
|
|
@@ -6355,7 +6355,7 @@ class UsagesImpl {
|
|
|
6355
6355
|
listPagingPage(location, options, settings) {
|
|
6356
6356
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6357
6357
|
let result;
|
|
6358
|
-
let continuationToken = settings === null || settings ===
|
|
6358
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6359
6359
|
if (!continuationToken) {
|
|
6360
6360
|
result = yield tslib.__await(this._list(location, options));
|
|
6361
6361
|
let page = result.value || [];
|
|
@@ -6484,7 +6484,7 @@ class OperationsImpl {
|
|
|
6484
6484
|
return this;
|
|
6485
6485
|
},
|
|
6486
6486
|
byPage: (settings) => {
|
|
6487
|
-
if (settings === null || settings ===
|
|
6487
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6488
6488
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6489
6489
|
}
|
|
6490
6490
|
return this.listPagingPage(options, settings);
|
|
@@ -6494,7 +6494,7 @@ class OperationsImpl {
|
|
|
6494
6494
|
listPagingPage(options, settings) {
|
|
6495
6495
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6496
6496
|
let result;
|
|
6497
|
-
let continuationToken = settings === null || settings ===
|
|
6497
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6498
6498
|
if (!continuationToken) {
|
|
6499
6499
|
result = yield tslib.__await(this._list(options));
|
|
6500
6500
|
let page = result.value || [];
|
|
@@ -6613,7 +6613,7 @@ class CommitmentTiersImpl {
|
|
|
6613
6613
|
return this;
|
|
6614
6614
|
},
|
|
6615
6615
|
byPage: (settings) => {
|
|
6616
|
-
if (settings === null || settings ===
|
|
6616
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6617
6617
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6618
6618
|
}
|
|
6619
6619
|
return this.listPagingPage(location, options, settings);
|
|
@@ -6623,7 +6623,7 @@ class CommitmentTiersImpl {
|
|
|
6623
6623
|
listPagingPage(location, options, settings) {
|
|
6624
6624
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6625
6625
|
let result;
|
|
6626
|
-
let continuationToken = settings === null || settings ===
|
|
6626
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6627
6627
|
if (!continuationToken) {
|
|
6628
6628
|
result = yield tslib.__await(this._list(location, options));
|
|
6629
6629
|
let page = result.value || [];
|
|
@@ -6753,7 +6753,7 @@ class ModelsImpl {
|
|
|
6753
6753
|
return this;
|
|
6754
6754
|
},
|
|
6755
6755
|
byPage: (settings) => {
|
|
6756
|
-
if (settings === null || settings ===
|
|
6756
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6757
6757
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6758
6758
|
}
|
|
6759
6759
|
return this.listPagingPage(location, options, settings);
|
|
@@ -6763,7 +6763,7 @@ class ModelsImpl {
|
|
|
6763
6763
|
listPagingPage(location, options, settings) {
|
|
6764
6764
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6765
6765
|
let result;
|
|
6766
|
-
let continuationToken = settings === null || settings ===
|
|
6766
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6767
6767
|
if (!continuationToken) {
|
|
6768
6768
|
result = yield tslib.__await(this._list(location, options));
|
|
6769
6769
|
let page = result.value || [];
|
|
@@ -6896,7 +6896,7 @@ class LocationBasedModelCapacitiesImpl {
|
|
|
6896
6896
|
return this;
|
|
6897
6897
|
},
|
|
6898
6898
|
byPage: (settings) => {
|
|
6899
|
-
if (settings === null || settings ===
|
|
6899
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6900
6900
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6901
6901
|
}
|
|
6902
6902
|
return this.listPagingPage(location, modelFormat, modelName, modelVersion, options, settings);
|
|
@@ -6906,7 +6906,7 @@ class LocationBasedModelCapacitiesImpl {
|
|
|
6906
6906
|
listPagingPage(location, modelFormat, modelName, modelVersion, options, settings) {
|
|
6907
6907
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6908
6908
|
let result;
|
|
6909
|
-
let continuationToken = settings === null || settings ===
|
|
6909
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6910
6910
|
if (!continuationToken) {
|
|
6911
6911
|
result = yield tslib.__await(this._list(location, modelFormat, modelName, modelVersion, options));
|
|
6912
6912
|
let page = result.value || [];
|
|
@@ -7046,7 +7046,7 @@ class ModelCapacitiesImpl {
|
|
|
7046
7046
|
return this;
|
|
7047
7047
|
},
|
|
7048
7048
|
byPage: (settings) => {
|
|
7049
|
-
if (settings === null || settings ===
|
|
7049
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7050
7050
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7051
7051
|
}
|
|
7052
7052
|
return this.listPagingPage(modelFormat, modelName, modelVersion, options, settings);
|
|
@@ -7056,7 +7056,7 @@ class ModelCapacitiesImpl {
|
|
|
7056
7056
|
listPagingPage(modelFormat, modelName, modelVersion, options, settings) {
|
|
7057
7057
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7058
7058
|
let result;
|
|
7059
|
-
let continuationToken = settings === null || settings ===
|
|
7059
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7060
7060
|
if (!continuationToken) {
|
|
7061
7061
|
result = yield tslib.__await(this._list(modelFormat, modelName, modelVersion, options));
|
|
7062
7062
|
let page = result.value || [];
|
|
@@ -7207,17 +7207,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7207
7207
|
* @param options The options parameters.
|
|
7208
7208
|
*/
|
|
7209
7209
|
beginCreateOrUpdate(resourceGroupName, accountName, privateEndpointConnectionName, properties, options) {
|
|
7210
|
-
return tslib.__awaiter(this,
|
|
7211
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7210
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7211
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7212
7212
|
return this.client.sendOperationRequest(args, spec);
|
|
7213
7213
|
});
|
|
7214
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7214
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7215
7215
|
var _a;
|
|
7216
7216
|
let currentRawResponse = undefined;
|
|
7217
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7217
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7218
7218
|
const callback = (rawResponse, flatResponse) => {
|
|
7219
7219
|
currentRawResponse = rawResponse;
|
|
7220
|
-
providedCallback === null || providedCallback ===
|
|
7220
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7221
7221
|
};
|
|
7222
7222
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7223
7223
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7242,8 +7242,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7242
7242
|
spec: createOrUpdateOperationSpec$7,
|
|
7243
7243
|
});
|
|
7244
7244
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7245
|
-
restoreFrom: options === null || options ===
|
|
7246
|
-
intervalInMs: options === null || options ===
|
|
7245
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7246
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7247
7247
|
});
|
|
7248
7248
|
yield poller.poll();
|
|
7249
7249
|
return poller;
|
|
@@ -7260,7 +7260,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7260
7260
|
* @param options The options parameters.
|
|
7261
7261
|
*/
|
|
7262
7262
|
beginCreateOrUpdateAndWait(resourceGroupName, accountName, privateEndpointConnectionName, properties, options) {
|
|
7263
|
-
return tslib.__awaiter(this,
|
|
7263
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7264
7264
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, accountName, privateEndpointConnectionName, properties, options);
|
|
7265
7265
|
return poller.pollUntilDone();
|
|
7266
7266
|
});
|
|
@@ -7274,17 +7274,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7274
7274
|
* @param options The options parameters.
|
|
7275
7275
|
*/
|
|
7276
7276
|
beginDelete(resourceGroupName, accountName, privateEndpointConnectionName, options) {
|
|
7277
|
-
return tslib.__awaiter(this,
|
|
7278
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7277
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7278
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7279
7279
|
return this.client.sendOperationRequest(args, spec);
|
|
7280
7280
|
});
|
|
7281
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7281
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7282
7282
|
var _a;
|
|
7283
7283
|
let currentRawResponse = undefined;
|
|
7284
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7284
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7285
7285
|
const callback = (rawResponse, flatResponse) => {
|
|
7286
7286
|
currentRawResponse = rawResponse;
|
|
7287
|
-
providedCallback === null || providedCallback ===
|
|
7287
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7288
7288
|
};
|
|
7289
7289
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7290
7290
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7308,8 +7308,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7308
7308
|
spec: deleteOperationSpec$6,
|
|
7309
7309
|
});
|
|
7310
7310
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7311
|
-
restoreFrom: options === null || options ===
|
|
7312
|
-
intervalInMs: options === null || options ===
|
|
7311
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7312
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7313
7313
|
});
|
|
7314
7314
|
yield poller.poll();
|
|
7315
7315
|
return poller;
|
|
@@ -7324,7 +7324,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7324
7324
|
* @param options The options parameters.
|
|
7325
7325
|
*/
|
|
7326
7326
|
beginDeleteAndWait(resourceGroupName, accountName, privateEndpointConnectionName, options) {
|
|
7327
|
-
return tslib.__awaiter(this,
|
|
7327
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7328
7328
|
const poller = yield this.beginDelete(resourceGroupName, accountName, privateEndpointConnectionName, options);
|
|
7329
7329
|
return poller.pollUntilDone();
|
|
7330
7330
|
});
|
|
@@ -7515,7 +7515,7 @@ class DeploymentsImpl {
|
|
|
7515
7515
|
return this;
|
|
7516
7516
|
},
|
|
7517
7517
|
byPage: (settings) => {
|
|
7518
|
-
if (settings === null || settings ===
|
|
7518
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7519
7519
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7520
7520
|
}
|
|
7521
7521
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -7525,7 +7525,7 @@ class DeploymentsImpl {
|
|
|
7525
7525
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
7526
7526
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7527
7527
|
let result;
|
|
7528
|
-
let continuationToken = settings === null || settings ===
|
|
7528
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7529
7529
|
if (!continuationToken) {
|
|
7530
7530
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
7531
7531
|
let page = result.value || [];
|
|
@@ -7579,7 +7579,7 @@ class DeploymentsImpl {
|
|
|
7579
7579
|
return this;
|
|
7580
7580
|
},
|
|
7581
7581
|
byPage: (settings) => {
|
|
7582
|
-
if (settings === null || settings ===
|
|
7582
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7583
7583
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7584
7584
|
}
|
|
7585
7585
|
return this.listSkusPagingPage(resourceGroupName, accountName, deploymentName, options, settings);
|
|
@@ -7589,7 +7589,7 @@ class DeploymentsImpl {
|
|
|
7589
7589
|
listSkusPagingPage(resourceGroupName, accountName, deploymentName, options, settings) {
|
|
7590
7590
|
return tslib.__asyncGenerator(this, arguments, function* listSkusPagingPage_1() {
|
|
7591
7591
|
let result;
|
|
7592
|
-
let continuationToken = settings === null || settings ===
|
|
7592
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7593
7593
|
if (!continuationToken) {
|
|
7594
7594
|
result = yield tslib.__await(this._listSkus(resourceGroupName, accountName, deploymentName, options));
|
|
7595
7595
|
let page = result.value || [];
|
|
@@ -7654,17 +7654,17 @@ class DeploymentsImpl {
|
|
|
7654
7654
|
* @param options The options parameters.
|
|
7655
7655
|
*/
|
|
7656
7656
|
beginCreateOrUpdate(resourceGroupName, accountName, deploymentName, deployment, options) {
|
|
7657
|
-
return tslib.__awaiter(this,
|
|
7658
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7657
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7658
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7659
7659
|
return this.client.sendOperationRequest(args, spec);
|
|
7660
7660
|
});
|
|
7661
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7661
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7662
7662
|
var _a;
|
|
7663
7663
|
let currentRawResponse = undefined;
|
|
7664
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7664
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7665
7665
|
const callback = (rawResponse, flatResponse) => {
|
|
7666
7666
|
currentRawResponse = rawResponse;
|
|
7667
|
-
providedCallback === null || providedCallback ===
|
|
7667
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7668
7668
|
};
|
|
7669
7669
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7670
7670
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7689,8 +7689,8 @@ class DeploymentsImpl {
|
|
|
7689
7689
|
spec: createOrUpdateOperationSpec$6,
|
|
7690
7690
|
});
|
|
7691
7691
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7692
|
-
restoreFrom: options === null || options ===
|
|
7693
|
-
intervalInMs: options === null || options ===
|
|
7692
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7693
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7694
7694
|
resourceLocationConfig: "azure-async-operation",
|
|
7695
7695
|
});
|
|
7696
7696
|
yield poller.poll();
|
|
@@ -7706,7 +7706,7 @@ class DeploymentsImpl {
|
|
|
7706
7706
|
* @param options The options parameters.
|
|
7707
7707
|
*/
|
|
7708
7708
|
beginCreateOrUpdateAndWait(resourceGroupName, accountName, deploymentName, deployment, options) {
|
|
7709
|
-
return tslib.__awaiter(this,
|
|
7709
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7710
7710
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, accountName, deploymentName, deployment, options);
|
|
7711
7711
|
return poller.pollUntilDone();
|
|
7712
7712
|
});
|
|
@@ -7720,17 +7720,17 @@ class DeploymentsImpl {
|
|
|
7720
7720
|
* @param options The options parameters.
|
|
7721
7721
|
*/
|
|
7722
7722
|
beginUpdate(resourceGroupName, accountName, deploymentName, deployment, options) {
|
|
7723
|
-
return tslib.__awaiter(this,
|
|
7724
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7723
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7724
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7725
7725
|
return this.client.sendOperationRequest(args, spec);
|
|
7726
7726
|
});
|
|
7727
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7727
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7728
7728
|
var _a;
|
|
7729
7729
|
let currentRawResponse = undefined;
|
|
7730
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7730
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7731
7731
|
const callback = (rawResponse, flatResponse) => {
|
|
7732
7732
|
currentRawResponse = rawResponse;
|
|
7733
|
-
providedCallback === null || providedCallback ===
|
|
7733
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7734
7734
|
};
|
|
7735
7735
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7736
7736
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7755,8 +7755,8 @@ class DeploymentsImpl {
|
|
|
7755
7755
|
spec: updateOperationSpec$1,
|
|
7756
7756
|
});
|
|
7757
7757
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7758
|
-
restoreFrom: options === null || options ===
|
|
7759
|
-
intervalInMs: options === null || options ===
|
|
7758
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7759
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7760
7760
|
resourceLocationConfig: "location",
|
|
7761
7761
|
});
|
|
7762
7762
|
yield poller.poll();
|
|
@@ -7772,7 +7772,7 @@ class DeploymentsImpl {
|
|
|
7772
7772
|
* @param options The options parameters.
|
|
7773
7773
|
*/
|
|
7774
7774
|
beginUpdateAndWait(resourceGroupName, accountName, deploymentName, deployment, options) {
|
|
7775
|
-
return tslib.__awaiter(this,
|
|
7775
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7776
7776
|
const poller = yield this.beginUpdate(resourceGroupName, accountName, deploymentName, deployment, options);
|
|
7777
7777
|
return poller.pollUntilDone();
|
|
7778
7778
|
});
|
|
@@ -7785,17 +7785,17 @@ class DeploymentsImpl {
|
|
|
7785
7785
|
* @param options The options parameters.
|
|
7786
7786
|
*/
|
|
7787
7787
|
beginDelete(resourceGroupName, accountName, deploymentName, options) {
|
|
7788
|
-
return tslib.__awaiter(this,
|
|
7789
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7788
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7789
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7790
7790
|
return this.client.sendOperationRequest(args, spec);
|
|
7791
7791
|
});
|
|
7792
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7792
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7793
7793
|
var _a;
|
|
7794
7794
|
let currentRawResponse = undefined;
|
|
7795
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7795
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7796
7796
|
const callback = (rawResponse, flatResponse) => {
|
|
7797
7797
|
currentRawResponse = rawResponse;
|
|
7798
|
-
providedCallback === null || providedCallback ===
|
|
7798
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7799
7799
|
};
|
|
7800
7800
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7801
7801
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7814,8 +7814,8 @@ class DeploymentsImpl {
|
|
|
7814
7814
|
spec: deleteOperationSpec$5,
|
|
7815
7815
|
});
|
|
7816
7816
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7817
|
-
restoreFrom: options === null || options ===
|
|
7818
|
-
intervalInMs: options === null || options ===
|
|
7817
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7818
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7819
7819
|
});
|
|
7820
7820
|
yield poller.poll();
|
|
7821
7821
|
return poller;
|
|
@@ -7829,7 +7829,7 @@ class DeploymentsImpl {
|
|
|
7829
7829
|
* @param options The options parameters.
|
|
7830
7830
|
*/
|
|
7831
7831
|
beginDeleteAndWait(resourceGroupName, accountName, deploymentName, options) {
|
|
7832
|
-
return tslib.__awaiter(this,
|
|
7832
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7833
7833
|
const poller = yield this.beginDelete(resourceGroupName, accountName, deploymentName, options);
|
|
7834
7834
|
return poller.pollUntilDone();
|
|
7835
7835
|
});
|
|
@@ -8099,7 +8099,7 @@ class CommitmentPlansImpl {
|
|
|
8099
8099
|
return this;
|
|
8100
8100
|
},
|
|
8101
8101
|
byPage: (settings) => {
|
|
8102
|
-
if (settings === null || settings ===
|
|
8102
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8103
8103
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8104
8104
|
}
|
|
8105
8105
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -8109,7 +8109,7 @@ class CommitmentPlansImpl {
|
|
|
8109
8109
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
8110
8110
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8111
8111
|
let result;
|
|
8112
|
-
let continuationToken = settings === null || settings ===
|
|
8112
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8113
8113
|
if (!continuationToken) {
|
|
8114
8114
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
8115
8115
|
let page = result.value || [];
|
|
@@ -8161,7 +8161,7 @@ class CommitmentPlansImpl {
|
|
|
8161
8161
|
return this;
|
|
8162
8162
|
},
|
|
8163
8163
|
byPage: (settings) => {
|
|
8164
|
-
if (settings === null || settings ===
|
|
8164
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8165
8165
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8166
8166
|
}
|
|
8167
8167
|
return this.listPlansByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -8171,7 +8171,7 @@ class CommitmentPlansImpl {
|
|
|
8171
8171
|
listPlansByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
8172
8172
|
return tslib.__asyncGenerator(this, arguments, function* listPlansByResourceGroupPagingPage_1() {
|
|
8173
8173
|
let result;
|
|
8174
|
-
let continuationToken = settings === null || settings ===
|
|
8174
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8175
8175
|
if (!continuationToken) {
|
|
8176
8176
|
result = yield tslib.__await(this._listPlansByResourceGroup(resourceGroupName, options));
|
|
8177
8177
|
let page = result.value || [];
|
|
@@ -8222,7 +8222,7 @@ class CommitmentPlansImpl {
|
|
|
8222
8222
|
return this;
|
|
8223
8223
|
},
|
|
8224
8224
|
byPage: (settings) => {
|
|
8225
|
-
if (settings === null || settings ===
|
|
8225
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8226
8226
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8227
8227
|
}
|
|
8228
8228
|
return this.listPlansBySubscriptionPagingPage(options, settings);
|
|
@@ -8232,7 +8232,7 @@ class CommitmentPlansImpl {
|
|
|
8232
8232
|
listPlansBySubscriptionPagingPage(options, settings) {
|
|
8233
8233
|
return tslib.__asyncGenerator(this, arguments, function* listPlansBySubscriptionPagingPage_1() {
|
|
8234
8234
|
let result;
|
|
8235
|
-
let continuationToken = settings === null || settings ===
|
|
8235
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8236
8236
|
if (!continuationToken) {
|
|
8237
8237
|
result = yield tslib.__await(this._listPlansBySubscription(options));
|
|
8238
8238
|
let page = result.value || [];
|
|
@@ -8286,7 +8286,7 @@ class CommitmentPlansImpl {
|
|
|
8286
8286
|
return this;
|
|
8287
8287
|
},
|
|
8288
8288
|
byPage: (settings) => {
|
|
8289
|
-
if (settings === null || settings ===
|
|
8289
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8290
8290
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8291
8291
|
}
|
|
8292
8292
|
return this.listAssociationsPagingPage(resourceGroupName, commitmentPlanName, options, settings);
|
|
@@ -8296,7 +8296,7 @@ class CommitmentPlansImpl {
|
|
|
8296
8296
|
listAssociationsPagingPage(resourceGroupName, commitmentPlanName, options, settings) {
|
|
8297
8297
|
return tslib.__asyncGenerator(this, arguments, function* listAssociationsPagingPage_1() {
|
|
8298
8298
|
let result;
|
|
8299
|
-
let continuationToken = settings === null || settings ===
|
|
8299
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8300
8300
|
if (!continuationToken) {
|
|
8301
8301
|
result = yield tslib.__await(this._listAssociations(resourceGroupName, commitmentPlanName, options));
|
|
8302
8302
|
let page = result.value || [];
|
|
@@ -8380,17 +8380,17 @@ class CommitmentPlansImpl {
|
|
|
8380
8380
|
* @param options The options parameters.
|
|
8381
8381
|
*/
|
|
8382
8382
|
beginDelete(resourceGroupName, accountName, commitmentPlanName, options) {
|
|
8383
|
-
return tslib.__awaiter(this,
|
|
8384
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8383
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8384
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8385
8385
|
return this.client.sendOperationRequest(args, spec);
|
|
8386
8386
|
});
|
|
8387
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8387
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8388
8388
|
var _a;
|
|
8389
8389
|
let currentRawResponse = undefined;
|
|
8390
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8390
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8391
8391
|
const callback = (rawResponse, flatResponse) => {
|
|
8392
8392
|
currentRawResponse = rawResponse;
|
|
8393
|
-
providedCallback === null || providedCallback ===
|
|
8393
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8394
8394
|
};
|
|
8395
8395
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8396
8396
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8409,8 +8409,8 @@ class CommitmentPlansImpl {
|
|
|
8409
8409
|
spec: deleteOperationSpec$4,
|
|
8410
8410
|
});
|
|
8411
8411
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8412
|
-
restoreFrom: options === null || options ===
|
|
8413
|
-
intervalInMs: options === null || options ===
|
|
8412
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8413
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8414
8414
|
});
|
|
8415
8415
|
yield poller.poll();
|
|
8416
8416
|
return poller;
|
|
@@ -8425,7 +8425,7 @@ class CommitmentPlansImpl {
|
|
|
8425
8425
|
* @param options The options parameters.
|
|
8426
8426
|
*/
|
|
8427
8427
|
beginDeleteAndWait(resourceGroupName, accountName, commitmentPlanName, options) {
|
|
8428
|
-
return tslib.__awaiter(this,
|
|
8428
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8429
8429
|
const poller = yield this.beginDelete(resourceGroupName, accountName, commitmentPlanName, options);
|
|
8430
8430
|
return poller.pollUntilDone();
|
|
8431
8431
|
});
|
|
@@ -8439,17 +8439,17 @@ class CommitmentPlansImpl {
|
|
|
8439
8439
|
* @param options The options parameters.
|
|
8440
8440
|
*/
|
|
8441
8441
|
beginCreateOrUpdatePlan(resourceGroupName, commitmentPlanName, commitmentPlan, options) {
|
|
8442
|
-
return tslib.__awaiter(this,
|
|
8443
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8442
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8443
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8444
8444
|
return this.client.sendOperationRequest(args, spec);
|
|
8445
8445
|
});
|
|
8446
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8446
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8447
8447
|
var _a;
|
|
8448
8448
|
let currentRawResponse = undefined;
|
|
8449
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8449
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8450
8450
|
const callback = (rawResponse, flatResponse) => {
|
|
8451
8451
|
currentRawResponse = rawResponse;
|
|
8452
|
-
providedCallback === null || providedCallback ===
|
|
8452
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8453
8453
|
};
|
|
8454
8454
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8455
8455
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8468,8 +8468,8 @@ class CommitmentPlansImpl {
|
|
|
8468
8468
|
spec: createOrUpdatePlanOperationSpec,
|
|
8469
8469
|
});
|
|
8470
8470
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8471
|
-
restoreFrom: options === null || options ===
|
|
8472
|
-
intervalInMs: options === null || options ===
|
|
8471
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8472
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8473
8473
|
resourceLocationConfig: "azure-async-operation",
|
|
8474
8474
|
});
|
|
8475
8475
|
yield poller.poll();
|
|
@@ -8485,7 +8485,7 @@ class CommitmentPlansImpl {
|
|
|
8485
8485
|
* @param options The options parameters.
|
|
8486
8486
|
*/
|
|
8487
8487
|
beginCreateOrUpdatePlanAndWait(resourceGroupName, commitmentPlanName, commitmentPlan, options) {
|
|
8488
|
-
return tslib.__awaiter(this,
|
|
8488
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8489
8489
|
const poller = yield this.beginCreateOrUpdatePlan(resourceGroupName, commitmentPlanName, commitmentPlan, options);
|
|
8490
8490
|
return poller.pollUntilDone();
|
|
8491
8491
|
});
|
|
@@ -8499,17 +8499,17 @@ class CommitmentPlansImpl {
|
|
|
8499
8499
|
* @param options The options parameters.
|
|
8500
8500
|
*/
|
|
8501
8501
|
beginUpdatePlan(resourceGroupName, commitmentPlanName, commitmentPlan, options) {
|
|
8502
|
-
return tslib.__awaiter(this,
|
|
8503
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8502
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8503
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8504
8504
|
return this.client.sendOperationRequest(args, spec);
|
|
8505
8505
|
});
|
|
8506
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8506
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8507
8507
|
var _a;
|
|
8508
8508
|
let currentRawResponse = undefined;
|
|
8509
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8509
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8510
8510
|
const callback = (rawResponse, flatResponse) => {
|
|
8511
8511
|
currentRawResponse = rawResponse;
|
|
8512
|
-
providedCallback === null || providedCallback ===
|
|
8512
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8513
8513
|
};
|
|
8514
8514
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8515
8515
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8528,8 +8528,8 @@ class CommitmentPlansImpl {
|
|
|
8528
8528
|
spec: updatePlanOperationSpec,
|
|
8529
8529
|
});
|
|
8530
8530
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8531
|
-
restoreFrom: options === null || options ===
|
|
8532
|
-
intervalInMs: options === null || options ===
|
|
8531
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8532
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8533
8533
|
resourceLocationConfig: "location",
|
|
8534
8534
|
});
|
|
8535
8535
|
yield poller.poll();
|
|
@@ -8545,7 +8545,7 @@ class CommitmentPlansImpl {
|
|
|
8545
8545
|
* @param options The options parameters.
|
|
8546
8546
|
*/
|
|
8547
8547
|
beginUpdatePlanAndWait(resourceGroupName, commitmentPlanName, commitmentPlan, options) {
|
|
8548
|
-
return tslib.__awaiter(this,
|
|
8548
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8549
8549
|
const poller = yield this.beginUpdatePlan(resourceGroupName, commitmentPlanName, commitmentPlan, options);
|
|
8550
8550
|
return poller.pollUntilDone();
|
|
8551
8551
|
});
|
|
@@ -8558,17 +8558,17 @@ class CommitmentPlansImpl {
|
|
|
8558
8558
|
* @param options The options parameters.
|
|
8559
8559
|
*/
|
|
8560
8560
|
beginDeletePlan(resourceGroupName, commitmentPlanName, options) {
|
|
8561
|
-
return tslib.__awaiter(this,
|
|
8562
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8561
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8562
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8563
8563
|
return this.client.sendOperationRequest(args, spec);
|
|
8564
8564
|
});
|
|
8565
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8565
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8566
8566
|
var _a;
|
|
8567
8567
|
let currentRawResponse = undefined;
|
|
8568
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8568
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8569
8569
|
const callback = (rawResponse, flatResponse) => {
|
|
8570
8570
|
currentRawResponse = rawResponse;
|
|
8571
|
-
providedCallback === null || providedCallback ===
|
|
8571
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8572
8572
|
};
|
|
8573
8573
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8574
8574
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8587,8 +8587,8 @@ class CommitmentPlansImpl {
|
|
|
8587
8587
|
spec: deletePlanOperationSpec,
|
|
8588
8588
|
});
|
|
8589
8589
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8590
|
-
restoreFrom: options === null || options ===
|
|
8591
|
-
intervalInMs: options === null || options ===
|
|
8590
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8591
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8592
8592
|
resourceLocationConfig: "location",
|
|
8593
8593
|
});
|
|
8594
8594
|
yield poller.poll();
|
|
@@ -8603,7 +8603,7 @@ class CommitmentPlansImpl {
|
|
|
8603
8603
|
* @param options The options parameters.
|
|
8604
8604
|
*/
|
|
8605
8605
|
beginDeletePlanAndWait(resourceGroupName, commitmentPlanName, options) {
|
|
8606
|
-
return tslib.__awaiter(this,
|
|
8606
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8607
8607
|
const poller = yield this.beginDeletePlan(resourceGroupName, commitmentPlanName, options);
|
|
8608
8608
|
return poller.pollUntilDone();
|
|
8609
8609
|
});
|
|
@@ -8671,17 +8671,17 @@ class CommitmentPlansImpl {
|
|
|
8671
8671
|
* @param options The options parameters.
|
|
8672
8672
|
*/
|
|
8673
8673
|
beginCreateOrUpdateAssociation(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, association, options) {
|
|
8674
|
-
return tslib.__awaiter(this,
|
|
8675
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8674
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8675
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8676
8676
|
return this.client.sendOperationRequest(args, spec);
|
|
8677
8677
|
});
|
|
8678
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8678
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8679
8679
|
var _a;
|
|
8680
8680
|
let currentRawResponse = undefined;
|
|
8681
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8681
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8682
8682
|
const callback = (rawResponse, flatResponse) => {
|
|
8683
8683
|
currentRawResponse = rawResponse;
|
|
8684
|
-
providedCallback === null || providedCallback ===
|
|
8684
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8685
8685
|
};
|
|
8686
8686
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8687
8687
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8706,8 +8706,8 @@ class CommitmentPlansImpl {
|
|
|
8706
8706
|
spec: createOrUpdateAssociationOperationSpec,
|
|
8707
8707
|
});
|
|
8708
8708
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8709
|
-
restoreFrom: options === null || options ===
|
|
8710
|
-
intervalInMs: options === null || options ===
|
|
8709
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8710
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8711
8711
|
resourceLocationConfig: "azure-async-operation",
|
|
8712
8712
|
});
|
|
8713
8713
|
yield poller.poll();
|
|
@@ -8725,7 +8725,7 @@ class CommitmentPlansImpl {
|
|
|
8725
8725
|
* @param options The options parameters.
|
|
8726
8726
|
*/
|
|
8727
8727
|
beginCreateOrUpdateAssociationAndWait(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, association, options) {
|
|
8728
|
-
return tslib.__awaiter(this,
|
|
8728
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8729
8729
|
const poller = yield this.beginCreateOrUpdateAssociation(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, association, options);
|
|
8730
8730
|
return poller.pollUntilDone();
|
|
8731
8731
|
});
|
|
@@ -8740,17 +8740,17 @@ class CommitmentPlansImpl {
|
|
|
8740
8740
|
* @param options The options parameters.
|
|
8741
8741
|
*/
|
|
8742
8742
|
beginDeleteAssociation(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, options) {
|
|
8743
|
-
return tslib.__awaiter(this,
|
|
8744
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8743
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8744
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8745
8745
|
return this.client.sendOperationRequest(args, spec);
|
|
8746
8746
|
});
|
|
8747
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8747
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8748
8748
|
var _a;
|
|
8749
8749
|
let currentRawResponse = undefined;
|
|
8750
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8750
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8751
8751
|
const callback = (rawResponse, flatResponse) => {
|
|
8752
8752
|
currentRawResponse = rawResponse;
|
|
8753
|
-
providedCallback === null || providedCallback ===
|
|
8753
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8754
8754
|
};
|
|
8755
8755
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8756
8756
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8774,8 +8774,8 @@ class CommitmentPlansImpl {
|
|
|
8774
8774
|
spec: deleteAssociationOperationSpec,
|
|
8775
8775
|
});
|
|
8776
8776
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8777
|
-
restoreFrom: options === null || options ===
|
|
8778
|
-
intervalInMs: options === null || options ===
|
|
8777
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8778
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8779
8779
|
resourceLocationConfig: "location",
|
|
8780
8780
|
});
|
|
8781
8781
|
yield poller.poll();
|
|
@@ -8792,7 +8792,7 @@ class CommitmentPlansImpl {
|
|
|
8792
8792
|
* @param options The options parameters.
|
|
8793
8793
|
*/
|
|
8794
8794
|
beginDeleteAssociationAndWait(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, options) {
|
|
8795
|
-
return tslib.__awaiter(this,
|
|
8795
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8796
8796
|
const poller = yield this.beginDeleteAssociation(resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, options);
|
|
8797
8797
|
return poller.pollUntilDone();
|
|
8798
8798
|
});
|
|
@@ -9290,7 +9290,7 @@ class EncryptionScopesImpl {
|
|
|
9290
9290
|
return this;
|
|
9291
9291
|
},
|
|
9292
9292
|
byPage: (settings) => {
|
|
9293
|
-
if (settings === null || settings ===
|
|
9293
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9294
9294
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9295
9295
|
}
|
|
9296
9296
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -9300,7 +9300,7 @@ class EncryptionScopesImpl {
|
|
|
9300
9300
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
9301
9301
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9302
9302
|
let result;
|
|
9303
|
-
let continuationToken = settings === null || settings ===
|
|
9303
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9304
9304
|
if (!continuationToken) {
|
|
9305
9305
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
9306
9306
|
let page = result.value || [];
|
|
@@ -9384,17 +9384,17 @@ class EncryptionScopesImpl {
|
|
|
9384
9384
|
* @param options The options parameters.
|
|
9385
9385
|
*/
|
|
9386
9386
|
beginDelete(resourceGroupName, accountName, encryptionScopeName, options) {
|
|
9387
|
-
return tslib.__awaiter(this,
|
|
9388
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9387
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9388
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9389
9389
|
return this.client.sendOperationRequest(args, spec);
|
|
9390
9390
|
});
|
|
9391
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9391
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9392
9392
|
var _a;
|
|
9393
9393
|
let currentRawResponse = undefined;
|
|
9394
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9394
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9395
9395
|
const callback = (rawResponse, flatResponse) => {
|
|
9396
9396
|
currentRawResponse = rawResponse;
|
|
9397
|
-
providedCallback === null || providedCallback ===
|
|
9397
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9398
9398
|
};
|
|
9399
9399
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9400
9400
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9413,8 +9413,8 @@ class EncryptionScopesImpl {
|
|
|
9413
9413
|
spec: deleteOperationSpec$3,
|
|
9414
9414
|
});
|
|
9415
9415
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9416
|
-
restoreFrom: options === null || options ===
|
|
9417
|
-
intervalInMs: options === null || options ===
|
|
9416
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9417
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9418
9418
|
});
|
|
9419
9419
|
yield poller.poll();
|
|
9420
9420
|
return poller;
|
|
@@ -9429,7 +9429,7 @@ class EncryptionScopesImpl {
|
|
|
9429
9429
|
* @param options The options parameters.
|
|
9430
9430
|
*/
|
|
9431
9431
|
beginDeleteAndWait(resourceGroupName, accountName, encryptionScopeName, options) {
|
|
9432
|
-
return tslib.__awaiter(this,
|
|
9432
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9433
9433
|
const poller = yield this.beginDelete(resourceGroupName, accountName, encryptionScopeName, options);
|
|
9434
9434
|
return poller.pollUntilDone();
|
|
9435
9435
|
});
|
|
@@ -9603,7 +9603,7 @@ class RaiPoliciesImpl {
|
|
|
9603
9603
|
return this;
|
|
9604
9604
|
},
|
|
9605
9605
|
byPage: (settings) => {
|
|
9606
|
-
if (settings === null || settings ===
|
|
9606
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9607
9607
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9608
9608
|
}
|
|
9609
9609
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -9613,7 +9613,7 @@ class RaiPoliciesImpl {
|
|
|
9613
9613
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
9614
9614
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9615
9615
|
let result;
|
|
9616
|
-
let continuationToken = settings === null || settings ===
|
|
9616
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9617
9617
|
if (!continuationToken) {
|
|
9618
9618
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
9619
9619
|
let page = result.value || [];
|
|
@@ -9688,17 +9688,17 @@ class RaiPoliciesImpl {
|
|
|
9688
9688
|
* @param options The options parameters.
|
|
9689
9689
|
*/
|
|
9690
9690
|
beginDelete(resourceGroupName, accountName, raiPolicyName, options) {
|
|
9691
|
-
return tslib.__awaiter(this,
|
|
9692
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9691
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9692
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9693
9693
|
return this.client.sendOperationRequest(args, spec);
|
|
9694
9694
|
});
|
|
9695
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9695
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9696
9696
|
var _a;
|
|
9697
9697
|
let currentRawResponse = undefined;
|
|
9698
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9698
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9699
9699
|
const callback = (rawResponse, flatResponse) => {
|
|
9700
9700
|
currentRawResponse = rawResponse;
|
|
9701
|
-
providedCallback === null || providedCallback ===
|
|
9701
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9702
9702
|
};
|
|
9703
9703
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9704
9704
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9717,8 +9717,8 @@ class RaiPoliciesImpl {
|
|
|
9717
9717
|
spec: deleteOperationSpec$2,
|
|
9718
9718
|
});
|
|
9719
9719
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9720
|
-
restoreFrom: options === null || options ===
|
|
9721
|
-
intervalInMs: options === null || options ===
|
|
9720
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9721
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9722
9722
|
resourceLocationConfig: "location",
|
|
9723
9723
|
});
|
|
9724
9724
|
yield poller.poll();
|
|
@@ -9733,7 +9733,7 @@ class RaiPoliciesImpl {
|
|
|
9733
9733
|
* @param options The options parameters.
|
|
9734
9734
|
*/
|
|
9735
9735
|
beginDeleteAndWait(resourceGroupName, accountName, raiPolicyName, options) {
|
|
9736
|
-
return tslib.__awaiter(this,
|
|
9736
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9737
9737
|
const poller = yield this.beginDelete(resourceGroupName, accountName, raiPolicyName, options);
|
|
9738
9738
|
return poller.pollUntilDone();
|
|
9739
9739
|
});
|
|
@@ -9907,7 +9907,7 @@ class RaiBlocklistsImpl {
|
|
|
9907
9907
|
return this;
|
|
9908
9908
|
},
|
|
9909
9909
|
byPage: (settings) => {
|
|
9910
|
-
if (settings === null || settings ===
|
|
9910
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9911
9911
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9912
9912
|
}
|
|
9913
9913
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -9917,7 +9917,7 @@ class RaiBlocklistsImpl {
|
|
|
9917
9917
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
9918
9918
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9919
9919
|
let result;
|
|
9920
|
-
let continuationToken = settings === null || settings ===
|
|
9920
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9921
9921
|
if (!continuationToken) {
|
|
9922
9922
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
9923
9923
|
let page = result.value || [];
|
|
@@ -9998,17 +9998,17 @@ class RaiBlocklistsImpl {
|
|
|
9998
9998
|
* @param options The options parameters.
|
|
9999
9999
|
*/
|
|
10000
10000
|
beginDelete(resourceGroupName, accountName, raiBlocklistName, options) {
|
|
10001
|
-
return tslib.__awaiter(this,
|
|
10002
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10001
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10002
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10003
10003
|
return this.client.sendOperationRequest(args, spec);
|
|
10004
10004
|
});
|
|
10005
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10005
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10006
10006
|
var _a;
|
|
10007
10007
|
let currentRawResponse = undefined;
|
|
10008
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10008
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10009
10009
|
const callback = (rawResponse, flatResponse) => {
|
|
10010
10010
|
currentRawResponse = rawResponse;
|
|
10011
|
-
providedCallback === null || providedCallback ===
|
|
10011
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10012
10012
|
};
|
|
10013
10013
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10014
10014
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10027,8 +10027,8 @@ class RaiBlocklistsImpl {
|
|
|
10027
10027
|
spec: deleteOperationSpec$1,
|
|
10028
10028
|
});
|
|
10029
10029
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10030
|
-
restoreFrom: options === null || options ===
|
|
10031
|
-
intervalInMs: options === null || options ===
|
|
10030
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10031
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10032
10032
|
resourceLocationConfig: "location",
|
|
10033
10033
|
});
|
|
10034
10034
|
yield poller.poll();
|
|
@@ -10043,7 +10043,7 @@ class RaiBlocklistsImpl {
|
|
|
10043
10043
|
* @param options The options parameters.
|
|
10044
10044
|
*/
|
|
10045
10045
|
beginDeleteAndWait(resourceGroupName, accountName, raiBlocklistName, options) {
|
|
10046
|
-
return tslib.__awaiter(this,
|
|
10046
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10047
10047
|
const poller = yield this.beginDelete(resourceGroupName, accountName, raiBlocklistName, options);
|
|
10048
10048
|
return poller.pollUntilDone();
|
|
10049
10049
|
});
|
|
@@ -10218,7 +10218,7 @@ class RaiBlocklistItemsImpl {
|
|
|
10218
10218
|
return this;
|
|
10219
10219
|
},
|
|
10220
10220
|
byPage: (settings) => {
|
|
10221
|
-
if (settings === null || settings ===
|
|
10221
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10222
10222
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10223
10223
|
}
|
|
10224
10224
|
return this.listPagingPage(resourceGroupName, accountName, raiBlocklistName, options, settings);
|
|
@@ -10228,7 +10228,7 @@ class RaiBlocklistItemsImpl {
|
|
|
10228
10228
|
listPagingPage(resourceGroupName, accountName, raiBlocklistName, options, settings) {
|
|
10229
10229
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
10230
10230
|
let result;
|
|
10231
|
-
let continuationToken = settings === null || settings ===
|
|
10231
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10232
10232
|
if (!continuationToken) {
|
|
10233
10233
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, raiBlocklistName, options));
|
|
10234
10234
|
let page = result.value || [];
|
|
@@ -10320,17 +10320,17 @@ class RaiBlocklistItemsImpl {
|
|
|
10320
10320
|
* @param options The options parameters.
|
|
10321
10321
|
*/
|
|
10322
10322
|
beginDelete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, options) {
|
|
10323
|
-
return tslib.__awaiter(this,
|
|
10324
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10323
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10324
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10325
10325
|
return this.client.sendOperationRequest(args, spec);
|
|
10326
10326
|
});
|
|
10327
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10327
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10328
10328
|
var _a;
|
|
10329
10329
|
let currentRawResponse = undefined;
|
|
10330
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10330
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10331
10331
|
const callback = (rawResponse, flatResponse) => {
|
|
10332
10332
|
currentRawResponse = rawResponse;
|
|
10333
|
-
providedCallback === null || providedCallback ===
|
|
10333
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10334
10334
|
};
|
|
10335
10335
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10336
10336
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10355,8 +10355,8 @@ class RaiBlocklistItemsImpl {
|
|
|
10355
10355
|
spec: deleteOperationSpec,
|
|
10356
10356
|
});
|
|
10357
10357
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10358
|
-
restoreFrom: options === null || options ===
|
|
10359
|
-
intervalInMs: options === null || options ===
|
|
10358
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10359
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10360
10360
|
resourceLocationConfig: "location",
|
|
10361
10361
|
});
|
|
10362
10362
|
yield poller.poll();
|
|
@@ -10372,7 +10372,7 @@ class RaiBlocklistItemsImpl {
|
|
|
10372
10372
|
* @param options The options parameters.
|
|
10373
10373
|
*/
|
|
10374
10374
|
beginDeleteAndWait(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, options) {
|
|
10375
|
-
return tslib.__awaiter(this,
|
|
10375
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10376
10376
|
const poller = yield this.beginDelete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, options);
|
|
10377
10377
|
return poller.pollUntilDone();
|
|
10378
10378
|
});
|
|
@@ -10631,7 +10631,7 @@ class RaiContentFiltersImpl {
|
|
|
10631
10631
|
return this;
|
|
10632
10632
|
},
|
|
10633
10633
|
byPage: (settings) => {
|
|
10634
|
-
if (settings === null || settings ===
|
|
10634
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10635
10635
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10636
10636
|
}
|
|
10637
10637
|
return this.listPagingPage(location, options, settings);
|
|
@@ -10641,7 +10641,7 @@ class RaiContentFiltersImpl {
|
|
|
10641
10641
|
listPagingPage(location, options, settings) {
|
|
10642
10642
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
10643
10643
|
let result;
|
|
10644
|
-
let continuationToken = settings === null || settings ===
|
|
10644
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10645
10645
|
if (!continuationToken) {
|
|
10646
10646
|
result = yield tslib.__await(this._list(location, options));
|
|
10647
10647
|
let page = result.value || [];
|
|
@@ -10802,7 +10802,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
|
|
|
10802
10802
|
return this;
|
|
10803
10803
|
},
|
|
10804
10804
|
byPage: (settings) => {
|
|
10805
|
-
if (settings === null || settings ===
|
|
10805
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10806
10806
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10807
10807
|
}
|
|
10808
10808
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -10812,7 +10812,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
|
|
|
10812
10812
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
10813
10813
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
10814
10814
|
let result;
|
|
10815
|
-
let continuationToken = settings === null || settings ===
|
|
10815
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10816
10816
|
if (!continuationToken) {
|
|
10817
10817
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
10818
10818
|
let page = result.value || [];
|
|
@@ -10876,17 +10876,17 @@ class NetworkSecurityPerimeterConfigurationsImpl {
|
|
|
10876
10876
|
* @param options The options parameters.
|
|
10877
10877
|
*/
|
|
10878
10878
|
beginReconcile(resourceGroupName, accountName, nspConfigurationName, options) {
|
|
10879
|
-
return tslib.__awaiter(this,
|
|
10880
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10879
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10880
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10881
10881
|
return this.client.sendOperationRequest(args, spec);
|
|
10882
10882
|
});
|
|
10883
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10883
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10884
10884
|
var _a;
|
|
10885
10885
|
let currentRawResponse = undefined;
|
|
10886
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10886
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10887
10887
|
const callback = (rawResponse, flatResponse) => {
|
|
10888
10888
|
currentRawResponse = rawResponse;
|
|
10889
|
-
providedCallback === null || providedCallback ===
|
|
10889
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10890
10890
|
};
|
|
10891
10891
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10892
10892
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10905,8 +10905,8 @@ class NetworkSecurityPerimeterConfigurationsImpl {
|
|
|
10905
10905
|
spec: reconcileOperationSpec,
|
|
10906
10906
|
});
|
|
10907
10907
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10908
|
-
restoreFrom: options === null || options ===
|
|
10909
|
-
intervalInMs: options === null || options ===
|
|
10908
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10909
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10910
10910
|
resourceLocationConfig: "location",
|
|
10911
10911
|
});
|
|
10912
10912
|
yield poller.poll();
|
|
@@ -10921,7 +10921,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
|
|
|
10921
10921
|
* @param options The options parameters.
|
|
10922
10922
|
*/
|
|
10923
10923
|
beginReconcileAndWait(resourceGroupName, accountName, nspConfigurationName, options) {
|
|
10924
|
-
return tslib.__awaiter(this,
|
|
10924
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10925
10925
|
const poller = yield this.beginReconcile(resourceGroupName, accountName, nspConfigurationName, options);
|
|
10926
10926
|
return poller.pollUntilDone();
|
|
10927
10927
|
});
|
|
@@ -11068,7 +11068,7 @@ class DefenderForAISettingsImpl {
|
|
|
11068
11068
|
return this;
|
|
11069
11069
|
},
|
|
11070
11070
|
byPage: (settings) => {
|
|
11071
|
-
if (settings === null || settings ===
|
|
11071
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11072
11072
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11073
11073
|
}
|
|
11074
11074
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -11078,7 +11078,7 @@ class DefenderForAISettingsImpl {
|
|
|
11078
11078
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
11079
11079
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
11080
11080
|
let result;
|
|
11081
|
-
let continuationToken = settings === null || settings ===
|
|
11081
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11082
11082
|
if (!continuationToken) {
|
|
11083
11083
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
11084
11084
|
let page = result.value || [];
|
|
@@ -11333,10 +11333,10 @@ class CognitiveServicesManagementClient extends coreClient__namespace.ServiceCli
|
|
|
11333
11333
|
: `${packageDetails}`;
|
|
11334
11334
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
11335
11335
|
userAgentPrefix,
|
|
11336
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
11336
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
11337
11337
|
super(optionsWithDefaults);
|
|
11338
11338
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
11339
|
-
if ((options === null || options ===
|
|
11339
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
11340
11340
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
11341
11341
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
11342
11342
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -11350,7 +11350,7 @@ class CognitiveServicesManagementClient extends coreClient__namespace.ServiceCli
|
|
|
11350
11350
|
});
|
|
11351
11351
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
11352
11352
|
credential: credentials,
|
|
11353
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
11353
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
11354
11354
|
challengeCallbacks: {
|
|
11355
11355
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
11356
11356
|
},
|
|
@@ -11392,7 +11392,7 @@ class CognitiveServicesManagementClient extends coreClient__namespace.ServiceCli
|
|
|
11392
11392
|
const apiVersionPolicy = {
|
|
11393
11393
|
name: "CustomApiVersionPolicy",
|
|
11394
11394
|
sendRequest(request, next) {
|
|
11395
|
-
return tslib.__awaiter(this,
|
|
11395
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11396
11396
|
const param = request.url.split("?");
|
|
11397
11397
|
if (param.length > 1) {
|
|
11398
11398
|
const newParams = param[1].split("&").map((item) => {
|