@azure/arm-recoveryservicesdatareplication 1.0.0-alpha.20250207.1 → 1.0.0-alpha.20250211.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 +153 -153
- 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
|
}
|
|
@@ -5769,7 +5769,7 @@ function createLroSpec(inputs) {
|
|
|
5769
5769
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
5770
5770
|
sendPollRequest: (path, options) => {
|
|
5771
5771
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
5772
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
5772
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
5773
5773
|
}
|
|
5774
5774
|
};
|
|
5775
5775
|
}
|
|
@@ -5807,7 +5807,7 @@ class DraImpl {
|
|
|
5807
5807
|
return this;
|
|
5808
5808
|
},
|
|
5809
5809
|
byPage: (settings) => {
|
|
5810
|
-
if (settings === null || settings ===
|
|
5810
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5811
5811
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5812
5812
|
}
|
|
5813
5813
|
return this.listPagingPage(resourceGroupName, fabricName, options, settings);
|
|
@@ -5817,7 +5817,7 @@ class DraImpl {
|
|
|
5817
5817
|
listPagingPage(resourceGroupName, fabricName, options, settings) {
|
|
5818
5818
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5819
5819
|
let result;
|
|
5820
|
-
let continuationToken = settings === null || settings ===
|
|
5820
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5821
5821
|
if (!continuationToken) {
|
|
5822
5822
|
result = yield tslib.__await(this._list(resourceGroupName, fabricName, options));
|
|
5823
5823
|
let page = result.value || [];
|
|
@@ -5872,17 +5872,17 @@ class DraImpl {
|
|
|
5872
5872
|
* @param options The options parameters.
|
|
5873
5873
|
*/
|
|
5874
5874
|
beginCreate(resourceGroupName, fabricName, fabricAgentName, options) {
|
|
5875
|
-
return tslib.__awaiter(this,
|
|
5876
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5875
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5876
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5877
5877
|
return this.client.sendOperationRequest(args, spec);
|
|
5878
5878
|
});
|
|
5879
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5879
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5880
5880
|
var _a;
|
|
5881
5881
|
let currentRawResponse = undefined;
|
|
5882
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5882
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5883
5883
|
const callback = (rawResponse, flatResponse) => {
|
|
5884
5884
|
currentRawResponse = rawResponse;
|
|
5885
|
-
providedCallback === null || providedCallback ===
|
|
5885
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5886
5886
|
};
|
|
5887
5887
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5888
5888
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5901,8 +5901,8 @@ class DraImpl {
|
|
|
5901
5901
|
spec: createOperationSpec$6
|
|
5902
5902
|
});
|
|
5903
5903
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5904
|
-
restoreFrom: options === null || options ===
|
|
5905
|
-
intervalInMs: options === null || options ===
|
|
5904
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5905
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5906
5906
|
resourceLocationConfig: "location"
|
|
5907
5907
|
});
|
|
5908
5908
|
yield poller.poll();
|
|
@@ -5917,7 +5917,7 @@ class DraImpl {
|
|
|
5917
5917
|
* @param options The options parameters.
|
|
5918
5918
|
*/
|
|
5919
5919
|
beginCreateAndWait(resourceGroupName, fabricName, fabricAgentName, options) {
|
|
5920
|
-
return tslib.__awaiter(this,
|
|
5920
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5921
5921
|
const poller = yield this.beginCreate(resourceGroupName, fabricName, fabricAgentName, options);
|
|
5922
5922
|
return poller.pollUntilDone();
|
|
5923
5923
|
});
|
|
@@ -5930,17 +5930,17 @@ class DraImpl {
|
|
|
5930
5930
|
* @param options The options parameters.
|
|
5931
5931
|
*/
|
|
5932
5932
|
beginDelete(resourceGroupName, fabricName, fabricAgentName, options) {
|
|
5933
|
-
return tslib.__awaiter(this,
|
|
5934
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5933
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5934
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5935
5935
|
return this.client.sendOperationRequest(args, spec);
|
|
5936
5936
|
});
|
|
5937
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5937
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5938
5938
|
var _a;
|
|
5939
5939
|
let currentRawResponse = undefined;
|
|
5940
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5940
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5941
5941
|
const callback = (rawResponse, flatResponse) => {
|
|
5942
5942
|
currentRawResponse = rawResponse;
|
|
5943
|
-
providedCallback === null || providedCallback ===
|
|
5943
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5944
5944
|
};
|
|
5945
5945
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5946
5946
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5959,8 +5959,8 @@ class DraImpl {
|
|
|
5959
5959
|
spec: deleteOperationSpec$5
|
|
5960
5960
|
});
|
|
5961
5961
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5962
|
-
restoreFrom: options === null || options ===
|
|
5963
|
-
intervalInMs: options === null || options ===
|
|
5962
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5963
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5964
5964
|
resourceLocationConfig: "location"
|
|
5965
5965
|
});
|
|
5966
5966
|
yield poller.poll();
|
|
@@ -5975,7 +5975,7 @@ class DraImpl {
|
|
|
5975
5975
|
* @param options The options parameters.
|
|
5976
5976
|
*/
|
|
5977
5977
|
beginDeleteAndWait(resourceGroupName, fabricName, fabricAgentName, options) {
|
|
5978
|
-
return tslib.__awaiter(this,
|
|
5978
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5979
5979
|
const poller = yield this.beginDelete(resourceGroupName, fabricName, fabricAgentName, options);
|
|
5980
5980
|
return poller.pollUntilDone();
|
|
5981
5981
|
});
|
|
@@ -6218,7 +6218,7 @@ class EmailConfigurationImpl {
|
|
|
6218
6218
|
return this;
|
|
6219
6219
|
},
|
|
6220
6220
|
byPage: (settings) => {
|
|
6221
|
-
if (settings === null || settings ===
|
|
6221
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6222
6222
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6223
6223
|
}
|
|
6224
6224
|
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
@@ -6228,7 +6228,7 @@ class EmailConfigurationImpl {
|
|
|
6228
6228
|
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
6229
6229
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6230
6230
|
let result;
|
|
6231
|
-
let continuationToken = settings === null || settings ===
|
|
6231
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6232
6232
|
if (!continuationToken) {
|
|
6233
6233
|
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
6234
6234
|
let page = result.value || [];
|
|
@@ -6432,7 +6432,7 @@ class EventImpl {
|
|
|
6432
6432
|
return this;
|
|
6433
6433
|
},
|
|
6434
6434
|
byPage: (settings) => {
|
|
6435
|
-
if (settings === null || settings ===
|
|
6435
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6436
6436
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6437
6437
|
}
|
|
6438
6438
|
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
@@ -6442,7 +6442,7 @@ class EventImpl {
|
|
|
6442
6442
|
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
6443
6443
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6444
6444
|
let result;
|
|
6445
|
-
let continuationToken = settings === null || settings ===
|
|
6445
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6446
6446
|
if (!continuationToken) {
|
|
6447
6447
|
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
6448
6448
|
let page = result.value || [];
|
|
@@ -6611,7 +6611,7 @@ class FabricImpl {
|
|
|
6611
6611
|
return this;
|
|
6612
6612
|
},
|
|
6613
6613
|
byPage: (settings) => {
|
|
6614
|
-
if (settings === null || settings ===
|
|
6614
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6615
6615
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6616
6616
|
}
|
|
6617
6617
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -6621,7 +6621,7 @@ class FabricImpl {
|
|
|
6621
6621
|
listBySubscriptionPagingPage(options, settings) {
|
|
6622
6622
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
6623
6623
|
let result;
|
|
6624
|
-
let continuationToken = settings === null || settings ===
|
|
6624
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6625
6625
|
if (!continuationToken) {
|
|
6626
6626
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
6627
6627
|
let page = result.value || [];
|
|
@@ -6673,7 +6673,7 @@ class FabricImpl {
|
|
|
6673
6673
|
return this;
|
|
6674
6674
|
},
|
|
6675
6675
|
byPage: (settings) => {
|
|
6676
|
-
if (settings === null || settings ===
|
|
6676
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6677
6677
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6678
6678
|
}
|
|
6679
6679
|
return this.listPagingPage(resourceGroupName, options, settings);
|
|
@@ -6683,7 +6683,7 @@ class FabricImpl {
|
|
|
6683
6683
|
listPagingPage(resourceGroupName, options, settings) {
|
|
6684
6684
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6685
6685
|
let result;
|
|
6686
|
-
let continuationToken = settings === null || settings ===
|
|
6686
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6687
6687
|
if (!continuationToken) {
|
|
6688
6688
|
result = yield tslib.__await(this._list(resourceGroupName, options));
|
|
6689
6689
|
let page = result.value || [];
|
|
@@ -6736,17 +6736,17 @@ class FabricImpl {
|
|
|
6736
6736
|
* @param options The options parameters.
|
|
6737
6737
|
*/
|
|
6738
6738
|
beginCreate(resourceGroupName, fabricName, options) {
|
|
6739
|
-
return tslib.__awaiter(this,
|
|
6740
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6739
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6740
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6741
6741
|
return this.client.sendOperationRequest(args, spec);
|
|
6742
6742
|
});
|
|
6743
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6743
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6744
6744
|
var _a;
|
|
6745
6745
|
let currentRawResponse = undefined;
|
|
6746
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6746
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6747
6747
|
const callback = (rawResponse, flatResponse) => {
|
|
6748
6748
|
currentRawResponse = rawResponse;
|
|
6749
|
-
providedCallback === null || providedCallback ===
|
|
6749
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6750
6750
|
};
|
|
6751
6751
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6752
6752
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6765,8 +6765,8 @@ class FabricImpl {
|
|
|
6765
6765
|
spec: createOperationSpec$4
|
|
6766
6766
|
});
|
|
6767
6767
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6768
|
-
restoreFrom: options === null || options ===
|
|
6769
|
-
intervalInMs: options === null || options ===
|
|
6768
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6769
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6770
6770
|
resourceLocationConfig: "location"
|
|
6771
6771
|
});
|
|
6772
6772
|
yield poller.poll();
|
|
@@ -6780,7 +6780,7 @@ class FabricImpl {
|
|
|
6780
6780
|
* @param options The options parameters.
|
|
6781
6781
|
*/
|
|
6782
6782
|
beginCreateAndWait(resourceGroupName, fabricName, options) {
|
|
6783
|
-
return tslib.__awaiter(this,
|
|
6783
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6784
6784
|
const poller = yield this.beginCreate(resourceGroupName, fabricName, options);
|
|
6785
6785
|
return poller.pollUntilDone();
|
|
6786
6786
|
});
|
|
@@ -6792,17 +6792,17 @@ class FabricImpl {
|
|
|
6792
6792
|
* @param options The options parameters.
|
|
6793
6793
|
*/
|
|
6794
6794
|
beginUpdate(resourceGroupName, fabricName, options) {
|
|
6795
|
-
return tslib.__awaiter(this,
|
|
6796
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6795
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6796
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6797
6797
|
return this.client.sendOperationRequest(args, spec);
|
|
6798
6798
|
});
|
|
6799
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6799
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6800
6800
|
var _a;
|
|
6801
6801
|
let currentRawResponse = undefined;
|
|
6802
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6802
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6803
6803
|
const callback = (rawResponse, flatResponse) => {
|
|
6804
6804
|
currentRawResponse = rawResponse;
|
|
6805
|
-
providedCallback === null || providedCallback ===
|
|
6805
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6806
6806
|
};
|
|
6807
6807
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6808
6808
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6821,8 +6821,8 @@ class FabricImpl {
|
|
|
6821
6821
|
spec: updateOperationSpec$1
|
|
6822
6822
|
});
|
|
6823
6823
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6824
|
-
restoreFrom: options === null || options ===
|
|
6825
|
-
intervalInMs: options === null || options ===
|
|
6824
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6825
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6826
6826
|
resourceLocationConfig: "location"
|
|
6827
6827
|
});
|
|
6828
6828
|
yield poller.poll();
|
|
@@ -6836,7 +6836,7 @@ class FabricImpl {
|
|
|
6836
6836
|
* @param options The options parameters.
|
|
6837
6837
|
*/
|
|
6838
6838
|
beginUpdateAndWait(resourceGroupName, fabricName, options) {
|
|
6839
|
-
return tslib.__awaiter(this,
|
|
6839
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6840
6840
|
const poller = yield this.beginUpdate(resourceGroupName, fabricName, options);
|
|
6841
6841
|
return poller.pollUntilDone();
|
|
6842
6842
|
});
|
|
@@ -6848,17 +6848,17 @@ class FabricImpl {
|
|
|
6848
6848
|
* @param options The options parameters.
|
|
6849
6849
|
*/
|
|
6850
6850
|
beginDelete(resourceGroupName, fabricName, options) {
|
|
6851
|
-
return tslib.__awaiter(this,
|
|
6852
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6851
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6852
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6853
6853
|
return this.client.sendOperationRequest(args, spec);
|
|
6854
6854
|
});
|
|
6855
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6855
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6856
6856
|
var _a;
|
|
6857
6857
|
let currentRawResponse = undefined;
|
|
6858
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6858
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6859
6859
|
const callback = (rawResponse, flatResponse) => {
|
|
6860
6860
|
currentRawResponse = rawResponse;
|
|
6861
|
-
providedCallback === null || providedCallback ===
|
|
6861
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6862
6862
|
};
|
|
6863
6863
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6864
6864
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6877,8 +6877,8 @@ class FabricImpl {
|
|
|
6877
6877
|
spec: deleteOperationSpec$4
|
|
6878
6878
|
});
|
|
6879
6879
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6880
|
-
restoreFrom: options === null || options ===
|
|
6881
|
-
intervalInMs: options === null || options ===
|
|
6880
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6881
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6882
6882
|
resourceLocationConfig: "location"
|
|
6883
6883
|
});
|
|
6884
6884
|
yield poller.poll();
|
|
@@ -6892,7 +6892,7 @@ class FabricImpl {
|
|
|
6892
6892
|
* @param options The options parameters.
|
|
6893
6893
|
*/
|
|
6894
6894
|
beginDeleteAndWait(resourceGroupName, fabricName, options) {
|
|
6895
|
-
return tslib.__awaiter(this,
|
|
6895
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6896
6896
|
const poller = yield this.beginDelete(resourceGroupName, fabricName, options);
|
|
6897
6897
|
return poller.pollUntilDone();
|
|
6898
6898
|
});
|
|
@@ -7208,7 +7208,7 @@ class PolicyImpl {
|
|
|
7208
7208
|
return this;
|
|
7209
7209
|
},
|
|
7210
7210
|
byPage: (settings) => {
|
|
7211
|
-
if (settings === null || settings ===
|
|
7211
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7212
7212
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7213
7213
|
}
|
|
7214
7214
|
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
@@ -7218,7 +7218,7 @@ class PolicyImpl {
|
|
|
7218
7218
|
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
7219
7219
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7220
7220
|
let result;
|
|
7221
|
-
let continuationToken = settings === null || settings ===
|
|
7221
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7222
7222
|
if (!continuationToken) {
|
|
7223
7223
|
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
7224
7224
|
let page = result.value || [];
|
|
@@ -7273,17 +7273,17 @@ class PolicyImpl {
|
|
|
7273
7273
|
* @param options The options parameters.
|
|
7274
7274
|
*/
|
|
7275
7275
|
beginCreate(resourceGroupName, vaultName, policyName, options) {
|
|
7276
|
-
return tslib.__awaiter(this,
|
|
7277
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7276
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7277
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7278
7278
|
return this.client.sendOperationRequest(args, spec);
|
|
7279
7279
|
});
|
|
7280
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7280
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7281
7281
|
var _a;
|
|
7282
7282
|
let currentRawResponse = undefined;
|
|
7283
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7283
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7284
7284
|
const callback = (rawResponse, flatResponse) => {
|
|
7285
7285
|
currentRawResponse = rawResponse;
|
|
7286
|
-
providedCallback === null || providedCallback ===
|
|
7286
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7287
7287
|
};
|
|
7288
7288
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7289
7289
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7302,8 +7302,8 @@ class PolicyImpl {
|
|
|
7302
7302
|
spec: createOperationSpec$3
|
|
7303
7303
|
});
|
|
7304
7304
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7305
|
-
restoreFrom: options === null || options ===
|
|
7306
|
-
intervalInMs: options === null || options ===
|
|
7305
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7306
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7307
7307
|
resourceLocationConfig: "location"
|
|
7308
7308
|
});
|
|
7309
7309
|
yield poller.poll();
|
|
@@ -7318,7 +7318,7 @@ class PolicyImpl {
|
|
|
7318
7318
|
* @param options The options parameters.
|
|
7319
7319
|
*/
|
|
7320
7320
|
beginCreateAndWait(resourceGroupName, vaultName, policyName, options) {
|
|
7321
|
-
return tslib.__awaiter(this,
|
|
7321
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7322
7322
|
const poller = yield this.beginCreate(resourceGroupName, vaultName, policyName, options);
|
|
7323
7323
|
return poller.pollUntilDone();
|
|
7324
7324
|
});
|
|
@@ -7331,17 +7331,17 @@ class PolicyImpl {
|
|
|
7331
7331
|
* @param options The options parameters.
|
|
7332
7332
|
*/
|
|
7333
7333
|
beginDelete(resourceGroupName, vaultName, policyName, options) {
|
|
7334
|
-
return tslib.__awaiter(this,
|
|
7335
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7334
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7335
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7336
7336
|
return this.client.sendOperationRequest(args, spec);
|
|
7337
7337
|
});
|
|
7338
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7338
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7339
7339
|
var _a;
|
|
7340
7340
|
let currentRawResponse = undefined;
|
|
7341
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7341
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7342
7342
|
const callback = (rawResponse, flatResponse) => {
|
|
7343
7343
|
currentRawResponse = rawResponse;
|
|
7344
|
-
providedCallback === null || providedCallback ===
|
|
7344
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7345
7345
|
};
|
|
7346
7346
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7347
7347
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7360,8 +7360,8 @@ class PolicyImpl {
|
|
|
7360
7360
|
spec: deleteOperationSpec$3
|
|
7361
7361
|
});
|
|
7362
7362
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7363
|
-
restoreFrom: options === null || options ===
|
|
7364
|
-
intervalInMs: options === null || options ===
|
|
7363
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7364
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7365
7365
|
resourceLocationConfig: "location"
|
|
7366
7366
|
});
|
|
7367
7367
|
yield poller.poll();
|
|
@@ -7376,7 +7376,7 @@ class PolicyImpl {
|
|
|
7376
7376
|
* @param options The options parameters.
|
|
7377
7377
|
*/
|
|
7378
7378
|
beginDeleteAndWait(resourceGroupName, vaultName, policyName, options) {
|
|
7379
|
-
return tslib.__awaiter(this,
|
|
7379
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7380
7380
|
const poller = yield this.beginDelete(resourceGroupName, vaultName, policyName, options);
|
|
7381
7381
|
return poller.pollUntilDone();
|
|
7382
7382
|
});
|
|
@@ -7619,7 +7619,7 @@ class ProtectedItemImpl {
|
|
|
7619
7619
|
return this;
|
|
7620
7620
|
},
|
|
7621
7621
|
byPage: (settings) => {
|
|
7622
|
-
if (settings === null || settings ===
|
|
7622
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7623
7623
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7624
7624
|
}
|
|
7625
7625
|
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
@@ -7629,7 +7629,7 @@ class ProtectedItemImpl {
|
|
|
7629
7629
|
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
7630
7630
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7631
7631
|
let result;
|
|
7632
|
-
let continuationToken = settings === null || settings ===
|
|
7632
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7633
7633
|
if (!continuationToken) {
|
|
7634
7634
|
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
7635
7635
|
let page = result.value || [];
|
|
@@ -7684,17 +7684,17 @@ class ProtectedItemImpl {
|
|
|
7684
7684
|
* @param options The options parameters.
|
|
7685
7685
|
*/
|
|
7686
7686
|
beginCreate(resourceGroupName, vaultName, protectedItemName, options) {
|
|
7687
|
-
return tslib.__awaiter(this,
|
|
7688
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7687
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7688
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7689
7689
|
return this.client.sendOperationRequest(args, spec);
|
|
7690
7690
|
});
|
|
7691
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7691
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7692
7692
|
var _a;
|
|
7693
7693
|
let currentRawResponse = undefined;
|
|
7694
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7694
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7695
7695
|
const callback = (rawResponse, flatResponse) => {
|
|
7696
7696
|
currentRawResponse = rawResponse;
|
|
7697
|
-
providedCallback === null || providedCallback ===
|
|
7697
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7698
7698
|
};
|
|
7699
7699
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7700
7700
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7713,8 +7713,8 @@ class ProtectedItemImpl {
|
|
|
7713
7713
|
spec: createOperationSpec$2
|
|
7714
7714
|
});
|
|
7715
7715
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7716
|
-
restoreFrom: options === null || options ===
|
|
7717
|
-
intervalInMs: options === null || options ===
|
|
7716
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7717
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7718
7718
|
resourceLocationConfig: "location"
|
|
7719
7719
|
});
|
|
7720
7720
|
yield poller.poll();
|
|
@@ -7729,7 +7729,7 @@ class ProtectedItemImpl {
|
|
|
7729
7729
|
* @param options The options parameters.
|
|
7730
7730
|
*/
|
|
7731
7731
|
beginCreateAndWait(resourceGroupName, vaultName, protectedItemName, options) {
|
|
7732
|
-
return tslib.__awaiter(this,
|
|
7732
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7733
7733
|
const poller = yield this.beginCreate(resourceGroupName, vaultName, protectedItemName, options);
|
|
7734
7734
|
return poller.pollUntilDone();
|
|
7735
7735
|
});
|
|
@@ -7742,17 +7742,17 @@ class ProtectedItemImpl {
|
|
|
7742
7742
|
* @param options The options parameters.
|
|
7743
7743
|
*/
|
|
7744
7744
|
beginDelete(resourceGroupName, vaultName, protectedItemName, options) {
|
|
7745
|
-
return tslib.__awaiter(this,
|
|
7746
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7745
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7746
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7747
7747
|
return this.client.sendOperationRequest(args, spec);
|
|
7748
7748
|
});
|
|
7749
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7749
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7750
7750
|
var _a;
|
|
7751
7751
|
let currentRawResponse = undefined;
|
|
7752
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7752
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7753
7753
|
const callback = (rawResponse, flatResponse) => {
|
|
7754
7754
|
currentRawResponse = rawResponse;
|
|
7755
|
-
providedCallback === null || providedCallback ===
|
|
7755
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7756
7756
|
};
|
|
7757
7757
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7758
7758
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7771,8 +7771,8 @@ class ProtectedItemImpl {
|
|
|
7771
7771
|
spec: deleteOperationSpec$2
|
|
7772
7772
|
});
|
|
7773
7773
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7774
|
-
restoreFrom: options === null || options ===
|
|
7775
|
-
intervalInMs: options === null || options ===
|
|
7774
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7775
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7776
7776
|
resourceLocationConfig: "location"
|
|
7777
7777
|
});
|
|
7778
7778
|
yield poller.poll();
|
|
@@ -7787,7 +7787,7 @@ class ProtectedItemImpl {
|
|
|
7787
7787
|
* @param options The options parameters.
|
|
7788
7788
|
*/
|
|
7789
7789
|
beginDeleteAndWait(resourceGroupName, vaultName, protectedItemName, options) {
|
|
7790
|
-
return tslib.__awaiter(this,
|
|
7790
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7791
7791
|
const poller = yield this.beginDelete(resourceGroupName, vaultName, protectedItemName, options);
|
|
7792
7792
|
return poller.pollUntilDone();
|
|
7793
7793
|
});
|
|
@@ -7809,17 +7809,17 @@ class ProtectedItemImpl {
|
|
|
7809
7809
|
* @param options The options parameters.
|
|
7810
7810
|
*/
|
|
7811
7811
|
beginPlannedFailover(resourceGroupName, vaultName, protectedItemName, options) {
|
|
7812
|
-
return tslib.__awaiter(this,
|
|
7813
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7812
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7813
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7814
7814
|
return this.client.sendOperationRequest(args, spec);
|
|
7815
7815
|
});
|
|
7816
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7816
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7817
7817
|
var _a;
|
|
7818
7818
|
let currentRawResponse = undefined;
|
|
7819
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7819
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7820
7820
|
const callback = (rawResponse, flatResponse) => {
|
|
7821
7821
|
currentRawResponse = rawResponse;
|
|
7822
|
-
providedCallback === null || providedCallback ===
|
|
7822
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7823
7823
|
};
|
|
7824
7824
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7825
7825
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7838,8 +7838,8 @@ class ProtectedItemImpl {
|
|
|
7838
7838
|
spec: plannedFailoverOperationSpec
|
|
7839
7839
|
});
|
|
7840
7840
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7841
|
-
restoreFrom: options === null || options ===
|
|
7842
|
-
intervalInMs: options === null || options ===
|
|
7841
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7842
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7843
7843
|
resourceLocationConfig: "location"
|
|
7844
7844
|
});
|
|
7845
7845
|
yield poller.poll();
|
|
@@ -7854,7 +7854,7 @@ class ProtectedItemImpl {
|
|
|
7854
7854
|
* @param options The options parameters.
|
|
7855
7855
|
*/
|
|
7856
7856
|
beginPlannedFailoverAndWait(resourceGroupName, vaultName, protectedItemName, options) {
|
|
7857
|
-
return tslib.__awaiter(this,
|
|
7857
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7858
7858
|
const poller = yield this.beginPlannedFailover(resourceGroupName, vaultName, protectedItemName, options);
|
|
7859
7859
|
return poller.pollUntilDone();
|
|
7860
7860
|
});
|
|
@@ -8122,7 +8122,7 @@ class RecoveryPointsImpl {
|
|
|
8122
8122
|
return this;
|
|
8123
8123
|
},
|
|
8124
8124
|
byPage: (settings) => {
|
|
8125
|
-
if (settings === null || settings ===
|
|
8125
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8126
8126
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8127
8127
|
}
|
|
8128
8128
|
return this.listPagingPage(resourceGroupName, vaultName, protectedItemName, options, settings);
|
|
@@ -8132,7 +8132,7 @@ class RecoveryPointsImpl {
|
|
|
8132
8132
|
listPagingPage(resourceGroupName, vaultName, protectedItemName, options, settings) {
|
|
8133
8133
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8134
8134
|
let result;
|
|
8135
|
-
let continuationToken = settings === null || settings ===
|
|
8135
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8136
8136
|
if (!continuationToken) {
|
|
8137
8137
|
result = yield tslib.__await(this._list(resourceGroupName, vaultName, protectedItemName, options));
|
|
8138
8138
|
let page = result.value || [];
|
|
@@ -8311,7 +8311,7 @@ class ReplicationExtensionImpl {
|
|
|
8311
8311
|
return this;
|
|
8312
8312
|
},
|
|
8313
8313
|
byPage: (settings) => {
|
|
8314
|
-
if (settings === null || settings ===
|
|
8314
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8315
8315
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8316
8316
|
}
|
|
8317
8317
|
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
@@ -8321,7 +8321,7 @@ class ReplicationExtensionImpl {
|
|
|
8321
8321
|
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
8322
8322
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8323
8323
|
let result;
|
|
8324
|
-
let continuationToken = settings === null || settings ===
|
|
8324
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8325
8325
|
if (!continuationToken) {
|
|
8326
8326
|
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
8327
8327
|
let page = result.value || [];
|
|
@@ -8376,17 +8376,17 @@ class ReplicationExtensionImpl {
|
|
|
8376
8376
|
* @param options The options parameters.
|
|
8377
8377
|
*/
|
|
8378
8378
|
beginCreate(resourceGroupName, vaultName, replicationExtensionName, options) {
|
|
8379
|
-
return tslib.__awaiter(this,
|
|
8380
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8379
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8380
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8381
8381
|
return this.client.sendOperationRequest(args, spec);
|
|
8382
8382
|
});
|
|
8383
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8383
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8384
8384
|
var _a;
|
|
8385
8385
|
let currentRawResponse = undefined;
|
|
8386
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8386
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8387
8387
|
const callback = (rawResponse, flatResponse) => {
|
|
8388
8388
|
currentRawResponse = rawResponse;
|
|
8389
|
-
providedCallback === null || providedCallback ===
|
|
8389
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8390
8390
|
};
|
|
8391
8391
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8392
8392
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8405,8 +8405,8 @@ class ReplicationExtensionImpl {
|
|
|
8405
8405
|
spec: createOperationSpec$1
|
|
8406
8406
|
});
|
|
8407
8407
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8408
|
-
restoreFrom: options === null || options ===
|
|
8409
|
-
intervalInMs: options === null || options ===
|
|
8408
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8409
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8410
8410
|
resourceLocationConfig: "location"
|
|
8411
8411
|
});
|
|
8412
8412
|
yield poller.poll();
|
|
@@ -8421,7 +8421,7 @@ class ReplicationExtensionImpl {
|
|
|
8421
8421
|
* @param options The options parameters.
|
|
8422
8422
|
*/
|
|
8423
8423
|
beginCreateAndWait(resourceGroupName, vaultName, replicationExtensionName, options) {
|
|
8424
|
-
return tslib.__awaiter(this,
|
|
8424
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8425
8425
|
const poller = yield this.beginCreate(resourceGroupName, vaultName, replicationExtensionName, options);
|
|
8426
8426
|
return poller.pollUntilDone();
|
|
8427
8427
|
});
|
|
@@ -8434,17 +8434,17 @@ class ReplicationExtensionImpl {
|
|
|
8434
8434
|
* @param options The options parameters.
|
|
8435
8435
|
*/
|
|
8436
8436
|
beginDelete(resourceGroupName, vaultName, replicationExtensionName, options) {
|
|
8437
|
-
return tslib.__awaiter(this,
|
|
8438
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8437
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8438
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8439
8439
|
return this.client.sendOperationRequest(args, spec);
|
|
8440
8440
|
});
|
|
8441
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8441
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8442
8442
|
var _a;
|
|
8443
8443
|
let currentRawResponse = undefined;
|
|
8444
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8444
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8445
8445
|
const callback = (rawResponse, flatResponse) => {
|
|
8446
8446
|
currentRawResponse = rawResponse;
|
|
8447
|
-
providedCallback === null || providedCallback ===
|
|
8447
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8448
8448
|
};
|
|
8449
8449
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8450
8450
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8463,8 +8463,8 @@ class ReplicationExtensionImpl {
|
|
|
8463
8463
|
spec: deleteOperationSpec$1
|
|
8464
8464
|
});
|
|
8465
8465
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8466
|
-
restoreFrom: options === null || options ===
|
|
8467
|
-
intervalInMs: options === null || options ===
|
|
8466
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8467
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8468
8468
|
resourceLocationConfig: "location"
|
|
8469
8469
|
});
|
|
8470
8470
|
yield poller.poll();
|
|
@@ -8479,7 +8479,7 @@ class ReplicationExtensionImpl {
|
|
|
8479
8479
|
* @param options The options parameters.
|
|
8480
8480
|
*/
|
|
8481
8481
|
beginDeleteAndWait(resourceGroupName, vaultName, replicationExtensionName, options) {
|
|
8482
|
-
return tslib.__awaiter(this,
|
|
8482
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8483
8483
|
const poller = yield this.beginDelete(resourceGroupName, vaultName, replicationExtensionName, options);
|
|
8484
8484
|
return poller.pollUntilDone();
|
|
8485
8485
|
});
|
|
@@ -8726,7 +8726,7 @@ class OperationsImpl {
|
|
|
8726
8726
|
return this;
|
|
8727
8727
|
},
|
|
8728
8728
|
byPage: (settings) => {
|
|
8729
|
-
if (settings === null || settings ===
|
|
8729
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8730
8730
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8731
8731
|
}
|
|
8732
8732
|
return this.listPagingPage(options, settings);
|
|
@@ -8736,7 +8736,7 @@ class OperationsImpl {
|
|
|
8736
8736
|
listPagingPage(options, settings) {
|
|
8737
8737
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8738
8738
|
let result;
|
|
8739
|
-
let continuationToken = settings === null || settings ===
|
|
8739
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8740
8740
|
if (!continuationToken) {
|
|
8741
8741
|
result = yield tslib.__await(this._list(options));
|
|
8742
8742
|
let page = result.value || [];
|
|
@@ -8854,7 +8854,7 @@ class VaultImpl {
|
|
|
8854
8854
|
return this;
|
|
8855
8855
|
},
|
|
8856
8856
|
byPage: (settings) => {
|
|
8857
|
-
if (settings === null || settings ===
|
|
8857
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8858
8858
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8859
8859
|
}
|
|
8860
8860
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -8864,7 +8864,7 @@ class VaultImpl {
|
|
|
8864
8864
|
listBySubscriptionPagingPage(options, settings) {
|
|
8865
8865
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
8866
8866
|
let result;
|
|
8867
|
-
let continuationToken = settings === null || settings ===
|
|
8867
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8868
8868
|
if (!continuationToken) {
|
|
8869
8869
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
8870
8870
|
let page = result.value || [];
|
|
@@ -8916,7 +8916,7 @@ class VaultImpl {
|
|
|
8916
8916
|
return this;
|
|
8917
8917
|
},
|
|
8918
8918
|
byPage: (settings) => {
|
|
8919
|
-
if (settings === null || settings ===
|
|
8919
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8920
8920
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8921
8921
|
}
|
|
8922
8922
|
return this.listPagingPage(resourceGroupName, options, settings);
|
|
@@ -8926,7 +8926,7 @@ class VaultImpl {
|
|
|
8926
8926
|
listPagingPage(resourceGroupName, options, settings) {
|
|
8927
8927
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8928
8928
|
let result;
|
|
8929
|
-
let continuationToken = settings === null || settings ===
|
|
8929
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8930
8930
|
if (!continuationToken) {
|
|
8931
8931
|
result = yield tslib.__await(this._list(resourceGroupName, options));
|
|
8932
8932
|
let page = result.value || [];
|
|
@@ -8979,17 +8979,17 @@ class VaultImpl {
|
|
|
8979
8979
|
* @param options The options parameters.
|
|
8980
8980
|
*/
|
|
8981
8981
|
beginCreate(resourceGroupName, vaultName, options) {
|
|
8982
|
-
return tslib.__awaiter(this,
|
|
8983
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8982
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8983
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8984
8984
|
return this.client.sendOperationRequest(args, spec);
|
|
8985
8985
|
});
|
|
8986
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8986
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8987
8987
|
var _a;
|
|
8988
8988
|
let currentRawResponse = undefined;
|
|
8989
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8989
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8990
8990
|
const callback = (rawResponse, flatResponse) => {
|
|
8991
8991
|
currentRawResponse = rawResponse;
|
|
8992
|
-
providedCallback === null || providedCallback ===
|
|
8992
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8993
8993
|
};
|
|
8994
8994
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8995
8995
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9008,8 +9008,8 @@ class VaultImpl {
|
|
|
9008
9008
|
spec: createOperationSpec
|
|
9009
9009
|
});
|
|
9010
9010
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9011
|
-
restoreFrom: options === null || options ===
|
|
9012
|
-
intervalInMs: options === null || options ===
|
|
9011
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9012
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9013
9013
|
resourceLocationConfig: "location"
|
|
9014
9014
|
});
|
|
9015
9015
|
yield poller.poll();
|
|
@@ -9023,7 +9023,7 @@ class VaultImpl {
|
|
|
9023
9023
|
* @param options The options parameters.
|
|
9024
9024
|
*/
|
|
9025
9025
|
beginCreateAndWait(resourceGroupName, vaultName, options) {
|
|
9026
|
-
return tslib.__awaiter(this,
|
|
9026
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9027
9027
|
const poller = yield this.beginCreate(resourceGroupName, vaultName, options);
|
|
9028
9028
|
return poller.pollUntilDone();
|
|
9029
9029
|
});
|
|
@@ -9035,17 +9035,17 @@ class VaultImpl {
|
|
|
9035
9035
|
* @param options The options parameters.
|
|
9036
9036
|
*/
|
|
9037
9037
|
beginUpdate(resourceGroupName, vaultName, options) {
|
|
9038
|
-
return tslib.__awaiter(this,
|
|
9039
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9038
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9039
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9040
9040
|
return this.client.sendOperationRequest(args, spec);
|
|
9041
9041
|
});
|
|
9042
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9042
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9043
9043
|
var _a;
|
|
9044
9044
|
let currentRawResponse = undefined;
|
|
9045
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9045
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
9046
9046
|
const callback = (rawResponse, flatResponse) => {
|
|
9047
9047
|
currentRawResponse = rawResponse;
|
|
9048
|
-
providedCallback === null || providedCallback ===
|
|
9048
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
9049
9049
|
};
|
|
9050
9050
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9051
9051
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9064,8 +9064,8 @@ class VaultImpl {
|
|
|
9064
9064
|
spec: updateOperationSpec
|
|
9065
9065
|
});
|
|
9066
9066
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9067
|
-
restoreFrom: options === null || options ===
|
|
9068
|
-
intervalInMs: options === null || options ===
|
|
9067
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9068
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9069
9069
|
resourceLocationConfig: "location"
|
|
9070
9070
|
});
|
|
9071
9071
|
yield poller.poll();
|
|
@@ -9079,7 +9079,7 @@ class VaultImpl {
|
|
|
9079
9079
|
* @param options The options parameters.
|
|
9080
9080
|
*/
|
|
9081
9081
|
beginUpdateAndWait(resourceGroupName, vaultName, options) {
|
|
9082
|
-
return tslib.__awaiter(this,
|
|
9082
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9083
9083
|
const poller = yield this.beginUpdate(resourceGroupName, vaultName, options);
|
|
9084
9084
|
return poller.pollUntilDone();
|
|
9085
9085
|
});
|
|
@@ -9091,17 +9091,17 @@ class VaultImpl {
|
|
|
9091
9091
|
* @param options The options parameters.
|
|
9092
9092
|
*/
|
|
9093
9093
|
beginDelete(resourceGroupName, vaultName, options) {
|
|
9094
|
-
return tslib.__awaiter(this,
|
|
9095
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9094
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9095
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9096
9096
|
return this.client.sendOperationRequest(args, spec);
|
|
9097
9097
|
});
|
|
9098
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9098
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9099
9099
|
var _a;
|
|
9100
9100
|
let currentRawResponse = undefined;
|
|
9101
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9101
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
9102
9102
|
const callback = (rawResponse, flatResponse) => {
|
|
9103
9103
|
currentRawResponse = rawResponse;
|
|
9104
|
-
providedCallback === null || providedCallback ===
|
|
9104
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
9105
9105
|
};
|
|
9106
9106
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9107
9107
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9120,8 +9120,8 @@ class VaultImpl {
|
|
|
9120
9120
|
spec: deleteOperationSpec
|
|
9121
9121
|
});
|
|
9122
9122
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9123
|
-
restoreFrom: options === null || options ===
|
|
9124
|
-
intervalInMs: options === null || options ===
|
|
9123
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9124
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9125
9125
|
resourceLocationConfig: "location"
|
|
9126
9126
|
});
|
|
9127
9127
|
yield poller.poll();
|
|
@@ -9135,7 +9135,7 @@ class VaultImpl {
|
|
|
9135
9135
|
* @param options The options parameters.
|
|
9136
9136
|
*/
|
|
9137
9137
|
beginDeleteAndWait(resourceGroupName, vaultName, options) {
|
|
9138
|
-
return tslib.__awaiter(this,
|
|
9138
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9139
9139
|
const poller = yield this.beginDelete(resourceGroupName, vaultName, options);
|
|
9140
9140
|
return poller.pollUntilDone();
|
|
9141
9141
|
});
|
|
@@ -9451,7 +9451,7 @@ class WorkflowImpl {
|
|
|
9451
9451
|
return this;
|
|
9452
9452
|
},
|
|
9453
9453
|
byPage: (settings) => {
|
|
9454
|
-
if (settings === null || settings ===
|
|
9454
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
9455
9455
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9456
9456
|
}
|
|
9457
9457
|
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
@@ -9461,7 +9461,7 @@ class WorkflowImpl {
|
|
|
9461
9461
|
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
9462
9462
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9463
9463
|
let result;
|
|
9464
|
-
let continuationToken = settings === null || settings ===
|
|
9464
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
9465
9465
|
if (!continuationToken) {
|
|
9466
9466
|
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
9467
9467
|
let page = result.value || [];
|
|
@@ -9689,10 +9689,10 @@ class AzureSiteRecoveryManagementServiceAPI extends coreClient__namespace.Servic
|
|
|
9689
9689
|
: `${packageDetails}`;
|
|
9690
9690
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
9691
9691
|
userAgentPrefix
|
|
9692
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
9692
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
9693
9693
|
super(optionsWithDefaults);
|
|
9694
9694
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
9695
|
-
if ((options === null || options ===
|
|
9695
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
9696
9696
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
9697
9697
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
9698
9698
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -9706,7 +9706,7 @@ class AzureSiteRecoveryManagementServiceAPI extends coreClient__namespace.Servic
|
|
|
9706
9706
|
});
|
|
9707
9707
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
9708
9708
|
credential: credentials,
|
|
9709
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
9709
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
9710
9710
|
challengeCallbacks: {
|
|
9711
9711
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
9712
9712
|
}
|
|
@@ -9745,7 +9745,7 @@ class AzureSiteRecoveryManagementServiceAPI extends coreClient__namespace.Servic
|
|
|
9745
9745
|
const apiVersionPolicy = {
|
|
9746
9746
|
name: "CustomApiVersionPolicy",
|
|
9747
9747
|
sendRequest(request, next) {
|
|
9748
|
-
return tslib.__awaiter(this,
|
|
9748
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9749
9749
|
const param = request.url.split("?");
|
|
9750
9750
|
if (param.length > 1) {
|
|
9751
9751
|
const newParams = param[1].split("&").map((item) => {
|