@azure/arm-storagecache 8.0.1-alpha.20250207.1 → 8.0.1-alpha.20250210.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 === void 0 ? void 0 : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -4151,7 +4151,7 @@ function createLroSpec(inputs) {
|
|
|
4151
4151
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
4152
4152
|
sendPollRequest: (path, options) => {
|
|
4153
4153
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
4154
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
4154
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
4155
4155
|
},
|
|
4156
4156
|
};
|
|
4157
4157
|
}
|
|
@@ -4187,7 +4187,7 @@ class AmlFilesystemsImpl {
|
|
|
4187
4187
|
return this;
|
|
4188
4188
|
},
|
|
4189
4189
|
byPage: (settings) => {
|
|
4190
|
-
if (settings === null || settings ===
|
|
4190
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4191
4191
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4192
4192
|
}
|
|
4193
4193
|
return this.listPagingPage(options, settings);
|
|
@@ -4197,7 +4197,7 @@ class AmlFilesystemsImpl {
|
|
|
4197
4197
|
listPagingPage(options, settings) {
|
|
4198
4198
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4199
4199
|
let result;
|
|
4200
|
-
let continuationToken = settings === null || settings ===
|
|
4200
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4201
4201
|
if (!continuationToken) {
|
|
4202
4202
|
result = yield tslib.__await(this._list(options));
|
|
4203
4203
|
let page = result.value || [];
|
|
@@ -4249,7 +4249,7 @@ class AmlFilesystemsImpl {
|
|
|
4249
4249
|
return this;
|
|
4250
4250
|
},
|
|
4251
4251
|
byPage: (settings) => {
|
|
4252
|
-
if (settings === null || settings ===
|
|
4252
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4253
4253
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4254
4254
|
}
|
|
4255
4255
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -4259,7 +4259,7 @@ class AmlFilesystemsImpl {
|
|
|
4259
4259
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4260
4260
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4261
4261
|
let result;
|
|
4262
|
-
let continuationToken = settings === null || settings ===
|
|
4262
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4263
4263
|
if (!continuationToken) {
|
|
4264
4264
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
4265
4265
|
let page = result.value || [];
|
|
@@ -4319,17 +4319,17 @@ class AmlFilesystemsImpl {
|
|
|
4319
4319
|
* @param options The options parameters.
|
|
4320
4320
|
*/
|
|
4321
4321
|
beginDelete(resourceGroupName, amlFilesystemName, options) {
|
|
4322
|
-
return tslib.__awaiter(this,
|
|
4323
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4322
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4323
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4324
4324
|
return this.client.sendOperationRequest(args, spec);
|
|
4325
4325
|
});
|
|
4326
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4326
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4327
4327
|
var _a;
|
|
4328
4328
|
let currentRawResponse = undefined;
|
|
4329
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4329
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4330
4330
|
const callback = (rawResponse, flatResponse) => {
|
|
4331
4331
|
currentRawResponse = rawResponse;
|
|
4332
|
-
providedCallback === null || providedCallback ===
|
|
4332
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4333
4333
|
};
|
|
4334
4334
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4335
4335
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4348,8 +4348,8 @@ class AmlFilesystemsImpl {
|
|
|
4348
4348
|
spec: deleteOperationSpec$3,
|
|
4349
4349
|
});
|
|
4350
4350
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4351
|
-
restoreFrom: options === null || options ===
|
|
4352
|
-
intervalInMs: options === null || options ===
|
|
4351
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4352
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4353
4353
|
resourceLocationConfig: "location",
|
|
4354
4354
|
});
|
|
4355
4355
|
yield poller.poll();
|
|
@@ -4364,7 +4364,7 @@ class AmlFilesystemsImpl {
|
|
|
4364
4364
|
* @param options The options parameters.
|
|
4365
4365
|
*/
|
|
4366
4366
|
beginDeleteAndWait(resourceGroupName, amlFilesystemName, options) {
|
|
4367
|
-
return tslib.__awaiter(this,
|
|
4367
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4368
4368
|
const poller = yield this.beginDelete(resourceGroupName, amlFilesystemName, options);
|
|
4369
4369
|
return poller.pollUntilDone();
|
|
4370
4370
|
});
|
|
@@ -4389,17 +4389,17 @@ class AmlFilesystemsImpl {
|
|
|
4389
4389
|
* @param options The options parameters.
|
|
4390
4390
|
*/
|
|
4391
4391
|
beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
|
|
4392
|
-
return tslib.__awaiter(this,
|
|
4393
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4392
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4393
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4394
4394
|
return this.client.sendOperationRequest(args, spec);
|
|
4395
4395
|
});
|
|
4396
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4396
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4397
4397
|
var _a;
|
|
4398
4398
|
let currentRawResponse = undefined;
|
|
4399
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4399
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4400
4400
|
const callback = (rawResponse, flatResponse) => {
|
|
4401
4401
|
currentRawResponse = rawResponse;
|
|
4402
|
-
providedCallback === null || providedCallback ===
|
|
4402
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4403
4403
|
};
|
|
4404
4404
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4405
4405
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4418,8 +4418,8 @@ class AmlFilesystemsImpl {
|
|
|
4418
4418
|
spec: createOrUpdateOperationSpec$3,
|
|
4419
4419
|
});
|
|
4420
4420
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4421
|
-
restoreFrom: options === null || options ===
|
|
4422
|
-
intervalInMs: options === null || options ===
|
|
4421
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4422
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4423
4423
|
resourceLocationConfig: "azure-async-operation",
|
|
4424
4424
|
});
|
|
4425
4425
|
yield poller.poll();
|
|
@@ -4436,7 +4436,7 @@ class AmlFilesystemsImpl {
|
|
|
4436
4436
|
* @param options The options parameters.
|
|
4437
4437
|
*/
|
|
4438
4438
|
beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
|
|
4439
|
-
return tslib.__awaiter(this,
|
|
4439
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4440
4440
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options);
|
|
4441
4441
|
return poller.pollUntilDone();
|
|
4442
4442
|
});
|
|
@@ -4451,17 +4451,17 @@ class AmlFilesystemsImpl {
|
|
|
4451
4451
|
* @param options The options parameters.
|
|
4452
4452
|
*/
|
|
4453
4453
|
beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
|
|
4454
|
-
return tslib.__awaiter(this,
|
|
4455
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4454
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4455
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4456
4456
|
return this.client.sendOperationRequest(args, spec);
|
|
4457
4457
|
});
|
|
4458
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4458
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4459
4459
|
var _a;
|
|
4460
4460
|
let currentRawResponse = undefined;
|
|
4461
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4461
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4462
4462
|
const callback = (rawResponse, flatResponse) => {
|
|
4463
4463
|
currentRawResponse = rawResponse;
|
|
4464
|
-
providedCallback === null || providedCallback ===
|
|
4464
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4465
4465
|
};
|
|
4466
4466
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4467
4467
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4480,8 +4480,8 @@ class AmlFilesystemsImpl {
|
|
|
4480
4480
|
spec: updateOperationSpec$2,
|
|
4481
4481
|
});
|
|
4482
4482
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4483
|
-
restoreFrom: options === null || options ===
|
|
4484
|
-
intervalInMs: options === null || options ===
|
|
4483
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4484
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4485
4485
|
resourceLocationConfig: "azure-async-operation",
|
|
4486
4486
|
});
|
|
4487
4487
|
yield poller.poll();
|
|
@@ -4498,7 +4498,7 @@ class AmlFilesystemsImpl {
|
|
|
4498
4498
|
* @param options The options parameters.
|
|
4499
4499
|
*/
|
|
4500
4500
|
beginUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
|
|
4501
|
-
return tslib.__awaiter(this,
|
|
4501
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4502
4502
|
const poller = yield this.beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options);
|
|
4503
4503
|
return poller.pollUntilDone();
|
|
4504
4504
|
});
|
|
@@ -4800,7 +4800,7 @@ class ImportJobsImpl {
|
|
|
4800
4800
|
return this;
|
|
4801
4801
|
},
|
|
4802
4802
|
byPage: (settings) => {
|
|
4803
|
-
if (settings === null || settings ===
|
|
4803
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4804
4804
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4805
4805
|
}
|
|
4806
4806
|
return this.listByAmlFilesystemPagingPage(resourceGroupName, amlFilesystemName, options, settings);
|
|
@@ -4810,7 +4810,7 @@ class ImportJobsImpl {
|
|
|
4810
4810
|
listByAmlFilesystemPagingPage(resourceGroupName, amlFilesystemName, options, settings) {
|
|
4811
4811
|
return tslib.__asyncGenerator(this, arguments, function* listByAmlFilesystemPagingPage_1() {
|
|
4812
4812
|
let result;
|
|
4813
|
-
let continuationToken = settings === null || settings ===
|
|
4813
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4814
4814
|
if (!continuationToken) {
|
|
4815
4815
|
result = yield tslib.__await(this._listByAmlFilesystem(resourceGroupName, amlFilesystemName, options));
|
|
4816
4816
|
let page = result.value || [];
|
|
@@ -4857,17 +4857,17 @@ class ImportJobsImpl {
|
|
|
4857
4857
|
* @param options The options parameters.
|
|
4858
4858
|
*/
|
|
4859
4859
|
beginDelete(resourceGroupName, amlFilesystemName, importJobName, options) {
|
|
4860
|
-
return tslib.__awaiter(this,
|
|
4861
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4860
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4861
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4862
4862
|
return this.client.sendOperationRequest(args, spec);
|
|
4863
4863
|
});
|
|
4864
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4864
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4865
4865
|
var _a;
|
|
4866
4866
|
let currentRawResponse = undefined;
|
|
4867
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4867
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4868
4868
|
const callback = (rawResponse, flatResponse) => {
|
|
4869
4869
|
currentRawResponse = rawResponse;
|
|
4870
|
-
providedCallback === null || providedCallback ===
|
|
4870
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4871
4871
|
};
|
|
4872
4872
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4873
4873
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4886,8 +4886,8 @@ class ImportJobsImpl {
|
|
|
4886
4886
|
spec: deleteOperationSpec$2,
|
|
4887
4887
|
});
|
|
4888
4888
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4889
|
-
restoreFrom: options === null || options ===
|
|
4890
|
-
intervalInMs: options === null || options ===
|
|
4889
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4890
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4891
4891
|
resourceLocationConfig: "location",
|
|
4892
4892
|
});
|
|
4893
4893
|
yield poller.poll();
|
|
@@ -4904,7 +4904,7 @@ class ImportJobsImpl {
|
|
|
4904
4904
|
* @param options The options parameters.
|
|
4905
4905
|
*/
|
|
4906
4906
|
beginDeleteAndWait(resourceGroupName, amlFilesystemName, importJobName, options) {
|
|
4907
|
-
return tslib.__awaiter(this,
|
|
4907
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4908
4908
|
const poller = yield this.beginDelete(resourceGroupName, amlFilesystemName, importJobName, options);
|
|
4909
4909
|
return poller.pollUntilDone();
|
|
4910
4910
|
});
|
|
@@ -4933,17 +4933,17 @@ class ImportJobsImpl {
|
|
|
4933
4933
|
* @param options The options parameters.
|
|
4934
4934
|
*/
|
|
4935
4935
|
beginCreateOrUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
4936
|
-
return tslib.__awaiter(this,
|
|
4937
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4936
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4937
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4938
4938
|
return this.client.sendOperationRequest(args, spec);
|
|
4939
4939
|
});
|
|
4940
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4940
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4941
4941
|
var _a;
|
|
4942
4942
|
let currentRawResponse = undefined;
|
|
4943
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4943
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4944
4944
|
const callback = (rawResponse, flatResponse) => {
|
|
4945
4945
|
currentRawResponse = rawResponse;
|
|
4946
|
-
providedCallback === null || providedCallback ===
|
|
4946
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4947
4947
|
};
|
|
4948
4948
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4949
4949
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4968,8 +4968,8 @@ class ImportJobsImpl {
|
|
|
4968
4968
|
spec: createOrUpdateOperationSpec$2,
|
|
4969
4969
|
});
|
|
4970
4970
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4971
|
-
restoreFrom: options === null || options ===
|
|
4972
|
-
intervalInMs: options === null || options ===
|
|
4971
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4972
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4973
4973
|
resourceLocationConfig: "azure-async-operation",
|
|
4974
4974
|
});
|
|
4975
4975
|
yield poller.poll();
|
|
@@ -4988,7 +4988,7 @@ class ImportJobsImpl {
|
|
|
4988
4988
|
* @param options The options parameters.
|
|
4989
4989
|
*/
|
|
4990
4990
|
beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
4991
|
-
return tslib.__awaiter(this,
|
|
4991
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4992
4992
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options);
|
|
4993
4993
|
return poller.pollUntilDone();
|
|
4994
4994
|
});
|
|
@@ -5005,17 +5005,17 @@ class ImportJobsImpl {
|
|
|
5005
5005
|
* @param options The options parameters.
|
|
5006
5006
|
*/
|
|
5007
5007
|
beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
5008
|
-
return tslib.__awaiter(this,
|
|
5009
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5008
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5009
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5010
5010
|
return this.client.sendOperationRequest(args, spec);
|
|
5011
5011
|
});
|
|
5012
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5012
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5013
5013
|
var _a;
|
|
5014
5014
|
let currentRawResponse = undefined;
|
|
5015
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5015
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5016
5016
|
const callback = (rawResponse, flatResponse) => {
|
|
5017
5017
|
currentRawResponse = rawResponse;
|
|
5018
|
-
providedCallback === null || providedCallback ===
|
|
5018
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5019
5019
|
};
|
|
5020
5020
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5021
5021
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5040,8 +5040,8 @@ class ImportJobsImpl {
|
|
|
5040
5040
|
spec: updateOperationSpec$1,
|
|
5041
5041
|
});
|
|
5042
5042
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5043
|
-
restoreFrom: options === null || options ===
|
|
5044
|
-
intervalInMs: options === null || options ===
|
|
5043
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5044
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5045
5045
|
resourceLocationConfig: "azure-async-operation",
|
|
5046
5046
|
});
|
|
5047
5047
|
yield poller.poll();
|
|
@@ -5060,7 +5060,7 @@ class ImportJobsImpl {
|
|
|
5060
5060
|
* @param options The options parameters.
|
|
5061
5061
|
*/
|
|
5062
5062
|
beginUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
5063
|
-
return tslib.__awaiter(this,
|
|
5063
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5064
5064
|
const poller = yield this.beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options);
|
|
5065
5065
|
return poller.pollUntilDone();
|
|
5066
5066
|
});
|
|
@@ -5282,7 +5282,7 @@ class OperationsImpl {
|
|
|
5282
5282
|
return this;
|
|
5283
5283
|
},
|
|
5284
5284
|
byPage: (settings) => {
|
|
5285
|
-
if (settings === null || settings ===
|
|
5285
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5286
5286
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5287
5287
|
}
|
|
5288
5288
|
return this.listPagingPage(options, settings);
|
|
@@ -5292,7 +5292,7 @@ class OperationsImpl {
|
|
|
5292
5292
|
listPagingPage(options, settings) {
|
|
5293
5293
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5294
5294
|
let result;
|
|
5295
|
-
let continuationToken = settings === null || settings ===
|
|
5295
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5296
5296
|
if (!continuationToken) {
|
|
5297
5297
|
result = yield tslib.__await(this._list(options));
|
|
5298
5298
|
let page = result.value || [];
|
|
@@ -5410,7 +5410,7 @@ class SkusImpl {
|
|
|
5410
5410
|
return this;
|
|
5411
5411
|
},
|
|
5412
5412
|
byPage: (settings) => {
|
|
5413
|
-
if (settings === null || settings ===
|
|
5413
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5414
5414
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5415
5415
|
}
|
|
5416
5416
|
return this.listPagingPage(options, settings);
|
|
@@ -5420,7 +5420,7 @@ class SkusImpl {
|
|
|
5420
5420
|
listPagingPage(options, settings) {
|
|
5421
5421
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5422
5422
|
let result;
|
|
5423
|
-
let continuationToken = settings === null || settings ===
|
|
5423
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5424
5424
|
if (!continuationToken) {
|
|
5425
5425
|
result = yield tslib.__await(this._list(options));
|
|
5426
5426
|
let page = result.value || [];
|
|
@@ -5542,7 +5542,7 @@ class UsageModelsImpl {
|
|
|
5542
5542
|
return this;
|
|
5543
5543
|
},
|
|
5544
5544
|
byPage: (settings) => {
|
|
5545
|
-
if (settings === null || settings ===
|
|
5545
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5546
5546
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5547
5547
|
}
|
|
5548
5548
|
return this.listPagingPage(options, settings);
|
|
@@ -5552,7 +5552,7 @@ class UsageModelsImpl {
|
|
|
5552
5552
|
listPagingPage(options, settings) {
|
|
5553
5553
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5554
5554
|
let result;
|
|
5555
|
-
let continuationToken = settings === null || settings ===
|
|
5555
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5556
5556
|
if (!continuationToken) {
|
|
5557
5557
|
result = yield tslib.__await(this._list(options));
|
|
5558
5558
|
let page = result.value || [];
|
|
@@ -5725,7 +5725,7 @@ class AscUsagesImpl {
|
|
|
5725
5725
|
return this;
|
|
5726
5726
|
},
|
|
5727
5727
|
byPage: (settings) => {
|
|
5728
|
-
if (settings === null || settings ===
|
|
5728
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5729
5729
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5730
5730
|
}
|
|
5731
5731
|
return this.listPagingPage(location, options, settings);
|
|
@@ -5735,7 +5735,7 @@ class AscUsagesImpl {
|
|
|
5735
5735
|
listPagingPage(location, options, settings) {
|
|
5736
5736
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5737
5737
|
let result;
|
|
5738
|
-
let continuationToken = settings === null || settings ===
|
|
5738
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5739
5739
|
if (!continuationToken) {
|
|
5740
5740
|
result = yield tslib.__await(this._list(location, options));
|
|
5741
5741
|
let page = result.value || [];
|
|
@@ -5864,7 +5864,7 @@ class CachesImpl {
|
|
|
5864
5864
|
return this;
|
|
5865
5865
|
},
|
|
5866
5866
|
byPage: (settings) => {
|
|
5867
|
-
if (settings === null || settings ===
|
|
5867
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5868
5868
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5869
5869
|
}
|
|
5870
5870
|
return this.listPagingPage(options, settings);
|
|
@@ -5874,7 +5874,7 @@ class CachesImpl {
|
|
|
5874
5874
|
listPagingPage(options, settings) {
|
|
5875
5875
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5876
5876
|
let result;
|
|
5877
|
-
let continuationToken = settings === null || settings ===
|
|
5877
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5878
5878
|
if (!continuationToken) {
|
|
5879
5879
|
result = yield tslib.__await(this._list(options));
|
|
5880
5880
|
let page = result.value || [];
|
|
@@ -5926,7 +5926,7 @@ class CachesImpl {
|
|
|
5926
5926
|
return this;
|
|
5927
5927
|
},
|
|
5928
5928
|
byPage: (settings) => {
|
|
5929
|
-
if (settings === null || settings ===
|
|
5929
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5930
5930
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5931
5931
|
}
|
|
5932
5932
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5936,7 +5936,7 @@ class CachesImpl {
|
|
|
5936
5936
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5937
5937
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5938
5938
|
let result;
|
|
5939
|
-
let continuationToken = settings === null || settings ===
|
|
5939
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5940
5940
|
if (!continuationToken) {
|
|
5941
5941
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5942
5942
|
let page = result.value || [];
|
|
@@ -5996,17 +5996,17 @@ class CachesImpl {
|
|
|
5996
5996
|
* @param options The options parameters.
|
|
5997
5997
|
*/
|
|
5998
5998
|
beginDelete(resourceGroupName, cacheName, options) {
|
|
5999
|
-
return tslib.__awaiter(this,
|
|
6000
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5999
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6000
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6001
6001
|
return this.client.sendOperationRequest(args, spec);
|
|
6002
6002
|
});
|
|
6003
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6003
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6004
6004
|
var _a;
|
|
6005
6005
|
let currentRawResponse = undefined;
|
|
6006
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6006
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6007
6007
|
const callback = (rawResponse, flatResponse) => {
|
|
6008
6008
|
currentRawResponse = rawResponse;
|
|
6009
|
-
providedCallback === null || providedCallback ===
|
|
6009
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6010
6010
|
};
|
|
6011
6011
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6012
6012
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6025,8 +6025,8 @@ class CachesImpl {
|
|
|
6025
6025
|
spec: deleteOperationSpec$1,
|
|
6026
6026
|
});
|
|
6027
6027
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6028
|
-
restoreFrom: options === null || options ===
|
|
6029
|
-
intervalInMs: options === null || options ===
|
|
6028
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6029
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6030
6030
|
});
|
|
6031
6031
|
yield poller.poll();
|
|
6032
6032
|
return poller;
|
|
@@ -6040,7 +6040,7 @@ class CachesImpl {
|
|
|
6040
6040
|
* @param options The options parameters.
|
|
6041
6041
|
*/
|
|
6042
6042
|
beginDeleteAndWait(resourceGroupName, cacheName, options) {
|
|
6043
|
-
return tslib.__awaiter(this,
|
|
6043
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6044
6044
|
const poller = yield this.beginDelete(resourceGroupName, cacheName, options);
|
|
6045
6045
|
return poller.pollUntilDone();
|
|
6046
6046
|
});
|
|
@@ -6065,17 +6065,17 @@ class CachesImpl {
|
|
|
6065
6065
|
* @param options The options parameters.
|
|
6066
6066
|
*/
|
|
6067
6067
|
beginCreateOrUpdate(resourceGroupName, cacheName, cache, options) {
|
|
6068
|
-
return tslib.__awaiter(this,
|
|
6069
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6068
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6069
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6070
6070
|
return this.client.sendOperationRequest(args, spec);
|
|
6071
6071
|
});
|
|
6072
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6072
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6073
6073
|
var _a;
|
|
6074
6074
|
let currentRawResponse = undefined;
|
|
6075
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6075
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6076
6076
|
const callback = (rawResponse, flatResponse) => {
|
|
6077
6077
|
currentRawResponse = rawResponse;
|
|
6078
|
-
providedCallback === null || providedCallback ===
|
|
6078
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6079
6079
|
};
|
|
6080
6080
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6081
6081
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6094,8 +6094,8 @@ class CachesImpl {
|
|
|
6094
6094
|
spec: createOrUpdateOperationSpec$1,
|
|
6095
6095
|
});
|
|
6096
6096
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6097
|
-
restoreFrom: options === null || options ===
|
|
6098
|
-
intervalInMs: options === null || options ===
|
|
6097
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6098
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6099
6099
|
});
|
|
6100
6100
|
yield poller.poll();
|
|
6101
6101
|
return poller;
|
|
@@ -6111,7 +6111,7 @@ class CachesImpl {
|
|
|
6111
6111
|
* @param options The options parameters.
|
|
6112
6112
|
*/
|
|
6113
6113
|
beginCreateOrUpdateAndWait(resourceGroupName, cacheName, cache, options) {
|
|
6114
|
-
return tslib.__awaiter(this,
|
|
6114
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6115
6115
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cacheName, cache, options);
|
|
6116
6116
|
return poller.pollUntilDone();
|
|
6117
6117
|
});
|
|
@@ -6124,17 +6124,17 @@ class CachesImpl {
|
|
|
6124
6124
|
* @param options The options parameters.
|
|
6125
6125
|
*/
|
|
6126
6126
|
beginUpdate(resourceGroupName, cacheName, options) {
|
|
6127
|
-
return tslib.__awaiter(this,
|
|
6128
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6127
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6128
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6129
6129
|
return this.client.sendOperationRequest(args, spec);
|
|
6130
6130
|
});
|
|
6131
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6131
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6132
6132
|
var _a;
|
|
6133
6133
|
let currentRawResponse = undefined;
|
|
6134
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6134
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6135
6135
|
const callback = (rawResponse, flatResponse) => {
|
|
6136
6136
|
currentRawResponse = rawResponse;
|
|
6137
|
-
providedCallback === null || providedCallback ===
|
|
6137
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6138
6138
|
};
|
|
6139
6139
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6140
6140
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6153,8 +6153,8 @@ class CachesImpl {
|
|
|
6153
6153
|
spec: updateOperationSpec,
|
|
6154
6154
|
});
|
|
6155
6155
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6156
|
-
restoreFrom: options === null || options ===
|
|
6157
|
-
intervalInMs: options === null || options ===
|
|
6156
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6157
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6158
6158
|
resourceLocationConfig: "azure-async-operation",
|
|
6159
6159
|
});
|
|
6160
6160
|
yield poller.poll();
|
|
@@ -6169,7 +6169,7 @@ class CachesImpl {
|
|
|
6169
6169
|
* @param options The options parameters.
|
|
6170
6170
|
*/
|
|
6171
6171
|
beginUpdateAndWait(resourceGroupName, cacheName, options) {
|
|
6172
|
-
return tslib.__awaiter(this,
|
|
6172
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6173
6173
|
const poller = yield this.beginUpdate(resourceGroupName, cacheName, options);
|
|
6174
6174
|
return poller.pollUntilDone();
|
|
6175
6175
|
});
|
|
@@ -6182,17 +6182,17 @@ class CachesImpl {
|
|
|
6182
6182
|
* @param options The options parameters.
|
|
6183
6183
|
*/
|
|
6184
6184
|
beginDebugInfo(resourceGroupName, cacheName, options) {
|
|
6185
|
-
return tslib.__awaiter(this,
|
|
6186
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6185
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6186
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6187
6187
|
return this.client.sendOperationRequest(args, spec);
|
|
6188
6188
|
});
|
|
6189
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6189
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6190
6190
|
var _a;
|
|
6191
6191
|
let currentRawResponse = undefined;
|
|
6192
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6192
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6193
6193
|
const callback = (rawResponse, flatResponse) => {
|
|
6194
6194
|
currentRawResponse = rawResponse;
|
|
6195
|
-
providedCallback === null || providedCallback ===
|
|
6195
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6196
6196
|
};
|
|
6197
6197
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6198
6198
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6211,8 +6211,8 @@ class CachesImpl {
|
|
|
6211
6211
|
spec: debugInfoOperationSpec,
|
|
6212
6212
|
});
|
|
6213
6213
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6214
|
-
restoreFrom: options === null || options ===
|
|
6215
|
-
intervalInMs: options === null || options ===
|
|
6214
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6215
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6216
6216
|
resourceLocationConfig: "azure-async-operation",
|
|
6217
6217
|
});
|
|
6218
6218
|
yield poller.poll();
|
|
@@ -6227,7 +6227,7 @@ class CachesImpl {
|
|
|
6227
6227
|
* @param options The options parameters.
|
|
6228
6228
|
*/
|
|
6229
6229
|
beginDebugInfoAndWait(resourceGroupName, cacheName, options) {
|
|
6230
|
-
return tslib.__awaiter(this,
|
|
6230
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6231
6231
|
const poller = yield this.beginDebugInfo(resourceGroupName, cacheName, options);
|
|
6232
6232
|
return poller.pollUntilDone();
|
|
6233
6233
|
});
|
|
@@ -6241,17 +6241,17 @@ class CachesImpl {
|
|
|
6241
6241
|
* @param options The options parameters.
|
|
6242
6242
|
*/
|
|
6243
6243
|
beginFlush(resourceGroupName, cacheName, options) {
|
|
6244
|
-
return tslib.__awaiter(this,
|
|
6245
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6244
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6245
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6246
6246
|
return this.client.sendOperationRequest(args, spec);
|
|
6247
6247
|
});
|
|
6248
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6248
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6249
6249
|
var _a;
|
|
6250
6250
|
let currentRawResponse = undefined;
|
|
6251
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6251
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6252
6252
|
const callback = (rawResponse, flatResponse) => {
|
|
6253
6253
|
currentRawResponse = rawResponse;
|
|
6254
|
-
providedCallback === null || providedCallback ===
|
|
6254
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6255
6255
|
};
|
|
6256
6256
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6257
6257
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6270,8 +6270,8 @@ class CachesImpl {
|
|
|
6270
6270
|
spec: flushOperationSpec$1,
|
|
6271
6271
|
});
|
|
6272
6272
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6273
|
-
restoreFrom: options === null || options ===
|
|
6274
|
-
intervalInMs: options === null || options ===
|
|
6273
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6274
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6275
6275
|
resourceLocationConfig: "azure-async-operation",
|
|
6276
6276
|
});
|
|
6277
6277
|
yield poller.poll();
|
|
@@ -6287,7 +6287,7 @@ class CachesImpl {
|
|
|
6287
6287
|
* @param options The options parameters.
|
|
6288
6288
|
*/
|
|
6289
6289
|
beginFlushAndWait(resourceGroupName, cacheName, options) {
|
|
6290
|
-
return tslib.__awaiter(this,
|
|
6290
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6291
6291
|
const poller = yield this.beginFlush(resourceGroupName, cacheName, options);
|
|
6292
6292
|
return poller.pollUntilDone();
|
|
6293
6293
|
});
|
|
@@ -6300,17 +6300,17 @@ class CachesImpl {
|
|
|
6300
6300
|
* @param options The options parameters.
|
|
6301
6301
|
*/
|
|
6302
6302
|
beginStart(resourceGroupName, cacheName, options) {
|
|
6303
|
-
return tslib.__awaiter(this,
|
|
6304
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6303
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6304
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6305
6305
|
return this.client.sendOperationRequest(args, spec);
|
|
6306
6306
|
});
|
|
6307
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6307
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6308
6308
|
var _a;
|
|
6309
6309
|
let currentRawResponse = undefined;
|
|
6310
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6310
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6311
6311
|
const callback = (rawResponse, flatResponse) => {
|
|
6312
6312
|
currentRawResponse = rawResponse;
|
|
6313
|
-
providedCallback === null || providedCallback ===
|
|
6313
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6314
6314
|
};
|
|
6315
6315
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6316
6316
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6329,8 +6329,8 @@ class CachesImpl {
|
|
|
6329
6329
|
spec: startOperationSpec,
|
|
6330
6330
|
});
|
|
6331
6331
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6332
|
-
restoreFrom: options === null || options ===
|
|
6333
|
-
intervalInMs: options === null || options ===
|
|
6332
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6333
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6334
6334
|
resourceLocationConfig: "azure-async-operation",
|
|
6335
6335
|
});
|
|
6336
6336
|
yield poller.poll();
|
|
@@ -6345,7 +6345,7 @@ class CachesImpl {
|
|
|
6345
6345
|
* @param options The options parameters.
|
|
6346
6346
|
*/
|
|
6347
6347
|
beginStartAndWait(resourceGroupName, cacheName, options) {
|
|
6348
|
-
return tslib.__awaiter(this,
|
|
6348
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6349
6349
|
const poller = yield this.beginStart(resourceGroupName, cacheName, options);
|
|
6350
6350
|
return poller.pollUntilDone();
|
|
6351
6351
|
});
|
|
@@ -6358,17 +6358,17 @@ class CachesImpl {
|
|
|
6358
6358
|
* @param options The options parameters.
|
|
6359
6359
|
*/
|
|
6360
6360
|
beginStop(resourceGroupName, cacheName, options) {
|
|
6361
|
-
return tslib.__awaiter(this,
|
|
6362
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6361
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6362
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6363
6363
|
return this.client.sendOperationRequest(args, spec);
|
|
6364
6364
|
});
|
|
6365
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6365
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6366
6366
|
var _a;
|
|
6367
6367
|
let currentRawResponse = undefined;
|
|
6368
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6368
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6369
6369
|
const callback = (rawResponse, flatResponse) => {
|
|
6370
6370
|
currentRawResponse = rawResponse;
|
|
6371
|
-
providedCallback === null || providedCallback ===
|
|
6371
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6372
6372
|
};
|
|
6373
6373
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6374
6374
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6387,8 +6387,8 @@ class CachesImpl {
|
|
|
6387
6387
|
spec: stopOperationSpec,
|
|
6388
6388
|
});
|
|
6389
6389
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6390
|
-
restoreFrom: options === null || options ===
|
|
6391
|
-
intervalInMs: options === null || options ===
|
|
6390
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6391
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6392
6392
|
resourceLocationConfig: "azure-async-operation",
|
|
6393
6393
|
});
|
|
6394
6394
|
yield poller.poll();
|
|
@@ -6403,7 +6403,7 @@ class CachesImpl {
|
|
|
6403
6403
|
* @param options The options parameters.
|
|
6404
6404
|
*/
|
|
6405
6405
|
beginStopAndWait(resourceGroupName, cacheName, options) {
|
|
6406
|
-
return tslib.__awaiter(this,
|
|
6406
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6407
6407
|
const poller = yield this.beginStop(resourceGroupName, cacheName, options);
|
|
6408
6408
|
return poller.pollUntilDone();
|
|
6409
6409
|
});
|
|
@@ -6416,17 +6416,17 @@ class CachesImpl {
|
|
|
6416
6416
|
* @param options The options parameters.
|
|
6417
6417
|
*/
|
|
6418
6418
|
beginStartPrimingJob(resourceGroupName, cacheName, options) {
|
|
6419
|
-
return tslib.__awaiter(this,
|
|
6420
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6419
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6420
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6421
6421
|
return this.client.sendOperationRequest(args, spec);
|
|
6422
6422
|
});
|
|
6423
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6423
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6424
6424
|
var _a;
|
|
6425
6425
|
let currentRawResponse = undefined;
|
|
6426
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6426
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6427
6427
|
const callback = (rawResponse, flatResponse) => {
|
|
6428
6428
|
currentRawResponse = rawResponse;
|
|
6429
|
-
providedCallback === null || providedCallback ===
|
|
6429
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6430
6430
|
};
|
|
6431
6431
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6432
6432
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6445,8 +6445,8 @@ class CachesImpl {
|
|
|
6445
6445
|
spec: startPrimingJobOperationSpec,
|
|
6446
6446
|
});
|
|
6447
6447
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6448
|
-
restoreFrom: options === null || options ===
|
|
6449
|
-
intervalInMs: options === null || options ===
|
|
6448
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6449
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6450
6450
|
resourceLocationConfig: "azure-async-operation",
|
|
6451
6451
|
});
|
|
6452
6452
|
yield poller.poll();
|
|
@@ -6461,7 +6461,7 @@ class CachesImpl {
|
|
|
6461
6461
|
* @param options The options parameters.
|
|
6462
6462
|
*/
|
|
6463
6463
|
beginStartPrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
6464
|
-
return tslib.__awaiter(this,
|
|
6464
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6465
6465
|
const poller = yield this.beginStartPrimingJob(resourceGroupName, cacheName, options);
|
|
6466
6466
|
return poller.pollUntilDone();
|
|
6467
6467
|
});
|
|
@@ -6474,17 +6474,17 @@ class CachesImpl {
|
|
|
6474
6474
|
* @param options The options parameters.
|
|
6475
6475
|
*/
|
|
6476
6476
|
beginStopPrimingJob(resourceGroupName, cacheName, options) {
|
|
6477
|
-
return tslib.__awaiter(this,
|
|
6478
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6477
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6478
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6479
6479
|
return this.client.sendOperationRequest(args, spec);
|
|
6480
6480
|
});
|
|
6481
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6481
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6482
6482
|
var _a;
|
|
6483
6483
|
let currentRawResponse = undefined;
|
|
6484
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6484
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6485
6485
|
const callback = (rawResponse, flatResponse) => {
|
|
6486
6486
|
currentRawResponse = rawResponse;
|
|
6487
|
-
providedCallback === null || providedCallback ===
|
|
6487
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6488
6488
|
};
|
|
6489
6489
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6490
6490
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6503,8 +6503,8 @@ class CachesImpl {
|
|
|
6503
6503
|
spec: stopPrimingJobOperationSpec,
|
|
6504
6504
|
});
|
|
6505
6505
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6506
|
-
restoreFrom: options === null || options ===
|
|
6507
|
-
intervalInMs: options === null || options ===
|
|
6506
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6507
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6508
6508
|
resourceLocationConfig: "azure-async-operation",
|
|
6509
6509
|
});
|
|
6510
6510
|
yield poller.poll();
|
|
@@ -6519,7 +6519,7 @@ class CachesImpl {
|
|
|
6519
6519
|
* @param options The options parameters.
|
|
6520
6520
|
*/
|
|
6521
6521
|
beginStopPrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
6522
|
-
return tslib.__awaiter(this,
|
|
6522
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6523
6523
|
const poller = yield this.beginStopPrimingJob(resourceGroupName, cacheName, options);
|
|
6524
6524
|
return poller.pollUntilDone();
|
|
6525
6525
|
});
|
|
@@ -6532,17 +6532,17 @@ class CachesImpl {
|
|
|
6532
6532
|
* @param options The options parameters.
|
|
6533
6533
|
*/
|
|
6534
6534
|
beginPausePrimingJob(resourceGroupName, cacheName, options) {
|
|
6535
|
-
return tslib.__awaiter(this,
|
|
6536
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6535
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6536
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6537
6537
|
return this.client.sendOperationRequest(args, spec);
|
|
6538
6538
|
});
|
|
6539
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6539
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6540
6540
|
var _a;
|
|
6541
6541
|
let currentRawResponse = undefined;
|
|
6542
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6542
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6543
6543
|
const callback = (rawResponse, flatResponse) => {
|
|
6544
6544
|
currentRawResponse = rawResponse;
|
|
6545
|
-
providedCallback === null || providedCallback ===
|
|
6545
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6546
6546
|
};
|
|
6547
6547
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6548
6548
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6561,8 +6561,8 @@ class CachesImpl {
|
|
|
6561
6561
|
spec: pausePrimingJobOperationSpec,
|
|
6562
6562
|
});
|
|
6563
6563
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6564
|
-
restoreFrom: options === null || options ===
|
|
6565
|
-
intervalInMs: options === null || options ===
|
|
6564
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6565
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6566
6566
|
resourceLocationConfig: "azure-async-operation",
|
|
6567
6567
|
});
|
|
6568
6568
|
yield poller.poll();
|
|
@@ -6577,7 +6577,7 @@ class CachesImpl {
|
|
|
6577
6577
|
* @param options The options parameters.
|
|
6578
6578
|
*/
|
|
6579
6579
|
beginPausePrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
6580
|
-
return tslib.__awaiter(this,
|
|
6580
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6581
6581
|
const poller = yield this.beginPausePrimingJob(resourceGroupName, cacheName, options);
|
|
6582
6582
|
return poller.pollUntilDone();
|
|
6583
6583
|
});
|
|
@@ -6590,17 +6590,17 @@ class CachesImpl {
|
|
|
6590
6590
|
* @param options The options parameters.
|
|
6591
6591
|
*/
|
|
6592
6592
|
beginResumePrimingJob(resourceGroupName, cacheName, options) {
|
|
6593
|
-
return tslib.__awaiter(this,
|
|
6594
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6593
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6594
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6595
6595
|
return this.client.sendOperationRequest(args, spec);
|
|
6596
6596
|
});
|
|
6597
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6597
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6598
6598
|
var _a;
|
|
6599
6599
|
let currentRawResponse = undefined;
|
|
6600
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6600
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6601
6601
|
const callback = (rawResponse, flatResponse) => {
|
|
6602
6602
|
currentRawResponse = rawResponse;
|
|
6603
|
-
providedCallback === null || providedCallback ===
|
|
6603
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6604
6604
|
};
|
|
6605
6605
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6606
6606
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6619,8 +6619,8 @@ class CachesImpl {
|
|
|
6619
6619
|
spec: resumePrimingJobOperationSpec,
|
|
6620
6620
|
});
|
|
6621
6621
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6622
|
-
restoreFrom: options === null || options ===
|
|
6623
|
-
intervalInMs: options === null || options ===
|
|
6622
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6623
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6624
6624
|
resourceLocationConfig: "azure-async-operation",
|
|
6625
6625
|
});
|
|
6626
6626
|
yield poller.poll();
|
|
@@ -6635,7 +6635,7 @@ class CachesImpl {
|
|
|
6635
6635
|
* @param options The options parameters.
|
|
6636
6636
|
*/
|
|
6637
6637
|
beginResumePrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
6638
|
-
return tslib.__awaiter(this,
|
|
6638
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6639
6639
|
const poller = yield this.beginResumePrimingJob(resourceGroupName, cacheName, options);
|
|
6640
6640
|
return poller.pollUntilDone();
|
|
6641
6641
|
});
|
|
@@ -6648,17 +6648,17 @@ class CachesImpl {
|
|
|
6648
6648
|
* @param options The options parameters.
|
|
6649
6649
|
*/
|
|
6650
6650
|
beginUpgradeFirmware(resourceGroupName, cacheName, options) {
|
|
6651
|
-
return tslib.__awaiter(this,
|
|
6652
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6651
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6652
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6653
6653
|
return this.client.sendOperationRequest(args, spec);
|
|
6654
6654
|
});
|
|
6655
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6655
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6656
6656
|
var _a;
|
|
6657
6657
|
let currentRawResponse = undefined;
|
|
6658
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6658
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6659
6659
|
const callback = (rawResponse, flatResponse) => {
|
|
6660
6660
|
currentRawResponse = rawResponse;
|
|
6661
|
-
providedCallback === null || providedCallback ===
|
|
6661
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6662
6662
|
};
|
|
6663
6663
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6664
6664
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6677,8 +6677,8 @@ class CachesImpl {
|
|
|
6677
6677
|
spec: upgradeFirmwareOperationSpec,
|
|
6678
6678
|
});
|
|
6679
6679
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6680
|
-
restoreFrom: options === null || options ===
|
|
6681
|
-
intervalInMs: options === null || options ===
|
|
6680
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6681
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6682
6682
|
resourceLocationConfig: "azure-async-operation",
|
|
6683
6683
|
});
|
|
6684
6684
|
yield poller.poll();
|
|
@@ -6693,7 +6693,7 @@ class CachesImpl {
|
|
|
6693
6693
|
* @param options The options parameters.
|
|
6694
6694
|
*/
|
|
6695
6695
|
beginUpgradeFirmwareAndWait(resourceGroupName, cacheName, options) {
|
|
6696
|
-
return tslib.__awaiter(this,
|
|
6696
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6697
6697
|
const poller = yield this.beginUpgradeFirmware(resourceGroupName, cacheName, options);
|
|
6698
6698
|
return poller.pollUntilDone();
|
|
6699
6699
|
});
|
|
@@ -6706,17 +6706,17 @@ class CachesImpl {
|
|
|
6706
6706
|
* @param options The options parameters.
|
|
6707
6707
|
*/
|
|
6708
6708
|
beginSpaceAllocation(resourceGroupName, cacheName, options) {
|
|
6709
|
-
return tslib.__awaiter(this,
|
|
6710
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6709
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6710
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6711
6711
|
return this.client.sendOperationRequest(args, spec);
|
|
6712
6712
|
});
|
|
6713
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6713
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6714
6714
|
var _a;
|
|
6715
6715
|
let currentRawResponse = undefined;
|
|
6716
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6716
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6717
6717
|
const callback = (rawResponse, flatResponse) => {
|
|
6718
6718
|
currentRawResponse = rawResponse;
|
|
6719
|
-
providedCallback === null || providedCallback ===
|
|
6719
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6720
6720
|
};
|
|
6721
6721
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6722
6722
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6735,8 +6735,8 @@ class CachesImpl {
|
|
|
6735
6735
|
spec: spaceAllocationOperationSpec,
|
|
6736
6736
|
});
|
|
6737
6737
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6738
|
-
restoreFrom: options === null || options ===
|
|
6739
|
-
intervalInMs: options === null || options ===
|
|
6738
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6739
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6740
6740
|
resourceLocationConfig: "azure-async-operation",
|
|
6741
6741
|
});
|
|
6742
6742
|
yield poller.poll();
|
|
@@ -6751,7 +6751,7 @@ class CachesImpl {
|
|
|
6751
6751
|
* @param options The options parameters.
|
|
6752
6752
|
*/
|
|
6753
6753
|
beginSpaceAllocationAndWait(resourceGroupName, cacheName, options) {
|
|
6754
|
-
return tslib.__awaiter(this,
|
|
6754
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6755
6755
|
const poller = yield this.beginSpaceAllocation(resourceGroupName, cacheName, options);
|
|
6756
6756
|
return poller.pollUntilDone();
|
|
6757
6757
|
});
|
|
@@ -7263,7 +7263,7 @@ class StorageTargetsImpl {
|
|
|
7263
7263
|
return this;
|
|
7264
7264
|
},
|
|
7265
7265
|
byPage: (settings) => {
|
|
7266
|
-
if (settings === null || settings ===
|
|
7266
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7267
7267
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7268
7268
|
}
|
|
7269
7269
|
return this.listByCachePagingPage(resourceGroupName, cacheName, options, settings);
|
|
@@ -7273,7 +7273,7 @@ class StorageTargetsImpl {
|
|
|
7273
7273
|
listByCachePagingPage(resourceGroupName, cacheName, options, settings) {
|
|
7274
7274
|
return tslib.__asyncGenerator(this, arguments, function* listByCachePagingPage_1() {
|
|
7275
7275
|
let result;
|
|
7276
|
-
let continuationToken = settings === null || settings ===
|
|
7276
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7277
7277
|
if (!continuationToken) {
|
|
7278
7278
|
result = yield tslib.__await(this._listByCache(resourceGroupName, cacheName, options));
|
|
7279
7279
|
let page = result.value || [];
|
|
@@ -7319,17 +7319,17 @@ class StorageTargetsImpl {
|
|
|
7319
7319
|
* @param options The options parameters.
|
|
7320
7320
|
*/
|
|
7321
7321
|
beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7322
|
-
return tslib.__awaiter(this,
|
|
7323
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7322
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7323
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7324
7324
|
return this.client.sendOperationRequest(args, spec);
|
|
7325
7325
|
});
|
|
7326
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7326
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7327
7327
|
var _a;
|
|
7328
7328
|
let currentRawResponse = undefined;
|
|
7329
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7329
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7330
7330
|
const callback = (rawResponse, flatResponse) => {
|
|
7331
7331
|
currentRawResponse = rawResponse;
|
|
7332
|
-
providedCallback === null || providedCallback ===
|
|
7332
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7333
7333
|
};
|
|
7334
7334
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7335
7335
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7348,8 +7348,8 @@ class StorageTargetsImpl {
|
|
|
7348
7348
|
spec: dnsRefreshOperationSpec,
|
|
7349
7349
|
});
|
|
7350
7350
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7351
|
-
restoreFrom: options === null || options ===
|
|
7352
|
-
intervalInMs: options === null || options ===
|
|
7351
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7352
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7353
7353
|
resourceLocationConfig: "azure-async-operation",
|
|
7354
7354
|
});
|
|
7355
7355
|
yield poller.poll();
|
|
@@ -7365,7 +7365,7 @@ class StorageTargetsImpl {
|
|
|
7365
7365
|
* @param options The options parameters.
|
|
7366
7366
|
*/
|
|
7367
7367
|
beginDnsRefreshAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7368
|
-
return tslib.__awaiter(this,
|
|
7368
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7369
7369
|
const poller = yield this.beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options);
|
|
7370
7370
|
return poller.pollUntilDone();
|
|
7371
7371
|
});
|
|
@@ -7392,17 +7392,17 @@ class StorageTargetsImpl {
|
|
|
7392
7392
|
* @param options The options parameters.
|
|
7393
7393
|
*/
|
|
7394
7394
|
beginDelete(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7395
|
-
return tslib.__awaiter(this,
|
|
7396
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7395
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7396
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7397
7397
|
return this.client.sendOperationRequest(args, spec);
|
|
7398
7398
|
});
|
|
7399
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7399
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7400
7400
|
var _a;
|
|
7401
7401
|
let currentRawResponse = undefined;
|
|
7402
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7402
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7403
7403
|
const callback = (rawResponse, flatResponse) => {
|
|
7404
7404
|
currentRawResponse = rawResponse;
|
|
7405
|
-
providedCallback === null || providedCallback ===
|
|
7405
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7406
7406
|
};
|
|
7407
7407
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7408
7408
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7421,8 +7421,8 @@ class StorageTargetsImpl {
|
|
|
7421
7421
|
spec: deleteOperationSpec,
|
|
7422
7422
|
});
|
|
7423
7423
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7424
|
-
restoreFrom: options === null || options ===
|
|
7425
|
-
intervalInMs: options === null || options ===
|
|
7424
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7425
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7426
7426
|
});
|
|
7427
7427
|
yield poller.poll();
|
|
7428
7428
|
return poller;
|
|
@@ -7440,7 +7440,7 @@ class StorageTargetsImpl {
|
|
|
7440
7440
|
* @param options The options parameters.
|
|
7441
7441
|
*/
|
|
7442
7442
|
beginDeleteAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7443
|
-
return tslib.__awaiter(this,
|
|
7443
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7444
7444
|
const poller = yield this.beginDelete(resourceGroupName, cacheName, storageTargetName, options);
|
|
7445
7445
|
return poller.pollUntilDone();
|
|
7446
7446
|
});
|
|
@@ -7468,17 +7468,17 @@ class StorageTargetsImpl {
|
|
|
7468
7468
|
* @param options The options parameters.
|
|
7469
7469
|
*/
|
|
7470
7470
|
beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
|
|
7471
|
-
return tslib.__awaiter(this,
|
|
7472
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7471
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7472
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7473
7473
|
return this.client.sendOperationRequest(args, spec);
|
|
7474
7474
|
});
|
|
7475
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7475
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7476
7476
|
var _a;
|
|
7477
7477
|
let currentRawResponse = undefined;
|
|
7478
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7478
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7479
7479
|
const callback = (rawResponse, flatResponse) => {
|
|
7480
7480
|
currentRawResponse = rawResponse;
|
|
7481
|
-
providedCallback === null || providedCallback ===
|
|
7481
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7482
7482
|
};
|
|
7483
7483
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7484
7484
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7503,8 +7503,8 @@ class StorageTargetsImpl {
|
|
|
7503
7503
|
spec: createOrUpdateOperationSpec,
|
|
7504
7504
|
});
|
|
7505
7505
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7506
|
-
restoreFrom: options === null || options ===
|
|
7507
|
-
intervalInMs: options === null || options ===
|
|
7506
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7507
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7508
7508
|
});
|
|
7509
7509
|
yield poller.poll();
|
|
7510
7510
|
return poller;
|
|
@@ -7522,7 +7522,7 @@ class StorageTargetsImpl {
|
|
|
7522
7522
|
* @param options The options parameters.
|
|
7523
7523
|
*/
|
|
7524
7524
|
beginCreateOrUpdateAndWait(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
|
|
7525
|
-
return tslib.__awaiter(this,
|
|
7525
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7526
7526
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, storagetarget, options);
|
|
7527
7527
|
return poller.pollUntilDone();
|
|
7528
7528
|
});
|
|
@@ -7536,17 +7536,17 @@ class StorageTargetsImpl {
|
|
|
7536
7536
|
* @param options The options parameters.
|
|
7537
7537
|
*/
|
|
7538
7538
|
beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7539
|
-
return tslib.__awaiter(this,
|
|
7540
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7539
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7540
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7541
7541
|
return this.client.sendOperationRequest(args, spec);
|
|
7542
7542
|
});
|
|
7543
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7543
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7544
7544
|
var _a;
|
|
7545
7545
|
let currentRawResponse = undefined;
|
|
7546
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7546
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7547
7547
|
const callback = (rawResponse, flatResponse) => {
|
|
7548
7548
|
currentRawResponse = rawResponse;
|
|
7549
|
-
providedCallback === null || providedCallback ===
|
|
7549
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7550
7550
|
};
|
|
7551
7551
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7552
7552
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7565,8 +7565,8 @@ class StorageTargetsImpl {
|
|
|
7565
7565
|
spec: restoreDefaultsOperationSpec,
|
|
7566
7566
|
});
|
|
7567
7567
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7568
|
-
restoreFrom: options === null || options ===
|
|
7569
|
-
intervalInMs: options === null || options ===
|
|
7568
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7569
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7570
7570
|
resourceLocationConfig: "location",
|
|
7571
7571
|
});
|
|
7572
7572
|
yield poller.poll();
|
|
@@ -7582,7 +7582,7 @@ class StorageTargetsImpl {
|
|
|
7582
7582
|
* @param options The options parameters.
|
|
7583
7583
|
*/
|
|
7584
7584
|
beginRestoreDefaultsAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7585
|
-
return tslib.__awaiter(this,
|
|
7585
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7586
7586
|
const poller = yield this.beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options);
|
|
7587
7587
|
return poller.pollUntilDone();
|
|
7588
7588
|
});
|
|
@@ -7794,17 +7794,17 @@ class StorageTargetOperationsImpl {
|
|
|
7794
7794
|
* @param options The options parameters.
|
|
7795
7795
|
*/
|
|
7796
7796
|
beginFlush(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7797
|
-
return tslib.__awaiter(this,
|
|
7798
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7797
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7798
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7799
7799
|
return this.client.sendOperationRequest(args, spec);
|
|
7800
7800
|
});
|
|
7801
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7801
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7802
7802
|
var _a;
|
|
7803
7803
|
let currentRawResponse = undefined;
|
|
7804
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7804
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7805
7805
|
const callback = (rawResponse, flatResponse) => {
|
|
7806
7806
|
currentRawResponse = rawResponse;
|
|
7807
|
-
providedCallback === null || providedCallback ===
|
|
7807
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7808
7808
|
};
|
|
7809
7809
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7810
7810
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7823,8 +7823,8 @@ class StorageTargetOperationsImpl {
|
|
|
7823
7823
|
spec: flushOperationSpec,
|
|
7824
7824
|
});
|
|
7825
7825
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7826
|
-
restoreFrom: options === null || options ===
|
|
7827
|
-
intervalInMs: options === null || options ===
|
|
7826
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7827
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7828
7828
|
resourceLocationConfig: "azure-async-operation",
|
|
7829
7829
|
});
|
|
7830
7830
|
yield poller.poll();
|
|
@@ -7841,7 +7841,7 @@ class StorageTargetOperationsImpl {
|
|
|
7841
7841
|
* @param options The options parameters.
|
|
7842
7842
|
*/
|
|
7843
7843
|
beginFlushAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7844
|
-
return tslib.__awaiter(this,
|
|
7844
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7845
7845
|
const poller = yield this.beginFlush(resourceGroupName, cacheName, storageTargetName, options);
|
|
7846
7846
|
return poller.pollUntilDone();
|
|
7847
7847
|
});
|
|
@@ -7855,17 +7855,17 @@ class StorageTargetOperationsImpl {
|
|
|
7855
7855
|
* @param options The options parameters.
|
|
7856
7856
|
*/
|
|
7857
7857
|
beginSuspend(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7858
|
-
return tslib.__awaiter(this,
|
|
7859
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7858
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7859
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7860
7860
|
return this.client.sendOperationRequest(args, spec);
|
|
7861
7861
|
});
|
|
7862
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7862
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7863
7863
|
var _a;
|
|
7864
7864
|
let currentRawResponse = undefined;
|
|
7865
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7865
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7866
7866
|
const callback = (rawResponse, flatResponse) => {
|
|
7867
7867
|
currentRawResponse = rawResponse;
|
|
7868
|
-
providedCallback === null || providedCallback ===
|
|
7868
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7869
7869
|
};
|
|
7870
7870
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7871
7871
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7884,8 +7884,8 @@ class StorageTargetOperationsImpl {
|
|
|
7884
7884
|
spec: suspendOperationSpec,
|
|
7885
7885
|
});
|
|
7886
7886
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7887
|
-
restoreFrom: options === null || options ===
|
|
7888
|
-
intervalInMs: options === null || options ===
|
|
7887
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7888
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7889
7889
|
resourceLocationConfig: "azure-async-operation",
|
|
7890
7890
|
});
|
|
7891
7891
|
yield poller.poll();
|
|
@@ -7901,7 +7901,7 @@ class StorageTargetOperationsImpl {
|
|
|
7901
7901
|
* @param options The options parameters.
|
|
7902
7902
|
*/
|
|
7903
7903
|
beginSuspendAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7904
|
-
return tslib.__awaiter(this,
|
|
7904
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7905
7905
|
const poller = yield this.beginSuspend(resourceGroupName, cacheName, storageTargetName, options);
|
|
7906
7906
|
return poller.pollUntilDone();
|
|
7907
7907
|
});
|
|
@@ -7915,17 +7915,17 @@ class StorageTargetOperationsImpl {
|
|
|
7915
7915
|
* @param options The options parameters.
|
|
7916
7916
|
*/
|
|
7917
7917
|
beginResume(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7918
|
-
return tslib.__awaiter(this,
|
|
7919
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7918
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7919
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7920
7920
|
return this.client.sendOperationRequest(args, spec);
|
|
7921
7921
|
});
|
|
7922
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7922
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7923
7923
|
var _a;
|
|
7924
7924
|
let currentRawResponse = undefined;
|
|
7925
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7925
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7926
7926
|
const callback = (rawResponse, flatResponse) => {
|
|
7927
7927
|
currentRawResponse = rawResponse;
|
|
7928
|
-
providedCallback === null || providedCallback ===
|
|
7928
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7929
7929
|
};
|
|
7930
7930
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7931
7931
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7944,8 +7944,8 @@ class StorageTargetOperationsImpl {
|
|
|
7944
7944
|
spec: resumeOperationSpec,
|
|
7945
7945
|
});
|
|
7946
7946
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7947
|
-
restoreFrom: options === null || options ===
|
|
7948
|
-
intervalInMs: options === null || options ===
|
|
7947
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7948
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7949
7949
|
resourceLocationConfig: "azure-async-operation",
|
|
7950
7950
|
});
|
|
7951
7951
|
yield poller.poll();
|
|
@@ -7961,7 +7961,7 @@ class StorageTargetOperationsImpl {
|
|
|
7961
7961
|
* @param options The options parameters.
|
|
7962
7962
|
*/
|
|
7963
7963
|
beginResumeAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7964
|
-
return tslib.__awaiter(this,
|
|
7964
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7965
7965
|
const poller = yield this.beginResume(resourceGroupName, cacheName, storageTargetName, options);
|
|
7966
7966
|
return poller.pollUntilDone();
|
|
7967
7967
|
});
|
|
@@ -7976,17 +7976,17 @@ class StorageTargetOperationsImpl {
|
|
|
7976
7976
|
* @param options The options parameters.
|
|
7977
7977
|
*/
|
|
7978
7978
|
beginInvalidate(resourceGroupName, cacheName, storageTargetName, options) {
|
|
7979
|
-
return tslib.__awaiter(this,
|
|
7980
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7979
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7980
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7981
7981
|
return this.client.sendOperationRequest(args, spec);
|
|
7982
7982
|
});
|
|
7983
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7983
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7984
7984
|
var _a;
|
|
7985
7985
|
let currentRawResponse = undefined;
|
|
7986
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7986
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7987
7987
|
const callback = (rawResponse, flatResponse) => {
|
|
7988
7988
|
currentRawResponse = rawResponse;
|
|
7989
|
-
providedCallback === null || providedCallback ===
|
|
7989
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7990
7990
|
};
|
|
7991
7991
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7992
7992
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8005,8 +8005,8 @@ class StorageTargetOperationsImpl {
|
|
|
8005
8005
|
spec: invalidateOperationSpec,
|
|
8006
8006
|
});
|
|
8007
8007
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8008
|
-
restoreFrom: options === null || options ===
|
|
8009
|
-
intervalInMs: options === null || options ===
|
|
8008
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8009
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8010
8010
|
resourceLocationConfig: "azure-async-operation",
|
|
8011
8011
|
});
|
|
8012
8012
|
yield poller.poll();
|
|
@@ -8023,7 +8023,7 @@ class StorageTargetOperationsImpl {
|
|
|
8023
8023
|
* @param options The options parameters.
|
|
8024
8024
|
*/
|
|
8025
8025
|
beginInvalidateAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
8026
|
-
return tslib.__awaiter(this,
|
|
8026
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8027
8027
|
const poller = yield this.beginInvalidate(resourceGroupName, cacheName, storageTargetName, options);
|
|
8028
8028
|
return poller.pollUntilDone();
|
|
8029
8029
|
});
|
|
@@ -8160,10 +8160,10 @@ class StorageCacheManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8160
8160
|
: `${packageDetails}`;
|
|
8161
8161
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
8162
8162
|
userAgentPrefix,
|
|
8163
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
8163
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
8164
8164
|
super(optionsWithDefaults);
|
|
8165
8165
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
8166
|
-
if ((options === null || options ===
|
|
8166
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
8167
8167
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
8168
8168
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
8169
8169
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -8177,7 +8177,7 @@ class StorageCacheManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8177
8177
|
});
|
|
8178
8178
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
8179
8179
|
credential: credentials,
|
|
8180
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
8180
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
8181
8181
|
challengeCallbacks: {
|
|
8182
8182
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
8183
8183
|
},
|
|
@@ -8208,7 +8208,7 @@ class StorageCacheManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8208
8208
|
const apiVersionPolicy = {
|
|
8209
8209
|
name: "CustomApiVersionPolicy",
|
|
8210
8210
|
sendRequest(request, next) {
|
|
8211
|
-
return tslib.__awaiter(this,
|
|
8211
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8212
8212
|
const param = request.url.split("?");
|
|
8213
8213
|
if (param.length > 1) {
|
|
8214
8214
|
const newParams = param[1].split("&").map((item) => {
|