@azure/arm-oracledatabase 1.0.1-alpha.20250103.1 → 1.0.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 +271 -271
- 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
|
}
|
|
@@ -7005,7 +7005,7 @@ class OperationsImpl {
|
|
|
7005
7005
|
return this;
|
|
7006
7006
|
},
|
|
7007
7007
|
byPage: (settings) => {
|
|
7008
|
-
if (settings === null || settings ===
|
|
7008
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7009
7009
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7010
7010
|
}
|
|
7011
7011
|
return this.listPagingPage(options, settings);
|
|
@@ -7015,7 +7015,7 @@ class OperationsImpl {
|
|
|
7015
7015
|
listPagingPage(options, settings) {
|
|
7016
7016
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7017
7017
|
let result;
|
|
7018
|
-
let continuationToken = settings === null || settings ===
|
|
7018
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7019
7019
|
if (!continuationToken) {
|
|
7020
7020
|
result = yield tslib.__await(this._list(options));
|
|
7021
7021
|
let page = result.value || [];
|
|
@@ -7117,7 +7117,7 @@ function createLroSpec(inputs) {
|
|
|
7117
7117
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
7118
7118
|
sendPollRequest: (path, options) => {
|
|
7119
7119
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
7120
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
7120
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
7121
7121
|
},
|
|
7122
7122
|
};
|
|
7123
7123
|
}
|
|
@@ -7153,7 +7153,7 @@ class AutonomousDatabasesImpl {
|
|
|
7153
7153
|
return this;
|
|
7154
7154
|
},
|
|
7155
7155
|
byPage: (settings) => {
|
|
7156
|
-
if (settings === null || settings ===
|
|
7156
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7157
7157
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7158
7158
|
}
|
|
7159
7159
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -7163,7 +7163,7 @@ class AutonomousDatabasesImpl {
|
|
|
7163
7163
|
listBySubscriptionPagingPage(options, settings) {
|
|
7164
7164
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
7165
7165
|
let result;
|
|
7166
|
-
let continuationToken = settings === null || settings ===
|
|
7166
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7167
7167
|
if (!continuationToken) {
|
|
7168
7168
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
7169
7169
|
let page = result.value || [];
|
|
@@ -7215,7 +7215,7 @@ class AutonomousDatabasesImpl {
|
|
|
7215
7215
|
return this;
|
|
7216
7216
|
},
|
|
7217
7217
|
byPage: (settings) => {
|
|
7218
|
-
if (settings === null || settings ===
|
|
7218
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7219
7219
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7220
7220
|
}
|
|
7221
7221
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -7225,7 +7225,7 @@ class AutonomousDatabasesImpl {
|
|
|
7225
7225
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
7226
7226
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
7227
7227
|
let result;
|
|
7228
|
-
let continuationToken = settings === null || settings ===
|
|
7228
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7229
7229
|
if (!continuationToken) {
|
|
7230
7230
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
7231
7231
|
let page = result.value || [];
|
|
@@ -7294,17 +7294,17 @@ class AutonomousDatabasesImpl {
|
|
|
7294
7294
|
* @param options The options parameters.
|
|
7295
7295
|
*/
|
|
7296
7296
|
beginCreateOrUpdate(resourceGroupName, autonomousdatabasename, resource, options) {
|
|
7297
|
-
return tslib.__awaiter(this,
|
|
7298
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7297
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7298
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7299
7299
|
return this.client.sendOperationRequest(args, spec);
|
|
7300
7300
|
});
|
|
7301
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7301
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7302
7302
|
var _a;
|
|
7303
7303
|
let currentRawResponse = undefined;
|
|
7304
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7304
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7305
7305
|
const callback = (rawResponse, flatResponse) => {
|
|
7306
7306
|
currentRawResponse = rawResponse;
|
|
7307
|
-
providedCallback === null || providedCallback ===
|
|
7307
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7308
7308
|
};
|
|
7309
7309
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7310
7310
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7323,8 +7323,8 @@ class AutonomousDatabasesImpl {
|
|
|
7323
7323
|
spec: createOrUpdateOperationSpec$5,
|
|
7324
7324
|
});
|
|
7325
7325
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7326
|
-
restoreFrom: options === null || options ===
|
|
7327
|
-
intervalInMs: options === null || options ===
|
|
7326
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7327
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7328
7328
|
resourceLocationConfig: "azure-async-operation",
|
|
7329
7329
|
});
|
|
7330
7330
|
yield poller.poll();
|
|
@@ -7339,7 +7339,7 @@ class AutonomousDatabasesImpl {
|
|
|
7339
7339
|
* @param options The options parameters.
|
|
7340
7340
|
*/
|
|
7341
7341
|
beginCreateOrUpdateAndWait(resourceGroupName, autonomousdatabasename, resource, options) {
|
|
7342
|
-
return tslib.__awaiter(this,
|
|
7342
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7343
7343
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, autonomousdatabasename, resource, options);
|
|
7344
7344
|
return poller.pollUntilDone();
|
|
7345
7345
|
});
|
|
@@ -7352,17 +7352,17 @@ class AutonomousDatabasesImpl {
|
|
|
7352
7352
|
* @param options The options parameters.
|
|
7353
7353
|
*/
|
|
7354
7354
|
beginUpdate(resourceGroupName, autonomousdatabasename, properties, options) {
|
|
7355
|
-
return tslib.__awaiter(this,
|
|
7356
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7355
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7356
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7357
7357
|
return this.client.sendOperationRequest(args, spec);
|
|
7358
7358
|
});
|
|
7359
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7359
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7360
7360
|
var _a;
|
|
7361
7361
|
let currentRawResponse = undefined;
|
|
7362
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7362
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7363
7363
|
const callback = (rawResponse, flatResponse) => {
|
|
7364
7364
|
currentRawResponse = rawResponse;
|
|
7365
|
-
providedCallback === null || providedCallback ===
|
|
7365
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7366
7366
|
};
|
|
7367
7367
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7368
7368
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7381,8 +7381,8 @@ class AutonomousDatabasesImpl {
|
|
|
7381
7381
|
spec: updateOperationSpec$4,
|
|
7382
7382
|
});
|
|
7383
7383
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7384
|
-
restoreFrom: options === null || options ===
|
|
7385
|
-
intervalInMs: options === null || options ===
|
|
7384
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7385
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7386
7386
|
resourceLocationConfig: "location",
|
|
7387
7387
|
});
|
|
7388
7388
|
yield poller.poll();
|
|
@@ -7397,7 +7397,7 @@ class AutonomousDatabasesImpl {
|
|
|
7397
7397
|
* @param options The options parameters.
|
|
7398
7398
|
*/
|
|
7399
7399
|
beginUpdateAndWait(resourceGroupName, autonomousdatabasename, properties, options) {
|
|
7400
|
-
return tslib.__awaiter(this,
|
|
7400
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7401
7401
|
const poller = yield this.beginUpdate(resourceGroupName, autonomousdatabasename, properties, options);
|
|
7402
7402
|
return poller.pollUntilDone();
|
|
7403
7403
|
});
|
|
@@ -7409,17 +7409,17 @@ class AutonomousDatabasesImpl {
|
|
|
7409
7409
|
* @param options The options parameters.
|
|
7410
7410
|
*/
|
|
7411
7411
|
beginDelete(resourceGroupName, autonomousdatabasename, options) {
|
|
7412
|
-
return tslib.__awaiter(this,
|
|
7413
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7412
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7413
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7414
7414
|
return this.client.sendOperationRequest(args, spec);
|
|
7415
7415
|
});
|
|
7416
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7416
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7417
7417
|
var _a;
|
|
7418
7418
|
let currentRawResponse = undefined;
|
|
7419
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7419
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7420
7420
|
const callback = (rawResponse, flatResponse) => {
|
|
7421
7421
|
currentRawResponse = rawResponse;
|
|
7422
|
-
providedCallback === null || providedCallback ===
|
|
7422
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7423
7423
|
};
|
|
7424
7424
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7425
7425
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7438,8 +7438,8 @@ class AutonomousDatabasesImpl {
|
|
|
7438
7438
|
spec: deleteOperationSpec$5,
|
|
7439
7439
|
});
|
|
7440
7440
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7441
|
-
restoreFrom: options === null || options ===
|
|
7442
|
-
intervalInMs: options === null || options ===
|
|
7441
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7442
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7443
7443
|
resourceLocationConfig: "location",
|
|
7444
7444
|
});
|
|
7445
7445
|
yield poller.poll();
|
|
@@ -7453,7 +7453,7 @@ class AutonomousDatabasesImpl {
|
|
|
7453
7453
|
* @param options The options parameters.
|
|
7454
7454
|
*/
|
|
7455
7455
|
beginDeleteAndWait(resourceGroupName, autonomousdatabasename, options) {
|
|
7456
|
-
return tslib.__awaiter(this,
|
|
7456
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7457
7457
|
const poller = yield this.beginDelete(resourceGroupName, autonomousdatabasename, options);
|
|
7458
7458
|
return poller.pollUntilDone();
|
|
7459
7459
|
});
|
|
@@ -7466,17 +7466,17 @@ class AutonomousDatabasesImpl {
|
|
|
7466
7466
|
* @param options The options parameters.
|
|
7467
7467
|
*/
|
|
7468
7468
|
beginFailover(resourceGroupName, autonomousdatabasename, body, options) {
|
|
7469
|
-
return tslib.__awaiter(this,
|
|
7470
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7469
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7470
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7471
7471
|
return this.client.sendOperationRequest(args, spec);
|
|
7472
7472
|
});
|
|
7473
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7473
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7474
7474
|
var _a;
|
|
7475
7475
|
let currentRawResponse = undefined;
|
|
7476
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7476
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7477
7477
|
const callback = (rawResponse, flatResponse) => {
|
|
7478
7478
|
currentRawResponse = rawResponse;
|
|
7479
|
-
providedCallback === null || providedCallback ===
|
|
7479
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7480
7480
|
};
|
|
7481
7481
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7482
7482
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7495,8 +7495,8 @@ class AutonomousDatabasesImpl {
|
|
|
7495
7495
|
spec: failoverOperationSpec,
|
|
7496
7496
|
});
|
|
7497
7497
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7498
|
-
restoreFrom: options === null || options ===
|
|
7499
|
-
intervalInMs: options === null || options ===
|
|
7498
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7499
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7500
7500
|
resourceLocationConfig: "location",
|
|
7501
7501
|
});
|
|
7502
7502
|
yield poller.poll();
|
|
@@ -7511,7 +7511,7 @@ class AutonomousDatabasesImpl {
|
|
|
7511
7511
|
* @param options The options parameters.
|
|
7512
7512
|
*/
|
|
7513
7513
|
beginFailoverAndWait(resourceGroupName, autonomousdatabasename, body, options) {
|
|
7514
|
-
return tslib.__awaiter(this,
|
|
7514
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7515
7515
|
const poller = yield this.beginFailover(resourceGroupName, autonomousdatabasename, body, options);
|
|
7516
7516
|
return poller.pollUntilDone();
|
|
7517
7517
|
});
|
|
@@ -7534,17 +7534,17 @@ class AutonomousDatabasesImpl {
|
|
|
7534
7534
|
* @param options The options parameters.
|
|
7535
7535
|
*/
|
|
7536
7536
|
beginRestore(resourceGroupName, autonomousdatabasename, body, options) {
|
|
7537
|
-
return tslib.__awaiter(this,
|
|
7538
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7537
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7538
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7539
7539
|
return this.client.sendOperationRequest(args, spec);
|
|
7540
7540
|
});
|
|
7541
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7541
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7542
7542
|
var _a;
|
|
7543
7543
|
let currentRawResponse = undefined;
|
|
7544
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7544
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7545
7545
|
const callback = (rawResponse, flatResponse) => {
|
|
7546
7546
|
currentRawResponse = rawResponse;
|
|
7547
|
-
providedCallback === null || providedCallback ===
|
|
7547
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7548
7548
|
};
|
|
7549
7549
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7550
7550
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7563,8 +7563,8 @@ class AutonomousDatabasesImpl {
|
|
|
7563
7563
|
spec: restoreOperationSpec,
|
|
7564
7564
|
});
|
|
7565
7565
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7566
|
-
restoreFrom: options === null || options ===
|
|
7567
|
-
intervalInMs: options === null || options ===
|
|
7566
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7567
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7568
7568
|
resourceLocationConfig: "location",
|
|
7569
7569
|
});
|
|
7570
7570
|
yield poller.poll();
|
|
@@ -7579,7 +7579,7 @@ class AutonomousDatabasesImpl {
|
|
|
7579
7579
|
* @param options The options parameters.
|
|
7580
7580
|
*/
|
|
7581
7581
|
beginRestoreAndWait(resourceGroupName, autonomousdatabasename, body, options) {
|
|
7582
|
-
return tslib.__awaiter(this,
|
|
7582
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7583
7583
|
const poller = yield this.beginRestore(resourceGroupName, autonomousdatabasename, body, options);
|
|
7584
7584
|
return poller.pollUntilDone();
|
|
7585
7585
|
});
|
|
@@ -7591,17 +7591,17 @@ class AutonomousDatabasesImpl {
|
|
|
7591
7591
|
* @param options The options parameters.
|
|
7592
7592
|
*/
|
|
7593
7593
|
beginShrink(resourceGroupName, autonomousdatabasename, options) {
|
|
7594
|
-
return tslib.__awaiter(this,
|
|
7595
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7594
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7595
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7596
7596
|
return this.client.sendOperationRequest(args, spec);
|
|
7597
7597
|
});
|
|
7598
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7598
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7599
7599
|
var _a;
|
|
7600
7600
|
let currentRawResponse = undefined;
|
|
7601
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7601
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7602
7602
|
const callback = (rawResponse, flatResponse) => {
|
|
7603
7603
|
currentRawResponse = rawResponse;
|
|
7604
|
-
providedCallback === null || providedCallback ===
|
|
7604
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7605
7605
|
};
|
|
7606
7606
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7607
7607
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7620,8 +7620,8 @@ class AutonomousDatabasesImpl {
|
|
|
7620
7620
|
spec: shrinkOperationSpec,
|
|
7621
7621
|
});
|
|
7622
7622
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7623
|
-
restoreFrom: options === null || options ===
|
|
7624
|
-
intervalInMs: options === null || options ===
|
|
7623
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7624
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7625
7625
|
resourceLocationConfig: "location",
|
|
7626
7626
|
});
|
|
7627
7627
|
yield poller.poll();
|
|
@@ -7635,7 +7635,7 @@ class AutonomousDatabasesImpl {
|
|
|
7635
7635
|
* @param options The options parameters.
|
|
7636
7636
|
*/
|
|
7637
7637
|
beginShrinkAndWait(resourceGroupName, autonomousdatabasename, options) {
|
|
7638
|
-
return tslib.__awaiter(this,
|
|
7638
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7639
7639
|
const poller = yield this.beginShrink(resourceGroupName, autonomousdatabasename, options);
|
|
7640
7640
|
return poller.pollUntilDone();
|
|
7641
7641
|
});
|
|
@@ -7648,17 +7648,17 @@ class AutonomousDatabasesImpl {
|
|
|
7648
7648
|
* @param options The options parameters.
|
|
7649
7649
|
*/
|
|
7650
7650
|
beginSwitchover(resourceGroupName, autonomousdatabasename, body, options) {
|
|
7651
|
-
return tslib.__awaiter(this,
|
|
7652
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7651
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7652
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7653
7653
|
return this.client.sendOperationRequest(args, spec);
|
|
7654
7654
|
});
|
|
7655
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7655
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7656
7656
|
var _a;
|
|
7657
7657
|
let currentRawResponse = undefined;
|
|
7658
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7658
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7659
7659
|
const callback = (rawResponse, flatResponse) => {
|
|
7660
7660
|
currentRawResponse = rawResponse;
|
|
7661
|
-
providedCallback === null || providedCallback ===
|
|
7661
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7662
7662
|
};
|
|
7663
7663
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7664
7664
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7677,8 +7677,8 @@ class AutonomousDatabasesImpl {
|
|
|
7677
7677
|
spec: switchoverOperationSpec,
|
|
7678
7678
|
});
|
|
7679
7679
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7680
|
-
restoreFrom: options === null || options ===
|
|
7681
|
-
intervalInMs: options === null || options ===
|
|
7680
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7681
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7682
7682
|
resourceLocationConfig: "location",
|
|
7683
7683
|
});
|
|
7684
7684
|
yield poller.poll();
|
|
@@ -7693,7 +7693,7 @@ class AutonomousDatabasesImpl {
|
|
|
7693
7693
|
* @param options The options parameters.
|
|
7694
7694
|
*/
|
|
7695
7695
|
beginSwitchoverAndWait(resourceGroupName, autonomousdatabasename, body, options) {
|
|
7696
|
-
return tslib.__awaiter(this,
|
|
7696
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7697
7697
|
const poller = yield this.beginSwitchover(resourceGroupName, autonomousdatabasename, body, options);
|
|
7698
7698
|
return poller.pollUntilDone();
|
|
7699
7699
|
});
|
|
@@ -8089,7 +8089,7 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8089
8089
|
return this;
|
|
8090
8090
|
},
|
|
8091
8091
|
byPage: (settings) => {
|
|
8092
|
-
if (settings === null || settings ===
|
|
8092
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8093
8093
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8094
8094
|
}
|
|
8095
8095
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -8099,7 +8099,7 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8099
8099
|
listBySubscriptionPagingPage(options, settings) {
|
|
8100
8100
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
8101
8101
|
let result;
|
|
8102
|
-
let continuationToken = settings === null || settings ===
|
|
8102
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8103
8103
|
if (!continuationToken) {
|
|
8104
8104
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
8105
8105
|
let page = result.value || [];
|
|
@@ -8151,7 +8151,7 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8151
8151
|
return this;
|
|
8152
8152
|
},
|
|
8153
8153
|
byPage: (settings) => {
|
|
8154
|
-
if (settings === null || settings ===
|
|
8154
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8155
8155
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8156
8156
|
}
|
|
8157
8157
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -8161,7 +8161,7 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8161
8161
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
8162
8162
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
8163
8163
|
let result;
|
|
8164
|
-
let continuationToken = settings === null || settings ===
|
|
8164
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8165
8165
|
if (!continuationToken) {
|
|
8166
8166
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
8167
8167
|
let page = result.value || [];
|
|
@@ -8230,17 +8230,17 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8230
8230
|
* @param options The options parameters.
|
|
8231
8231
|
*/
|
|
8232
8232
|
beginCreateOrUpdate(resourceGroupName, cloudexadatainfrastructurename, resource, options) {
|
|
8233
|
-
return tslib.__awaiter(this,
|
|
8234
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8233
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8234
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8235
8235
|
return this.client.sendOperationRequest(args, spec);
|
|
8236
8236
|
});
|
|
8237
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8237
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8238
8238
|
var _a;
|
|
8239
8239
|
let currentRawResponse = undefined;
|
|
8240
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8240
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8241
8241
|
const callback = (rawResponse, flatResponse) => {
|
|
8242
8242
|
currentRawResponse = rawResponse;
|
|
8243
|
-
providedCallback === null || providedCallback ===
|
|
8243
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8244
8244
|
};
|
|
8245
8245
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8246
8246
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8264,8 +8264,8 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8264
8264
|
spec: createOrUpdateOperationSpec$4,
|
|
8265
8265
|
});
|
|
8266
8266
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8267
|
-
restoreFrom: options === null || options ===
|
|
8268
|
-
intervalInMs: options === null || options ===
|
|
8267
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8268
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8269
8269
|
resourceLocationConfig: "azure-async-operation",
|
|
8270
8270
|
});
|
|
8271
8271
|
yield poller.poll();
|
|
@@ -8280,7 +8280,7 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8280
8280
|
* @param options The options parameters.
|
|
8281
8281
|
*/
|
|
8282
8282
|
beginCreateOrUpdateAndWait(resourceGroupName, cloudexadatainfrastructurename, resource, options) {
|
|
8283
|
-
return tslib.__awaiter(this,
|
|
8283
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8284
8284
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cloudexadatainfrastructurename, resource, options);
|
|
8285
8285
|
return poller.pollUntilDone();
|
|
8286
8286
|
});
|
|
@@ -8293,17 +8293,17 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8293
8293
|
* @param options The options parameters.
|
|
8294
8294
|
*/
|
|
8295
8295
|
beginUpdate(resourceGroupName, cloudexadatainfrastructurename, properties, options) {
|
|
8296
|
-
return tslib.__awaiter(this,
|
|
8297
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8296
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8297
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8298
8298
|
return this.client.sendOperationRequest(args, spec);
|
|
8299
8299
|
});
|
|
8300
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8300
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8301
8301
|
var _a;
|
|
8302
8302
|
let currentRawResponse = undefined;
|
|
8303
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8303
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8304
8304
|
const callback = (rawResponse, flatResponse) => {
|
|
8305
8305
|
currentRawResponse = rawResponse;
|
|
8306
|
-
providedCallback === null || providedCallback ===
|
|
8306
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8307
8307
|
};
|
|
8308
8308
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8309
8309
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8327,8 +8327,8 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8327
8327
|
spec: updateOperationSpec$3,
|
|
8328
8328
|
});
|
|
8329
8329
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8330
|
-
restoreFrom: options === null || options ===
|
|
8331
|
-
intervalInMs: options === null || options ===
|
|
8330
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8331
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8332
8332
|
resourceLocationConfig: "location",
|
|
8333
8333
|
});
|
|
8334
8334
|
yield poller.poll();
|
|
@@ -8343,7 +8343,7 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8343
8343
|
* @param options The options parameters.
|
|
8344
8344
|
*/
|
|
8345
8345
|
beginUpdateAndWait(resourceGroupName, cloudexadatainfrastructurename, properties, options) {
|
|
8346
|
-
return tslib.__awaiter(this,
|
|
8346
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8347
8347
|
const poller = yield this.beginUpdate(resourceGroupName, cloudexadatainfrastructurename, properties, options);
|
|
8348
8348
|
return poller.pollUntilDone();
|
|
8349
8349
|
});
|
|
@@ -8355,17 +8355,17 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8355
8355
|
* @param options The options parameters.
|
|
8356
8356
|
*/
|
|
8357
8357
|
beginDelete(resourceGroupName, cloudexadatainfrastructurename, options) {
|
|
8358
|
-
return tslib.__awaiter(this,
|
|
8359
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8358
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8359
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8360
8360
|
return this.client.sendOperationRequest(args, spec);
|
|
8361
8361
|
});
|
|
8362
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8362
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8363
8363
|
var _a;
|
|
8364
8364
|
let currentRawResponse = undefined;
|
|
8365
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8365
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8366
8366
|
const callback = (rawResponse, flatResponse) => {
|
|
8367
8367
|
currentRawResponse = rawResponse;
|
|
8368
|
-
providedCallback === null || providedCallback ===
|
|
8368
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8369
8369
|
};
|
|
8370
8370
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8371
8371
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8384,8 +8384,8 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8384
8384
|
spec: deleteOperationSpec$4,
|
|
8385
8385
|
});
|
|
8386
8386
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8387
|
-
restoreFrom: options === null || options ===
|
|
8388
|
-
intervalInMs: options === null || options ===
|
|
8387
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8388
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8389
8389
|
resourceLocationConfig: "location",
|
|
8390
8390
|
});
|
|
8391
8391
|
yield poller.poll();
|
|
@@ -8399,7 +8399,7 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8399
8399
|
* @param options The options parameters.
|
|
8400
8400
|
*/
|
|
8401
8401
|
beginDeleteAndWait(resourceGroupName, cloudexadatainfrastructurename, options) {
|
|
8402
|
-
return tslib.__awaiter(this,
|
|
8402
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8403
8403
|
const poller = yield this.beginDelete(resourceGroupName, cloudexadatainfrastructurename, options);
|
|
8404
8404
|
return poller.pollUntilDone();
|
|
8405
8405
|
});
|
|
@@ -8411,17 +8411,17 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8411
8411
|
* @param options The options parameters.
|
|
8412
8412
|
*/
|
|
8413
8413
|
beginAddStorageCapacity(resourceGroupName, cloudexadatainfrastructurename, options) {
|
|
8414
|
-
return tslib.__awaiter(this,
|
|
8415
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8414
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8415
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8416
8416
|
return this.client.sendOperationRequest(args, spec);
|
|
8417
8417
|
});
|
|
8418
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8418
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8419
8419
|
var _a;
|
|
8420
8420
|
let currentRawResponse = undefined;
|
|
8421
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8421
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8422
8422
|
const callback = (rawResponse, flatResponse) => {
|
|
8423
8423
|
currentRawResponse = rawResponse;
|
|
8424
|
-
providedCallback === null || providedCallback ===
|
|
8424
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8425
8425
|
};
|
|
8426
8426
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8427
8427
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8440,8 +8440,8 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8440
8440
|
spec: addStorageCapacityOperationSpec,
|
|
8441
8441
|
});
|
|
8442
8442
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8443
|
-
restoreFrom: options === null || options ===
|
|
8444
|
-
intervalInMs: options === null || options ===
|
|
8443
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8444
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8445
8445
|
resourceLocationConfig: "location",
|
|
8446
8446
|
});
|
|
8447
8447
|
yield poller.poll();
|
|
@@ -8455,7 +8455,7 @@ class CloudExadataInfrastructuresImpl {
|
|
|
8455
8455
|
* @param options The options parameters.
|
|
8456
8456
|
*/
|
|
8457
8457
|
beginAddStorageCapacityAndWait(resourceGroupName, cloudexadatainfrastructurename, options) {
|
|
8458
|
-
return tslib.__awaiter(this,
|
|
8458
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8459
8459
|
const poller = yield this.beginAddStorageCapacity(resourceGroupName, cloudexadatainfrastructurename, options);
|
|
8460
8460
|
return poller.pollUntilDone();
|
|
8461
8461
|
});
|
|
@@ -8732,7 +8732,7 @@ class CloudVmClustersImpl {
|
|
|
8732
8732
|
return this;
|
|
8733
8733
|
},
|
|
8734
8734
|
byPage: (settings) => {
|
|
8735
|
-
if (settings === null || settings ===
|
|
8735
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8736
8736
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8737
8737
|
}
|
|
8738
8738
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -8742,7 +8742,7 @@ class CloudVmClustersImpl {
|
|
|
8742
8742
|
listBySubscriptionPagingPage(options, settings) {
|
|
8743
8743
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
8744
8744
|
let result;
|
|
8745
|
-
let continuationToken = settings === null || settings ===
|
|
8745
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8746
8746
|
if (!continuationToken) {
|
|
8747
8747
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
8748
8748
|
let page = result.value || [];
|
|
@@ -8794,7 +8794,7 @@ class CloudVmClustersImpl {
|
|
|
8794
8794
|
return this;
|
|
8795
8795
|
},
|
|
8796
8796
|
byPage: (settings) => {
|
|
8797
|
-
if (settings === null || settings ===
|
|
8797
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8798
8798
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8799
8799
|
}
|
|
8800
8800
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -8804,7 +8804,7 @@ class CloudVmClustersImpl {
|
|
|
8804
8804
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
8805
8805
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
8806
8806
|
let result;
|
|
8807
|
-
let continuationToken = settings === null || settings ===
|
|
8807
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8808
8808
|
if (!continuationToken) {
|
|
8809
8809
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
8810
8810
|
let page = result.value || [];
|
|
@@ -8873,17 +8873,17 @@ class CloudVmClustersImpl {
|
|
|
8873
8873
|
* @param options The options parameters.
|
|
8874
8874
|
*/
|
|
8875
8875
|
beginCreateOrUpdate(resourceGroupName, cloudvmclustername, resource, options) {
|
|
8876
|
-
return tslib.__awaiter(this,
|
|
8877
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8876
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8877
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8878
8878
|
return this.client.sendOperationRequest(args, spec);
|
|
8879
8879
|
});
|
|
8880
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8880
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8881
8881
|
var _a;
|
|
8882
8882
|
let currentRawResponse = undefined;
|
|
8883
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8883
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8884
8884
|
const callback = (rawResponse, flatResponse) => {
|
|
8885
8885
|
currentRawResponse = rawResponse;
|
|
8886
|
-
providedCallback === null || providedCallback ===
|
|
8886
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8887
8887
|
};
|
|
8888
8888
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8889
8889
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8902,8 +8902,8 @@ class CloudVmClustersImpl {
|
|
|
8902
8902
|
spec: createOrUpdateOperationSpec$3,
|
|
8903
8903
|
});
|
|
8904
8904
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8905
|
-
restoreFrom: options === null || options ===
|
|
8906
|
-
intervalInMs: options === null || options ===
|
|
8905
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8906
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8907
8907
|
resourceLocationConfig: "azure-async-operation",
|
|
8908
8908
|
});
|
|
8909
8909
|
yield poller.poll();
|
|
@@ -8918,7 +8918,7 @@ class CloudVmClustersImpl {
|
|
|
8918
8918
|
* @param options The options parameters.
|
|
8919
8919
|
*/
|
|
8920
8920
|
beginCreateOrUpdateAndWait(resourceGroupName, cloudvmclustername, resource, options) {
|
|
8921
|
-
return tslib.__awaiter(this,
|
|
8921
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8922
8922
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cloudvmclustername, resource, options);
|
|
8923
8923
|
return poller.pollUntilDone();
|
|
8924
8924
|
});
|
|
@@ -8931,17 +8931,17 @@ class CloudVmClustersImpl {
|
|
|
8931
8931
|
* @param options The options parameters.
|
|
8932
8932
|
*/
|
|
8933
8933
|
beginUpdate(resourceGroupName, cloudvmclustername, properties, options) {
|
|
8934
|
-
return tslib.__awaiter(this,
|
|
8935
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8934
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8935
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8936
8936
|
return this.client.sendOperationRequest(args, spec);
|
|
8937
8937
|
});
|
|
8938
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8938
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8939
8939
|
var _a;
|
|
8940
8940
|
let currentRawResponse = undefined;
|
|
8941
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8941
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8942
8942
|
const callback = (rawResponse, flatResponse) => {
|
|
8943
8943
|
currentRawResponse = rawResponse;
|
|
8944
|
-
providedCallback === null || providedCallback ===
|
|
8944
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8945
8945
|
};
|
|
8946
8946
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8947
8947
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8960,8 +8960,8 @@ class CloudVmClustersImpl {
|
|
|
8960
8960
|
spec: updateOperationSpec$2,
|
|
8961
8961
|
});
|
|
8962
8962
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8963
|
-
restoreFrom: options === null || options ===
|
|
8964
|
-
intervalInMs: options === null || options ===
|
|
8963
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8964
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8965
8965
|
resourceLocationConfig: "location",
|
|
8966
8966
|
});
|
|
8967
8967
|
yield poller.poll();
|
|
@@ -8976,7 +8976,7 @@ class CloudVmClustersImpl {
|
|
|
8976
8976
|
* @param options The options parameters.
|
|
8977
8977
|
*/
|
|
8978
8978
|
beginUpdateAndWait(resourceGroupName, cloudvmclustername, properties, options) {
|
|
8979
|
-
return tslib.__awaiter(this,
|
|
8979
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8980
8980
|
const poller = yield this.beginUpdate(resourceGroupName, cloudvmclustername, properties, options);
|
|
8981
8981
|
return poller.pollUntilDone();
|
|
8982
8982
|
});
|
|
@@ -8988,17 +8988,17 @@ class CloudVmClustersImpl {
|
|
|
8988
8988
|
* @param options The options parameters.
|
|
8989
8989
|
*/
|
|
8990
8990
|
beginDelete(resourceGroupName, cloudvmclustername, options) {
|
|
8991
|
-
return tslib.__awaiter(this,
|
|
8992
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8991
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8992
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8993
8993
|
return this.client.sendOperationRequest(args, spec);
|
|
8994
8994
|
});
|
|
8995
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8995
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8996
8996
|
var _a;
|
|
8997
8997
|
let currentRawResponse = undefined;
|
|
8998
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8998
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8999
8999
|
const callback = (rawResponse, flatResponse) => {
|
|
9000
9000
|
currentRawResponse = rawResponse;
|
|
9001
|
-
providedCallback === null || providedCallback ===
|
|
9001
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9002
9002
|
};
|
|
9003
9003
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9004
9004
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9017,8 +9017,8 @@ class CloudVmClustersImpl {
|
|
|
9017
9017
|
spec: deleteOperationSpec$3,
|
|
9018
9018
|
});
|
|
9019
9019
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9020
|
-
restoreFrom: options === null || options ===
|
|
9021
|
-
intervalInMs: options === null || options ===
|
|
9020
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9021
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9022
9022
|
resourceLocationConfig: "location",
|
|
9023
9023
|
});
|
|
9024
9024
|
yield poller.poll();
|
|
@@ -9032,7 +9032,7 @@ class CloudVmClustersImpl {
|
|
|
9032
9032
|
* @param options The options parameters.
|
|
9033
9033
|
*/
|
|
9034
9034
|
beginDeleteAndWait(resourceGroupName, cloudvmclustername, options) {
|
|
9035
|
-
return tslib.__awaiter(this,
|
|
9035
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9036
9036
|
const poller = yield this.beginDelete(resourceGroupName, cloudvmclustername, options);
|
|
9037
9037
|
return poller.pollUntilDone();
|
|
9038
9038
|
});
|
|
@@ -9045,17 +9045,17 @@ class CloudVmClustersImpl {
|
|
|
9045
9045
|
* @param options The options parameters.
|
|
9046
9046
|
*/
|
|
9047
9047
|
beginAddVms(resourceGroupName, cloudvmclustername, body, options) {
|
|
9048
|
-
return tslib.__awaiter(this,
|
|
9049
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9048
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9049
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9050
9050
|
return this.client.sendOperationRequest(args, spec);
|
|
9051
9051
|
});
|
|
9052
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9052
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9053
9053
|
var _a;
|
|
9054
9054
|
let currentRawResponse = undefined;
|
|
9055
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9055
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9056
9056
|
const callback = (rawResponse, flatResponse) => {
|
|
9057
9057
|
currentRawResponse = rawResponse;
|
|
9058
|
-
providedCallback === null || providedCallback ===
|
|
9058
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9059
9059
|
};
|
|
9060
9060
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9061
9061
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9074,8 +9074,8 @@ class CloudVmClustersImpl {
|
|
|
9074
9074
|
spec: addVmsOperationSpec,
|
|
9075
9075
|
});
|
|
9076
9076
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9077
|
-
restoreFrom: options === null || options ===
|
|
9078
|
-
intervalInMs: options === null || options ===
|
|
9077
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9078
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9079
9079
|
resourceLocationConfig: "location",
|
|
9080
9080
|
});
|
|
9081
9081
|
yield poller.poll();
|
|
@@ -9090,7 +9090,7 @@ class CloudVmClustersImpl {
|
|
|
9090
9090
|
* @param options The options parameters.
|
|
9091
9091
|
*/
|
|
9092
9092
|
beginAddVmsAndWait(resourceGroupName, cloudvmclustername, body, options) {
|
|
9093
|
-
return tslib.__awaiter(this,
|
|
9093
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9094
9094
|
const poller = yield this.beginAddVms(resourceGroupName, cloudvmclustername, body, options);
|
|
9095
9095
|
return poller.pollUntilDone();
|
|
9096
9096
|
});
|
|
@@ -9113,17 +9113,17 @@ class CloudVmClustersImpl {
|
|
|
9113
9113
|
* @param options The options parameters.
|
|
9114
9114
|
*/
|
|
9115
9115
|
beginRemoveVms(resourceGroupName, cloudvmclustername, body, options) {
|
|
9116
|
-
return tslib.__awaiter(this,
|
|
9117
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9116
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9117
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9118
9118
|
return this.client.sendOperationRequest(args, spec);
|
|
9119
9119
|
});
|
|
9120
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9120
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9121
9121
|
var _a;
|
|
9122
9122
|
let currentRawResponse = undefined;
|
|
9123
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9123
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9124
9124
|
const callback = (rawResponse, flatResponse) => {
|
|
9125
9125
|
currentRawResponse = rawResponse;
|
|
9126
|
-
providedCallback === null || providedCallback ===
|
|
9126
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9127
9127
|
};
|
|
9128
9128
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9129
9129
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9142,8 +9142,8 @@ class CloudVmClustersImpl {
|
|
|
9142
9142
|
spec: removeVmsOperationSpec,
|
|
9143
9143
|
});
|
|
9144
9144
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9145
|
-
restoreFrom: options === null || options ===
|
|
9146
|
-
intervalInMs: options === null || options ===
|
|
9145
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9146
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9147
9147
|
resourceLocationConfig: "location",
|
|
9148
9148
|
});
|
|
9149
9149
|
yield poller.poll();
|
|
@@ -9158,7 +9158,7 @@ class CloudVmClustersImpl {
|
|
|
9158
9158
|
* @param options The options parameters.
|
|
9159
9159
|
*/
|
|
9160
9160
|
beginRemoveVmsAndWait(resourceGroupName, cloudvmclustername, body, options) {
|
|
9161
|
-
return tslib.__awaiter(this,
|
|
9161
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9162
9162
|
const poller = yield this.beginRemoveVms(resourceGroupName, cloudvmclustername, body, options);
|
|
9163
9163
|
return poller.pollUntilDone();
|
|
9164
9164
|
});
|
|
@@ -9503,7 +9503,7 @@ class AutonomousDatabaseCharacterSetsImpl {
|
|
|
9503
9503
|
return this;
|
|
9504
9504
|
},
|
|
9505
9505
|
byPage: (settings) => {
|
|
9506
|
-
if (settings === null || settings ===
|
|
9506
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9507
9507
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9508
9508
|
}
|
|
9509
9509
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -9513,7 +9513,7 @@ class AutonomousDatabaseCharacterSetsImpl {
|
|
|
9513
9513
|
listByLocationPagingPage(location, options, settings) {
|
|
9514
9514
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
9515
9515
|
let result;
|
|
9516
|
-
let continuationToken = settings === null || settings ===
|
|
9516
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9517
9517
|
if (!continuationToken) {
|
|
9518
9518
|
result = yield tslib.__await(this._listByLocation(location, options));
|
|
9519
9519
|
let page = result.value || [];
|
|
@@ -9673,7 +9673,7 @@ class AutonomousDatabaseNationalCharacterSetsImpl {
|
|
|
9673
9673
|
return this;
|
|
9674
9674
|
},
|
|
9675
9675
|
byPage: (settings) => {
|
|
9676
|
-
if (settings === null || settings ===
|
|
9676
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9677
9677
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9678
9678
|
}
|
|
9679
9679
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -9683,7 +9683,7 @@ class AutonomousDatabaseNationalCharacterSetsImpl {
|
|
|
9683
9683
|
listByLocationPagingPage(location, options, settings) {
|
|
9684
9684
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
9685
9685
|
let result;
|
|
9686
|
-
let continuationToken = settings === null || settings ===
|
|
9686
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9687
9687
|
if (!continuationToken) {
|
|
9688
9688
|
result = yield tslib.__await(this._listByLocation(location, options));
|
|
9689
9689
|
let page = result.value || [];
|
|
@@ -9843,7 +9843,7 @@ class AutonomousDatabaseVersionsImpl {
|
|
|
9843
9843
|
return this;
|
|
9844
9844
|
},
|
|
9845
9845
|
byPage: (settings) => {
|
|
9846
|
-
if (settings === null || settings ===
|
|
9846
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9847
9847
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9848
9848
|
}
|
|
9849
9849
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -9853,7 +9853,7 @@ class AutonomousDatabaseVersionsImpl {
|
|
|
9853
9853
|
listByLocationPagingPage(location, options, settings) {
|
|
9854
9854
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
9855
9855
|
let result;
|
|
9856
|
-
let continuationToken = settings === null || settings ===
|
|
9856
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9857
9857
|
if (!continuationToken) {
|
|
9858
9858
|
result = yield tslib.__await(this._listByLocation(location, options));
|
|
9859
9859
|
let page = result.value || [];
|
|
@@ -10013,7 +10013,7 @@ class DbSystemShapesImpl {
|
|
|
10013
10013
|
return this;
|
|
10014
10014
|
},
|
|
10015
10015
|
byPage: (settings) => {
|
|
10016
|
-
if (settings === null || settings ===
|
|
10016
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10017
10017
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10018
10018
|
}
|
|
10019
10019
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -10023,7 +10023,7 @@ class DbSystemShapesImpl {
|
|
|
10023
10023
|
listByLocationPagingPage(location, options, settings) {
|
|
10024
10024
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
10025
10025
|
let result;
|
|
10026
|
-
let continuationToken = settings === null || settings ===
|
|
10026
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10027
10027
|
if (!continuationToken) {
|
|
10028
10028
|
result = yield tslib.__await(this._listByLocation(location, options));
|
|
10029
10029
|
let page = result.value || [];
|
|
@@ -10183,7 +10183,7 @@ class DnsPrivateViewsImpl {
|
|
|
10183
10183
|
return this;
|
|
10184
10184
|
},
|
|
10185
10185
|
byPage: (settings) => {
|
|
10186
|
-
if (settings === null || settings ===
|
|
10186
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10187
10187
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10188
10188
|
}
|
|
10189
10189
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -10193,7 +10193,7 @@ class DnsPrivateViewsImpl {
|
|
|
10193
10193
|
listByLocationPagingPage(location, options, settings) {
|
|
10194
10194
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
10195
10195
|
let result;
|
|
10196
|
-
let continuationToken = settings === null || settings ===
|
|
10196
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10197
10197
|
if (!continuationToken) {
|
|
10198
10198
|
result = yield tslib.__await(this._listByLocation(location, options));
|
|
10199
10199
|
let page = result.value || [];
|
|
@@ -10353,7 +10353,7 @@ class DnsPrivateZonesImpl {
|
|
|
10353
10353
|
return this;
|
|
10354
10354
|
},
|
|
10355
10355
|
byPage: (settings) => {
|
|
10356
|
-
if (settings === null || settings ===
|
|
10356
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10357
10357
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10358
10358
|
}
|
|
10359
10359
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -10363,7 +10363,7 @@ class DnsPrivateZonesImpl {
|
|
|
10363
10363
|
listByLocationPagingPage(location, options, settings) {
|
|
10364
10364
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
10365
10365
|
let result;
|
|
10366
|
-
let continuationToken = settings === null || settings ===
|
|
10366
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10367
10367
|
if (!continuationToken) {
|
|
10368
10368
|
result = yield tslib.__await(this._listByLocation(location, options));
|
|
10369
10369
|
let page = result.value || [];
|
|
@@ -10523,7 +10523,7 @@ class GiVersionsImpl {
|
|
|
10523
10523
|
return this;
|
|
10524
10524
|
},
|
|
10525
10525
|
byPage: (settings) => {
|
|
10526
|
-
if (settings === null || settings ===
|
|
10526
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10527
10527
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10528
10528
|
}
|
|
10529
10529
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -10533,7 +10533,7 @@ class GiVersionsImpl {
|
|
|
10533
10533
|
listByLocationPagingPage(location, options, settings) {
|
|
10534
10534
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
10535
10535
|
let result;
|
|
10536
|
-
let continuationToken = settings === null || settings ===
|
|
10536
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10537
10537
|
if (!continuationToken) {
|
|
10538
10538
|
result = yield tslib.__await(this._listByLocation(location, options));
|
|
10539
10539
|
let page = result.value || [];
|
|
@@ -10693,7 +10693,7 @@ class SystemVersionsImpl {
|
|
|
10693
10693
|
return this;
|
|
10694
10694
|
},
|
|
10695
10695
|
byPage: (settings) => {
|
|
10696
|
-
if (settings === null || settings ===
|
|
10696
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10697
10697
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10698
10698
|
}
|
|
10699
10699
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -10703,7 +10703,7 @@ class SystemVersionsImpl {
|
|
|
10703
10703
|
listByLocationPagingPage(location, options, settings) {
|
|
10704
10704
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
10705
10705
|
let result;
|
|
10706
|
-
let continuationToken = settings === null || settings ===
|
|
10706
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10707
10707
|
if (!continuationToken) {
|
|
10708
10708
|
result = yield tslib.__await(this._listByLocation(location, options));
|
|
10709
10709
|
let page = result.value || [];
|
|
@@ -10862,7 +10862,7 @@ class OracleSubscriptionsImpl {
|
|
|
10862
10862
|
return this;
|
|
10863
10863
|
},
|
|
10864
10864
|
byPage: (settings) => {
|
|
10865
|
-
if (settings === null || settings ===
|
|
10865
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10866
10866
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10867
10867
|
}
|
|
10868
10868
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -10872,7 +10872,7 @@ class OracleSubscriptionsImpl {
|
|
|
10872
10872
|
listBySubscriptionPagingPage(options, settings) {
|
|
10873
10873
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
10874
10874
|
let result;
|
|
10875
|
-
let continuationToken = settings === null || settings ===
|
|
10875
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10876
10876
|
if (!continuationToken) {
|
|
10877
10877
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
10878
10878
|
let page = result.value || [];
|
|
@@ -10929,17 +10929,17 @@ class OracleSubscriptionsImpl {
|
|
|
10929
10929
|
* @param options The options parameters.
|
|
10930
10930
|
*/
|
|
10931
10931
|
beginCreateOrUpdate(resource, options) {
|
|
10932
|
-
return tslib.__awaiter(this,
|
|
10933
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10932
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10933
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10934
10934
|
return this.client.sendOperationRequest(args, spec);
|
|
10935
10935
|
});
|
|
10936
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10936
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10937
10937
|
var _a;
|
|
10938
10938
|
let currentRawResponse = undefined;
|
|
10939
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10939
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10940
10940
|
const callback = (rawResponse, flatResponse) => {
|
|
10941
10941
|
currentRawResponse = rawResponse;
|
|
10942
|
-
providedCallback === null || providedCallback ===
|
|
10942
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10943
10943
|
};
|
|
10944
10944
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10945
10945
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10958,8 +10958,8 @@ class OracleSubscriptionsImpl {
|
|
|
10958
10958
|
spec: createOrUpdateOperationSpec$2,
|
|
10959
10959
|
});
|
|
10960
10960
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10961
|
-
restoreFrom: options === null || options ===
|
|
10962
|
-
intervalInMs: options === null || options ===
|
|
10961
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10962
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10963
10963
|
resourceLocationConfig: "azure-async-operation",
|
|
10964
10964
|
});
|
|
10965
10965
|
yield poller.poll();
|
|
@@ -10972,7 +10972,7 @@ class OracleSubscriptionsImpl {
|
|
|
10972
10972
|
* @param options The options parameters.
|
|
10973
10973
|
*/
|
|
10974
10974
|
beginCreateOrUpdateAndWait(resource, options) {
|
|
10975
|
-
return tslib.__awaiter(this,
|
|
10975
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10976
10976
|
const poller = yield this.beginCreateOrUpdate(resource, options);
|
|
10977
10977
|
return poller.pollUntilDone();
|
|
10978
10978
|
});
|
|
@@ -10983,17 +10983,17 @@ class OracleSubscriptionsImpl {
|
|
|
10983
10983
|
* @param options The options parameters.
|
|
10984
10984
|
*/
|
|
10985
10985
|
beginUpdate(properties, options) {
|
|
10986
|
-
return tslib.__awaiter(this,
|
|
10987
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10986
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10987
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10988
10988
|
return this.client.sendOperationRequest(args, spec);
|
|
10989
10989
|
});
|
|
10990
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10990
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10991
10991
|
var _a;
|
|
10992
10992
|
let currentRawResponse = undefined;
|
|
10993
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10993
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10994
10994
|
const callback = (rawResponse, flatResponse) => {
|
|
10995
10995
|
currentRawResponse = rawResponse;
|
|
10996
|
-
providedCallback === null || providedCallback ===
|
|
10996
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10997
10997
|
};
|
|
10998
10998
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10999
10999
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11012,8 +11012,8 @@ class OracleSubscriptionsImpl {
|
|
|
11012
11012
|
spec: updateOperationSpec$1,
|
|
11013
11013
|
});
|
|
11014
11014
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11015
|
-
restoreFrom: options === null || options ===
|
|
11016
|
-
intervalInMs: options === null || options ===
|
|
11015
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11016
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11017
11017
|
resourceLocationConfig: "location",
|
|
11018
11018
|
});
|
|
11019
11019
|
yield poller.poll();
|
|
@@ -11026,7 +11026,7 @@ class OracleSubscriptionsImpl {
|
|
|
11026
11026
|
* @param options The options parameters.
|
|
11027
11027
|
*/
|
|
11028
11028
|
beginUpdateAndWait(properties, options) {
|
|
11029
|
-
return tslib.__awaiter(this,
|
|
11029
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11030
11030
|
const poller = yield this.beginUpdate(properties, options);
|
|
11031
11031
|
return poller.pollUntilDone();
|
|
11032
11032
|
});
|
|
@@ -11036,17 +11036,17 @@ class OracleSubscriptionsImpl {
|
|
|
11036
11036
|
* @param options The options parameters.
|
|
11037
11037
|
*/
|
|
11038
11038
|
beginDelete(options) {
|
|
11039
|
-
return tslib.__awaiter(this,
|
|
11040
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11039
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11040
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11041
11041
|
return this.client.sendOperationRequest(args, spec);
|
|
11042
11042
|
});
|
|
11043
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11043
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11044
11044
|
var _a;
|
|
11045
11045
|
let currentRawResponse = undefined;
|
|
11046
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11046
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11047
11047
|
const callback = (rawResponse, flatResponse) => {
|
|
11048
11048
|
currentRawResponse = rawResponse;
|
|
11049
|
-
providedCallback === null || providedCallback ===
|
|
11049
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11050
11050
|
};
|
|
11051
11051
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11052
11052
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11065,8 +11065,8 @@ class OracleSubscriptionsImpl {
|
|
|
11065
11065
|
spec: deleteOperationSpec$2,
|
|
11066
11066
|
});
|
|
11067
11067
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11068
|
-
restoreFrom: options === null || options ===
|
|
11069
|
-
intervalInMs: options === null || options ===
|
|
11068
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11069
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11070
11070
|
resourceLocationConfig: "location",
|
|
11071
11071
|
});
|
|
11072
11072
|
yield poller.poll();
|
|
@@ -11078,7 +11078,7 @@ class OracleSubscriptionsImpl {
|
|
|
11078
11078
|
* @param options The options parameters.
|
|
11079
11079
|
*/
|
|
11080
11080
|
beginDeleteAndWait(options) {
|
|
11081
|
-
return tslib.__awaiter(this,
|
|
11081
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11082
11082
|
const poller = yield this.beginDelete(options);
|
|
11083
11083
|
return poller.pollUntilDone();
|
|
11084
11084
|
});
|
|
@@ -11088,17 +11088,17 @@ class OracleSubscriptionsImpl {
|
|
|
11088
11088
|
* @param options The options parameters.
|
|
11089
11089
|
*/
|
|
11090
11090
|
beginListActivationLinks(options) {
|
|
11091
|
-
return tslib.__awaiter(this,
|
|
11092
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11091
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11092
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11093
11093
|
return this.client.sendOperationRequest(args, spec);
|
|
11094
11094
|
});
|
|
11095
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11095
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11096
11096
|
var _a;
|
|
11097
11097
|
let currentRawResponse = undefined;
|
|
11098
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11098
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11099
11099
|
const callback = (rawResponse, flatResponse) => {
|
|
11100
11100
|
currentRawResponse = rawResponse;
|
|
11101
|
-
providedCallback === null || providedCallback ===
|
|
11101
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11102
11102
|
};
|
|
11103
11103
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11104
11104
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11117,8 +11117,8 @@ class OracleSubscriptionsImpl {
|
|
|
11117
11117
|
spec: listActivationLinksOperationSpec,
|
|
11118
11118
|
});
|
|
11119
11119
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11120
|
-
restoreFrom: options === null || options ===
|
|
11121
|
-
intervalInMs: options === null || options ===
|
|
11120
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11121
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11122
11122
|
resourceLocationConfig: "location",
|
|
11123
11123
|
});
|
|
11124
11124
|
yield poller.poll();
|
|
@@ -11130,7 +11130,7 @@ class OracleSubscriptionsImpl {
|
|
|
11130
11130
|
* @param options The options parameters.
|
|
11131
11131
|
*/
|
|
11132
11132
|
beginListActivationLinksAndWait(options) {
|
|
11133
|
-
return tslib.__awaiter(this,
|
|
11133
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11134
11134
|
const poller = yield this.beginListActivationLinks(options);
|
|
11135
11135
|
return poller.pollUntilDone();
|
|
11136
11136
|
});
|
|
@@ -11140,17 +11140,17 @@ class OracleSubscriptionsImpl {
|
|
|
11140
11140
|
* @param options The options parameters.
|
|
11141
11141
|
*/
|
|
11142
11142
|
beginListCloudAccountDetails(options) {
|
|
11143
|
-
return tslib.__awaiter(this,
|
|
11144
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11143
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11144
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11145
11145
|
return this.client.sendOperationRequest(args, spec);
|
|
11146
11146
|
});
|
|
11147
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11147
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11148
11148
|
var _a;
|
|
11149
11149
|
let currentRawResponse = undefined;
|
|
11150
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11150
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11151
11151
|
const callback = (rawResponse, flatResponse) => {
|
|
11152
11152
|
currentRawResponse = rawResponse;
|
|
11153
|
-
providedCallback === null || providedCallback ===
|
|
11153
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11154
11154
|
};
|
|
11155
11155
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11156
11156
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11169,8 +11169,8 @@ class OracleSubscriptionsImpl {
|
|
|
11169
11169
|
spec: listCloudAccountDetailsOperationSpec,
|
|
11170
11170
|
});
|
|
11171
11171
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11172
|
-
restoreFrom: options === null || options ===
|
|
11173
|
-
intervalInMs: options === null || options ===
|
|
11172
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11173
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11174
11174
|
resourceLocationConfig: "location",
|
|
11175
11175
|
});
|
|
11176
11176
|
yield poller.poll();
|
|
@@ -11182,7 +11182,7 @@ class OracleSubscriptionsImpl {
|
|
|
11182
11182
|
* @param options The options parameters.
|
|
11183
11183
|
*/
|
|
11184
11184
|
beginListCloudAccountDetailsAndWait(options) {
|
|
11185
|
-
return tslib.__awaiter(this,
|
|
11185
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11186
11186
|
const poller = yield this.beginListCloudAccountDetails(options);
|
|
11187
11187
|
return poller.pollUntilDone();
|
|
11188
11188
|
});
|
|
@@ -11192,17 +11192,17 @@ class OracleSubscriptionsImpl {
|
|
|
11192
11192
|
* @param options The options parameters.
|
|
11193
11193
|
*/
|
|
11194
11194
|
beginListSaasSubscriptionDetails(options) {
|
|
11195
|
-
return tslib.__awaiter(this,
|
|
11196
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11195
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11196
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11197
11197
|
return this.client.sendOperationRequest(args, spec);
|
|
11198
11198
|
});
|
|
11199
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11199
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11200
11200
|
var _a;
|
|
11201
11201
|
let currentRawResponse = undefined;
|
|
11202
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11202
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11203
11203
|
const callback = (rawResponse, flatResponse) => {
|
|
11204
11204
|
currentRawResponse = rawResponse;
|
|
11205
|
-
providedCallback === null || providedCallback ===
|
|
11205
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11206
11206
|
};
|
|
11207
11207
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11208
11208
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11221,8 +11221,8 @@ class OracleSubscriptionsImpl {
|
|
|
11221
11221
|
spec: listSaasSubscriptionDetailsOperationSpec,
|
|
11222
11222
|
});
|
|
11223
11223
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11224
|
-
restoreFrom: options === null || options ===
|
|
11225
|
-
intervalInMs: options === null || options ===
|
|
11224
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11225
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11226
11226
|
resourceLocationConfig: "location",
|
|
11227
11227
|
});
|
|
11228
11228
|
yield poller.poll();
|
|
@@ -11234,7 +11234,7 @@ class OracleSubscriptionsImpl {
|
|
|
11234
11234
|
* @param options The options parameters.
|
|
11235
11235
|
*/
|
|
11236
11236
|
beginListSaasSubscriptionDetailsAndWait(options) {
|
|
11237
|
-
return tslib.__awaiter(this,
|
|
11237
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11238
11238
|
const poller = yield this.beginListSaasSubscriptionDetails(options);
|
|
11239
11239
|
return poller.pollUntilDone();
|
|
11240
11240
|
});
|
|
@@ -11489,7 +11489,7 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11489
11489
|
return this;
|
|
11490
11490
|
},
|
|
11491
11491
|
byPage: (settings) => {
|
|
11492
|
-
if (settings === null || settings ===
|
|
11492
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11493
11493
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11494
11494
|
}
|
|
11495
11495
|
return this.listByAutonomousDatabasePagingPage(resourceGroupName, autonomousdatabasename, options, settings);
|
|
@@ -11499,7 +11499,7 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11499
11499
|
listByAutonomousDatabasePagingPage(resourceGroupName, autonomousdatabasename, options, settings) {
|
|
11500
11500
|
return tslib.__asyncGenerator(this, arguments, function* listByAutonomousDatabasePagingPage_1() {
|
|
11501
11501
|
let result;
|
|
11502
|
-
let continuationToken = settings === null || settings ===
|
|
11502
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11503
11503
|
if (!continuationToken) {
|
|
11504
11504
|
result = yield tslib.__await(this._listByAutonomousDatabase(resourceGroupName, autonomousdatabasename, options));
|
|
11505
11505
|
let page = result.value || [];
|
|
@@ -11564,17 +11564,17 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11564
11564
|
* @param options The options parameters.
|
|
11565
11565
|
*/
|
|
11566
11566
|
beginCreateOrUpdate(resourceGroupName, autonomousdatabasename, adbbackupid, resource, options) {
|
|
11567
|
-
return tslib.__awaiter(this,
|
|
11568
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11567
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11568
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11569
11569
|
return this.client.sendOperationRequest(args, spec);
|
|
11570
11570
|
});
|
|
11571
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11571
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11572
11572
|
var _a;
|
|
11573
11573
|
let currentRawResponse = undefined;
|
|
11574
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11574
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11575
11575
|
const callback = (rawResponse, flatResponse) => {
|
|
11576
11576
|
currentRawResponse = rawResponse;
|
|
11577
|
-
providedCallback === null || providedCallback ===
|
|
11577
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11578
11578
|
};
|
|
11579
11579
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11580
11580
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11599,8 +11599,8 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11599
11599
|
spec: createOrUpdateOperationSpec$1,
|
|
11600
11600
|
});
|
|
11601
11601
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11602
|
-
restoreFrom: options === null || options ===
|
|
11603
|
-
intervalInMs: options === null || options ===
|
|
11602
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11603
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11604
11604
|
resourceLocationConfig: "azure-async-operation",
|
|
11605
11605
|
});
|
|
11606
11606
|
yield poller.poll();
|
|
@@ -11616,7 +11616,7 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11616
11616
|
* @param options The options parameters.
|
|
11617
11617
|
*/
|
|
11618
11618
|
beginCreateOrUpdateAndWait(resourceGroupName, autonomousdatabasename, adbbackupid, resource, options) {
|
|
11619
|
-
return tslib.__awaiter(this,
|
|
11619
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11620
11620
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, autonomousdatabasename, adbbackupid, resource, options);
|
|
11621
11621
|
return poller.pollUntilDone();
|
|
11622
11622
|
});
|
|
@@ -11630,17 +11630,17 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11630
11630
|
* @param options The options parameters.
|
|
11631
11631
|
*/
|
|
11632
11632
|
beginUpdate(resourceGroupName, autonomousdatabasename, adbbackupid, properties, options) {
|
|
11633
|
-
return tslib.__awaiter(this,
|
|
11634
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11633
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11634
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11635
11635
|
return this.client.sendOperationRequest(args, spec);
|
|
11636
11636
|
});
|
|
11637
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11637
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11638
11638
|
var _a;
|
|
11639
11639
|
let currentRawResponse = undefined;
|
|
11640
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11640
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11641
11641
|
const callback = (rawResponse, flatResponse) => {
|
|
11642
11642
|
currentRawResponse = rawResponse;
|
|
11643
|
-
providedCallback === null || providedCallback ===
|
|
11643
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11644
11644
|
};
|
|
11645
11645
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11646
11646
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11665,8 +11665,8 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11665
11665
|
spec: updateOperationSpec,
|
|
11666
11666
|
});
|
|
11667
11667
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11668
|
-
restoreFrom: options === null || options ===
|
|
11669
|
-
intervalInMs: options === null || options ===
|
|
11668
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11669
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11670
11670
|
resourceLocationConfig: "location",
|
|
11671
11671
|
});
|
|
11672
11672
|
yield poller.poll();
|
|
@@ -11682,7 +11682,7 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11682
11682
|
* @param options The options parameters.
|
|
11683
11683
|
*/
|
|
11684
11684
|
beginUpdateAndWait(resourceGroupName, autonomousdatabasename, adbbackupid, properties, options) {
|
|
11685
|
-
return tslib.__awaiter(this,
|
|
11685
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11686
11686
|
const poller = yield this.beginUpdate(resourceGroupName, autonomousdatabasename, adbbackupid, properties, options);
|
|
11687
11687
|
return poller.pollUntilDone();
|
|
11688
11688
|
});
|
|
@@ -11695,17 +11695,17 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11695
11695
|
* @param options The options parameters.
|
|
11696
11696
|
*/
|
|
11697
11697
|
beginDelete(resourceGroupName, autonomousdatabasename, adbbackupid, options) {
|
|
11698
|
-
return tslib.__awaiter(this,
|
|
11699
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11698
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11699
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11700
11700
|
return this.client.sendOperationRequest(args, spec);
|
|
11701
11701
|
});
|
|
11702
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11702
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11703
11703
|
var _a;
|
|
11704
11704
|
let currentRawResponse = undefined;
|
|
11705
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11705
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11706
11706
|
const callback = (rawResponse, flatResponse) => {
|
|
11707
11707
|
currentRawResponse = rawResponse;
|
|
11708
|
-
providedCallback === null || providedCallback ===
|
|
11708
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11709
11709
|
};
|
|
11710
11710
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11711
11711
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11724,8 +11724,8 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11724
11724
|
spec: deleteOperationSpec$1,
|
|
11725
11725
|
});
|
|
11726
11726
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11727
|
-
restoreFrom: options === null || options ===
|
|
11728
|
-
intervalInMs: options === null || options ===
|
|
11727
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11728
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11729
11729
|
resourceLocationConfig: "location",
|
|
11730
11730
|
});
|
|
11731
11731
|
yield poller.poll();
|
|
@@ -11740,7 +11740,7 @@ class AutonomousDatabaseBackupsImpl {
|
|
|
11740
11740
|
* @param options The options parameters.
|
|
11741
11741
|
*/
|
|
11742
11742
|
beginDeleteAndWait(resourceGroupName, autonomousdatabasename, adbbackupid, options) {
|
|
11743
|
-
return tslib.__awaiter(this,
|
|
11743
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11744
11744
|
const poller = yield this.beginDelete(resourceGroupName, autonomousdatabasename, adbbackupid, options);
|
|
11745
11745
|
return poller.pollUntilDone();
|
|
11746
11746
|
});
|
|
@@ -11954,7 +11954,7 @@ class DbServersImpl {
|
|
|
11954
11954
|
return this;
|
|
11955
11955
|
},
|
|
11956
11956
|
byPage: (settings) => {
|
|
11957
|
-
if (settings === null || settings ===
|
|
11957
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11958
11958
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11959
11959
|
}
|
|
11960
11960
|
return this.listByCloudExadataInfrastructurePagingPage(resourceGroupName, cloudexadatainfrastructurename, options, settings);
|
|
@@ -11964,7 +11964,7 @@ class DbServersImpl {
|
|
|
11964
11964
|
listByCloudExadataInfrastructurePagingPage(resourceGroupName, cloudexadatainfrastructurename, options, settings) {
|
|
11965
11965
|
return tslib.__asyncGenerator(this, arguments, function* listByCloudExadataInfrastructurePagingPage_1() {
|
|
11966
11966
|
let result;
|
|
11967
|
-
let continuationToken = settings === null || settings ===
|
|
11967
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11968
11968
|
if (!continuationToken) {
|
|
11969
11969
|
result = yield tslib.__await(this._listByCloudExadataInfrastructure(resourceGroupName, cloudexadatainfrastructurename, options));
|
|
11970
11970
|
let page = result.value || [];
|
|
@@ -12137,7 +12137,7 @@ class DbNodesImpl {
|
|
|
12137
12137
|
return this;
|
|
12138
12138
|
},
|
|
12139
12139
|
byPage: (settings) => {
|
|
12140
|
-
if (settings === null || settings ===
|
|
12140
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12141
12141
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12142
12142
|
}
|
|
12143
12143
|
return this.listByCloudVmClusterPagingPage(resourceGroupName, cloudvmclustername, options, settings);
|
|
@@ -12147,7 +12147,7 @@ class DbNodesImpl {
|
|
|
12147
12147
|
listByCloudVmClusterPagingPage(resourceGroupName, cloudvmclustername, options, settings) {
|
|
12148
12148
|
return tslib.__asyncGenerator(this, arguments, function* listByCloudVmClusterPagingPage_1() {
|
|
12149
12149
|
let result;
|
|
12150
|
-
let continuationToken = settings === null || settings ===
|
|
12150
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
12151
12151
|
if (!continuationToken) {
|
|
12152
12152
|
result = yield tslib.__await(this._listByCloudVmCluster(resourceGroupName, cloudvmclustername, options));
|
|
12153
12153
|
let page = result.value || [];
|
|
@@ -12212,17 +12212,17 @@ class DbNodesImpl {
|
|
|
12212
12212
|
* @param options The options parameters.
|
|
12213
12213
|
*/
|
|
12214
12214
|
beginAction(resourceGroupName, cloudvmclustername, dbnodeocid, body, options) {
|
|
12215
|
-
return tslib.__awaiter(this,
|
|
12216
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12215
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12216
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12217
12217
|
return this.client.sendOperationRequest(args, spec);
|
|
12218
12218
|
});
|
|
12219
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12219
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12220
12220
|
var _a;
|
|
12221
12221
|
let currentRawResponse = undefined;
|
|
12222
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12222
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12223
12223
|
const callback = (rawResponse, flatResponse) => {
|
|
12224
12224
|
currentRawResponse = rawResponse;
|
|
12225
|
-
providedCallback === null || providedCallback ===
|
|
12225
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12226
12226
|
};
|
|
12227
12227
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12228
12228
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12247,8 +12247,8 @@ class DbNodesImpl {
|
|
|
12247
12247
|
spec: actionOperationSpec,
|
|
12248
12248
|
});
|
|
12249
12249
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12250
|
-
restoreFrom: options === null || options ===
|
|
12251
|
-
intervalInMs: options === null || options ===
|
|
12250
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12251
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12252
12252
|
resourceLocationConfig: "location",
|
|
12253
12253
|
});
|
|
12254
12254
|
yield poller.poll();
|
|
@@ -12264,7 +12264,7 @@ class DbNodesImpl {
|
|
|
12264
12264
|
* @param options The options parameters.
|
|
12265
12265
|
*/
|
|
12266
12266
|
beginActionAndWait(resourceGroupName, cloudvmclustername, dbnodeocid, body, options) {
|
|
12267
|
-
return tslib.__awaiter(this,
|
|
12267
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12268
12268
|
const poller = yield this.beginAction(resourceGroupName, cloudvmclustername, dbnodeocid, body, options);
|
|
12269
12269
|
return poller.pollUntilDone();
|
|
12270
12270
|
});
|
|
@@ -12413,7 +12413,7 @@ class VirtualNetworkAddressesImpl {
|
|
|
12413
12413
|
return this;
|
|
12414
12414
|
},
|
|
12415
12415
|
byPage: (settings) => {
|
|
12416
|
-
if (settings === null || settings ===
|
|
12416
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12417
12417
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12418
12418
|
}
|
|
12419
12419
|
return this.listByCloudVmClusterPagingPage(resourceGroupName, cloudvmclustername, options, settings);
|
|
@@ -12423,7 +12423,7 @@ class VirtualNetworkAddressesImpl {
|
|
|
12423
12423
|
listByCloudVmClusterPagingPage(resourceGroupName, cloudvmclustername, options, settings) {
|
|
12424
12424
|
return tslib.__asyncGenerator(this, arguments, function* listByCloudVmClusterPagingPage_1() {
|
|
12425
12425
|
let result;
|
|
12426
|
-
let continuationToken = settings === null || settings ===
|
|
12426
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
12427
12427
|
if (!continuationToken) {
|
|
12428
12428
|
result = yield tslib.__await(this._listByCloudVmCluster(resourceGroupName, cloudvmclustername, options));
|
|
12429
12429
|
let page = result.value || [];
|
|
@@ -12493,17 +12493,17 @@ class VirtualNetworkAddressesImpl {
|
|
|
12493
12493
|
* @param options The options parameters.
|
|
12494
12494
|
*/
|
|
12495
12495
|
beginCreateOrUpdate(resourceGroupName, cloudvmclustername, virtualnetworkaddressname, resource, options) {
|
|
12496
|
-
return tslib.__awaiter(this,
|
|
12497
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12496
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12497
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12498
12498
|
return this.client.sendOperationRequest(args, spec);
|
|
12499
12499
|
});
|
|
12500
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12500
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12501
12501
|
var _a;
|
|
12502
12502
|
let currentRawResponse = undefined;
|
|
12503
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12503
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12504
12504
|
const callback = (rawResponse, flatResponse) => {
|
|
12505
12505
|
currentRawResponse = rawResponse;
|
|
12506
|
-
providedCallback === null || providedCallback ===
|
|
12506
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12507
12507
|
};
|
|
12508
12508
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12509
12509
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12528,8 +12528,8 @@ class VirtualNetworkAddressesImpl {
|
|
|
12528
12528
|
spec: createOrUpdateOperationSpec,
|
|
12529
12529
|
});
|
|
12530
12530
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12531
|
-
restoreFrom: options === null || options ===
|
|
12532
|
-
intervalInMs: options === null || options ===
|
|
12531
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12532
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12533
12533
|
resourceLocationConfig: "azure-async-operation",
|
|
12534
12534
|
});
|
|
12535
12535
|
yield poller.poll();
|
|
@@ -12545,7 +12545,7 @@ class VirtualNetworkAddressesImpl {
|
|
|
12545
12545
|
* @param options The options parameters.
|
|
12546
12546
|
*/
|
|
12547
12547
|
beginCreateOrUpdateAndWait(resourceGroupName, cloudvmclustername, virtualnetworkaddressname, resource, options) {
|
|
12548
|
-
return tslib.__awaiter(this,
|
|
12548
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12549
12549
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cloudvmclustername, virtualnetworkaddressname, resource, options);
|
|
12550
12550
|
return poller.pollUntilDone();
|
|
12551
12551
|
});
|
|
@@ -12558,17 +12558,17 @@ class VirtualNetworkAddressesImpl {
|
|
|
12558
12558
|
* @param options The options parameters.
|
|
12559
12559
|
*/
|
|
12560
12560
|
beginDelete(resourceGroupName, cloudvmclustername, virtualnetworkaddressname, options) {
|
|
12561
|
-
return tslib.__awaiter(this,
|
|
12562
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12561
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12562
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12563
12563
|
return this.client.sendOperationRequest(args, spec);
|
|
12564
12564
|
});
|
|
12565
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12565
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12566
12566
|
var _a;
|
|
12567
12567
|
let currentRawResponse = undefined;
|
|
12568
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12568
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12569
12569
|
const callback = (rawResponse, flatResponse) => {
|
|
12570
12570
|
currentRawResponse = rawResponse;
|
|
12571
|
-
providedCallback === null || providedCallback ===
|
|
12571
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12572
12572
|
};
|
|
12573
12573
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12574
12574
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12592,8 +12592,8 @@ class VirtualNetworkAddressesImpl {
|
|
|
12592
12592
|
spec: deleteOperationSpec,
|
|
12593
12593
|
});
|
|
12594
12594
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12595
|
-
restoreFrom: options === null || options ===
|
|
12596
|
-
intervalInMs: options === null || options ===
|
|
12595
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12596
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12597
12597
|
resourceLocationConfig: "location",
|
|
12598
12598
|
});
|
|
12599
12599
|
yield poller.poll();
|
|
@@ -12608,7 +12608,7 @@ class VirtualNetworkAddressesImpl {
|
|
|
12608
12608
|
* @param options The options parameters.
|
|
12609
12609
|
*/
|
|
12610
12610
|
beginDeleteAndWait(resourceGroupName, cloudvmclustername, virtualnetworkaddressname, options) {
|
|
12611
|
-
return tslib.__awaiter(this,
|
|
12611
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12612
12612
|
const poller = yield this.beginDelete(resourceGroupName, cloudvmclustername, virtualnetworkaddressname, options);
|
|
12613
12613
|
return poller.pollUntilDone();
|
|
12614
12614
|
});
|
|
@@ -12791,10 +12791,10 @@ class OracleDatabaseManagementClient extends coreClient__namespace.ServiceClient
|
|
|
12791
12791
|
: `${packageDetails}`;
|
|
12792
12792
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
12793
12793
|
userAgentPrefix,
|
|
12794
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
12794
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
12795
12795
|
super(optionsWithDefaults);
|
|
12796
12796
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
12797
|
-
if ((options === null || options ===
|
|
12797
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
12798
12798
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
12799
12799
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
12800
12800
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -12808,7 +12808,7 @@ class OracleDatabaseManagementClient extends coreClient__namespace.ServiceClient
|
|
|
12808
12808
|
});
|
|
12809
12809
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
12810
12810
|
credential: credentials,
|
|
12811
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
12811
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
12812
12812
|
challengeCallbacks: {
|
|
12813
12813
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
12814
12814
|
},
|
|
@@ -12848,7 +12848,7 @@ class OracleDatabaseManagementClient extends coreClient__namespace.ServiceClient
|
|
|
12848
12848
|
const apiVersionPolicy = {
|
|
12849
12849
|
name: "CustomApiVersionPolicy",
|
|
12850
12850
|
sendRequest(request, next) {
|
|
12851
|
-
return tslib.__awaiter(this,
|
|
12851
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12852
12852
|
const param = request.url.split("?");
|
|
12853
12853
|
if (param.length > 1) {
|
|
12854
12854
|
const newParams = param[1].split("&").map((item) => {
|