@azure/arm-networkcloud 2.0.0-alpha.20250103.1 → 2.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 +631 -631
- 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
|
}
|
|
@@ -9441,7 +9441,7 @@ class OperationsImpl {
|
|
|
9441
9441
|
return this;
|
|
9442
9442
|
},
|
|
9443
9443
|
byPage: (settings) => {
|
|
9444
|
-
if (settings === null || settings ===
|
|
9444
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9445
9445
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9446
9446
|
}
|
|
9447
9447
|
return this.listPagingPage(options, settings);
|
|
@@ -9451,7 +9451,7 @@ class OperationsImpl {
|
|
|
9451
9451
|
listPagingPage(options, settings) {
|
|
9452
9452
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9453
9453
|
let result;
|
|
9454
|
-
let continuationToken = settings === null || settings ===
|
|
9454
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9455
9455
|
if (!continuationToken) {
|
|
9456
9456
|
result = yield tslib.__await(this._list(options));
|
|
9457
9457
|
let page = result.value || [];
|
|
@@ -9554,7 +9554,7 @@ function createLroSpec(inputs) {
|
|
|
9554
9554
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
9555
9555
|
sendPollRequest: (path, options) => {
|
|
9556
9556
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
9557
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
9557
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
9558
9558
|
},
|
|
9559
9559
|
};
|
|
9560
9560
|
}
|
|
@@ -9590,7 +9590,7 @@ class BareMetalMachinesImpl {
|
|
|
9590
9590
|
return this;
|
|
9591
9591
|
},
|
|
9592
9592
|
byPage: (settings) => {
|
|
9593
|
-
if (settings === null || settings ===
|
|
9593
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9594
9594
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9595
9595
|
}
|
|
9596
9596
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -9600,7 +9600,7 @@ class BareMetalMachinesImpl {
|
|
|
9600
9600
|
listBySubscriptionPagingPage(options, settings) {
|
|
9601
9601
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
9602
9602
|
let result;
|
|
9603
|
-
let continuationToken = settings === null || settings ===
|
|
9603
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9604
9604
|
if (!continuationToken) {
|
|
9605
9605
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
9606
9606
|
let page = result.value || [];
|
|
@@ -9652,7 +9652,7 @@ class BareMetalMachinesImpl {
|
|
|
9652
9652
|
return this;
|
|
9653
9653
|
},
|
|
9654
9654
|
byPage: (settings) => {
|
|
9655
|
-
if (settings === null || settings ===
|
|
9655
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9656
9656
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9657
9657
|
}
|
|
9658
9658
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -9662,7 +9662,7 @@ class BareMetalMachinesImpl {
|
|
|
9662
9662
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
9663
9663
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
9664
9664
|
let result;
|
|
9665
|
-
let continuationToken = settings === null || settings ===
|
|
9665
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9666
9666
|
if (!continuationToken) {
|
|
9667
9667
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
9668
9668
|
let page = result.value || [];
|
|
@@ -9733,17 +9733,17 @@ class BareMetalMachinesImpl {
|
|
|
9733
9733
|
* @param options The options parameters.
|
|
9734
9734
|
*/
|
|
9735
9735
|
beginCreateOrUpdate(resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, options) {
|
|
9736
|
-
return tslib.__awaiter(this,
|
|
9737
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9736
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9737
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9738
9738
|
return this.client.sendOperationRequest(args, spec);
|
|
9739
9739
|
});
|
|
9740
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9740
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9741
9741
|
var _a;
|
|
9742
9742
|
let currentRawResponse = undefined;
|
|
9743
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9743
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9744
9744
|
const callback = (rawResponse, flatResponse) => {
|
|
9745
9745
|
currentRawResponse = rawResponse;
|
|
9746
|
-
providedCallback === null || providedCallback ===
|
|
9746
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9747
9747
|
};
|
|
9748
9748
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9749
9749
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9767,8 +9767,8 @@ class BareMetalMachinesImpl {
|
|
|
9767
9767
|
spec: createOrUpdateOperationSpec$h,
|
|
9768
9768
|
});
|
|
9769
9769
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9770
|
-
restoreFrom: options === null || options ===
|
|
9771
|
-
intervalInMs: options === null || options ===
|
|
9770
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9771
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9772
9772
|
resourceLocationConfig: "azure-async-operation",
|
|
9773
9773
|
});
|
|
9774
9774
|
yield poller.poll();
|
|
@@ -9785,7 +9785,7 @@ class BareMetalMachinesImpl {
|
|
|
9785
9785
|
* @param options The options parameters.
|
|
9786
9786
|
*/
|
|
9787
9787
|
beginCreateOrUpdateAndWait(resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, options) {
|
|
9788
|
-
return tslib.__awaiter(this,
|
|
9788
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9789
9789
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, options);
|
|
9790
9790
|
return poller.pollUntilDone();
|
|
9791
9791
|
});
|
|
@@ -9799,17 +9799,17 @@ class BareMetalMachinesImpl {
|
|
|
9799
9799
|
* @param options The options parameters.
|
|
9800
9800
|
*/
|
|
9801
9801
|
beginDelete(resourceGroupName, bareMetalMachineName, options) {
|
|
9802
|
-
return tslib.__awaiter(this,
|
|
9803
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9802
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9803
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9804
9804
|
return this.client.sendOperationRequest(args, spec);
|
|
9805
9805
|
});
|
|
9806
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9806
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9807
9807
|
var _a;
|
|
9808
9808
|
let currentRawResponse = undefined;
|
|
9809
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9809
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9810
9810
|
const callback = (rawResponse, flatResponse) => {
|
|
9811
9811
|
currentRawResponse = rawResponse;
|
|
9812
|
-
providedCallback === null || providedCallback ===
|
|
9812
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9813
9813
|
};
|
|
9814
9814
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9815
9815
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9828,8 +9828,8 @@ class BareMetalMachinesImpl {
|
|
|
9828
9828
|
spec: deleteOperationSpec$h,
|
|
9829
9829
|
});
|
|
9830
9830
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9831
|
-
restoreFrom: options === null || options ===
|
|
9832
|
-
intervalInMs: options === null || options ===
|
|
9831
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9832
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9833
9833
|
resourceLocationConfig: "location",
|
|
9834
9834
|
});
|
|
9835
9835
|
yield poller.poll();
|
|
@@ -9845,7 +9845,7 @@ class BareMetalMachinesImpl {
|
|
|
9845
9845
|
* @param options The options parameters.
|
|
9846
9846
|
*/
|
|
9847
9847
|
beginDeleteAndWait(resourceGroupName, bareMetalMachineName, options) {
|
|
9848
|
-
return tslib.__awaiter(this,
|
|
9848
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9849
9849
|
const poller = yield this.beginDelete(resourceGroupName, bareMetalMachineName, options);
|
|
9850
9850
|
return poller.pollUntilDone();
|
|
9851
9851
|
});
|
|
@@ -9858,17 +9858,17 @@ class BareMetalMachinesImpl {
|
|
|
9858
9858
|
* @param options The options parameters.
|
|
9859
9859
|
*/
|
|
9860
9860
|
beginUpdate(resourceGroupName, bareMetalMachineName, options) {
|
|
9861
|
-
return tslib.__awaiter(this,
|
|
9862
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9861
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9862
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9863
9863
|
return this.client.sendOperationRequest(args, spec);
|
|
9864
9864
|
});
|
|
9865
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9865
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9866
9866
|
var _a;
|
|
9867
9867
|
let currentRawResponse = undefined;
|
|
9868
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9868
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9869
9869
|
const callback = (rawResponse, flatResponse) => {
|
|
9870
9870
|
currentRawResponse = rawResponse;
|
|
9871
|
-
providedCallback === null || providedCallback ===
|
|
9871
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9872
9872
|
};
|
|
9873
9873
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9874
9874
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9887,8 +9887,8 @@ class BareMetalMachinesImpl {
|
|
|
9887
9887
|
spec: updateOperationSpec$h,
|
|
9888
9888
|
});
|
|
9889
9889
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9890
|
-
restoreFrom: options === null || options ===
|
|
9891
|
-
intervalInMs: options === null || options ===
|
|
9890
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9891
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9892
9892
|
resourceLocationConfig: "azure-async-operation",
|
|
9893
9893
|
});
|
|
9894
9894
|
yield poller.poll();
|
|
@@ -9903,7 +9903,7 @@ class BareMetalMachinesImpl {
|
|
|
9903
9903
|
* @param options The options parameters.
|
|
9904
9904
|
*/
|
|
9905
9905
|
beginUpdateAndWait(resourceGroupName, bareMetalMachineName, options) {
|
|
9906
|
-
return tslib.__awaiter(this,
|
|
9906
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9907
9907
|
const poller = yield this.beginUpdate(resourceGroupName, bareMetalMachineName, options);
|
|
9908
9908
|
return poller.pollUntilDone();
|
|
9909
9909
|
});
|
|
@@ -9915,17 +9915,17 @@ class BareMetalMachinesImpl {
|
|
|
9915
9915
|
* @param options The options parameters.
|
|
9916
9916
|
*/
|
|
9917
9917
|
beginCordon(resourceGroupName, bareMetalMachineName, options) {
|
|
9918
|
-
return tslib.__awaiter(this,
|
|
9919
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9918
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9919
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9920
9920
|
return this.client.sendOperationRequest(args, spec);
|
|
9921
9921
|
});
|
|
9922
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9922
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9923
9923
|
var _a;
|
|
9924
9924
|
let currentRawResponse = undefined;
|
|
9925
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9925
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9926
9926
|
const callback = (rawResponse, flatResponse) => {
|
|
9927
9927
|
currentRawResponse = rawResponse;
|
|
9928
|
-
providedCallback === null || providedCallback ===
|
|
9928
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9929
9929
|
};
|
|
9930
9930
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9931
9931
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9944,8 +9944,8 @@ class BareMetalMachinesImpl {
|
|
|
9944
9944
|
spec: cordonOperationSpec,
|
|
9945
9945
|
});
|
|
9946
9946
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9947
|
-
restoreFrom: options === null || options ===
|
|
9948
|
-
intervalInMs: options === null || options ===
|
|
9947
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
9948
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
9949
9949
|
resourceLocationConfig: "location",
|
|
9950
9950
|
});
|
|
9951
9951
|
yield poller.poll();
|
|
@@ -9959,7 +9959,7 @@ class BareMetalMachinesImpl {
|
|
|
9959
9959
|
* @param options The options parameters.
|
|
9960
9960
|
*/
|
|
9961
9961
|
beginCordonAndWait(resourceGroupName, bareMetalMachineName, options) {
|
|
9962
|
-
return tslib.__awaiter(this,
|
|
9962
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9963
9963
|
const poller = yield this.beginCordon(resourceGroupName, bareMetalMachineName, options);
|
|
9964
9964
|
return poller.pollUntilDone();
|
|
9965
9965
|
});
|
|
@@ -9971,17 +9971,17 @@ class BareMetalMachinesImpl {
|
|
|
9971
9971
|
* @param options The options parameters.
|
|
9972
9972
|
*/
|
|
9973
9973
|
beginPowerOff(resourceGroupName, bareMetalMachineName, options) {
|
|
9974
|
-
return tslib.__awaiter(this,
|
|
9975
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9974
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9975
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9976
9976
|
return this.client.sendOperationRequest(args, spec);
|
|
9977
9977
|
});
|
|
9978
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9978
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9979
9979
|
var _a;
|
|
9980
9980
|
let currentRawResponse = undefined;
|
|
9981
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9981
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
9982
9982
|
const callback = (rawResponse, flatResponse) => {
|
|
9983
9983
|
currentRawResponse = rawResponse;
|
|
9984
|
-
providedCallback === null || providedCallback ===
|
|
9984
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
9985
9985
|
};
|
|
9986
9986
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9987
9987
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10000,8 +10000,8 @@ class BareMetalMachinesImpl {
|
|
|
10000
10000
|
spec: powerOffOperationSpec$1,
|
|
10001
10001
|
});
|
|
10002
10002
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10003
|
-
restoreFrom: options === null || options ===
|
|
10004
|
-
intervalInMs: options === null || options ===
|
|
10003
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10004
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10005
10005
|
resourceLocationConfig: "location",
|
|
10006
10006
|
});
|
|
10007
10007
|
yield poller.poll();
|
|
@@ -10015,7 +10015,7 @@ class BareMetalMachinesImpl {
|
|
|
10015
10015
|
* @param options The options parameters.
|
|
10016
10016
|
*/
|
|
10017
10017
|
beginPowerOffAndWait(resourceGroupName, bareMetalMachineName, options) {
|
|
10018
|
-
return tslib.__awaiter(this,
|
|
10018
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10019
10019
|
const poller = yield this.beginPowerOff(resourceGroupName, bareMetalMachineName, options);
|
|
10020
10020
|
return poller.pollUntilDone();
|
|
10021
10021
|
});
|
|
@@ -10027,17 +10027,17 @@ class BareMetalMachinesImpl {
|
|
|
10027
10027
|
* @param options The options parameters.
|
|
10028
10028
|
*/
|
|
10029
10029
|
beginReimage(resourceGroupName, bareMetalMachineName, options) {
|
|
10030
|
-
return tslib.__awaiter(this,
|
|
10031
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10030
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10031
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10032
10032
|
return this.client.sendOperationRequest(args, spec);
|
|
10033
10033
|
});
|
|
10034
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10034
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10035
10035
|
var _a;
|
|
10036
10036
|
let currentRawResponse = undefined;
|
|
10037
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10037
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10038
10038
|
const callback = (rawResponse, flatResponse) => {
|
|
10039
10039
|
currentRawResponse = rawResponse;
|
|
10040
|
-
providedCallback === null || providedCallback ===
|
|
10040
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10041
10041
|
};
|
|
10042
10042
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10043
10043
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10056,8 +10056,8 @@ class BareMetalMachinesImpl {
|
|
|
10056
10056
|
spec: reimageOperationSpec$1,
|
|
10057
10057
|
});
|
|
10058
10058
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10059
|
-
restoreFrom: options === null || options ===
|
|
10060
|
-
intervalInMs: options === null || options ===
|
|
10059
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10060
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10061
10061
|
resourceLocationConfig: "location",
|
|
10062
10062
|
});
|
|
10063
10063
|
yield poller.poll();
|
|
@@ -10071,7 +10071,7 @@ class BareMetalMachinesImpl {
|
|
|
10071
10071
|
* @param options The options parameters.
|
|
10072
10072
|
*/
|
|
10073
10073
|
beginReimageAndWait(resourceGroupName, bareMetalMachineName, options) {
|
|
10074
|
-
return tslib.__awaiter(this,
|
|
10074
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10075
10075
|
const poller = yield this.beginReimage(resourceGroupName, bareMetalMachineName, options);
|
|
10076
10076
|
return poller.pollUntilDone();
|
|
10077
10077
|
});
|
|
@@ -10083,17 +10083,17 @@ class BareMetalMachinesImpl {
|
|
|
10083
10083
|
* @param options The options parameters.
|
|
10084
10084
|
*/
|
|
10085
10085
|
beginReplace(resourceGroupName, bareMetalMachineName, options) {
|
|
10086
|
-
return tslib.__awaiter(this,
|
|
10087
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10086
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10087
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10088
10088
|
return this.client.sendOperationRequest(args, spec);
|
|
10089
10089
|
});
|
|
10090
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10090
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10091
10091
|
var _a;
|
|
10092
10092
|
let currentRawResponse = undefined;
|
|
10093
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10093
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10094
10094
|
const callback = (rawResponse, flatResponse) => {
|
|
10095
10095
|
currentRawResponse = rawResponse;
|
|
10096
|
-
providedCallback === null || providedCallback ===
|
|
10096
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10097
10097
|
};
|
|
10098
10098
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10099
10099
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10112,8 +10112,8 @@ class BareMetalMachinesImpl {
|
|
|
10112
10112
|
spec: replaceOperationSpec,
|
|
10113
10113
|
});
|
|
10114
10114
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10115
|
-
restoreFrom: options === null || options ===
|
|
10116
|
-
intervalInMs: options === null || options ===
|
|
10115
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10116
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10117
10117
|
resourceLocationConfig: "location",
|
|
10118
10118
|
});
|
|
10119
10119
|
yield poller.poll();
|
|
@@ -10127,7 +10127,7 @@ class BareMetalMachinesImpl {
|
|
|
10127
10127
|
* @param options The options parameters.
|
|
10128
10128
|
*/
|
|
10129
10129
|
beginReplaceAndWait(resourceGroupName, bareMetalMachineName, options) {
|
|
10130
|
-
return tslib.__awaiter(this,
|
|
10130
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10131
10131
|
const poller = yield this.beginReplace(resourceGroupName, bareMetalMachineName, options);
|
|
10132
10132
|
return poller.pollUntilDone();
|
|
10133
10133
|
});
|
|
@@ -10139,17 +10139,17 @@ class BareMetalMachinesImpl {
|
|
|
10139
10139
|
* @param options The options parameters.
|
|
10140
10140
|
*/
|
|
10141
10141
|
beginRestart(resourceGroupName, bareMetalMachineName, options) {
|
|
10142
|
-
return tslib.__awaiter(this,
|
|
10143
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10142
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10143
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10144
10144
|
return this.client.sendOperationRequest(args, spec);
|
|
10145
10145
|
});
|
|
10146
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10146
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10147
10147
|
var _a;
|
|
10148
10148
|
let currentRawResponse = undefined;
|
|
10149
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10149
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10150
10150
|
const callback = (rawResponse, flatResponse) => {
|
|
10151
10151
|
currentRawResponse = rawResponse;
|
|
10152
|
-
providedCallback === null || providedCallback ===
|
|
10152
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10153
10153
|
};
|
|
10154
10154
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10155
10155
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10168,8 +10168,8 @@ class BareMetalMachinesImpl {
|
|
|
10168
10168
|
spec: restartOperationSpec$1,
|
|
10169
10169
|
});
|
|
10170
10170
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10171
|
-
restoreFrom: options === null || options ===
|
|
10172
|
-
intervalInMs: options === null || options ===
|
|
10171
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10172
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10173
10173
|
resourceLocationConfig: "location",
|
|
10174
10174
|
});
|
|
10175
10175
|
yield poller.poll();
|
|
@@ -10183,7 +10183,7 @@ class BareMetalMachinesImpl {
|
|
|
10183
10183
|
* @param options The options parameters.
|
|
10184
10184
|
*/
|
|
10185
10185
|
beginRestartAndWait(resourceGroupName, bareMetalMachineName, options) {
|
|
10186
|
-
return tslib.__awaiter(this,
|
|
10186
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10187
10187
|
const poller = yield this.beginRestart(resourceGroupName, bareMetalMachineName, options);
|
|
10188
10188
|
return poller.pollUntilDone();
|
|
10189
10189
|
});
|
|
@@ -10198,17 +10198,17 @@ class BareMetalMachinesImpl {
|
|
|
10198
10198
|
* @param options The options parameters.
|
|
10199
10199
|
*/
|
|
10200
10200
|
beginRunCommand(resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, options) {
|
|
10201
|
-
return tslib.__awaiter(this,
|
|
10202
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10201
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10202
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10203
10203
|
return this.client.sendOperationRequest(args, spec);
|
|
10204
10204
|
});
|
|
10205
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10205
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10206
10206
|
var _a;
|
|
10207
10207
|
let currentRawResponse = undefined;
|
|
10208
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10208
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10209
10209
|
const callback = (rawResponse, flatResponse) => {
|
|
10210
10210
|
currentRawResponse = rawResponse;
|
|
10211
|
-
providedCallback === null || providedCallback ===
|
|
10211
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10212
10212
|
};
|
|
10213
10213
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10214
10214
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10232,8 +10232,8 @@ class BareMetalMachinesImpl {
|
|
|
10232
10232
|
spec: runCommandOperationSpec,
|
|
10233
10233
|
});
|
|
10234
10234
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10235
|
-
restoreFrom: options === null || options ===
|
|
10236
|
-
intervalInMs: options === null || options ===
|
|
10235
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10236
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10237
10237
|
resourceLocationConfig: "location",
|
|
10238
10238
|
});
|
|
10239
10239
|
yield poller.poll();
|
|
@@ -10250,7 +10250,7 @@ class BareMetalMachinesImpl {
|
|
|
10250
10250
|
* @param options The options parameters.
|
|
10251
10251
|
*/
|
|
10252
10252
|
beginRunCommandAndWait(resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, options) {
|
|
10253
|
-
return tslib.__awaiter(this,
|
|
10253
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10254
10254
|
const poller = yield this.beginRunCommand(resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, options);
|
|
10255
10255
|
return poller.pollUntilDone();
|
|
10256
10256
|
});
|
|
@@ -10265,17 +10265,17 @@ class BareMetalMachinesImpl {
|
|
|
10265
10265
|
* @param options The options parameters.
|
|
10266
10266
|
*/
|
|
10267
10267
|
beginRunDataExtracts(resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, options) {
|
|
10268
|
-
return tslib.__awaiter(this,
|
|
10269
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10268
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10269
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10270
10270
|
return this.client.sendOperationRequest(args, spec);
|
|
10271
10271
|
});
|
|
10272
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10272
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10273
10273
|
var _a;
|
|
10274
10274
|
let currentRawResponse = undefined;
|
|
10275
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10275
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10276
10276
|
const callback = (rawResponse, flatResponse) => {
|
|
10277
10277
|
currentRawResponse = rawResponse;
|
|
10278
|
-
providedCallback === null || providedCallback ===
|
|
10278
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10279
10279
|
};
|
|
10280
10280
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10281
10281
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10299,8 +10299,8 @@ class BareMetalMachinesImpl {
|
|
|
10299
10299
|
spec: runDataExtractsOperationSpec,
|
|
10300
10300
|
});
|
|
10301
10301
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10302
|
-
restoreFrom: options === null || options ===
|
|
10303
|
-
intervalInMs: options === null || options ===
|
|
10302
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10303
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10304
10304
|
resourceLocationConfig: "location",
|
|
10305
10305
|
});
|
|
10306
10306
|
yield poller.poll();
|
|
@@ -10317,7 +10317,7 @@ class BareMetalMachinesImpl {
|
|
|
10317
10317
|
* @param options The options parameters.
|
|
10318
10318
|
*/
|
|
10319
10319
|
beginRunDataExtractsAndWait(resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, options) {
|
|
10320
|
-
return tslib.__awaiter(this,
|
|
10320
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10321
10321
|
const poller = yield this.beginRunDataExtracts(resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, options);
|
|
10322
10322
|
return poller.pollUntilDone();
|
|
10323
10323
|
});
|
|
@@ -10332,17 +10332,17 @@ class BareMetalMachinesImpl {
|
|
|
10332
10332
|
* @param options The options parameters.
|
|
10333
10333
|
*/
|
|
10334
10334
|
beginRunReadCommands(resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, options) {
|
|
10335
|
-
return tslib.__awaiter(this,
|
|
10336
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10335
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10336
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10337
10337
|
return this.client.sendOperationRequest(args, spec);
|
|
10338
10338
|
});
|
|
10339
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10339
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10340
10340
|
var _a;
|
|
10341
10341
|
let currentRawResponse = undefined;
|
|
10342
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10342
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10343
10343
|
const callback = (rawResponse, flatResponse) => {
|
|
10344
10344
|
currentRawResponse = rawResponse;
|
|
10345
|
-
providedCallback === null || providedCallback ===
|
|
10345
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10346
10346
|
};
|
|
10347
10347
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10348
10348
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10366,8 +10366,8 @@ class BareMetalMachinesImpl {
|
|
|
10366
10366
|
spec: runReadCommandsOperationSpec,
|
|
10367
10367
|
});
|
|
10368
10368
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10369
|
-
restoreFrom: options === null || options ===
|
|
10370
|
-
intervalInMs: options === null || options ===
|
|
10369
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10370
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10371
10371
|
resourceLocationConfig: "location",
|
|
10372
10372
|
});
|
|
10373
10373
|
yield poller.poll();
|
|
@@ -10384,7 +10384,7 @@ class BareMetalMachinesImpl {
|
|
|
10384
10384
|
* @param options The options parameters.
|
|
10385
10385
|
*/
|
|
10386
10386
|
beginRunReadCommandsAndWait(resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, options) {
|
|
10387
|
-
return tslib.__awaiter(this,
|
|
10387
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10388
10388
|
const poller = yield this.beginRunReadCommands(resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, options);
|
|
10389
10389
|
return poller.pollUntilDone();
|
|
10390
10390
|
});
|
|
@@ -10396,17 +10396,17 @@ class BareMetalMachinesImpl {
|
|
|
10396
10396
|
* @param options The options parameters.
|
|
10397
10397
|
*/
|
|
10398
10398
|
beginStart(resourceGroupName, bareMetalMachineName, options) {
|
|
10399
|
-
return tslib.__awaiter(this,
|
|
10400
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10399
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10400
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10401
10401
|
return this.client.sendOperationRequest(args, spec);
|
|
10402
10402
|
});
|
|
10403
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10403
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10404
10404
|
var _a;
|
|
10405
10405
|
let currentRawResponse = undefined;
|
|
10406
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10406
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10407
10407
|
const callback = (rawResponse, flatResponse) => {
|
|
10408
10408
|
currentRawResponse = rawResponse;
|
|
10409
|
-
providedCallback === null || providedCallback ===
|
|
10409
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10410
10410
|
};
|
|
10411
10411
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10412
10412
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10425,8 +10425,8 @@ class BareMetalMachinesImpl {
|
|
|
10425
10425
|
spec: startOperationSpec$1,
|
|
10426
10426
|
});
|
|
10427
10427
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10428
|
-
restoreFrom: options === null || options ===
|
|
10429
|
-
intervalInMs: options === null || options ===
|
|
10428
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10429
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10430
10430
|
resourceLocationConfig: "location",
|
|
10431
10431
|
});
|
|
10432
10432
|
yield poller.poll();
|
|
@@ -10440,7 +10440,7 @@ class BareMetalMachinesImpl {
|
|
|
10440
10440
|
* @param options The options parameters.
|
|
10441
10441
|
*/
|
|
10442
10442
|
beginStartAndWait(resourceGroupName, bareMetalMachineName, options) {
|
|
10443
|
-
return tslib.__awaiter(this,
|
|
10443
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10444
10444
|
const poller = yield this.beginStart(resourceGroupName, bareMetalMachineName, options);
|
|
10445
10445
|
return poller.pollUntilDone();
|
|
10446
10446
|
});
|
|
@@ -10452,17 +10452,17 @@ class BareMetalMachinesImpl {
|
|
|
10452
10452
|
* @param options The options parameters.
|
|
10453
10453
|
*/
|
|
10454
10454
|
beginUncordon(resourceGroupName, bareMetalMachineName, options) {
|
|
10455
|
-
return tslib.__awaiter(this,
|
|
10456
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10455
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10456
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10457
10457
|
return this.client.sendOperationRequest(args, spec);
|
|
10458
10458
|
});
|
|
10459
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10459
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10460
10460
|
var _a;
|
|
10461
10461
|
let currentRawResponse = undefined;
|
|
10462
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10462
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10463
10463
|
const callback = (rawResponse, flatResponse) => {
|
|
10464
10464
|
currentRawResponse = rawResponse;
|
|
10465
|
-
providedCallback === null || providedCallback ===
|
|
10465
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10466
10466
|
};
|
|
10467
10467
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10468
10468
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10481,8 +10481,8 @@ class BareMetalMachinesImpl {
|
|
|
10481
10481
|
spec: uncordonOperationSpec,
|
|
10482
10482
|
});
|
|
10483
10483
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10484
|
-
restoreFrom: options === null || options ===
|
|
10485
|
-
intervalInMs: options === null || options ===
|
|
10484
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10485
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10486
10486
|
resourceLocationConfig: "location",
|
|
10487
10487
|
});
|
|
10488
10488
|
yield poller.poll();
|
|
@@ -10496,7 +10496,7 @@ class BareMetalMachinesImpl {
|
|
|
10496
10496
|
* @param options The options parameters.
|
|
10497
10497
|
*/
|
|
10498
10498
|
beginUncordonAndWait(resourceGroupName, bareMetalMachineName, options) {
|
|
10499
|
-
return tslib.__awaiter(this,
|
|
10499
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10500
10500
|
const poller = yield this.beginUncordon(resourceGroupName, bareMetalMachineName, options);
|
|
10501
10501
|
return poller.pollUntilDone();
|
|
10502
10502
|
});
|
|
@@ -11055,7 +11055,7 @@ class CloudServicesNetworksImpl {
|
|
|
11055
11055
|
return this;
|
|
11056
11056
|
},
|
|
11057
11057
|
byPage: (settings) => {
|
|
11058
|
-
if (settings === null || settings ===
|
|
11058
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11059
11059
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11060
11060
|
}
|
|
11061
11061
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -11065,7 +11065,7 @@ class CloudServicesNetworksImpl {
|
|
|
11065
11065
|
listBySubscriptionPagingPage(options, settings) {
|
|
11066
11066
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
11067
11067
|
let result;
|
|
11068
|
-
let continuationToken = settings === null || settings ===
|
|
11068
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11069
11069
|
if (!continuationToken) {
|
|
11070
11070
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
11071
11071
|
let page = result.value || [];
|
|
@@ -11117,7 +11117,7 @@ class CloudServicesNetworksImpl {
|
|
|
11117
11117
|
return this;
|
|
11118
11118
|
},
|
|
11119
11119
|
byPage: (settings) => {
|
|
11120
|
-
if (settings === null || settings ===
|
|
11120
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11121
11121
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11122
11122
|
}
|
|
11123
11123
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -11127,7 +11127,7 @@ class CloudServicesNetworksImpl {
|
|
|
11127
11127
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
11128
11128
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
11129
11129
|
let result;
|
|
11130
|
-
let continuationToken = settings === null || settings ===
|
|
11130
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11131
11131
|
if (!continuationToken) {
|
|
11132
11132
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
11133
11133
|
let page = result.value || [];
|
|
@@ -11196,17 +11196,17 @@ class CloudServicesNetworksImpl {
|
|
|
11196
11196
|
* @param options The options parameters.
|
|
11197
11197
|
*/
|
|
11198
11198
|
beginCreateOrUpdate(resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, options) {
|
|
11199
|
-
return tslib.__awaiter(this,
|
|
11200
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11199
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11200
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11201
11201
|
return this.client.sendOperationRequest(args, spec);
|
|
11202
11202
|
});
|
|
11203
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11203
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11204
11204
|
var _a;
|
|
11205
11205
|
let currentRawResponse = undefined;
|
|
11206
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11206
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11207
11207
|
const callback = (rawResponse, flatResponse) => {
|
|
11208
11208
|
currentRawResponse = rawResponse;
|
|
11209
|
-
providedCallback === null || providedCallback ===
|
|
11209
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11210
11210
|
};
|
|
11211
11211
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11212
11212
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11230,8 +11230,8 @@ class CloudServicesNetworksImpl {
|
|
|
11230
11230
|
spec: createOrUpdateOperationSpec$g,
|
|
11231
11231
|
});
|
|
11232
11232
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11233
|
-
restoreFrom: options === null || options ===
|
|
11234
|
-
intervalInMs: options === null || options ===
|
|
11233
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11234
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11235
11235
|
resourceLocationConfig: "azure-async-operation",
|
|
11236
11236
|
});
|
|
11237
11237
|
yield poller.poll();
|
|
@@ -11246,7 +11246,7 @@ class CloudServicesNetworksImpl {
|
|
|
11246
11246
|
* @param options The options parameters.
|
|
11247
11247
|
*/
|
|
11248
11248
|
beginCreateOrUpdateAndWait(resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, options) {
|
|
11249
|
-
return tslib.__awaiter(this,
|
|
11249
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11250
11250
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, options);
|
|
11251
11251
|
return poller.pollUntilDone();
|
|
11252
11252
|
});
|
|
@@ -11258,17 +11258,17 @@ class CloudServicesNetworksImpl {
|
|
|
11258
11258
|
* @param options The options parameters.
|
|
11259
11259
|
*/
|
|
11260
11260
|
beginDelete(resourceGroupName, cloudServicesNetworkName, options) {
|
|
11261
|
-
return tslib.__awaiter(this,
|
|
11262
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11261
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11262
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11263
11263
|
return this.client.sendOperationRequest(args, spec);
|
|
11264
11264
|
});
|
|
11265
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11265
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11266
11266
|
var _a;
|
|
11267
11267
|
let currentRawResponse = undefined;
|
|
11268
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11268
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11269
11269
|
const callback = (rawResponse, flatResponse) => {
|
|
11270
11270
|
currentRawResponse = rawResponse;
|
|
11271
|
-
providedCallback === null || providedCallback ===
|
|
11271
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11272
11272
|
};
|
|
11273
11273
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11274
11274
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11287,8 +11287,8 @@ class CloudServicesNetworksImpl {
|
|
|
11287
11287
|
spec: deleteOperationSpec$g,
|
|
11288
11288
|
});
|
|
11289
11289
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11290
|
-
restoreFrom: options === null || options ===
|
|
11291
|
-
intervalInMs: options === null || options ===
|
|
11290
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11291
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11292
11292
|
resourceLocationConfig: "location",
|
|
11293
11293
|
});
|
|
11294
11294
|
yield poller.poll();
|
|
@@ -11302,7 +11302,7 @@ class CloudServicesNetworksImpl {
|
|
|
11302
11302
|
* @param options The options parameters.
|
|
11303
11303
|
*/
|
|
11304
11304
|
beginDeleteAndWait(resourceGroupName, cloudServicesNetworkName, options) {
|
|
11305
|
-
return tslib.__awaiter(this,
|
|
11305
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11306
11306
|
const poller = yield this.beginDelete(resourceGroupName, cloudServicesNetworkName, options);
|
|
11307
11307
|
return poller.pollUntilDone();
|
|
11308
11308
|
});
|
|
@@ -11315,17 +11315,17 @@ class CloudServicesNetworksImpl {
|
|
|
11315
11315
|
* @param options The options parameters.
|
|
11316
11316
|
*/
|
|
11317
11317
|
beginUpdate(resourceGroupName, cloudServicesNetworkName, options) {
|
|
11318
|
-
return tslib.__awaiter(this,
|
|
11319
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11318
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11319
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11320
11320
|
return this.client.sendOperationRequest(args, spec);
|
|
11321
11321
|
});
|
|
11322
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11322
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11323
11323
|
var _a;
|
|
11324
11324
|
let currentRawResponse = undefined;
|
|
11325
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11325
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11326
11326
|
const callback = (rawResponse, flatResponse) => {
|
|
11327
11327
|
currentRawResponse = rawResponse;
|
|
11328
|
-
providedCallback === null || providedCallback ===
|
|
11328
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11329
11329
|
};
|
|
11330
11330
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11331
11331
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11344,8 +11344,8 @@ class CloudServicesNetworksImpl {
|
|
|
11344
11344
|
spec: updateOperationSpec$g,
|
|
11345
11345
|
});
|
|
11346
11346
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11347
|
-
restoreFrom: options === null || options ===
|
|
11348
|
-
intervalInMs: options === null || options ===
|
|
11347
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11348
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11349
11349
|
resourceLocationConfig: "azure-async-operation",
|
|
11350
11350
|
});
|
|
11351
11351
|
yield poller.poll();
|
|
@@ -11360,7 +11360,7 @@ class CloudServicesNetworksImpl {
|
|
|
11360
11360
|
* @param options The options parameters.
|
|
11361
11361
|
*/
|
|
11362
11362
|
beginUpdateAndWait(resourceGroupName, cloudServicesNetworkName, options) {
|
|
11363
|
-
return tslib.__awaiter(this,
|
|
11363
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11364
11364
|
const poller = yield this.beginUpdate(resourceGroupName, cloudServicesNetworkName, options);
|
|
11365
11365
|
return poller.pollUntilDone();
|
|
11366
11366
|
});
|
|
@@ -11607,7 +11607,7 @@ class ClusterManagersImpl {
|
|
|
11607
11607
|
return this;
|
|
11608
11608
|
},
|
|
11609
11609
|
byPage: (settings) => {
|
|
11610
|
-
if (settings === null || settings ===
|
|
11610
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11611
11611
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11612
11612
|
}
|
|
11613
11613
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -11617,7 +11617,7 @@ class ClusterManagersImpl {
|
|
|
11617
11617
|
listBySubscriptionPagingPage(options, settings) {
|
|
11618
11618
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
11619
11619
|
let result;
|
|
11620
|
-
let continuationToken = settings === null || settings ===
|
|
11620
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11621
11621
|
if (!continuationToken) {
|
|
11622
11622
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
11623
11623
|
let page = result.value || [];
|
|
@@ -11669,7 +11669,7 @@ class ClusterManagersImpl {
|
|
|
11669
11669
|
return this;
|
|
11670
11670
|
},
|
|
11671
11671
|
byPage: (settings) => {
|
|
11672
|
-
if (settings === null || settings ===
|
|
11672
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11673
11673
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11674
11674
|
}
|
|
11675
11675
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -11679,7 +11679,7 @@ class ClusterManagersImpl {
|
|
|
11679
11679
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
11680
11680
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
11681
11681
|
let result;
|
|
11682
|
-
let continuationToken = settings === null || settings ===
|
|
11682
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11683
11683
|
if (!continuationToken) {
|
|
11684
11684
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
11685
11685
|
let page = result.value || [];
|
|
@@ -11748,17 +11748,17 @@ class ClusterManagersImpl {
|
|
|
11748
11748
|
* @param options The options parameters.
|
|
11749
11749
|
*/
|
|
11750
11750
|
beginCreateOrUpdate(resourceGroupName, clusterManagerName, clusterManagerParameters, options) {
|
|
11751
|
-
return tslib.__awaiter(this,
|
|
11752
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11751
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11752
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11753
11753
|
return this.client.sendOperationRequest(args, spec);
|
|
11754
11754
|
});
|
|
11755
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11755
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11756
11756
|
var _a;
|
|
11757
11757
|
let currentRawResponse = undefined;
|
|
11758
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11758
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11759
11759
|
const callback = (rawResponse, flatResponse) => {
|
|
11760
11760
|
currentRawResponse = rawResponse;
|
|
11761
|
-
providedCallback === null || providedCallback ===
|
|
11761
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11762
11762
|
};
|
|
11763
11763
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11764
11764
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11782,8 +11782,8 @@ class ClusterManagersImpl {
|
|
|
11782
11782
|
spec: createOrUpdateOperationSpec$f,
|
|
11783
11783
|
});
|
|
11784
11784
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11785
|
-
restoreFrom: options === null || options ===
|
|
11786
|
-
intervalInMs: options === null || options ===
|
|
11785
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11786
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11787
11787
|
resourceLocationConfig: "azure-async-operation",
|
|
11788
11788
|
});
|
|
11789
11789
|
yield poller.poll();
|
|
@@ -11798,7 +11798,7 @@ class ClusterManagersImpl {
|
|
|
11798
11798
|
* @param options The options parameters.
|
|
11799
11799
|
*/
|
|
11800
11800
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterManagerName, clusterManagerParameters, options) {
|
|
11801
|
-
return tslib.__awaiter(this,
|
|
11801
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11802
11802
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterManagerName, clusterManagerParameters, options);
|
|
11803
11803
|
return poller.pollUntilDone();
|
|
11804
11804
|
});
|
|
@@ -11810,17 +11810,17 @@ class ClusterManagersImpl {
|
|
|
11810
11810
|
* @param options The options parameters.
|
|
11811
11811
|
*/
|
|
11812
11812
|
beginDelete(resourceGroupName, clusterManagerName, options) {
|
|
11813
|
-
return tslib.__awaiter(this,
|
|
11814
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11813
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11814
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11815
11815
|
return this.client.sendOperationRequest(args, spec);
|
|
11816
11816
|
});
|
|
11817
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11817
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11818
11818
|
var _a;
|
|
11819
11819
|
let currentRawResponse = undefined;
|
|
11820
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11820
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11821
11821
|
const callback = (rawResponse, flatResponse) => {
|
|
11822
11822
|
currentRawResponse = rawResponse;
|
|
11823
|
-
providedCallback === null || providedCallback ===
|
|
11823
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11824
11824
|
};
|
|
11825
11825
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11826
11826
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11839,8 +11839,8 @@ class ClusterManagersImpl {
|
|
|
11839
11839
|
spec: deleteOperationSpec$f,
|
|
11840
11840
|
});
|
|
11841
11841
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11842
|
-
restoreFrom: options === null || options ===
|
|
11843
|
-
intervalInMs: options === null || options ===
|
|
11842
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11843
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11844
11844
|
resourceLocationConfig: "location",
|
|
11845
11845
|
});
|
|
11846
11846
|
yield poller.poll();
|
|
@@ -11854,7 +11854,7 @@ class ClusterManagersImpl {
|
|
|
11854
11854
|
* @param options The options parameters.
|
|
11855
11855
|
*/
|
|
11856
11856
|
beginDeleteAndWait(resourceGroupName, clusterManagerName, options) {
|
|
11857
|
-
return tslib.__awaiter(this,
|
|
11857
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11858
11858
|
const poller = yield this.beginDelete(resourceGroupName, clusterManagerName, options);
|
|
11859
11859
|
return poller.pollUntilDone();
|
|
11860
11860
|
});
|
|
@@ -12102,7 +12102,7 @@ class ClustersImpl {
|
|
|
12102
12102
|
return this;
|
|
12103
12103
|
},
|
|
12104
12104
|
byPage: (settings) => {
|
|
12105
|
-
if (settings === null || settings ===
|
|
12105
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12106
12106
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12107
12107
|
}
|
|
12108
12108
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -12112,7 +12112,7 @@ class ClustersImpl {
|
|
|
12112
12112
|
listBySubscriptionPagingPage(options, settings) {
|
|
12113
12113
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
12114
12114
|
let result;
|
|
12115
|
-
let continuationToken = settings === null || settings ===
|
|
12115
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
12116
12116
|
if (!continuationToken) {
|
|
12117
12117
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
12118
12118
|
let page = result.value || [];
|
|
@@ -12164,7 +12164,7 @@ class ClustersImpl {
|
|
|
12164
12164
|
return this;
|
|
12165
12165
|
},
|
|
12166
12166
|
byPage: (settings) => {
|
|
12167
|
-
if (settings === null || settings ===
|
|
12167
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12168
12168
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12169
12169
|
}
|
|
12170
12170
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -12174,7 +12174,7 @@ class ClustersImpl {
|
|
|
12174
12174
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
12175
12175
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
12176
12176
|
let result;
|
|
12177
|
-
let continuationToken = settings === null || settings ===
|
|
12177
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
12178
12178
|
if (!continuationToken) {
|
|
12179
12179
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
12180
12180
|
let page = result.value || [];
|
|
@@ -12243,17 +12243,17 @@ class ClustersImpl {
|
|
|
12243
12243
|
* @param options The options parameters.
|
|
12244
12244
|
*/
|
|
12245
12245
|
beginCreateOrUpdate(resourceGroupName, clusterName, clusterParameters, options) {
|
|
12246
|
-
return tslib.__awaiter(this,
|
|
12247
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12246
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12247
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12248
12248
|
return this.client.sendOperationRequest(args, spec);
|
|
12249
12249
|
});
|
|
12250
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12250
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12251
12251
|
var _a;
|
|
12252
12252
|
let currentRawResponse = undefined;
|
|
12253
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12253
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12254
12254
|
const callback = (rawResponse, flatResponse) => {
|
|
12255
12255
|
currentRawResponse = rawResponse;
|
|
12256
|
-
providedCallback === null || providedCallback ===
|
|
12256
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12257
12257
|
};
|
|
12258
12258
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12259
12259
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12272,8 +12272,8 @@ class ClustersImpl {
|
|
|
12272
12272
|
spec: createOrUpdateOperationSpec$e,
|
|
12273
12273
|
});
|
|
12274
12274
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12275
|
-
restoreFrom: options === null || options ===
|
|
12276
|
-
intervalInMs: options === null || options ===
|
|
12275
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12276
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12277
12277
|
resourceLocationConfig: "azure-async-operation",
|
|
12278
12278
|
});
|
|
12279
12279
|
yield poller.poll();
|
|
@@ -12288,7 +12288,7 @@ class ClustersImpl {
|
|
|
12288
12288
|
* @param options The options parameters.
|
|
12289
12289
|
*/
|
|
12290
12290
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, clusterParameters, options) {
|
|
12291
|
-
return tslib.__awaiter(this,
|
|
12291
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12292
12292
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, clusterParameters, options);
|
|
12293
12293
|
return poller.pollUntilDone();
|
|
12294
12294
|
});
|
|
@@ -12300,17 +12300,17 @@ class ClustersImpl {
|
|
|
12300
12300
|
* @param options The options parameters.
|
|
12301
12301
|
*/
|
|
12302
12302
|
beginDelete(resourceGroupName, clusterName, options) {
|
|
12303
|
-
return tslib.__awaiter(this,
|
|
12304
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12303
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12304
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12305
12305
|
return this.client.sendOperationRequest(args, spec);
|
|
12306
12306
|
});
|
|
12307
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12307
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12308
12308
|
var _a;
|
|
12309
12309
|
let currentRawResponse = undefined;
|
|
12310
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12310
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12311
12311
|
const callback = (rawResponse, flatResponse) => {
|
|
12312
12312
|
currentRawResponse = rawResponse;
|
|
12313
|
-
providedCallback === null || providedCallback ===
|
|
12313
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12314
12314
|
};
|
|
12315
12315
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12316
12316
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12329,8 +12329,8 @@ class ClustersImpl {
|
|
|
12329
12329
|
spec: deleteOperationSpec$e,
|
|
12330
12330
|
});
|
|
12331
12331
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12332
|
-
restoreFrom: options === null || options ===
|
|
12333
|
-
intervalInMs: options === null || options ===
|
|
12332
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12333
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12334
12334
|
resourceLocationConfig: "location",
|
|
12335
12335
|
});
|
|
12336
12336
|
yield poller.poll();
|
|
@@ -12344,7 +12344,7 @@ class ClustersImpl {
|
|
|
12344
12344
|
* @param options The options parameters.
|
|
12345
12345
|
*/
|
|
12346
12346
|
beginDeleteAndWait(resourceGroupName, clusterName, options) {
|
|
12347
|
-
return tslib.__awaiter(this,
|
|
12347
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12348
12348
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
|
|
12349
12349
|
return poller.pollUntilDone();
|
|
12350
12350
|
});
|
|
@@ -12357,17 +12357,17 @@ class ClustersImpl {
|
|
|
12357
12357
|
* @param options The options parameters.
|
|
12358
12358
|
*/
|
|
12359
12359
|
beginUpdate(resourceGroupName, clusterName, options) {
|
|
12360
|
-
return tslib.__awaiter(this,
|
|
12361
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12360
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12361
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12362
12362
|
return this.client.sendOperationRequest(args, spec);
|
|
12363
12363
|
});
|
|
12364
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12364
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12365
12365
|
var _a;
|
|
12366
12366
|
let currentRawResponse = undefined;
|
|
12367
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12367
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12368
12368
|
const callback = (rawResponse, flatResponse) => {
|
|
12369
12369
|
currentRawResponse = rawResponse;
|
|
12370
|
-
providedCallback === null || providedCallback ===
|
|
12370
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12371
12371
|
};
|
|
12372
12372
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12373
12373
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12386,8 +12386,8 @@ class ClustersImpl {
|
|
|
12386
12386
|
spec: updateOperationSpec$e,
|
|
12387
12387
|
});
|
|
12388
12388
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12389
|
-
restoreFrom: options === null || options ===
|
|
12390
|
-
intervalInMs: options === null || options ===
|
|
12389
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12390
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12391
12391
|
resourceLocationConfig: "azure-async-operation",
|
|
12392
12392
|
});
|
|
12393
12393
|
yield poller.poll();
|
|
@@ -12402,7 +12402,7 @@ class ClustersImpl {
|
|
|
12402
12402
|
* @param options The options parameters.
|
|
12403
12403
|
*/
|
|
12404
12404
|
beginUpdateAndWait(resourceGroupName, clusterName, options) {
|
|
12405
|
-
return tslib.__awaiter(this,
|
|
12405
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12406
12406
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, options);
|
|
12407
12407
|
return poller.pollUntilDone();
|
|
12408
12408
|
});
|
|
@@ -12416,17 +12416,17 @@ class ClustersImpl {
|
|
|
12416
12416
|
* @param options The options parameters.
|
|
12417
12417
|
*/
|
|
12418
12418
|
beginContinueUpdateVersion(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, options) {
|
|
12419
|
-
return tslib.__awaiter(this,
|
|
12420
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12419
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12420
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12421
12421
|
return this.client.sendOperationRequest(args, spec);
|
|
12422
12422
|
});
|
|
12423
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12423
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12424
12424
|
var _a;
|
|
12425
12425
|
let currentRawResponse = undefined;
|
|
12426
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12426
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12427
12427
|
const callback = (rawResponse, flatResponse) => {
|
|
12428
12428
|
currentRawResponse = rawResponse;
|
|
12429
|
-
providedCallback === null || providedCallback ===
|
|
12429
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12430
12430
|
};
|
|
12431
12431
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12432
12432
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12450,8 +12450,8 @@ class ClustersImpl {
|
|
|
12450
12450
|
spec: continueUpdateVersionOperationSpec,
|
|
12451
12451
|
});
|
|
12452
12452
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12453
|
-
restoreFrom: options === null || options ===
|
|
12454
|
-
intervalInMs: options === null || options ===
|
|
12453
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12454
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12455
12455
|
resourceLocationConfig: "location",
|
|
12456
12456
|
});
|
|
12457
12457
|
yield poller.poll();
|
|
@@ -12467,7 +12467,7 @@ class ClustersImpl {
|
|
|
12467
12467
|
* @param options The options parameters.
|
|
12468
12468
|
*/
|
|
12469
12469
|
beginContinueUpdateVersionAndWait(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, options) {
|
|
12470
|
-
return tslib.__awaiter(this,
|
|
12470
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12471
12471
|
const poller = yield this.beginContinueUpdateVersion(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, options);
|
|
12472
12472
|
return poller.pollUntilDone();
|
|
12473
12473
|
});
|
|
@@ -12479,17 +12479,17 @@ class ClustersImpl {
|
|
|
12479
12479
|
* @param options The options parameters.
|
|
12480
12480
|
*/
|
|
12481
12481
|
beginDeploy(resourceGroupName, clusterName, options) {
|
|
12482
|
-
return tslib.__awaiter(this,
|
|
12483
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12482
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12483
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12484
12484
|
return this.client.sendOperationRequest(args, spec);
|
|
12485
12485
|
});
|
|
12486
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12486
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12487
12487
|
var _a;
|
|
12488
12488
|
let currentRawResponse = undefined;
|
|
12489
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12489
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12490
12490
|
const callback = (rawResponse, flatResponse) => {
|
|
12491
12491
|
currentRawResponse = rawResponse;
|
|
12492
|
-
providedCallback === null || providedCallback ===
|
|
12492
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12493
12493
|
};
|
|
12494
12494
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12495
12495
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12508,8 +12508,8 @@ class ClustersImpl {
|
|
|
12508
12508
|
spec: deployOperationSpec,
|
|
12509
12509
|
});
|
|
12510
12510
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12511
|
-
restoreFrom: options === null || options ===
|
|
12512
|
-
intervalInMs: options === null || options ===
|
|
12511
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12512
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12513
12513
|
resourceLocationConfig: "location",
|
|
12514
12514
|
});
|
|
12515
12515
|
yield poller.poll();
|
|
@@ -12523,7 +12523,7 @@ class ClustersImpl {
|
|
|
12523
12523
|
* @param options The options parameters.
|
|
12524
12524
|
*/
|
|
12525
12525
|
beginDeployAndWait(resourceGroupName, clusterName, options) {
|
|
12526
|
-
return tslib.__awaiter(this,
|
|
12526
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12527
12527
|
const poller = yield this.beginDeploy(resourceGroupName, clusterName, options);
|
|
12528
12528
|
return poller.pollUntilDone();
|
|
12529
12529
|
});
|
|
@@ -12536,17 +12536,17 @@ class ClustersImpl {
|
|
|
12536
12536
|
* @param options The options parameters.
|
|
12537
12537
|
*/
|
|
12538
12538
|
beginScanRuntime(resourceGroupName, clusterName, options) {
|
|
12539
|
-
return tslib.__awaiter(this,
|
|
12540
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12539
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12540
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12541
12541
|
return this.client.sendOperationRequest(args, spec);
|
|
12542
12542
|
});
|
|
12543
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12543
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12544
12544
|
var _a;
|
|
12545
12545
|
let currentRawResponse = undefined;
|
|
12546
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12546
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12547
12547
|
const callback = (rawResponse, flatResponse) => {
|
|
12548
12548
|
currentRawResponse = rawResponse;
|
|
12549
|
-
providedCallback === null || providedCallback ===
|
|
12549
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12550
12550
|
};
|
|
12551
12551
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12552
12552
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12565,8 +12565,8 @@ class ClustersImpl {
|
|
|
12565
12565
|
spec: scanRuntimeOperationSpec,
|
|
12566
12566
|
});
|
|
12567
12567
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12568
|
-
restoreFrom: options === null || options ===
|
|
12569
|
-
intervalInMs: options === null || options ===
|
|
12568
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12569
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12570
12570
|
resourceLocationConfig: "location",
|
|
12571
12571
|
});
|
|
12572
12572
|
yield poller.poll();
|
|
@@ -12581,7 +12581,7 @@ class ClustersImpl {
|
|
|
12581
12581
|
* @param options The options parameters.
|
|
12582
12582
|
*/
|
|
12583
12583
|
beginScanRuntimeAndWait(resourceGroupName, clusterName, options) {
|
|
12584
|
-
return tslib.__awaiter(this,
|
|
12584
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12585
12585
|
const poller = yield this.beginScanRuntime(resourceGroupName, clusterName, options);
|
|
12586
12586
|
return poller.pollUntilDone();
|
|
12587
12587
|
});
|
|
@@ -12594,17 +12594,17 @@ class ClustersImpl {
|
|
|
12594
12594
|
* @param options The options parameters.
|
|
12595
12595
|
*/
|
|
12596
12596
|
beginUpdateVersion(resourceGroupName, clusterName, clusterUpdateVersionParameters, options) {
|
|
12597
|
-
return tslib.__awaiter(this,
|
|
12598
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12597
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12598
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12599
12599
|
return this.client.sendOperationRequest(args, spec);
|
|
12600
12600
|
});
|
|
12601
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12601
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12602
12602
|
var _a;
|
|
12603
12603
|
let currentRawResponse = undefined;
|
|
12604
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12604
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12605
12605
|
const callback = (rawResponse, flatResponse) => {
|
|
12606
12606
|
currentRawResponse = rawResponse;
|
|
12607
|
-
providedCallback === null || providedCallback ===
|
|
12607
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12608
12608
|
};
|
|
12609
12609
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12610
12610
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12628,8 +12628,8 @@ class ClustersImpl {
|
|
|
12628
12628
|
spec: updateVersionOperationSpec,
|
|
12629
12629
|
});
|
|
12630
12630
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12631
|
-
restoreFrom: options === null || options ===
|
|
12632
|
-
intervalInMs: options === null || options ===
|
|
12631
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12632
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12633
12633
|
resourceLocationConfig: "location",
|
|
12634
12634
|
});
|
|
12635
12635
|
yield poller.poll();
|
|
@@ -12644,7 +12644,7 @@ class ClustersImpl {
|
|
|
12644
12644
|
* @param options The options parameters.
|
|
12645
12645
|
*/
|
|
12646
12646
|
beginUpdateVersionAndWait(resourceGroupName, clusterName, clusterUpdateVersionParameters, options) {
|
|
12647
|
-
return tslib.__awaiter(this,
|
|
12647
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12648
12648
|
const poller = yield this.beginUpdateVersion(resourceGroupName, clusterName, clusterUpdateVersionParameters, options);
|
|
12649
12649
|
return poller.pollUntilDone();
|
|
12650
12650
|
});
|
|
@@ -13019,7 +13019,7 @@ class KubernetesClustersImpl {
|
|
|
13019
13019
|
return this;
|
|
13020
13020
|
},
|
|
13021
13021
|
byPage: (settings) => {
|
|
13022
|
-
if (settings === null || settings ===
|
|
13022
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
13023
13023
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13024
13024
|
}
|
|
13025
13025
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -13029,7 +13029,7 @@ class KubernetesClustersImpl {
|
|
|
13029
13029
|
listBySubscriptionPagingPage(options, settings) {
|
|
13030
13030
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
13031
13031
|
let result;
|
|
13032
|
-
let continuationToken = settings === null || settings ===
|
|
13032
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
13033
13033
|
if (!continuationToken) {
|
|
13034
13034
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
13035
13035
|
let page = result.value || [];
|
|
@@ -13081,7 +13081,7 @@ class KubernetesClustersImpl {
|
|
|
13081
13081
|
return this;
|
|
13082
13082
|
},
|
|
13083
13083
|
byPage: (settings) => {
|
|
13084
|
-
if (settings === null || settings ===
|
|
13084
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
13085
13085
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13086
13086
|
}
|
|
13087
13087
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -13091,7 +13091,7 @@ class KubernetesClustersImpl {
|
|
|
13091
13091
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
13092
13092
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
13093
13093
|
let result;
|
|
13094
|
-
let continuationToken = settings === null || settings ===
|
|
13094
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
13095
13095
|
if (!continuationToken) {
|
|
13096
13096
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
13097
13097
|
let page = result.value || [];
|
|
@@ -13160,17 +13160,17 @@ class KubernetesClustersImpl {
|
|
|
13160
13160
|
* @param options The options parameters.
|
|
13161
13161
|
*/
|
|
13162
13162
|
beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, options) {
|
|
13163
|
-
return tslib.__awaiter(this,
|
|
13164
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
13163
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13164
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13165
13165
|
return this.client.sendOperationRequest(args, spec);
|
|
13166
13166
|
});
|
|
13167
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
13167
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13168
13168
|
var _a;
|
|
13169
13169
|
let currentRawResponse = undefined;
|
|
13170
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
13170
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
13171
13171
|
const callback = (rawResponse, flatResponse) => {
|
|
13172
13172
|
currentRawResponse = rawResponse;
|
|
13173
|
-
providedCallback === null || providedCallback ===
|
|
13173
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
13174
13174
|
};
|
|
13175
13175
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
13176
13176
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -13194,8 +13194,8 @@ class KubernetesClustersImpl {
|
|
|
13194
13194
|
spec: createOrUpdateOperationSpec$d,
|
|
13195
13195
|
});
|
|
13196
13196
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
13197
|
-
restoreFrom: options === null || options ===
|
|
13198
|
-
intervalInMs: options === null || options ===
|
|
13197
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
13198
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
13199
13199
|
resourceLocationConfig: "azure-async-operation",
|
|
13200
13200
|
});
|
|
13201
13201
|
yield poller.poll();
|
|
@@ -13210,7 +13210,7 @@ class KubernetesClustersImpl {
|
|
|
13210
13210
|
* @param options The options parameters.
|
|
13211
13211
|
*/
|
|
13212
13212
|
beginCreateOrUpdateAndWait(resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, options) {
|
|
13213
|
-
return tslib.__awaiter(this,
|
|
13213
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13214
13214
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, options);
|
|
13215
13215
|
return poller.pollUntilDone();
|
|
13216
13216
|
});
|
|
@@ -13222,17 +13222,17 @@ class KubernetesClustersImpl {
|
|
|
13222
13222
|
* @param options The options parameters.
|
|
13223
13223
|
*/
|
|
13224
13224
|
beginDelete(resourceGroupName, kubernetesClusterName, options) {
|
|
13225
|
-
return tslib.__awaiter(this,
|
|
13226
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
13225
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13226
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13227
13227
|
return this.client.sendOperationRequest(args, spec);
|
|
13228
13228
|
});
|
|
13229
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
13229
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13230
13230
|
var _a;
|
|
13231
13231
|
let currentRawResponse = undefined;
|
|
13232
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
13232
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
13233
13233
|
const callback = (rawResponse, flatResponse) => {
|
|
13234
13234
|
currentRawResponse = rawResponse;
|
|
13235
|
-
providedCallback === null || providedCallback ===
|
|
13235
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
13236
13236
|
};
|
|
13237
13237
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
13238
13238
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -13251,8 +13251,8 @@ class KubernetesClustersImpl {
|
|
|
13251
13251
|
spec: deleteOperationSpec$d,
|
|
13252
13252
|
});
|
|
13253
13253
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
13254
|
-
restoreFrom: options === null || options ===
|
|
13255
|
-
intervalInMs: options === null || options ===
|
|
13254
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
13255
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
13256
13256
|
resourceLocationConfig: "location",
|
|
13257
13257
|
});
|
|
13258
13258
|
yield poller.poll();
|
|
@@ -13266,7 +13266,7 @@ class KubernetesClustersImpl {
|
|
|
13266
13266
|
* @param options The options parameters.
|
|
13267
13267
|
*/
|
|
13268
13268
|
beginDeleteAndWait(resourceGroupName, kubernetesClusterName, options) {
|
|
13269
|
-
return tslib.__awaiter(this,
|
|
13269
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13270
13270
|
const poller = yield this.beginDelete(resourceGroupName, kubernetesClusterName, options);
|
|
13271
13271
|
return poller.pollUntilDone();
|
|
13272
13272
|
});
|
|
@@ -13279,17 +13279,17 @@ class KubernetesClustersImpl {
|
|
|
13279
13279
|
* @param options The options parameters.
|
|
13280
13280
|
*/
|
|
13281
13281
|
beginUpdate(resourceGroupName, kubernetesClusterName, options) {
|
|
13282
|
-
return tslib.__awaiter(this,
|
|
13283
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
13282
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13283
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13284
13284
|
return this.client.sendOperationRequest(args, spec);
|
|
13285
13285
|
});
|
|
13286
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
13286
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13287
13287
|
var _a;
|
|
13288
13288
|
let currentRawResponse = undefined;
|
|
13289
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
13289
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
13290
13290
|
const callback = (rawResponse, flatResponse) => {
|
|
13291
13291
|
currentRawResponse = rawResponse;
|
|
13292
|
-
providedCallback === null || providedCallback ===
|
|
13292
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
13293
13293
|
};
|
|
13294
13294
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
13295
13295
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -13308,8 +13308,8 @@ class KubernetesClustersImpl {
|
|
|
13308
13308
|
spec: updateOperationSpec$d,
|
|
13309
13309
|
});
|
|
13310
13310
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
13311
|
-
restoreFrom: options === null || options ===
|
|
13312
|
-
intervalInMs: options === null || options ===
|
|
13311
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
13312
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
13313
13313
|
resourceLocationConfig: "azure-async-operation",
|
|
13314
13314
|
});
|
|
13315
13315
|
yield poller.poll();
|
|
@@ -13324,7 +13324,7 @@ class KubernetesClustersImpl {
|
|
|
13324
13324
|
* @param options The options parameters.
|
|
13325
13325
|
*/
|
|
13326
13326
|
beginUpdateAndWait(resourceGroupName, kubernetesClusterName, options) {
|
|
13327
|
-
return tslib.__awaiter(this,
|
|
13327
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13328
13328
|
const poller = yield this.beginUpdate(resourceGroupName, kubernetesClusterName, options);
|
|
13329
13329
|
return poller.pollUntilDone();
|
|
13330
13330
|
});
|
|
@@ -13337,17 +13337,17 @@ class KubernetesClustersImpl {
|
|
|
13337
13337
|
* @param options The options parameters.
|
|
13338
13338
|
*/
|
|
13339
13339
|
beginRestartNode(resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, options) {
|
|
13340
|
-
return tslib.__awaiter(this,
|
|
13341
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
13340
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13341
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13342
13342
|
return this.client.sendOperationRequest(args, spec);
|
|
13343
13343
|
});
|
|
13344
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
13344
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13345
13345
|
var _a;
|
|
13346
13346
|
let currentRawResponse = undefined;
|
|
13347
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
13347
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
13348
13348
|
const callback = (rawResponse, flatResponse) => {
|
|
13349
13349
|
currentRawResponse = rawResponse;
|
|
13350
|
-
providedCallback === null || providedCallback ===
|
|
13350
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
13351
13351
|
};
|
|
13352
13352
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
13353
13353
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -13371,8 +13371,8 @@ class KubernetesClustersImpl {
|
|
|
13371
13371
|
spec: restartNodeOperationSpec,
|
|
13372
13372
|
});
|
|
13373
13373
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
13374
|
-
restoreFrom: options === null || options ===
|
|
13375
|
-
intervalInMs: options === null || options ===
|
|
13374
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
13375
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
13376
13376
|
resourceLocationConfig: "location",
|
|
13377
13377
|
});
|
|
13378
13378
|
yield poller.poll();
|
|
@@ -13387,7 +13387,7 @@ class KubernetesClustersImpl {
|
|
|
13387
13387
|
* @param options The options parameters.
|
|
13388
13388
|
*/
|
|
13389
13389
|
beginRestartNodeAndWait(resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, options) {
|
|
13390
|
-
return tslib.__awaiter(this,
|
|
13390
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13391
13391
|
const poller = yield this.beginRestartNode(resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, options);
|
|
13392
13392
|
return poller.pollUntilDone();
|
|
13393
13393
|
});
|
|
@@ -13666,7 +13666,7 @@ class L2NetworksImpl {
|
|
|
13666
13666
|
return this;
|
|
13667
13667
|
},
|
|
13668
13668
|
byPage: (settings) => {
|
|
13669
|
-
if (settings === null || settings ===
|
|
13669
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
13670
13670
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13671
13671
|
}
|
|
13672
13672
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -13676,7 +13676,7 @@ class L2NetworksImpl {
|
|
|
13676
13676
|
listBySubscriptionPagingPage(options, settings) {
|
|
13677
13677
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
13678
13678
|
let result;
|
|
13679
|
-
let continuationToken = settings === null || settings ===
|
|
13679
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
13680
13680
|
if (!continuationToken) {
|
|
13681
13681
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
13682
13682
|
let page = result.value || [];
|
|
@@ -13728,7 +13728,7 @@ class L2NetworksImpl {
|
|
|
13728
13728
|
return this;
|
|
13729
13729
|
},
|
|
13730
13730
|
byPage: (settings) => {
|
|
13731
|
-
if (settings === null || settings ===
|
|
13731
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
13732
13732
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13733
13733
|
}
|
|
13734
13734
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -13738,7 +13738,7 @@ class L2NetworksImpl {
|
|
|
13738
13738
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
13739
13739
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
13740
13740
|
let result;
|
|
13741
|
-
let continuationToken = settings === null || settings ===
|
|
13741
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
13742
13742
|
if (!continuationToken) {
|
|
13743
13743
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
13744
13744
|
let page = result.value || [];
|
|
@@ -13807,17 +13807,17 @@ class L2NetworksImpl {
|
|
|
13807
13807
|
* @param options The options parameters.
|
|
13808
13808
|
*/
|
|
13809
13809
|
beginCreateOrUpdate(resourceGroupName, l2NetworkName, l2NetworkParameters, options) {
|
|
13810
|
-
return tslib.__awaiter(this,
|
|
13811
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
13810
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13811
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13812
13812
|
return this.client.sendOperationRequest(args, spec);
|
|
13813
13813
|
});
|
|
13814
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
13814
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13815
13815
|
var _a;
|
|
13816
13816
|
let currentRawResponse = undefined;
|
|
13817
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
13817
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
13818
13818
|
const callback = (rawResponse, flatResponse) => {
|
|
13819
13819
|
currentRawResponse = rawResponse;
|
|
13820
|
-
providedCallback === null || providedCallback ===
|
|
13820
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
13821
13821
|
};
|
|
13822
13822
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
13823
13823
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -13836,8 +13836,8 @@ class L2NetworksImpl {
|
|
|
13836
13836
|
spec: createOrUpdateOperationSpec$c,
|
|
13837
13837
|
});
|
|
13838
13838
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
13839
|
-
restoreFrom: options === null || options ===
|
|
13840
|
-
intervalInMs: options === null || options ===
|
|
13839
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
13840
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
13841
13841
|
resourceLocationConfig: "azure-async-operation",
|
|
13842
13842
|
});
|
|
13843
13843
|
yield poller.poll();
|
|
@@ -13852,7 +13852,7 @@ class L2NetworksImpl {
|
|
|
13852
13852
|
* @param options The options parameters.
|
|
13853
13853
|
*/
|
|
13854
13854
|
beginCreateOrUpdateAndWait(resourceGroupName, l2NetworkName, l2NetworkParameters, options) {
|
|
13855
|
-
return tslib.__awaiter(this,
|
|
13855
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13856
13856
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, l2NetworkName, l2NetworkParameters, options);
|
|
13857
13857
|
return poller.pollUntilDone();
|
|
13858
13858
|
});
|
|
@@ -13864,17 +13864,17 @@ class L2NetworksImpl {
|
|
|
13864
13864
|
* @param options The options parameters.
|
|
13865
13865
|
*/
|
|
13866
13866
|
beginDelete(resourceGroupName, l2NetworkName, options) {
|
|
13867
|
-
return tslib.__awaiter(this,
|
|
13868
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
13867
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13868
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13869
13869
|
return this.client.sendOperationRequest(args, spec);
|
|
13870
13870
|
});
|
|
13871
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
13871
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13872
13872
|
var _a;
|
|
13873
13873
|
let currentRawResponse = undefined;
|
|
13874
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
13874
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
13875
13875
|
const callback = (rawResponse, flatResponse) => {
|
|
13876
13876
|
currentRawResponse = rawResponse;
|
|
13877
|
-
providedCallback === null || providedCallback ===
|
|
13877
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
13878
13878
|
};
|
|
13879
13879
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
13880
13880
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -13893,8 +13893,8 @@ class L2NetworksImpl {
|
|
|
13893
13893
|
spec: deleteOperationSpec$c,
|
|
13894
13894
|
});
|
|
13895
13895
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
13896
|
-
restoreFrom: options === null || options ===
|
|
13897
|
-
intervalInMs: options === null || options ===
|
|
13896
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
13897
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
13898
13898
|
resourceLocationConfig: "location",
|
|
13899
13899
|
});
|
|
13900
13900
|
yield poller.poll();
|
|
@@ -13908,7 +13908,7 @@ class L2NetworksImpl {
|
|
|
13908
13908
|
* @param options The options parameters.
|
|
13909
13909
|
*/
|
|
13910
13910
|
beginDeleteAndWait(resourceGroupName, l2NetworkName, options) {
|
|
13911
|
-
return tslib.__awaiter(this,
|
|
13911
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13912
13912
|
const poller = yield this.beginDelete(resourceGroupName, l2NetworkName, options);
|
|
13913
13913
|
return poller.pollUntilDone();
|
|
13914
13914
|
});
|
|
@@ -14155,7 +14155,7 @@ class L3NetworksImpl {
|
|
|
14155
14155
|
return this;
|
|
14156
14156
|
},
|
|
14157
14157
|
byPage: (settings) => {
|
|
14158
|
-
if (settings === null || settings ===
|
|
14158
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
14159
14159
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14160
14160
|
}
|
|
14161
14161
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -14165,7 +14165,7 @@ class L3NetworksImpl {
|
|
|
14165
14165
|
listBySubscriptionPagingPage(options, settings) {
|
|
14166
14166
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
14167
14167
|
let result;
|
|
14168
|
-
let continuationToken = settings === null || settings ===
|
|
14168
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
14169
14169
|
if (!continuationToken) {
|
|
14170
14170
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
14171
14171
|
let page = result.value || [];
|
|
@@ -14217,7 +14217,7 @@ class L3NetworksImpl {
|
|
|
14217
14217
|
return this;
|
|
14218
14218
|
},
|
|
14219
14219
|
byPage: (settings) => {
|
|
14220
|
-
if (settings === null || settings ===
|
|
14220
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
14221
14221
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14222
14222
|
}
|
|
14223
14223
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -14227,7 +14227,7 @@ class L3NetworksImpl {
|
|
|
14227
14227
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
14228
14228
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
14229
14229
|
let result;
|
|
14230
|
-
let continuationToken = settings === null || settings ===
|
|
14230
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
14231
14231
|
if (!continuationToken) {
|
|
14232
14232
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
14233
14233
|
let page = result.value || [];
|
|
@@ -14296,17 +14296,17 @@ class L3NetworksImpl {
|
|
|
14296
14296
|
* @param options The options parameters.
|
|
14297
14297
|
*/
|
|
14298
14298
|
beginCreateOrUpdate(resourceGroupName, l3NetworkName, l3NetworkParameters, options) {
|
|
14299
|
-
return tslib.__awaiter(this,
|
|
14300
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
14299
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14300
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14301
14301
|
return this.client.sendOperationRequest(args, spec);
|
|
14302
14302
|
});
|
|
14303
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
14303
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14304
14304
|
var _a;
|
|
14305
14305
|
let currentRawResponse = undefined;
|
|
14306
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
14306
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
14307
14307
|
const callback = (rawResponse, flatResponse) => {
|
|
14308
14308
|
currentRawResponse = rawResponse;
|
|
14309
|
-
providedCallback === null || providedCallback ===
|
|
14309
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
14310
14310
|
};
|
|
14311
14311
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
14312
14312
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -14325,8 +14325,8 @@ class L3NetworksImpl {
|
|
|
14325
14325
|
spec: createOrUpdateOperationSpec$b,
|
|
14326
14326
|
});
|
|
14327
14327
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
14328
|
-
restoreFrom: options === null || options ===
|
|
14329
|
-
intervalInMs: options === null || options ===
|
|
14328
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
14329
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
14330
14330
|
resourceLocationConfig: "azure-async-operation",
|
|
14331
14331
|
});
|
|
14332
14332
|
yield poller.poll();
|
|
@@ -14341,7 +14341,7 @@ class L3NetworksImpl {
|
|
|
14341
14341
|
* @param options The options parameters.
|
|
14342
14342
|
*/
|
|
14343
14343
|
beginCreateOrUpdateAndWait(resourceGroupName, l3NetworkName, l3NetworkParameters, options) {
|
|
14344
|
-
return tslib.__awaiter(this,
|
|
14344
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14345
14345
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, l3NetworkName, l3NetworkParameters, options);
|
|
14346
14346
|
return poller.pollUntilDone();
|
|
14347
14347
|
});
|
|
@@ -14353,17 +14353,17 @@ class L3NetworksImpl {
|
|
|
14353
14353
|
* @param options The options parameters.
|
|
14354
14354
|
*/
|
|
14355
14355
|
beginDelete(resourceGroupName, l3NetworkName, options) {
|
|
14356
|
-
return tslib.__awaiter(this,
|
|
14357
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
14356
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14357
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14358
14358
|
return this.client.sendOperationRequest(args, spec);
|
|
14359
14359
|
});
|
|
14360
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
14360
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14361
14361
|
var _a;
|
|
14362
14362
|
let currentRawResponse = undefined;
|
|
14363
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
14363
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
14364
14364
|
const callback = (rawResponse, flatResponse) => {
|
|
14365
14365
|
currentRawResponse = rawResponse;
|
|
14366
|
-
providedCallback === null || providedCallback ===
|
|
14366
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
14367
14367
|
};
|
|
14368
14368
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
14369
14369
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -14382,8 +14382,8 @@ class L3NetworksImpl {
|
|
|
14382
14382
|
spec: deleteOperationSpec$b,
|
|
14383
14383
|
});
|
|
14384
14384
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
14385
|
-
restoreFrom: options === null || options ===
|
|
14386
|
-
intervalInMs: options === null || options ===
|
|
14385
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
14386
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
14387
14387
|
resourceLocationConfig: "location",
|
|
14388
14388
|
});
|
|
14389
14389
|
yield poller.poll();
|
|
@@ -14397,7 +14397,7 @@ class L3NetworksImpl {
|
|
|
14397
14397
|
* @param options The options parameters.
|
|
14398
14398
|
*/
|
|
14399
14399
|
beginDeleteAndWait(resourceGroupName, l3NetworkName, options) {
|
|
14400
|
-
return tslib.__awaiter(this,
|
|
14400
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14401
14401
|
const poller = yield this.beginDelete(resourceGroupName, l3NetworkName, options);
|
|
14402
14402
|
return poller.pollUntilDone();
|
|
14403
14403
|
});
|
|
@@ -14644,7 +14644,7 @@ class RackSkusImpl {
|
|
|
14644
14644
|
return this;
|
|
14645
14645
|
},
|
|
14646
14646
|
byPage: (settings) => {
|
|
14647
|
-
if (settings === null || settings ===
|
|
14647
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
14648
14648
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14649
14649
|
}
|
|
14650
14650
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -14654,7 +14654,7 @@ class RackSkusImpl {
|
|
|
14654
14654
|
listBySubscriptionPagingPage(options, settings) {
|
|
14655
14655
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
14656
14656
|
let result;
|
|
14657
|
-
let continuationToken = settings === null || settings ===
|
|
14657
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
14658
14658
|
if (!continuationToken) {
|
|
14659
14659
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
14660
14660
|
let page = result.value || [];
|
|
@@ -14804,7 +14804,7 @@ class RacksImpl {
|
|
|
14804
14804
|
return this;
|
|
14805
14805
|
},
|
|
14806
14806
|
byPage: (settings) => {
|
|
14807
|
-
if (settings === null || settings ===
|
|
14807
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
14808
14808
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14809
14809
|
}
|
|
14810
14810
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -14814,7 +14814,7 @@ class RacksImpl {
|
|
|
14814
14814
|
listBySubscriptionPagingPage(options, settings) {
|
|
14815
14815
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
14816
14816
|
let result;
|
|
14817
|
-
let continuationToken = settings === null || settings ===
|
|
14817
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
14818
14818
|
if (!continuationToken) {
|
|
14819
14819
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
14820
14820
|
let page = result.value || [];
|
|
@@ -14866,7 +14866,7 @@ class RacksImpl {
|
|
|
14866
14866
|
return this;
|
|
14867
14867
|
},
|
|
14868
14868
|
byPage: (settings) => {
|
|
14869
|
-
if (settings === null || settings ===
|
|
14869
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
14870
14870
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14871
14871
|
}
|
|
14872
14872
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -14876,7 +14876,7 @@ class RacksImpl {
|
|
|
14876
14876
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
14877
14877
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
14878
14878
|
let result;
|
|
14879
|
-
let continuationToken = settings === null || settings ===
|
|
14879
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
14880
14880
|
if (!continuationToken) {
|
|
14881
14881
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
14882
14882
|
let page = result.value || [];
|
|
@@ -14947,17 +14947,17 @@ class RacksImpl {
|
|
|
14947
14947
|
* @param options The options parameters.
|
|
14948
14948
|
*/
|
|
14949
14949
|
beginCreateOrUpdate(resourceGroupName, rackName, rackParameters, options) {
|
|
14950
|
-
return tslib.__awaiter(this,
|
|
14951
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
14950
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14951
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14952
14952
|
return this.client.sendOperationRequest(args, spec);
|
|
14953
14953
|
});
|
|
14954
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
14954
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14955
14955
|
var _a;
|
|
14956
14956
|
let currentRawResponse = undefined;
|
|
14957
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
14957
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
14958
14958
|
const callback = (rawResponse, flatResponse) => {
|
|
14959
14959
|
currentRawResponse = rawResponse;
|
|
14960
|
-
providedCallback === null || providedCallback ===
|
|
14960
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
14961
14961
|
};
|
|
14962
14962
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
14963
14963
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -14976,8 +14976,8 @@ class RacksImpl {
|
|
|
14976
14976
|
spec: createOrUpdateOperationSpec$a,
|
|
14977
14977
|
});
|
|
14978
14978
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
14979
|
-
restoreFrom: options === null || options ===
|
|
14980
|
-
intervalInMs: options === null || options ===
|
|
14979
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
14980
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
14981
14981
|
resourceLocationConfig: "azure-async-operation",
|
|
14982
14982
|
});
|
|
14983
14983
|
yield poller.poll();
|
|
@@ -14994,7 +14994,7 @@ class RacksImpl {
|
|
|
14994
14994
|
* @param options The options parameters.
|
|
14995
14995
|
*/
|
|
14996
14996
|
beginCreateOrUpdateAndWait(resourceGroupName, rackName, rackParameters, options) {
|
|
14997
|
-
return tslib.__awaiter(this,
|
|
14997
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
14998
14998
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, rackName, rackParameters, options);
|
|
14999
14999
|
return poller.pollUntilDone();
|
|
15000
15000
|
});
|
|
@@ -15008,17 +15008,17 @@ class RacksImpl {
|
|
|
15008
15008
|
* @param options The options parameters.
|
|
15009
15009
|
*/
|
|
15010
15010
|
beginDelete(resourceGroupName, rackName, options) {
|
|
15011
|
-
return tslib.__awaiter(this,
|
|
15012
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
15011
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15012
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15013
15013
|
return this.client.sendOperationRequest(args, spec);
|
|
15014
15014
|
});
|
|
15015
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
15015
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15016
15016
|
var _a;
|
|
15017
15017
|
let currentRawResponse = undefined;
|
|
15018
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
15018
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
15019
15019
|
const callback = (rawResponse, flatResponse) => {
|
|
15020
15020
|
currentRawResponse = rawResponse;
|
|
15021
|
-
providedCallback === null || providedCallback ===
|
|
15021
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
15022
15022
|
};
|
|
15023
15023
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
15024
15024
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -15037,8 +15037,8 @@ class RacksImpl {
|
|
|
15037
15037
|
spec: deleteOperationSpec$a,
|
|
15038
15038
|
});
|
|
15039
15039
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
15040
|
-
restoreFrom: options === null || options ===
|
|
15041
|
-
intervalInMs: options === null || options ===
|
|
15040
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
15041
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
15042
15042
|
resourceLocationConfig: "location",
|
|
15043
15043
|
});
|
|
15044
15044
|
yield poller.poll();
|
|
@@ -15054,7 +15054,7 @@ class RacksImpl {
|
|
|
15054
15054
|
* @param options The options parameters.
|
|
15055
15055
|
*/
|
|
15056
15056
|
beginDeleteAndWait(resourceGroupName, rackName, options) {
|
|
15057
|
-
return tslib.__awaiter(this,
|
|
15057
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15058
15058
|
const poller = yield this.beginDelete(resourceGroupName, rackName, options);
|
|
15059
15059
|
return poller.pollUntilDone();
|
|
15060
15060
|
});
|
|
@@ -15067,17 +15067,17 @@ class RacksImpl {
|
|
|
15067
15067
|
* @param options The options parameters.
|
|
15068
15068
|
*/
|
|
15069
15069
|
beginUpdate(resourceGroupName, rackName, options) {
|
|
15070
|
-
return tslib.__awaiter(this,
|
|
15071
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
15070
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15071
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15072
15072
|
return this.client.sendOperationRequest(args, spec);
|
|
15073
15073
|
});
|
|
15074
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
15074
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15075
15075
|
var _a;
|
|
15076
15076
|
let currentRawResponse = undefined;
|
|
15077
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
15077
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
15078
15078
|
const callback = (rawResponse, flatResponse) => {
|
|
15079
15079
|
currentRawResponse = rawResponse;
|
|
15080
|
-
providedCallback === null || providedCallback ===
|
|
15080
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
15081
15081
|
};
|
|
15082
15082
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
15083
15083
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -15096,8 +15096,8 @@ class RacksImpl {
|
|
|
15096
15096
|
spec: updateOperationSpec$a,
|
|
15097
15097
|
});
|
|
15098
15098
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
15099
|
-
restoreFrom: options === null || options ===
|
|
15100
|
-
intervalInMs: options === null || options ===
|
|
15099
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
15100
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
15101
15101
|
resourceLocationConfig: "azure-async-operation",
|
|
15102
15102
|
});
|
|
15103
15103
|
yield poller.poll();
|
|
@@ -15112,7 +15112,7 @@ class RacksImpl {
|
|
|
15112
15112
|
* @param options The options parameters.
|
|
15113
15113
|
*/
|
|
15114
15114
|
beginUpdateAndWait(resourceGroupName, rackName, options) {
|
|
15115
|
-
return tslib.__awaiter(this,
|
|
15115
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15116
15116
|
const poller = yield this.beginUpdate(resourceGroupName, rackName, options);
|
|
15117
15117
|
return poller.pollUntilDone();
|
|
15118
15118
|
});
|
|
@@ -15359,7 +15359,7 @@ class StorageAppliancesImpl {
|
|
|
15359
15359
|
return this;
|
|
15360
15360
|
},
|
|
15361
15361
|
byPage: (settings) => {
|
|
15362
|
-
if (settings === null || settings ===
|
|
15362
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
15363
15363
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15364
15364
|
}
|
|
15365
15365
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -15369,7 +15369,7 @@ class StorageAppliancesImpl {
|
|
|
15369
15369
|
listBySubscriptionPagingPage(options, settings) {
|
|
15370
15370
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
15371
15371
|
let result;
|
|
15372
|
-
let continuationToken = settings === null || settings ===
|
|
15372
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
15373
15373
|
if (!continuationToken) {
|
|
15374
15374
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
15375
15375
|
let page = result.value || [];
|
|
@@ -15421,7 +15421,7 @@ class StorageAppliancesImpl {
|
|
|
15421
15421
|
return this;
|
|
15422
15422
|
},
|
|
15423
15423
|
byPage: (settings) => {
|
|
15424
|
-
if (settings === null || settings ===
|
|
15424
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
15425
15425
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15426
15426
|
}
|
|
15427
15427
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -15431,7 +15431,7 @@ class StorageAppliancesImpl {
|
|
|
15431
15431
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
15432
15432
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
15433
15433
|
let result;
|
|
15434
|
-
let continuationToken = settings === null || settings ===
|
|
15434
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
15435
15435
|
if (!continuationToken) {
|
|
15436
15436
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
15437
15437
|
let page = result.value || [];
|
|
@@ -15502,17 +15502,17 @@ class StorageAppliancesImpl {
|
|
|
15502
15502
|
* @param options The options parameters.
|
|
15503
15503
|
*/
|
|
15504
15504
|
beginCreateOrUpdate(resourceGroupName, storageApplianceName, storageApplianceParameters, options) {
|
|
15505
|
-
return tslib.__awaiter(this,
|
|
15506
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
15505
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15506
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15507
15507
|
return this.client.sendOperationRequest(args, spec);
|
|
15508
15508
|
});
|
|
15509
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
15509
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15510
15510
|
var _a;
|
|
15511
15511
|
let currentRawResponse = undefined;
|
|
15512
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
15512
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
15513
15513
|
const callback = (rawResponse, flatResponse) => {
|
|
15514
15514
|
currentRawResponse = rawResponse;
|
|
15515
|
-
providedCallback === null || providedCallback ===
|
|
15515
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
15516
15516
|
};
|
|
15517
15517
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
15518
15518
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -15536,8 +15536,8 @@ class StorageAppliancesImpl {
|
|
|
15536
15536
|
spec: createOrUpdateOperationSpec$9,
|
|
15537
15537
|
});
|
|
15538
15538
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
15539
|
-
restoreFrom: options === null || options ===
|
|
15540
|
-
intervalInMs: options === null || options ===
|
|
15539
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
15540
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
15541
15541
|
resourceLocationConfig: "azure-async-operation",
|
|
15542
15542
|
});
|
|
15543
15543
|
yield poller.poll();
|
|
@@ -15554,7 +15554,7 @@ class StorageAppliancesImpl {
|
|
|
15554
15554
|
* @param options The options parameters.
|
|
15555
15555
|
*/
|
|
15556
15556
|
beginCreateOrUpdateAndWait(resourceGroupName, storageApplianceName, storageApplianceParameters, options) {
|
|
15557
|
-
return tslib.__awaiter(this,
|
|
15557
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15558
15558
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, storageApplianceName, storageApplianceParameters, options);
|
|
15559
15559
|
return poller.pollUntilDone();
|
|
15560
15560
|
});
|
|
@@ -15568,17 +15568,17 @@ class StorageAppliancesImpl {
|
|
|
15568
15568
|
* @param options The options parameters.
|
|
15569
15569
|
*/
|
|
15570
15570
|
beginDelete(resourceGroupName, storageApplianceName, options) {
|
|
15571
|
-
return tslib.__awaiter(this,
|
|
15572
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
15571
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15572
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15573
15573
|
return this.client.sendOperationRequest(args, spec);
|
|
15574
15574
|
});
|
|
15575
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
15575
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15576
15576
|
var _a;
|
|
15577
15577
|
let currentRawResponse = undefined;
|
|
15578
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
15578
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
15579
15579
|
const callback = (rawResponse, flatResponse) => {
|
|
15580
15580
|
currentRawResponse = rawResponse;
|
|
15581
|
-
providedCallback === null || providedCallback ===
|
|
15581
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
15582
15582
|
};
|
|
15583
15583
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
15584
15584
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -15597,8 +15597,8 @@ class StorageAppliancesImpl {
|
|
|
15597
15597
|
spec: deleteOperationSpec$9,
|
|
15598
15598
|
});
|
|
15599
15599
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
15600
|
-
restoreFrom: options === null || options ===
|
|
15601
|
-
intervalInMs: options === null || options ===
|
|
15600
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
15601
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
15602
15602
|
resourceLocationConfig: "location",
|
|
15603
15603
|
});
|
|
15604
15604
|
yield poller.poll();
|
|
@@ -15614,7 +15614,7 @@ class StorageAppliancesImpl {
|
|
|
15614
15614
|
* @param options The options parameters.
|
|
15615
15615
|
*/
|
|
15616
15616
|
beginDeleteAndWait(resourceGroupName, storageApplianceName, options) {
|
|
15617
|
-
return tslib.__awaiter(this,
|
|
15617
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15618
15618
|
const poller = yield this.beginDelete(resourceGroupName, storageApplianceName, options);
|
|
15619
15619
|
return poller.pollUntilDone();
|
|
15620
15620
|
});
|
|
@@ -15627,17 +15627,17 @@ class StorageAppliancesImpl {
|
|
|
15627
15627
|
* @param options The options parameters.
|
|
15628
15628
|
*/
|
|
15629
15629
|
beginUpdate(resourceGroupName, storageApplianceName, options) {
|
|
15630
|
-
return tslib.__awaiter(this,
|
|
15631
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
15630
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15631
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15632
15632
|
return this.client.sendOperationRequest(args, spec);
|
|
15633
15633
|
});
|
|
15634
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
15634
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15635
15635
|
var _a;
|
|
15636
15636
|
let currentRawResponse = undefined;
|
|
15637
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
15637
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
15638
15638
|
const callback = (rawResponse, flatResponse) => {
|
|
15639
15639
|
currentRawResponse = rawResponse;
|
|
15640
|
-
providedCallback === null || providedCallback ===
|
|
15640
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
15641
15641
|
};
|
|
15642
15642
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
15643
15643
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -15656,8 +15656,8 @@ class StorageAppliancesImpl {
|
|
|
15656
15656
|
spec: updateOperationSpec$9,
|
|
15657
15657
|
});
|
|
15658
15658
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
15659
|
-
restoreFrom: options === null || options ===
|
|
15660
|
-
intervalInMs: options === null || options ===
|
|
15659
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
15660
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
15661
15661
|
resourceLocationConfig: "azure-async-operation",
|
|
15662
15662
|
});
|
|
15663
15663
|
yield poller.poll();
|
|
@@ -15672,7 +15672,7 @@ class StorageAppliancesImpl {
|
|
|
15672
15672
|
* @param options The options parameters.
|
|
15673
15673
|
*/
|
|
15674
15674
|
beginUpdateAndWait(resourceGroupName, storageApplianceName, options) {
|
|
15675
|
-
return tslib.__awaiter(this,
|
|
15675
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15676
15676
|
const poller = yield this.beginUpdate(resourceGroupName, storageApplianceName, options);
|
|
15677
15677
|
return poller.pollUntilDone();
|
|
15678
15678
|
});
|
|
@@ -15684,17 +15684,17 @@ class StorageAppliancesImpl {
|
|
|
15684
15684
|
* @param options The options parameters.
|
|
15685
15685
|
*/
|
|
15686
15686
|
beginDisableRemoteVendorManagement(resourceGroupName, storageApplianceName, options) {
|
|
15687
|
-
return tslib.__awaiter(this,
|
|
15688
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
15687
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15688
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15689
15689
|
return this.client.sendOperationRequest(args, spec);
|
|
15690
15690
|
});
|
|
15691
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
15691
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15692
15692
|
var _a;
|
|
15693
15693
|
let currentRawResponse = undefined;
|
|
15694
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
15694
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
15695
15695
|
const callback = (rawResponse, flatResponse) => {
|
|
15696
15696
|
currentRawResponse = rawResponse;
|
|
15697
|
-
providedCallback === null || providedCallback ===
|
|
15697
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
15698
15698
|
};
|
|
15699
15699
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
15700
15700
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -15713,8 +15713,8 @@ class StorageAppliancesImpl {
|
|
|
15713
15713
|
spec: disableRemoteVendorManagementOperationSpec,
|
|
15714
15714
|
});
|
|
15715
15715
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
15716
|
-
restoreFrom: options === null || options ===
|
|
15717
|
-
intervalInMs: options === null || options ===
|
|
15716
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
15717
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
15718
15718
|
resourceLocationConfig: "location",
|
|
15719
15719
|
});
|
|
15720
15720
|
yield poller.poll();
|
|
@@ -15728,7 +15728,7 @@ class StorageAppliancesImpl {
|
|
|
15728
15728
|
* @param options The options parameters.
|
|
15729
15729
|
*/
|
|
15730
15730
|
beginDisableRemoteVendorManagementAndWait(resourceGroupName, storageApplianceName, options) {
|
|
15731
|
-
return tslib.__awaiter(this,
|
|
15731
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15732
15732
|
const poller = yield this.beginDisableRemoteVendorManagement(resourceGroupName, storageApplianceName, options);
|
|
15733
15733
|
return poller.pollUntilDone();
|
|
15734
15734
|
});
|
|
@@ -15740,17 +15740,17 @@ class StorageAppliancesImpl {
|
|
|
15740
15740
|
* @param options The options parameters.
|
|
15741
15741
|
*/
|
|
15742
15742
|
beginEnableRemoteVendorManagement(resourceGroupName, storageApplianceName, options) {
|
|
15743
|
-
return tslib.__awaiter(this,
|
|
15744
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
15743
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15744
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15745
15745
|
return this.client.sendOperationRequest(args, spec);
|
|
15746
15746
|
});
|
|
15747
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
15747
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15748
15748
|
var _a;
|
|
15749
15749
|
let currentRawResponse = undefined;
|
|
15750
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
15750
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
15751
15751
|
const callback = (rawResponse, flatResponse) => {
|
|
15752
15752
|
currentRawResponse = rawResponse;
|
|
15753
|
-
providedCallback === null || providedCallback ===
|
|
15753
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
15754
15754
|
};
|
|
15755
15755
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
15756
15756
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -15769,8 +15769,8 @@ class StorageAppliancesImpl {
|
|
|
15769
15769
|
spec: enableRemoteVendorManagementOperationSpec,
|
|
15770
15770
|
});
|
|
15771
15771
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
15772
|
-
restoreFrom: options === null || options ===
|
|
15773
|
-
intervalInMs: options === null || options ===
|
|
15772
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
15773
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
15774
15774
|
resourceLocationConfig: "location",
|
|
15775
15775
|
});
|
|
15776
15776
|
yield poller.poll();
|
|
@@ -15784,7 +15784,7 @@ class StorageAppliancesImpl {
|
|
|
15784
15784
|
* @param options The options parameters.
|
|
15785
15785
|
*/
|
|
15786
15786
|
beginEnableRemoteVendorManagementAndWait(resourceGroupName, storageApplianceName, options) {
|
|
15787
|
-
return tslib.__awaiter(this,
|
|
15787
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
15788
15788
|
const poller = yield this.beginEnableRemoteVendorManagement(resourceGroupName, storageApplianceName, options);
|
|
15789
15789
|
return poller.pollUntilDone();
|
|
15790
15790
|
});
|
|
@@ -16093,7 +16093,7 @@ class TrunkedNetworksImpl {
|
|
|
16093
16093
|
return this;
|
|
16094
16094
|
},
|
|
16095
16095
|
byPage: (settings) => {
|
|
16096
|
-
if (settings === null || settings ===
|
|
16096
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
16097
16097
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16098
16098
|
}
|
|
16099
16099
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -16103,7 +16103,7 @@ class TrunkedNetworksImpl {
|
|
|
16103
16103
|
listBySubscriptionPagingPage(options, settings) {
|
|
16104
16104
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
16105
16105
|
let result;
|
|
16106
|
-
let continuationToken = settings === null || settings ===
|
|
16106
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
16107
16107
|
if (!continuationToken) {
|
|
16108
16108
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
16109
16109
|
let page = result.value || [];
|
|
@@ -16155,7 +16155,7 @@ class TrunkedNetworksImpl {
|
|
|
16155
16155
|
return this;
|
|
16156
16156
|
},
|
|
16157
16157
|
byPage: (settings) => {
|
|
16158
|
-
if (settings === null || settings ===
|
|
16158
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
16159
16159
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16160
16160
|
}
|
|
16161
16161
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -16165,7 +16165,7 @@ class TrunkedNetworksImpl {
|
|
|
16165
16165
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
16166
16166
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
16167
16167
|
let result;
|
|
16168
|
-
let continuationToken = settings === null || settings ===
|
|
16168
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
16169
16169
|
if (!continuationToken) {
|
|
16170
16170
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
16171
16171
|
let page = result.value || [];
|
|
@@ -16234,17 +16234,17 @@ class TrunkedNetworksImpl {
|
|
|
16234
16234
|
* @param options The options parameters.
|
|
16235
16235
|
*/
|
|
16236
16236
|
beginCreateOrUpdate(resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, options) {
|
|
16237
|
-
return tslib.__awaiter(this,
|
|
16238
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16237
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16238
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16239
16239
|
return this.client.sendOperationRequest(args, spec);
|
|
16240
16240
|
});
|
|
16241
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16241
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16242
16242
|
var _a;
|
|
16243
16243
|
let currentRawResponse = undefined;
|
|
16244
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16244
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16245
16245
|
const callback = (rawResponse, flatResponse) => {
|
|
16246
16246
|
currentRawResponse = rawResponse;
|
|
16247
|
-
providedCallback === null || providedCallback ===
|
|
16247
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16248
16248
|
};
|
|
16249
16249
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16250
16250
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16268,8 +16268,8 @@ class TrunkedNetworksImpl {
|
|
|
16268
16268
|
spec: createOrUpdateOperationSpec$8,
|
|
16269
16269
|
});
|
|
16270
16270
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16271
|
-
restoreFrom: options === null || options ===
|
|
16272
|
-
intervalInMs: options === null || options ===
|
|
16271
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16272
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16273
16273
|
resourceLocationConfig: "azure-async-operation",
|
|
16274
16274
|
});
|
|
16275
16275
|
yield poller.poll();
|
|
@@ -16284,7 +16284,7 @@ class TrunkedNetworksImpl {
|
|
|
16284
16284
|
* @param options The options parameters.
|
|
16285
16285
|
*/
|
|
16286
16286
|
beginCreateOrUpdateAndWait(resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, options) {
|
|
16287
|
-
return tslib.__awaiter(this,
|
|
16287
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16288
16288
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, options);
|
|
16289
16289
|
return poller.pollUntilDone();
|
|
16290
16290
|
});
|
|
@@ -16296,17 +16296,17 @@ class TrunkedNetworksImpl {
|
|
|
16296
16296
|
* @param options The options parameters.
|
|
16297
16297
|
*/
|
|
16298
16298
|
beginDelete(resourceGroupName, trunkedNetworkName, options) {
|
|
16299
|
-
return tslib.__awaiter(this,
|
|
16300
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16299
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16300
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16301
16301
|
return this.client.sendOperationRequest(args, spec);
|
|
16302
16302
|
});
|
|
16303
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16303
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16304
16304
|
var _a;
|
|
16305
16305
|
let currentRawResponse = undefined;
|
|
16306
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16306
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16307
16307
|
const callback = (rawResponse, flatResponse) => {
|
|
16308
16308
|
currentRawResponse = rawResponse;
|
|
16309
|
-
providedCallback === null || providedCallback ===
|
|
16309
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16310
16310
|
};
|
|
16311
16311
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16312
16312
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16325,8 +16325,8 @@ class TrunkedNetworksImpl {
|
|
|
16325
16325
|
spec: deleteOperationSpec$8,
|
|
16326
16326
|
});
|
|
16327
16327
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16328
|
-
restoreFrom: options === null || options ===
|
|
16329
|
-
intervalInMs: options === null || options ===
|
|
16328
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16329
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16330
16330
|
resourceLocationConfig: "location",
|
|
16331
16331
|
});
|
|
16332
16332
|
yield poller.poll();
|
|
@@ -16340,7 +16340,7 @@ class TrunkedNetworksImpl {
|
|
|
16340
16340
|
* @param options The options parameters.
|
|
16341
16341
|
*/
|
|
16342
16342
|
beginDeleteAndWait(resourceGroupName, trunkedNetworkName, options) {
|
|
16343
|
-
return tslib.__awaiter(this,
|
|
16343
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16344
16344
|
const poller = yield this.beginDelete(resourceGroupName, trunkedNetworkName, options);
|
|
16345
16345
|
return poller.pollUntilDone();
|
|
16346
16346
|
});
|
|
@@ -16587,7 +16587,7 @@ class VirtualMachinesImpl {
|
|
|
16587
16587
|
return this;
|
|
16588
16588
|
},
|
|
16589
16589
|
byPage: (settings) => {
|
|
16590
|
-
if (settings === null || settings ===
|
|
16590
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
16591
16591
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16592
16592
|
}
|
|
16593
16593
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -16597,7 +16597,7 @@ class VirtualMachinesImpl {
|
|
|
16597
16597
|
listBySubscriptionPagingPage(options, settings) {
|
|
16598
16598
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
16599
16599
|
let result;
|
|
16600
|
-
let continuationToken = settings === null || settings ===
|
|
16600
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
16601
16601
|
if (!continuationToken) {
|
|
16602
16602
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
16603
16603
|
let page = result.value || [];
|
|
@@ -16649,7 +16649,7 @@ class VirtualMachinesImpl {
|
|
|
16649
16649
|
return this;
|
|
16650
16650
|
},
|
|
16651
16651
|
byPage: (settings) => {
|
|
16652
|
-
if (settings === null || settings ===
|
|
16652
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
16653
16653
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16654
16654
|
}
|
|
16655
16655
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -16659,7 +16659,7 @@ class VirtualMachinesImpl {
|
|
|
16659
16659
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
16660
16660
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
16661
16661
|
let result;
|
|
16662
|
-
let continuationToken = settings === null || settings ===
|
|
16662
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
16663
16663
|
if (!continuationToken) {
|
|
16664
16664
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
16665
16665
|
let page = result.value || [];
|
|
@@ -16728,17 +16728,17 @@ class VirtualMachinesImpl {
|
|
|
16728
16728
|
* @param options The options parameters.
|
|
16729
16729
|
*/
|
|
16730
16730
|
beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineParameters, options) {
|
|
16731
|
-
return tslib.__awaiter(this,
|
|
16732
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16731
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16732
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16733
16733
|
return this.client.sendOperationRequest(args, spec);
|
|
16734
16734
|
});
|
|
16735
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16735
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16736
16736
|
var _a;
|
|
16737
16737
|
let currentRawResponse = undefined;
|
|
16738
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16738
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16739
16739
|
const callback = (rawResponse, flatResponse) => {
|
|
16740
16740
|
currentRawResponse = rawResponse;
|
|
16741
|
-
providedCallback === null || providedCallback ===
|
|
16741
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16742
16742
|
};
|
|
16743
16743
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16744
16744
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16762,8 +16762,8 @@ class VirtualMachinesImpl {
|
|
|
16762
16762
|
spec: createOrUpdateOperationSpec$7,
|
|
16763
16763
|
});
|
|
16764
16764
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16765
|
-
restoreFrom: options === null || options ===
|
|
16766
|
-
intervalInMs: options === null || options ===
|
|
16765
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16766
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16767
16767
|
resourceLocationConfig: "azure-async-operation",
|
|
16768
16768
|
});
|
|
16769
16769
|
yield poller.poll();
|
|
@@ -16778,7 +16778,7 @@ class VirtualMachinesImpl {
|
|
|
16778
16778
|
* @param options The options parameters.
|
|
16779
16779
|
*/
|
|
16780
16780
|
beginCreateOrUpdateAndWait(resourceGroupName, virtualMachineName, virtualMachineParameters, options) {
|
|
16781
|
-
return tslib.__awaiter(this,
|
|
16781
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16782
16782
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineParameters, options);
|
|
16783
16783
|
return poller.pollUntilDone();
|
|
16784
16784
|
});
|
|
@@ -16790,17 +16790,17 @@ class VirtualMachinesImpl {
|
|
|
16790
16790
|
* @param options The options parameters.
|
|
16791
16791
|
*/
|
|
16792
16792
|
beginDelete(resourceGroupName, virtualMachineName, options) {
|
|
16793
|
-
return tslib.__awaiter(this,
|
|
16794
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16793
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16794
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16795
16795
|
return this.client.sendOperationRequest(args, spec);
|
|
16796
16796
|
});
|
|
16797
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16797
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16798
16798
|
var _a;
|
|
16799
16799
|
let currentRawResponse = undefined;
|
|
16800
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16800
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16801
16801
|
const callback = (rawResponse, flatResponse) => {
|
|
16802
16802
|
currentRawResponse = rawResponse;
|
|
16803
|
-
providedCallback === null || providedCallback ===
|
|
16803
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16804
16804
|
};
|
|
16805
16805
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16806
16806
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16819,8 +16819,8 @@ class VirtualMachinesImpl {
|
|
|
16819
16819
|
spec: deleteOperationSpec$7,
|
|
16820
16820
|
});
|
|
16821
16821
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16822
|
-
restoreFrom: options === null || options ===
|
|
16823
|
-
intervalInMs: options === null || options ===
|
|
16822
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16823
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16824
16824
|
resourceLocationConfig: "location",
|
|
16825
16825
|
});
|
|
16826
16826
|
yield poller.poll();
|
|
@@ -16834,7 +16834,7 @@ class VirtualMachinesImpl {
|
|
|
16834
16834
|
* @param options The options parameters.
|
|
16835
16835
|
*/
|
|
16836
16836
|
beginDeleteAndWait(resourceGroupName, virtualMachineName, options) {
|
|
16837
|
-
return tslib.__awaiter(this,
|
|
16837
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16838
16838
|
const poller = yield this.beginDelete(resourceGroupName, virtualMachineName, options);
|
|
16839
16839
|
return poller.pollUntilDone();
|
|
16840
16840
|
});
|
|
@@ -16847,17 +16847,17 @@ class VirtualMachinesImpl {
|
|
|
16847
16847
|
* @param options The options parameters.
|
|
16848
16848
|
*/
|
|
16849
16849
|
beginUpdate(resourceGroupName, virtualMachineName, options) {
|
|
16850
|
-
return tslib.__awaiter(this,
|
|
16851
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16850
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16851
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16852
16852
|
return this.client.sendOperationRequest(args, spec);
|
|
16853
16853
|
});
|
|
16854
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16854
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16855
16855
|
var _a;
|
|
16856
16856
|
let currentRawResponse = undefined;
|
|
16857
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16857
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16858
16858
|
const callback = (rawResponse, flatResponse) => {
|
|
16859
16859
|
currentRawResponse = rawResponse;
|
|
16860
|
-
providedCallback === null || providedCallback ===
|
|
16860
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16861
16861
|
};
|
|
16862
16862
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16863
16863
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16876,8 +16876,8 @@ class VirtualMachinesImpl {
|
|
|
16876
16876
|
spec: updateOperationSpec$7,
|
|
16877
16877
|
});
|
|
16878
16878
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16879
|
-
restoreFrom: options === null || options ===
|
|
16880
|
-
intervalInMs: options === null || options ===
|
|
16879
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16880
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16881
16881
|
resourceLocationConfig: "azure-async-operation",
|
|
16882
16882
|
});
|
|
16883
16883
|
yield poller.poll();
|
|
@@ -16892,7 +16892,7 @@ class VirtualMachinesImpl {
|
|
|
16892
16892
|
* @param options The options parameters.
|
|
16893
16893
|
*/
|
|
16894
16894
|
beginUpdateAndWait(resourceGroupName, virtualMachineName, options) {
|
|
16895
|
-
return tslib.__awaiter(this,
|
|
16895
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16896
16896
|
const poller = yield this.beginUpdate(resourceGroupName, virtualMachineName, options);
|
|
16897
16897
|
return poller.pollUntilDone();
|
|
16898
16898
|
});
|
|
@@ -16904,17 +16904,17 @@ class VirtualMachinesImpl {
|
|
|
16904
16904
|
* @param options The options parameters.
|
|
16905
16905
|
*/
|
|
16906
16906
|
beginPowerOff(resourceGroupName, virtualMachineName, options) {
|
|
16907
|
-
return tslib.__awaiter(this,
|
|
16908
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16907
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16908
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16909
16909
|
return this.client.sendOperationRequest(args, spec);
|
|
16910
16910
|
});
|
|
16911
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16911
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16912
16912
|
var _a;
|
|
16913
16913
|
let currentRawResponse = undefined;
|
|
16914
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16914
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16915
16915
|
const callback = (rawResponse, flatResponse) => {
|
|
16916
16916
|
currentRawResponse = rawResponse;
|
|
16917
|
-
providedCallback === null || providedCallback ===
|
|
16917
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16918
16918
|
};
|
|
16919
16919
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16920
16920
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16933,8 +16933,8 @@ class VirtualMachinesImpl {
|
|
|
16933
16933
|
spec: powerOffOperationSpec,
|
|
16934
16934
|
});
|
|
16935
16935
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16936
|
-
restoreFrom: options === null || options ===
|
|
16937
|
-
intervalInMs: options === null || options ===
|
|
16936
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16937
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16938
16938
|
resourceLocationConfig: "location",
|
|
16939
16939
|
});
|
|
16940
16940
|
yield poller.poll();
|
|
@@ -16948,7 +16948,7 @@ class VirtualMachinesImpl {
|
|
|
16948
16948
|
* @param options The options parameters.
|
|
16949
16949
|
*/
|
|
16950
16950
|
beginPowerOffAndWait(resourceGroupName, virtualMachineName, options) {
|
|
16951
|
-
return tslib.__awaiter(this,
|
|
16951
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16952
16952
|
const poller = yield this.beginPowerOff(resourceGroupName, virtualMachineName, options);
|
|
16953
16953
|
return poller.pollUntilDone();
|
|
16954
16954
|
});
|
|
@@ -16960,17 +16960,17 @@ class VirtualMachinesImpl {
|
|
|
16960
16960
|
* @param options The options parameters.
|
|
16961
16961
|
*/
|
|
16962
16962
|
beginReimage(resourceGroupName, virtualMachineName, options) {
|
|
16963
|
-
return tslib.__awaiter(this,
|
|
16964
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16963
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16964
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16965
16965
|
return this.client.sendOperationRequest(args, spec);
|
|
16966
16966
|
});
|
|
16967
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16967
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
16968
16968
|
var _a;
|
|
16969
16969
|
let currentRawResponse = undefined;
|
|
16970
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16970
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
16971
16971
|
const callback = (rawResponse, flatResponse) => {
|
|
16972
16972
|
currentRawResponse = rawResponse;
|
|
16973
|
-
providedCallback === null || providedCallback ===
|
|
16973
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
16974
16974
|
};
|
|
16975
16975
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16976
16976
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16989,8 +16989,8 @@ class VirtualMachinesImpl {
|
|
|
16989
16989
|
spec: reimageOperationSpec,
|
|
16990
16990
|
});
|
|
16991
16991
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16992
|
-
restoreFrom: options === null || options ===
|
|
16993
|
-
intervalInMs: options === null || options ===
|
|
16992
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
16993
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
16994
16994
|
resourceLocationConfig: "location",
|
|
16995
16995
|
});
|
|
16996
16996
|
yield poller.poll();
|
|
@@ -17004,7 +17004,7 @@ class VirtualMachinesImpl {
|
|
|
17004
17004
|
* @param options The options parameters.
|
|
17005
17005
|
*/
|
|
17006
17006
|
beginReimageAndWait(resourceGroupName, virtualMachineName, options) {
|
|
17007
|
-
return tslib.__awaiter(this,
|
|
17007
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17008
17008
|
const poller = yield this.beginReimage(resourceGroupName, virtualMachineName, options);
|
|
17009
17009
|
return poller.pollUntilDone();
|
|
17010
17010
|
});
|
|
@@ -17016,17 +17016,17 @@ class VirtualMachinesImpl {
|
|
|
17016
17016
|
* @param options The options parameters.
|
|
17017
17017
|
*/
|
|
17018
17018
|
beginRestart(resourceGroupName, virtualMachineName, options) {
|
|
17019
|
-
return tslib.__awaiter(this,
|
|
17020
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
17019
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17020
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17021
17021
|
return this.client.sendOperationRequest(args, spec);
|
|
17022
17022
|
});
|
|
17023
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
17023
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17024
17024
|
var _a;
|
|
17025
17025
|
let currentRawResponse = undefined;
|
|
17026
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
17026
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
17027
17027
|
const callback = (rawResponse, flatResponse) => {
|
|
17028
17028
|
currentRawResponse = rawResponse;
|
|
17029
|
-
providedCallback === null || providedCallback ===
|
|
17029
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
17030
17030
|
};
|
|
17031
17031
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
17032
17032
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -17045,8 +17045,8 @@ class VirtualMachinesImpl {
|
|
|
17045
17045
|
spec: restartOperationSpec,
|
|
17046
17046
|
});
|
|
17047
17047
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
17048
|
-
restoreFrom: options === null || options ===
|
|
17049
|
-
intervalInMs: options === null || options ===
|
|
17048
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
17049
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
17050
17050
|
resourceLocationConfig: "location",
|
|
17051
17051
|
});
|
|
17052
17052
|
yield poller.poll();
|
|
@@ -17060,7 +17060,7 @@ class VirtualMachinesImpl {
|
|
|
17060
17060
|
* @param options The options parameters.
|
|
17061
17061
|
*/
|
|
17062
17062
|
beginRestartAndWait(resourceGroupName, virtualMachineName, options) {
|
|
17063
|
-
return tslib.__awaiter(this,
|
|
17063
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17064
17064
|
const poller = yield this.beginRestart(resourceGroupName, virtualMachineName, options);
|
|
17065
17065
|
return poller.pollUntilDone();
|
|
17066
17066
|
});
|
|
@@ -17072,17 +17072,17 @@ class VirtualMachinesImpl {
|
|
|
17072
17072
|
* @param options The options parameters.
|
|
17073
17073
|
*/
|
|
17074
17074
|
beginStart(resourceGroupName, virtualMachineName, options) {
|
|
17075
|
-
return tslib.__awaiter(this,
|
|
17076
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
17075
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17076
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17077
17077
|
return this.client.sendOperationRequest(args, spec);
|
|
17078
17078
|
});
|
|
17079
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
17079
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17080
17080
|
var _a;
|
|
17081
17081
|
let currentRawResponse = undefined;
|
|
17082
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
17082
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
17083
17083
|
const callback = (rawResponse, flatResponse) => {
|
|
17084
17084
|
currentRawResponse = rawResponse;
|
|
17085
|
-
providedCallback === null || providedCallback ===
|
|
17085
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
17086
17086
|
};
|
|
17087
17087
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
17088
17088
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -17101,8 +17101,8 @@ class VirtualMachinesImpl {
|
|
|
17101
17101
|
spec: startOperationSpec,
|
|
17102
17102
|
});
|
|
17103
17103
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
17104
|
-
restoreFrom: options === null || options ===
|
|
17105
|
-
intervalInMs: options === null || options ===
|
|
17104
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
17105
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
17106
17106
|
resourceLocationConfig: "location",
|
|
17107
17107
|
});
|
|
17108
17108
|
yield poller.poll();
|
|
@@ -17116,7 +17116,7 @@ class VirtualMachinesImpl {
|
|
|
17116
17116
|
* @param options The options parameters.
|
|
17117
17117
|
*/
|
|
17118
17118
|
beginStartAndWait(resourceGroupName, virtualMachineName, options) {
|
|
17119
|
-
return tslib.__awaiter(this,
|
|
17119
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17120
17120
|
const poller = yield this.beginStart(resourceGroupName, virtualMachineName, options);
|
|
17121
17121
|
return poller.pollUntilDone();
|
|
17122
17122
|
});
|
|
@@ -17485,7 +17485,7 @@ class VolumesImpl {
|
|
|
17485
17485
|
return this;
|
|
17486
17486
|
},
|
|
17487
17487
|
byPage: (settings) => {
|
|
17488
|
-
if (settings === null || settings ===
|
|
17488
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
17489
17489
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17490
17490
|
}
|
|
17491
17491
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -17495,7 +17495,7 @@ class VolumesImpl {
|
|
|
17495
17495
|
listBySubscriptionPagingPage(options, settings) {
|
|
17496
17496
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
17497
17497
|
let result;
|
|
17498
|
-
let continuationToken = settings === null || settings ===
|
|
17498
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
17499
17499
|
if (!continuationToken) {
|
|
17500
17500
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
17501
17501
|
let page = result.value || [];
|
|
@@ -17547,7 +17547,7 @@ class VolumesImpl {
|
|
|
17547
17547
|
return this;
|
|
17548
17548
|
},
|
|
17549
17549
|
byPage: (settings) => {
|
|
17550
|
-
if (settings === null || settings ===
|
|
17550
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
17551
17551
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17552
17552
|
}
|
|
17553
17553
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -17557,7 +17557,7 @@ class VolumesImpl {
|
|
|
17557
17557
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
17558
17558
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
17559
17559
|
let result;
|
|
17560
|
-
let continuationToken = settings === null || settings ===
|
|
17560
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
17561
17561
|
if (!continuationToken) {
|
|
17562
17562
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
17563
17563
|
let page = result.value || [];
|
|
@@ -17626,17 +17626,17 @@ class VolumesImpl {
|
|
|
17626
17626
|
* @param options The options parameters.
|
|
17627
17627
|
*/
|
|
17628
17628
|
beginCreateOrUpdate(resourceGroupName, volumeName, volumeParameters, options) {
|
|
17629
|
-
return tslib.__awaiter(this,
|
|
17630
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
17629
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17630
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17631
17631
|
return this.client.sendOperationRequest(args, spec);
|
|
17632
17632
|
});
|
|
17633
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
17633
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17634
17634
|
var _a;
|
|
17635
17635
|
let currentRawResponse = undefined;
|
|
17636
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
17636
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
17637
17637
|
const callback = (rawResponse, flatResponse) => {
|
|
17638
17638
|
currentRawResponse = rawResponse;
|
|
17639
|
-
providedCallback === null || providedCallback ===
|
|
17639
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
17640
17640
|
};
|
|
17641
17641
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
17642
17642
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -17655,8 +17655,8 @@ class VolumesImpl {
|
|
|
17655
17655
|
spec: createOrUpdateOperationSpec$6,
|
|
17656
17656
|
});
|
|
17657
17657
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
17658
|
-
restoreFrom: options === null || options ===
|
|
17659
|
-
intervalInMs: options === null || options ===
|
|
17658
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
17659
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
17660
17660
|
resourceLocationConfig: "azure-async-operation",
|
|
17661
17661
|
});
|
|
17662
17662
|
yield poller.poll();
|
|
@@ -17671,7 +17671,7 @@ class VolumesImpl {
|
|
|
17671
17671
|
* @param options The options parameters.
|
|
17672
17672
|
*/
|
|
17673
17673
|
beginCreateOrUpdateAndWait(resourceGroupName, volumeName, volumeParameters, options) {
|
|
17674
|
-
return tslib.__awaiter(this,
|
|
17674
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17675
17675
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, volumeName, volumeParameters, options);
|
|
17676
17676
|
return poller.pollUntilDone();
|
|
17677
17677
|
});
|
|
@@ -17683,17 +17683,17 @@ class VolumesImpl {
|
|
|
17683
17683
|
* @param options The options parameters.
|
|
17684
17684
|
*/
|
|
17685
17685
|
beginDelete(resourceGroupName, volumeName, options) {
|
|
17686
|
-
return tslib.__awaiter(this,
|
|
17687
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
17686
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17687
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17688
17688
|
return this.client.sendOperationRequest(args, spec);
|
|
17689
17689
|
});
|
|
17690
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
17690
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17691
17691
|
var _a;
|
|
17692
17692
|
let currentRawResponse = undefined;
|
|
17693
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
17693
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
17694
17694
|
const callback = (rawResponse, flatResponse) => {
|
|
17695
17695
|
currentRawResponse = rawResponse;
|
|
17696
|
-
providedCallback === null || providedCallback ===
|
|
17696
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
17697
17697
|
};
|
|
17698
17698
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
17699
17699
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -17712,8 +17712,8 @@ class VolumesImpl {
|
|
|
17712
17712
|
spec: deleteOperationSpec$6,
|
|
17713
17713
|
});
|
|
17714
17714
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
17715
|
-
restoreFrom: options === null || options ===
|
|
17716
|
-
intervalInMs: options === null || options ===
|
|
17715
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
17716
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
17717
17717
|
resourceLocationConfig: "location",
|
|
17718
17718
|
});
|
|
17719
17719
|
yield poller.poll();
|
|
@@ -17727,7 +17727,7 @@ class VolumesImpl {
|
|
|
17727
17727
|
* @param options The options parameters.
|
|
17728
17728
|
*/
|
|
17729
17729
|
beginDeleteAndWait(resourceGroupName, volumeName, options) {
|
|
17730
|
-
return tslib.__awaiter(this,
|
|
17730
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
17731
17731
|
const poller = yield this.beginDelete(resourceGroupName, volumeName, options);
|
|
17732
17732
|
return poller.pollUntilDone();
|
|
17733
17733
|
});
|
|
@@ -17976,7 +17976,7 @@ class BareMetalMachineKeySetsImpl {
|
|
|
17976
17976
|
return this;
|
|
17977
17977
|
},
|
|
17978
17978
|
byPage: (settings) => {
|
|
17979
|
-
if (settings === null || settings ===
|
|
17979
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
17980
17980
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17981
17981
|
}
|
|
17982
17982
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -17986,7 +17986,7 @@ class BareMetalMachineKeySetsImpl {
|
|
|
17986
17986
|
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
17987
17987
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
17988
17988
|
let result;
|
|
17989
|
-
let continuationToken = settings === null || settings ===
|
|
17989
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
17990
17990
|
if (!continuationToken) {
|
|
17991
17991
|
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
17992
17992
|
let page = result.value || [];
|
|
@@ -18051,17 +18051,17 @@ class BareMetalMachineKeySetsImpl {
|
|
|
18051
18051
|
* @param options The options parameters.
|
|
18052
18052
|
*/
|
|
18053
18053
|
beginCreateOrUpdate(resourceGroupName, clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, options) {
|
|
18054
|
-
return tslib.__awaiter(this,
|
|
18055
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
18054
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18055
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18056
18056
|
return this.client.sendOperationRequest(args, spec);
|
|
18057
18057
|
});
|
|
18058
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
18058
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18059
18059
|
var _a;
|
|
18060
18060
|
let currentRawResponse = undefined;
|
|
18061
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
18061
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
18062
18062
|
const callback = (rawResponse, flatResponse) => {
|
|
18063
18063
|
currentRawResponse = rawResponse;
|
|
18064
|
-
providedCallback === null || providedCallback ===
|
|
18064
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
18065
18065
|
};
|
|
18066
18066
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
18067
18067
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -18086,8 +18086,8 @@ class BareMetalMachineKeySetsImpl {
|
|
|
18086
18086
|
spec: createOrUpdateOperationSpec$5,
|
|
18087
18087
|
});
|
|
18088
18088
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
18089
|
-
restoreFrom: options === null || options ===
|
|
18090
|
-
intervalInMs: options === null || options ===
|
|
18089
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
18090
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
18091
18091
|
resourceLocationConfig: "azure-async-operation",
|
|
18092
18092
|
});
|
|
18093
18093
|
yield poller.poll();
|
|
@@ -18103,7 +18103,7 @@ class BareMetalMachineKeySetsImpl {
|
|
|
18103
18103
|
* @param options The options parameters.
|
|
18104
18104
|
*/
|
|
18105
18105
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, options) {
|
|
18106
|
-
return tslib.__awaiter(this,
|
|
18106
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18107
18107
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, options);
|
|
18108
18108
|
return poller.pollUntilDone();
|
|
18109
18109
|
});
|
|
@@ -18116,17 +18116,17 @@ class BareMetalMachineKeySetsImpl {
|
|
|
18116
18116
|
* @param options The options parameters.
|
|
18117
18117
|
*/
|
|
18118
18118
|
beginDelete(resourceGroupName, clusterName, bareMetalMachineKeySetName, options) {
|
|
18119
|
-
return tslib.__awaiter(this,
|
|
18120
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
18119
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18120
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18121
18121
|
return this.client.sendOperationRequest(args, spec);
|
|
18122
18122
|
});
|
|
18123
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
18123
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18124
18124
|
var _a;
|
|
18125
18125
|
let currentRawResponse = undefined;
|
|
18126
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
18126
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
18127
18127
|
const callback = (rawResponse, flatResponse) => {
|
|
18128
18128
|
currentRawResponse = rawResponse;
|
|
18129
|
-
providedCallback === null || providedCallback ===
|
|
18129
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
18130
18130
|
};
|
|
18131
18131
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
18132
18132
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -18150,8 +18150,8 @@ class BareMetalMachineKeySetsImpl {
|
|
|
18150
18150
|
spec: deleteOperationSpec$5,
|
|
18151
18151
|
});
|
|
18152
18152
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
18153
|
-
restoreFrom: options === null || options ===
|
|
18154
|
-
intervalInMs: options === null || options ===
|
|
18153
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
18154
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
18155
18155
|
resourceLocationConfig: "location",
|
|
18156
18156
|
});
|
|
18157
18157
|
yield poller.poll();
|
|
@@ -18166,7 +18166,7 @@ class BareMetalMachineKeySetsImpl {
|
|
|
18166
18166
|
* @param options The options parameters.
|
|
18167
18167
|
*/
|
|
18168
18168
|
beginDeleteAndWait(resourceGroupName, clusterName, bareMetalMachineKeySetName, options) {
|
|
18169
|
-
return tslib.__awaiter(this,
|
|
18169
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18170
18170
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, bareMetalMachineKeySetName, options);
|
|
18171
18171
|
return poller.pollUntilDone();
|
|
18172
18172
|
});
|
|
@@ -18180,17 +18180,17 @@ class BareMetalMachineKeySetsImpl {
|
|
|
18180
18180
|
* @param options The options parameters.
|
|
18181
18181
|
*/
|
|
18182
18182
|
beginUpdate(resourceGroupName, clusterName, bareMetalMachineKeySetName, options) {
|
|
18183
|
-
return tslib.__awaiter(this,
|
|
18184
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
18183
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18184
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18185
18185
|
return this.client.sendOperationRequest(args, spec);
|
|
18186
18186
|
});
|
|
18187
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
18187
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18188
18188
|
var _a;
|
|
18189
18189
|
let currentRawResponse = undefined;
|
|
18190
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
18190
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
18191
18191
|
const callback = (rawResponse, flatResponse) => {
|
|
18192
18192
|
currentRawResponse = rawResponse;
|
|
18193
|
-
providedCallback === null || providedCallback ===
|
|
18193
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
18194
18194
|
};
|
|
18195
18195
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
18196
18196
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -18214,8 +18214,8 @@ class BareMetalMachineKeySetsImpl {
|
|
|
18214
18214
|
spec: updateOperationSpec$5,
|
|
18215
18215
|
});
|
|
18216
18216
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
18217
|
-
restoreFrom: options === null || options ===
|
|
18218
|
-
intervalInMs: options === null || options ===
|
|
18217
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
18218
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
18219
18219
|
resourceLocationConfig: "azure-async-operation",
|
|
18220
18220
|
});
|
|
18221
18221
|
yield poller.poll();
|
|
@@ -18231,7 +18231,7 @@ class BareMetalMachineKeySetsImpl {
|
|
|
18231
18231
|
* @param options The options parameters.
|
|
18232
18232
|
*/
|
|
18233
18233
|
beginUpdateAndWait(resourceGroupName, clusterName, bareMetalMachineKeySetName, options) {
|
|
18234
|
-
return tslib.__awaiter(this,
|
|
18234
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18235
18235
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, bareMetalMachineKeySetName, options);
|
|
18236
18236
|
return poller.pollUntilDone();
|
|
18237
18237
|
});
|
|
@@ -18444,7 +18444,7 @@ class BmcKeySetsImpl {
|
|
|
18444
18444
|
return this;
|
|
18445
18445
|
},
|
|
18446
18446
|
byPage: (settings) => {
|
|
18447
|
-
if (settings === null || settings ===
|
|
18447
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
18448
18448
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
18449
18449
|
}
|
|
18450
18450
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -18454,7 +18454,7 @@ class BmcKeySetsImpl {
|
|
|
18454
18454
|
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
18455
18455
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
18456
18456
|
let result;
|
|
18457
|
-
let continuationToken = settings === null || settings ===
|
|
18457
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
18458
18458
|
if (!continuationToken) {
|
|
18459
18459
|
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
18460
18460
|
let page = result.value || [];
|
|
@@ -18520,17 +18520,17 @@ class BmcKeySetsImpl {
|
|
|
18520
18520
|
* @param options The options parameters.
|
|
18521
18521
|
*/
|
|
18522
18522
|
beginCreateOrUpdate(resourceGroupName, clusterName, bmcKeySetName, bmcKeySetParameters, options) {
|
|
18523
|
-
return tslib.__awaiter(this,
|
|
18524
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
18523
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18524
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18525
18525
|
return this.client.sendOperationRequest(args, spec);
|
|
18526
18526
|
});
|
|
18527
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
18527
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18528
18528
|
var _a;
|
|
18529
18529
|
let currentRawResponse = undefined;
|
|
18530
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
18530
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
18531
18531
|
const callback = (rawResponse, flatResponse) => {
|
|
18532
18532
|
currentRawResponse = rawResponse;
|
|
18533
|
-
providedCallback === null || providedCallback ===
|
|
18533
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
18534
18534
|
};
|
|
18535
18535
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
18536
18536
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -18555,8 +18555,8 @@ class BmcKeySetsImpl {
|
|
|
18555
18555
|
spec: createOrUpdateOperationSpec$4,
|
|
18556
18556
|
});
|
|
18557
18557
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
18558
|
-
restoreFrom: options === null || options ===
|
|
18559
|
-
intervalInMs: options === null || options ===
|
|
18558
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
18559
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
18560
18560
|
resourceLocationConfig: "azure-async-operation",
|
|
18561
18561
|
});
|
|
18562
18562
|
yield poller.poll();
|
|
@@ -18573,7 +18573,7 @@ class BmcKeySetsImpl {
|
|
|
18573
18573
|
* @param options The options parameters.
|
|
18574
18574
|
*/
|
|
18575
18575
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, bmcKeySetName, bmcKeySetParameters, options) {
|
|
18576
|
-
return tslib.__awaiter(this,
|
|
18576
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18577
18577
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, bmcKeySetName, bmcKeySetParameters, options);
|
|
18578
18578
|
return poller.pollUntilDone();
|
|
18579
18579
|
});
|
|
@@ -18586,17 +18586,17 @@ class BmcKeySetsImpl {
|
|
|
18586
18586
|
* @param options The options parameters.
|
|
18587
18587
|
*/
|
|
18588
18588
|
beginDelete(resourceGroupName, clusterName, bmcKeySetName, options) {
|
|
18589
|
-
return tslib.__awaiter(this,
|
|
18590
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
18589
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18590
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18591
18591
|
return this.client.sendOperationRequest(args, spec);
|
|
18592
18592
|
});
|
|
18593
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
18593
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18594
18594
|
var _a;
|
|
18595
18595
|
let currentRawResponse = undefined;
|
|
18596
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
18596
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
18597
18597
|
const callback = (rawResponse, flatResponse) => {
|
|
18598
18598
|
currentRawResponse = rawResponse;
|
|
18599
|
-
providedCallback === null || providedCallback ===
|
|
18599
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
18600
18600
|
};
|
|
18601
18601
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
18602
18602
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -18615,8 +18615,8 @@ class BmcKeySetsImpl {
|
|
|
18615
18615
|
spec: deleteOperationSpec$4,
|
|
18616
18616
|
});
|
|
18617
18617
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
18618
|
-
restoreFrom: options === null || options ===
|
|
18619
|
-
intervalInMs: options === null || options ===
|
|
18618
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
18619
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
18620
18620
|
resourceLocationConfig: "location",
|
|
18621
18621
|
});
|
|
18622
18622
|
yield poller.poll();
|
|
@@ -18631,7 +18631,7 @@ class BmcKeySetsImpl {
|
|
|
18631
18631
|
* @param options The options parameters.
|
|
18632
18632
|
*/
|
|
18633
18633
|
beginDeleteAndWait(resourceGroupName, clusterName, bmcKeySetName, options) {
|
|
18634
|
-
return tslib.__awaiter(this,
|
|
18634
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18635
18635
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, bmcKeySetName, options);
|
|
18636
18636
|
return poller.pollUntilDone();
|
|
18637
18637
|
});
|
|
@@ -18645,17 +18645,17 @@ class BmcKeySetsImpl {
|
|
|
18645
18645
|
* @param options The options parameters.
|
|
18646
18646
|
*/
|
|
18647
18647
|
beginUpdate(resourceGroupName, clusterName, bmcKeySetName, options) {
|
|
18648
|
-
return tslib.__awaiter(this,
|
|
18649
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
18648
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18649
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18650
18650
|
return this.client.sendOperationRequest(args, spec);
|
|
18651
18651
|
});
|
|
18652
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
18652
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18653
18653
|
var _a;
|
|
18654
18654
|
let currentRawResponse = undefined;
|
|
18655
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
18655
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
18656
18656
|
const callback = (rawResponse, flatResponse) => {
|
|
18657
18657
|
currentRawResponse = rawResponse;
|
|
18658
|
-
providedCallback === null || providedCallback ===
|
|
18658
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
18659
18659
|
};
|
|
18660
18660
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
18661
18661
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -18674,8 +18674,8 @@ class BmcKeySetsImpl {
|
|
|
18674
18674
|
spec: updateOperationSpec$4,
|
|
18675
18675
|
});
|
|
18676
18676
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
18677
|
-
restoreFrom: options === null || options ===
|
|
18678
|
-
intervalInMs: options === null || options ===
|
|
18677
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
18678
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
18679
18679
|
resourceLocationConfig: "azure-async-operation",
|
|
18680
18680
|
});
|
|
18681
18681
|
yield poller.poll();
|
|
@@ -18691,7 +18691,7 @@ class BmcKeySetsImpl {
|
|
|
18691
18691
|
* @param options The options parameters.
|
|
18692
18692
|
*/
|
|
18693
18693
|
beginUpdateAndWait(resourceGroupName, clusterName, bmcKeySetName, options) {
|
|
18694
|
-
return tslib.__awaiter(this,
|
|
18694
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18695
18695
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, bmcKeySetName, options);
|
|
18696
18696
|
return poller.pollUntilDone();
|
|
18697
18697
|
});
|
|
@@ -18904,7 +18904,7 @@ class MetricsConfigurationsImpl {
|
|
|
18904
18904
|
return this;
|
|
18905
18905
|
},
|
|
18906
18906
|
byPage: (settings) => {
|
|
18907
|
-
if (settings === null || settings ===
|
|
18907
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
18908
18908
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
18909
18909
|
}
|
|
18910
18910
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -18914,7 +18914,7 @@ class MetricsConfigurationsImpl {
|
|
|
18914
18914
|
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
18915
18915
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
18916
18916
|
let result;
|
|
18917
|
-
let continuationToken = settings === null || settings ===
|
|
18917
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
18918
18918
|
if (!continuationToken) {
|
|
18919
18919
|
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
18920
18920
|
let page = result.value || [];
|
|
@@ -18979,17 +18979,17 @@ class MetricsConfigurationsImpl {
|
|
|
18979
18979
|
* @param options The options parameters.
|
|
18980
18980
|
*/
|
|
18981
18981
|
beginCreateOrUpdate(resourceGroupName, clusterName, metricsConfigurationName, metricsConfigurationParameters, options) {
|
|
18982
|
-
return tslib.__awaiter(this,
|
|
18983
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
18982
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18983
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18984
18984
|
return this.client.sendOperationRequest(args, spec);
|
|
18985
18985
|
});
|
|
18986
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
18986
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
18987
18987
|
var _a;
|
|
18988
18988
|
let currentRawResponse = undefined;
|
|
18989
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
18989
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
18990
18990
|
const callback = (rawResponse, flatResponse) => {
|
|
18991
18991
|
currentRawResponse = rawResponse;
|
|
18992
|
-
providedCallback === null || providedCallback ===
|
|
18992
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
18993
18993
|
};
|
|
18994
18994
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
18995
18995
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -19014,8 +19014,8 @@ class MetricsConfigurationsImpl {
|
|
|
19014
19014
|
spec: createOrUpdateOperationSpec$3,
|
|
19015
19015
|
});
|
|
19016
19016
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
19017
|
-
restoreFrom: options === null || options ===
|
|
19018
|
-
intervalInMs: options === null || options ===
|
|
19017
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
19018
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
19019
19019
|
resourceLocationConfig: "azure-async-operation",
|
|
19020
19020
|
});
|
|
19021
19021
|
yield poller.poll();
|
|
@@ -19031,7 +19031,7 @@ class MetricsConfigurationsImpl {
|
|
|
19031
19031
|
* @param options The options parameters.
|
|
19032
19032
|
*/
|
|
19033
19033
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, metricsConfigurationName, metricsConfigurationParameters, options) {
|
|
19034
|
-
return tslib.__awaiter(this,
|
|
19034
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19035
19035
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, metricsConfigurationName, metricsConfigurationParameters, options);
|
|
19036
19036
|
return poller.pollUntilDone();
|
|
19037
19037
|
});
|
|
@@ -19044,17 +19044,17 @@ class MetricsConfigurationsImpl {
|
|
|
19044
19044
|
* @param options The options parameters.
|
|
19045
19045
|
*/
|
|
19046
19046
|
beginDelete(resourceGroupName, clusterName, metricsConfigurationName, options) {
|
|
19047
|
-
return tslib.__awaiter(this,
|
|
19048
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
19047
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19048
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19049
19049
|
return this.client.sendOperationRequest(args, spec);
|
|
19050
19050
|
});
|
|
19051
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
19051
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19052
19052
|
var _a;
|
|
19053
19053
|
let currentRawResponse = undefined;
|
|
19054
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
19054
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
19055
19055
|
const callback = (rawResponse, flatResponse) => {
|
|
19056
19056
|
currentRawResponse = rawResponse;
|
|
19057
|
-
providedCallback === null || providedCallback ===
|
|
19057
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
19058
19058
|
};
|
|
19059
19059
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
19060
19060
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -19078,8 +19078,8 @@ class MetricsConfigurationsImpl {
|
|
|
19078
19078
|
spec: deleteOperationSpec$3,
|
|
19079
19079
|
});
|
|
19080
19080
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
19081
|
-
restoreFrom: options === null || options ===
|
|
19082
|
-
intervalInMs: options === null || options ===
|
|
19081
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
19082
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
19083
19083
|
resourceLocationConfig: "location",
|
|
19084
19084
|
});
|
|
19085
19085
|
yield poller.poll();
|
|
@@ -19094,7 +19094,7 @@ class MetricsConfigurationsImpl {
|
|
|
19094
19094
|
* @param options The options parameters.
|
|
19095
19095
|
*/
|
|
19096
19096
|
beginDeleteAndWait(resourceGroupName, clusterName, metricsConfigurationName, options) {
|
|
19097
|
-
return tslib.__awaiter(this,
|
|
19097
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19098
19098
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, metricsConfigurationName, options);
|
|
19099
19099
|
return poller.pollUntilDone();
|
|
19100
19100
|
});
|
|
@@ -19108,17 +19108,17 @@ class MetricsConfigurationsImpl {
|
|
|
19108
19108
|
* @param options The options parameters.
|
|
19109
19109
|
*/
|
|
19110
19110
|
beginUpdate(resourceGroupName, clusterName, metricsConfigurationName, options) {
|
|
19111
|
-
return tslib.__awaiter(this,
|
|
19112
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
19111
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19112
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19113
19113
|
return this.client.sendOperationRequest(args, spec);
|
|
19114
19114
|
});
|
|
19115
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
19115
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19116
19116
|
var _a;
|
|
19117
19117
|
let currentRawResponse = undefined;
|
|
19118
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
19118
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
19119
19119
|
const callback = (rawResponse, flatResponse) => {
|
|
19120
19120
|
currentRawResponse = rawResponse;
|
|
19121
|
-
providedCallback === null || providedCallback ===
|
|
19121
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
19122
19122
|
};
|
|
19123
19123
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
19124
19124
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -19142,8 +19142,8 @@ class MetricsConfigurationsImpl {
|
|
|
19142
19142
|
spec: updateOperationSpec$3,
|
|
19143
19143
|
});
|
|
19144
19144
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
19145
|
-
restoreFrom: options === null || options ===
|
|
19146
|
-
intervalInMs: options === null || options ===
|
|
19145
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
19146
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
19147
19147
|
resourceLocationConfig: "azure-async-operation",
|
|
19148
19148
|
});
|
|
19149
19149
|
yield poller.poll();
|
|
@@ -19159,7 +19159,7 @@ class MetricsConfigurationsImpl {
|
|
|
19159
19159
|
* @param options The options parameters.
|
|
19160
19160
|
*/
|
|
19161
19161
|
beginUpdateAndWait(resourceGroupName, clusterName, metricsConfigurationName, options) {
|
|
19162
|
-
return tslib.__awaiter(this,
|
|
19162
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19163
19163
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, metricsConfigurationName, options);
|
|
19164
19164
|
return poller.pollUntilDone();
|
|
19165
19165
|
});
|
|
@@ -19372,7 +19372,7 @@ class AgentPoolsImpl {
|
|
|
19372
19372
|
return this;
|
|
19373
19373
|
},
|
|
19374
19374
|
byPage: (settings) => {
|
|
19375
|
-
if (settings === null || settings ===
|
|
19375
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
19376
19376
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
19377
19377
|
}
|
|
19378
19378
|
return this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings);
|
|
@@ -19382,7 +19382,7 @@ class AgentPoolsImpl {
|
|
|
19382
19382
|
listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings) {
|
|
19383
19383
|
return tslib.__asyncGenerator(this, arguments, function* listByKubernetesClusterPagingPage_1() {
|
|
19384
19384
|
let result;
|
|
19385
|
-
let continuationToken = settings === null || settings ===
|
|
19385
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
19386
19386
|
if (!continuationToken) {
|
|
19387
19387
|
result = yield tslib.__await(this._listByKubernetesCluster(resourceGroupName, kubernetesClusterName, options));
|
|
19388
19388
|
let page = result.value || [];
|
|
@@ -19447,17 +19447,17 @@ class AgentPoolsImpl {
|
|
|
19447
19447
|
* @param options The options parameters.
|
|
19448
19448
|
*/
|
|
19449
19449
|
beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, agentPoolName, agentPoolParameters, options) {
|
|
19450
|
-
return tslib.__awaiter(this,
|
|
19451
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
19450
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19451
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19452
19452
|
return this.client.sendOperationRequest(args, spec);
|
|
19453
19453
|
});
|
|
19454
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
19454
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19455
19455
|
var _a;
|
|
19456
19456
|
let currentRawResponse = undefined;
|
|
19457
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
19457
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
19458
19458
|
const callback = (rawResponse, flatResponse) => {
|
|
19459
19459
|
currentRawResponse = rawResponse;
|
|
19460
|
-
providedCallback === null || providedCallback ===
|
|
19460
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
19461
19461
|
};
|
|
19462
19462
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
19463
19463
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -19482,8 +19482,8 @@ class AgentPoolsImpl {
|
|
|
19482
19482
|
spec: createOrUpdateOperationSpec$2,
|
|
19483
19483
|
});
|
|
19484
19484
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
19485
|
-
restoreFrom: options === null || options ===
|
|
19486
|
-
intervalInMs: options === null || options ===
|
|
19485
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
19486
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
19487
19487
|
resourceLocationConfig: "azure-async-operation",
|
|
19488
19488
|
});
|
|
19489
19489
|
yield poller.poll();
|
|
@@ -19499,7 +19499,7 @@ class AgentPoolsImpl {
|
|
|
19499
19499
|
* @param options The options parameters.
|
|
19500
19500
|
*/
|
|
19501
19501
|
beginCreateOrUpdateAndWait(resourceGroupName, kubernetesClusterName, agentPoolName, agentPoolParameters, options) {
|
|
19502
|
-
return tslib.__awaiter(this,
|
|
19502
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19503
19503
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, agentPoolName, agentPoolParameters, options);
|
|
19504
19504
|
return poller.pollUntilDone();
|
|
19505
19505
|
});
|
|
@@ -19512,17 +19512,17 @@ class AgentPoolsImpl {
|
|
|
19512
19512
|
* @param options The options parameters.
|
|
19513
19513
|
*/
|
|
19514
19514
|
beginDelete(resourceGroupName, kubernetesClusterName, agentPoolName, options) {
|
|
19515
|
-
return tslib.__awaiter(this,
|
|
19516
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
19515
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19516
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19517
19517
|
return this.client.sendOperationRequest(args, spec);
|
|
19518
19518
|
});
|
|
19519
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
19519
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19520
19520
|
var _a;
|
|
19521
19521
|
let currentRawResponse = undefined;
|
|
19522
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
19522
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
19523
19523
|
const callback = (rawResponse, flatResponse) => {
|
|
19524
19524
|
currentRawResponse = rawResponse;
|
|
19525
|
-
providedCallback === null || providedCallback ===
|
|
19525
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
19526
19526
|
};
|
|
19527
19527
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
19528
19528
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -19546,8 +19546,8 @@ class AgentPoolsImpl {
|
|
|
19546
19546
|
spec: deleteOperationSpec$2,
|
|
19547
19547
|
});
|
|
19548
19548
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
19549
|
-
restoreFrom: options === null || options ===
|
|
19550
|
-
intervalInMs: options === null || options ===
|
|
19549
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
19550
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
19551
19551
|
resourceLocationConfig: "location",
|
|
19552
19552
|
});
|
|
19553
19553
|
yield poller.poll();
|
|
@@ -19562,7 +19562,7 @@ class AgentPoolsImpl {
|
|
|
19562
19562
|
* @param options The options parameters.
|
|
19563
19563
|
*/
|
|
19564
19564
|
beginDeleteAndWait(resourceGroupName, kubernetesClusterName, agentPoolName, options) {
|
|
19565
|
-
return tslib.__awaiter(this,
|
|
19565
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19566
19566
|
const poller = yield this.beginDelete(resourceGroupName, kubernetesClusterName, agentPoolName, options);
|
|
19567
19567
|
return poller.pollUntilDone();
|
|
19568
19568
|
});
|
|
@@ -19576,17 +19576,17 @@ class AgentPoolsImpl {
|
|
|
19576
19576
|
* @param options The options parameters.
|
|
19577
19577
|
*/
|
|
19578
19578
|
beginUpdate(resourceGroupName, kubernetesClusterName, agentPoolName, options) {
|
|
19579
|
-
return tslib.__awaiter(this,
|
|
19580
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
19579
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19580
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19581
19581
|
return this.client.sendOperationRequest(args, spec);
|
|
19582
19582
|
});
|
|
19583
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
19583
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19584
19584
|
var _a;
|
|
19585
19585
|
let currentRawResponse = undefined;
|
|
19586
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
19586
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
19587
19587
|
const callback = (rawResponse, flatResponse) => {
|
|
19588
19588
|
currentRawResponse = rawResponse;
|
|
19589
|
-
providedCallback === null || providedCallback ===
|
|
19589
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
19590
19590
|
};
|
|
19591
19591
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
19592
19592
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -19610,8 +19610,8 @@ class AgentPoolsImpl {
|
|
|
19610
19610
|
spec: updateOperationSpec$2,
|
|
19611
19611
|
});
|
|
19612
19612
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
19613
|
-
restoreFrom: options === null || options ===
|
|
19614
|
-
intervalInMs: options === null || options ===
|
|
19613
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
19614
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
19615
19615
|
resourceLocationConfig: "azure-async-operation",
|
|
19616
19616
|
});
|
|
19617
19617
|
yield poller.poll();
|
|
@@ -19627,7 +19627,7 @@ class AgentPoolsImpl {
|
|
|
19627
19627
|
* @param options The options parameters.
|
|
19628
19628
|
*/
|
|
19629
19629
|
beginUpdateAndWait(resourceGroupName, kubernetesClusterName, agentPoolName, options) {
|
|
19630
|
-
return tslib.__awaiter(this,
|
|
19630
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19631
19631
|
const poller = yield this.beginUpdate(resourceGroupName, kubernetesClusterName, agentPoolName, options);
|
|
19632
19632
|
return poller.pollUntilDone();
|
|
19633
19633
|
});
|
|
@@ -19841,7 +19841,7 @@ class KubernetesClusterFeaturesImpl {
|
|
|
19841
19841
|
return this;
|
|
19842
19842
|
},
|
|
19843
19843
|
byPage: (settings) => {
|
|
19844
|
-
if (settings === null || settings ===
|
|
19844
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
19845
19845
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
19846
19846
|
}
|
|
19847
19847
|
return this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings);
|
|
@@ -19851,7 +19851,7 @@ class KubernetesClusterFeaturesImpl {
|
|
|
19851
19851
|
listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings) {
|
|
19852
19852
|
return tslib.__asyncGenerator(this, arguments, function* listByKubernetesClusterPagingPage_1() {
|
|
19853
19853
|
let result;
|
|
19854
|
-
let continuationToken = settings === null || settings ===
|
|
19854
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
19855
19855
|
if (!continuationToken) {
|
|
19856
19856
|
result = yield tslib.__await(this._listByKubernetesCluster(resourceGroupName, kubernetesClusterName, options));
|
|
19857
19857
|
let page = result.value || [];
|
|
@@ -19917,17 +19917,17 @@ class KubernetesClusterFeaturesImpl {
|
|
|
19917
19917
|
* @param options The options parameters.
|
|
19918
19918
|
*/
|
|
19919
19919
|
beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureParameters, options) {
|
|
19920
|
-
return tslib.__awaiter(this,
|
|
19921
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
19920
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19921
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19922
19922
|
return this.client.sendOperationRequest(args, spec);
|
|
19923
19923
|
});
|
|
19924
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
19924
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19925
19925
|
var _a;
|
|
19926
19926
|
let currentRawResponse = undefined;
|
|
19927
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
19927
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
19928
19928
|
const callback = (rawResponse, flatResponse) => {
|
|
19929
19929
|
currentRawResponse = rawResponse;
|
|
19930
|
-
providedCallback === null || providedCallback ===
|
|
19930
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
19931
19931
|
};
|
|
19932
19932
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
19933
19933
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -19952,8 +19952,8 @@ class KubernetesClusterFeaturesImpl {
|
|
|
19952
19952
|
spec: createOrUpdateOperationSpec$1,
|
|
19953
19953
|
});
|
|
19954
19954
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
19955
|
-
restoreFrom: options === null || options ===
|
|
19956
|
-
intervalInMs: options === null || options ===
|
|
19955
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
19956
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
19957
19957
|
resourceLocationConfig: "azure-async-operation",
|
|
19958
19958
|
});
|
|
19959
19959
|
yield poller.poll();
|
|
@@ -19970,7 +19970,7 @@ class KubernetesClusterFeaturesImpl {
|
|
|
19970
19970
|
* @param options The options parameters.
|
|
19971
19971
|
*/
|
|
19972
19972
|
beginCreateOrUpdateAndWait(resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureParameters, options) {
|
|
19973
|
-
return tslib.__awaiter(this,
|
|
19973
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19974
19974
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureParameters, options);
|
|
19975
19975
|
return poller.pollUntilDone();
|
|
19976
19976
|
});
|
|
@@ -19983,17 +19983,17 @@ class KubernetesClusterFeaturesImpl {
|
|
|
19983
19983
|
* @param options The options parameters.
|
|
19984
19984
|
*/
|
|
19985
19985
|
beginDelete(resourceGroupName, kubernetesClusterName, featureName, options) {
|
|
19986
|
-
return tslib.__awaiter(this,
|
|
19987
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
19986
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19987
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19988
19988
|
return this.client.sendOperationRequest(args, spec);
|
|
19989
19989
|
});
|
|
19990
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
19990
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
19991
19991
|
var _a;
|
|
19992
19992
|
let currentRawResponse = undefined;
|
|
19993
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
19993
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
19994
19994
|
const callback = (rawResponse, flatResponse) => {
|
|
19995
19995
|
currentRawResponse = rawResponse;
|
|
19996
|
-
providedCallback === null || providedCallback ===
|
|
19996
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
19997
19997
|
};
|
|
19998
19998
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
19999
19999
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -20012,8 +20012,8 @@ class KubernetesClusterFeaturesImpl {
|
|
|
20012
20012
|
spec: deleteOperationSpec$1,
|
|
20013
20013
|
});
|
|
20014
20014
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
20015
|
-
restoreFrom: options === null || options ===
|
|
20016
|
-
intervalInMs: options === null || options ===
|
|
20015
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
20016
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
20017
20017
|
resourceLocationConfig: "location",
|
|
20018
20018
|
});
|
|
20019
20019
|
yield poller.poll();
|
|
@@ -20028,7 +20028,7 @@ class KubernetesClusterFeaturesImpl {
|
|
|
20028
20028
|
* @param options The options parameters.
|
|
20029
20029
|
*/
|
|
20030
20030
|
beginDeleteAndWait(resourceGroupName, kubernetesClusterName, featureName, options) {
|
|
20031
|
-
return tslib.__awaiter(this,
|
|
20031
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20032
20032
|
const poller = yield this.beginDelete(resourceGroupName, kubernetesClusterName, featureName, options);
|
|
20033
20033
|
return poller.pollUntilDone();
|
|
20034
20034
|
});
|
|
@@ -20041,17 +20041,17 @@ class KubernetesClusterFeaturesImpl {
|
|
|
20041
20041
|
* @param options The options parameters.
|
|
20042
20042
|
*/
|
|
20043
20043
|
beginUpdate(resourceGroupName, kubernetesClusterName, featureName, options) {
|
|
20044
|
-
return tslib.__awaiter(this,
|
|
20045
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
20044
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20045
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20046
20046
|
return this.client.sendOperationRequest(args, spec);
|
|
20047
20047
|
});
|
|
20048
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
20048
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20049
20049
|
var _a;
|
|
20050
20050
|
let currentRawResponse = undefined;
|
|
20051
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
20051
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
20052
20052
|
const callback = (rawResponse, flatResponse) => {
|
|
20053
20053
|
currentRawResponse = rawResponse;
|
|
20054
|
-
providedCallback === null || providedCallback ===
|
|
20054
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
20055
20055
|
};
|
|
20056
20056
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
20057
20057
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -20070,8 +20070,8 @@ class KubernetesClusterFeaturesImpl {
|
|
|
20070
20070
|
spec: updateOperationSpec$1,
|
|
20071
20071
|
});
|
|
20072
20072
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
20073
|
-
restoreFrom: options === null || options ===
|
|
20074
|
-
intervalInMs: options === null || options ===
|
|
20073
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
20074
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
20075
20075
|
resourceLocationConfig: "azure-async-operation",
|
|
20076
20076
|
});
|
|
20077
20077
|
yield poller.poll();
|
|
@@ -20086,7 +20086,7 @@ class KubernetesClusterFeaturesImpl {
|
|
|
20086
20086
|
* @param options The options parameters.
|
|
20087
20087
|
*/
|
|
20088
20088
|
beginUpdateAndWait(resourceGroupName, kubernetesClusterName, featureName, options) {
|
|
20089
|
-
return tslib.__awaiter(this,
|
|
20089
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20090
20090
|
const poller = yield this.beginUpdate(resourceGroupName, kubernetesClusterName, featureName, options);
|
|
20091
20091
|
return poller.pollUntilDone();
|
|
20092
20092
|
});
|
|
@@ -20300,7 +20300,7 @@ class ConsolesImpl {
|
|
|
20300
20300
|
return this;
|
|
20301
20301
|
},
|
|
20302
20302
|
byPage: (settings) => {
|
|
20303
|
-
if (settings === null || settings ===
|
|
20303
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
20304
20304
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
20305
20305
|
}
|
|
20306
20306
|
return this.listByVirtualMachinePagingPage(resourceGroupName, virtualMachineName, options, settings);
|
|
@@ -20310,7 +20310,7 @@ class ConsolesImpl {
|
|
|
20310
20310
|
listByVirtualMachinePagingPage(resourceGroupName, virtualMachineName, options, settings) {
|
|
20311
20311
|
return tslib.__asyncGenerator(this, arguments, function* listByVirtualMachinePagingPage_1() {
|
|
20312
20312
|
let result;
|
|
20313
|
-
let continuationToken = settings === null || settings ===
|
|
20313
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
20314
20314
|
if (!continuationToken) {
|
|
20315
20315
|
result = yield tslib.__await(this._listByVirtualMachine(resourceGroupName, virtualMachineName, options));
|
|
20316
20316
|
let page = result.value || [];
|
|
@@ -20376,17 +20376,17 @@ class ConsolesImpl {
|
|
|
20376
20376
|
* @param options The options parameters.
|
|
20377
20377
|
*/
|
|
20378
20378
|
beginCreateOrUpdate(resourceGroupName, virtualMachineName, consoleName, consoleParameters, options) {
|
|
20379
|
-
return tslib.__awaiter(this,
|
|
20380
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
20379
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20380
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20381
20381
|
return this.client.sendOperationRequest(args, spec);
|
|
20382
20382
|
});
|
|
20383
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
20383
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20384
20384
|
var _a;
|
|
20385
20385
|
let currentRawResponse = undefined;
|
|
20386
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
20386
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
20387
20387
|
const callback = (rawResponse, flatResponse) => {
|
|
20388
20388
|
currentRawResponse = rawResponse;
|
|
20389
|
-
providedCallback === null || providedCallback ===
|
|
20389
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
20390
20390
|
};
|
|
20391
20391
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
20392
20392
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -20411,8 +20411,8 @@ class ConsolesImpl {
|
|
|
20411
20411
|
spec: createOrUpdateOperationSpec,
|
|
20412
20412
|
});
|
|
20413
20413
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
20414
|
-
restoreFrom: options === null || options ===
|
|
20415
|
-
intervalInMs: options === null || options ===
|
|
20414
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
20415
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
20416
20416
|
resourceLocationConfig: "azure-async-operation",
|
|
20417
20417
|
});
|
|
20418
20418
|
yield poller.poll();
|
|
@@ -20429,7 +20429,7 @@ class ConsolesImpl {
|
|
|
20429
20429
|
* @param options The options parameters.
|
|
20430
20430
|
*/
|
|
20431
20431
|
beginCreateOrUpdateAndWait(resourceGroupName, virtualMachineName, consoleName, consoleParameters, options) {
|
|
20432
|
-
return tslib.__awaiter(this,
|
|
20432
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20433
20433
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualMachineName, consoleName, consoleParameters, options);
|
|
20434
20434
|
return poller.pollUntilDone();
|
|
20435
20435
|
});
|
|
@@ -20442,17 +20442,17 @@ class ConsolesImpl {
|
|
|
20442
20442
|
* @param options The options parameters.
|
|
20443
20443
|
*/
|
|
20444
20444
|
beginDelete(resourceGroupName, virtualMachineName, consoleName, options) {
|
|
20445
|
-
return tslib.__awaiter(this,
|
|
20446
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
20445
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20446
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20447
20447
|
return this.client.sendOperationRequest(args, spec);
|
|
20448
20448
|
});
|
|
20449
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
20449
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20450
20450
|
var _a;
|
|
20451
20451
|
let currentRawResponse = undefined;
|
|
20452
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
20452
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
20453
20453
|
const callback = (rawResponse, flatResponse) => {
|
|
20454
20454
|
currentRawResponse = rawResponse;
|
|
20455
|
-
providedCallback === null || providedCallback ===
|
|
20455
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
20456
20456
|
};
|
|
20457
20457
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
20458
20458
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -20471,8 +20471,8 @@ class ConsolesImpl {
|
|
|
20471
20471
|
spec: deleteOperationSpec,
|
|
20472
20472
|
});
|
|
20473
20473
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
20474
|
-
restoreFrom: options === null || options ===
|
|
20475
|
-
intervalInMs: options === null || options ===
|
|
20474
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
20475
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
20476
20476
|
resourceLocationConfig: "location",
|
|
20477
20477
|
});
|
|
20478
20478
|
yield poller.poll();
|
|
@@ -20487,7 +20487,7 @@ class ConsolesImpl {
|
|
|
20487
20487
|
* @param options The options parameters.
|
|
20488
20488
|
*/
|
|
20489
20489
|
beginDeleteAndWait(resourceGroupName, virtualMachineName, consoleName, options) {
|
|
20490
|
-
return tslib.__awaiter(this,
|
|
20490
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20491
20491
|
const poller = yield this.beginDelete(resourceGroupName, virtualMachineName, consoleName, options);
|
|
20492
20492
|
return poller.pollUntilDone();
|
|
20493
20493
|
});
|
|
@@ -20501,17 +20501,17 @@ class ConsolesImpl {
|
|
|
20501
20501
|
* @param options The options parameters.
|
|
20502
20502
|
*/
|
|
20503
20503
|
beginUpdate(resourceGroupName, virtualMachineName, consoleName, options) {
|
|
20504
|
-
return tslib.__awaiter(this,
|
|
20505
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
20504
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20505
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20506
20506
|
return this.client.sendOperationRequest(args, spec);
|
|
20507
20507
|
});
|
|
20508
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
20508
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20509
20509
|
var _a;
|
|
20510
20510
|
let currentRawResponse = undefined;
|
|
20511
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
20511
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
20512
20512
|
const callback = (rawResponse, flatResponse) => {
|
|
20513
20513
|
currentRawResponse = rawResponse;
|
|
20514
|
-
providedCallback === null || providedCallback ===
|
|
20514
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
20515
20515
|
};
|
|
20516
20516
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
20517
20517
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -20530,8 +20530,8 @@ class ConsolesImpl {
|
|
|
20530
20530
|
spec: updateOperationSpec,
|
|
20531
20531
|
});
|
|
20532
20532
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
20533
|
-
restoreFrom: options === null || options ===
|
|
20534
|
-
intervalInMs: options === null || options ===
|
|
20533
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
20534
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
20535
20535
|
resourceLocationConfig: "azure-async-operation",
|
|
20536
20536
|
});
|
|
20537
20537
|
yield poller.poll();
|
|
@@ -20547,7 +20547,7 @@ class ConsolesImpl {
|
|
|
20547
20547
|
* @param options The options parameters.
|
|
20548
20548
|
*/
|
|
20549
20549
|
beginUpdateAndWait(resourceGroupName, virtualMachineName, consoleName, options) {
|
|
20550
|
-
return tslib.__awaiter(this,
|
|
20550
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20551
20551
|
const poller = yield this.beginUpdate(resourceGroupName, virtualMachineName, consoleName, options);
|
|
20552
20552
|
return poller.pollUntilDone();
|
|
20553
20553
|
});
|
|
@@ -20763,10 +20763,10 @@ class NetworkCloud extends coreClient__namespace.ServiceClient {
|
|
|
20763
20763
|
: `${packageDetails}`;
|
|
20764
20764
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
20765
20765
|
userAgentPrefix,
|
|
20766
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
20766
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
20767
20767
|
super(optionsWithDefaults);
|
|
20768
20768
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
20769
|
-
if ((options === null || options ===
|
|
20769
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
20770
20770
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
20771
20771
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
20772
20772
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -20780,7 +20780,7 @@ class NetworkCloud extends coreClient__namespace.ServiceClient {
|
|
|
20780
20780
|
});
|
|
20781
20781
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
20782
20782
|
credential: credentials,
|
|
20783
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
20783
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
20784
20784
|
challengeCallbacks: {
|
|
20785
20785
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
20786
20786
|
},
|
|
@@ -20821,7 +20821,7 @@ class NetworkCloud extends coreClient__namespace.ServiceClient {
|
|
|
20821
20821
|
const apiVersionPolicy = {
|
|
20822
20822
|
name: "CustomApiVersionPolicy",
|
|
20823
20823
|
sendRequest(request, next) {
|
|
20824
|
-
return tslib.__awaiter(this,
|
|
20824
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
20825
20825
|
const param = request.url.split("?");
|
|
20826
20826
|
if (param.length > 1) {
|
|
20827
20827
|
const newParams = param[1].split("&").map((item) => {
|