@azure/arm-recoveryservicesbackup 13.1.1-alpha.20250103.1 → 13.1.1-alpha.20250106.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +116 -116
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
|
|
|
47
47
|
if (typeof page !== "object" || page === null) {
|
|
48
48
|
return undefined;
|
|
49
49
|
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -994,7 +994,7 @@ function createLroSpec(inputs) {
|
|
|
994
994
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
995
995
|
sendPollRequest: (path, options) => {
|
|
996
996
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
997
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
997
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
998
998
|
},
|
|
999
999
|
};
|
|
1000
1000
|
}
|
|
@@ -11152,7 +11152,7 @@ class BackupProtectionIntentImpl {
|
|
|
11152
11152
|
return this;
|
|
11153
11153
|
},
|
|
11154
11154
|
byPage: (settings) => {
|
|
11155
|
-
if (settings === null || settings ===
|
|
11155
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11156
11156
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11157
11157
|
}
|
|
11158
11158
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
@@ -11162,7 +11162,7 @@ class BackupProtectionIntentImpl {
|
|
|
11162
11162
|
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
11163
11163
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
11164
11164
|
let result;
|
|
11165
|
-
let continuationToken = settings === null || settings ===
|
|
11165
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11166
11166
|
if (!continuationToken) {
|
|
11167
11167
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
|
|
11168
11168
|
let page = result.value || [];
|
|
@@ -11298,7 +11298,7 @@ class BackupUsageSummariesImpl {
|
|
|
11298
11298
|
return this;
|
|
11299
11299
|
},
|
|
11300
11300
|
byPage: (settings) => {
|
|
11301
|
-
if (settings === null || settings ===
|
|
11301
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11302
11302
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11303
11303
|
}
|
|
11304
11304
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
@@ -11399,7 +11399,7 @@ class OperationsImpl {
|
|
|
11399
11399
|
return this;
|
|
11400
11400
|
},
|
|
11401
11401
|
byPage: (settings) => {
|
|
11402
|
-
if (settings === null || settings ===
|
|
11402
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11403
11403
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11404
11404
|
}
|
|
11405
11405
|
return this.listPagingPage(options, settings);
|
|
@@ -11409,7 +11409,7 @@ class OperationsImpl {
|
|
|
11409
11409
|
listPagingPage(options, settings) {
|
|
11410
11410
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
11411
11411
|
let result;
|
|
11412
|
-
let continuationToken = settings === null || settings ===
|
|
11412
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11413
11413
|
if (!continuationToken) {
|
|
11414
11414
|
result = yield tslib.__await(this._list(options));
|
|
11415
11415
|
let page = result.value || [];
|
|
@@ -11737,17 +11737,17 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
11737
11737
|
* @param options The options parameters.
|
|
11738
11738
|
*/
|
|
11739
11739
|
beginPut(vaultName, resourceGroupName, privateEndpointConnectionName, parameters, options) {
|
|
11740
|
-
return tslib.__awaiter(this,
|
|
11741
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11740
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11741
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11742
11742
|
return this.client.sendOperationRequest(args, spec);
|
|
11743
11743
|
});
|
|
11744
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11744
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11745
11745
|
var _a;
|
|
11746
11746
|
let currentRawResponse = undefined;
|
|
11747
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11747
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11748
11748
|
const callback = (rawResponse, flatResponse) => {
|
|
11749
11749
|
currentRawResponse = rawResponse;
|
|
11750
|
-
providedCallback === null || providedCallback ===
|
|
11750
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11751
11751
|
};
|
|
11752
11752
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11753
11753
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11772,8 +11772,8 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
11772
11772
|
spec: putOperationSpec$1,
|
|
11773
11773
|
});
|
|
11774
11774
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11775
|
-
restoreFrom: options === null || options ===
|
|
11776
|
-
intervalInMs: options === null || options ===
|
|
11775
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11776
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11777
11777
|
});
|
|
11778
11778
|
yield poller.poll();
|
|
11779
11779
|
return poller;
|
|
@@ -11789,7 +11789,7 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
11789
11789
|
* @param options The options parameters.
|
|
11790
11790
|
*/
|
|
11791
11791
|
beginPutAndWait(vaultName, resourceGroupName, privateEndpointConnectionName, parameters, options) {
|
|
11792
|
-
return tslib.__awaiter(this,
|
|
11792
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11793
11793
|
const poller = yield this.beginPut(vaultName, resourceGroupName, privateEndpointConnectionName, parameters, options);
|
|
11794
11794
|
return poller.pollUntilDone();
|
|
11795
11795
|
});
|
|
@@ -11803,17 +11803,17 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
11803
11803
|
* @param options The options parameters.
|
|
11804
11804
|
*/
|
|
11805
11805
|
beginDelete(vaultName, resourceGroupName, privateEndpointConnectionName, options) {
|
|
11806
|
-
return tslib.__awaiter(this,
|
|
11807
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11806
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11807
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11808
11808
|
return this.client.sendOperationRequest(args, spec);
|
|
11809
11809
|
});
|
|
11810
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11810
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11811
11811
|
var _a;
|
|
11812
11812
|
let currentRawResponse = undefined;
|
|
11813
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11813
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11814
11814
|
const callback = (rawResponse, flatResponse) => {
|
|
11815
11815
|
currentRawResponse = rawResponse;
|
|
11816
|
-
providedCallback === null || providedCallback ===
|
|
11816
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11817
11817
|
};
|
|
11818
11818
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11819
11819
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11837,8 +11837,8 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
11837
11837
|
spec: deleteOperationSpec$3,
|
|
11838
11838
|
});
|
|
11839
11839
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11840
|
-
restoreFrom: options === null || options ===
|
|
11841
|
-
intervalInMs: options === null || options ===
|
|
11840
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11841
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11842
11842
|
});
|
|
11843
11843
|
yield poller.poll();
|
|
11844
11844
|
return poller;
|
|
@@ -11853,7 +11853,7 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
11853
11853
|
* @param options The options parameters.
|
|
11854
11854
|
*/
|
|
11855
11855
|
beginDeleteAndWait(vaultName, resourceGroupName, privateEndpointConnectionName, options) {
|
|
11856
|
-
return tslib.__awaiter(this,
|
|
11856
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11857
11857
|
const poller = yield this.beginDelete(vaultName, resourceGroupName, privateEndpointConnectionName, options);
|
|
11858
11858
|
return poller.pollUntilDone();
|
|
11859
11859
|
});
|
|
@@ -12328,7 +12328,7 @@ class RecoveryPointsImpl {
|
|
|
12328
12328
|
return this;
|
|
12329
12329
|
},
|
|
12330
12330
|
byPage: (settings) => {
|
|
12331
|
-
if (settings === null || settings ===
|
|
12331
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12332
12332
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12333
12333
|
}
|
|
12334
12334
|
return this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options, settings);
|
|
@@ -12338,7 +12338,7 @@ class RecoveryPointsImpl {
|
|
|
12338
12338
|
listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options, settings) {
|
|
12339
12339
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
12340
12340
|
let result;
|
|
12341
|
-
let continuationToken = settings === null || settings ===
|
|
12341
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
12342
12342
|
if (!continuationToken) {
|
|
12343
12343
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options));
|
|
12344
12344
|
let page = result.value || [];
|
|
@@ -12549,17 +12549,17 @@ class RestoresImpl {
|
|
|
12549
12549
|
* @param options The options parameters.
|
|
12550
12550
|
*/
|
|
12551
12551
|
beginTrigger(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options) {
|
|
12552
|
-
return tslib.__awaiter(this,
|
|
12553
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12552
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12553
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12554
12554
|
return this.client.sendOperationRequest(args, spec);
|
|
12555
12555
|
});
|
|
12556
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12556
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12557
12557
|
var _a;
|
|
12558
12558
|
let currentRawResponse = undefined;
|
|
12559
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12559
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12560
12560
|
const callback = (rawResponse, flatResponse) => {
|
|
12561
12561
|
currentRawResponse = rawResponse;
|
|
12562
|
-
providedCallback === null || providedCallback ===
|
|
12562
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12563
12563
|
};
|
|
12564
12564
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12565
12565
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12587,8 +12587,8 @@ class RestoresImpl {
|
|
|
12587
12587
|
spec: triggerOperationSpec$3,
|
|
12588
12588
|
});
|
|
12589
12589
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12590
|
-
restoreFrom: options === null || options ===
|
|
12591
|
-
intervalInMs: options === null || options ===
|
|
12590
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12591
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12592
12592
|
});
|
|
12593
12593
|
yield poller.poll();
|
|
12594
12594
|
return poller;
|
|
@@ -12609,7 +12609,7 @@ class RestoresImpl {
|
|
|
12609
12609
|
* @param options The options parameters.
|
|
12610
12610
|
*/
|
|
12611
12611
|
beginTriggerAndWait(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options) {
|
|
12612
|
-
return tslib.__awaiter(this,
|
|
12612
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12613
12613
|
const poller = yield this.beginTrigger(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options);
|
|
12614
12614
|
return poller.pollUntilDone();
|
|
12615
12615
|
});
|
|
@@ -12686,7 +12686,7 @@ class BackupPoliciesImpl {
|
|
|
12686
12686
|
return this;
|
|
12687
12687
|
},
|
|
12688
12688
|
byPage: (settings) => {
|
|
12689
|
-
if (settings === null || settings ===
|
|
12689
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12690
12690
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12691
12691
|
}
|
|
12692
12692
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
@@ -12696,7 +12696,7 @@ class BackupPoliciesImpl {
|
|
|
12696
12696
|
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
12697
12697
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
12698
12698
|
let result;
|
|
12699
|
-
let continuationToken = settings === null || settings ===
|
|
12699
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
12700
12700
|
if (!continuationToken) {
|
|
12701
12701
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
|
|
12702
12702
|
let page = result.value || [];
|
|
@@ -12856,17 +12856,17 @@ class ProtectionPoliciesImpl {
|
|
|
12856
12856
|
* @param options The options parameters.
|
|
12857
12857
|
*/
|
|
12858
12858
|
beginDelete(vaultName, resourceGroupName, policyName, options) {
|
|
12859
|
-
return tslib.__awaiter(this,
|
|
12860
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12859
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12860
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12861
12861
|
return this.client.sendOperationRequest(args, spec);
|
|
12862
12862
|
});
|
|
12863
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12863
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12864
12864
|
var _a;
|
|
12865
12865
|
let currentRawResponse = undefined;
|
|
12866
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12866
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12867
12867
|
const callback = (rawResponse, flatResponse) => {
|
|
12868
12868
|
currentRawResponse = rawResponse;
|
|
12869
|
-
providedCallback === null || providedCallback ===
|
|
12869
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12870
12870
|
};
|
|
12871
12871
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12872
12872
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12885,8 +12885,8 @@ class ProtectionPoliciesImpl {
|
|
|
12885
12885
|
spec: deleteOperationSpec$1,
|
|
12886
12886
|
});
|
|
12887
12887
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12888
|
-
restoreFrom: options === null || options ===
|
|
12889
|
-
intervalInMs: options === null || options ===
|
|
12888
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12889
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12890
12890
|
});
|
|
12891
12891
|
yield poller.poll();
|
|
12892
12892
|
return poller;
|
|
@@ -12903,7 +12903,7 @@ class ProtectionPoliciesImpl {
|
|
|
12903
12903
|
* @param options The options parameters.
|
|
12904
12904
|
*/
|
|
12905
12905
|
beginDeleteAndWait(vaultName, resourceGroupName, policyName, options) {
|
|
12906
|
-
return tslib.__awaiter(this,
|
|
12906
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12907
12907
|
const poller = yield this.beginDelete(vaultName, resourceGroupName, policyName, options);
|
|
12908
12908
|
return poller.pollUntilDone();
|
|
12909
12909
|
});
|
|
@@ -13075,7 +13075,7 @@ class BackupJobsImpl {
|
|
|
13075
13075
|
return this;
|
|
13076
13076
|
},
|
|
13077
13077
|
byPage: (settings) => {
|
|
13078
|
-
if (settings === null || settings ===
|
|
13078
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
13079
13079
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13080
13080
|
}
|
|
13081
13081
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
@@ -13085,7 +13085,7 @@ class BackupJobsImpl {
|
|
|
13085
13085
|
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
13086
13086
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
13087
13087
|
let result;
|
|
13088
|
-
let continuationToken = settings === null || settings ===
|
|
13088
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
13089
13089
|
if (!continuationToken) {
|
|
13090
13090
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
|
|
13091
13091
|
let page = result.value || [];
|
|
@@ -13495,7 +13495,7 @@ class BackupProtectedItemsImpl {
|
|
|
13495
13495
|
return this;
|
|
13496
13496
|
},
|
|
13497
13497
|
byPage: (settings) => {
|
|
13498
|
-
if (settings === null || settings ===
|
|
13498
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
13499
13499
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13500
13500
|
}
|
|
13501
13501
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
@@ -13505,7 +13505,7 @@ class BackupProtectedItemsImpl {
|
|
|
13505
13505
|
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
13506
13506
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
13507
13507
|
let result;
|
|
13508
|
-
let continuationToken = settings === null || settings ===
|
|
13508
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
13509
13509
|
if (!continuationToken) {
|
|
13510
13510
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
|
|
13511
13511
|
let page = result.value || [];
|
|
@@ -13693,17 +13693,17 @@ class ValidateOperationImpl {
|
|
|
13693
13693
|
* @param options The options parameters.
|
|
13694
13694
|
*/
|
|
13695
13695
|
beginTrigger(vaultName, resourceGroupName, parameters, options) {
|
|
13696
|
-
return tslib.__awaiter(this,
|
|
13697
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
13696
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13697
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13698
13698
|
return this.client.sendOperationRequest(args, spec);
|
|
13699
13699
|
});
|
|
13700
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
13700
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13701
13701
|
var _a;
|
|
13702
13702
|
let currentRawResponse = undefined;
|
|
13703
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
13703
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
13704
13704
|
const callback = (rawResponse, flatResponse) => {
|
|
13705
13705
|
currentRawResponse = rawResponse;
|
|
13706
|
-
providedCallback === null || providedCallback ===
|
|
13706
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
13707
13707
|
};
|
|
13708
13708
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
13709
13709
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -13722,8 +13722,8 @@ class ValidateOperationImpl {
|
|
|
13722
13722
|
spec: triggerOperationSpec$1,
|
|
13723
13723
|
});
|
|
13724
13724
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
13725
|
-
restoreFrom: options === null || options ===
|
|
13726
|
-
intervalInMs: options === null || options ===
|
|
13725
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
13726
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
13727
13727
|
});
|
|
13728
13728
|
yield poller.poll();
|
|
13729
13729
|
return poller;
|
|
@@ -13739,7 +13739,7 @@ class ValidateOperationImpl {
|
|
|
13739
13739
|
* @param options The options parameters.
|
|
13740
13740
|
*/
|
|
13741
13741
|
beginTriggerAndWait(vaultName, resourceGroupName, parameters, options) {
|
|
13742
|
-
return tslib.__awaiter(this,
|
|
13742
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13743
13743
|
const poller = yield this.beginTrigger(vaultName, resourceGroupName, parameters, options);
|
|
13744
13744
|
return poller.pollUntilDone();
|
|
13745
13745
|
});
|
|
@@ -13916,7 +13916,7 @@ class BackupEnginesImpl {
|
|
|
13916
13916
|
return this;
|
|
13917
13917
|
},
|
|
13918
13918
|
byPage: (settings) => {
|
|
13919
|
-
if (settings === null || settings ===
|
|
13919
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
13920
13920
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13921
13921
|
}
|
|
13922
13922
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
@@ -13926,7 +13926,7 @@ class BackupEnginesImpl {
|
|
|
13926
13926
|
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
13927
13927
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
13928
13928
|
let result;
|
|
13929
|
-
let continuationToken = settings === null || settings ===
|
|
13929
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
13930
13930
|
if (!continuationToken) {
|
|
13931
13931
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
|
|
13932
13932
|
let page = result.value || [];
|
|
@@ -14160,7 +14160,7 @@ class ProtectableContainersImpl {
|
|
|
14160
14160
|
return this;
|
|
14161
14161
|
},
|
|
14162
14162
|
byPage: (settings) => {
|
|
14163
|
-
if (settings === null || settings ===
|
|
14163
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
14164
14164
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14165
14165
|
}
|
|
14166
14166
|
return this.listPagingPage(vaultName, resourceGroupName, fabricName, options, settings);
|
|
@@ -14170,7 +14170,7 @@ class ProtectableContainersImpl {
|
|
|
14170
14170
|
listPagingPage(vaultName, resourceGroupName, fabricName, options, settings) {
|
|
14171
14171
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
14172
14172
|
let result;
|
|
14173
|
-
let continuationToken = settings === null || settings ===
|
|
14173
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
14174
14174
|
if (!continuationToken) {
|
|
14175
14175
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, fabricName, options));
|
|
14176
14176
|
let page = result.value || [];
|
|
@@ -14320,17 +14320,17 @@ class ProtectionContainersImpl {
|
|
|
14320
14320
|
* @param options The options parameters.
|
|
14321
14321
|
*/
|
|
14322
14322
|
beginRegister(vaultName, resourceGroupName, fabricName, containerName, parameters, options) {
|
|
14323
|
-
return tslib.__awaiter(this,
|
|
14324
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
14323
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14324
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14325
14325
|
return this.client.sendOperationRequest(args, spec);
|
|
14326
14326
|
});
|
|
14327
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
14327
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14328
14328
|
var _a;
|
|
14329
14329
|
let currentRawResponse = undefined;
|
|
14330
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
14330
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
14331
14331
|
const callback = (rawResponse, flatResponse) => {
|
|
14332
14332
|
currentRawResponse = rawResponse;
|
|
14333
|
-
providedCallback === null || providedCallback ===
|
|
14333
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
14334
14334
|
};
|
|
14335
14335
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
14336
14336
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -14356,8 +14356,8 @@ class ProtectionContainersImpl {
|
|
|
14356
14356
|
spec: registerOperationSpec,
|
|
14357
14357
|
});
|
|
14358
14358
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
14359
|
-
restoreFrom: options === null || options ===
|
|
14360
|
-
intervalInMs: options === null || options ===
|
|
14359
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
14360
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
14361
14361
|
});
|
|
14362
14362
|
yield poller.poll();
|
|
14363
14363
|
return poller;
|
|
@@ -14377,7 +14377,7 @@ class ProtectionContainersImpl {
|
|
|
14377
14377
|
* @param options The options parameters.
|
|
14378
14378
|
*/
|
|
14379
14379
|
beginRegisterAndWait(vaultName, resourceGroupName, fabricName, containerName, parameters, options) {
|
|
14380
|
-
return tslib.__awaiter(this,
|
|
14380
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14381
14381
|
const poller = yield this.beginRegister(vaultName, resourceGroupName, fabricName, containerName, parameters, options);
|
|
14382
14382
|
return poller.pollUntilDone();
|
|
14383
14383
|
});
|
|
@@ -14587,7 +14587,7 @@ class BackupWorkloadItemsImpl {
|
|
|
14587
14587
|
return this;
|
|
14588
14588
|
},
|
|
14589
14589
|
byPage: (settings) => {
|
|
14590
|
-
if (settings === null || settings ===
|
|
14590
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
14591
14591
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14592
14592
|
}
|
|
14593
14593
|
return this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, options, settings);
|
|
@@ -14597,7 +14597,7 @@ class BackupWorkloadItemsImpl {
|
|
|
14597
14597
|
listPagingPage(vaultName, resourceGroupName, fabricName, containerName, options, settings) {
|
|
14598
14598
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
14599
14599
|
let result;
|
|
14600
|
-
let continuationToken = settings === null || settings ===
|
|
14600
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
14601
14601
|
if (!continuationToken) {
|
|
14602
14602
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, fabricName, containerName, options));
|
|
14603
14603
|
let page = result.value || [];
|
|
@@ -15262,7 +15262,7 @@ class BackupProtectableItemsImpl {
|
|
|
15262
15262
|
return this;
|
|
15263
15263
|
},
|
|
15264
15264
|
byPage: (settings) => {
|
|
15265
|
-
if (settings === null || settings ===
|
|
15265
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
15266
15266
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15267
15267
|
}
|
|
15268
15268
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
@@ -15272,7 +15272,7 @@ class BackupProtectableItemsImpl {
|
|
|
15272
15272
|
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
15273
15273
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
15274
15274
|
let result;
|
|
15275
|
-
let continuationToken = settings === null || settings ===
|
|
15275
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
15276
15276
|
if (!continuationToken) {
|
|
15277
15277
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
|
|
15278
15278
|
let page = result.value || [];
|
|
@@ -15416,7 +15416,7 @@ class BackupProtectionContainersImpl {
|
|
|
15416
15416
|
return this;
|
|
15417
15417
|
},
|
|
15418
15418
|
byPage: (settings) => {
|
|
15419
|
-
if (settings === null || settings ===
|
|
15419
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
15420
15420
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15421
15421
|
}
|
|
15422
15422
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
@@ -15426,7 +15426,7 @@ class BackupProtectionContainersImpl {
|
|
|
15426
15426
|
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
15427
15427
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
15428
15428
|
let result;
|
|
15429
|
-
let continuationToken = settings === null || settings ===
|
|
15429
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
15430
15430
|
if (!continuationToken) {
|
|
15431
15431
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
|
|
15432
15432
|
let page = result.value || [];
|
|
@@ -15564,7 +15564,7 @@ class DeletedProtectionContainersImpl {
|
|
|
15564
15564
|
return this;
|
|
15565
15565
|
},
|
|
15566
15566
|
byPage: (settings) => {
|
|
15567
|
-
if (settings === null || settings ===
|
|
15567
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
15568
15568
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15569
15569
|
}
|
|
15570
15570
|
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
@@ -15574,7 +15574,7 @@ class DeletedProtectionContainersImpl {
|
|
|
15574
15574
|
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
15575
15575
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
15576
15576
|
let result;
|
|
15577
|
-
let continuationToken = settings === null || settings ===
|
|
15577
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
15578
15578
|
if (!continuationToken) {
|
|
15579
15579
|
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
15580
15580
|
let page = result.value || [];
|
|
@@ -15773,7 +15773,7 @@ class RecoveryPointsRecommendedForMoveImpl {
|
|
|
15773
15773
|
return this;
|
|
15774
15774
|
},
|
|
15775
15775
|
byPage: (settings) => {
|
|
15776
|
-
if (settings === null || settings ===
|
|
15776
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
15777
15777
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15778
15778
|
}
|
|
15779
15779
|
return this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options, settings);
|
|
@@ -15783,7 +15783,7 @@ class RecoveryPointsRecommendedForMoveImpl {
|
|
|
15783
15783
|
listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options, settings) {
|
|
15784
15784
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
15785
15785
|
let result;
|
|
15786
|
-
let continuationToken = settings === null || settings ===
|
|
15786
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
15787
15787
|
if (!continuationToken) {
|
|
15788
15788
|
result = yield tslib.__await(this._list(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options));
|
|
15789
15789
|
let page = result.value || [];
|
|
@@ -15955,7 +15955,7 @@ class ResourceGuardProxiesImpl {
|
|
|
15955
15955
|
return this;
|
|
15956
15956
|
},
|
|
15957
15957
|
byPage: (settings) => {
|
|
15958
|
-
if (settings === null || settings ===
|
|
15958
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
15959
15959
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15960
15960
|
}
|
|
15961
15961
|
return this.getPagingPage(vaultName, resourceGroupName, options, settings);
|
|
@@ -15965,7 +15965,7 @@ class ResourceGuardProxiesImpl {
|
|
|
15965
15965
|
getPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
15966
15966
|
return tslib.__asyncGenerator(this, arguments, function* getPagingPage_1() {
|
|
15967
15967
|
let result;
|
|
15968
|
-
let continuationToken = settings === null || settings ===
|
|
15968
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
15969
15969
|
if (!continuationToken) {
|
|
15970
15970
|
result = yield tslib.__await(this._get(vaultName, resourceGroupName, options));
|
|
15971
15971
|
let page = result.value || [];
|
|
@@ -16266,17 +16266,17 @@ class FetchTieringCostImpl {
|
|
|
16266
16266
|
* @param options The options parameters.
|
|
16267
16267
|
*/
|
|
16268
16268
|
beginPost(resourceGroupName, vaultName, parameters, options) {
|
|
16269
|
-
return tslib.__awaiter(this,
|
|
16270
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16269
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16270
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16271
16271
|
return this.client.sendOperationRequest(args, spec);
|
|
16272
16272
|
});
|
|
16273
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16273
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16274
16274
|
var _a;
|
|
16275
16275
|
let currentRawResponse = undefined;
|
|
16276
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16276
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16277
16277
|
const callback = (rawResponse, flatResponse) => {
|
|
16278
16278
|
currentRawResponse = rawResponse;
|
|
16279
|
-
providedCallback === null || providedCallback ===
|
|
16279
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16280
16280
|
};
|
|
16281
16281
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16282
16282
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16295,8 +16295,8 @@ class FetchTieringCostImpl {
|
|
|
16295
16295
|
spec: postOperationSpec,
|
|
16296
16296
|
});
|
|
16297
16297
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16298
|
-
restoreFrom: options === null || options ===
|
|
16299
|
-
intervalInMs: options === null || options ===
|
|
16298
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16299
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16300
16300
|
});
|
|
16301
16301
|
yield poller.poll();
|
|
16302
16302
|
return poller;
|
|
@@ -16313,7 +16313,7 @@ class FetchTieringCostImpl {
|
|
|
16313
16313
|
* @param options The options parameters.
|
|
16314
16314
|
*/
|
|
16315
16315
|
beginPostAndWait(resourceGroupName, vaultName, parameters, options) {
|
|
16316
|
-
return tslib.__awaiter(this,
|
|
16316
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16317
16317
|
const poller = yield this.beginPost(resourceGroupName, vaultName, parameters, options);
|
|
16318
16318
|
return poller.pollUntilDone();
|
|
16319
16319
|
});
|
|
@@ -16496,10 +16496,10 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16496
16496
|
: `${packageDetails}`;
|
|
16497
16497
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
16498
16498
|
userAgentPrefix,
|
|
16499
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
16499
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
16500
16500
|
super(optionsWithDefaults);
|
|
16501
16501
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
16502
|
-
if ((options === null || options ===
|
|
16502
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
16503
16503
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
16504
16504
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
16505
16505
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -16513,7 +16513,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16513
16513
|
});
|
|
16514
16514
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
16515
16515
|
credential: credentials,
|
|
16516
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
16516
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
16517
16517
|
challengeCallbacks: {
|
|
16518
16518
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
16519
16519
|
},
|
|
@@ -16596,7 +16596,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16596
16596
|
const apiVersionPolicy = {
|
|
16597
16597
|
name: "CustomApiVersionPolicy",
|
|
16598
16598
|
sendRequest(request, next) {
|
|
16599
|
-
return tslib.__awaiter(this,
|
|
16599
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16600
16600
|
const param = request.url.split("?");
|
|
16601
16601
|
if (param.length > 1) {
|
|
16602
16602
|
const newParams = param[1].split("&").map((item) => {
|
|
@@ -16635,17 +16635,17 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16635
16635
|
* @param options The options parameters.
|
|
16636
16636
|
*/
|
|
16637
16637
|
beginBMSPrepareDataMove(vaultName, resourceGroupName, parameters, options) {
|
|
16638
|
-
return tslib.__awaiter(this,
|
|
16639
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16638
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16639
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16640
16640
|
return this.sendOperationRequest(args, spec);
|
|
16641
16641
|
});
|
|
16642
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16642
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16643
16643
|
var _a;
|
|
16644
16644
|
let currentRawResponse = undefined;
|
|
16645
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16645
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16646
16646
|
const callback = (rawResponse, flatResponse) => {
|
|
16647
16647
|
currentRawResponse = rawResponse;
|
|
16648
|
-
providedCallback === null || providedCallback ===
|
|
16648
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16649
16649
|
};
|
|
16650
16650
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16651
16651
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16664,8 +16664,8 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16664
16664
|
spec: bMSPrepareDataMoveOperationSpec,
|
|
16665
16665
|
});
|
|
16666
16666
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16667
|
-
restoreFrom: options === null || options ===
|
|
16668
|
-
intervalInMs: options === null || options ===
|
|
16667
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16668
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16669
16669
|
});
|
|
16670
16670
|
yield poller.poll();
|
|
16671
16671
|
return poller;
|
|
@@ -16680,7 +16680,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16680
16680
|
* @param options The options parameters.
|
|
16681
16681
|
*/
|
|
16682
16682
|
beginBMSPrepareDataMoveAndWait(vaultName, resourceGroupName, parameters, options) {
|
|
16683
|
-
return tslib.__awaiter(this,
|
|
16683
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16684
16684
|
const poller = yield this.beginBMSPrepareDataMove(vaultName, resourceGroupName, parameters, options);
|
|
16685
16685
|
return poller.pollUntilDone();
|
|
16686
16686
|
});
|
|
@@ -16694,17 +16694,17 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16694
16694
|
* @param options The options parameters.
|
|
16695
16695
|
*/
|
|
16696
16696
|
beginBMSTriggerDataMove(vaultName, resourceGroupName, parameters, options) {
|
|
16697
|
-
return tslib.__awaiter(this,
|
|
16698
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16697
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16698
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16699
16699
|
return this.sendOperationRequest(args, spec);
|
|
16700
16700
|
});
|
|
16701
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16701
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16702
16702
|
var _a;
|
|
16703
16703
|
let currentRawResponse = undefined;
|
|
16704
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16704
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16705
16705
|
const callback = (rawResponse, flatResponse) => {
|
|
16706
16706
|
currentRawResponse = rawResponse;
|
|
16707
|
-
providedCallback === null || providedCallback ===
|
|
16707
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16708
16708
|
};
|
|
16709
16709
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16710
16710
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16723,8 +16723,8 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16723
16723
|
spec: bMSTriggerDataMoveOperationSpec,
|
|
16724
16724
|
});
|
|
16725
16725
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16726
|
-
restoreFrom: options === null || options ===
|
|
16727
|
-
intervalInMs: options === null || options ===
|
|
16726
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16727
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16728
16728
|
});
|
|
16729
16729
|
yield poller.poll();
|
|
16730
16730
|
return poller;
|
|
@@ -16739,7 +16739,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16739
16739
|
* @param options The options parameters.
|
|
16740
16740
|
*/
|
|
16741
16741
|
beginBMSTriggerDataMoveAndWait(vaultName, resourceGroupName, parameters, options) {
|
|
16742
|
-
return tslib.__awaiter(this,
|
|
16742
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16743
16743
|
const poller = yield this.beginBMSTriggerDataMove(vaultName, resourceGroupName, parameters, options);
|
|
16744
16744
|
return poller.pollUntilDone();
|
|
16745
16745
|
});
|
|
@@ -16757,17 +16757,17 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16757
16757
|
* @param options The options parameters.
|
|
16758
16758
|
*/
|
|
16759
16759
|
beginMoveRecoveryPoint(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options) {
|
|
16760
|
-
return tslib.__awaiter(this,
|
|
16761
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16760
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16761
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16762
16762
|
return this.sendOperationRequest(args, spec);
|
|
16763
16763
|
});
|
|
16764
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16764
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16765
16765
|
var _a;
|
|
16766
16766
|
let currentRawResponse = undefined;
|
|
16767
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16767
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16768
16768
|
const callback = (rawResponse, flatResponse) => {
|
|
16769
16769
|
currentRawResponse = rawResponse;
|
|
16770
|
-
providedCallback === null || providedCallback ===
|
|
16770
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16771
16771
|
};
|
|
16772
16772
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16773
16773
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16795,8 +16795,8 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16795
16795
|
spec: moveRecoveryPointOperationSpec,
|
|
16796
16796
|
});
|
|
16797
16797
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16798
|
-
restoreFrom: options === null || options ===
|
|
16799
|
-
intervalInMs: options === null || options ===
|
|
16798
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16799
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16800
16800
|
});
|
|
16801
16801
|
yield poller.poll();
|
|
16802
16802
|
return poller;
|
|
@@ -16815,7 +16815,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
|
|
|
16815
16815
|
* @param options The options parameters.
|
|
16816
16816
|
*/
|
|
16817
16817
|
beginMoveRecoveryPointAndWait(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options) {
|
|
16818
|
-
return tslib.__awaiter(this,
|
|
16818
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16819
16819
|
const poller = yield this.beginMoveRecoveryPoint(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options);
|
|
16820
16820
|
return poller.pollUntilDone();
|
|
16821
16821
|
});
|