@azure/arm-postgresql-flexible 8.0.0-alpha.20250106.1 → 8.0.0-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 +210 -210
- 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
|
}
|
|
@@ -4918,7 +4918,7 @@ function createLroSpec(inputs) {
|
|
|
4918
4918
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
4919
4919
|
sendPollRequest: (path, options) => {
|
|
4920
4920
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
4921
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
4921
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
4922
4922
|
},
|
|
4923
4923
|
};
|
|
4924
4924
|
}
|
|
@@ -4956,7 +4956,7 @@ class AdministratorsImpl {
|
|
|
4956
4956
|
return this;
|
|
4957
4957
|
},
|
|
4958
4958
|
byPage: (settings) => {
|
|
4959
|
-
if (settings === null || settings ===
|
|
4959
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4960
4960
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4961
4961
|
}
|
|
4962
4962
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -4966,7 +4966,7 @@ class AdministratorsImpl {
|
|
|
4966
4966
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
4967
4967
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
4968
4968
|
let result;
|
|
4969
|
-
let continuationToken = settings === null || settings ===
|
|
4969
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4970
4970
|
if (!continuationToken) {
|
|
4971
4971
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
4972
4972
|
let page = result.value || [];
|
|
@@ -5012,17 +5012,17 @@ class AdministratorsImpl {
|
|
|
5012
5012
|
* @param options The options parameters.
|
|
5013
5013
|
*/
|
|
5014
5014
|
beginCreate(resourceGroupName, serverName, objectId, parameters, options) {
|
|
5015
|
-
return tslib.__awaiter(this,
|
|
5016
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5015
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5016
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5017
5017
|
return this.client.sendOperationRequest(args, spec);
|
|
5018
5018
|
});
|
|
5019
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5019
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5020
5020
|
var _a;
|
|
5021
5021
|
let currentRawResponse = undefined;
|
|
5022
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5022
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5023
5023
|
const callback = (rawResponse, flatResponse) => {
|
|
5024
5024
|
currentRawResponse = rawResponse;
|
|
5025
|
-
providedCallback === null || providedCallback ===
|
|
5025
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5026
5026
|
};
|
|
5027
5027
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5028
5028
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5041,8 +5041,8 @@ class AdministratorsImpl {
|
|
|
5041
5041
|
spec: createOperationSpec$4,
|
|
5042
5042
|
});
|
|
5043
5043
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5044
|
-
restoreFrom: options === null || options ===
|
|
5045
|
-
intervalInMs: options === null || options ===
|
|
5044
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5045
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5046
5046
|
resourceLocationConfig: "azure-async-operation",
|
|
5047
5047
|
});
|
|
5048
5048
|
yield poller.poll();
|
|
@@ -5058,7 +5058,7 @@ class AdministratorsImpl {
|
|
|
5058
5058
|
* @param options The options parameters.
|
|
5059
5059
|
*/
|
|
5060
5060
|
beginCreateAndWait(resourceGroupName, serverName, objectId, parameters, options) {
|
|
5061
|
-
return tslib.__awaiter(this,
|
|
5061
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5062
5062
|
const poller = yield this.beginCreate(resourceGroupName, serverName, objectId, parameters, options);
|
|
5063
5063
|
return poller.pollUntilDone();
|
|
5064
5064
|
});
|
|
@@ -5071,17 +5071,17 @@ class AdministratorsImpl {
|
|
|
5071
5071
|
* @param options The options parameters.
|
|
5072
5072
|
*/
|
|
5073
5073
|
beginDelete(resourceGroupName, serverName, objectId, options) {
|
|
5074
|
-
return tslib.__awaiter(this,
|
|
5075
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5074
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5075
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5076
5076
|
return this.client.sendOperationRequest(args, spec);
|
|
5077
5077
|
});
|
|
5078
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5078
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5079
5079
|
var _a;
|
|
5080
5080
|
let currentRawResponse = undefined;
|
|
5081
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5081
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5082
5082
|
const callback = (rawResponse, flatResponse) => {
|
|
5083
5083
|
currentRawResponse = rawResponse;
|
|
5084
|
-
providedCallback === null || providedCallback ===
|
|
5084
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5085
5085
|
};
|
|
5086
5086
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5087
5087
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5100,8 +5100,8 @@ class AdministratorsImpl {
|
|
|
5100
5100
|
spec: deleteOperationSpec$6,
|
|
5101
5101
|
});
|
|
5102
5102
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5103
|
-
restoreFrom: options === null || options ===
|
|
5104
|
-
intervalInMs: options === null || options ===
|
|
5103
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5104
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5105
5105
|
resourceLocationConfig: "location",
|
|
5106
5106
|
});
|
|
5107
5107
|
yield poller.poll();
|
|
@@ -5116,7 +5116,7 @@ class AdministratorsImpl {
|
|
|
5116
5116
|
* @param options The options parameters.
|
|
5117
5117
|
*/
|
|
5118
5118
|
beginDeleteAndWait(resourceGroupName, serverName, objectId, options) {
|
|
5119
|
-
return tslib.__awaiter(this,
|
|
5119
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5120
5120
|
const poller = yield this.beginDelete(resourceGroupName, serverName, objectId, options);
|
|
5121
5121
|
return poller.pollUntilDone();
|
|
5122
5122
|
});
|
|
@@ -5307,7 +5307,7 @@ class BackupsImpl {
|
|
|
5307
5307
|
return this;
|
|
5308
5308
|
},
|
|
5309
5309
|
byPage: (settings) => {
|
|
5310
|
-
if (settings === null || settings ===
|
|
5310
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5311
5311
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5312
5312
|
}
|
|
5313
5313
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -5317,7 +5317,7 @@ class BackupsImpl {
|
|
|
5317
5317
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
5318
5318
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
5319
5319
|
let result;
|
|
5320
|
-
let continuationToken = settings === null || settings ===
|
|
5320
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5321
5321
|
if (!continuationToken) {
|
|
5322
5322
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
5323
5323
|
let page = result.value || [];
|
|
@@ -5483,7 +5483,7 @@ class LocationBasedCapabilitiesImpl {
|
|
|
5483
5483
|
return this;
|
|
5484
5484
|
},
|
|
5485
5485
|
byPage: (settings) => {
|
|
5486
|
-
if (settings === null || settings ===
|
|
5486
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5487
5487
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5488
5488
|
}
|
|
5489
5489
|
return this.executePagingPage(locationName, options, settings);
|
|
@@ -5493,7 +5493,7 @@ class LocationBasedCapabilitiesImpl {
|
|
|
5493
5493
|
executePagingPage(locationName, options, settings) {
|
|
5494
5494
|
return tslib.__asyncGenerator(this, arguments, function* executePagingPage_1() {
|
|
5495
5495
|
let result;
|
|
5496
|
-
let continuationToken = settings === null || settings ===
|
|
5496
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5497
5497
|
if (!continuationToken) {
|
|
5498
5498
|
result = yield tslib.__await(this._execute(locationName, options));
|
|
5499
5499
|
let page = result.value || [];
|
|
@@ -5624,7 +5624,7 @@ class ServerCapabilitiesImpl {
|
|
|
5624
5624
|
return this;
|
|
5625
5625
|
},
|
|
5626
5626
|
byPage: (settings) => {
|
|
5627
|
-
if (settings === null || settings ===
|
|
5627
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5628
5628
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5629
5629
|
}
|
|
5630
5630
|
return this.listPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -5634,7 +5634,7 @@ class ServerCapabilitiesImpl {
|
|
|
5634
5634
|
listPagingPage(resourceGroupName, serverName, options, settings) {
|
|
5635
5635
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5636
5636
|
let result;
|
|
5637
|
-
let continuationToken = settings === null || settings ===
|
|
5637
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5638
5638
|
if (!continuationToken) {
|
|
5639
5639
|
result = yield tslib.__await(this._list(resourceGroupName, serverName, options));
|
|
5640
5640
|
let page = result.value || [];
|
|
@@ -5866,7 +5866,7 @@ class ConfigurationsImpl {
|
|
|
5866
5866
|
return this;
|
|
5867
5867
|
},
|
|
5868
5868
|
byPage: (settings) => {
|
|
5869
|
-
if (settings === null || settings ===
|
|
5869
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5870
5870
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5871
5871
|
}
|
|
5872
5872
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -5876,7 +5876,7 @@ class ConfigurationsImpl {
|
|
|
5876
5876
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
5877
5877
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
5878
5878
|
let result;
|
|
5879
|
-
let continuationToken = settings === null || settings ===
|
|
5879
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5880
5880
|
if (!continuationToken) {
|
|
5881
5881
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
5882
5882
|
let page = result.value || [];
|
|
@@ -5941,17 +5941,17 @@ class ConfigurationsImpl {
|
|
|
5941
5941
|
* @param options The options parameters.
|
|
5942
5942
|
*/
|
|
5943
5943
|
beginUpdate(resourceGroupName, serverName, configurationName, parameters, options) {
|
|
5944
|
-
return tslib.__awaiter(this,
|
|
5945
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5944
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5945
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5946
5946
|
return this.client.sendOperationRequest(args, spec);
|
|
5947
5947
|
});
|
|
5948
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5948
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5949
5949
|
var _a;
|
|
5950
5950
|
let currentRawResponse = undefined;
|
|
5951
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5951
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5952
5952
|
const callback = (rawResponse, flatResponse) => {
|
|
5953
5953
|
currentRawResponse = rawResponse;
|
|
5954
|
-
providedCallback === null || providedCallback ===
|
|
5954
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5955
5955
|
};
|
|
5956
5956
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5957
5957
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5976,8 +5976,8 @@ class ConfigurationsImpl {
|
|
|
5976
5976
|
spec: updateOperationSpec$4,
|
|
5977
5977
|
});
|
|
5978
5978
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5979
|
-
restoreFrom: options === null || options ===
|
|
5980
|
-
intervalInMs: options === null || options ===
|
|
5979
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5980
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5981
5981
|
resourceLocationConfig: "azure-async-operation",
|
|
5982
5982
|
});
|
|
5983
5983
|
yield poller.poll();
|
|
@@ -5993,7 +5993,7 @@ class ConfigurationsImpl {
|
|
|
5993
5993
|
* @param options The options parameters.
|
|
5994
5994
|
*/
|
|
5995
5995
|
beginUpdateAndWait(resourceGroupName, serverName, configurationName, parameters, options) {
|
|
5996
|
-
return tslib.__awaiter(this,
|
|
5996
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5997
5997
|
const poller = yield this.beginUpdate(resourceGroupName, serverName, configurationName, parameters, options);
|
|
5998
5998
|
return poller.pollUntilDone();
|
|
5999
5999
|
});
|
|
@@ -6007,17 +6007,17 @@ class ConfigurationsImpl {
|
|
|
6007
6007
|
* @param options The options parameters.
|
|
6008
6008
|
*/
|
|
6009
6009
|
beginPut(resourceGroupName, serverName, configurationName, parameters, options) {
|
|
6010
|
-
return tslib.__awaiter(this,
|
|
6011
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6010
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6011
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6012
6012
|
return this.client.sendOperationRequest(args, spec);
|
|
6013
6013
|
});
|
|
6014
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6014
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6015
6015
|
var _a;
|
|
6016
6016
|
let currentRawResponse = undefined;
|
|
6017
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6017
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6018
6018
|
const callback = (rawResponse, flatResponse) => {
|
|
6019
6019
|
currentRawResponse = rawResponse;
|
|
6020
|
-
providedCallback === null || providedCallback ===
|
|
6020
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6021
6021
|
};
|
|
6022
6022
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6023
6023
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6042,8 +6042,8 @@ class ConfigurationsImpl {
|
|
|
6042
6042
|
spec: putOperationSpec,
|
|
6043
6043
|
});
|
|
6044
6044
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6045
|
-
restoreFrom: options === null || options ===
|
|
6046
|
-
intervalInMs: options === null || options ===
|
|
6045
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6046
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6047
6047
|
resourceLocationConfig: "location",
|
|
6048
6048
|
});
|
|
6049
6049
|
yield poller.poll();
|
|
@@ -6059,7 +6059,7 @@ class ConfigurationsImpl {
|
|
|
6059
6059
|
* @param options The options parameters.
|
|
6060
6060
|
*/
|
|
6061
6061
|
beginPutAndWait(resourceGroupName, serverName, configurationName, parameters, options) {
|
|
6062
|
-
return tslib.__awaiter(this,
|
|
6062
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6063
6063
|
const poller = yield this.beginPut(resourceGroupName, serverName, configurationName, parameters, options);
|
|
6064
6064
|
return poller.pollUntilDone();
|
|
6065
6065
|
});
|
|
@@ -6241,7 +6241,7 @@ class DatabasesImpl {
|
|
|
6241
6241
|
return this;
|
|
6242
6242
|
},
|
|
6243
6243
|
byPage: (settings) => {
|
|
6244
|
-
if (settings === null || settings ===
|
|
6244
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6245
6245
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6246
6246
|
}
|
|
6247
6247
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -6251,7 +6251,7 @@ class DatabasesImpl {
|
|
|
6251
6251
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
6252
6252
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
6253
6253
|
let result;
|
|
6254
|
-
let continuationToken = settings === null || settings ===
|
|
6254
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6255
6255
|
if (!continuationToken) {
|
|
6256
6256
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
6257
6257
|
let page = result.value || [];
|
|
@@ -6297,17 +6297,17 @@ class DatabasesImpl {
|
|
|
6297
6297
|
* @param options The options parameters.
|
|
6298
6298
|
*/
|
|
6299
6299
|
beginCreate(resourceGroupName, serverName, databaseName, parameters, options) {
|
|
6300
|
-
return tslib.__awaiter(this,
|
|
6301
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6300
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6301
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6302
6302
|
return this.client.sendOperationRequest(args, spec);
|
|
6303
6303
|
});
|
|
6304
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6304
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6305
6305
|
var _a;
|
|
6306
6306
|
let currentRawResponse = undefined;
|
|
6307
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6307
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6308
6308
|
const callback = (rawResponse, flatResponse) => {
|
|
6309
6309
|
currentRawResponse = rawResponse;
|
|
6310
|
-
providedCallback === null || providedCallback ===
|
|
6310
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6311
6311
|
};
|
|
6312
6312
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6313
6313
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6332,8 +6332,8 @@ class DatabasesImpl {
|
|
|
6332
6332
|
spec: createOperationSpec$3,
|
|
6333
6333
|
});
|
|
6334
6334
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6335
|
-
restoreFrom: options === null || options ===
|
|
6336
|
-
intervalInMs: options === null || options ===
|
|
6335
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6336
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6337
6337
|
resourceLocationConfig: "azure-async-operation",
|
|
6338
6338
|
});
|
|
6339
6339
|
yield poller.poll();
|
|
@@ -6349,7 +6349,7 @@ class DatabasesImpl {
|
|
|
6349
6349
|
* @param options The options parameters.
|
|
6350
6350
|
*/
|
|
6351
6351
|
beginCreateAndWait(resourceGroupName, serverName, databaseName, parameters, options) {
|
|
6352
|
-
return tslib.__awaiter(this,
|
|
6352
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6353
6353
|
const poller = yield this.beginCreate(resourceGroupName, serverName, databaseName, parameters, options);
|
|
6354
6354
|
return poller.pollUntilDone();
|
|
6355
6355
|
});
|
|
@@ -6362,17 +6362,17 @@ class DatabasesImpl {
|
|
|
6362
6362
|
* @param options The options parameters.
|
|
6363
6363
|
*/
|
|
6364
6364
|
beginDelete(resourceGroupName, serverName, databaseName, options) {
|
|
6365
|
-
return tslib.__awaiter(this,
|
|
6366
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6365
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6366
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6367
6367
|
return this.client.sendOperationRequest(args, spec);
|
|
6368
6368
|
});
|
|
6369
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6369
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6370
6370
|
var _a;
|
|
6371
6371
|
let currentRawResponse = undefined;
|
|
6372
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6372
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6373
6373
|
const callback = (rawResponse, flatResponse) => {
|
|
6374
6374
|
currentRawResponse = rawResponse;
|
|
6375
|
-
providedCallback === null || providedCallback ===
|
|
6375
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6376
6376
|
};
|
|
6377
6377
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6378
6378
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6391,8 +6391,8 @@ class DatabasesImpl {
|
|
|
6391
6391
|
spec: deleteOperationSpec$5,
|
|
6392
6392
|
});
|
|
6393
6393
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6394
|
-
restoreFrom: options === null || options ===
|
|
6395
|
-
intervalInMs: options === null || options ===
|
|
6394
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6395
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6396
6396
|
resourceLocationConfig: "location",
|
|
6397
6397
|
});
|
|
6398
6398
|
yield poller.poll();
|
|
@@ -6407,7 +6407,7 @@ class DatabasesImpl {
|
|
|
6407
6407
|
* @param options The options parameters.
|
|
6408
6408
|
*/
|
|
6409
6409
|
beginDeleteAndWait(resourceGroupName, serverName, databaseName, options) {
|
|
6410
|
-
return tslib.__awaiter(this,
|
|
6410
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6411
6411
|
const poller = yield this.beginDelete(resourceGroupName, serverName, databaseName, options);
|
|
6412
6412
|
return poller.pollUntilDone();
|
|
6413
6413
|
});
|
|
@@ -6598,7 +6598,7 @@ class FirewallRulesImpl {
|
|
|
6598
6598
|
return this;
|
|
6599
6599
|
},
|
|
6600
6600
|
byPage: (settings) => {
|
|
6601
|
-
if (settings === null || settings ===
|
|
6601
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6602
6602
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6603
6603
|
}
|
|
6604
6604
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -6608,7 +6608,7 @@ class FirewallRulesImpl {
|
|
|
6608
6608
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
6609
6609
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
6610
6610
|
let result;
|
|
6611
|
-
let continuationToken = settings === null || settings ===
|
|
6611
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6612
6612
|
if (!continuationToken) {
|
|
6613
6613
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
6614
6614
|
let page = result.value || [];
|
|
@@ -6654,17 +6654,17 @@ class FirewallRulesImpl {
|
|
|
6654
6654
|
* @param options The options parameters.
|
|
6655
6655
|
*/
|
|
6656
6656
|
beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options) {
|
|
6657
|
-
return tslib.__awaiter(this,
|
|
6658
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6657
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6658
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6659
6659
|
return this.client.sendOperationRequest(args, spec);
|
|
6660
6660
|
});
|
|
6661
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6661
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6662
6662
|
var _a;
|
|
6663
6663
|
let currentRawResponse = undefined;
|
|
6664
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6664
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6665
6665
|
const callback = (rawResponse, flatResponse) => {
|
|
6666
6666
|
currentRawResponse = rawResponse;
|
|
6667
|
-
providedCallback === null || providedCallback ===
|
|
6667
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6668
6668
|
};
|
|
6669
6669
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6670
6670
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6689,8 +6689,8 @@ class FirewallRulesImpl {
|
|
|
6689
6689
|
spec: createOrUpdateOperationSpec$1,
|
|
6690
6690
|
});
|
|
6691
6691
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6692
|
-
restoreFrom: options === null || options ===
|
|
6693
|
-
intervalInMs: options === null || options ===
|
|
6692
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6693
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6694
6694
|
resourceLocationConfig: "azure-async-operation",
|
|
6695
6695
|
});
|
|
6696
6696
|
yield poller.poll();
|
|
@@ -6706,7 +6706,7 @@ class FirewallRulesImpl {
|
|
|
6706
6706
|
* @param options The options parameters.
|
|
6707
6707
|
*/
|
|
6708
6708
|
beginCreateOrUpdateAndWait(resourceGroupName, serverName, firewallRuleName, parameters, options) {
|
|
6709
|
-
return tslib.__awaiter(this,
|
|
6709
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6710
6710
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options);
|
|
6711
6711
|
return poller.pollUntilDone();
|
|
6712
6712
|
});
|
|
@@ -6719,17 +6719,17 @@ class FirewallRulesImpl {
|
|
|
6719
6719
|
* @param options The options parameters.
|
|
6720
6720
|
*/
|
|
6721
6721
|
beginDelete(resourceGroupName, serverName, firewallRuleName, options) {
|
|
6722
|
-
return tslib.__awaiter(this,
|
|
6723
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6722
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6723
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6724
6724
|
return this.client.sendOperationRequest(args, spec);
|
|
6725
6725
|
});
|
|
6726
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6726
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6727
6727
|
var _a;
|
|
6728
6728
|
let currentRawResponse = undefined;
|
|
6729
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6729
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6730
6730
|
const callback = (rawResponse, flatResponse) => {
|
|
6731
6731
|
currentRawResponse = rawResponse;
|
|
6732
|
-
providedCallback === null || providedCallback ===
|
|
6732
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6733
6733
|
};
|
|
6734
6734
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6735
6735
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6748,8 +6748,8 @@ class FirewallRulesImpl {
|
|
|
6748
6748
|
spec: deleteOperationSpec$4,
|
|
6749
6749
|
});
|
|
6750
6750
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6751
|
-
restoreFrom: options === null || options ===
|
|
6752
|
-
intervalInMs: options === null || options ===
|
|
6751
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6752
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6753
6753
|
resourceLocationConfig: "location",
|
|
6754
6754
|
});
|
|
6755
6755
|
yield poller.poll();
|
|
@@ -6764,7 +6764,7 @@ class FirewallRulesImpl {
|
|
|
6764
6764
|
* @param options The options parameters.
|
|
6765
6765
|
*/
|
|
6766
6766
|
beginDeleteAndWait(resourceGroupName, serverName, firewallRuleName, options) {
|
|
6767
|
-
return tslib.__awaiter(this,
|
|
6767
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6768
6768
|
const poller = yield this.beginDelete(resourceGroupName, serverName, firewallRuleName, options);
|
|
6769
6769
|
return poller.pollUntilDone();
|
|
6770
6770
|
});
|
|
@@ -6954,7 +6954,7 @@ class ServersImpl {
|
|
|
6954
6954
|
return this;
|
|
6955
6955
|
},
|
|
6956
6956
|
byPage: (settings) => {
|
|
6957
|
-
if (settings === null || settings ===
|
|
6957
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6958
6958
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6959
6959
|
}
|
|
6960
6960
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6964,7 +6964,7 @@ class ServersImpl {
|
|
|
6964
6964
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6965
6965
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6966
6966
|
let result;
|
|
6967
|
-
let continuationToken = settings === null || settings ===
|
|
6967
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6968
6968
|
if (!continuationToken) {
|
|
6969
6969
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6970
6970
|
let page = result.value || [];
|
|
@@ -7015,7 +7015,7 @@ class ServersImpl {
|
|
|
7015
7015
|
return this;
|
|
7016
7016
|
},
|
|
7017
7017
|
byPage: (settings) => {
|
|
7018
|
-
if (settings === null || settings ===
|
|
7018
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7019
7019
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7020
7020
|
}
|
|
7021
7021
|
return this.listPagingPage(options, settings);
|
|
@@ -7025,7 +7025,7 @@ class ServersImpl {
|
|
|
7025
7025
|
listPagingPage(options, settings) {
|
|
7026
7026
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7027
7027
|
let result;
|
|
7028
|
-
let continuationToken = settings === null || settings ===
|
|
7028
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7029
7029
|
if (!continuationToken) {
|
|
7030
7030
|
result = yield tslib.__await(this._list(options));
|
|
7031
7031
|
let page = result.value || [];
|
|
@@ -7070,17 +7070,17 @@ class ServersImpl {
|
|
|
7070
7070
|
* @param options The options parameters.
|
|
7071
7071
|
*/
|
|
7072
7072
|
beginCreate(resourceGroupName, serverName, parameters, options) {
|
|
7073
|
-
return tslib.__awaiter(this,
|
|
7074
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7073
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7074
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7075
7075
|
return this.client.sendOperationRequest(args, spec);
|
|
7076
7076
|
});
|
|
7077
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7077
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7078
7078
|
var _a;
|
|
7079
7079
|
let currentRawResponse = undefined;
|
|
7080
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7080
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7081
7081
|
const callback = (rawResponse, flatResponse) => {
|
|
7082
7082
|
currentRawResponse = rawResponse;
|
|
7083
|
-
providedCallback === null || providedCallback ===
|
|
7083
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7084
7084
|
};
|
|
7085
7085
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7086
7086
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7099,8 +7099,8 @@ class ServersImpl {
|
|
|
7099
7099
|
spec: createOperationSpec$2,
|
|
7100
7100
|
});
|
|
7101
7101
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7102
|
-
restoreFrom: options === null || options ===
|
|
7103
|
-
intervalInMs: options === null || options ===
|
|
7102
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7103
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7104
7104
|
resourceLocationConfig: "azure-async-operation",
|
|
7105
7105
|
});
|
|
7106
7106
|
yield poller.poll();
|
|
@@ -7115,7 +7115,7 @@ class ServersImpl {
|
|
|
7115
7115
|
* @param options The options parameters.
|
|
7116
7116
|
*/
|
|
7117
7117
|
beginCreateAndWait(resourceGroupName, serverName, parameters, options) {
|
|
7118
|
-
return tslib.__awaiter(this,
|
|
7118
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7119
7119
|
const poller = yield this.beginCreate(resourceGroupName, serverName, parameters, options);
|
|
7120
7120
|
return poller.pollUntilDone();
|
|
7121
7121
|
});
|
|
@@ -7129,17 +7129,17 @@ class ServersImpl {
|
|
|
7129
7129
|
* @param options The options parameters.
|
|
7130
7130
|
*/
|
|
7131
7131
|
beginUpdate(resourceGroupName, serverName, parameters, options) {
|
|
7132
|
-
return tslib.__awaiter(this,
|
|
7133
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7132
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7133
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7134
7134
|
return this.client.sendOperationRequest(args, spec);
|
|
7135
7135
|
});
|
|
7136
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7136
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7137
7137
|
var _a;
|
|
7138
7138
|
let currentRawResponse = undefined;
|
|
7139
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7139
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7140
7140
|
const callback = (rawResponse, flatResponse) => {
|
|
7141
7141
|
currentRawResponse = rawResponse;
|
|
7142
|
-
providedCallback === null || providedCallback ===
|
|
7142
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7143
7143
|
};
|
|
7144
7144
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7145
7145
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7158,8 +7158,8 @@ class ServersImpl {
|
|
|
7158
7158
|
spec: updateOperationSpec$3,
|
|
7159
7159
|
});
|
|
7160
7160
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7161
|
-
restoreFrom: options === null || options ===
|
|
7162
|
-
intervalInMs: options === null || options ===
|
|
7161
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7162
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7163
7163
|
resourceLocationConfig: "azure-async-operation",
|
|
7164
7164
|
});
|
|
7165
7165
|
yield poller.poll();
|
|
@@ -7175,7 +7175,7 @@ class ServersImpl {
|
|
|
7175
7175
|
* @param options The options parameters.
|
|
7176
7176
|
*/
|
|
7177
7177
|
beginUpdateAndWait(resourceGroupName, serverName, parameters, options) {
|
|
7178
|
-
return tslib.__awaiter(this,
|
|
7178
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7179
7179
|
const poller = yield this.beginUpdate(resourceGroupName, serverName, parameters, options);
|
|
7180
7180
|
return poller.pollUntilDone();
|
|
7181
7181
|
});
|
|
@@ -7187,17 +7187,17 @@ class ServersImpl {
|
|
|
7187
7187
|
* @param options The options parameters.
|
|
7188
7188
|
*/
|
|
7189
7189
|
beginDelete(resourceGroupName, serverName, options) {
|
|
7190
|
-
return tslib.__awaiter(this,
|
|
7191
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7190
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7191
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7192
7192
|
return this.client.sendOperationRequest(args, spec);
|
|
7193
7193
|
});
|
|
7194
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7194
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7195
7195
|
var _a;
|
|
7196
7196
|
let currentRawResponse = undefined;
|
|
7197
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7197
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7198
7198
|
const callback = (rawResponse, flatResponse) => {
|
|
7199
7199
|
currentRawResponse = rawResponse;
|
|
7200
|
-
providedCallback === null || providedCallback ===
|
|
7200
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7201
7201
|
};
|
|
7202
7202
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7203
7203
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7216,8 +7216,8 @@ class ServersImpl {
|
|
|
7216
7216
|
spec: deleteOperationSpec$3,
|
|
7217
7217
|
});
|
|
7218
7218
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7219
|
-
restoreFrom: options === null || options ===
|
|
7220
|
-
intervalInMs: options === null || options ===
|
|
7219
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7220
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7221
7221
|
resourceLocationConfig: "location",
|
|
7222
7222
|
});
|
|
7223
7223
|
yield poller.poll();
|
|
@@ -7231,7 +7231,7 @@ class ServersImpl {
|
|
|
7231
7231
|
* @param options The options parameters.
|
|
7232
7232
|
*/
|
|
7233
7233
|
beginDeleteAndWait(resourceGroupName, serverName, options) {
|
|
7234
|
-
return tslib.__awaiter(this,
|
|
7234
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7235
7235
|
const poller = yield this.beginDelete(resourceGroupName, serverName, options);
|
|
7236
7236
|
return poller.pollUntilDone();
|
|
7237
7237
|
});
|
|
@@ -7267,17 +7267,17 @@ class ServersImpl {
|
|
|
7267
7267
|
* @param options The options parameters.
|
|
7268
7268
|
*/
|
|
7269
7269
|
beginRestart(resourceGroupName, serverName, options) {
|
|
7270
|
-
return tslib.__awaiter(this,
|
|
7271
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7270
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7271
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7272
7272
|
return this.client.sendOperationRequest(args, spec);
|
|
7273
7273
|
});
|
|
7274
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7274
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7275
7275
|
var _a;
|
|
7276
7276
|
let currentRawResponse = undefined;
|
|
7277
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7277
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7278
7278
|
const callback = (rawResponse, flatResponse) => {
|
|
7279
7279
|
currentRawResponse = rawResponse;
|
|
7280
|
-
providedCallback === null || providedCallback ===
|
|
7280
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7281
7281
|
};
|
|
7282
7282
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7283
7283
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7296,8 +7296,8 @@ class ServersImpl {
|
|
|
7296
7296
|
spec: restartOperationSpec,
|
|
7297
7297
|
});
|
|
7298
7298
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7299
|
-
restoreFrom: options === null || options ===
|
|
7300
|
-
intervalInMs: options === null || options ===
|
|
7299
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7300
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7301
7301
|
resourceLocationConfig: "location",
|
|
7302
7302
|
});
|
|
7303
7303
|
yield poller.poll();
|
|
@@ -7311,7 +7311,7 @@ class ServersImpl {
|
|
|
7311
7311
|
* @param options The options parameters.
|
|
7312
7312
|
*/
|
|
7313
7313
|
beginRestartAndWait(resourceGroupName, serverName, options) {
|
|
7314
|
-
return tslib.__awaiter(this,
|
|
7314
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7315
7315
|
const poller = yield this.beginRestart(resourceGroupName, serverName, options);
|
|
7316
7316
|
return poller.pollUntilDone();
|
|
7317
7317
|
});
|
|
@@ -7323,17 +7323,17 @@ class ServersImpl {
|
|
|
7323
7323
|
* @param options The options parameters.
|
|
7324
7324
|
*/
|
|
7325
7325
|
beginStart(resourceGroupName, serverName, options) {
|
|
7326
|
-
return tslib.__awaiter(this,
|
|
7327
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7326
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7327
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7328
7328
|
return this.client.sendOperationRequest(args, spec);
|
|
7329
7329
|
});
|
|
7330
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7330
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7331
7331
|
var _a;
|
|
7332
7332
|
let currentRawResponse = undefined;
|
|
7333
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7333
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7334
7334
|
const callback = (rawResponse, flatResponse) => {
|
|
7335
7335
|
currentRawResponse = rawResponse;
|
|
7336
|
-
providedCallback === null || providedCallback ===
|
|
7336
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7337
7337
|
};
|
|
7338
7338
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7339
7339
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7352,8 +7352,8 @@ class ServersImpl {
|
|
|
7352
7352
|
spec: startOperationSpec,
|
|
7353
7353
|
});
|
|
7354
7354
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7355
|
-
restoreFrom: options === null || options ===
|
|
7356
|
-
intervalInMs: options === null || options ===
|
|
7355
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7356
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7357
7357
|
resourceLocationConfig: "location",
|
|
7358
7358
|
});
|
|
7359
7359
|
yield poller.poll();
|
|
@@ -7367,7 +7367,7 @@ class ServersImpl {
|
|
|
7367
7367
|
* @param options The options parameters.
|
|
7368
7368
|
*/
|
|
7369
7369
|
beginStartAndWait(resourceGroupName, serverName, options) {
|
|
7370
|
-
return tslib.__awaiter(this,
|
|
7370
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7371
7371
|
const poller = yield this.beginStart(resourceGroupName, serverName, options);
|
|
7372
7372
|
return poller.pollUntilDone();
|
|
7373
7373
|
});
|
|
@@ -7379,17 +7379,17 @@ class ServersImpl {
|
|
|
7379
7379
|
* @param options The options parameters.
|
|
7380
7380
|
*/
|
|
7381
7381
|
beginStop(resourceGroupName, serverName, options) {
|
|
7382
|
-
return tslib.__awaiter(this,
|
|
7383
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7382
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7383
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7384
7384
|
return this.client.sendOperationRequest(args, spec);
|
|
7385
7385
|
});
|
|
7386
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7386
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7387
7387
|
var _a;
|
|
7388
7388
|
let currentRawResponse = undefined;
|
|
7389
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7389
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7390
7390
|
const callback = (rawResponse, flatResponse) => {
|
|
7391
7391
|
currentRawResponse = rawResponse;
|
|
7392
|
-
providedCallback === null || providedCallback ===
|
|
7392
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7393
7393
|
};
|
|
7394
7394
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7395
7395
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7408,8 +7408,8 @@ class ServersImpl {
|
|
|
7408
7408
|
spec: stopOperationSpec,
|
|
7409
7409
|
});
|
|
7410
7410
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7411
|
-
restoreFrom: options === null || options ===
|
|
7412
|
-
intervalInMs: options === null || options ===
|
|
7411
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7412
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7413
7413
|
resourceLocationConfig: "location",
|
|
7414
7414
|
});
|
|
7415
7415
|
yield poller.poll();
|
|
@@ -7423,7 +7423,7 @@ class ServersImpl {
|
|
|
7423
7423
|
* @param options The options parameters.
|
|
7424
7424
|
*/
|
|
7425
7425
|
beginStopAndWait(resourceGroupName, serverName, options) {
|
|
7426
|
-
return tslib.__awaiter(this,
|
|
7426
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7427
7427
|
const poller = yield this.beginStop(resourceGroupName, serverName, options);
|
|
7428
7428
|
return poller.pollUntilDone();
|
|
7429
7429
|
});
|
|
@@ -7734,17 +7734,17 @@ class FlexibleServerImpl {
|
|
|
7734
7734
|
* @param options The options parameters.
|
|
7735
7735
|
*/
|
|
7736
7736
|
beginStartLtrBackup(resourceGroupName, serverName, parameters, options) {
|
|
7737
|
-
return tslib.__awaiter(this,
|
|
7738
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7737
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7738
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7739
7739
|
return this.client.sendOperationRequest(args, spec);
|
|
7740
7740
|
});
|
|
7741
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7741
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7742
7742
|
var _a;
|
|
7743
7743
|
let currentRawResponse = undefined;
|
|
7744
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7744
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7745
7745
|
const callback = (rawResponse, flatResponse) => {
|
|
7746
7746
|
currentRawResponse = rawResponse;
|
|
7747
|
-
providedCallback === null || providedCallback ===
|
|
7747
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7748
7748
|
};
|
|
7749
7749
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7750
7750
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7763,8 +7763,8 @@ class FlexibleServerImpl {
|
|
|
7763
7763
|
spec: startLtrBackupOperationSpec,
|
|
7764
7764
|
});
|
|
7765
7765
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7766
|
-
restoreFrom: options === null || options ===
|
|
7767
|
-
intervalInMs: options === null || options ===
|
|
7766
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7767
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7768
7768
|
resourceLocationConfig: "location",
|
|
7769
7769
|
});
|
|
7770
7770
|
yield poller.poll();
|
|
@@ -7779,7 +7779,7 @@ class FlexibleServerImpl {
|
|
|
7779
7779
|
* @param options The options parameters.
|
|
7780
7780
|
*/
|
|
7781
7781
|
beginStartLtrBackupAndWait(resourceGroupName, serverName, parameters, options) {
|
|
7782
|
-
return tslib.__awaiter(this,
|
|
7782
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7783
7783
|
const poller = yield this.beginStartLtrBackup(resourceGroupName, serverName, parameters, options);
|
|
7784
7784
|
return poller.pollUntilDone();
|
|
7785
7785
|
});
|
|
@@ -7883,7 +7883,7 @@ class LtrBackupOperationsImpl {
|
|
|
7883
7883
|
return this;
|
|
7884
7884
|
},
|
|
7885
7885
|
byPage: (settings) => {
|
|
7886
|
-
if (settings === null || settings ===
|
|
7886
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7887
7887
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7888
7888
|
}
|
|
7889
7889
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -7893,7 +7893,7 @@ class LtrBackupOperationsImpl {
|
|
|
7893
7893
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
7894
7894
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
7895
7895
|
let result;
|
|
7896
|
-
let continuationToken = settings === null || settings ===
|
|
7896
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7897
7897
|
if (!continuationToken) {
|
|
7898
7898
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
7899
7899
|
let page = result.value || [];
|
|
@@ -8061,7 +8061,7 @@ class MigrationsImpl {
|
|
|
8061
8061
|
return this;
|
|
8062
8062
|
},
|
|
8063
8063
|
byPage: (settings) => {
|
|
8064
|
-
if (settings === null || settings ===
|
|
8064
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8065
8065
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8066
8066
|
}
|
|
8067
8067
|
return this.listByTargetServerPagingPage(subscriptionId, resourceGroupName, targetDbServerName, options, settings);
|
|
@@ -8071,7 +8071,7 @@ class MigrationsImpl {
|
|
|
8071
8071
|
listByTargetServerPagingPage(subscriptionId, resourceGroupName, targetDbServerName, options, settings) {
|
|
8072
8072
|
return tslib.__asyncGenerator(this, arguments, function* listByTargetServerPagingPage_1() {
|
|
8073
8073
|
let result;
|
|
8074
|
-
let continuationToken = settings === null || settings ===
|
|
8074
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8075
8075
|
if (!continuationToken) {
|
|
8076
8076
|
result = yield tslib.__await(this._listByTargetServer(subscriptionId, resourceGroupName, targetDbServerName, options));
|
|
8077
8077
|
let page = result.value || [];
|
|
@@ -8467,7 +8467,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
8467
8467
|
return this;
|
|
8468
8468
|
},
|
|
8469
8469
|
byPage: (settings) => {
|
|
8470
|
-
if (settings === null || settings ===
|
|
8470
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8471
8471
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8472
8472
|
}
|
|
8473
8473
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -8477,7 +8477,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
8477
8477
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
8478
8478
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
8479
8479
|
let result;
|
|
8480
|
-
let continuationToken = settings === null || settings ===
|
|
8480
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8481
8481
|
if (!continuationToken) {
|
|
8482
8482
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
8483
8483
|
let page = result.value || [];
|
|
@@ -8636,17 +8636,17 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
8636
8636
|
* @param options The options parameters.
|
|
8637
8637
|
*/
|
|
8638
8638
|
beginUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
|
|
8639
|
-
return tslib.__awaiter(this,
|
|
8640
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8639
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8640
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8641
8641
|
return this.client.sendOperationRequest(args, spec);
|
|
8642
8642
|
});
|
|
8643
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8643
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8644
8644
|
var _a;
|
|
8645
8645
|
let currentRawResponse = undefined;
|
|
8646
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8646
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8647
8647
|
const callback = (rawResponse, flatResponse) => {
|
|
8648
8648
|
currentRawResponse = rawResponse;
|
|
8649
|
-
providedCallback === null || providedCallback ===
|
|
8649
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8650
8650
|
};
|
|
8651
8651
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8652
8652
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8671,8 +8671,8 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
8671
8671
|
spec: updateOperationSpec$1,
|
|
8672
8672
|
});
|
|
8673
8673
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8674
|
-
restoreFrom: options === null || options ===
|
|
8675
|
-
intervalInMs: options === null || options ===
|
|
8674
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8675
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8676
8676
|
});
|
|
8677
8677
|
yield poller.poll();
|
|
8678
8678
|
return poller;
|
|
@@ -8687,7 +8687,7 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
8687
8687
|
* @param options The options parameters.
|
|
8688
8688
|
*/
|
|
8689
8689
|
beginUpdateAndWait(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
|
|
8690
|
-
return tslib.__awaiter(this,
|
|
8690
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8691
8691
|
const poller = yield this.beginUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options);
|
|
8692
8692
|
return poller.pollUntilDone();
|
|
8693
8693
|
});
|
|
@@ -8700,17 +8700,17 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
8700
8700
|
* @param options The options parameters.
|
|
8701
8701
|
*/
|
|
8702
8702
|
beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options) {
|
|
8703
|
-
return tslib.__awaiter(this,
|
|
8704
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8703
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8704
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8705
8705
|
return this.client.sendOperationRequest(args, spec);
|
|
8706
8706
|
});
|
|
8707
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8707
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8708
8708
|
var _a;
|
|
8709
8709
|
let currentRawResponse = undefined;
|
|
8710
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8710
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8711
8711
|
const callback = (rawResponse, flatResponse) => {
|
|
8712
8712
|
currentRawResponse = rawResponse;
|
|
8713
|
-
providedCallback === null || providedCallback ===
|
|
8713
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8714
8714
|
};
|
|
8715
8715
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8716
8716
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8734,8 +8734,8 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
8734
8734
|
spec: deleteOperationSpec$1,
|
|
8735
8735
|
});
|
|
8736
8736
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8737
|
-
restoreFrom: options === null || options ===
|
|
8738
|
-
intervalInMs: options === null || options ===
|
|
8737
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8738
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8739
8739
|
resourceLocationConfig: "azure-async-operation",
|
|
8740
8740
|
});
|
|
8741
8741
|
yield poller.poll();
|
|
@@ -8750,7 +8750,7 @@ class PrivateEndpointConnectionOperationsImpl {
|
|
|
8750
8750
|
* @param options The options parameters.
|
|
8751
8751
|
*/
|
|
8752
8752
|
beginDeleteAndWait(resourceGroupName, serverName, privateEndpointConnectionName, options) {
|
|
8753
|
-
return tslib.__awaiter(this,
|
|
8753
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8754
8754
|
const poller = yield this.beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options);
|
|
8755
8755
|
return poller.pollUntilDone();
|
|
8756
8756
|
});
|
|
@@ -8856,7 +8856,7 @@ class PrivateLinkResourcesImpl {
|
|
|
8856
8856
|
return this;
|
|
8857
8857
|
},
|
|
8858
8858
|
byPage: (settings) => {
|
|
8859
|
-
if (settings === null || settings ===
|
|
8859
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8860
8860
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8861
8861
|
}
|
|
8862
8862
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -8866,7 +8866,7 @@ class PrivateLinkResourcesImpl {
|
|
|
8866
8866
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
8867
8867
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
8868
8868
|
let result;
|
|
8869
|
-
let continuationToken = settings === null || settings ===
|
|
8869
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8870
8870
|
if (!continuationToken) {
|
|
8871
8871
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
8872
8872
|
let page = result.value || [];
|
|
@@ -9032,7 +9032,7 @@ class QuotaUsagesImpl {
|
|
|
9032
9032
|
return this;
|
|
9033
9033
|
},
|
|
9034
9034
|
byPage: (settings) => {
|
|
9035
|
-
if (settings === null || settings ===
|
|
9035
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9036
9036
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9037
9037
|
}
|
|
9038
9038
|
return this.listPagingPage(locationName, options, settings);
|
|
@@ -9042,7 +9042,7 @@ class QuotaUsagesImpl {
|
|
|
9042
9042
|
listPagingPage(locationName, options, settings) {
|
|
9043
9043
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9044
9044
|
let result;
|
|
9045
|
-
let continuationToken = settings === null || settings ===
|
|
9045
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9046
9046
|
if (!continuationToken) {
|
|
9047
9047
|
result = yield tslib.__await(this._list(locationName, options));
|
|
9048
9048
|
let page = result.value || [];
|
|
@@ -9173,7 +9173,7 @@ class ReplicasImpl {
|
|
|
9173
9173
|
return this;
|
|
9174
9174
|
},
|
|
9175
9175
|
byPage: (settings) => {
|
|
9176
|
-
if (settings === null || settings ===
|
|
9176
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9177
9177
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9178
9178
|
}
|
|
9179
9179
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -9274,7 +9274,7 @@ class LogFilesImpl {
|
|
|
9274
9274
|
return this;
|
|
9275
9275
|
},
|
|
9276
9276
|
byPage: (settings) => {
|
|
9277
|
-
if (settings === null || settings ===
|
|
9277
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9278
9278
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9279
9279
|
}
|
|
9280
9280
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -9284,7 +9284,7 @@ class LogFilesImpl {
|
|
|
9284
9284
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
9285
9285
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
9286
9286
|
let result;
|
|
9287
|
-
let continuationToken = settings === null || settings ===
|
|
9287
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9288
9288
|
if (!continuationToken) {
|
|
9289
9289
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
9290
9290
|
let page = result.value || [];
|
|
@@ -9419,7 +9419,7 @@ class ServerThreatProtectionSettingsImpl {
|
|
|
9419
9419
|
return this;
|
|
9420
9420
|
},
|
|
9421
9421
|
byPage: (settings) => {
|
|
9422
|
-
if (settings === null || settings ===
|
|
9422
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9423
9423
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9424
9424
|
}
|
|
9425
9425
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -9429,7 +9429,7 @@ class ServerThreatProtectionSettingsImpl {
|
|
|
9429
9429
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
9430
9430
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
9431
9431
|
let result;
|
|
9432
|
-
let continuationToken = settings === null || settings ===
|
|
9432
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9433
9433
|
if (!continuationToken) {
|
|
9434
9434
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
9435
9435
|
let page = result.value || [];
|
|
@@ -9494,17 +9494,17 @@ class ServerThreatProtectionSettingsImpl {
|
|
|
9494
9494
|
* @param options The options parameters.
|
|
9495
9495
|
*/
|
|
9496
9496
|
beginCreateOrUpdate(resourceGroupName, serverName, threatProtectionName, parameters, options) {
|
|
9497
|
-
return tslib.__awaiter(this,
|
|
9498
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9497
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9498
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9499
9499
|
return this.client.sendOperationRequest(args, spec);
|
|
9500
9500
|
});
|
|
9501
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9501
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9502
9502
|
var _a;
|
|
9503
9503
|
let currentRawResponse = undefined;
|
|
9504
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9504
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9505
9505
|
const callback = (rawResponse, flatResponse) => {
|
|
9506
9506
|
currentRawResponse = rawResponse;
|
|
9507
|
-
providedCallback === null || providedCallback ===
|
|
9507
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9508
9508
|
};
|
|
9509
9509
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9510
9510
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9529,8 +9529,8 @@ class ServerThreatProtectionSettingsImpl {
|
|
|
9529
9529
|
spec: createOrUpdateOperationSpec,
|
|
9530
9530
|
});
|
|
9531
9531
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9532
|
-
restoreFrom: options === null || options ===
|
|
9533
|
-
intervalInMs: options === null || options ===
|
|
9532
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9533
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9534
9534
|
resourceLocationConfig: "azure-async-operation",
|
|
9535
9535
|
});
|
|
9536
9536
|
yield poller.poll();
|
|
@@ -9546,7 +9546,7 @@ class ServerThreatProtectionSettingsImpl {
|
|
|
9546
9546
|
* @param options The options parameters.
|
|
9547
9547
|
*/
|
|
9548
9548
|
beginCreateOrUpdateAndWait(resourceGroupName, serverName, threatProtectionName, parameters, options) {
|
|
9549
|
-
return tslib.__awaiter(this,
|
|
9549
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9550
9550
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, threatProtectionName, parameters, options);
|
|
9551
9551
|
return poller.pollUntilDone();
|
|
9552
9552
|
});
|
|
@@ -9695,7 +9695,7 @@ class VirtualEndpointsImpl {
|
|
|
9695
9695
|
return this;
|
|
9696
9696
|
},
|
|
9697
9697
|
byPage: (settings) => {
|
|
9698
|
-
if (settings === null || settings ===
|
|
9698
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9699
9699
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9700
9700
|
}
|
|
9701
9701
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -9705,7 +9705,7 @@ class VirtualEndpointsImpl {
|
|
|
9705
9705
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
9706
9706
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
9707
9707
|
let result;
|
|
9708
|
-
let continuationToken = settings === null || settings ===
|
|
9708
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9709
9709
|
if (!continuationToken) {
|
|
9710
9710
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
9711
9711
|
let page = result.value || [];
|
|
@@ -9751,17 +9751,17 @@ class VirtualEndpointsImpl {
|
|
|
9751
9751
|
* @param options The options parameters.
|
|
9752
9752
|
*/
|
|
9753
9753
|
beginCreate(resourceGroupName, serverName, virtualEndpointName, parameters, options) {
|
|
9754
|
-
return tslib.__awaiter(this,
|
|
9755
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9754
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9755
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9756
9756
|
return this.client.sendOperationRequest(args, spec);
|
|
9757
9757
|
});
|
|
9758
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9758
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9759
9759
|
var _a;
|
|
9760
9760
|
let currentRawResponse = undefined;
|
|
9761
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9761
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9762
9762
|
const callback = (rawResponse, flatResponse) => {
|
|
9763
9763
|
currentRawResponse = rawResponse;
|
|
9764
|
-
providedCallback === null || providedCallback ===
|
|
9764
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9765
9765
|
};
|
|
9766
9766
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9767
9767
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9786,8 +9786,8 @@ class VirtualEndpointsImpl {
|
|
|
9786
9786
|
spec: createOperationSpec,
|
|
9787
9787
|
});
|
|
9788
9788
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9789
|
-
restoreFrom: options === null || options ===
|
|
9790
|
-
intervalInMs: options === null || options ===
|
|
9789
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9790
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9791
9791
|
resourceLocationConfig: "azure-async-operation",
|
|
9792
9792
|
});
|
|
9793
9793
|
yield poller.poll();
|
|
@@ -9803,7 +9803,7 @@ class VirtualEndpointsImpl {
|
|
|
9803
9803
|
* @param options The options parameters.
|
|
9804
9804
|
*/
|
|
9805
9805
|
beginCreateAndWait(resourceGroupName, serverName, virtualEndpointName, parameters, options) {
|
|
9806
|
-
return tslib.__awaiter(this,
|
|
9806
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9807
9807
|
const poller = yield this.beginCreate(resourceGroupName, serverName, virtualEndpointName, parameters, options);
|
|
9808
9808
|
return poller.pollUntilDone();
|
|
9809
9809
|
});
|
|
@@ -9818,17 +9818,17 @@ class VirtualEndpointsImpl {
|
|
|
9818
9818
|
* @param options The options parameters.
|
|
9819
9819
|
*/
|
|
9820
9820
|
beginUpdate(resourceGroupName, serverName, virtualEndpointName, parameters, options) {
|
|
9821
|
-
return tslib.__awaiter(this,
|
|
9822
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9821
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9822
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9823
9823
|
return this.client.sendOperationRequest(args, spec);
|
|
9824
9824
|
});
|
|
9825
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9825
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9826
9826
|
var _a;
|
|
9827
9827
|
let currentRawResponse = undefined;
|
|
9828
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9828
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9829
9829
|
const callback = (rawResponse, flatResponse) => {
|
|
9830
9830
|
currentRawResponse = rawResponse;
|
|
9831
|
-
providedCallback === null || providedCallback ===
|
|
9831
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9832
9832
|
};
|
|
9833
9833
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9834
9834
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9853,8 +9853,8 @@ class VirtualEndpointsImpl {
|
|
|
9853
9853
|
spec: updateOperationSpec,
|
|
9854
9854
|
});
|
|
9855
9855
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9856
|
-
restoreFrom: options === null || options ===
|
|
9857
|
-
intervalInMs: options === null || options ===
|
|
9856
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9857
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9858
9858
|
resourceLocationConfig: "azure-async-operation",
|
|
9859
9859
|
});
|
|
9860
9860
|
yield poller.poll();
|
|
@@ -9871,7 +9871,7 @@ class VirtualEndpointsImpl {
|
|
|
9871
9871
|
* @param options The options parameters.
|
|
9872
9872
|
*/
|
|
9873
9873
|
beginUpdateAndWait(resourceGroupName, serverName, virtualEndpointName, parameters, options) {
|
|
9874
|
-
return tslib.__awaiter(this,
|
|
9874
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9875
9875
|
const poller = yield this.beginUpdate(resourceGroupName, serverName, virtualEndpointName, parameters, options);
|
|
9876
9876
|
return poller.pollUntilDone();
|
|
9877
9877
|
});
|
|
@@ -9884,17 +9884,17 @@ class VirtualEndpointsImpl {
|
|
|
9884
9884
|
* @param options The options parameters.
|
|
9885
9885
|
*/
|
|
9886
9886
|
beginDelete(resourceGroupName, serverName, virtualEndpointName, options) {
|
|
9887
|
-
return tslib.__awaiter(this,
|
|
9888
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9887
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9888
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9889
9889
|
return this.client.sendOperationRequest(args, spec);
|
|
9890
9890
|
});
|
|
9891
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9891
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9892
9892
|
var _a;
|
|
9893
9893
|
let currentRawResponse = undefined;
|
|
9894
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9894
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9895
9895
|
const callback = (rawResponse, flatResponse) => {
|
|
9896
9896
|
currentRawResponse = rawResponse;
|
|
9897
|
-
providedCallback === null || providedCallback ===
|
|
9897
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9898
9898
|
};
|
|
9899
9899
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9900
9900
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9913,8 +9913,8 @@ class VirtualEndpointsImpl {
|
|
|
9913
9913
|
spec: deleteOperationSpec,
|
|
9914
9914
|
});
|
|
9915
9915
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9916
|
-
restoreFrom: options === null || options ===
|
|
9917
|
-
intervalInMs: options === null || options ===
|
|
9916
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9917
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9918
9918
|
resourceLocationConfig: "location",
|
|
9919
9919
|
});
|
|
9920
9920
|
yield poller.poll();
|
|
@@ -9929,7 +9929,7 @@ class VirtualEndpointsImpl {
|
|
|
9929
9929
|
* @param options The options parameters.
|
|
9930
9930
|
*/
|
|
9931
9931
|
beginDeleteAndWait(resourceGroupName, serverName, virtualEndpointName, options) {
|
|
9932
|
-
return tslib.__awaiter(this,
|
|
9932
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9933
9933
|
const poller = yield this.beginDelete(resourceGroupName, serverName, virtualEndpointName, options);
|
|
9934
9934
|
return poller.pollUntilDone();
|
|
9935
9935
|
});
|
|
@@ -10213,10 +10213,10 @@ class PostgreSQLManagementFlexibleServerClient extends coreClient__namespace.Ser
|
|
|
10213
10213
|
: `${packageDetails}`;
|
|
10214
10214
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
10215
10215
|
userAgentPrefix,
|
|
10216
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
10216
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
10217
10217
|
super(optionsWithDefaults);
|
|
10218
10218
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
10219
|
-
if ((options === null || options ===
|
|
10219
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
10220
10220
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
10221
10221
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
10222
10222
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -10230,7 +10230,7 @@ class PostgreSQLManagementFlexibleServerClient extends coreClient__namespace.Ser
|
|
|
10230
10230
|
});
|
|
10231
10231
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
10232
10232
|
credential: credentials,
|
|
10233
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
10233
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
10234
10234
|
challengeCallbacks: {
|
|
10235
10235
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
10236
10236
|
},
|
|
@@ -10278,7 +10278,7 @@ class PostgreSQLManagementFlexibleServerClient extends coreClient__namespace.Ser
|
|
|
10278
10278
|
const apiVersionPolicy = {
|
|
10279
10279
|
name: "CustomApiVersionPolicy",
|
|
10280
10280
|
sendRequest(request, next) {
|
|
10281
|
-
return tslib.__awaiter(this,
|
|
10281
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10282
10282
|
const param = request.url.split("?");
|
|
10283
10283
|
if (param.length > 1) {
|
|
10284
10284
|
const newParams = param[1].split("&").map((item) => {
|