@azure/arm-storagecache 8.0.1-alpha.20250102.1 → 8.0.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 +243 -243
- 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
|
}
|
|
@@ -4158,7 +4158,7 @@ function createLroSpec(inputs) {
|
|
|
4158
4158
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
4159
4159
|
sendPollRequest: (path, options) => {
|
|
4160
4160
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
4161
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
4161
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
4162
4162
|
},
|
|
4163
4163
|
};
|
|
4164
4164
|
}
|
|
@@ -4194,7 +4194,7 @@ class AmlFilesystemsImpl {
|
|
|
4194
4194
|
return this;
|
|
4195
4195
|
},
|
|
4196
4196
|
byPage: (settings) => {
|
|
4197
|
-
if (settings === null || settings ===
|
|
4197
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4198
4198
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4199
4199
|
}
|
|
4200
4200
|
return this.listPagingPage(options, settings);
|
|
@@ -4204,7 +4204,7 @@ class AmlFilesystemsImpl {
|
|
|
4204
4204
|
listPagingPage(options, settings) {
|
|
4205
4205
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4206
4206
|
let result;
|
|
4207
|
-
let continuationToken = settings === null || settings ===
|
|
4207
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4208
4208
|
if (!continuationToken) {
|
|
4209
4209
|
result = yield tslib.__await(this._list(options));
|
|
4210
4210
|
let page = result.value || [];
|
|
@@ -4256,7 +4256,7 @@ class AmlFilesystemsImpl {
|
|
|
4256
4256
|
return this;
|
|
4257
4257
|
},
|
|
4258
4258
|
byPage: (settings) => {
|
|
4259
|
-
if (settings === null || settings ===
|
|
4259
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4260
4260
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4261
4261
|
}
|
|
4262
4262
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -4266,7 +4266,7 @@ class AmlFilesystemsImpl {
|
|
|
4266
4266
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4267
4267
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4268
4268
|
let result;
|
|
4269
|
-
let continuationToken = settings === null || settings ===
|
|
4269
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4270
4270
|
if (!continuationToken) {
|
|
4271
4271
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
4272
4272
|
let page = result.value || [];
|
|
@@ -4326,17 +4326,17 @@ class AmlFilesystemsImpl {
|
|
|
4326
4326
|
* @param options The options parameters.
|
|
4327
4327
|
*/
|
|
4328
4328
|
beginDelete(resourceGroupName, amlFilesystemName, options) {
|
|
4329
|
-
return tslib.__awaiter(this,
|
|
4330
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4329
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4330
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4331
4331
|
return this.client.sendOperationRequest(args, spec);
|
|
4332
4332
|
});
|
|
4333
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4333
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4334
4334
|
var _a;
|
|
4335
4335
|
let currentRawResponse = undefined;
|
|
4336
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4336
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4337
4337
|
const callback = (rawResponse, flatResponse) => {
|
|
4338
4338
|
currentRawResponse = rawResponse;
|
|
4339
|
-
providedCallback === null || providedCallback ===
|
|
4339
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4340
4340
|
};
|
|
4341
4341
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4342
4342
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4355,8 +4355,8 @@ class AmlFilesystemsImpl {
|
|
|
4355
4355
|
spec: deleteOperationSpec$3,
|
|
4356
4356
|
});
|
|
4357
4357
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4358
|
-
restoreFrom: options === null || options ===
|
|
4359
|
-
intervalInMs: options === null || options ===
|
|
4358
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4359
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4360
4360
|
resourceLocationConfig: "location",
|
|
4361
4361
|
});
|
|
4362
4362
|
yield poller.poll();
|
|
@@ -4371,7 +4371,7 @@ class AmlFilesystemsImpl {
|
|
|
4371
4371
|
* @param options The options parameters.
|
|
4372
4372
|
*/
|
|
4373
4373
|
beginDeleteAndWait(resourceGroupName, amlFilesystemName, options) {
|
|
4374
|
-
return tslib.__awaiter(this,
|
|
4374
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4375
4375
|
const poller = yield this.beginDelete(resourceGroupName, amlFilesystemName, options);
|
|
4376
4376
|
return poller.pollUntilDone();
|
|
4377
4377
|
});
|
|
@@ -4396,17 +4396,17 @@ class AmlFilesystemsImpl {
|
|
|
4396
4396
|
* @param options The options parameters.
|
|
4397
4397
|
*/
|
|
4398
4398
|
beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
|
|
4399
|
-
return tslib.__awaiter(this,
|
|
4400
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4399
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4400
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4401
4401
|
return this.client.sendOperationRequest(args, spec);
|
|
4402
4402
|
});
|
|
4403
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4403
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4404
4404
|
var _a;
|
|
4405
4405
|
let currentRawResponse = undefined;
|
|
4406
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4406
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4407
4407
|
const callback = (rawResponse, flatResponse) => {
|
|
4408
4408
|
currentRawResponse = rawResponse;
|
|
4409
|
-
providedCallback === null || providedCallback ===
|
|
4409
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4410
4410
|
};
|
|
4411
4411
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4412
4412
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4425,8 +4425,8 @@ class AmlFilesystemsImpl {
|
|
|
4425
4425
|
spec: createOrUpdateOperationSpec$3,
|
|
4426
4426
|
});
|
|
4427
4427
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4428
|
-
restoreFrom: options === null || options ===
|
|
4429
|
-
intervalInMs: options === null || options ===
|
|
4428
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4429
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4430
4430
|
resourceLocationConfig: "azure-async-operation",
|
|
4431
4431
|
});
|
|
4432
4432
|
yield poller.poll();
|
|
@@ -4443,7 +4443,7 @@ class AmlFilesystemsImpl {
|
|
|
4443
4443
|
* @param options The options parameters.
|
|
4444
4444
|
*/
|
|
4445
4445
|
beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
|
|
4446
|
-
return tslib.__awaiter(this,
|
|
4446
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4447
4447
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options);
|
|
4448
4448
|
return poller.pollUntilDone();
|
|
4449
4449
|
});
|
|
@@ -4458,17 +4458,17 @@ class AmlFilesystemsImpl {
|
|
|
4458
4458
|
* @param options The options parameters.
|
|
4459
4459
|
*/
|
|
4460
4460
|
beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
|
|
4461
|
-
return tslib.__awaiter(this,
|
|
4462
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4461
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4462
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4463
4463
|
return this.client.sendOperationRequest(args, spec);
|
|
4464
4464
|
});
|
|
4465
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4465
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4466
4466
|
var _a;
|
|
4467
4467
|
let currentRawResponse = undefined;
|
|
4468
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4468
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4469
4469
|
const callback = (rawResponse, flatResponse) => {
|
|
4470
4470
|
currentRawResponse = rawResponse;
|
|
4471
|
-
providedCallback === null || providedCallback ===
|
|
4471
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4472
4472
|
};
|
|
4473
4473
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4474
4474
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4487,8 +4487,8 @@ class AmlFilesystemsImpl {
|
|
|
4487
4487
|
spec: updateOperationSpec$2,
|
|
4488
4488
|
});
|
|
4489
4489
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4490
|
-
restoreFrom: options === null || options ===
|
|
4491
|
-
intervalInMs: options === null || options ===
|
|
4490
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4491
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4492
4492
|
resourceLocationConfig: "azure-async-operation",
|
|
4493
4493
|
});
|
|
4494
4494
|
yield poller.poll();
|
|
@@ -4505,7 +4505,7 @@ class AmlFilesystemsImpl {
|
|
|
4505
4505
|
* @param options The options parameters.
|
|
4506
4506
|
*/
|
|
4507
4507
|
beginUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
|
|
4508
|
-
return tslib.__awaiter(this,
|
|
4508
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4509
4509
|
const poller = yield this.beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options);
|
|
4510
4510
|
return poller.pollUntilDone();
|
|
4511
4511
|
});
|
|
@@ -4807,7 +4807,7 @@ class ImportJobsImpl {
|
|
|
4807
4807
|
return this;
|
|
4808
4808
|
},
|
|
4809
4809
|
byPage: (settings) => {
|
|
4810
|
-
if (settings === null || settings ===
|
|
4810
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4811
4811
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4812
4812
|
}
|
|
4813
4813
|
return this.listByAmlFilesystemPagingPage(resourceGroupName, amlFilesystemName, options, settings);
|
|
@@ -4817,7 +4817,7 @@ class ImportJobsImpl {
|
|
|
4817
4817
|
listByAmlFilesystemPagingPage(resourceGroupName, amlFilesystemName, options, settings) {
|
|
4818
4818
|
return tslib.__asyncGenerator(this, arguments, function* listByAmlFilesystemPagingPage_1() {
|
|
4819
4819
|
let result;
|
|
4820
|
-
let continuationToken = settings === null || settings ===
|
|
4820
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4821
4821
|
if (!continuationToken) {
|
|
4822
4822
|
result = yield tslib.__await(this._listByAmlFilesystem(resourceGroupName, amlFilesystemName, options));
|
|
4823
4823
|
let page = result.value || [];
|
|
@@ -4864,17 +4864,17 @@ class ImportJobsImpl {
|
|
|
4864
4864
|
* @param options The options parameters.
|
|
4865
4865
|
*/
|
|
4866
4866
|
beginDelete(resourceGroupName, amlFilesystemName, importJobName, options) {
|
|
4867
|
-
return tslib.__awaiter(this,
|
|
4868
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4867
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4868
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4869
4869
|
return this.client.sendOperationRequest(args, spec);
|
|
4870
4870
|
});
|
|
4871
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4871
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4872
4872
|
var _a;
|
|
4873
4873
|
let currentRawResponse = undefined;
|
|
4874
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4874
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4875
4875
|
const callback = (rawResponse, flatResponse) => {
|
|
4876
4876
|
currentRawResponse = rawResponse;
|
|
4877
|
-
providedCallback === null || providedCallback ===
|
|
4877
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4878
4878
|
};
|
|
4879
4879
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4880
4880
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4893,8 +4893,8 @@ class ImportJobsImpl {
|
|
|
4893
4893
|
spec: deleteOperationSpec$2,
|
|
4894
4894
|
});
|
|
4895
4895
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4896
|
-
restoreFrom: options === null || options ===
|
|
4897
|
-
intervalInMs: options === null || options ===
|
|
4896
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4897
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4898
4898
|
resourceLocationConfig: "location",
|
|
4899
4899
|
});
|
|
4900
4900
|
yield poller.poll();
|
|
@@ -4911,7 +4911,7 @@ class ImportJobsImpl {
|
|
|
4911
4911
|
* @param options The options parameters.
|
|
4912
4912
|
*/
|
|
4913
4913
|
beginDeleteAndWait(resourceGroupName, amlFilesystemName, importJobName, options) {
|
|
4914
|
-
return tslib.__awaiter(this,
|
|
4914
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4915
4915
|
const poller = yield this.beginDelete(resourceGroupName, amlFilesystemName, importJobName, options);
|
|
4916
4916
|
return poller.pollUntilDone();
|
|
4917
4917
|
});
|
|
@@ -4940,17 +4940,17 @@ class ImportJobsImpl {
|
|
|
4940
4940
|
* @param options The options parameters.
|
|
4941
4941
|
*/
|
|
4942
4942
|
beginCreateOrUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
4943
|
-
return tslib.__awaiter(this,
|
|
4944
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4943
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4944
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4945
4945
|
return this.client.sendOperationRequest(args, spec);
|
|
4946
4946
|
});
|
|
4947
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4947
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4948
4948
|
var _a;
|
|
4949
4949
|
let currentRawResponse = undefined;
|
|
4950
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4950
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4951
4951
|
const callback = (rawResponse, flatResponse) => {
|
|
4952
4952
|
currentRawResponse = rawResponse;
|
|
4953
|
-
providedCallback === null || providedCallback ===
|
|
4953
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4954
4954
|
};
|
|
4955
4955
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4956
4956
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4975,8 +4975,8 @@ class ImportJobsImpl {
|
|
|
4975
4975
|
spec: createOrUpdateOperationSpec$2,
|
|
4976
4976
|
});
|
|
4977
4977
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4978
|
-
restoreFrom: options === null || options ===
|
|
4979
|
-
intervalInMs: options === null || options ===
|
|
4978
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4979
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4980
4980
|
resourceLocationConfig: "azure-async-operation",
|
|
4981
4981
|
});
|
|
4982
4982
|
yield poller.poll();
|
|
@@ -4995,7 +4995,7 @@ class ImportJobsImpl {
|
|
|
4995
4995
|
* @param options The options parameters.
|
|
4996
4996
|
*/
|
|
4997
4997
|
beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
4998
|
-
return tslib.__awaiter(this,
|
|
4998
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4999
4999
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options);
|
|
5000
5000
|
return poller.pollUntilDone();
|
|
5001
5001
|
});
|
|
@@ -5012,17 +5012,17 @@ class ImportJobsImpl {
|
|
|
5012
5012
|
* @param options The options parameters.
|
|
5013
5013
|
*/
|
|
5014
5014
|
beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
5015
|
-
return tslib.__awaiter(this,
|
|
5016
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5015
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5016
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5017
5017
|
return this.client.sendOperationRequest(args, spec);
|
|
5018
5018
|
});
|
|
5019
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5019
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5020
5020
|
var _a;
|
|
5021
5021
|
let currentRawResponse = undefined;
|
|
5022
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5022
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5023
5023
|
const callback = (rawResponse, flatResponse) => {
|
|
5024
5024
|
currentRawResponse = rawResponse;
|
|
5025
|
-
providedCallback === null || providedCallback ===
|
|
5025
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5026
5026
|
};
|
|
5027
5027
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5028
5028
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5047,8 +5047,8 @@ class ImportJobsImpl {
|
|
|
5047
5047
|
spec: updateOperationSpec$1,
|
|
5048
5048
|
});
|
|
5049
5049
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5050
|
-
restoreFrom: options === null || options ===
|
|
5051
|
-
intervalInMs: options === null || options ===
|
|
5050
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5051
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5052
5052
|
resourceLocationConfig: "azure-async-operation",
|
|
5053
5053
|
});
|
|
5054
5054
|
yield poller.poll();
|
|
@@ -5067,7 +5067,7 @@ class ImportJobsImpl {
|
|
|
5067
5067
|
* @param options The options parameters.
|
|
5068
5068
|
*/
|
|
5069
5069
|
beginUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
5070
|
-
return tslib.__awaiter(this,
|
|
5070
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5071
5071
|
const poller = yield this.beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options);
|
|
5072
5072
|
return poller.pollUntilDone();
|
|
5073
5073
|
});
|
|
@@ -5289,7 +5289,7 @@ class OperationsImpl {
|
|
|
5289
5289
|
return this;
|
|
5290
5290
|
},
|
|
5291
5291
|
byPage: (settings) => {
|
|
5292
|
-
if (settings === null || settings ===
|
|
5292
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5293
5293
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5294
5294
|
}
|
|
5295
5295
|
return this.listPagingPage(options, settings);
|
|
@@ -5299,7 +5299,7 @@ class OperationsImpl {
|
|
|
5299
5299
|
listPagingPage(options, settings) {
|
|
5300
5300
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5301
5301
|
let result;
|
|
5302
|
-
let continuationToken = settings === null || settings ===
|
|
5302
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5303
5303
|
if (!continuationToken) {
|
|
5304
5304
|
result = yield tslib.__await(this._list(options));
|
|
5305
5305
|
let page = result.value || [];
|
|
@@ -5417,7 +5417,7 @@ class SkusImpl {
|
|
|
5417
5417
|
return this;
|
|
5418
5418
|
},
|
|
5419
5419
|
byPage: (settings) => {
|
|
5420
|
-
if (settings === null || settings ===
|
|
5420
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5421
5421
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5422
5422
|
}
|
|
5423
5423
|
return this.listPagingPage(options, settings);
|
|
@@ -5427,7 +5427,7 @@ class SkusImpl {
|
|
|
5427
5427
|
listPagingPage(options, settings) {
|
|
5428
5428
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5429
5429
|
let result;
|
|
5430
|
-
let continuationToken = settings === null || settings ===
|
|
5430
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5431
5431
|
if (!continuationToken) {
|
|
5432
5432
|
result = yield tslib.__await(this._list(options));
|
|
5433
5433
|
let page = result.value || [];
|
|
@@ -5549,7 +5549,7 @@ class UsageModelsImpl {
|
|
|
5549
5549
|
return this;
|
|
5550
5550
|
},
|
|
5551
5551
|
byPage: (settings) => {
|
|
5552
|
-
if (settings === null || settings ===
|
|
5552
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5553
5553
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5554
5554
|
}
|
|
5555
5555
|
return this.listPagingPage(options, settings);
|
|
@@ -5559,7 +5559,7 @@ class UsageModelsImpl {
|
|
|
5559
5559
|
listPagingPage(options, settings) {
|
|
5560
5560
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5561
5561
|
let result;
|
|
5562
|
-
let continuationToken = settings === null || settings ===
|
|
5562
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5563
5563
|
if (!continuationToken) {
|
|
5564
5564
|
result = yield tslib.__await(this._list(options));
|
|
5565
5565
|
let page = result.value || [];
|
|
@@ -5732,7 +5732,7 @@ class AscUsagesImpl {
|
|
|
5732
5732
|
return this;
|
|
5733
5733
|
},
|
|
5734
5734
|
byPage: (settings) => {
|
|
5735
|
-
if (settings === null || settings ===
|
|
5735
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5736
5736
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5737
5737
|
}
|
|
5738
5738
|
return this.listPagingPage(location, options, settings);
|
|
@@ -5742,7 +5742,7 @@ class AscUsagesImpl {
|
|
|
5742
5742
|
listPagingPage(location, options, settings) {
|
|
5743
5743
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5744
5744
|
let result;
|
|
5745
|
-
let continuationToken = settings === null || settings ===
|
|
5745
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5746
5746
|
if (!continuationToken) {
|
|
5747
5747
|
result = yield tslib.__await(this._list(location, options));
|
|
5748
5748
|
let page = result.value || [];
|
|
@@ -5871,7 +5871,7 @@ class CachesImpl {
|
|
|
5871
5871
|
return this;
|
|
5872
5872
|
},
|
|
5873
5873
|
byPage: (settings) => {
|
|
5874
|
-
if (settings === null || settings ===
|
|
5874
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5875
5875
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5876
5876
|
}
|
|
5877
5877
|
return this.listPagingPage(options, settings);
|
|
@@ -5881,7 +5881,7 @@ class CachesImpl {
|
|
|
5881
5881
|
listPagingPage(options, settings) {
|
|
5882
5882
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5883
5883
|
let result;
|
|
5884
|
-
let continuationToken = settings === null || settings ===
|
|
5884
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5885
5885
|
if (!continuationToken) {
|
|
5886
5886
|
result = yield tslib.__await(this._list(options));
|
|
5887
5887
|
let page = result.value || [];
|
|
@@ -5933,7 +5933,7 @@ class CachesImpl {
|
|
|
5933
5933
|
return this;
|
|
5934
5934
|
},
|
|
5935
5935
|
byPage: (settings) => {
|
|
5936
|
-
if (settings === null || settings ===
|
|
5936
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5937
5937
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5938
5938
|
}
|
|
5939
5939
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5943,7 +5943,7 @@ class CachesImpl {
|
|
|
5943
5943
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5944
5944
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5945
5945
|
let result;
|
|
5946
|
-
let continuationToken = settings === null || settings ===
|
|
5946
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5947
5947
|
if (!continuationToken) {
|
|
5948
5948
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5949
5949
|
let page = result.value || [];
|
|
@@ -6003,17 +6003,17 @@ class CachesImpl {
|
|
|
6003
6003
|
* @param options The options parameters.
|
|
6004
6004
|
*/
|
|
6005
6005
|
beginDelete(resourceGroupName, cacheName, options) {
|
|
6006
|
-
return tslib.__awaiter(this,
|
|
6007
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6006
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6007
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6008
6008
|
return this.client.sendOperationRequest(args, spec);
|
|
6009
6009
|
});
|
|
6010
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6010
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6011
6011
|
var _a;
|
|
6012
6012
|
let currentRawResponse = undefined;
|
|
6013
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6013
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6014
6014
|
const callback = (rawResponse, flatResponse) => {
|
|
6015
6015
|
currentRawResponse = rawResponse;
|
|
6016
|
-
providedCallback === null || providedCallback ===
|
|
6016
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6017
6017
|
};
|
|
6018
6018
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6019
6019
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6032,8 +6032,8 @@ class CachesImpl {
|
|
|
6032
6032
|
spec: deleteOperationSpec$1,
|
|
6033
6033
|
});
|
|
6034
6034
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6035
|
-
restoreFrom: options === null || options ===
|
|
6036
|
-
intervalInMs: options === null || options ===
|
|
6035
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6036
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6037
6037
|
});
|
|
6038
6038
|
yield poller.poll();
|
|
6039
6039
|
return poller;
|
|
@@ -6047,7 +6047,7 @@ class CachesImpl {
|
|
|
6047
6047
|
* @param options The options parameters.
|
|
6048
6048
|
*/
|
|
6049
6049
|
beginDeleteAndWait(resourceGroupName, cacheName, options) {
|
|
6050
|
-
return tslib.__awaiter(this,
|
|
6050
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6051
6051
|
const poller = yield this.beginDelete(resourceGroupName, cacheName, options);
|
|
6052
6052
|
return poller.pollUntilDone();
|
|
6053
6053
|
});
|
|
@@ -6072,17 +6072,17 @@ class CachesImpl {
|
|
|
6072
6072
|
* @param options The options parameters.
|
|
6073
6073
|
*/
|
|
6074
6074
|
beginCreateOrUpdate(resourceGroupName, cacheName, cache, options) {
|
|
6075
|
-
return tslib.__awaiter(this,
|
|
6076
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6075
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6076
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6077
6077
|
return this.client.sendOperationRequest(args, spec);
|
|
6078
6078
|
});
|
|
6079
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6079
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6080
6080
|
var _a;
|
|
6081
6081
|
let currentRawResponse = undefined;
|
|
6082
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6082
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6083
6083
|
const callback = (rawResponse, flatResponse) => {
|
|
6084
6084
|
currentRawResponse = rawResponse;
|
|
6085
|
-
providedCallback === null || providedCallback ===
|
|
6085
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6086
6086
|
};
|
|
6087
6087
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6088
6088
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6101,8 +6101,8 @@ class CachesImpl {
|
|
|
6101
6101
|
spec: createOrUpdateOperationSpec$1,
|
|
6102
6102
|
});
|
|
6103
6103
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6104
|
-
restoreFrom: options === null || options ===
|
|
6105
|
-
intervalInMs: options === null || options ===
|
|
6104
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6105
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6106
6106
|
});
|
|
6107
6107
|
yield poller.poll();
|
|
6108
6108
|
return poller;
|
|
@@ -6118,7 +6118,7 @@ class CachesImpl {
|
|
|
6118
6118
|
* @param options The options parameters.
|
|
6119
6119
|
*/
|
|
6120
6120
|
beginCreateOrUpdateAndWait(resourceGroupName, cacheName, cache, options) {
|
|
6121
|
-
return tslib.__awaiter(this,
|
|
6121
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6122
6122
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cacheName, cache, options);
|
|
6123
6123
|
return poller.pollUntilDone();
|
|
6124
6124
|
});
|
|
@@ -6131,17 +6131,17 @@ class CachesImpl {
|
|
|
6131
6131
|
* @param options The options parameters.
|
|
6132
6132
|
*/
|
|
6133
6133
|
beginUpdate(resourceGroupName, cacheName, 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);
|
|
@@ -6160,8 +6160,8 @@ class CachesImpl {
|
|
|
6160
6160
|
spec: updateOperationSpec,
|
|
6161
6161
|
});
|
|
6162
6162
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6163
|
-
restoreFrom: options === null || options ===
|
|
6164
|
-
intervalInMs: options === null || options ===
|
|
6163
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6164
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6165
6165
|
resourceLocationConfig: "azure-async-operation",
|
|
6166
6166
|
});
|
|
6167
6167
|
yield poller.poll();
|
|
@@ -6176,7 +6176,7 @@ class CachesImpl {
|
|
|
6176
6176
|
* @param options The options parameters.
|
|
6177
6177
|
*/
|
|
6178
6178
|
beginUpdateAndWait(resourceGroupName, cacheName, options) {
|
|
6179
|
-
return tslib.__awaiter(this,
|
|
6179
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6180
6180
|
const poller = yield this.beginUpdate(resourceGroupName, cacheName, options);
|
|
6181
6181
|
return poller.pollUntilDone();
|
|
6182
6182
|
});
|
|
@@ -6189,17 +6189,17 @@ class CachesImpl {
|
|
|
6189
6189
|
* @param options The options parameters.
|
|
6190
6190
|
*/
|
|
6191
6191
|
beginDebugInfo(resourceGroupName, cacheName, options) {
|
|
6192
|
-
return tslib.__awaiter(this,
|
|
6193
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6192
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6193
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6194
6194
|
return this.client.sendOperationRequest(args, spec);
|
|
6195
6195
|
});
|
|
6196
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6196
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6197
6197
|
var _a;
|
|
6198
6198
|
let currentRawResponse = undefined;
|
|
6199
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6199
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6200
6200
|
const callback = (rawResponse, flatResponse) => {
|
|
6201
6201
|
currentRawResponse = rawResponse;
|
|
6202
|
-
providedCallback === null || providedCallback ===
|
|
6202
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6203
6203
|
};
|
|
6204
6204
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6205
6205
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6218,8 +6218,8 @@ class CachesImpl {
|
|
|
6218
6218
|
spec: debugInfoOperationSpec,
|
|
6219
6219
|
});
|
|
6220
6220
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6221
|
-
restoreFrom: options === null || options ===
|
|
6222
|
-
intervalInMs: options === null || options ===
|
|
6221
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6222
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6223
6223
|
resourceLocationConfig: "azure-async-operation",
|
|
6224
6224
|
});
|
|
6225
6225
|
yield poller.poll();
|
|
@@ -6234,7 +6234,7 @@ class CachesImpl {
|
|
|
6234
6234
|
* @param options The options parameters.
|
|
6235
6235
|
*/
|
|
6236
6236
|
beginDebugInfoAndWait(resourceGroupName, cacheName, options) {
|
|
6237
|
-
return tslib.__awaiter(this,
|
|
6237
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6238
6238
|
const poller = yield this.beginDebugInfo(resourceGroupName, cacheName, options);
|
|
6239
6239
|
return poller.pollUntilDone();
|
|
6240
6240
|
});
|
|
@@ -6248,17 +6248,17 @@ class CachesImpl {
|
|
|
6248
6248
|
* @param options The options parameters.
|
|
6249
6249
|
*/
|
|
6250
6250
|
beginFlush(resourceGroupName, cacheName, options) {
|
|
6251
|
-
return tslib.__awaiter(this,
|
|
6252
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6251
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6252
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6253
6253
|
return this.client.sendOperationRequest(args, spec);
|
|
6254
6254
|
});
|
|
6255
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6255
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6256
6256
|
var _a;
|
|
6257
6257
|
let currentRawResponse = undefined;
|
|
6258
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6258
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6259
6259
|
const callback = (rawResponse, flatResponse) => {
|
|
6260
6260
|
currentRawResponse = rawResponse;
|
|
6261
|
-
providedCallback === null || providedCallback ===
|
|
6261
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6262
6262
|
};
|
|
6263
6263
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6264
6264
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6277,8 +6277,8 @@ class CachesImpl {
|
|
|
6277
6277
|
spec: flushOperationSpec$1,
|
|
6278
6278
|
});
|
|
6279
6279
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6280
|
-
restoreFrom: options === null || options ===
|
|
6281
|
-
intervalInMs: options === null || options ===
|
|
6280
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6281
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6282
6282
|
resourceLocationConfig: "azure-async-operation",
|
|
6283
6283
|
});
|
|
6284
6284
|
yield poller.poll();
|
|
@@ -6294,7 +6294,7 @@ class CachesImpl {
|
|
|
6294
6294
|
* @param options The options parameters.
|
|
6295
6295
|
*/
|
|
6296
6296
|
beginFlushAndWait(resourceGroupName, cacheName, options) {
|
|
6297
|
-
return tslib.__awaiter(this,
|
|
6297
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6298
6298
|
const poller = yield this.beginFlush(resourceGroupName, cacheName, options);
|
|
6299
6299
|
return poller.pollUntilDone();
|
|
6300
6300
|
});
|
|
@@ -6307,17 +6307,17 @@ class CachesImpl {
|
|
|
6307
6307
|
* @param options The options parameters.
|
|
6308
6308
|
*/
|
|
6309
6309
|
beginStart(resourceGroupName, cacheName, options) {
|
|
6310
|
-
return tslib.__awaiter(this,
|
|
6311
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6310
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6311
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6312
6312
|
return this.client.sendOperationRequest(args, spec);
|
|
6313
6313
|
});
|
|
6314
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6314
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6315
6315
|
var _a;
|
|
6316
6316
|
let currentRawResponse = undefined;
|
|
6317
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6317
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6318
6318
|
const callback = (rawResponse, flatResponse) => {
|
|
6319
6319
|
currentRawResponse = rawResponse;
|
|
6320
|
-
providedCallback === null || providedCallback ===
|
|
6320
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6321
6321
|
};
|
|
6322
6322
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6323
6323
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6336,8 +6336,8 @@ class CachesImpl {
|
|
|
6336
6336
|
spec: startOperationSpec,
|
|
6337
6337
|
});
|
|
6338
6338
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6339
|
-
restoreFrom: options === null || options ===
|
|
6340
|
-
intervalInMs: options === null || options ===
|
|
6339
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6340
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6341
6341
|
resourceLocationConfig: "azure-async-operation",
|
|
6342
6342
|
});
|
|
6343
6343
|
yield poller.poll();
|
|
@@ -6352,7 +6352,7 @@ class CachesImpl {
|
|
|
6352
6352
|
* @param options The options parameters.
|
|
6353
6353
|
*/
|
|
6354
6354
|
beginStartAndWait(resourceGroupName, cacheName, options) {
|
|
6355
|
-
return tslib.__awaiter(this,
|
|
6355
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6356
6356
|
const poller = yield this.beginStart(resourceGroupName, cacheName, options);
|
|
6357
6357
|
return poller.pollUntilDone();
|
|
6358
6358
|
});
|
|
@@ -6365,17 +6365,17 @@ class CachesImpl {
|
|
|
6365
6365
|
* @param options The options parameters.
|
|
6366
6366
|
*/
|
|
6367
6367
|
beginStop(resourceGroupName, cacheName, options) {
|
|
6368
|
-
return tslib.__awaiter(this,
|
|
6369
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6368
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6369
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6370
6370
|
return this.client.sendOperationRequest(args, spec);
|
|
6371
6371
|
});
|
|
6372
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6372
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6373
6373
|
var _a;
|
|
6374
6374
|
let currentRawResponse = undefined;
|
|
6375
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6375
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6376
6376
|
const callback = (rawResponse, flatResponse) => {
|
|
6377
6377
|
currentRawResponse = rawResponse;
|
|
6378
|
-
providedCallback === null || providedCallback ===
|
|
6378
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6379
6379
|
};
|
|
6380
6380
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6381
6381
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6394,8 +6394,8 @@ class CachesImpl {
|
|
|
6394
6394
|
spec: stopOperationSpec,
|
|
6395
6395
|
});
|
|
6396
6396
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6397
|
-
restoreFrom: options === null || options ===
|
|
6398
|
-
intervalInMs: options === null || options ===
|
|
6397
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6398
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6399
6399
|
resourceLocationConfig: "azure-async-operation",
|
|
6400
6400
|
});
|
|
6401
6401
|
yield poller.poll();
|
|
@@ -6410,7 +6410,7 @@ class CachesImpl {
|
|
|
6410
6410
|
* @param options The options parameters.
|
|
6411
6411
|
*/
|
|
6412
6412
|
beginStopAndWait(resourceGroupName, cacheName, options) {
|
|
6413
|
-
return tslib.__awaiter(this,
|
|
6413
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6414
6414
|
const poller = yield this.beginStop(resourceGroupName, cacheName, options);
|
|
6415
6415
|
return poller.pollUntilDone();
|
|
6416
6416
|
});
|
|
@@ -6423,17 +6423,17 @@ class CachesImpl {
|
|
|
6423
6423
|
* @param options The options parameters.
|
|
6424
6424
|
*/
|
|
6425
6425
|
beginStartPrimingJob(resourceGroupName, cacheName, options) {
|
|
6426
|
-
return tslib.__awaiter(this,
|
|
6427
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6426
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6427
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6428
6428
|
return this.client.sendOperationRequest(args, spec);
|
|
6429
6429
|
});
|
|
6430
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6430
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6431
6431
|
var _a;
|
|
6432
6432
|
let currentRawResponse = undefined;
|
|
6433
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6433
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6434
6434
|
const callback = (rawResponse, flatResponse) => {
|
|
6435
6435
|
currentRawResponse = rawResponse;
|
|
6436
|
-
providedCallback === null || providedCallback ===
|
|
6436
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6437
6437
|
};
|
|
6438
6438
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6439
6439
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6452,8 +6452,8 @@ class CachesImpl {
|
|
|
6452
6452
|
spec: startPrimingJobOperationSpec,
|
|
6453
6453
|
});
|
|
6454
6454
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6455
|
-
restoreFrom: options === null || options ===
|
|
6456
|
-
intervalInMs: options === null || options ===
|
|
6455
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6456
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6457
6457
|
resourceLocationConfig: "azure-async-operation",
|
|
6458
6458
|
});
|
|
6459
6459
|
yield poller.poll();
|
|
@@ -6468,7 +6468,7 @@ class CachesImpl {
|
|
|
6468
6468
|
* @param options The options parameters.
|
|
6469
6469
|
*/
|
|
6470
6470
|
beginStartPrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
6471
|
-
return tslib.__awaiter(this,
|
|
6471
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6472
6472
|
const poller = yield this.beginStartPrimingJob(resourceGroupName, cacheName, options);
|
|
6473
6473
|
return poller.pollUntilDone();
|
|
6474
6474
|
});
|
|
@@ -6481,17 +6481,17 @@ class CachesImpl {
|
|
|
6481
6481
|
* @param options The options parameters.
|
|
6482
6482
|
*/
|
|
6483
6483
|
beginStopPrimingJob(resourceGroupName, cacheName, options) {
|
|
6484
|
-
return tslib.__awaiter(this,
|
|
6485
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6484
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6485
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6486
6486
|
return this.client.sendOperationRequest(args, spec);
|
|
6487
6487
|
});
|
|
6488
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6488
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6489
6489
|
var _a;
|
|
6490
6490
|
let currentRawResponse = undefined;
|
|
6491
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6491
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6492
6492
|
const callback = (rawResponse, flatResponse) => {
|
|
6493
6493
|
currentRawResponse = rawResponse;
|
|
6494
|
-
providedCallback === null || providedCallback ===
|
|
6494
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6495
6495
|
};
|
|
6496
6496
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6497
6497
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6510,8 +6510,8 @@ class CachesImpl {
|
|
|
6510
6510
|
spec: stopPrimingJobOperationSpec,
|
|
6511
6511
|
});
|
|
6512
6512
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6513
|
-
restoreFrom: options === null || options ===
|
|
6514
|
-
intervalInMs: options === null || options ===
|
|
6513
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6514
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6515
6515
|
resourceLocationConfig: "azure-async-operation",
|
|
6516
6516
|
});
|
|
6517
6517
|
yield poller.poll();
|
|
@@ -6526,7 +6526,7 @@ class CachesImpl {
|
|
|
6526
6526
|
* @param options The options parameters.
|
|
6527
6527
|
*/
|
|
6528
6528
|
beginStopPrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
6529
|
-
return tslib.__awaiter(this,
|
|
6529
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6530
6530
|
const poller = yield this.beginStopPrimingJob(resourceGroupName, cacheName, options);
|
|
6531
6531
|
return poller.pollUntilDone();
|
|
6532
6532
|
});
|
|
@@ -6539,17 +6539,17 @@ class CachesImpl {
|
|
|
6539
6539
|
* @param options The options parameters.
|
|
6540
6540
|
*/
|
|
6541
6541
|
beginPausePrimingJob(resourceGroupName, cacheName, options) {
|
|
6542
|
-
return tslib.__awaiter(this,
|
|
6543
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6542
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6543
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6544
6544
|
return this.client.sendOperationRequest(args, spec);
|
|
6545
6545
|
});
|
|
6546
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6546
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6547
6547
|
var _a;
|
|
6548
6548
|
let currentRawResponse = undefined;
|
|
6549
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6549
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6550
6550
|
const callback = (rawResponse, flatResponse) => {
|
|
6551
6551
|
currentRawResponse = rawResponse;
|
|
6552
|
-
providedCallback === null || providedCallback ===
|
|
6552
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6553
6553
|
};
|
|
6554
6554
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6555
6555
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6568,8 +6568,8 @@ class CachesImpl {
|
|
|
6568
6568
|
spec: pausePrimingJobOperationSpec,
|
|
6569
6569
|
});
|
|
6570
6570
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6571
|
-
restoreFrom: options === null || options ===
|
|
6572
|
-
intervalInMs: options === null || options ===
|
|
6571
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6572
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6573
6573
|
resourceLocationConfig: "azure-async-operation",
|
|
6574
6574
|
});
|
|
6575
6575
|
yield poller.poll();
|
|
@@ -6584,7 +6584,7 @@ class CachesImpl {
|
|
|
6584
6584
|
* @param options The options parameters.
|
|
6585
6585
|
*/
|
|
6586
6586
|
beginPausePrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
6587
|
-
return tslib.__awaiter(this,
|
|
6587
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6588
6588
|
const poller = yield this.beginPausePrimingJob(resourceGroupName, cacheName, options);
|
|
6589
6589
|
return poller.pollUntilDone();
|
|
6590
6590
|
});
|
|
@@ -6597,17 +6597,17 @@ class CachesImpl {
|
|
|
6597
6597
|
* @param options The options parameters.
|
|
6598
6598
|
*/
|
|
6599
6599
|
beginResumePrimingJob(resourceGroupName, cacheName, options) {
|
|
6600
|
-
return tslib.__awaiter(this,
|
|
6601
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6600
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6601
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6602
6602
|
return this.client.sendOperationRequest(args, spec);
|
|
6603
6603
|
});
|
|
6604
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6604
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6605
6605
|
var _a;
|
|
6606
6606
|
let currentRawResponse = undefined;
|
|
6607
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6607
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6608
6608
|
const callback = (rawResponse, flatResponse) => {
|
|
6609
6609
|
currentRawResponse = rawResponse;
|
|
6610
|
-
providedCallback === null || providedCallback ===
|
|
6610
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6611
6611
|
};
|
|
6612
6612
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6613
6613
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6626,8 +6626,8 @@ class CachesImpl {
|
|
|
6626
6626
|
spec: resumePrimingJobOperationSpec,
|
|
6627
6627
|
});
|
|
6628
6628
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6629
|
-
restoreFrom: options === null || options ===
|
|
6630
|
-
intervalInMs: options === null || options ===
|
|
6629
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6630
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6631
6631
|
resourceLocationConfig: "azure-async-operation",
|
|
6632
6632
|
});
|
|
6633
6633
|
yield poller.poll();
|
|
@@ -6642,7 +6642,7 @@ class CachesImpl {
|
|
|
6642
6642
|
* @param options The options parameters.
|
|
6643
6643
|
*/
|
|
6644
6644
|
beginResumePrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
6645
|
-
return tslib.__awaiter(this,
|
|
6645
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6646
6646
|
const poller = yield this.beginResumePrimingJob(resourceGroupName, cacheName, options);
|
|
6647
6647
|
return poller.pollUntilDone();
|
|
6648
6648
|
});
|
|
@@ -6655,17 +6655,17 @@ class CachesImpl {
|
|
|
6655
6655
|
* @param options The options parameters.
|
|
6656
6656
|
*/
|
|
6657
6657
|
beginUpgradeFirmware(resourceGroupName, cacheName, options) {
|
|
6658
|
-
return tslib.__awaiter(this,
|
|
6659
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6658
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6659
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6660
6660
|
return this.client.sendOperationRequest(args, spec);
|
|
6661
6661
|
});
|
|
6662
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6662
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6663
6663
|
var _a;
|
|
6664
6664
|
let currentRawResponse = undefined;
|
|
6665
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6665
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6666
6666
|
const callback = (rawResponse, flatResponse) => {
|
|
6667
6667
|
currentRawResponse = rawResponse;
|
|
6668
|
-
providedCallback === null || providedCallback ===
|
|
6668
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6669
6669
|
};
|
|
6670
6670
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6671
6671
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6684,8 +6684,8 @@ class CachesImpl {
|
|
|
6684
6684
|
spec: upgradeFirmwareOperationSpec,
|
|
6685
6685
|
});
|
|
6686
6686
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6687
|
-
restoreFrom: options === null || options ===
|
|
6688
|
-
intervalInMs: options === null || options ===
|
|
6687
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6688
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6689
6689
|
resourceLocationConfig: "azure-async-operation",
|
|
6690
6690
|
});
|
|
6691
6691
|
yield poller.poll();
|
|
@@ -6700,7 +6700,7 @@ class CachesImpl {
|
|
|
6700
6700
|
* @param options The options parameters.
|
|
6701
6701
|
*/
|
|
6702
6702
|
beginUpgradeFirmwareAndWait(resourceGroupName, cacheName, options) {
|
|
6703
|
-
return tslib.__awaiter(this,
|
|
6703
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6704
6704
|
const poller = yield this.beginUpgradeFirmware(resourceGroupName, cacheName, options);
|
|
6705
6705
|
return poller.pollUntilDone();
|
|
6706
6706
|
});
|
|
@@ -6713,17 +6713,17 @@ class CachesImpl {
|
|
|
6713
6713
|
* @param options The options parameters.
|
|
6714
6714
|
*/
|
|
6715
6715
|
beginSpaceAllocation(resourceGroupName, cacheName, options) {
|
|
6716
|
-
return tslib.__awaiter(this,
|
|
6717
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6716
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6717
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6718
6718
|
return this.client.sendOperationRequest(args, spec);
|
|
6719
6719
|
});
|
|
6720
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6720
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6721
6721
|
var _a;
|
|
6722
6722
|
let currentRawResponse = undefined;
|
|
6723
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6723
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6724
6724
|
const callback = (rawResponse, flatResponse) => {
|
|
6725
6725
|
currentRawResponse = rawResponse;
|
|
6726
|
-
providedCallback === null || providedCallback ===
|
|
6726
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6727
6727
|
};
|
|
6728
6728
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6729
6729
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6742,8 +6742,8 @@ class CachesImpl {
|
|
|
6742
6742
|
spec: spaceAllocationOperationSpec,
|
|
6743
6743
|
});
|
|
6744
6744
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6745
|
-
restoreFrom: options === null || options ===
|
|
6746
|
-
intervalInMs: options === null || options ===
|
|
6745
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6746
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6747
6747
|
resourceLocationConfig: "azure-async-operation",
|
|
6748
6748
|
});
|
|
6749
6749
|
yield poller.poll();
|
|
@@ -6758,7 +6758,7 @@ class CachesImpl {
|
|
|
6758
6758
|
* @param options The options parameters.
|
|
6759
6759
|
*/
|
|
6760
6760
|
beginSpaceAllocationAndWait(resourceGroupName, cacheName, options) {
|
|
6761
|
-
return tslib.__awaiter(this,
|
|
6761
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6762
6762
|
const poller = yield this.beginSpaceAllocation(resourceGroupName, cacheName, options);
|
|
6763
6763
|
return poller.pollUntilDone();
|
|
6764
6764
|
});
|
|
@@ -7270,7 +7270,7 @@ class StorageTargetsImpl {
|
|
|
7270
7270
|
return this;
|
|
7271
7271
|
},
|
|
7272
7272
|
byPage: (settings) => {
|
|
7273
|
-
if (settings === null || settings ===
|
|
7273
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7274
7274
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7275
7275
|
}
|
|
7276
7276
|
return this.listByCachePagingPage(resourceGroupName, cacheName, options, settings);
|
|
@@ -7280,7 +7280,7 @@ class StorageTargetsImpl {
|
|
|
7280
7280
|
listByCachePagingPage(resourceGroupName, cacheName, options, settings) {
|
|
7281
7281
|
return tslib.__asyncGenerator(this, arguments, function* listByCachePagingPage_1() {
|
|
7282
7282
|
let result;
|
|
7283
|
-
let continuationToken = settings === null || settings ===
|
|
7283
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7284
7284
|
if (!continuationToken) {
|
|
7285
7285
|
result = yield tslib.__await(this._listByCache(resourceGroupName, cacheName, options));
|
|
7286
7286
|
let page = result.value || [];
|
|
@@ -7326,17 +7326,17 @@ class StorageTargetsImpl {
|
|
|
7326
7326
|
* @param options The options parameters.
|
|
7327
7327
|
*/
|
|
7328
7328
|
beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7329
|
-
return tslib.__awaiter(this,
|
|
7330
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7329
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7330
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7331
7331
|
return this.client.sendOperationRequest(args, spec);
|
|
7332
7332
|
});
|
|
7333
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7333
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7334
7334
|
var _a;
|
|
7335
7335
|
let currentRawResponse = undefined;
|
|
7336
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7336
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7337
7337
|
const callback = (rawResponse, flatResponse) => {
|
|
7338
7338
|
currentRawResponse = rawResponse;
|
|
7339
|
-
providedCallback === null || providedCallback ===
|
|
7339
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7340
7340
|
};
|
|
7341
7341
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7342
7342
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7355,8 +7355,8 @@ class StorageTargetsImpl {
|
|
|
7355
7355
|
spec: dnsRefreshOperationSpec,
|
|
7356
7356
|
});
|
|
7357
7357
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7358
|
-
restoreFrom: options === null || options ===
|
|
7359
|
-
intervalInMs: options === null || options ===
|
|
7358
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7359
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7360
7360
|
resourceLocationConfig: "azure-async-operation",
|
|
7361
7361
|
});
|
|
7362
7362
|
yield poller.poll();
|
|
@@ -7372,7 +7372,7 @@ class StorageTargetsImpl {
|
|
|
7372
7372
|
* @param options The options parameters.
|
|
7373
7373
|
*/
|
|
7374
7374
|
beginDnsRefreshAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7375
|
-
return tslib.__awaiter(this,
|
|
7375
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7376
7376
|
const poller = yield this.beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options);
|
|
7377
7377
|
return poller.pollUntilDone();
|
|
7378
7378
|
});
|
|
@@ -7399,17 +7399,17 @@ class StorageTargetsImpl {
|
|
|
7399
7399
|
* @param options The options parameters.
|
|
7400
7400
|
*/
|
|
7401
7401
|
beginDelete(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7402
|
-
return tslib.__awaiter(this,
|
|
7403
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7402
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7403
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7404
7404
|
return this.client.sendOperationRequest(args, spec);
|
|
7405
7405
|
});
|
|
7406
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7406
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7407
7407
|
var _a;
|
|
7408
7408
|
let currentRawResponse = undefined;
|
|
7409
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7409
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7410
7410
|
const callback = (rawResponse, flatResponse) => {
|
|
7411
7411
|
currentRawResponse = rawResponse;
|
|
7412
|
-
providedCallback === null || providedCallback ===
|
|
7412
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7413
7413
|
};
|
|
7414
7414
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7415
7415
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7428,8 +7428,8 @@ class StorageTargetsImpl {
|
|
|
7428
7428
|
spec: deleteOperationSpec,
|
|
7429
7429
|
});
|
|
7430
7430
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7431
|
-
restoreFrom: options === null || options ===
|
|
7432
|
-
intervalInMs: options === null || options ===
|
|
7431
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7432
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7433
7433
|
});
|
|
7434
7434
|
yield poller.poll();
|
|
7435
7435
|
return poller;
|
|
@@ -7447,7 +7447,7 @@ class StorageTargetsImpl {
|
|
|
7447
7447
|
* @param options The options parameters.
|
|
7448
7448
|
*/
|
|
7449
7449
|
beginDeleteAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7450
|
-
return tslib.__awaiter(this,
|
|
7450
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7451
7451
|
const poller = yield this.beginDelete(resourceGroupName, cacheName, storageTargetName, options);
|
|
7452
7452
|
return poller.pollUntilDone();
|
|
7453
7453
|
});
|
|
@@ -7475,17 +7475,17 @@ class StorageTargetsImpl {
|
|
|
7475
7475
|
* @param options The options parameters.
|
|
7476
7476
|
*/
|
|
7477
7477
|
beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
|
|
7478
|
-
return tslib.__awaiter(this,
|
|
7479
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7478
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7479
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7480
7480
|
return this.client.sendOperationRequest(args, spec);
|
|
7481
7481
|
});
|
|
7482
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7482
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7483
7483
|
var _a;
|
|
7484
7484
|
let currentRawResponse = undefined;
|
|
7485
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7485
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7486
7486
|
const callback = (rawResponse, flatResponse) => {
|
|
7487
7487
|
currentRawResponse = rawResponse;
|
|
7488
|
-
providedCallback === null || providedCallback ===
|
|
7488
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7489
7489
|
};
|
|
7490
7490
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7491
7491
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7510,8 +7510,8 @@ class StorageTargetsImpl {
|
|
|
7510
7510
|
spec: createOrUpdateOperationSpec,
|
|
7511
7511
|
});
|
|
7512
7512
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7513
|
-
restoreFrom: options === null || options ===
|
|
7514
|
-
intervalInMs: options === null || options ===
|
|
7513
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7514
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7515
7515
|
});
|
|
7516
7516
|
yield poller.poll();
|
|
7517
7517
|
return poller;
|
|
@@ -7529,7 +7529,7 @@ class StorageTargetsImpl {
|
|
|
7529
7529
|
* @param options The options parameters.
|
|
7530
7530
|
*/
|
|
7531
7531
|
beginCreateOrUpdateAndWait(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
|
|
7532
|
-
return tslib.__awaiter(this,
|
|
7532
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7533
7533
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, storagetarget, options);
|
|
7534
7534
|
return poller.pollUntilDone();
|
|
7535
7535
|
});
|
|
@@ -7543,17 +7543,17 @@ class StorageTargetsImpl {
|
|
|
7543
7543
|
* @param options The options parameters.
|
|
7544
7544
|
*/
|
|
7545
7545
|
beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7546
|
-
return tslib.__awaiter(this,
|
|
7547
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7546
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7547
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7548
7548
|
return this.client.sendOperationRequest(args, spec);
|
|
7549
7549
|
});
|
|
7550
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7550
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7551
7551
|
var _a;
|
|
7552
7552
|
let currentRawResponse = undefined;
|
|
7553
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7553
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7554
7554
|
const callback = (rawResponse, flatResponse) => {
|
|
7555
7555
|
currentRawResponse = rawResponse;
|
|
7556
|
-
providedCallback === null || providedCallback ===
|
|
7556
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7557
7557
|
};
|
|
7558
7558
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7559
7559
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7572,8 +7572,8 @@ class StorageTargetsImpl {
|
|
|
7572
7572
|
spec: restoreDefaultsOperationSpec,
|
|
7573
7573
|
});
|
|
7574
7574
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7575
|
-
restoreFrom: options === null || options ===
|
|
7576
|
-
intervalInMs: options === null || options ===
|
|
7575
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7576
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7577
7577
|
resourceLocationConfig: "location",
|
|
7578
7578
|
});
|
|
7579
7579
|
yield poller.poll();
|
|
@@ -7589,7 +7589,7 @@ class StorageTargetsImpl {
|
|
|
7589
7589
|
* @param options The options parameters.
|
|
7590
7590
|
*/
|
|
7591
7591
|
beginRestoreDefaultsAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7592
|
-
return tslib.__awaiter(this,
|
|
7592
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7593
7593
|
const poller = yield this.beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options);
|
|
7594
7594
|
return poller.pollUntilDone();
|
|
7595
7595
|
});
|
|
@@ -7801,17 +7801,17 @@ class StorageTargetOperationsImpl {
|
|
|
7801
7801
|
* @param options The options parameters.
|
|
7802
7802
|
*/
|
|
7803
7803
|
beginFlush(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7804
|
-
return tslib.__awaiter(this,
|
|
7805
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7804
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7805
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7806
7806
|
return this.client.sendOperationRequest(args, spec);
|
|
7807
7807
|
});
|
|
7808
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7808
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7809
7809
|
var _a;
|
|
7810
7810
|
let currentRawResponse = undefined;
|
|
7811
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7811
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7812
7812
|
const callback = (rawResponse, flatResponse) => {
|
|
7813
7813
|
currentRawResponse = rawResponse;
|
|
7814
|
-
providedCallback === null || providedCallback ===
|
|
7814
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7815
7815
|
};
|
|
7816
7816
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7817
7817
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7830,8 +7830,8 @@ class StorageTargetOperationsImpl {
|
|
|
7830
7830
|
spec: flushOperationSpec,
|
|
7831
7831
|
});
|
|
7832
7832
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7833
|
-
restoreFrom: options === null || options ===
|
|
7834
|
-
intervalInMs: options === null || options ===
|
|
7833
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7834
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7835
7835
|
resourceLocationConfig: "azure-async-operation",
|
|
7836
7836
|
});
|
|
7837
7837
|
yield poller.poll();
|
|
@@ -7848,7 +7848,7 @@ class StorageTargetOperationsImpl {
|
|
|
7848
7848
|
* @param options The options parameters.
|
|
7849
7849
|
*/
|
|
7850
7850
|
beginFlushAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7851
|
-
return tslib.__awaiter(this,
|
|
7851
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7852
7852
|
const poller = yield this.beginFlush(resourceGroupName, cacheName, storageTargetName, options);
|
|
7853
7853
|
return poller.pollUntilDone();
|
|
7854
7854
|
});
|
|
@@ -7862,17 +7862,17 @@ class StorageTargetOperationsImpl {
|
|
|
7862
7862
|
* @param options The options parameters.
|
|
7863
7863
|
*/
|
|
7864
7864
|
beginSuspend(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7865
|
-
return tslib.__awaiter(this,
|
|
7866
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7865
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7866
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7867
7867
|
return this.client.sendOperationRequest(args, spec);
|
|
7868
7868
|
});
|
|
7869
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7869
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7870
7870
|
var _a;
|
|
7871
7871
|
let currentRawResponse = undefined;
|
|
7872
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7872
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7873
7873
|
const callback = (rawResponse, flatResponse) => {
|
|
7874
7874
|
currentRawResponse = rawResponse;
|
|
7875
|
-
providedCallback === null || providedCallback ===
|
|
7875
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7876
7876
|
};
|
|
7877
7877
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7878
7878
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7891,8 +7891,8 @@ class StorageTargetOperationsImpl {
|
|
|
7891
7891
|
spec: suspendOperationSpec,
|
|
7892
7892
|
});
|
|
7893
7893
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7894
|
-
restoreFrom: options === null || options ===
|
|
7895
|
-
intervalInMs: options === null || options ===
|
|
7894
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7895
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7896
7896
|
resourceLocationConfig: "azure-async-operation",
|
|
7897
7897
|
});
|
|
7898
7898
|
yield poller.poll();
|
|
@@ -7908,7 +7908,7 @@ class StorageTargetOperationsImpl {
|
|
|
7908
7908
|
* @param options The options parameters.
|
|
7909
7909
|
*/
|
|
7910
7910
|
beginSuspendAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7911
|
-
return tslib.__awaiter(this,
|
|
7911
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7912
7912
|
const poller = yield this.beginSuspend(resourceGroupName, cacheName, storageTargetName, options);
|
|
7913
7913
|
return poller.pollUntilDone();
|
|
7914
7914
|
});
|
|
@@ -7922,17 +7922,17 @@ class StorageTargetOperationsImpl {
|
|
|
7922
7922
|
* @param options The options parameters.
|
|
7923
7923
|
*/
|
|
7924
7924
|
beginResume(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7925
|
-
return tslib.__awaiter(this,
|
|
7926
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7925
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7926
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7927
7927
|
return this.client.sendOperationRequest(args, spec);
|
|
7928
7928
|
});
|
|
7929
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7929
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7930
7930
|
var _a;
|
|
7931
7931
|
let currentRawResponse = undefined;
|
|
7932
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7932
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7933
7933
|
const callback = (rawResponse, flatResponse) => {
|
|
7934
7934
|
currentRawResponse = rawResponse;
|
|
7935
|
-
providedCallback === null || providedCallback ===
|
|
7935
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7936
7936
|
};
|
|
7937
7937
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7938
7938
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7951,8 +7951,8 @@ class StorageTargetOperationsImpl {
|
|
|
7951
7951
|
spec: resumeOperationSpec,
|
|
7952
7952
|
});
|
|
7953
7953
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7954
|
-
restoreFrom: options === null || options ===
|
|
7955
|
-
intervalInMs: options === null || options ===
|
|
7954
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7955
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7956
7956
|
resourceLocationConfig: "azure-async-operation",
|
|
7957
7957
|
});
|
|
7958
7958
|
yield poller.poll();
|
|
@@ -7968,7 +7968,7 @@ class StorageTargetOperationsImpl {
|
|
|
7968
7968
|
* @param options The options parameters.
|
|
7969
7969
|
*/
|
|
7970
7970
|
beginResumeAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7971
|
-
return tslib.__awaiter(this,
|
|
7971
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7972
7972
|
const poller = yield this.beginResume(resourceGroupName, cacheName, storageTargetName, options);
|
|
7973
7973
|
return poller.pollUntilDone();
|
|
7974
7974
|
});
|
|
@@ -7983,17 +7983,17 @@ class StorageTargetOperationsImpl {
|
|
|
7983
7983
|
* @param options The options parameters.
|
|
7984
7984
|
*/
|
|
7985
7985
|
beginInvalidate(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7986
|
-
return tslib.__awaiter(this,
|
|
7987
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7986
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7987
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7988
7988
|
return this.client.sendOperationRequest(args, spec);
|
|
7989
7989
|
});
|
|
7990
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7990
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7991
7991
|
var _a;
|
|
7992
7992
|
let currentRawResponse = undefined;
|
|
7993
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7993
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7994
7994
|
const callback = (rawResponse, flatResponse) => {
|
|
7995
7995
|
currentRawResponse = rawResponse;
|
|
7996
|
-
providedCallback === null || providedCallback ===
|
|
7996
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7997
7997
|
};
|
|
7998
7998
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7999
7999
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8012,8 +8012,8 @@ class StorageTargetOperationsImpl {
|
|
|
8012
8012
|
spec: invalidateOperationSpec,
|
|
8013
8013
|
});
|
|
8014
8014
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8015
|
-
restoreFrom: options === null || options ===
|
|
8016
|
-
intervalInMs: options === null || options ===
|
|
8015
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8016
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8017
8017
|
resourceLocationConfig: "azure-async-operation",
|
|
8018
8018
|
});
|
|
8019
8019
|
yield poller.poll();
|
|
@@ -8030,7 +8030,7 @@ class StorageTargetOperationsImpl {
|
|
|
8030
8030
|
* @param options The options parameters.
|
|
8031
8031
|
*/
|
|
8032
8032
|
beginInvalidateAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
8033
|
-
return tslib.__awaiter(this,
|
|
8033
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8034
8034
|
const poller = yield this.beginInvalidate(resourceGroupName, cacheName, storageTargetName, options);
|
|
8035
8035
|
return poller.pollUntilDone();
|
|
8036
8036
|
});
|
|
@@ -8167,10 +8167,10 @@ class StorageCacheManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8167
8167
|
: `${packageDetails}`;
|
|
8168
8168
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
8169
8169
|
userAgentPrefix,
|
|
8170
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
8170
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
8171
8171
|
super(optionsWithDefaults);
|
|
8172
8172
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
8173
|
-
if ((options === null || options ===
|
|
8173
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
8174
8174
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
8175
8175
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
8176
8176
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -8184,7 +8184,7 @@ class StorageCacheManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8184
8184
|
});
|
|
8185
8185
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
8186
8186
|
credential: credentials,
|
|
8187
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
8187
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
8188
8188
|
challengeCallbacks: {
|
|
8189
8189
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
8190
8190
|
},
|
|
@@ -8215,7 +8215,7 @@ class StorageCacheManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8215
8215
|
const apiVersionPolicy = {
|
|
8216
8216
|
name: "CustomApiVersionPolicy",
|
|
8217
8217
|
sendRequest(request, next) {
|
|
8218
|
-
return tslib.__awaiter(this,
|
|
8218
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8219
8219
|
const param = request.url.split("?");
|
|
8220
8220
|
if (param.length > 1) {
|
|
8221
8221
|
const newParams = param[1].split("&").map((item) => {
|