@azure/arm-sqlvirtualmachine 5.0.0-alpha.20250102.1 → 5.0.0-alpha.20250106.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +109 -109
- 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
|
}
|
|
@@ -2211,7 +2211,7 @@ function createLroSpec(inputs) {
|
|
|
2211
2211
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2212
2212
|
sendPollRequest: (path, options) => {
|
|
2213
2213
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2214
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
2214
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
2215
2215
|
}
|
|
2216
2216
|
};
|
|
2217
2217
|
}
|
|
@@ -2250,7 +2250,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
2250
2250
|
return this;
|
|
2251
2251
|
},
|
|
2252
2252
|
byPage: (settings) => {
|
|
2253
|
-
if (settings === null || settings ===
|
|
2253
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2254
2254
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2255
2255
|
}
|
|
2256
2256
|
return this.listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
|
|
@@ -2260,7 +2260,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
2260
2260
|
listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
|
|
2261
2261
|
return tslib.__asyncGenerator(this, arguments, function* listByGroupPagingPage_1() {
|
|
2262
2262
|
let result;
|
|
2263
|
-
let continuationToken = settings === null || settings ===
|
|
2263
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2264
2264
|
if (!continuationToken) {
|
|
2265
2265
|
result = yield tslib.__await(this._listByGroup(resourceGroupName, sqlVirtualMachineGroupName, options));
|
|
2266
2266
|
let page = result.value || [];
|
|
@@ -2323,17 +2323,17 @@ class AvailabilityGroupListenersImpl {
|
|
|
2323
2323
|
* @param options The options parameters.
|
|
2324
2324
|
*/
|
|
2325
2325
|
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
|
|
2326
|
-
return tslib.__awaiter(this,
|
|
2327
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2326
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2327
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2328
2328
|
return this.client.sendOperationRequest(args, spec);
|
|
2329
2329
|
});
|
|
2330
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2330
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2331
2331
|
var _a;
|
|
2332
2332
|
let currentRawResponse = undefined;
|
|
2333
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2333
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2334
2334
|
const callback = (rawResponse, flatResponse) => {
|
|
2335
2335
|
currentRawResponse = rawResponse;
|
|
2336
|
-
providedCallback === null || providedCallback ===
|
|
2336
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2337
2337
|
};
|
|
2338
2338
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2339
2339
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2358,8 +2358,8 @@ class AvailabilityGroupListenersImpl {
|
|
|
2358
2358
|
spec: createOrUpdateOperationSpec$2
|
|
2359
2359
|
});
|
|
2360
2360
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2361
|
-
restoreFrom: options === null || options ===
|
|
2362
|
-
intervalInMs: options === null || options ===
|
|
2361
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2362
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2363
2363
|
resourceLocationConfig: "azure-async-operation"
|
|
2364
2364
|
});
|
|
2365
2365
|
yield poller.poll();
|
|
@@ -2376,7 +2376,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
2376
2376
|
* @param options The options parameters.
|
|
2377
2377
|
*/
|
|
2378
2378
|
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
|
|
2379
|
-
return tslib.__awaiter(this,
|
|
2379
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2380
2380
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options);
|
|
2381
2381
|
return poller.pollUntilDone();
|
|
2382
2382
|
});
|
|
@@ -2390,17 +2390,17 @@ class AvailabilityGroupListenersImpl {
|
|
|
2390
2390
|
* @param options The options parameters.
|
|
2391
2391
|
*/
|
|
2392
2392
|
beginDelete(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
|
|
2393
|
-
return tslib.__awaiter(this,
|
|
2394
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2393
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2394
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2395
2395
|
return this.client.sendOperationRequest(args, spec);
|
|
2396
2396
|
});
|
|
2397
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2397
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2398
2398
|
var _a;
|
|
2399
2399
|
let currentRawResponse = undefined;
|
|
2400
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2400
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2401
2401
|
const callback = (rawResponse, flatResponse) => {
|
|
2402
2402
|
currentRawResponse = rawResponse;
|
|
2403
|
-
providedCallback === null || providedCallback ===
|
|
2403
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2404
2404
|
};
|
|
2405
2405
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2406
2406
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2424,8 +2424,8 @@ class AvailabilityGroupListenersImpl {
|
|
|
2424
2424
|
spec: deleteOperationSpec$2
|
|
2425
2425
|
});
|
|
2426
2426
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2427
|
-
restoreFrom: options === null || options ===
|
|
2428
|
-
intervalInMs: options === null || options ===
|
|
2427
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2428
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2429
2429
|
resourceLocationConfig: "location"
|
|
2430
2430
|
});
|
|
2431
2431
|
yield poller.poll();
|
|
@@ -2441,7 +2441,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
2441
2441
|
* @param options The options parameters.
|
|
2442
2442
|
*/
|
|
2443
2443
|
beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
|
|
2444
|
-
return tslib.__awaiter(this,
|
|
2444
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2445
2445
|
const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options);
|
|
2446
2446
|
return poller.pollUntilDone();
|
|
2447
2447
|
});
|
|
@@ -2622,7 +2622,7 @@ class OperationsImpl {
|
|
|
2622
2622
|
return this;
|
|
2623
2623
|
},
|
|
2624
2624
|
byPage: (settings) => {
|
|
2625
|
-
if (settings === null || settings ===
|
|
2625
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2626
2626
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2627
2627
|
}
|
|
2628
2628
|
return this.listPagingPage(options, settings);
|
|
@@ -2632,7 +2632,7 @@ class OperationsImpl {
|
|
|
2632
2632
|
listPagingPage(options, settings) {
|
|
2633
2633
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2634
2634
|
let result;
|
|
2635
|
-
let continuationToken = settings === null || settings ===
|
|
2635
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2636
2636
|
if (!continuationToken) {
|
|
2637
2637
|
result = yield tslib.__await(this._list(options));
|
|
2638
2638
|
let page = result.value || [];
|
|
@@ -2752,7 +2752,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2752
2752
|
return this;
|
|
2753
2753
|
},
|
|
2754
2754
|
byPage: (settings) => {
|
|
2755
|
-
if (settings === null || settings ===
|
|
2755
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2756
2756
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2757
2757
|
}
|
|
2758
2758
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -2762,7 +2762,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2762
2762
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2763
2763
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2764
2764
|
let result;
|
|
2765
|
-
let continuationToken = settings === null || settings ===
|
|
2765
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2766
2766
|
if (!continuationToken) {
|
|
2767
2767
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2768
2768
|
let page = result.value || [];
|
|
@@ -2813,7 +2813,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2813
2813
|
return this;
|
|
2814
2814
|
},
|
|
2815
2815
|
byPage: (settings) => {
|
|
2816
|
-
if (settings === null || settings ===
|
|
2816
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2817
2817
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2818
2818
|
}
|
|
2819
2819
|
return this.listPagingPage(options, settings);
|
|
@@ -2823,7 +2823,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2823
2823
|
listPagingPage(options, settings) {
|
|
2824
2824
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2825
2825
|
let result;
|
|
2826
|
-
let continuationToken = settings === null || settings ===
|
|
2826
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2827
2827
|
if (!continuationToken) {
|
|
2828
2828
|
result = yield tslib.__await(this._list(options));
|
|
2829
2829
|
let page = result.value || [];
|
|
@@ -2879,17 +2879,17 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2879
2879
|
* @param options The options parameters.
|
|
2880
2880
|
*/
|
|
2881
2881
|
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
2882
|
-
return tslib.__awaiter(this,
|
|
2883
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2882
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2883
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2884
2884
|
return this.client.sendOperationRequest(args, spec);
|
|
2885
2885
|
});
|
|
2886
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2886
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2887
2887
|
var _a;
|
|
2888
2888
|
let currentRawResponse = undefined;
|
|
2889
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2889
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2890
2890
|
const callback = (rawResponse, flatResponse) => {
|
|
2891
2891
|
currentRawResponse = rawResponse;
|
|
2892
|
-
providedCallback === null || providedCallback ===
|
|
2892
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2893
2893
|
};
|
|
2894
2894
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2895
2895
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2913,8 +2913,8 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2913
2913
|
spec: createOrUpdateOperationSpec$1
|
|
2914
2914
|
});
|
|
2915
2915
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2916
|
-
restoreFrom: options === null || options ===
|
|
2917
|
-
intervalInMs: options === null || options ===
|
|
2916
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2917
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2918
2918
|
resourceLocationConfig: "azure-async-operation"
|
|
2919
2919
|
});
|
|
2920
2920
|
yield poller.poll();
|
|
@@ -2930,7 +2930,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2930
2930
|
* @param options The options parameters.
|
|
2931
2931
|
*/
|
|
2932
2932
|
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
2933
|
-
return tslib.__awaiter(this,
|
|
2933
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2934
2934
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options);
|
|
2935
2935
|
return poller.pollUntilDone();
|
|
2936
2936
|
});
|
|
@@ -2943,17 +2943,17 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2943
2943
|
* @param options The options parameters.
|
|
2944
2944
|
*/
|
|
2945
2945
|
beginDelete(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
2946
|
-
return tslib.__awaiter(this,
|
|
2947
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2946
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2947
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2948
2948
|
return this.client.sendOperationRequest(args, spec);
|
|
2949
2949
|
});
|
|
2950
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2950
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2951
2951
|
var _a;
|
|
2952
2952
|
let currentRawResponse = undefined;
|
|
2953
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2953
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2954
2954
|
const callback = (rawResponse, flatResponse) => {
|
|
2955
2955
|
currentRawResponse = rawResponse;
|
|
2956
|
-
providedCallback === null || providedCallback ===
|
|
2956
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2957
2957
|
};
|
|
2958
2958
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2959
2959
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2972,8 +2972,8 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2972
2972
|
spec: deleteOperationSpec$1
|
|
2973
2973
|
});
|
|
2974
2974
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2975
|
-
restoreFrom: options === null || options ===
|
|
2976
|
-
intervalInMs: options === null || options ===
|
|
2975
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2976
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2977
2977
|
resourceLocationConfig: "location"
|
|
2978
2978
|
});
|
|
2979
2979
|
yield poller.poll();
|
|
@@ -2988,7 +2988,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2988
2988
|
* @param options The options parameters.
|
|
2989
2989
|
*/
|
|
2990
2990
|
beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
2991
|
-
return tslib.__awaiter(this,
|
|
2991
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2992
2992
|
const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineGroupName, options);
|
|
2993
2993
|
return poller.pollUntilDone();
|
|
2994
2994
|
});
|
|
@@ -3002,17 +3002,17 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
3002
3002
|
* @param options The options parameters.
|
|
3003
3003
|
*/
|
|
3004
3004
|
beginUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
3005
|
-
return tslib.__awaiter(this,
|
|
3006
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3005
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3006
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3007
3007
|
return this.client.sendOperationRequest(args, spec);
|
|
3008
3008
|
});
|
|
3009
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3009
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3010
3010
|
var _a;
|
|
3011
3011
|
let currentRawResponse = undefined;
|
|
3012
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3012
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3013
3013
|
const callback = (rawResponse, flatResponse) => {
|
|
3014
3014
|
currentRawResponse = rawResponse;
|
|
3015
|
-
providedCallback === null || providedCallback ===
|
|
3015
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3016
3016
|
};
|
|
3017
3017
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3018
3018
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3036,8 +3036,8 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
3036
3036
|
spec: updateOperationSpec$1
|
|
3037
3037
|
});
|
|
3038
3038
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3039
|
-
restoreFrom: options === null || options ===
|
|
3040
|
-
intervalInMs: options === null || options ===
|
|
3039
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3040
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3041
3041
|
resourceLocationConfig: "azure-async-operation"
|
|
3042
3042
|
});
|
|
3043
3043
|
yield poller.poll();
|
|
@@ -3053,7 +3053,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
3053
3053
|
* @param options The options parameters.
|
|
3054
3054
|
*/
|
|
3055
3055
|
beginUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
|
|
3056
|
-
return tslib.__awaiter(this,
|
|
3056
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3057
3057
|
const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options);
|
|
3058
3058
|
return poller.pollUntilDone();
|
|
3059
3059
|
});
|
|
@@ -3312,7 +3312,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3312
3312
|
return this;
|
|
3313
3313
|
},
|
|
3314
3314
|
byPage: (settings) => {
|
|
3315
|
-
if (settings === null || settings ===
|
|
3315
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3316
3316
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3317
3317
|
}
|
|
3318
3318
|
return this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
|
|
@@ -3322,7 +3322,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3322
3322
|
listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
|
|
3323
3323
|
return tslib.__asyncGenerator(this, arguments, function* listBySqlVmGroupPagingPage_1() {
|
|
3324
3324
|
let result;
|
|
3325
|
-
let continuationToken = settings === null || settings ===
|
|
3325
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3326
3326
|
if (!continuationToken) {
|
|
3327
3327
|
result = yield tslib.__await(this._listBySqlVmGroup(resourceGroupName, sqlVirtualMachineGroupName, options));
|
|
3328
3328
|
let page = result.value || [];
|
|
@@ -3373,7 +3373,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3373
3373
|
return this;
|
|
3374
3374
|
},
|
|
3375
3375
|
byPage: (settings) => {
|
|
3376
|
-
if (settings === null || settings ===
|
|
3376
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3377
3377
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3378
3378
|
}
|
|
3379
3379
|
return this.listPagingPage(options, settings);
|
|
@@ -3383,7 +3383,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3383
3383
|
listPagingPage(options, settings) {
|
|
3384
3384
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3385
3385
|
let result;
|
|
3386
|
-
let continuationToken = settings === null || settings ===
|
|
3386
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3387
3387
|
if (!continuationToken) {
|
|
3388
3388
|
result = yield tslib.__await(this._list(options));
|
|
3389
3389
|
let page = result.value || [];
|
|
@@ -3436,7 +3436,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3436
3436
|
return this;
|
|
3437
3437
|
},
|
|
3438
3438
|
byPage: (settings) => {
|
|
3439
|
-
if (settings === null || settings ===
|
|
3439
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3440
3440
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3441
3441
|
}
|
|
3442
3442
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3446,7 +3446,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3446
3446
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3447
3447
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3448
3448
|
let result;
|
|
3449
|
-
let continuationToken = settings === null || settings ===
|
|
3449
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3450
3450
|
if (!continuationToken) {
|
|
3451
3451
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3452
3452
|
let page = result.value || [];
|
|
@@ -3519,17 +3519,17 @@ class SqlVirtualMachinesImpl {
|
|
|
3519
3519
|
* @param options The options parameters.
|
|
3520
3520
|
*/
|
|
3521
3521
|
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3522
|
-
return tslib.__awaiter(this,
|
|
3523
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3522
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3523
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3524
3524
|
return this.client.sendOperationRequest(args, spec);
|
|
3525
3525
|
});
|
|
3526
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3526
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3527
3527
|
var _a;
|
|
3528
3528
|
let currentRawResponse = undefined;
|
|
3529
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3529
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3530
3530
|
const callback = (rawResponse, flatResponse) => {
|
|
3531
3531
|
currentRawResponse = rawResponse;
|
|
3532
|
-
providedCallback === null || providedCallback ===
|
|
3532
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3533
3533
|
};
|
|
3534
3534
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3535
3535
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3548,8 +3548,8 @@ class SqlVirtualMachinesImpl {
|
|
|
3548
3548
|
spec: createOrUpdateOperationSpec
|
|
3549
3549
|
});
|
|
3550
3550
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3551
|
-
restoreFrom: options === null || options ===
|
|
3552
|
-
intervalInMs: options === null || options ===
|
|
3551
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3552
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3553
3553
|
resourceLocationConfig: "azure-async-operation"
|
|
3554
3554
|
});
|
|
3555
3555
|
yield poller.poll();
|
|
@@ -3565,7 +3565,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3565
3565
|
* @param options The options parameters.
|
|
3566
3566
|
*/
|
|
3567
3567
|
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3568
|
-
return tslib.__awaiter(this,
|
|
3568
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3569
3569
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
3570
3570
|
return poller.pollUntilDone();
|
|
3571
3571
|
});
|
|
@@ -3578,17 +3578,17 @@ class SqlVirtualMachinesImpl {
|
|
|
3578
3578
|
* @param options The options parameters.
|
|
3579
3579
|
*/
|
|
3580
3580
|
beginDelete(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3581
|
-
return tslib.__awaiter(this,
|
|
3582
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3581
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3582
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3583
3583
|
return this.client.sendOperationRequest(args, spec);
|
|
3584
3584
|
});
|
|
3585
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3585
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3586
3586
|
var _a;
|
|
3587
3587
|
let currentRawResponse = undefined;
|
|
3588
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3588
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3589
3589
|
const callback = (rawResponse, flatResponse) => {
|
|
3590
3590
|
currentRawResponse = rawResponse;
|
|
3591
|
-
providedCallback === null || providedCallback ===
|
|
3591
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3592
3592
|
};
|
|
3593
3593
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3594
3594
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3607,8 +3607,8 @@ class SqlVirtualMachinesImpl {
|
|
|
3607
3607
|
spec: deleteOperationSpec
|
|
3608
3608
|
});
|
|
3609
3609
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3610
|
-
restoreFrom: options === null || options ===
|
|
3611
|
-
intervalInMs: options === null || options ===
|
|
3610
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3611
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3612
3612
|
resourceLocationConfig: "location"
|
|
3613
3613
|
});
|
|
3614
3614
|
yield poller.poll();
|
|
@@ -3623,7 +3623,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3623
3623
|
* @param options The options parameters.
|
|
3624
3624
|
*/
|
|
3625
3625
|
beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3626
|
-
return tslib.__awaiter(this,
|
|
3626
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3627
3627
|
const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineName, options);
|
|
3628
3628
|
return poller.pollUntilDone();
|
|
3629
3629
|
});
|
|
@@ -3637,17 +3637,17 @@ class SqlVirtualMachinesImpl {
|
|
|
3637
3637
|
* @param options The options parameters.
|
|
3638
3638
|
*/
|
|
3639
3639
|
beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3640
|
-
return tslib.__awaiter(this,
|
|
3641
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3640
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3641
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3642
3642
|
return this.client.sendOperationRequest(args, spec);
|
|
3643
3643
|
});
|
|
3644
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3644
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3645
3645
|
var _a;
|
|
3646
3646
|
let currentRawResponse = undefined;
|
|
3647
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3647
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3648
3648
|
const callback = (rawResponse, flatResponse) => {
|
|
3649
3649
|
currentRawResponse = rawResponse;
|
|
3650
|
-
providedCallback === null || providedCallback ===
|
|
3650
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3651
3651
|
};
|
|
3652
3652
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3653
3653
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3666,8 +3666,8 @@ class SqlVirtualMachinesImpl {
|
|
|
3666
3666
|
spec: updateOperationSpec
|
|
3667
3667
|
});
|
|
3668
3668
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3669
|
-
restoreFrom: options === null || options ===
|
|
3670
|
-
intervalInMs: options === null || options ===
|
|
3669
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3670
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3671
3671
|
resourceLocationConfig: "azure-async-operation"
|
|
3672
3672
|
});
|
|
3673
3673
|
yield poller.poll();
|
|
@@ -3683,7 +3683,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3683
3683
|
* @param options The options parameters.
|
|
3684
3684
|
*/
|
|
3685
3685
|
beginUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3686
|
-
return tslib.__awaiter(this,
|
|
3686
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3687
3687
|
const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
3688
3688
|
return poller.pollUntilDone();
|
|
3689
3689
|
});
|
|
@@ -3705,17 +3705,17 @@ class SqlVirtualMachinesImpl {
|
|
|
3705
3705
|
* @param options The options parameters.
|
|
3706
3706
|
*/
|
|
3707
3707
|
beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3708
|
-
return tslib.__awaiter(this,
|
|
3709
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3708
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3709
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3710
3710
|
return this.client.sendOperationRequest(args, spec);
|
|
3711
3711
|
});
|
|
3712
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3712
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3713
3713
|
var _a;
|
|
3714
3714
|
let currentRawResponse = undefined;
|
|
3715
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3715
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3716
3716
|
const callback = (rawResponse, flatResponse) => {
|
|
3717
3717
|
currentRawResponse = rawResponse;
|
|
3718
|
-
providedCallback === null || providedCallback ===
|
|
3718
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3719
3719
|
};
|
|
3720
3720
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3721
3721
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3734,8 +3734,8 @@ class SqlVirtualMachinesImpl {
|
|
|
3734
3734
|
spec: startAssessmentOperationSpec
|
|
3735
3735
|
});
|
|
3736
3736
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3737
|
-
restoreFrom: options === null || options ===
|
|
3738
|
-
intervalInMs: options === null || options ===
|
|
3737
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3738
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3739
3739
|
resourceLocationConfig: "location"
|
|
3740
3740
|
});
|
|
3741
3741
|
yield poller.poll();
|
|
@@ -3750,7 +3750,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3750
3750
|
* @param options The options parameters.
|
|
3751
3751
|
*/
|
|
3752
3752
|
beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3753
|
-
return tslib.__awaiter(this,
|
|
3753
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3754
3754
|
const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
|
|
3755
3755
|
return poller.pollUntilDone();
|
|
3756
3756
|
});
|
|
@@ -3763,17 +3763,17 @@ class SqlVirtualMachinesImpl {
|
|
|
3763
3763
|
* @param options The options parameters.
|
|
3764
3764
|
*/
|
|
3765
3765
|
beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3766
|
-
return tslib.__awaiter(this,
|
|
3767
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3766
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3767
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3768
3768
|
return this.client.sendOperationRequest(args, spec);
|
|
3769
3769
|
});
|
|
3770
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3770
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3771
3771
|
var _a;
|
|
3772
3772
|
let currentRawResponse = undefined;
|
|
3773
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3773
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3774
3774
|
const callback = (rawResponse, flatResponse) => {
|
|
3775
3775
|
currentRawResponse = rawResponse;
|
|
3776
|
-
providedCallback === null || providedCallback ===
|
|
3776
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3777
3777
|
};
|
|
3778
3778
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3779
3779
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3792,8 +3792,8 @@ class SqlVirtualMachinesImpl {
|
|
|
3792
3792
|
spec: redeployOperationSpec
|
|
3793
3793
|
});
|
|
3794
3794
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3795
|
-
restoreFrom: options === null || options ===
|
|
3796
|
-
intervalInMs: options === null || options ===
|
|
3795
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3796
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3797
3797
|
resourceLocationConfig: "location"
|
|
3798
3798
|
});
|
|
3799
3799
|
yield poller.poll();
|
|
@@ -3808,7 +3808,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3808
3808
|
* @param options The options parameters.
|
|
3809
3809
|
*/
|
|
3810
3810
|
beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3811
|
-
return tslib.__awaiter(this,
|
|
3811
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3812
3812
|
const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
|
|
3813
3813
|
return poller.pollUntilDone();
|
|
3814
3814
|
});
|
|
@@ -4139,17 +4139,17 @@ class SqlVirtualMachineTroubleshootImpl {
|
|
|
4139
4139
|
* @param options The options parameters.
|
|
4140
4140
|
*/
|
|
4141
4141
|
beginTroubleshoot(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
4142
|
-
return tslib.__awaiter(this,
|
|
4143
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4142
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4143
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4144
4144
|
return this.client.sendOperationRequest(args, spec);
|
|
4145
4145
|
});
|
|
4146
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4146
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4147
4147
|
var _a;
|
|
4148
4148
|
let currentRawResponse = undefined;
|
|
4149
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4149
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4150
4150
|
const callback = (rawResponse, flatResponse) => {
|
|
4151
4151
|
currentRawResponse = rawResponse;
|
|
4152
|
-
providedCallback === null || providedCallback ===
|
|
4152
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4153
4153
|
};
|
|
4154
4154
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4155
4155
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4168,8 +4168,8 @@ class SqlVirtualMachineTroubleshootImpl {
|
|
|
4168
4168
|
spec: troubleshootOperationSpec
|
|
4169
4169
|
});
|
|
4170
4170
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4171
|
-
restoreFrom: options === null || options ===
|
|
4172
|
-
intervalInMs: options === null || options ===
|
|
4171
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4172
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4173
4173
|
resourceLocationConfig: "location"
|
|
4174
4174
|
});
|
|
4175
4175
|
yield poller.poll();
|
|
@@ -4185,7 +4185,7 @@ class SqlVirtualMachineTroubleshootImpl {
|
|
|
4185
4185
|
* @param options The options parameters.
|
|
4186
4186
|
*/
|
|
4187
4187
|
beginTroubleshootAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
4188
|
-
return tslib.__awaiter(this,
|
|
4188
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4189
4189
|
const poller = yield this.beginTroubleshoot(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
4190
4190
|
return poller.pollUntilDone();
|
|
4191
4191
|
});
|
|
@@ -4262,10 +4262,10 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
4262
4262
|
: `${packageDetails}`;
|
|
4263
4263
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
4264
4264
|
userAgentPrefix
|
|
4265
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
4265
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
4266
4266
|
super(optionsWithDefaults);
|
|
4267
4267
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
4268
|
-
if ((options === null || options ===
|
|
4268
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
4269
4269
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
4270
4270
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
4271
4271
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -4279,7 +4279,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
4279
4279
|
});
|
|
4280
4280
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
4281
4281
|
credential: credentials,
|
|
4282
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
4282
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
4283
4283
|
challengeCallbacks: {
|
|
4284
4284
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
4285
4285
|
}
|
|
@@ -4305,7 +4305,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
4305
4305
|
const apiVersionPolicy = {
|
|
4306
4306
|
name: "CustomApiVersionPolicy",
|
|
4307
4307
|
sendRequest(request, next) {
|
|
4308
|
-
return tslib.__awaiter(this,
|
|
4308
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4309
4309
|
const param = request.url.split("?");
|
|
4310
4310
|
if (param.length > 1) {
|
|
4311
4311
|
const newParams = param[1].split("&").map((item) => {
|