@azure/arm-storage 18.3.1-alpha.20250206.1 → 18.3.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 +126 -126
- 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
|
}
|
|
@@ -8427,7 +8427,7 @@ class BlobServicesImpl {
|
|
|
8427
8427
|
return this;
|
|
8428
8428
|
},
|
|
8429
8429
|
byPage: (settings) => {
|
|
8430
|
-
if (settings === null || settings ===
|
|
8430
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8431
8431
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8432
8432
|
}
|
|
8433
8433
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -8571,7 +8571,7 @@ function createLroSpec(inputs) {
|
|
|
8571
8571
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
8572
8572
|
sendPollRequest: (path, options) => {
|
|
8573
8573
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
8574
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
8574
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
8575
8575
|
},
|
|
8576
8576
|
};
|
|
8577
8577
|
}
|
|
@@ -8613,7 +8613,7 @@ class BlobContainersImpl {
|
|
|
8613
8613
|
return this;
|
|
8614
8614
|
},
|
|
8615
8615
|
byPage: (settings) => {
|
|
8616
|
-
if (settings === null || settings ===
|
|
8616
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8617
8617
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8618
8618
|
}
|
|
8619
8619
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -8623,7 +8623,7 @@ class BlobContainersImpl {
|
|
|
8623
8623
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
8624
8624
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8625
8625
|
let result;
|
|
8626
|
-
let continuationToken = settings === null || settings ===
|
|
8626
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8627
8627
|
if (!continuationToken) {
|
|
8628
8628
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
8629
8629
|
let page = result.value || [];
|
|
@@ -8908,17 +8908,17 @@ class BlobContainersImpl {
|
|
|
8908
8908
|
* @param options The options parameters.
|
|
8909
8909
|
*/
|
|
8910
8910
|
beginObjectLevelWorm(resourceGroupName, accountName, containerName, options) {
|
|
8911
|
-
return tslib.__awaiter(this,
|
|
8912
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8911
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8912
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8913
8913
|
return this.client.sendOperationRequest(args, spec);
|
|
8914
8914
|
});
|
|
8915
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8915
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8916
8916
|
var _a;
|
|
8917
8917
|
let currentRawResponse = undefined;
|
|
8918
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8918
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8919
8919
|
const callback = (rawResponse, flatResponse) => {
|
|
8920
8920
|
currentRawResponse = rawResponse;
|
|
8921
|
-
providedCallback === null || providedCallback ===
|
|
8921
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8922
8922
|
};
|
|
8923
8923
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8924
8924
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8937,8 +8937,8 @@ class BlobContainersImpl {
|
|
|
8937
8937
|
spec: objectLevelWormOperationSpec,
|
|
8938
8938
|
});
|
|
8939
8939
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8940
|
-
restoreFrom: options === null || options ===
|
|
8941
|
-
intervalInMs: options === null || options ===
|
|
8940
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8941
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8942
8942
|
resourceLocationConfig: "location",
|
|
8943
8943
|
});
|
|
8944
8944
|
yield poller.poll();
|
|
@@ -8962,7 +8962,7 @@ class BlobContainersImpl {
|
|
|
8962
8962
|
* @param options The options parameters.
|
|
8963
8963
|
*/
|
|
8964
8964
|
beginObjectLevelWormAndWait(resourceGroupName, accountName, containerName, options) {
|
|
8965
|
-
return tslib.__awaiter(this,
|
|
8965
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8966
8966
|
const poller = yield this.beginObjectLevelWorm(resourceGroupName, accountName, containerName, options);
|
|
8967
8967
|
return poller.pollUntilDone();
|
|
8968
8968
|
});
|
|
@@ -9467,7 +9467,7 @@ class FileSharesImpl {
|
|
|
9467
9467
|
return this;
|
|
9468
9468
|
},
|
|
9469
9469
|
byPage: (settings) => {
|
|
9470
|
-
if (settings === null || settings ===
|
|
9470
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
9471
9471
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9472
9472
|
}
|
|
9473
9473
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -9477,7 +9477,7 @@ class FileSharesImpl {
|
|
|
9477
9477
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
9478
9478
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9479
9479
|
let result;
|
|
9480
|
-
let continuationToken = settings === null || settings ===
|
|
9480
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
9481
9481
|
if (!continuationToken) {
|
|
9482
9482
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
9483
9483
|
let page = result.value || [];
|
|
@@ -9995,7 +9995,7 @@ class QueueImpl {
|
|
|
9995
9995
|
return this;
|
|
9996
9996
|
},
|
|
9997
9997
|
byPage: (settings) => {
|
|
9998
|
-
if (settings === null || settings ===
|
|
9998
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
9999
9999
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10000
10000
|
}
|
|
10001
10001
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -10005,7 +10005,7 @@ class QueueImpl {
|
|
|
10005
10005
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
10006
10006
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
10007
10007
|
let result;
|
|
10008
|
-
let continuationToken = settings === null || settings ===
|
|
10008
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
10009
10009
|
if (!continuationToken) {
|
|
10010
10010
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
10011
10011
|
let page = result.value || [];
|
|
@@ -10300,7 +10300,7 @@ class OperationsImpl {
|
|
|
10300
10300
|
return this;
|
|
10301
10301
|
},
|
|
10302
10302
|
byPage: (settings) => {
|
|
10303
|
-
if (settings === null || settings ===
|
|
10303
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
10304
10304
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10305
10305
|
}
|
|
10306
10306
|
return this.listPagingPage(options, settings);
|
|
@@ -10389,7 +10389,7 @@ class SkusImpl {
|
|
|
10389
10389
|
return this;
|
|
10390
10390
|
},
|
|
10391
10391
|
byPage: (settings) => {
|
|
10392
|
-
if (settings === null || settings ===
|
|
10392
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
10393
10393
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10394
10394
|
}
|
|
10395
10395
|
return this.listPagingPage(options, settings);
|
|
@@ -10479,7 +10479,7 @@ class StorageAccountsImpl {
|
|
|
10479
10479
|
return this;
|
|
10480
10480
|
},
|
|
10481
10481
|
byPage: (settings) => {
|
|
10482
|
-
if (settings === null || settings ===
|
|
10482
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
10483
10483
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10484
10484
|
}
|
|
10485
10485
|
return this.listPagingPage(options, settings);
|
|
@@ -10489,7 +10489,7 @@ class StorageAccountsImpl {
|
|
|
10489
10489
|
listPagingPage(options, settings) {
|
|
10490
10490
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
10491
10491
|
let result;
|
|
10492
|
-
let continuationToken = settings === null || settings ===
|
|
10492
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
10493
10493
|
if (!continuationToken) {
|
|
10494
10494
|
result = yield tslib.__await(this._list(options));
|
|
10495
10495
|
let page = result.value || [];
|
|
@@ -10543,7 +10543,7 @@ class StorageAccountsImpl {
|
|
|
10543
10543
|
return this;
|
|
10544
10544
|
},
|
|
10545
10545
|
byPage: (settings) => {
|
|
10546
|
-
if (settings === null || settings ===
|
|
10546
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
10547
10547
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10548
10548
|
}
|
|
10549
10549
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -10553,7 +10553,7 @@ class StorageAccountsImpl {
|
|
|
10553
10553
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
10554
10554
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
10555
10555
|
let result;
|
|
10556
|
-
let continuationToken = settings === null || settings ===
|
|
10556
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
10557
10557
|
if (!continuationToken) {
|
|
10558
10558
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
10559
10559
|
let page = result.value || [];
|
|
@@ -10614,17 +10614,17 @@ class StorageAccountsImpl {
|
|
|
10614
10614
|
* @param options The options parameters.
|
|
10615
10615
|
*/
|
|
10616
10616
|
beginCreate(resourceGroupName, accountName, parameters, options) {
|
|
10617
|
-
return tslib.__awaiter(this,
|
|
10618
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10617
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10618
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10619
10619
|
return this.client.sendOperationRequest(args, spec);
|
|
10620
10620
|
});
|
|
10621
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10621
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10622
10622
|
var _a;
|
|
10623
10623
|
let currentRawResponse = undefined;
|
|
10624
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10624
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
10625
10625
|
const callback = (rawResponse, flatResponse) => {
|
|
10626
10626
|
currentRawResponse = rawResponse;
|
|
10627
|
-
providedCallback === null || providedCallback ===
|
|
10627
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
10628
10628
|
};
|
|
10629
10629
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10630
10630
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10643,8 +10643,8 @@ class StorageAccountsImpl {
|
|
|
10643
10643
|
spec: createOperationSpec$2,
|
|
10644
10644
|
});
|
|
10645
10645
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10646
|
-
restoreFrom: options === null || options ===
|
|
10647
|
-
intervalInMs: options === null || options ===
|
|
10646
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
10647
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
10648
10648
|
});
|
|
10649
10649
|
yield poller.poll();
|
|
10650
10650
|
return poller;
|
|
@@ -10664,7 +10664,7 @@ class StorageAccountsImpl {
|
|
|
10664
10664
|
* @param options The options parameters.
|
|
10665
10665
|
*/
|
|
10666
10666
|
beginCreateAndWait(resourceGroupName, accountName, parameters, options) {
|
|
10667
|
-
return tslib.__awaiter(this,
|
|
10667
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10668
10668
|
const poller = yield this.beginCreate(resourceGroupName, accountName, parameters, options);
|
|
10669
10669
|
return poller.pollUntilDone();
|
|
10670
10670
|
});
|
|
@@ -10803,17 +10803,17 @@ class StorageAccountsImpl {
|
|
|
10803
10803
|
* @param options The options parameters.
|
|
10804
10804
|
*/
|
|
10805
10805
|
beginFailover(resourceGroupName, accountName, options) {
|
|
10806
|
-
return tslib.__awaiter(this,
|
|
10807
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10806
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10807
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10808
10808
|
return this.client.sendOperationRequest(args, spec);
|
|
10809
10809
|
});
|
|
10810
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10810
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10811
10811
|
var _a;
|
|
10812
10812
|
let currentRawResponse = undefined;
|
|
10813
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10813
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
10814
10814
|
const callback = (rawResponse, flatResponse) => {
|
|
10815
10815
|
currentRawResponse = rawResponse;
|
|
10816
|
-
providedCallback === null || providedCallback ===
|
|
10816
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
10817
10817
|
};
|
|
10818
10818
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10819
10819
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10832,8 +10832,8 @@ class StorageAccountsImpl {
|
|
|
10832
10832
|
spec: failoverOperationSpec,
|
|
10833
10833
|
});
|
|
10834
10834
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10835
|
-
restoreFrom: options === null || options ===
|
|
10836
|
-
intervalInMs: options === null || options ===
|
|
10835
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
10836
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
10837
10837
|
resourceLocationConfig: "location",
|
|
10838
10838
|
});
|
|
10839
10839
|
yield poller.poll();
|
|
@@ -10859,7 +10859,7 @@ class StorageAccountsImpl {
|
|
|
10859
10859
|
* @param options The options parameters.
|
|
10860
10860
|
*/
|
|
10861
10861
|
beginFailoverAndWait(resourceGroupName, accountName, options) {
|
|
10862
|
-
return tslib.__awaiter(this,
|
|
10862
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10863
10863
|
const poller = yield this.beginFailover(resourceGroupName, accountName, options);
|
|
10864
10864
|
return poller.pollUntilDone();
|
|
10865
10865
|
});
|
|
@@ -10878,17 +10878,17 @@ class StorageAccountsImpl {
|
|
|
10878
10878
|
* @param options The options parameters.
|
|
10879
10879
|
*/
|
|
10880
10880
|
beginHierarchicalNamespaceMigration(resourceGroupName, accountName, requestType, options) {
|
|
10881
|
-
return tslib.__awaiter(this,
|
|
10882
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10881
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10882
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10883
10883
|
return this.client.sendOperationRequest(args, spec);
|
|
10884
10884
|
});
|
|
10885
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10885
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10886
10886
|
var _a;
|
|
10887
10887
|
let currentRawResponse = undefined;
|
|
10888
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10888
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
10889
10889
|
const callback = (rawResponse, flatResponse) => {
|
|
10890
10890
|
currentRawResponse = rawResponse;
|
|
10891
|
-
providedCallback === null || providedCallback ===
|
|
10891
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
10892
10892
|
};
|
|
10893
10893
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10894
10894
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10907,8 +10907,8 @@ class StorageAccountsImpl {
|
|
|
10907
10907
|
spec: hierarchicalNamespaceMigrationOperationSpec,
|
|
10908
10908
|
});
|
|
10909
10909
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10910
|
-
restoreFrom: options === null || options ===
|
|
10911
|
-
intervalInMs: options === null || options ===
|
|
10910
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
10911
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
10912
10912
|
resourceLocationConfig: "location",
|
|
10913
10913
|
});
|
|
10914
10914
|
yield poller.poll();
|
|
@@ -10929,7 +10929,7 @@ class StorageAccountsImpl {
|
|
|
10929
10929
|
* @param options The options parameters.
|
|
10930
10930
|
*/
|
|
10931
10931
|
beginHierarchicalNamespaceMigrationAndWait(resourceGroupName, accountName, requestType, options) {
|
|
10932
|
-
return tslib.__awaiter(this,
|
|
10932
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10933
10933
|
const poller = yield this.beginHierarchicalNamespaceMigration(resourceGroupName, accountName, requestType, options);
|
|
10934
10934
|
return poller.pollUntilDone();
|
|
10935
10935
|
});
|
|
@@ -10944,17 +10944,17 @@ class StorageAccountsImpl {
|
|
|
10944
10944
|
* @param options The options parameters.
|
|
10945
10945
|
*/
|
|
10946
10946
|
beginAbortHierarchicalNamespaceMigration(resourceGroupName, accountName, options) {
|
|
10947
|
-
return tslib.__awaiter(this,
|
|
10948
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10947
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10948
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10949
10949
|
return this.client.sendOperationRequest(args, spec);
|
|
10950
10950
|
});
|
|
10951
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10951
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10952
10952
|
var _a;
|
|
10953
10953
|
let currentRawResponse = undefined;
|
|
10954
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10954
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
10955
10955
|
const callback = (rawResponse, flatResponse) => {
|
|
10956
10956
|
currentRawResponse = rawResponse;
|
|
10957
|
-
providedCallback === null || providedCallback ===
|
|
10957
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
10958
10958
|
};
|
|
10959
10959
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10960
10960
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10973,8 +10973,8 @@ class StorageAccountsImpl {
|
|
|
10973
10973
|
spec: abortHierarchicalNamespaceMigrationOperationSpec,
|
|
10974
10974
|
});
|
|
10975
10975
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10976
|
-
restoreFrom: options === null || options ===
|
|
10977
|
-
intervalInMs: options === null || options ===
|
|
10976
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
10977
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
10978
10978
|
resourceLocationConfig: "location",
|
|
10979
10979
|
});
|
|
10980
10980
|
yield poller.poll();
|
|
@@ -10991,7 +10991,7 @@ class StorageAccountsImpl {
|
|
|
10991
10991
|
* @param options The options parameters.
|
|
10992
10992
|
*/
|
|
10993
10993
|
beginAbortHierarchicalNamespaceMigrationAndWait(resourceGroupName, accountName, options) {
|
|
10994
|
-
return tslib.__awaiter(this,
|
|
10994
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
10995
10995
|
const poller = yield this.beginAbortHierarchicalNamespaceMigration(resourceGroupName, accountName, options);
|
|
10996
10996
|
return poller.pollUntilDone();
|
|
10997
10997
|
});
|
|
@@ -11010,17 +11010,17 @@ class StorageAccountsImpl {
|
|
|
11010
11010
|
* @param options The options parameters.
|
|
11011
11011
|
*/
|
|
11012
11012
|
beginCustomerInitiatedMigration(resourceGroupName, accountName, parameters, options) {
|
|
11013
|
-
return tslib.__awaiter(this,
|
|
11014
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11013
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11014
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11015
11015
|
return this.client.sendOperationRequest(args, spec);
|
|
11016
11016
|
});
|
|
11017
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11017
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11018
11018
|
var _a;
|
|
11019
11019
|
let currentRawResponse = undefined;
|
|
11020
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11020
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
11021
11021
|
const callback = (rawResponse, flatResponse) => {
|
|
11022
11022
|
currentRawResponse = rawResponse;
|
|
11023
|
-
providedCallback === null || providedCallback ===
|
|
11023
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
11024
11024
|
};
|
|
11025
11025
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11026
11026
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11039,8 +11039,8 @@ class StorageAccountsImpl {
|
|
|
11039
11039
|
spec: customerInitiatedMigrationOperationSpec,
|
|
11040
11040
|
});
|
|
11041
11041
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11042
|
-
restoreFrom: options === null || options ===
|
|
11043
|
-
intervalInMs: options === null || options ===
|
|
11042
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
11043
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
11044
11044
|
resourceLocationConfig: "location",
|
|
11045
11045
|
});
|
|
11046
11046
|
yield poller.poll();
|
|
@@ -11061,7 +11061,7 @@ class StorageAccountsImpl {
|
|
|
11061
11061
|
* @param options The options parameters.
|
|
11062
11062
|
*/
|
|
11063
11063
|
beginCustomerInitiatedMigrationAndWait(resourceGroupName, accountName, parameters, options) {
|
|
11064
|
-
return tslib.__awaiter(this,
|
|
11064
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11065
11065
|
const poller = yield this.beginCustomerInitiatedMigration(resourceGroupName, accountName, parameters, options);
|
|
11066
11066
|
return poller.pollUntilDone();
|
|
11067
11067
|
});
|
|
@@ -11090,17 +11090,17 @@ class StorageAccountsImpl {
|
|
|
11090
11090
|
* @param options The options parameters.
|
|
11091
11091
|
*/
|
|
11092
11092
|
beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options) {
|
|
11093
|
-
return tslib.__awaiter(this,
|
|
11094
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11093
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11094
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11095
11095
|
return this.client.sendOperationRequest(args, spec);
|
|
11096
11096
|
});
|
|
11097
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11097
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11098
11098
|
var _a;
|
|
11099
11099
|
let currentRawResponse = undefined;
|
|
11100
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11100
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
11101
11101
|
const callback = (rawResponse, flatResponse) => {
|
|
11102
11102
|
currentRawResponse = rawResponse;
|
|
11103
|
-
providedCallback === null || providedCallback ===
|
|
11103
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
11104
11104
|
};
|
|
11105
11105
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11106
11106
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11119,8 +11119,8 @@ class StorageAccountsImpl {
|
|
|
11119
11119
|
spec: restoreBlobRangesOperationSpec,
|
|
11120
11120
|
});
|
|
11121
11121
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11122
|
-
restoreFrom: options === null || options ===
|
|
11123
|
-
intervalInMs: options === null || options ===
|
|
11122
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
11123
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
11124
11124
|
resourceLocationConfig: "location",
|
|
11125
11125
|
});
|
|
11126
11126
|
yield poller.poll();
|
|
@@ -11138,7 +11138,7 @@ class StorageAccountsImpl {
|
|
|
11138
11138
|
* @param options The options parameters.
|
|
11139
11139
|
*/
|
|
11140
11140
|
beginRestoreBlobRangesAndWait(resourceGroupName, accountName, parameters, options) {
|
|
11141
|
-
return tslib.__awaiter(this,
|
|
11141
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11142
11142
|
const poller = yield this.beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options);
|
|
11143
11143
|
return poller.pollUntilDone();
|
|
11144
11144
|
});
|
|
@@ -11589,7 +11589,7 @@ class DeletedAccountsImpl {
|
|
|
11589
11589
|
return this;
|
|
11590
11590
|
},
|
|
11591
11591
|
byPage: (settings) => {
|
|
11592
|
-
if (settings === null || settings ===
|
|
11592
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
11593
11593
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11594
11594
|
}
|
|
11595
11595
|
return this.listPagingPage(options, settings);
|
|
@@ -11599,7 +11599,7 @@ class DeletedAccountsImpl {
|
|
|
11599
11599
|
listPagingPage(options, settings) {
|
|
11600
11600
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
11601
11601
|
let result;
|
|
11602
|
-
let continuationToken = settings === null || settings ===
|
|
11602
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
11603
11603
|
if (!continuationToken) {
|
|
11604
11604
|
result = yield tslib.__await(this._list(options));
|
|
11605
11605
|
let page = result.value || [];
|
|
@@ -11752,7 +11752,7 @@ class UsagesImpl {
|
|
|
11752
11752
|
return this;
|
|
11753
11753
|
},
|
|
11754
11754
|
byPage: (settings) => {
|
|
11755
|
-
if (settings === null || settings ===
|
|
11755
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
11756
11756
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11757
11757
|
}
|
|
11758
11758
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -11974,7 +11974,7 @@ class BlobInventoryPoliciesImpl {
|
|
|
11974
11974
|
return this;
|
|
11975
11975
|
},
|
|
11976
11976
|
byPage: (settings) => {
|
|
11977
|
-
if (settings === null || settings ===
|
|
11977
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
11978
11978
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11979
11979
|
}
|
|
11980
11980
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -12197,7 +12197,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
12197
12197
|
return this;
|
|
12198
12198
|
},
|
|
12199
12199
|
byPage: (settings) => {
|
|
12200
|
-
if (settings === null || settings ===
|
|
12200
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
12201
12201
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12202
12202
|
}
|
|
12203
12203
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -12477,7 +12477,7 @@ class ObjectReplicationPoliciesOperationsImpl {
|
|
|
12477
12477
|
return this;
|
|
12478
12478
|
},
|
|
12479
12479
|
byPage: (settings) => {
|
|
12480
|
-
if (settings === null || settings ===
|
|
12480
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
12481
12481
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12482
12482
|
}
|
|
12483
12483
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -12707,7 +12707,7 @@ class LocalUsersOperationsImpl {
|
|
|
12707
12707
|
return this;
|
|
12708
12708
|
},
|
|
12709
12709
|
byPage: (settings) => {
|
|
12710
|
-
if (settings === null || settings ===
|
|
12710
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
12711
12711
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12712
12712
|
}
|
|
12713
12713
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -13002,7 +13002,7 @@ class EncryptionScopesImpl {
|
|
|
13002
13002
|
return this;
|
|
13003
13003
|
},
|
|
13004
13004
|
byPage: (settings) => {
|
|
13005
|
-
if (settings === null || settings ===
|
|
13005
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
13006
13006
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13007
13007
|
}
|
|
13008
13008
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -13012,7 +13012,7 @@ class EncryptionScopesImpl {
|
|
|
13012
13012
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
13013
13013
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
13014
13014
|
let result;
|
|
13015
|
-
let continuationToken = settings === null || settings ===
|
|
13015
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
13016
13016
|
if (!continuationToken) {
|
|
13017
13017
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
13018
13018
|
let page = result.value || [];
|
|
@@ -13420,7 +13420,7 @@ class TableOperationsImpl {
|
|
|
13420
13420
|
return this;
|
|
13421
13421
|
},
|
|
13422
13422
|
byPage: (settings) => {
|
|
13423
|
-
if (settings === null || settings ===
|
|
13423
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
13424
13424
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13425
13425
|
}
|
|
13426
13426
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -13430,7 +13430,7 @@ class TableOperationsImpl {
|
|
|
13430
13430
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
13431
13431
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
13432
13432
|
let result;
|
|
13433
|
-
let continuationToken = settings === null || settings ===
|
|
13433
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
13434
13434
|
if (!continuationToken) {
|
|
13435
13435
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
13436
13436
|
let page = result.value || [];
|
|
@@ -13724,7 +13724,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
|
|
|
13724
13724
|
return this;
|
|
13725
13725
|
},
|
|
13726
13726
|
byPage: (settings) => {
|
|
13727
|
-
if (settings === null || settings ===
|
|
13727
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
13728
13728
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13729
13729
|
}
|
|
13730
13730
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -13801,17 +13801,17 @@ class NetworkSecurityPerimeterConfigurationsImpl {
|
|
|
13801
13801
|
* @param options The options parameters.
|
|
13802
13802
|
*/
|
|
13803
13803
|
beginReconcile(resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options) {
|
|
13804
|
-
return tslib.__awaiter(this,
|
|
13805
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
13804
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
13805
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
13806
13806
|
return this.client.sendOperationRequest(args, spec);
|
|
13807
13807
|
});
|
|
13808
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
13808
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
13809
13809
|
var _a;
|
|
13810
13810
|
let currentRawResponse = undefined;
|
|
13811
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
13811
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
13812
13812
|
const callback = (rawResponse, flatResponse) => {
|
|
13813
13813
|
currentRawResponse = rawResponse;
|
|
13814
|
-
providedCallback === null || providedCallback ===
|
|
13814
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
13815
13815
|
};
|
|
13816
13816
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
13817
13817
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -13835,8 +13835,8 @@ class NetworkSecurityPerimeterConfigurationsImpl {
|
|
|
13835
13835
|
spec: reconcileOperationSpec,
|
|
13836
13836
|
});
|
|
13837
13837
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
13838
|
-
restoreFrom: options === null || options ===
|
|
13839
|
-
intervalInMs: options === null || options ===
|
|
13838
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
13839
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
13840
13840
|
resourceLocationConfig: "location",
|
|
13841
13841
|
});
|
|
13842
13842
|
yield poller.poll();
|
|
@@ -13855,7 +13855,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
|
|
|
13855
13855
|
* @param options The options parameters.
|
|
13856
13856
|
*/
|
|
13857
13857
|
beginReconcileAndWait(resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options) {
|
|
13858
|
-
return tslib.__awaiter(this,
|
|
13858
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
13859
13859
|
const poller = yield this.beginReconcile(resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options);
|
|
13860
13860
|
return poller.pollUntilDone();
|
|
13861
13861
|
});
|
|
@@ -13973,7 +13973,7 @@ class StorageTaskAssignmentsImpl {
|
|
|
13973
13973
|
return this;
|
|
13974
13974
|
},
|
|
13975
13975
|
byPage: (settings) => {
|
|
13976
|
-
if (settings === null || settings ===
|
|
13976
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
13977
13977
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13978
13978
|
}
|
|
13979
13979
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -13983,7 +13983,7 @@ class StorageTaskAssignmentsImpl {
|
|
|
13983
13983
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
13984
13984
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
13985
13985
|
let result;
|
|
13986
|
-
let continuationToken = settings === null || settings ===
|
|
13986
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
13987
13987
|
if (!continuationToken) {
|
|
13988
13988
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
13989
13989
|
let page = result.value || [];
|
|
@@ -14037,17 +14037,17 @@ class StorageTaskAssignmentsImpl {
|
|
|
14037
14037
|
* @param options The options parameters.
|
|
14038
14038
|
*/
|
|
14039
14039
|
beginCreate(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options) {
|
|
14040
|
-
return tslib.__awaiter(this,
|
|
14041
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
14040
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14041
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14042
14042
|
return this.client.sendOperationRequest(args, spec);
|
|
14043
14043
|
});
|
|
14044
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
14044
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14045
14045
|
var _a;
|
|
14046
14046
|
let currentRawResponse = undefined;
|
|
14047
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
14047
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
14048
14048
|
const callback = (rawResponse, flatResponse) => {
|
|
14049
14049
|
currentRawResponse = rawResponse;
|
|
14050
|
-
providedCallback === null || providedCallback ===
|
|
14050
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
14051
14051
|
};
|
|
14052
14052
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
14053
14053
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -14072,8 +14072,8 @@ class StorageTaskAssignmentsImpl {
|
|
|
14072
14072
|
spec: createOperationSpec,
|
|
14073
14073
|
});
|
|
14074
14074
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
14075
|
-
restoreFrom: options === null || options ===
|
|
14076
|
-
intervalInMs: options === null || options ===
|
|
14075
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
14076
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
14077
14077
|
resourceLocationConfig: "location",
|
|
14078
14078
|
});
|
|
14079
14079
|
yield poller.poll();
|
|
@@ -14097,7 +14097,7 @@ class StorageTaskAssignmentsImpl {
|
|
|
14097
14097
|
* @param options The options parameters.
|
|
14098
14098
|
*/
|
|
14099
14099
|
beginCreateAndWait(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options) {
|
|
14100
|
-
return tslib.__awaiter(this,
|
|
14100
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14101
14101
|
const poller = yield this.beginCreate(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options);
|
|
14102
14102
|
return poller.pollUntilDone();
|
|
14103
14103
|
});
|
|
@@ -14115,17 +14115,17 @@ class StorageTaskAssignmentsImpl {
|
|
|
14115
14115
|
* @param options The options parameters.
|
|
14116
14116
|
*/
|
|
14117
14117
|
beginUpdate(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options) {
|
|
14118
|
-
return tslib.__awaiter(this,
|
|
14119
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
14118
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14119
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14120
14120
|
return this.client.sendOperationRequest(args, spec);
|
|
14121
14121
|
});
|
|
14122
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
14122
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14123
14123
|
var _a;
|
|
14124
14124
|
let currentRawResponse = undefined;
|
|
14125
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
14125
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
14126
14126
|
const callback = (rawResponse, flatResponse) => {
|
|
14127
14127
|
currentRawResponse = rawResponse;
|
|
14128
|
-
providedCallback === null || providedCallback ===
|
|
14128
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
14129
14129
|
};
|
|
14130
14130
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
14131
14131
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -14150,8 +14150,8 @@ class StorageTaskAssignmentsImpl {
|
|
|
14150
14150
|
spec: updateOperationSpec,
|
|
14151
14151
|
});
|
|
14152
14152
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
14153
|
-
restoreFrom: options === null || options ===
|
|
14154
|
-
intervalInMs: options === null || options ===
|
|
14153
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
14154
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
14155
14155
|
resourceLocationConfig: "location",
|
|
14156
14156
|
});
|
|
14157
14157
|
yield poller.poll();
|
|
@@ -14171,7 +14171,7 @@ class StorageTaskAssignmentsImpl {
|
|
|
14171
14171
|
* @param options The options parameters.
|
|
14172
14172
|
*/
|
|
14173
14173
|
beginUpdateAndWait(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options) {
|
|
14174
|
-
return tslib.__awaiter(this,
|
|
14174
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14175
14175
|
const poller = yield this.beginUpdate(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options);
|
|
14176
14176
|
return poller.pollUntilDone();
|
|
14177
14177
|
});
|
|
@@ -14202,17 +14202,17 @@ class StorageTaskAssignmentsImpl {
|
|
|
14202
14202
|
* @param options The options parameters.
|
|
14203
14203
|
*/
|
|
14204
14204
|
beginDelete(resourceGroupName, accountName, storageTaskAssignmentName, options) {
|
|
14205
|
-
return tslib.__awaiter(this,
|
|
14206
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
14205
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14206
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14207
14207
|
return this.client.sendOperationRequest(args, spec);
|
|
14208
14208
|
});
|
|
14209
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
14209
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14210
14210
|
var _a;
|
|
14211
14211
|
let currentRawResponse = undefined;
|
|
14212
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
14212
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
14213
14213
|
const callback = (rawResponse, flatResponse) => {
|
|
14214
14214
|
currentRawResponse = rawResponse;
|
|
14215
|
-
providedCallback === null || providedCallback ===
|
|
14215
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
14216
14216
|
};
|
|
14217
14217
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
14218
14218
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -14236,8 +14236,8 @@ class StorageTaskAssignmentsImpl {
|
|
|
14236
14236
|
spec: deleteOperationSpec,
|
|
14237
14237
|
});
|
|
14238
14238
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
14239
|
-
restoreFrom: options === null || options ===
|
|
14240
|
-
intervalInMs: options === null || options ===
|
|
14239
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
14240
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
14241
14241
|
resourceLocationConfig: "location",
|
|
14242
14242
|
});
|
|
14243
14243
|
yield poller.poll();
|
|
@@ -14256,7 +14256,7 @@ class StorageTaskAssignmentsImpl {
|
|
|
14256
14256
|
* @param options The options parameters.
|
|
14257
14257
|
*/
|
|
14258
14258
|
beginDeleteAndWait(resourceGroupName, accountName, storageTaskAssignmentName, options) {
|
|
14259
|
-
return tslib.__awaiter(this,
|
|
14259
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14260
14260
|
const poller = yield this.beginDelete(resourceGroupName, accountName, storageTaskAssignmentName, options);
|
|
14261
14261
|
return poller.pollUntilDone();
|
|
14262
14262
|
});
|
|
@@ -14484,7 +14484,7 @@ class StorageTaskAssignmentsInstancesReportImpl {
|
|
|
14484
14484
|
return this;
|
|
14485
14485
|
},
|
|
14486
14486
|
byPage: (settings) => {
|
|
14487
|
-
if (settings === null || settings ===
|
|
14487
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
14488
14488
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14489
14489
|
}
|
|
14490
14490
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
@@ -14494,7 +14494,7 @@ class StorageTaskAssignmentsInstancesReportImpl {
|
|
|
14494
14494
|
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
14495
14495
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
14496
14496
|
let result;
|
|
14497
|
-
let continuationToken = settings === null || settings ===
|
|
14497
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
14498
14498
|
if (!continuationToken) {
|
|
14499
14499
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
14500
14500
|
let page = result.value || [];
|
|
@@ -14642,7 +14642,7 @@ class StorageTaskAssignmentInstancesReportImpl {
|
|
|
14642
14642
|
return this;
|
|
14643
14643
|
},
|
|
14644
14644
|
byPage: (settings) => {
|
|
14645
|
-
if (settings === null || settings ===
|
|
14645
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
14646
14646
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14647
14647
|
}
|
|
14648
14648
|
return this.listPagingPage(resourceGroupName, accountName, storageTaskAssignmentName, options, settings);
|
|
@@ -14652,7 +14652,7 @@ class StorageTaskAssignmentInstancesReportImpl {
|
|
|
14652
14652
|
listPagingPage(resourceGroupName, accountName, storageTaskAssignmentName, options, settings) {
|
|
14653
14653
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
14654
14654
|
let result;
|
|
14655
|
-
let continuationToken = settings === null || settings ===
|
|
14655
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
14656
14656
|
if (!continuationToken) {
|
|
14657
14657
|
result = yield tslib.__await(this._list(resourceGroupName, accountName, storageTaskAssignmentName, options));
|
|
14658
14658
|
let page = result.value || [];
|
|
@@ -14812,10 +14812,10 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
14812
14812
|
: `${packageDetails}`;
|
|
14813
14813
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
14814
14814
|
userAgentPrefix,
|
|
14815
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
14815
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
14816
14816
|
super(optionsWithDefaults);
|
|
14817
14817
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
14818
|
-
if ((options === null || options ===
|
|
14818
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
14819
14819
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
14820
14820
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
14821
14821
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -14829,7 +14829,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
14829
14829
|
});
|
|
14830
14830
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
14831
14831
|
credential: credentials,
|
|
14832
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
14832
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
14833
14833
|
challengeCallbacks: {
|
|
14834
14834
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
14835
14835
|
},
|
|
@@ -14878,7 +14878,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
14878
14878
|
const apiVersionPolicy = {
|
|
14879
14879
|
name: "CustomApiVersionPolicy",
|
|
14880
14880
|
sendRequest(request, next) {
|
|
14881
|
-
return tslib.__awaiter(this,
|
|
14881
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14882
14882
|
const param = request.url.split("?");
|
|
14883
14883
|
if (param.length > 1) {
|
|
14884
14884
|
const newParams = param[1].split("&").map((item) => {
|