@azure/arm-storsimple1200series 2.1.1-alpha.20250103.1 → 2.1.1-alpha.20250107.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 +297 -297
- 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
|
}
|
|
@@ -3441,7 +3441,7 @@ class ManagersImpl {
|
|
|
3441
3441
|
return this;
|
|
3442
3442
|
},
|
|
3443
3443
|
byPage: (settings) => {
|
|
3444
|
-
if (settings === null || settings ===
|
|
3444
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3445
3445
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3446
3446
|
}
|
|
3447
3447
|
return this.listPagingPage(options, settings);
|
|
@@ -3490,7 +3490,7 @@ class ManagersImpl {
|
|
|
3490
3490
|
return this;
|
|
3491
3491
|
},
|
|
3492
3492
|
byPage: (settings) => {
|
|
3493
|
-
if (settings === null || settings ===
|
|
3493
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3494
3494
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3495
3495
|
}
|
|
3496
3496
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3540,7 +3540,7 @@ class ManagersImpl {
|
|
|
3540
3540
|
return this;
|
|
3541
3541
|
},
|
|
3542
3542
|
byPage: (settings) => {
|
|
3543
|
-
if (settings === null || settings ===
|
|
3543
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3544
3544
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3545
3545
|
}
|
|
3546
3546
|
return this.listMetricsPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -3590,7 +3590,7 @@ class ManagersImpl {
|
|
|
3590
3590
|
return this;
|
|
3591
3591
|
},
|
|
3592
3592
|
byPage: (settings) => {
|
|
3593
|
-
if (settings === null || settings ===
|
|
3593
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3594
3594
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3595
3595
|
}
|
|
3596
3596
|
return this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -4129,7 +4129,7 @@ class AvailableProviderOperationsOperationsImpl {
|
|
|
4129
4129
|
return this;
|
|
4130
4130
|
},
|
|
4131
4131
|
byPage: (settings) => {
|
|
4132
|
-
if (settings === null || settings ===
|
|
4132
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4133
4133
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4134
4134
|
}
|
|
4135
4135
|
return this.listPagingPage(options, settings);
|
|
@@ -4139,7 +4139,7 @@ class AvailableProviderOperationsOperationsImpl {
|
|
|
4139
4139
|
listPagingPage(options, settings) {
|
|
4140
4140
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4141
4141
|
let result;
|
|
4142
|
-
let continuationToken = settings === null || settings ===
|
|
4142
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4143
4143
|
if (!continuationToken) {
|
|
4144
4144
|
result = yield tslib.__await(this._list(options));
|
|
4145
4145
|
let page = result.value || [];
|
|
@@ -4242,12 +4242,12 @@ class LroImpl {
|
|
|
4242
4242
|
this.requestMethod = requestMethod;
|
|
4243
4243
|
}
|
|
4244
4244
|
sendInitialRequest() {
|
|
4245
|
-
return tslib.__awaiter(this,
|
|
4245
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4246
4246
|
return this.sendOperationFn(this.args, this.spec);
|
|
4247
4247
|
});
|
|
4248
4248
|
}
|
|
4249
4249
|
sendPollRequest(path) {
|
|
4250
|
-
return tslib.__awaiter(this,
|
|
4250
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4251
4251
|
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
4252
4252
|
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
4253
4253
|
});
|
|
@@ -4287,7 +4287,7 @@ class AccessControlRecordsImpl {
|
|
|
4287
4287
|
return this;
|
|
4288
4288
|
},
|
|
4289
4289
|
byPage: (settings) => {
|
|
4290
|
-
if (settings === null || settings ===
|
|
4290
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4291
4291
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4292
4292
|
}
|
|
4293
4293
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -4349,17 +4349,17 @@ class AccessControlRecordsImpl {
|
|
|
4349
4349
|
* @param options The options parameters.
|
|
4350
4350
|
*/
|
|
4351
4351
|
beginCreateOrUpdate(accessControlRecordName, resourceGroupName, managerName, accessControlRecord, options) {
|
|
4352
|
-
return tslib.__awaiter(this,
|
|
4353
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4352
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4353
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4354
4354
|
return this.client.sendOperationRequest(args, spec);
|
|
4355
4355
|
});
|
|
4356
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4356
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4357
4357
|
var _a;
|
|
4358
4358
|
let currentRawResponse = undefined;
|
|
4359
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4359
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4360
4360
|
const callback = (rawResponse, flatResponse) => {
|
|
4361
4361
|
currentRawResponse = rawResponse;
|
|
4362
|
-
providedCallback === null || providedCallback ===
|
|
4362
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4363
4363
|
};
|
|
4364
4364
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4365
4365
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4380,8 +4380,8 @@ class AccessControlRecordsImpl {
|
|
|
4380
4380
|
options
|
|
4381
4381
|
}, createOrUpdateOperationSpec$8);
|
|
4382
4382
|
const poller = new coreLro.LroEngine(lro, {
|
|
4383
|
-
resumeFrom: options === null || options ===
|
|
4384
|
-
intervalInMs: options === null || options ===
|
|
4383
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4384
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4385
4385
|
});
|
|
4386
4386
|
yield poller.poll();
|
|
4387
4387
|
return poller;
|
|
@@ -4396,7 +4396,7 @@ class AccessControlRecordsImpl {
|
|
|
4396
4396
|
* @param options The options parameters.
|
|
4397
4397
|
*/
|
|
4398
4398
|
beginCreateOrUpdateAndWait(accessControlRecordName, resourceGroupName, managerName, accessControlRecord, options) {
|
|
4399
|
-
return tslib.__awaiter(this,
|
|
4399
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4400
4400
|
const poller = yield this.beginCreateOrUpdate(accessControlRecordName, resourceGroupName, managerName, accessControlRecord, options);
|
|
4401
4401
|
return poller.pollUntilDone();
|
|
4402
4402
|
});
|
|
@@ -4409,17 +4409,17 @@ class AccessControlRecordsImpl {
|
|
|
4409
4409
|
* @param options The options parameters.
|
|
4410
4410
|
*/
|
|
4411
4411
|
beginDelete(accessControlRecordName, resourceGroupName, managerName, options) {
|
|
4412
|
-
return tslib.__awaiter(this,
|
|
4413
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4412
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4413
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4414
4414
|
return this.client.sendOperationRequest(args, spec);
|
|
4415
4415
|
});
|
|
4416
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4416
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4417
4417
|
var _a;
|
|
4418
4418
|
let currentRawResponse = undefined;
|
|
4419
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4419
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4420
4420
|
const callback = (rawResponse, flatResponse) => {
|
|
4421
4421
|
currentRawResponse = rawResponse;
|
|
4422
|
-
providedCallback === null || providedCallback ===
|
|
4422
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4423
4423
|
};
|
|
4424
4424
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4425
4425
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4434,8 +4434,8 @@ class AccessControlRecordsImpl {
|
|
|
4434
4434
|
});
|
|
4435
4435
|
const lro = new LroImpl(sendOperation, { accessControlRecordName, resourceGroupName, managerName, options }, deleteOperationSpec$a);
|
|
4436
4436
|
const poller = new coreLro.LroEngine(lro, {
|
|
4437
|
-
resumeFrom: options === null || options ===
|
|
4438
|
-
intervalInMs: options === null || options ===
|
|
4437
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4438
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4439
4439
|
});
|
|
4440
4440
|
yield poller.poll();
|
|
4441
4441
|
return poller;
|
|
@@ -4449,7 +4449,7 @@ class AccessControlRecordsImpl {
|
|
|
4449
4449
|
* @param options The options parameters.
|
|
4450
4450
|
*/
|
|
4451
4451
|
beginDeleteAndWait(accessControlRecordName, resourceGroupName, managerName, options) {
|
|
4452
|
-
return tslib.__awaiter(this,
|
|
4452
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4453
4453
|
const poller = yield this.beginDelete(accessControlRecordName, resourceGroupName, managerName, options);
|
|
4454
4454
|
return poller.pollUntilDone();
|
|
4455
4455
|
});
|
|
@@ -4590,7 +4590,7 @@ class AlertsImpl {
|
|
|
4590
4590
|
return this;
|
|
4591
4591
|
},
|
|
4592
4592
|
byPage: (settings) => {
|
|
4593
|
-
if (settings === null || settings ===
|
|
4593
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4594
4594
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4595
4595
|
}
|
|
4596
4596
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -4600,7 +4600,7 @@ class AlertsImpl {
|
|
|
4600
4600
|
listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
4601
4601
|
return tslib.__asyncGenerator(this, arguments, function* listByManagerPagingPage_1() {
|
|
4602
4602
|
let result;
|
|
4603
|
-
let continuationToken = settings === null || settings ===
|
|
4603
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4604
4604
|
if (!continuationToken) {
|
|
4605
4605
|
result = yield tslib.__await(this._listByManager(resourceGroupName, managerName, options));
|
|
4606
4606
|
let page = result.value || [];
|
|
@@ -4799,7 +4799,7 @@ class BackupsImpl {
|
|
|
4799
4799
|
return this;
|
|
4800
4800
|
},
|
|
4801
4801
|
byPage: (settings) => {
|
|
4802
|
-
if (settings === null || settings ===
|
|
4802
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4803
4803
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4804
4804
|
}
|
|
4805
4805
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -4809,7 +4809,7 @@ class BackupsImpl {
|
|
|
4809
4809
|
listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
4810
4810
|
return tslib.__asyncGenerator(this, arguments, function* listByManagerPagingPage_1() {
|
|
4811
4811
|
let result;
|
|
4812
|
-
let continuationToken = settings === null || settings ===
|
|
4812
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4813
4813
|
if (!continuationToken) {
|
|
4814
4814
|
result = yield tslib.__await(this._listByManager(resourceGroupName, managerName, options));
|
|
4815
4815
|
let page = result.value || [];
|
|
@@ -4863,7 +4863,7 @@ class BackupsImpl {
|
|
|
4863
4863
|
return this;
|
|
4864
4864
|
},
|
|
4865
4865
|
byPage: (settings) => {
|
|
4866
|
-
if (settings === null || settings ===
|
|
4866
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4867
4867
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4868
4868
|
}
|
|
4869
4869
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -4873,7 +4873,7 @@ class BackupsImpl {
|
|
|
4873
4873
|
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
4874
4874
|
return tslib.__asyncGenerator(this, arguments, function* listByDevicePagingPage_1() {
|
|
4875
4875
|
let result;
|
|
4876
|
-
let continuationToken = settings === null || settings ===
|
|
4876
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4877
4877
|
if (!continuationToken) {
|
|
4878
4878
|
result = yield tslib.__await(this._listByDevice(deviceName, resourceGroupName, managerName, options));
|
|
4879
4879
|
let page = result.value || [];
|
|
@@ -4938,17 +4938,17 @@ class BackupsImpl {
|
|
|
4938
4938
|
* @param options The options parameters.
|
|
4939
4939
|
*/
|
|
4940
4940
|
beginDelete(deviceName, backupName, resourceGroupName, managerName, options) {
|
|
4941
|
-
return tslib.__awaiter(this,
|
|
4942
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4941
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4942
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4943
4943
|
return this.client.sendOperationRequest(args, spec);
|
|
4944
4944
|
});
|
|
4945
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4945
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4946
4946
|
var _a;
|
|
4947
4947
|
let currentRawResponse = undefined;
|
|
4948
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4948
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4949
4949
|
const callback = (rawResponse, flatResponse) => {
|
|
4950
4950
|
currentRawResponse = rawResponse;
|
|
4951
|
-
providedCallback === null || providedCallback ===
|
|
4951
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4952
4952
|
};
|
|
4953
4953
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4954
4954
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4963,8 +4963,8 @@ class BackupsImpl {
|
|
|
4963
4963
|
});
|
|
4964
4964
|
const lro = new LroImpl(sendOperation, { deviceName, backupName, resourceGroupName, managerName, options }, deleteOperationSpec$9);
|
|
4965
4965
|
const poller = new coreLro.LroEngine(lro, {
|
|
4966
|
-
resumeFrom: options === null || options ===
|
|
4967
|
-
intervalInMs: options === null || options ===
|
|
4966
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4967
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4968
4968
|
});
|
|
4969
4969
|
yield poller.poll();
|
|
4970
4970
|
return poller;
|
|
@@ -4979,7 +4979,7 @@ class BackupsImpl {
|
|
|
4979
4979
|
* @param options The options parameters.
|
|
4980
4980
|
*/
|
|
4981
4981
|
beginDeleteAndWait(deviceName, backupName, resourceGroupName, managerName, options) {
|
|
4982
|
-
return tslib.__awaiter(this,
|
|
4982
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4983
4983
|
const poller = yield this.beginDelete(deviceName, backupName, resourceGroupName, managerName, options);
|
|
4984
4984
|
return poller.pollUntilDone();
|
|
4985
4985
|
});
|
|
@@ -4995,17 +4995,17 @@ class BackupsImpl {
|
|
|
4995
4995
|
* @param options The options parameters.
|
|
4996
4996
|
*/
|
|
4997
4997
|
beginClone(deviceName, backupName, elementName, resourceGroupName, managerName, cloneRequest, options) {
|
|
4998
|
-
return tslib.__awaiter(this,
|
|
4999
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4998
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4999
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5000
5000
|
return this.client.sendOperationRequest(args, spec);
|
|
5001
5001
|
});
|
|
5002
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5002
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5003
5003
|
var _a;
|
|
5004
5004
|
let currentRawResponse = undefined;
|
|
5005
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5005
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5006
5006
|
const callback = (rawResponse, flatResponse) => {
|
|
5007
5007
|
currentRawResponse = rawResponse;
|
|
5008
|
-
providedCallback === null || providedCallback ===
|
|
5008
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5009
5009
|
};
|
|
5010
5010
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5011
5011
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5028,8 +5028,8 @@ class BackupsImpl {
|
|
|
5028
5028
|
options
|
|
5029
5029
|
}, cloneOperationSpec);
|
|
5030
5030
|
const poller = new coreLro.LroEngine(lro, {
|
|
5031
|
-
resumeFrom: options === null || options ===
|
|
5032
|
-
intervalInMs: options === null || options ===
|
|
5031
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5032
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5033
5033
|
});
|
|
5034
5034
|
yield poller.poll();
|
|
5035
5035
|
return poller;
|
|
@@ -5046,7 +5046,7 @@ class BackupsImpl {
|
|
|
5046
5046
|
* @param options The options parameters.
|
|
5047
5047
|
*/
|
|
5048
5048
|
beginCloneAndWait(deviceName, backupName, elementName, resourceGroupName, managerName, cloneRequest, options) {
|
|
5049
|
-
return tslib.__awaiter(this,
|
|
5049
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5050
5050
|
const poller = yield this.beginClone(deviceName, backupName, elementName, resourceGroupName, managerName, cloneRequest, options);
|
|
5051
5051
|
return poller.pollUntilDone();
|
|
5052
5052
|
});
|
|
@@ -5250,7 +5250,7 @@ class DevicesImpl {
|
|
|
5250
5250
|
return this;
|
|
5251
5251
|
},
|
|
5252
5252
|
byPage: (settings) => {
|
|
5253
|
-
if (settings === null || settings ===
|
|
5253
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5254
5254
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5255
5255
|
}
|
|
5256
5256
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -5301,7 +5301,7 @@ class DevicesImpl {
|
|
|
5301
5301
|
return this;
|
|
5302
5302
|
},
|
|
5303
5303
|
byPage: (settings) => {
|
|
5304
|
-
if (settings === null || settings ===
|
|
5304
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5305
5305
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5306
5306
|
}
|
|
5307
5307
|
return this.listFailoverTargetPagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -5352,7 +5352,7 @@ class DevicesImpl {
|
|
|
5352
5352
|
return this;
|
|
5353
5353
|
},
|
|
5354
5354
|
byPage: (settings) => {
|
|
5355
|
-
if (settings === null || settings ===
|
|
5355
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5356
5356
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5357
5357
|
}
|
|
5358
5358
|
return this.listMetricsPagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -5403,7 +5403,7 @@ class DevicesImpl {
|
|
|
5403
5403
|
return this;
|
|
5404
5404
|
},
|
|
5405
5405
|
byPage: (settings) => {
|
|
5406
|
-
if (settings === null || settings ===
|
|
5406
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5407
5407
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5408
5408
|
}
|
|
5409
5409
|
return this.listMetricDefinitionPagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -5464,17 +5464,17 @@ class DevicesImpl {
|
|
|
5464
5464
|
* @param options The options parameters.
|
|
5465
5465
|
*/
|
|
5466
5466
|
beginDelete(deviceName, resourceGroupName, managerName, options) {
|
|
5467
|
-
return tslib.__awaiter(this,
|
|
5468
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5467
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5468
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5469
5469
|
return this.client.sendOperationRequest(args, spec);
|
|
5470
5470
|
});
|
|
5471
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5471
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5472
5472
|
var _a;
|
|
5473
5473
|
let currentRawResponse = undefined;
|
|
5474
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5474
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5475
5475
|
const callback = (rawResponse, flatResponse) => {
|
|
5476
5476
|
currentRawResponse = rawResponse;
|
|
5477
|
-
providedCallback === null || providedCallback ===
|
|
5477
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5478
5478
|
};
|
|
5479
5479
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5480
5480
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5489,8 +5489,8 @@ class DevicesImpl {
|
|
|
5489
5489
|
});
|
|
5490
5490
|
const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, deleteOperationSpec$8);
|
|
5491
5491
|
const poller = new coreLro.LroEngine(lro, {
|
|
5492
|
-
resumeFrom: options === null || options ===
|
|
5493
|
-
intervalInMs: options === null || options ===
|
|
5492
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5493
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5494
5494
|
});
|
|
5495
5495
|
yield poller.poll();
|
|
5496
5496
|
return poller;
|
|
@@ -5504,7 +5504,7 @@ class DevicesImpl {
|
|
|
5504
5504
|
* @param options The options parameters.
|
|
5505
5505
|
*/
|
|
5506
5506
|
beginDeleteAndWait(deviceName, resourceGroupName, managerName, options) {
|
|
5507
|
-
return tslib.__awaiter(this,
|
|
5507
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5508
5508
|
const poller = yield this.beginDelete(deviceName, resourceGroupName, managerName, options);
|
|
5509
5509
|
return poller.pollUntilDone();
|
|
5510
5510
|
});
|
|
@@ -5518,17 +5518,17 @@ class DevicesImpl {
|
|
|
5518
5518
|
* @param options The options parameters.
|
|
5519
5519
|
*/
|
|
5520
5520
|
beginPatch(deviceName, resourceGroupName, managerName, devicePatch, options) {
|
|
5521
|
-
return tslib.__awaiter(this,
|
|
5522
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5521
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5522
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5523
5523
|
return this.client.sendOperationRequest(args, spec);
|
|
5524
5524
|
});
|
|
5525
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5525
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5526
5526
|
var _a;
|
|
5527
5527
|
let currentRawResponse = undefined;
|
|
5528
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5528
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5529
5529
|
const callback = (rawResponse, flatResponse) => {
|
|
5530
5530
|
currentRawResponse = rawResponse;
|
|
5531
|
-
providedCallback === null || providedCallback ===
|
|
5531
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5532
5532
|
};
|
|
5533
5533
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5534
5534
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5543,8 +5543,8 @@ class DevicesImpl {
|
|
|
5543
5543
|
});
|
|
5544
5544
|
const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, devicePatch, options }, patchOperationSpec);
|
|
5545
5545
|
const poller = new coreLro.LroEngine(lro, {
|
|
5546
|
-
resumeFrom: options === null || options ===
|
|
5547
|
-
intervalInMs: options === null || options ===
|
|
5546
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5547
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5548
5548
|
});
|
|
5549
5549
|
yield poller.poll();
|
|
5550
5550
|
return poller;
|
|
@@ -5559,7 +5559,7 @@ class DevicesImpl {
|
|
|
5559
5559
|
* @param options The options parameters.
|
|
5560
5560
|
*/
|
|
5561
5561
|
beginPatchAndWait(deviceName, resourceGroupName, managerName, devicePatch, options) {
|
|
5562
|
-
return tslib.__awaiter(this,
|
|
5562
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5563
5563
|
const poller = yield this.beginPatch(deviceName, resourceGroupName, managerName, devicePatch, options);
|
|
5564
5564
|
return poller.pollUntilDone();
|
|
5565
5565
|
});
|
|
@@ -5583,17 +5583,17 @@ class DevicesImpl {
|
|
|
5583
5583
|
* @param options The options parameters.
|
|
5584
5584
|
*/
|
|
5585
5585
|
beginCreateOrUpdateAlertSettings(deviceName, resourceGroupName, managerName, alertSettings, options) {
|
|
5586
|
-
return tslib.__awaiter(this,
|
|
5587
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5586
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5587
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5588
5588
|
return this.client.sendOperationRequest(args, spec);
|
|
5589
5589
|
});
|
|
5590
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5590
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5591
5591
|
var _a;
|
|
5592
5592
|
let currentRawResponse = undefined;
|
|
5593
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5593
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5594
5594
|
const callback = (rawResponse, flatResponse) => {
|
|
5595
5595
|
currentRawResponse = rawResponse;
|
|
5596
|
-
providedCallback === null || providedCallback ===
|
|
5596
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5597
5597
|
};
|
|
5598
5598
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5599
5599
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5608,8 +5608,8 @@ class DevicesImpl {
|
|
|
5608
5608
|
});
|
|
5609
5609
|
const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, alertSettings, options }, createOrUpdateAlertSettingsOperationSpec);
|
|
5610
5610
|
const poller = new coreLro.LroEngine(lro, {
|
|
5611
|
-
resumeFrom: options === null || options ===
|
|
5612
|
-
intervalInMs: options === null || options ===
|
|
5611
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5612
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5613
5613
|
});
|
|
5614
5614
|
yield poller.poll();
|
|
5615
5615
|
return poller;
|
|
@@ -5624,7 +5624,7 @@ class DevicesImpl {
|
|
|
5624
5624
|
* @param options The options parameters.
|
|
5625
5625
|
*/
|
|
5626
5626
|
beginCreateOrUpdateAlertSettingsAndWait(deviceName, resourceGroupName, managerName, alertSettings, options) {
|
|
5627
|
-
return tslib.__awaiter(this,
|
|
5627
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5628
5628
|
const poller = yield this.beginCreateOrUpdateAlertSettings(deviceName, resourceGroupName, managerName, alertSettings, options);
|
|
5629
5629
|
return poller.pollUntilDone();
|
|
5630
5630
|
});
|
|
@@ -5637,17 +5637,17 @@ class DevicesImpl {
|
|
|
5637
5637
|
* @param options The options parameters.
|
|
5638
5638
|
*/
|
|
5639
5639
|
beginDeactivate(deviceName, resourceGroupName, managerName, options) {
|
|
5640
|
-
return tslib.__awaiter(this,
|
|
5641
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5640
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5641
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5642
5642
|
return this.client.sendOperationRequest(args, spec);
|
|
5643
5643
|
});
|
|
5644
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5644
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5645
5645
|
var _a;
|
|
5646
5646
|
let currentRawResponse = undefined;
|
|
5647
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5647
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5648
5648
|
const callback = (rawResponse, flatResponse) => {
|
|
5649
5649
|
currentRawResponse = rawResponse;
|
|
5650
|
-
providedCallback === null || providedCallback ===
|
|
5650
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5651
5651
|
};
|
|
5652
5652
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5653
5653
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5662,8 +5662,8 @@ class DevicesImpl {
|
|
|
5662
5662
|
});
|
|
5663
5663
|
const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, deactivateOperationSpec);
|
|
5664
5664
|
const poller = new coreLro.LroEngine(lro, {
|
|
5665
|
-
resumeFrom: options === null || options ===
|
|
5666
|
-
intervalInMs: options === null || options ===
|
|
5665
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5666
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5667
5667
|
});
|
|
5668
5668
|
yield poller.poll();
|
|
5669
5669
|
return poller;
|
|
@@ -5677,7 +5677,7 @@ class DevicesImpl {
|
|
|
5677
5677
|
* @param options The options parameters.
|
|
5678
5678
|
*/
|
|
5679
5679
|
beginDeactivateAndWait(deviceName, resourceGroupName, managerName, options) {
|
|
5680
|
-
return tslib.__awaiter(this,
|
|
5680
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5681
5681
|
const poller = yield this.beginDeactivate(deviceName, resourceGroupName, managerName, options);
|
|
5682
5682
|
return poller.pollUntilDone();
|
|
5683
5683
|
});
|
|
@@ -5690,17 +5690,17 @@ class DevicesImpl {
|
|
|
5690
5690
|
* @param options The options parameters.
|
|
5691
5691
|
*/
|
|
5692
5692
|
beginDownloadUpdates(deviceName, resourceGroupName, managerName, options) {
|
|
5693
|
-
return tslib.__awaiter(this,
|
|
5694
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5693
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5694
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5695
5695
|
return this.client.sendOperationRequest(args, spec);
|
|
5696
5696
|
});
|
|
5697
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5697
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5698
5698
|
var _a;
|
|
5699
5699
|
let currentRawResponse = undefined;
|
|
5700
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5700
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5701
5701
|
const callback = (rawResponse, flatResponse) => {
|
|
5702
5702
|
currentRawResponse = rawResponse;
|
|
5703
|
-
providedCallback === null || providedCallback ===
|
|
5703
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5704
5704
|
};
|
|
5705
5705
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5706
5706
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5715,8 +5715,8 @@ class DevicesImpl {
|
|
|
5715
5715
|
});
|
|
5716
5716
|
const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, downloadUpdatesOperationSpec);
|
|
5717
5717
|
const poller = new coreLro.LroEngine(lro, {
|
|
5718
|
-
resumeFrom: options === null || options ===
|
|
5719
|
-
intervalInMs: options === null || options ===
|
|
5718
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5719
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5720
5720
|
});
|
|
5721
5721
|
yield poller.poll();
|
|
5722
5722
|
return poller;
|
|
@@ -5730,7 +5730,7 @@ class DevicesImpl {
|
|
|
5730
5730
|
* @param options The options parameters.
|
|
5731
5731
|
*/
|
|
5732
5732
|
beginDownloadUpdatesAndWait(deviceName, resourceGroupName, managerName, options) {
|
|
5733
|
-
return tslib.__awaiter(this,
|
|
5733
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5734
5734
|
const poller = yield this.beginDownloadUpdates(deviceName, resourceGroupName, managerName, options);
|
|
5735
5735
|
return poller.pollUntilDone();
|
|
5736
5736
|
});
|
|
@@ -5744,17 +5744,17 @@ class DevicesImpl {
|
|
|
5744
5744
|
* @param options The options parameters.
|
|
5745
5745
|
*/
|
|
5746
5746
|
beginFailover(deviceName, resourceGroupName, managerName, failoverRequest, options) {
|
|
5747
|
-
return tslib.__awaiter(this,
|
|
5748
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5747
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5748
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5749
5749
|
return this.client.sendOperationRequest(args, spec);
|
|
5750
5750
|
});
|
|
5751
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5751
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5752
5752
|
var _a;
|
|
5753
5753
|
let currentRawResponse = undefined;
|
|
5754
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5754
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5755
5755
|
const callback = (rawResponse, flatResponse) => {
|
|
5756
5756
|
currentRawResponse = rawResponse;
|
|
5757
|
-
providedCallback === null || providedCallback ===
|
|
5757
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5758
5758
|
};
|
|
5759
5759
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5760
5760
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5769,8 +5769,8 @@ class DevicesImpl {
|
|
|
5769
5769
|
});
|
|
5770
5770
|
const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, failoverRequest, options }, failoverOperationSpec);
|
|
5771
5771
|
const poller = new coreLro.LroEngine(lro, {
|
|
5772
|
-
resumeFrom: options === null || options ===
|
|
5773
|
-
intervalInMs: options === null || options ===
|
|
5772
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5773
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5774
5774
|
});
|
|
5775
5775
|
yield poller.poll();
|
|
5776
5776
|
return poller;
|
|
@@ -5785,7 +5785,7 @@ class DevicesImpl {
|
|
|
5785
5785
|
* @param options The options parameters.
|
|
5786
5786
|
*/
|
|
5787
5787
|
beginFailoverAndWait(deviceName, resourceGroupName, managerName, failoverRequest, options) {
|
|
5788
|
-
return tslib.__awaiter(this,
|
|
5788
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5789
5789
|
const poller = yield this.beginFailover(deviceName, resourceGroupName, managerName, failoverRequest, options);
|
|
5790
5790
|
return poller.pollUntilDone();
|
|
5791
5791
|
});
|
|
@@ -5808,17 +5808,17 @@ class DevicesImpl {
|
|
|
5808
5808
|
* @param options The options parameters.
|
|
5809
5809
|
*/
|
|
5810
5810
|
beginInstallUpdates(deviceName, resourceGroupName, managerName, options) {
|
|
5811
|
-
return tslib.__awaiter(this,
|
|
5812
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5811
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5812
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5813
5813
|
return this.client.sendOperationRequest(args, spec);
|
|
5814
5814
|
});
|
|
5815
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5815
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5816
5816
|
var _a;
|
|
5817
5817
|
let currentRawResponse = undefined;
|
|
5818
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5818
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5819
5819
|
const callback = (rawResponse, flatResponse) => {
|
|
5820
5820
|
currentRawResponse = rawResponse;
|
|
5821
|
-
providedCallback === null || providedCallback ===
|
|
5821
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5822
5822
|
};
|
|
5823
5823
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5824
5824
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5833,8 +5833,8 @@ class DevicesImpl {
|
|
|
5833
5833
|
});
|
|
5834
5834
|
const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, installUpdatesOperationSpec);
|
|
5835
5835
|
const poller = new coreLro.LroEngine(lro, {
|
|
5836
|
-
resumeFrom: options === null || options ===
|
|
5837
|
-
intervalInMs: options === null || options ===
|
|
5836
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5837
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5838
5838
|
});
|
|
5839
5839
|
yield poller.poll();
|
|
5840
5840
|
return poller;
|
|
@@ -5848,7 +5848,7 @@ class DevicesImpl {
|
|
|
5848
5848
|
* @param options The options parameters.
|
|
5849
5849
|
*/
|
|
5850
5850
|
beginInstallUpdatesAndWait(deviceName, resourceGroupName, managerName, options) {
|
|
5851
|
-
return tslib.__awaiter(this,
|
|
5851
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5852
5852
|
const poller = yield this.beginInstallUpdates(deviceName, resourceGroupName, managerName, options);
|
|
5853
5853
|
return poller.pollUntilDone();
|
|
5854
5854
|
});
|
|
@@ -5891,17 +5891,17 @@ class DevicesImpl {
|
|
|
5891
5891
|
* @param options The options parameters.
|
|
5892
5892
|
*/
|
|
5893
5893
|
beginScanForUpdates(deviceName, resourceGroupName, managerName, options) {
|
|
5894
|
-
return tslib.__awaiter(this,
|
|
5895
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5894
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5895
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5896
5896
|
return this.client.sendOperationRequest(args, spec);
|
|
5897
5897
|
});
|
|
5898
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5898
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5899
5899
|
var _a;
|
|
5900
5900
|
let currentRawResponse = undefined;
|
|
5901
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5901
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5902
5902
|
const callback = (rawResponse, flatResponse) => {
|
|
5903
5903
|
currentRawResponse = rawResponse;
|
|
5904
|
-
providedCallback === null || providedCallback ===
|
|
5904
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5905
5905
|
};
|
|
5906
5906
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5907
5907
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5916,8 +5916,8 @@ class DevicesImpl {
|
|
|
5916
5916
|
});
|
|
5917
5917
|
const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, scanForUpdatesOperationSpec);
|
|
5918
5918
|
const poller = new coreLro.LroEngine(lro, {
|
|
5919
|
-
resumeFrom: options === null || options ===
|
|
5920
|
-
intervalInMs: options === null || options ===
|
|
5919
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5920
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5921
5921
|
});
|
|
5922
5922
|
yield poller.poll();
|
|
5923
5923
|
return poller;
|
|
@@ -5931,7 +5931,7 @@ class DevicesImpl {
|
|
|
5931
5931
|
* @param options The options parameters.
|
|
5932
5932
|
*/
|
|
5933
5933
|
beginScanForUpdatesAndWait(deviceName, resourceGroupName, managerName, options) {
|
|
5934
|
-
return tslib.__awaiter(this,
|
|
5934
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5935
5935
|
const poller = yield this.beginScanForUpdates(deviceName, resourceGroupName, managerName, options);
|
|
5936
5936
|
return poller.pollUntilDone();
|
|
5937
5937
|
});
|
|
@@ -5945,17 +5945,17 @@ class DevicesImpl {
|
|
|
5945
5945
|
* @param options The options parameters.
|
|
5946
5946
|
*/
|
|
5947
5947
|
beginCreateOrUpdateSecuritySettings(deviceName, resourceGroupName, managerName, securitySettings, options) {
|
|
5948
|
-
return tslib.__awaiter(this,
|
|
5949
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5948
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5949
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5950
5950
|
return this.client.sendOperationRequest(args, spec);
|
|
5951
5951
|
});
|
|
5952
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5952
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5953
5953
|
var _a;
|
|
5954
5954
|
let currentRawResponse = undefined;
|
|
5955
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5955
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5956
5956
|
const callback = (rawResponse, flatResponse) => {
|
|
5957
5957
|
currentRawResponse = rawResponse;
|
|
5958
|
-
providedCallback === null || providedCallback ===
|
|
5958
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5959
5959
|
};
|
|
5960
5960
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5961
5961
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5970,8 +5970,8 @@ class DevicesImpl {
|
|
|
5970
5970
|
});
|
|
5971
5971
|
const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, securitySettings, options }, createOrUpdateSecuritySettingsOperationSpec);
|
|
5972
5972
|
const poller = new coreLro.LroEngine(lro, {
|
|
5973
|
-
resumeFrom: options === null || options ===
|
|
5974
|
-
intervalInMs: options === null || options ===
|
|
5973
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5974
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5975
5975
|
});
|
|
5976
5976
|
yield poller.poll();
|
|
5977
5977
|
return poller;
|
|
@@ -5986,7 +5986,7 @@ class DevicesImpl {
|
|
|
5986
5986
|
* @param options The options parameters.
|
|
5987
5987
|
*/
|
|
5988
5988
|
beginCreateOrUpdateSecuritySettingsAndWait(deviceName, resourceGroupName, managerName, securitySettings, options) {
|
|
5989
|
-
return tslib.__awaiter(this,
|
|
5989
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5990
5990
|
const poller = yield this.beginCreateOrUpdateSecuritySettings(deviceName, resourceGroupName, managerName, securitySettings, options);
|
|
5991
5991
|
return poller.pollUntilDone();
|
|
5992
5992
|
});
|
|
@@ -6477,7 +6477,7 @@ class BackupScheduleGroupsImpl {
|
|
|
6477
6477
|
return this;
|
|
6478
6478
|
},
|
|
6479
6479
|
byPage: (settings) => {
|
|
6480
|
-
if (settings === null || settings ===
|
|
6480
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6481
6481
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6482
6482
|
}
|
|
6483
6483
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -6548,17 +6548,17 @@ class BackupScheduleGroupsImpl {
|
|
|
6548
6548
|
* @param options The options parameters.
|
|
6549
6549
|
*/
|
|
6550
6550
|
beginCreateOrUpdate(deviceName, scheduleGroupName, resourceGroupName, managerName, scheduleGroup, options) {
|
|
6551
|
-
return tslib.__awaiter(this,
|
|
6552
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6551
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6552
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6553
6553
|
return this.client.sendOperationRequest(args, spec);
|
|
6554
6554
|
});
|
|
6555
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6555
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6556
6556
|
var _a;
|
|
6557
6557
|
let currentRawResponse = undefined;
|
|
6558
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6558
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6559
6559
|
const callback = (rawResponse, flatResponse) => {
|
|
6560
6560
|
currentRawResponse = rawResponse;
|
|
6561
|
-
providedCallback === null || providedCallback ===
|
|
6561
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6562
6562
|
};
|
|
6563
6563
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6564
6564
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6580,8 +6580,8 @@ class BackupScheduleGroupsImpl {
|
|
|
6580
6580
|
options
|
|
6581
6581
|
}, createOrUpdateOperationSpec$7);
|
|
6582
6582
|
const poller = new coreLro.LroEngine(lro, {
|
|
6583
|
-
resumeFrom: options === null || options ===
|
|
6584
|
-
intervalInMs: options === null || options ===
|
|
6583
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6584
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
6585
6585
|
});
|
|
6586
6586
|
yield poller.poll();
|
|
6587
6587
|
return poller;
|
|
@@ -6597,7 +6597,7 @@ class BackupScheduleGroupsImpl {
|
|
|
6597
6597
|
* @param options The options parameters.
|
|
6598
6598
|
*/
|
|
6599
6599
|
beginCreateOrUpdateAndWait(deviceName, scheduleGroupName, resourceGroupName, managerName, scheduleGroup, options) {
|
|
6600
|
-
return tslib.__awaiter(this,
|
|
6600
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6601
6601
|
const poller = yield this.beginCreateOrUpdate(deviceName, scheduleGroupName, resourceGroupName, managerName, scheduleGroup, options);
|
|
6602
6602
|
return poller.pollUntilDone();
|
|
6603
6603
|
});
|
|
@@ -6611,17 +6611,17 @@ class BackupScheduleGroupsImpl {
|
|
|
6611
6611
|
* @param options The options parameters.
|
|
6612
6612
|
*/
|
|
6613
6613
|
beginDelete(deviceName, scheduleGroupName, resourceGroupName, managerName, options) {
|
|
6614
|
-
return tslib.__awaiter(this,
|
|
6615
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6614
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6615
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6616
6616
|
return this.client.sendOperationRequest(args, spec);
|
|
6617
6617
|
});
|
|
6618
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6618
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6619
6619
|
var _a;
|
|
6620
6620
|
let currentRawResponse = undefined;
|
|
6621
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6621
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6622
6622
|
const callback = (rawResponse, flatResponse) => {
|
|
6623
6623
|
currentRawResponse = rawResponse;
|
|
6624
|
-
providedCallback === null || providedCallback ===
|
|
6624
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6625
6625
|
};
|
|
6626
6626
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6627
6627
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6642,8 +6642,8 @@ class BackupScheduleGroupsImpl {
|
|
|
6642
6642
|
options
|
|
6643
6643
|
}, deleteOperationSpec$7);
|
|
6644
6644
|
const poller = new coreLro.LroEngine(lro, {
|
|
6645
|
-
resumeFrom: options === null || options ===
|
|
6646
|
-
intervalInMs: options === null || options ===
|
|
6645
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6646
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
6647
6647
|
});
|
|
6648
6648
|
yield poller.poll();
|
|
6649
6649
|
return poller;
|
|
@@ -6658,7 +6658,7 @@ class BackupScheduleGroupsImpl {
|
|
|
6658
6658
|
* @param options The options parameters.
|
|
6659
6659
|
*/
|
|
6660
6660
|
beginDeleteAndWait(deviceName, scheduleGroupName, resourceGroupName, managerName, options) {
|
|
6661
|
-
return tslib.__awaiter(this,
|
|
6661
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6662
6662
|
const poller = yield this.beginDelete(deviceName, scheduleGroupName, resourceGroupName, managerName, options);
|
|
6663
6663
|
return poller.pollUntilDone();
|
|
6664
6664
|
});
|
|
@@ -6804,7 +6804,7 @@ class ChapSettingsOperationsImpl {
|
|
|
6804
6804
|
return this;
|
|
6805
6805
|
},
|
|
6806
6806
|
byPage: (settings) => {
|
|
6807
|
-
if (settings === null || settings ===
|
|
6807
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6808
6808
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6809
6809
|
}
|
|
6810
6810
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -6869,17 +6869,17 @@ class ChapSettingsOperationsImpl {
|
|
|
6869
6869
|
* @param options The options parameters.
|
|
6870
6870
|
*/
|
|
6871
6871
|
beginCreateOrUpdate(deviceName, chapUserName, resourceGroupName, managerName, chapSetting, options) {
|
|
6872
|
-
return tslib.__awaiter(this,
|
|
6873
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6872
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6873
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6874
6874
|
return this.client.sendOperationRequest(args, spec);
|
|
6875
6875
|
});
|
|
6876
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6876
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6877
6877
|
var _a;
|
|
6878
6878
|
let currentRawResponse = undefined;
|
|
6879
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6879
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6880
6880
|
const callback = (rawResponse, flatResponse) => {
|
|
6881
6881
|
currentRawResponse = rawResponse;
|
|
6882
|
-
providedCallback === null || providedCallback ===
|
|
6882
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6883
6883
|
};
|
|
6884
6884
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6885
6885
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6901,8 +6901,8 @@ class ChapSettingsOperationsImpl {
|
|
|
6901
6901
|
options
|
|
6902
6902
|
}, createOrUpdateOperationSpec$6);
|
|
6903
6903
|
const poller = new coreLro.LroEngine(lro, {
|
|
6904
|
-
resumeFrom: options === null || options ===
|
|
6905
|
-
intervalInMs: options === null || options ===
|
|
6904
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6905
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
6906
6906
|
});
|
|
6907
6907
|
yield poller.poll();
|
|
6908
6908
|
return poller;
|
|
@@ -6918,7 +6918,7 @@ class ChapSettingsOperationsImpl {
|
|
|
6918
6918
|
* @param options The options parameters.
|
|
6919
6919
|
*/
|
|
6920
6920
|
beginCreateOrUpdateAndWait(deviceName, chapUserName, resourceGroupName, managerName, chapSetting, options) {
|
|
6921
|
-
return tslib.__awaiter(this,
|
|
6921
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6922
6922
|
const poller = yield this.beginCreateOrUpdate(deviceName, chapUserName, resourceGroupName, managerName, chapSetting, options);
|
|
6923
6923
|
return poller.pollUntilDone();
|
|
6924
6924
|
});
|
|
@@ -6932,17 +6932,17 @@ class ChapSettingsOperationsImpl {
|
|
|
6932
6932
|
* @param options The options parameters.
|
|
6933
6933
|
*/
|
|
6934
6934
|
beginDelete(deviceName, chapUserName, resourceGroupName, managerName, options) {
|
|
6935
|
-
return tslib.__awaiter(this,
|
|
6936
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6935
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6936
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6937
6937
|
return this.client.sendOperationRequest(args, spec);
|
|
6938
6938
|
});
|
|
6939
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6939
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6940
6940
|
var _a;
|
|
6941
6941
|
let currentRawResponse = undefined;
|
|
6942
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6942
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6943
6943
|
const callback = (rawResponse, flatResponse) => {
|
|
6944
6944
|
currentRawResponse = rawResponse;
|
|
6945
|
-
providedCallback === null || providedCallback ===
|
|
6945
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6946
6946
|
};
|
|
6947
6947
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6948
6948
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6957,8 +6957,8 @@ class ChapSettingsOperationsImpl {
|
|
|
6957
6957
|
});
|
|
6958
6958
|
const lro = new LroImpl(sendOperation, { deviceName, chapUserName, resourceGroupName, managerName, options }, deleteOperationSpec$6);
|
|
6959
6959
|
const poller = new coreLro.LroEngine(lro, {
|
|
6960
|
-
resumeFrom: options === null || options ===
|
|
6961
|
-
intervalInMs: options === null || options ===
|
|
6960
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6961
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
6962
6962
|
});
|
|
6963
6963
|
yield poller.poll();
|
|
6964
6964
|
return poller;
|
|
@@ -6973,7 +6973,7 @@ class ChapSettingsOperationsImpl {
|
|
|
6973
6973
|
* @param options The options parameters.
|
|
6974
6974
|
*/
|
|
6975
6975
|
beginDeleteAndWait(deviceName, chapUserName, resourceGroupName, managerName, options) {
|
|
6976
|
-
return tslib.__awaiter(this,
|
|
6976
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6977
6977
|
const poller = yield this.beginDelete(deviceName, chapUserName, resourceGroupName, managerName, options);
|
|
6978
6978
|
return poller.pollUntilDone();
|
|
6979
6979
|
});
|
|
@@ -7119,7 +7119,7 @@ class IscsiDisksImpl {
|
|
|
7119
7119
|
return this;
|
|
7120
7120
|
},
|
|
7121
7121
|
byPage: (settings) => {
|
|
7122
|
-
if (settings === null || settings ===
|
|
7122
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7123
7123
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7124
7124
|
}
|
|
7125
7125
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -7171,7 +7171,7 @@ class IscsiDisksImpl {
|
|
|
7171
7171
|
return this;
|
|
7172
7172
|
},
|
|
7173
7173
|
byPage: (settings) => {
|
|
7174
|
-
if (settings === null || settings ===
|
|
7174
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7175
7175
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7176
7176
|
}
|
|
7177
7177
|
return this.listByIscsiServerPagingPage(deviceName, iscsiServerName, resourceGroupName, managerName, options, settings);
|
|
@@ -7224,7 +7224,7 @@ class IscsiDisksImpl {
|
|
|
7224
7224
|
return this;
|
|
7225
7225
|
},
|
|
7226
7226
|
byPage: (settings) => {
|
|
7227
|
-
if (settings === null || settings ===
|
|
7227
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7228
7228
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7229
7229
|
}
|
|
7230
7230
|
return this.listMetricsPagingPage(deviceName, iscsiServerName, diskName, resourceGroupName, managerName, options, settings);
|
|
@@ -7277,7 +7277,7 @@ class IscsiDisksImpl {
|
|
|
7277
7277
|
return this;
|
|
7278
7278
|
},
|
|
7279
7279
|
byPage: (settings) => {
|
|
7280
|
-
if (settings === null || settings ===
|
|
7280
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7281
7281
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7282
7282
|
}
|
|
7283
7283
|
return this.listMetricDefinitionPagingPage(deviceName, iscsiServerName, diskName, resourceGroupName, managerName, options, settings);
|
|
@@ -7362,17 +7362,17 @@ class IscsiDisksImpl {
|
|
|
7362
7362
|
* @param options The options parameters.
|
|
7363
7363
|
*/
|
|
7364
7364
|
beginCreateOrUpdate(deviceName, iscsiServerName, diskName, resourceGroupName, managerName, iscsiDisk, options) {
|
|
7365
|
-
return tslib.__awaiter(this,
|
|
7366
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7365
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7366
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7367
7367
|
return this.client.sendOperationRequest(args, spec);
|
|
7368
7368
|
});
|
|
7369
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7369
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7370
7370
|
var _a;
|
|
7371
7371
|
let currentRawResponse = undefined;
|
|
7372
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7372
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7373
7373
|
const callback = (rawResponse, flatResponse) => {
|
|
7374
7374
|
currentRawResponse = rawResponse;
|
|
7375
|
-
providedCallback === null || providedCallback ===
|
|
7375
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7376
7376
|
};
|
|
7377
7377
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7378
7378
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7395,8 +7395,8 @@ class IscsiDisksImpl {
|
|
|
7395
7395
|
options
|
|
7396
7396
|
}, createOrUpdateOperationSpec$5);
|
|
7397
7397
|
const poller = new coreLro.LroEngine(lro, {
|
|
7398
|
-
resumeFrom: options === null || options ===
|
|
7399
|
-
intervalInMs: options === null || options ===
|
|
7398
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7399
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7400
7400
|
});
|
|
7401
7401
|
yield poller.poll();
|
|
7402
7402
|
return poller;
|
|
@@ -7413,7 +7413,7 @@ class IscsiDisksImpl {
|
|
|
7413
7413
|
* @param options The options parameters.
|
|
7414
7414
|
*/
|
|
7415
7415
|
beginCreateOrUpdateAndWait(deviceName, iscsiServerName, diskName, resourceGroupName, managerName, iscsiDisk, options) {
|
|
7416
|
-
return tslib.__awaiter(this,
|
|
7416
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7417
7417
|
const poller = yield this.beginCreateOrUpdate(deviceName, iscsiServerName, diskName, resourceGroupName, managerName, iscsiDisk, options);
|
|
7418
7418
|
return poller.pollUntilDone();
|
|
7419
7419
|
});
|
|
@@ -7428,17 +7428,17 @@ class IscsiDisksImpl {
|
|
|
7428
7428
|
* @param options The options parameters.
|
|
7429
7429
|
*/
|
|
7430
7430
|
beginDelete(deviceName, iscsiServerName, diskName, resourceGroupName, managerName, options) {
|
|
7431
|
-
return tslib.__awaiter(this,
|
|
7432
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7431
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7432
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7433
7433
|
return this.client.sendOperationRequest(args, spec);
|
|
7434
7434
|
});
|
|
7435
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7435
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7436
7436
|
var _a;
|
|
7437
7437
|
let currentRawResponse = undefined;
|
|
7438
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7438
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7439
7439
|
const callback = (rawResponse, flatResponse) => {
|
|
7440
7440
|
currentRawResponse = rawResponse;
|
|
7441
|
-
providedCallback === null || providedCallback ===
|
|
7441
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7442
7442
|
};
|
|
7443
7443
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7444
7444
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7460,8 +7460,8 @@ class IscsiDisksImpl {
|
|
|
7460
7460
|
options
|
|
7461
7461
|
}, deleteOperationSpec$5);
|
|
7462
7462
|
const poller = new coreLro.LroEngine(lro, {
|
|
7463
|
-
resumeFrom: options === null || options ===
|
|
7464
|
-
intervalInMs: options === null || options ===
|
|
7463
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7464
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7465
7465
|
});
|
|
7466
7466
|
yield poller.poll();
|
|
7467
7467
|
return poller;
|
|
@@ -7477,7 +7477,7 @@ class IscsiDisksImpl {
|
|
|
7477
7477
|
* @param options The options parameters.
|
|
7478
7478
|
*/
|
|
7479
7479
|
beginDeleteAndWait(deviceName, iscsiServerName, diskName, resourceGroupName, managerName, options) {
|
|
7480
|
-
return tslib.__awaiter(this,
|
|
7480
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7481
7481
|
const poller = yield this.beginDelete(deviceName, iscsiServerName, diskName, resourceGroupName, managerName, options);
|
|
7482
7482
|
return poller.pollUntilDone();
|
|
7483
7483
|
});
|
|
@@ -7735,7 +7735,7 @@ class FileServersImpl {
|
|
|
7735
7735
|
return this;
|
|
7736
7736
|
},
|
|
7737
7737
|
byPage: (settings) => {
|
|
7738
|
-
if (settings === null || settings ===
|
|
7738
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7739
7739
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7740
7740
|
}
|
|
7741
7741
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -7787,7 +7787,7 @@ class FileServersImpl {
|
|
|
7787
7787
|
return this;
|
|
7788
7788
|
},
|
|
7789
7789
|
byPage: (settings) => {
|
|
7790
|
-
if (settings === null || settings ===
|
|
7790
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7791
7791
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7792
7792
|
}
|
|
7793
7793
|
return this.listMetricsPagingPage(deviceName, fileServerName, resourceGroupName, managerName, options, settings);
|
|
@@ -7839,7 +7839,7 @@ class FileServersImpl {
|
|
|
7839
7839
|
return this;
|
|
7840
7840
|
},
|
|
7841
7841
|
byPage: (settings) => {
|
|
7842
|
-
if (settings === null || settings ===
|
|
7842
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7843
7843
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7844
7844
|
}
|
|
7845
7845
|
return this.listMetricDefinitionPagingPage(deviceName, fileServerName, resourceGroupName, managerName, options, settings);
|
|
@@ -7889,7 +7889,7 @@ class FileServersImpl {
|
|
|
7889
7889
|
return this;
|
|
7890
7890
|
},
|
|
7891
7891
|
byPage: (settings) => {
|
|
7892
|
-
if (settings === null || settings ===
|
|
7892
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7893
7893
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7894
7894
|
}
|
|
7895
7895
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -7954,17 +7954,17 @@ class FileServersImpl {
|
|
|
7954
7954
|
* @param options The options parameters.
|
|
7955
7955
|
*/
|
|
7956
7956
|
beginCreateOrUpdate(deviceName, fileServerName, resourceGroupName, managerName, fileServer, options) {
|
|
7957
|
-
return tslib.__awaiter(this,
|
|
7958
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7957
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7958
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7959
7959
|
return this.client.sendOperationRequest(args, spec);
|
|
7960
7960
|
});
|
|
7961
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7961
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7962
7962
|
var _a;
|
|
7963
7963
|
let currentRawResponse = undefined;
|
|
7964
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7964
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7965
7965
|
const callback = (rawResponse, flatResponse) => {
|
|
7966
7966
|
currentRawResponse = rawResponse;
|
|
7967
|
-
providedCallback === null || providedCallback ===
|
|
7967
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7968
7968
|
};
|
|
7969
7969
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7970
7970
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7986,8 +7986,8 @@ class FileServersImpl {
|
|
|
7986
7986
|
options
|
|
7987
7987
|
}, createOrUpdateOperationSpec$4);
|
|
7988
7988
|
const poller = new coreLro.LroEngine(lro, {
|
|
7989
|
-
resumeFrom: options === null || options ===
|
|
7990
|
-
intervalInMs: options === null || options ===
|
|
7989
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7990
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7991
7991
|
});
|
|
7992
7992
|
yield poller.poll();
|
|
7993
7993
|
return poller;
|
|
@@ -8003,7 +8003,7 @@ class FileServersImpl {
|
|
|
8003
8003
|
* @param options The options parameters.
|
|
8004
8004
|
*/
|
|
8005
8005
|
beginCreateOrUpdateAndWait(deviceName, fileServerName, resourceGroupName, managerName, fileServer, options) {
|
|
8006
|
-
return tslib.__awaiter(this,
|
|
8006
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8007
8007
|
const poller = yield this.beginCreateOrUpdate(deviceName, fileServerName, resourceGroupName, managerName, fileServer, options);
|
|
8008
8008
|
return poller.pollUntilDone();
|
|
8009
8009
|
});
|
|
@@ -8017,17 +8017,17 @@ class FileServersImpl {
|
|
|
8017
8017
|
* @param options The options parameters.
|
|
8018
8018
|
*/
|
|
8019
8019
|
beginDelete(deviceName, fileServerName, resourceGroupName, managerName, options) {
|
|
8020
|
-
return tslib.__awaiter(this,
|
|
8021
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8020
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8021
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8022
8022
|
return this.client.sendOperationRequest(args, spec);
|
|
8023
8023
|
});
|
|
8024
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8024
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8025
8025
|
var _a;
|
|
8026
8026
|
let currentRawResponse = undefined;
|
|
8027
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8027
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8028
8028
|
const callback = (rawResponse, flatResponse) => {
|
|
8029
8029
|
currentRawResponse = rawResponse;
|
|
8030
|
-
providedCallback === null || providedCallback ===
|
|
8030
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8031
8031
|
};
|
|
8032
8032
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8033
8033
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8042,8 +8042,8 @@ class FileServersImpl {
|
|
|
8042
8042
|
});
|
|
8043
8043
|
const lro = new LroImpl(sendOperation, { deviceName, fileServerName, resourceGroupName, managerName, options }, deleteOperationSpec$4);
|
|
8044
8044
|
const poller = new coreLro.LroEngine(lro, {
|
|
8045
|
-
resumeFrom: options === null || options ===
|
|
8046
|
-
intervalInMs: options === null || options ===
|
|
8045
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8046
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
8047
8047
|
});
|
|
8048
8048
|
yield poller.poll();
|
|
8049
8049
|
return poller;
|
|
@@ -8058,7 +8058,7 @@ class FileServersImpl {
|
|
|
8058
8058
|
* @param options The options parameters.
|
|
8059
8059
|
*/
|
|
8060
8060
|
beginDeleteAndWait(deviceName, fileServerName, resourceGroupName, managerName, options) {
|
|
8061
|
-
return tslib.__awaiter(this,
|
|
8061
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8062
8062
|
const poller = yield this.beginDelete(deviceName, fileServerName, resourceGroupName, managerName, options);
|
|
8063
8063
|
return poller.pollUntilDone();
|
|
8064
8064
|
});
|
|
@@ -8072,17 +8072,17 @@ class FileServersImpl {
|
|
|
8072
8072
|
* @param options The options parameters.
|
|
8073
8073
|
*/
|
|
8074
8074
|
beginBackupNow(deviceName, fileServerName, resourceGroupName, managerName, options) {
|
|
8075
|
-
return tslib.__awaiter(this,
|
|
8076
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8075
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8076
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8077
8077
|
return this.client.sendOperationRequest(args, spec);
|
|
8078
8078
|
});
|
|
8079
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8079
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8080
8080
|
var _a;
|
|
8081
8081
|
let currentRawResponse = undefined;
|
|
8082
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8082
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8083
8083
|
const callback = (rawResponse, flatResponse) => {
|
|
8084
8084
|
currentRawResponse = rawResponse;
|
|
8085
|
-
providedCallback === null || providedCallback ===
|
|
8085
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8086
8086
|
};
|
|
8087
8087
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8088
8088
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8097,8 +8097,8 @@ class FileServersImpl {
|
|
|
8097
8097
|
});
|
|
8098
8098
|
const lro = new LroImpl(sendOperation, { deviceName, fileServerName, resourceGroupName, managerName, options }, backupNowOperationSpec$1);
|
|
8099
8099
|
const poller = new coreLro.LroEngine(lro, {
|
|
8100
|
-
resumeFrom: options === null || options ===
|
|
8101
|
-
intervalInMs: options === null || options ===
|
|
8100
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8101
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
8102
8102
|
});
|
|
8103
8103
|
yield poller.poll();
|
|
8104
8104
|
return poller;
|
|
@@ -8113,7 +8113,7 @@ class FileServersImpl {
|
|
|
8113
8113
|
* @param options The options parameters.
|
|
8114
8114
|
*/
|
|
8115
8115
|
beginBackupNowAndWait(deviceName, fileServerName, resourceGroupName, managerName, options) {
|
|
8116
|
-
return tslib.__awaiter(this,
|
|
8116
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8117
8117
|
const poller = yield this.beginBackupNow(deviceName, fileServerName, resourceGroupName, managerName, options);
|
|
8118
8118
|
return poller.pollUntilDone();
|
|
8119
8119
|
});
|
|
@@ -8382,7 +8382,7 @@ class FileSharesImpl {
|
|
|
8382
8382
|
return this;
|
|
8383
8383
|
},
|
|
8384
8384
|
byPage: (settings) => {
|
|
8385
|
-
if (settings === null || settings ===
|
|
8385
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8386
8386
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8387
8387
|
}
|
|
8388
8388
|
return this.listByFileServerPagingPage(deviceName, fileServerName, resourceGroupName, managerName, options, settings);
|
|
@@ -8435,7 +8435,7 @@ class FileSharesImpl {
|
|
|
8435
8435
|
return this;
|
|
8436
8436
|
},
|
|
8437
8437
|
byPage: (settings) => {
|
|
8438
|
-
if (settings === null || settings ===
|
|
8438
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8439
8439
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8440
8440
|
}
|
|
8441
8441
|
return this.listMetricsPagingPage(deviceName, fileServerName, shareName, resourceGroupName, managerName, options, settings);
|
|
@@ -8488,7 +8488,7 @@ class FileSharesImpl {
|
|
|
8488
8488
|
return this;
|
|
8489
8489
|
},
|
|
8490
8490
|
byPage: (settings) => {
|
|
8491
|
-
if (settings === null || settings ===
|
|
8491
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8492
8492
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8493
8493
|
}
|
|
8494
8494
|
return this.listMetricDefinitionPagingPage(deviceName, fileServerName, shareName, resourceGroupName, managerName, options, settings);
|
|
@@ -8539,7 +8539,7 @@ class FileSharesImpl {
|
|
|
8539
8539
|
return this;
|
|
8540
8540
|
},
|
|
8541
8541
|
byPage: (settings) => {
|
|
8542
|
-
if (settings === null || settings ===
|
|
8542
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8543
8543
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8544
8544
|
}
|
|
8545
8545
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -8614,17 +8614,17 @@ class FileSharesImpl {
|
|
|
8614
8614
|
* @param options The options parameters.
|
|
8615
8615
|
*/
|
|
8616
8616
|
beginCreateOrUpdate(deviceName, fileServerName, shareName, resourceGroupName, managerName, fileShare, options) {
|
|
8617
|
-
return tslib.__awaiter(this,
|
|
8618
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8617
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8618
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8619
8619
|
return this.client.sendOperationRequest(args, spec);
|
|
8620
8620
|
});
|
|
8621
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8621
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8622
8622
|
var _a;
|
|
8623
8623
|
let currentRawResponse = undefined;
|
|
8624
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8624
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8625
8625
|
const callback = (rawResponse, flatResponse) => {
|
|
8626
8626
|
currentRawResponse = rawResponse;
|
|
8627
|
-
providedCallback === null || providedCallback ===
|
|
8627
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8628
8628
|
};
|
|
8629
8629
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8630
8630
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8647,8 +8647,8 @@ class FileSharesImpl {
|
|
|
8647
8647
|
options
|
|
8648
8648
|
}, createOrUpdateOperationSpec$3);
|
|
8649
8649
|
const poller = new coreLro.LroEngine(lro, {
|
|
8650
|
-
resumeFrom: options === null || options ===
|
|
8651
|
-
intervalInMs: options === null || options ===
|
|
8650
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8651
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
8652
8652
|
});
|
|
8653
8653
|
yield poller.poll();
|
|
8654
8654
|
return poller;
|
|
@@ -8665,7 +8665,7 @@ class FileSharesImpl {
|
|
|
8665
8665
|
* @param options The options parameters.
|
|
8666
8666
|
*/
|
|
8667
8667
|
beginCreateOrUpdateAndWait(deviceName, fileServerName, shareName, resourceGroupName, managerName, fileShare, options) {
|
|
8668
|
-
return tslib.__awaiter(this,
|
|
8668
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8669
8669
|
const poller = yield this.beginCreateOrUpdate(deviceName, fileServerName, shareName, resourceGroupName, managerName, fileShare, options);
|
|
8670
8670
|
return poller.pollUntilDone();
|
|
8671
8671
|
});
|
|
@@ -8680,17 +8680,17 @@ class FileSharesImpl {
|
|
|
8680
8680
|
* @param options The options parameters.
|
|
8681
8681
|
*/
|
|
8682
8682
|
beginDelete(deviceName, fileServerName, shareName, resourceGroupName, managerName, options) {
|
|
8683
|
-
return tslib.__awaiter(this,
|
|
8684
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8683
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8684
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8685
8685
|
return this.client.sendOperationRequest(args, spec);
|
|
8686
8686
|
});
|
|
8687
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8687
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8688
8688
|
var _a;
|
|
8689
8689
|
let currentRawResponse = undefined;
|
|
8690
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8690
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8691
8691
|
const callback = (rawResponse, flatResponse) => {
|
|
8692
8692
|
currentRawResponse = rawResponse;
|
|
8693
|
-
providedCallback === null || providedCallback ===
|
|
8693
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8694
8694
|
};
|
|
8695
8695
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8696
8696
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8712,8 +8712,8 @@ class FileSharesImpl {
|
|
|
8712
8712
|
options
|
|
8713
8713
|
}, deleteOperationSpec$3);
|
|
8714
8714
|
const poller = new coreLro.LroEngine(lro, {
|
|
8715
|
-
resumeFrom: options === null || options ===
|
|
8716
|
-
intervalInMs: options === null || options ===
|
|
8715
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8716
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
8717
8717
|
});
|
|
8718
8718
|
yield poller.poll();
|
|
8719
8719
|
return poller;
|
|
@@ -8729,7 +8729,7 @@ class FileSharesImpl {
|
|
|
8729
8729
|
* @param options The options parameters.
|
|
8730
8730
|
*/
|
|
8731
8731
|
beginDeleteAndWait(deviceName, fileServerName, shareName, resourceGroupName, managerName, options) {
|
|
8732
|
-
return tslib.__awaiter(this,
|
|
8732
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8733
8733
|
const poller = yield this.beginDelete(deviceName, fileServerName, shareName, resourceGroupName, managerName, options);
|
|
8734
8734
|
return poller.pollUntilDone();
|
|
8735
8735
|
});
|
|
@@ -8997,7 +8997,7 @@ class IscsiServersImpl {
|
|
|
8997
8997
|
return this;
|
|
8998
8998
|
},
|
|
8999
8999
|
byPage: (settings) => {
|
|
9000
|
-
if (settings === null || settings ===
|
|
9000
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9001
9001
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9002
9002
|
}
|
|
9003
9003
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -9049,7 +9049,7 @@ class IscsiServersImpl {
|
|
|
9049
9049
|
return this;
|
|
9050
9050
|
},
|
|
9051
9051
|
byPage: (settings) => {
|
|
9052
|
-
if (settings === null || settings ===
|
|
9052
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9053
9053
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9054
9054
|
}
|
|
9055
9055
|
return this.listMetricsPagingPage(deviceName, iscsiServerName, resourceGroupName, managerName, options, settings);
|
|
@@ -9101,7 +9101,7 @@ class IscsiServersImpl {
|
|
|
9101
9101
|
return this;
|
|
9102
9102
|
},
|
|
9103
9103
|
byPage: (settings) => {
|
|
9104
|
-
if (settings === null || settings ===
|
|
9104
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9105
9105
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9106
9106
|
}
|
|
9107
9107
|
return this.listMetricDefinitionPagingPage(deviceName, iscsiServerName, resourceGroupName, managerName, options, settings);
|
|
@@ -9151,7 +9151,7 @@ class IscsiServersImpl {
|
|
|
9151
9151
|
return this;
|
|
9152
9152
|
},
|
|
9153
9153
|
byPage: (settings) => {
|
|
9154
|
-
if (settings === null || settings ===
|
|
9154
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9155
9155
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9156
9156
|
}
|
|
9157
9157
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -9216,17 +9216,17 @@ class IscsiServersImpl {
|
|
|
9216
9216
|
* @param options The options parameters.
|
|
9217
9217
|
*/
|
|
9218
9218
|
beginCreateOrUpdate(deviceName, iscsiServerName, resourceGroupName, managerName, iscsiServer, options) {
|
|
9219
|
-
return tslib.__awaiter(this,
|
|
9220
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9219
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9220
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9221
9221
|
return this.client.sendOperationRequest(args, spec);
|
|
9222
9222
|
});
|
|
9223
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9223
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9224
9224
|
var _a;
|
|
9225
9225
|
let currentRawResponse = undefined;
|
|
9226
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9226
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9227
9227
|
const callback = (rawResponse, flatResponse) => {
|
|
9228
9228
|
currentRawResponse = rawResponse;
|
|
9229
|
-
providedCallback === null || providedCallback ===
|
|
9229
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9230
9230
|
};
|
|
9231
9231
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9232
9232
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9248,8 +9248,8 @@ class IscsiServersImpl {
|
|
|
9248
9248
|
options
|
|
9249
9249
|
}, createOrUpdateOperationSpec$2);
|
|
9250
9250
|
const poller = new coreLro.LroEngine(lro, {
|
|
9251
|
-
resumeFrom: options === null || options ===
|
|
9252
|
-
intervalInMs: options === null || options ===
|
|
9251
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9252
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
9253
9253
|
});
|
|
9254
9254
|
yield poller.poll();
|
|
9255
9255
|
return poller;
|
|
@@ -9265,7 +9265,7 @@ class IscsiServersImpl {
|
|
|
9265
9265
|
* @param options The options parameters.
|
|
9266
9266
|
*/
|
|
9267
9267
|
beginCreateOrUpdateAndWait(deviceName, iscsiServerName, resourceGroupName, managerName, iscsiServer, options) {
|
|
9268
|
-
return tslib.__awaiter(this,
|
|
9268
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9269
9269
|
const poller = yield this.beginCreateOrUpdate(deviceName, iscsiServerName, resourceGroupName, managerName, iscsiServer, options);
|
|
9270
9270
|
return poller.pollUntilDone();
|
|
9271
9271
|
});
|
|
@@ -9279,17 +9279,17 @@ class IscsiServersImpl {
|
|
|
9279
9279
|
* @param options The options parameters.
|
|
9280
9280
|
*/
|
|
9281
9281
|
beginDelete(deviceName, iscsiServerName, resourceGroupName, managerName, options) {
|
|
9282
|
-
return tslib.__awaiter(this,
|
|
9283
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9282
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9283
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9284
9284
|
return this.client.sendOperationRequest(args, spec);
|
|
9285
9285
|
});
|
|
9286
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9286
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9287
9287
|
var _a;
|
|
9288
9288
|
let currentRawResponse = undefined;
|
|
9289
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9289
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9290
9290
|
const callback = (rawResponse, flatResponse) => {
|
|
9291
9291
|
currentRawResponse = rawResponse;
|
|
9292
|
-
providedCallback === null || providedCallback ===
|
|
9292
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9293
9293
|
};
|
|
9294
9294
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9295
9295
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9304,8 +9304,8 @@ class IscsiServersImpl {
|
|
|
9304
9304
|
});
|
|
9305
9305
|
const lro = new LroImpl(sendOperation, { deviceName, iscsiServerName, resourceGroupName, managerName, options }, deleteOperationSpec$2);
|
|
9306
9306
|
const poller = new coreLro.LroEngine(lro, {
|
|
9307
|
-
resumeFrom: options === null || options ===
|
|
9308
|
-
intervalInMs: options === null || options ===
|
|
9307
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9308
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
9309
9309
|
});
|
|
9310
9310
|
yield poller.poll();
|
|
9311
9311
|
return poller;
|
|
@@ -9320,7 +9320,7 @@ class IscsiServersImpl {
|
|
|
9320
9320
|
* @param options The options parameters.
|
|
9321
9321
|
*/
|
|
9322
9322
|
beginDeleteAndWait(deviceName, iscsiServerName, resourceGroupName, managerName, options) {
|
|
9323
|
-
return tslib.__awaiter(this,
|
|
9323
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9324
9324
|
const poller = yield this.beginDelete(deviceName, iscsiServerName, resourceGroupName, managerName, options);
|
|
9325
9325
|
return poller.pollUntilDone();
|
|
9326
9326
|
});
|
|
@@ -9334,17 +9334,17 @@ class IscsiServersImpl {
|
|
|
9334
9334
|
* @param options The options parameters.
|
|
9335
9335
|
*/
|
|
9336
9336
|
beginBackupNow(deviceName, iscsiServerName, resourceGroupName, managerName, options) {
|
|
9337
|
-
return tslib.__awaiter(this,
|
|
9338
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9337
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9338
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9339
9339
|
return this.client.sendOperationRequest(args, spec);
|
|
9340
9340
|
});
|
|
9341
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9341
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9342
9342
|
var _a;
|
|
9343
9343
|
let currentRawResponse = undefined;
|
|
9344
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9344
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9345
9345
|
const callback = (rawResponse, flatResponse) => {
|
|
9346
9346
|
currentRawResponse = rawResponse;
|
|
9347
|
-
providedCallback === null || providedCallback ===
|
|
9347
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9348
9348
|
};
|
|
9349
9349
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9350
9350
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9359,8 +9359,8 @@ class IscsiServersImpl {
|
|
|
9359
9359
|
});
|
|
9360
9360
|
const lro = new LroImpl(sendOperation, { deviceName, iscsiServerName, resourceGroupName, managerName, options }, backupNowOperationSpec);
|
|
9361
9361
|
const poller = new coreLro.LroEngine(lro, {
|
|
9362
|
-
resumeFrom: options === null || options ===
|
|
9363
|
-
intervalInMs: options === null || options ===
|
|
9362
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9363
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
9364
9364
|
});
|
|
9365
9365
|
yield poller.poll();
|
|
9366
9366
|
return poller;
|
|
@@ -9375,7 +9375,7 @@ class IscsiServersImpl {
|
|
|
9375
9375
|
* @param options The options parameters.
|
|
9376
9376
|
*/
|
|
9377
9377
|
beginBackupNowAndWait(deviceName, iscsiServerName, resourceGroupName, managerName, options) {
|
|
9378
|
-
return tslib.__awaiter(this,
|
|
9378
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9379
9379
|
const poller = yield this.beginBackupNow(deviceName, iscsiServerName, resourceGroupName, managerName, options);
|
|
9380
9380
|
return poller.pollUntilDone();
|
|
9381
9381
|
});
|
|
@@ -9643,7 +9643,7 @@ class JobsImpl {
|
|
|
9643
9643
|
return this;
|
|
9644
9644
|
},
|
|
9645
9645
|
byPage: (settings) => {
|
|
9646
|
-
if (settings === null || settings ===
|
|
9646
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9647
9647
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9648
9648
|
}
|
|
9649
9649
|
return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
|
|
@@ -9653,7 +9653,7 @@ class JobsImpl {
|
|
|
9653
9653
|
listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
|
|
9654
9654
|
return tslib.__asyncGenerator(this, arguments, function* listByDevicePagingPage_1() {
|
|
9655
9655
|
let result;
|
|
9656
|
-
let continuationToken = settings === null || settings ===
|
|
9656
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9657
9657
|
if (!continuationToken) {
|
|
9658
9658
|
result = yield tslib.__await(this._listByDevice(deviceName, resourceGroupName, managerName, options));
|
|
9659
9659
|
let page = result.value || [];
|
|
@@ -9706,7 +9706,7 @@ class JobsImpl {
|
|
|
9706
9706
|
return this;
|
|
9707
9707
|
},
|
|
9708
9708
|
byPage: (settings) => {
|
|
9709
|
-
if (settings === null || settings ===
|
|
9709
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9710
9710
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9711
9711
|
}
|
|
9712
9712
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -9716,7 +9716,7 @@ class JobsImpl {
|
|
|
9716
9716
|
listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
|
|
9717
9717
|
return tslib.__asyncGenerator(this, arguments, function* listByManagerPagingPage_1() {
|
|
9718
9718
|
let result;
|
|
9719
|
-
let continuationToken = settings === null || settings ===
|
|
9719
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9720
9720
|
if (!continuationToken) {
|
|
9721
9721
|
result = yield tslib.__await(this._listByManager(resourceGroupName, managerName, options));
|
|
9722
9722
|
let page = result.value || [];
|
|
@@ -9950,7 +9950,7 @@ class StorageAccountCredentialsImpl {
|
|
|
9950
9950
|
return this;
|
|
9951
9951
|
},
|
|
9952
9952
|
byPage: (settings) => {
|
|
9953
|
-
if (settings === null || settings ===
|
|
9953
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9954
9954
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9955
9955
|
}
|
|
9956
9956
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -10012,17 +10012,17 @@ class StorageAccountCredentialsImpl {
|
|
|
10012
10012
|
* @param options The options parameters.
|
|
10013
10013
|
*/
|
|
10014
10014
|
beginCreateOrUpdate(credentialName, resourceGroupName, managerName, storageAccount, options) {
|
|
10015
|
-
return tslib.__awaiter(this,
|
|
10016
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10015
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10016
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10017
10017
|
return this.client.sendOperationRequest(args, spec);
|
|
10018
10018
|
});
|
|
10019
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10019
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10020
10020
|
var _a;
|
|
10021
10021
|
let currentRawResponse = undefined;
|
|
10022
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10022
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10023
10023
|
const callback = (rawResponse, flatResponse) => {
|
|
10024
10024
|
currentRawResponse = rawResponse;
|
|
10025
|
-
providedCallback === null || providedCallback ===
|
|
10025
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10026
10026
|
};
|
|
10027
10027
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10028
10028
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10043,8 +10043,8 @@ class StorageAccountCredentialsImpl {
|
|
|
10043
10043
|
options
|
|
10044
10044
|
}, createOrUpdateOperationSpec$1);
|
|
10045
10045
|
const poller = new coreLro.LroEngine(lro, {
|
|
10046
|
-
resumeFrom: options === null || options ===
|
|
10047
|
-
intervalInMs: options === null || options ===
|
|
10046
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10047
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
10048
10048
|
});
|
|
10049
10049
|
yield poller.poll();
|
|
10050
10050
|
return poller;
|
|
@@ -10059,7 +10059,7 @@ class StorageAccountCredentialsImpl {
|
|
|
10059
10059
|
* @param options The options parameters.
|
|
10060
10060
|
*/
|
|
10061
10061
|
beginCreateOrUpdateAndWait(credentialName, resourceGroupName, managerName, storageAccount, options) {
|
|
10062
|
-
return tslib.__awaiter(this,
|
|
10062
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10063
10063
|
const poller = yield this.beginCreateOrUpdate(credentialName, resourceGroupName, managerName, storageAccount, options);
|
|
10064
10064
|
return poller.pollUntilDone();
|
|
10065
10065
|
});
|
|
@@ -10072,17 +10072,17 @@ class StorageAccountCredentialsImpl {
|
|
|
10072
10072
|
* @param options The options parameters.
|
|
10073
10073
|
*/
|
|
10074
10074
|
beginDelete(credentialName, resourceGroupName, managerName, options) {
|
|
10075
|
-
return tslib.__awaiter(this,
|
|
10076
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10075
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10076
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10077
10077
|
return this.client.sendOperationRequest(args, spec);
|
|
10078
10078
|
});
|
|
10079
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10079
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10080
10080
|
var _a;
|
|
10081
10081
|
let currentRawResponse = undefined;
|
|
10082
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10082
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10083
10083
|
const callback = (rawResponse, flatResponse) => {
|
|
10084
10084
|
currentRawResponse = rawResponse;
|
|
10085
|
-
providedCallback === null || providedCallback ===
|
|
10085
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10086
10086
|
};
|
|
10087
10087
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10088
10088
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10097,8 +10097,8 @@ class StorageAccountCredentialsImpl {
|
|
|
10097
10097
|
});
|
|
10098
10098
|
const lro = new LroImpl(sendOperation, { credentialName, resourceGroupName, managerName, options }, deleteOperationSpec$1);
|
|
10099
10099
|
const poller = new coreLro.LroEngine(lro, {
|
|
10100
|
-
resumeFrom: options === null || options ===
|
|
10101
|
-
intervalInMs: options === null || options ===
|
|
10100
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10101
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
10102
10102
|
});
|
|
10103
10103
|
yield poller.poll();
|
|
10104
10104
|
return poller;
|
|
@@ -10112,7 +10112,7 @@ class StorageAccountCredentialsImpl {
|
|
|
10112
10112
|
* @param options The options parameters.
|
|
10113
10113
|
*/
|
|
10114
10114
|
beginDeleteAndWait(credentialName, resourceGroupName, managerName, options) {
|
|
10115
|
-
return tslib.__awaiter(this,
|
|
10115
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10116
10116
|
const poller = yield this.beginDelete(credentialName, resourceGroupName, managerName, options);
|
|
10117
10117
|
return poller.pollUntilDone();
|
|
10118
10118
|
});
|
|
@@ -10253,7 +10253,7 @@ class StorageDomainsImpl {
|
|
|
10253
10253
|
return this;
|
|
10254
10254
|
},
|
|
10255
10255
|
byPage: (settings) => {
|
|
10256
|
-
if (settings === null || settings ===
|
|
10256
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10257
10257
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10258
10258
|
}
|
|
10259
10259
|
return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
|
|
@@ -10315,17 +10315,17 @@ class StorageDomainsImpl {
|
|
|
10315
10315
|
* @param options The options parameters.
|
|
10316
10316
|
*/
|
|
10317
10317
|
beginCreateOrUpdate(storageDomainName, resourceGroupName, managerName, storageDomain, options) {
|
|
10318
|
-
return tslib.__awaiter(this,
|
|
10319
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10318
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10319
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10320
10320
|
return this.client.sendOperationRequest(args, spec);
|
|
10321
10321
|
});
|
|
10322
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10322
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10323
10323
|
var _a;
|
|
10324
10324
|
let currentRawResponse = undefined;
|
|
10325
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10325
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10326
10326
|
const callback = (rawResponse, flatResponse) => {
|
|
10327
10327
|
currentRawResponse = rawResponse;
|
|
10328
|
-
providedCallback === null || providedCallback ===
|
|
10328
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10329
10329
|
};
|
|
10330
10330
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10331
10331
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10346,8 +10346,8 @@ class StorageDomainsImpl {
|
|
|
10346
10346
|
options
|
|
10347
10347
|
}, createOrUpdateOperationSpec);
|
|
10348
10348
|
const poller = new coreLro.LroEngine(lro, {
|
|
10349
|
-
resumeFrom: options === null || options ===
|
|
10350
|
-
intervalInMs: options === null || options ===
|
|
10349
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10350
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
10351
10351
|
});
|
|
10352
10352
|
yield poller.poll();
|
|
10353
10353
|
return poller;
|
|
@@ -10362,7 +10362,7 @@ class StorageDomainsImpl {
|
|
|
10362
10362
|
* @param options The options parameters.
|
|
10363
10363
|
*/
|
|
10364
10364
|
beginCreateOrUpdateAndWait(storageDomainName, resourceGroupName, managerName, storageDomain, options) {
|
|
10365
|
-
return tslib.__awaiter(this,
|
|
10365
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10366
10366
|
const poller = yield this.beginCreateOrUpdate(storageDomainName, resourceGroupName, managerName, storageDomain, options);
|
|
10367
10367
|
return poller.pollUntilDone();
|
|
10368
10368
|
});
|
|
@@ -10375,17 +10375,17 @@ class StorageDomainsImpl {
|
|
|
10375
10375
|
* @param options The options parameters.
|
|
10376
10376
|
*/
|
|
10377
10377
|
beginDelete(storageDomainName, resourceGroupName, managerName, options) {
|
|
10378
|
-
return tslib.__awaiter(this,
|
|
10379
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10378
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10379
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10380
10380
|
return this.client.sendOperationRequest(args, spec);
|
|
10381
10381
|
});
|
|
10382
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10382
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10383
10383
|
var _a;
|
|
10384
10384
|
let currentRawResponse = undefined;
|
|
10385
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10385
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10386
10386
|
const callback = (rawResponse, flatResponse) => {
|
|
10387
10387
|
currentRawResponse = rawResponse;
|
|
10388
|
-
providedCallback === null || providedCallback ===
|
|
10388
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10389
10389
|
};
|
|
10390
10390
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10391
10391
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10400,8 +10400,8 @@ class StorageDomainsImpl {
|
|
|
10400
10400
|
});
|
|
10401
10401
|
const lro = new LroImpl(sendOperation, { storageDomainName, resourceGroupName, managerName, options }, deleteOperationSpec);
|
|
10402
10402
|
const poller = new coreLro.LroEngine(lro, {
|
|
10403
|
-
resumeFrom: options === null || options ===
|
|
10404
|
-
intervalInMs: options === null || options ===
|
|
10403
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10404
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
10405
10405
|
});
|
|
10406
10406
|
yield poller.poll();
|
|
10407
10407
|
return poller;
|
|
@@ -10415,7 +10415,7 @@ class StorageDomainsImpl {
|
|
|
10415
10415
|
* @param options The options parameters.
|
|
10416
10416
|
*/
|
|
10417
10417
|
beginDeleteAndWait(storageDomainName, resourceGroupName, managerName, options) {
|
|
10418
|
-
return tslib.__awaiter(this,
|
|
10418
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10419
10419
|
const poller = yield this.beginDelete(storageDomainName, resourceGroupName, managerName, options);
|
|
10420
10420
|
return poller.pollUntilDone();
|
|
10421
10421
|
});
|
|
@@ -10559,10 +10559,10 @@ class StorSimpleManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
10559
10559
|
: `${packageDetails}`;
|
|
10560
10560
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
10561
10561
|
userAgentPrefix
|
|
10562
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
10562
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
10563
10563
|
super(optionsWithDefaults);
|
|
10564
10564
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
10565
|
-
if ((options === null || options ===
|
|
10565
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
10566
10566
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
10567
10567
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
10568
10568
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -10576,7 +10576,7 @@ class StorSimpleManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
10576
10576
|
});
|
|
10577
10577
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
10578
10578
|
credential: credentials,
|
|
10579
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
10579
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
10580
10580
|
challengeCallbacks: {
|
|
10581
10581
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
10582
10582
|
}
|
|
@@ -10612,7 +10612,7 @@ class StorSimpleManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
10612
10612
|
const apiVersionPolicy = {
|
|
10613
10613
|
name: "CustomApiVersionPolicy",
|
|
10614
10614
|
sendRequest(request, next) {
|
|
10615
|
-
return tslib.__awaiter(this,
|
|
10615
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10616
10616
|
const param = request.url.split("?");
|
|
10617
10617
|
if (param.length > 1) {
|
|
10618
10618
|
const newParams = param[1].split("&").map((item) => {
|