@azure/arm-hdinsight 1.3.0-alpha.20250103.1 → 1.3.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 +197 -197
- 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
|
}
|
|
@@ -4435,7 +4435,7 @@ function createLroSpec(inputs) {
|
|
|
4435
4435
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
4436
4436
|
sendPollRequest: (path, options) => {
|
|
4437
4437
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
4438
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
4438
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
4439
4439
|
},
|
|
4440
4440
|
};
|
|
4441
4441
|
}
|
|
@@ -4473,7 +4473,7 @@ class ApplicationsImpl {
|
|
|
4473
4473
|
return this;
|
|
4474
4474
|
},
|
|
4475
4475
|
byPage: (settings) => {
|
|
4476
|
-
if (settings === null || settings ===
|
|
4476
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4477
4477
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4478
4478
|
}
|
|
4479
4479
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -4483,7 +4483,7 @@ class ApplicationsImpl {
|
|
|
4483
4483
|
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
4484
4484
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
4485
4485
|
let result;
|
|
4486
|
-
let continuationToken = settings === null || settings ===
|
|
4486
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4487
4487
|
if (!continuationToken) {
|
|
4488
4488
|
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
4489
4489
|
let page = result.value || [];
|
|
@@ -4548,17 +4548,17 @@ class ApplicationsImpl {
|
|
|
4548
4548
|
* @param options The options parameters.
|
|
4549
4549
|
*/
|
|
4550
4550
|
beginCreate(resourceGroupName, clusterName, applicationName, parameters, options) {
|
|
4551
|
-
return tslib.__awaiter(this,
|
|
4552
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4551
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4552
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4553
4553
|
return this.client.sendOperationRequest(args, spec);
|
|
4554
4554
|
});
|
|
4555
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4555
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4556
4556
|
var _a;
|
|
4557
4557
|
let currentRawResponse = undefined;
|
|
4558
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4558
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4559
4559
|
const callback = (rawResponse, flatResponse) => {
|
|
4560
4560
|
currentRawResponse = rawResponse;
|
|
4561
|
-
providedCallback === null || providedCallback ===
|
|
4561
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4562
4562
|
};
|
|
4563
4563
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4564
4564
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4583,8 +4583,8 @@ class ApplicationsImpl {
|
|
|
4583
4583
|
spec: createOperationSpec$2,
|
|
4584
4584
|
});
|
|
4585
4585
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4586
|
-
restoreFrom: options === null || options ===
|
|
4587
|
-
intervalInMs: options === null || options ===
|
|
4586
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4587
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4588
4588
|
resourceLocationConfig: "location",
|
|
4589
4589
|
});
|
|
4590
4590
|
yield poller.poll();
|
|
@@ -4600,7 +4600,7 @@ class ApplicationsImpl {
|
|
|
4600
4600
|
* @param options The options parameters.
|
|
4601
4601
|
*/
|
|
4602
4602
|
beginCreateAndWait(resourceGroupName, clusterName, applicationName, parameters, options) {
|
|
4603
|
-
return tslib.__awaiter(this,
|
|
4603
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4604
4604
|
const poller = yield this.beginCreate(resourceGroupName, clusterName, applicationName, parameters, options);
|
|
4605
4605
|
return poller.pollUntilDone();
|
|
4606
4606
|
});
|
|
@@ -4613,17 +4613,17 @@ class ApplicationsImpl {
|
|
|
4613
4613
|
* @param options The options parameters.
|
|
4614
4614
|
*/
|
|
4615
4615
|
beginDelete(resourceGroupName, clusterName, applicationName, options) {
|
|
4616
|
-
return tslib.__awaiter(this,
|
|
4617
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4616
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4617
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4618
4618
|
return this.client.sendOperationRequest(args, spec);
|
|
4619
4619
|
});
|
|
4620
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4620
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4621
4621
|
var _a;
|
|
4622
4622
|
let currentRawResponse = undefined;
|
|
4623
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4623
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4624
4624
|
const callback = (rawResponse, flatResponse) => {
|
|
4625
4625
|
currentRawResponse = rawResponse;
|
|
4626
|
-
providedCallback === null || providedCallback ===
|
|
4626
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4627
4627
|
};
|
|
4628
4628
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4629
4629
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4642,8 +4642,8 @@ class ApplicationsImpl {
|
|
|
4642
4642
|
spec: deleteOperationSpec$4,
|
|
4643
4643
|
});
|
|
4644
4644
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4645
|
-
restoreFrom: options === null || options ===
|
|
4646
|
-
intervalInMs: options === null || options ===
|
|
4645
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4646
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4647
4647
|
resourceLocationConfig: "location",
|
|
4648
4648
|
});
|
|
4649
4649
|
yield poller.poll();
|
|
@@ -4658,7 +4658,7 @@ class ApplicationsImpl {
|
|
|
4658
4658
|
* @param options The options parameters.
|
|
4659
4659
|
*/
|
|
4660
4660
|
beginDeleteAndWait(resourceGroupName, clusterName, applicationName, options) {
|
|
4661
|
-
return tslib.__awaiter(this,
|
|
4661
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4662
4662
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, applicationName, options);
|
|
4663
4663
|
return poller.pollUntilDone();
|
|
4664
4664
|
});
|
|
@@ -4863,7 +4863,7 @@ class ClustersImpl {
|
|
|
4863
4863
|
return this;
|
|
4864
4864
|
},
|
|
4865
4865
|
byPage: (settings) => {
|
|
4866
|
-
if (settings === null || settings ===
|
|
4866
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4867
4867
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4868
4868
|
}
|
|
4869
4869
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -4873,7 +4873,7 @@ class ClustersImpl {
|
|
|
4873
4873
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4874
4874
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4875
4875
|
let result;
|
|
4876
|
-
let continuationToken = settings === null || settings ===
|
|
4876
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4877
4877
|
if (!continuationToken) {
|
|
4878
4878
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
4879
4879
|
let page = result.value || [];
|
|
@@ -4924,7 +4924,7 @@ class ClustersImpl {
|
|
|
4924
4924
|
return this;
|
|
4925
4925
|
},
|
|
4926
4926
|
byPage: (settings) => {
|
|
4927
|
-
if (settings === null || settings ===
|
|
4927
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4928
4928
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4929
4929
|
}
|
|
4930
4930
|
return this.listPagingPage(options, settings);
|
|
@@ -4934,7 +4934,7 @@ class ClustersImpl {
|
|
|
4934
4934
|
listPagingPage(options, settings) {
|
|
4935
4935
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4936
4936
|
let result;
|
|
4937
|
-
let continuationToken = settings === null || settings ===
|
|
4937
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4938
4938
|
if (!continuationToken) {
|
|
4939
4939
|
result = yield tslib.__await(this._list(options));
|
|
4940
4940
|
let page = result.value || [];
|
|
@@ -4979,17 +4979,17 @@ class ClustersImpl {
|
|
|
4979
4979
|
* @param options The options parameters.
|
|
4980
4980
|
*/
|
|
4981
4981
|
beginCreate(resourceGroupName, clusterName, parameters, options) {
|
|
4982
|
-
return tslib.__awaiter(this,
|
|
4983
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4982
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4983
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4984
4984
|
return this.client.sendOperationRequest(args, spec);
|
|
4985
4985
|
});
|
|
4986
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4986
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4987
4987
|
var _a;
|
|
4988
4988
|
let currentRawResponse = undefined;
|
|
4989
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4989
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4990
4990
|
const callback = (rawResponse, flatResponse) => {
|
|
4991
4991
|
currentRawResponse = rawResponse;
|
|
4992
|
-
providedCallback === null || providedCallback ===
|
|
4992
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4993
4993
|
};
|
|
4994
4994
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4995
4995
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5008,8 +5008,8 @@ class ClustersImpl {
|
|
|
5008
5008
|
spec: createOperationSpec$1,
|
|
5009
5009
|
});
|
|
5010
5010
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5011
|
-
restoreFrom: options === null || options ===
|
|
5012
|
-
intervalInMs: options === null || options ===
|
|
5011
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5012
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5013
5013
|
resourceLocationConfig: "location",
|
|
5014
5014
|
});
|
|
5015
5015
|
yield poller.poll();
|
|
@@ -5024,7 +5024,7 @@ class ClustersImpl {
|
|
|
5024
5024
|
* @param options The options parameters.
|
|
5025
5025
|
*/
|
|
5026
5026
|
beginCreateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
5027
|
-
return tslib.__awaiter(this,
|
|
5027
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5028
5028
|
const poller = yield this.beginCreate(resourceGroupName, clusterName, parameters, options);
|
|
5029
5029
|
return poller.pollUntilDone();
|
|
5030
5030
|
});
|
|
@@ -5046,17 +5046,17 @@ class ClustersImpl {
|
|
|
5046
5046
|
* @param options The options parameters.
|
|
5047
5047
|
*/
|
|
5048
5048
|
beginDelete(resourceGroupName, clusterName, options) {
|
|
5049
|
-
return tslib.__awaiter(this,
|
|
5050
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5049
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5050
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5051
5051
|
return this.client.sendOperationRequest(args, spec);
|
|
5052
5052
|
});
|
|
5053
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5053
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5054
5054
|
var _a;
|
|
5055
5055
|
let currentRawResponse = undefined;
|
|
5056
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5056
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5057
5057
|
const callback = (rawResponse, flatResponse) => {
|
|
5058
5058
|
currentRawResponse = rawResponse;
|
|
5059
|
-
providedCallback === null || providedCallback ===
|
|
5059
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5060
5060
|
};
|
|
5061
5061
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5062
5062
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5075,8 +5075,8 @@ class ClustersImpl {
|
|
|
5075
5075
|
spec: deleteOperationSpec$3,
|
|
5076
5076
|
});
|
|
5077
5077
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5078
|
-
restoreFrom: options === null || options ===
|
|
5079
|
-
intervalInMs: options === null || options ===
|
|
5078
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5079
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5080
5080
|
resourceLocationConfig: "location",
|
|
5081
5081
|
});
|
|
5082
5082
|
yield poller.poll();
|
|
@@ -5090,7 +5090,7 @@ class ClustersImpl {
|
|
|
5090
5090
|
* @param options The options parameters.
|
|
5091
5091
|
*/
|
|
5092
5092
|
beginDeleteAndWait(resourceGroupName, clusterName, options) {
|
|
5093
|
-
return tslib.__awaiter(this,
|
|
5093
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5094
5094
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
|
|
5095
5095
|
return poller.pollUntilDone();
|
|
5096
5096
|
});
|
|
@@ -5121,17 +5121,17 @@ class ClustersImpl {
|
|
|
5121
5121
|
* @param options The options parameters.
|
|
5122
5122
|
*/
|
|
5123
5123
|
beginResize(resourceGroupName, clusterName, roleName, parameters, options) {
|
|
5124
|
-
return tslib.__awaiter(this,
|
|
5125
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5124
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5125
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5126
5126
|
return this.client.sendOperationRequest(args, spec);
|
|
5127
5127
|
});
|
|
5128
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5128
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5129
5129
|
var _a;
|
|
5130
5130
|
let currentRawResponse = undefined;
|
|
5131
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5131
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5132
5132
|
const callback = (rawResponse, flatResponse) => {
|
|
5133
5133
|
currentRawResponse = rawResponse;
|
|
5134
|
-
providedCallback === null || providedCallback ===
|
|
5134
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5135
5135
|
};
|
|
5136
5136
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5137
5137
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5150,8 +5150,8 @@ class ClustersImpl {
|
|
|
5150
5150
|
spec: resizeOperationSpec,
|
|
5151
5151
|
});
|
|
5152
5152
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5153
|
-
restoreFrom: options === null || options ===
|
|
5154
|
-
intervalInMs: options === null || options ===
|
|
5153
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5154
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5155
5155
|
resourceLocationConfig: "location",
|
|
5156
5156
|
});
|
|
5157
5157
|
yield poller.poll();
|
|
@@ -5167,7 +5167,7 @@ class ClustersImpl {
|
|
|
5167
5167
|
* @param options The options parameters.
|
|
5168
5168
|
*/
|
|
5169
5169
|
beginResizeAndWait(resourceGroupName, clusterName, roleName, parameters, options) {
|
|
5170
|
-
return tslib.__awaiter(this,
|
|
5170
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5171
5171
|
const poller = yield this.beginResize(resourceGroupName, clusterName, roleName, parameters, options);
|
|
5172
5172
|
return poller.pollUntilDone();
|
|
5173
5173
|
});
|
|
@@ -5181,17 +5181,17 @@ class ClustersImpl {
|
|
|
5181
5181
|
* @param options The options parameters.
|
|
5182
5182
|
*/
|
|
5183
5183
|
beginUpdateAutoScaleConfiguration(resourceGroupName, clusterName, roleName, parameters, options) {
|
|
5184
|
-
return tslib.__awaiter(this,
|
|
5185
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5184
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5185
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5186
5186
|
return this.client.sendOperationRequest(args, spec);
|
|
5187
5187
|
});
|
|
5188
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5188
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5189
5189
|
var _a;
|
|
5190
5190
|
let currentRawResponse = undefined;
|
|
5191
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5191
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5192
5192
|
const callback = (rawResponse, flatResponse) => {
|
|
5193
5193
|
currentRawResponse = rawResponse;
|
|
5194
|
-
providedCallback === null || providedCallback ===
|
|
5194
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5195
5195
|
};
|
|
5196
5196
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5197
5197
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5210,8 +5210,8 @@ class ClustersImpl {
|
|
|
5210
5210
|
spec: updateAutoScaleConfigurationOperationSpec,
|
|
5211
5211
|
});
|
|
5212
5212
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5213
|
-
restoreFrom: options === null || options ===
|
|
5214
|
-
intervalInMs: options === null || options ===
|
|
5213
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5214
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5215
5215
|
resourceLocationConfig: "location",
|
|
5216
5216
|
});
|
|
5217
5217
|
yield poller.poll();
|
|
@@ -5227,7 +5227,7 @@ class ClustersImpl {
|
|
|
5227
5227
|
* @param options The options parameters.
|
|
5228
5228
|
*/
|
|
5229
5229
|
beginUpdateAutoScaleConfigurationAndWait(resourceGroupName, clusterName, roleName, parameters, options) {
|
|
5230
|
-
return tslib.__awaiter(this,
|
|
5230
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5231
5231
|
const poller = yield this.beginUpdateAutoScaleConfiguration(resourceGroupName, clusterName, roleName, parameters, options);
|
|
5232
5232
|
return poller.pollUntilDone();
|
|
5233
5233
|
});
|
|
@@ -5247,17 +5247,17 @@ class ClustersImpl {
|
|
|
5247
5247
|
* @param options The options parameters.
|
|
5248
5248
|
*/
|
|
5249
5249
|
beginRotateDiskEncryptionKey(resourceGroupName, clusterName, parameters, options) {
|
|
5250
|
-
return tslib.__awaiter(this,
|
|
5251
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5250
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5251
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5252
5252
|
return this.client.sendOperationRequest(args, spec);
|
|
5253
5253
|
});
|
|
5254
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5254
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5255
5255
|
var _a;
|
|
5256
5256
|
let currentRawResponse = undefined;
|
|
5257
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5257
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5258
5258
|
const callback = (rawResponse, flatResponse) => {
|
|
5259
5259
|
currentRawResponse = rawResponse;
|
|
5260
|
-
providedCallback === null || providedCallback ===
|
|
5260
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5261
5261
|
};
|
|
5262
5262
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5263
5263
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5276,8 +5276,8 @@ class ClustersImpl {
|
|
|
5276
5276
|
spec: rotateDiskEncryptionKeyOperationSpec,
|
|
5277
5277
|
});
|
|
5278
5278
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5279
|
-
restoreFrom: options === null || options ===
|
|
5280
|
-
intervalInMs: options === null || options ===
|
|
5279
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5280
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5281
5281
|
resourceLocationConfig: "location",
|
|
5282
5282
|
});
|
|
5283
5283
|
yield poller.poll();
|
|
@@ -5292,7 +5292,7 @@ class ClustersImpl {
|
|
|
5292
5292
|
* @param options The options parameters.
|
|
5293
5293
|
*/
|
|
5294
5294
|
beginRotateDiskEncryptionKeyAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
5295
|
-
return tslib.__awaiter(this,
|
|
5295
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5296
5296
|
const poller = yield this.beginRotateDiskEncryptionKey(resourceGroupName, clusterName, parameters, options);
|
|
5297
5297
|
return poller.pollUntilDone();
|
|
5298
5298
|
});
|
|
@@ -5314,17 +5314,17 @@ class ClustersImpl {
|
|
|
5314
5314
|
* @param options The options parameters.
|
|
5315
5315
|
*/
|
|
5316
5316
|
beginUpdateGatewaySettings(resourceGroupName, clusterName, parameters, options) {
|
|
5317
|
-
return tslib.__awaiter(this,
|
|
5318
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5317
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5318
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5319
5319
|
return this.client.sendOperationRequest(args, spec);
|
|
5320
5320
|
});
|
|
5321
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5321
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5322
5322
|
var _a;
|
|
5323
5323
|
let currentRawResponse = undefined;
|
|
5324
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5324
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5325
5325
|
const callback = (rawResponse, flatResponse) => {
|
|
5326
5326
|
currentRawResponse = rawResponse;
|
|
5327
|
-
providedCallback === null || providedCallback ===
|
|
5327
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5328
5328
|
};
|
|
5329
5329
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5330
5330
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5343,8 +5343,8 @@ class ClustersImpl {
|
|
|
5343
5343
|
spec: updateGatewaySettingsOperationSpec,
|
|
5344
5344
|
});
|
|
5345
5345
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5346
|
-
restoreFrom: options === null || options ===
|
|
5347
|
-
intervalInMs: options === null || options ===
|
|
5346
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5347
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5348
5348
|
resourceLocationConfig: "location",
|
|
5349
5349
|
});
|
|
5350
5350
|
yield poller.poll();
|
|
@@ -5359,7 +5359,7 @@ class ClustersImpl {
|
|
|
5359
5359
|
* @param options The options parameters.
|
|
5360
5360
|
*/
|
|
5361
5361
|
beginUpdateGatewaySettingsAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
5362
|
-
return tslib.__awaiter(this,
|
|
5362
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5363
5363
|
const poller = yield this.beginUpdateGatewaySettings(resourceGroupName, clusterName, parameters, options);
|
|
5364
5364
|
return poller.pollUntilDone();
|
|
5365
5365
|
});
|
|
@@ -5382,17 +5382,17 @@ class ClustersImpl {
|
|
|
5382
5382
|
* @param options The options parameters.
|
|
5383
5383
|
*/
|
|
5384
5384
|
beginUpdateIdentityCertificate(resourceGroupName, clusterName, parameters, options) {
|
|
5385
|
-
return tslib.__awaiter(this,
|
|
5386
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5385
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5386
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5387
5387
|
return this.client.sendOperationRequest(args, spec);
|
|
5388
5388
|
});
|
|
5389
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5389
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5390
5390
|
var _a;
|
|
5391
5391
|
let currentRawResponse = undefined;
|
|
5392
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5392
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5393
5393
|
const callback = (rawResponse, flatResponse) => {
|
|
5394
5394
|
currentRawResponse = rawResponse;
|
|
5395
|
-
providedCallback === null || providedCallback ===
|
|
5395
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5396
5396
|
};
|
|
5397
5397
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5398
5398
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5411,8 +5411,8 @@ class ClustersImpl {
|
|
|
5411
5411
|
spec: updateIdentityCertificateOperationSpec,
|
|
5412
5412
|
});
|
|
5413
5413
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5414
|
-
restoreFrom: options === null || options ===
|
|
5415
|
-
intervalInMs: options === null || options ===
|
|
5414
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5415
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5416
5416
|
resourceLocationConfig: "location",
|
|
5417
5417
|
});
|
|
5418
5418
|
yield poller.poll();
|
|
@@ -5427,7 +5427,7 @@ class ClustersImpl {
|
|
|
5427
5427
|
* @param options The options parameters.
|
|
5428
5428
|
*/
|
|
5429
5429
|
beginUpdateIdentityCertificateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
5430
|
-
return tslib.__awaiter(this,
|
|
5430
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5431
5431
|
const poller = yield this.beginUpdateIdentityCertificate(resourceGroupName, clusterName, parameters, options);
|
|
5432
5432
|
return poller.pollUntilDone();
|
|
5433
5433
|
});
|
|
@@ -5440,17 +5440,17 @@ class ClustersImpl {
|
|
|
5440
5440
|
* @param options The options parameters.
|
|
5441
5441
|
*/
|
|
5442
5442
|
beginExecuteScriptActions(resourceGroupName, clusterName, parameters, options) {
|
|
5443
|
-
return tslib.__awaiter(this,
|
|
5444
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5443
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5444
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5445
5445
|
return this.client.sendOperationRequest(args, spec);
|
|
5446
5446
|
});
|
|
5447
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5447
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5448
5448
|
var _a;
|
|
5449
5449
|
let currentRawResponse = undefined;
|
|
5450
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5450
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5451
5451
|
const callback = (rawResponse, flatResponse) => {
|
|
5452
5452
|
currentRawResponse = rawResponse;
|
|
5453
|
-
providedCallback === null || providedCallback ===
|
|
5453
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5454
5454
|
};
|
|
5455
5455
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5456
5456
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5469,8 +5469,8 @@ class ClustersImpl {
|
|
|
5469
5469
|
spec: executeScriptActionsOperationSpec,
|
|
5470
5470
|
});
|
|
5471
5471
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5472
|
-
restoreFrom: options === null || options ===
|
|
5473
|
-
intervalInMs: options === null || options ===
|
|
5472
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5473
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5474
5474
|
resourceLocationConfig: "location",
|
|
5475
5475
|
});
|
|
5476
5476
|
yield poller.poll();
|
|
@@ -5485,7 +5485,7 @@ class ClustersImpl {
|
|
|
5485
5485
|
* @param options The options parameters.
|
|
5486
5486
|
*/
|
|
5487
5487
|
beginExecuteScriptActionsAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
5488
|
-
return tslib.__awaiter(this,
|
|
5488
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5489
5489
|
const poller = yield this.beginExecuteScriptActions(resourceGroupName, clusterName, parameters, options);
|
|
5490
5490
|
return poller.pollUntilDone();
|
|
5491
5491
|
});
|
|
@@ -5911,17 +5911,17 @@ class ConfigurationsImpl {
|
|
|
5911
5911
|
* @param options The options parameters.
|
|
5912
5912
|
*/
|
|
5913
5913
|
beginUpdate(resourceGroupName, clusterName, configurationName, parameters, options) {
|
|
5914
|
-
return tslib.__awaiter(this,
|
|
5915
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5914
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5915
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5916
5916
|
return this.client.sendOperationRequest(args, spec);
|
|
5917
5917
|
});
|
|
5918
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5918
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5919
5919
|
var _a;
|
|
5920
5920
|
let currentRawResponse = undefined;
|
|
5921
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5921
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5922
5922
|
const callback = (rawResponse, flatResponse) => {
|
|
5923
5923
|
currentRawResponse = rawResponse;
|
|
5924
|
-
providedCallback === null || providedCallback ===
|
|
5924
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5925
5925
|
};
|
|
5926
5926
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5927
5927
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5946,8 +5946,8 @@ class ConfigurationsImpl {
|
|
|
5946
5946
|
spec: updateOperationSpec,
|
|
5947
5947
|
});
|
|
5948
5948
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5949
|
-
restoreFrom: options === null || options ===
|
|
5950
|
-
intervalInMs: options === null || options ===
|
|
5949
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5950
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5951
5951
|
resourceLocationConfig: "location",
|
|
5952
5952
|
});
|
|
5953
5953
|
yield poller.poll();
|
|
@@ -5964,7 +5964,7 @@ class ConfigurationsImpl {
|
|
|
5964
5964
|
* @param options The options parameters.
|
|
5965
5965
|
*/
|
|
5966
5966
|
beginUpdateAndWait(resourceGroupName, clusterName, configurationName, parameters, options) {
|
|
5967
|
-
return tslib.__awaiter(this,
|
|
5967
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5968
5968
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, configurationName, parameters, options);
|
|
5969
5969
|
return poller.pollUntilDone();
|
|
5970
5970
|
});
|
|
@@ -6078,17 +6078,17 @@ class ExtensionsImpl {
|
|
|
6078
6078
|
* @param options The options parameters.
|
|
6079
6079
|
*/
|
|
6080
6080
|
beginEnableMonitoring(resourceGroupName, clusterName, parameters, options) {
|
|
6081
|
-
return tslib.__awaiter(this,
|
|
6082
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6081
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6082
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6083
6083
|
return this.client.sendOperationRequest(args, spec);
|
|
6084
6084
|
});
|
|
6085
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6085
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6086
6086
|
var _a;
|
|
6087
6087
|
let currentRawResponse = undefined;
|
|
6088
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6088
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6089
6089
|
const callback = (rawResponse, flatResponse) => {
|
|
6090
6090
|
currentRawResponse = rawResponse;
|
|
6091
|
-
providedCallback === null || providedCallback ===
|
|
6091
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6092
6092
|
};
|
|
6093
6093
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6094
6094
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6107,8 +6107,8 @@ class ExtensionsImpl {
|
|
|
6107
6107
|
spec: enableMonitoringOperationSpec,
|
|
6108
6108
|
});
|
|
6109
6109
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6110
|
-
restoreFrom: options === null || options ===
|
|
6111
|
-
intervalInMs: options === null || options ===
|
|
6110
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6111
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6112
6112
|
resourceLocationConfig: "location",
|
|
6113
6113
|
});
|
|
6114
6114
|
yield poller.poll();
|
|
@@ -6123,7 +6123,7 @@ class ExtensionsImpl {
|
|
|
6123
6123
|
* @param options The options parameters.
|
|
6124
6124
|
*/
|
|
6125
6125
|
beginEnableMonitoringAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
6126
|
-
return tslib.__awaiter(this,
|
|
6126
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6127
6127
|
const poller = yield this.beginEnableMonitoring(resourceGroupName, clusterName, parameters, options);
|
|
6128
6128
|
return poller.pollUntilDone();
|
|
6129
6129
|
});
|
|
@@ -6144,17 +6144,17 @@ class ExtensionsImpl {
|
|
|
6144
6144
|
* @param options The options parameters.
|
|
6145
6145
|
*/
|
|
6146
6146
|
beginDisableMonitoring(resourceGroupName, clusterName, options) {
|
|
6147
|
-
return tslib.__awaiter(this,
|
|
6148
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6147
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6148
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6149
6149
|
return this.client.sendOperationRequest(args, spec);
|
|
6150
6150
|
});
|
|
6151
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6151
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6152
6152
|
var _a;
|
|
6153
6153
|
let currentRawResponse = undefined;
|
|
6154
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6154
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6155
6155
|
const callback = (rawResponse, flatResponse) => {
|
|
6156
6156
|
currentRawResponse = rawResponse;
|
|
6157
|
-
providedCallback === null || providedCallback ===
|
|
6157
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6158
6158
|
};
|
|
6159
6159
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6160
6160
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6173,8 +6173,8 @@ class ExtensionsImpl {
|
|
|
6173
6173
|
spec: disableMonitoringOperationSpec,
|
|
6174
6174
|
});
|
|
6175
6175
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6176
|
-
restoreFrom: options === null || options ===
|
|
6177
|
-
intervalInMs: options === null || options ===
|
|
6176
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6177
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6178
6178
|
resourceLocationConfig: "location",
|
|
6179
6179
|
});
|
|
6180
6180
|
yield poller.poll();
|
|
@@ -6188,7 +6188,7 @@ class ExtensionsImpl {
|
|
|
6188
6188
|
* @param options The options parameters.
|
|
6189
6189
|
*/
|
|
6190
6190
|
beginDisableMonitoringAndWait(resourceGroupName, clusterName, options) {
|
|
6191
|
-
return tslib.__awaiter(this,
|
|
6191
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6192
6192
|
const poller = yield this.beginDisableMonitoring(resourceGroupName, clusterName, options);
|
|
6193
6193
|
return poller.pollUntilDone();
|
|
6194
6194
|
});
|
|
@@ -6201,17 +6201,17 @@ class ExtensionsImpl {
|
|
|
6201
6201
|
* @param options The options parameters.
|
|
6202
6202
|
*/
|
|
6203
6203
|
beginEnableAzureMonitor(resourceGroupName, clusterName, parameters, options) {
|
|
6204
|
-
return tslib.__awaiter(this,
|
|
6205
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6204
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6205
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6206
6206
|
return this.client.sendOperationRequest(args, spec);
|
|
6207
6207
|
});
|
|
6208
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6208
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6209
6209
|
var _a;
|
|
6210
6210
|
let currentRawResponse = undefined;
|
|
6211
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6211
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6212
6212
|
const callback = (rawResponse, flatResponse) => {
|
|
6213
6213
|
currentRawResponse = rawResponse;
|
|
6214
|
-
providedCallback === null || providedCallback ===
|
|
6214
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6215
6215
|
};
|
|
6216
6216
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6217
6217
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6230,8 +6230,8 @@ class ExtensionsImpl {
|
|
|
6230
6230
|
spec: enableAzureMonitorOperationSpec,
|
|
6231
6231
|
});
|
|
6232
6232
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6233
|
-
restoreFrom: options === null || options ===
|
|
6234
|
-
intervalInMs: options === null || options ===
|
|
6233
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6234
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6235
6235
|
resourceLocationConfig: "location",
|
|
6236
6236
|
});
|
|
6237
6237
|
yield poller.poll();
|
|
@@ -6246,7 +6246,7 @@ class ExtensionsImpl {
|
|
|
6246
6246
|
* @param options The options parameters.
|
|
6247
6247
|
*/
|
|
6248
6248
|
beginEnableAzureMonitorAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
6249
|
-
return tslib.__awaiter(this,
|
|
6249
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6250
6250
|
const poller = yield this.beginEnableAzureMonitor(resourceGroupName, clusterName, parameters, options);
|
|
6251
6251
|
return poller.pollUntilDone();
|
|
6252
6252
|
});
|
|
@@ -6267,17 +6267,17 @@ class ExtensionsImpl {
|
|
|
6267
6267
|
* @param options The options parameters.
|
|
6268
6268
|
*/
|
|
6269
6269
|
beginDisableAzureMonitor(resourceGroupName, clusterName, options) {
|
|
6270
|
-
return tslib.__awaiter(this,
|
|
6271
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6270
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6271
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6272
6272
|
return this.client.sendOperationRequest(args, spec);
|
|
6273
6273
|
});
|
|
6274
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6274
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6275
6275
|
var _a;
|
|
6276
6276
|
let currentRawResponse = undefined;
|
|
6277
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6277
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6278
6278
|
const callback = (rawResponse, flatResponse) => {
|
|
6279
6279
|
currentRawResponse = rawResponse;
|
|
6280
|
-
providedCallback === null || providedCallback ===
|
|
6280
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6281
6281
|
};
|
|
6282
6282
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6283
6283
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6296,8 +6296,8 @@ class ExtensionsImpl {
|
|
|
6296
6296
|
spec: disableAzureMonitorOperationSpec,
|
|
6297
6297
|
});
|
|
6298
6298
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6299
|
-
restoreFrom: options === null || options ===
|
|
6300
|
-
intervalInMs: options === null || options ===
|
|
6299
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6300
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6301
6301
|
resourceLocationConfig: "location",
|
|
6302
6302
|
});
|
|
6303
6303
|
yield poller.poll();
|
|
@@ -6311,7 +6311,7 @@ class ExtensionsImpl {
|
|
|
6311
6311
|
* @param options The options parameters.
|
|
6312
6312
|
*/
|
|
6313
6313
|
beginDisableAzureMonitorAndWait(resourceGroupName, clusterName, options) {
|
|
6314
|
-
return tslib.__awaiter(this,
|
|
6314
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6315
6315
|
const poller = yield this.beginDisableAzureMonitor(resourceGroupName, clusterName, options);
|
|
6316
6316
|
return poller.pollUntilDone();
|
|
6317
6317
|
});
|
|
@@ -6324,17 +6324,17 @@ class ExtensionsImpl {
|
|
|
6324
6324
|
* @param options The options parameters.
|
|
6325
6325
|
*/
|
|
6326
6326
|
beginEnableAzureMonitorAgent(resourceGroupName, clusterName, parameters, options) {
|
|
6327
|
-
return tslib.__awaiter(this,
|
|
6328
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6327
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6328
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6329
6329
|
return this.client.sendOperationRequest(args, spec);
|
|
6330
6330
|
});
|
|
6331
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6331
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6332
6332
|
var _a;
|
|
6333
6333
|
let currentRawResponse = undefined;
|
|
6334
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6334
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6335
6335
|
const callback = (rawResponse, flatResponse) => {
|
|
6336
6336
|
currentRawResponse = rawResponse;
|
|
6337
|
-
providedCallback === null || providedCallback ===
|
|
6337
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6338
6338
|
};
|
|
6339
6339
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6340
6340
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6353,8 +6353,8 @@ class ExtensionsImpl {
|
|
|
6353
6353
|
spec: enableAzureMonitorAgentOperationSpec,
|
|
6354
6354
|
});
|
|
6355
6355
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6356
|
-
restoreFrom: options === null || options ===
|
|
6357
|
-
intervalInMs: options === null || options ===
|
|
6356
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6357
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6358
6358
|
resourceLocationConfig: "location",
|
|
6359
6359
|
});
|
|
6360
6360
|
yield poller.poll();
|
|
@@ -6369,7 +6369,7 @@ class ExtensionsImpl {
|
|
|
6369
6369
|
* @param options The options parameters.
|
|
6370
6370
|
*/
|
|
6371
6371
|
beginEnableAzureMonitorAgentAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
6372
|
-
return tslib.__awaiter(this,
|
|
6372
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6373
6373
|
const poller = yield this.beginEnableAzureMonitorAgent(resourceGroupName, clusterName, parameters, options);
|
|
6374
6374
|
return poller.pollUntilDone();
|
|
6375
6375
|
});
|
|
@@ -6390,17 +6390,17 @@ class ExtensionsImpl {
|
|
|
6390
6390
|
* @param options The options parameters.
|
|
6391
6391
|
*/
|
|
6392
6392
|
beginDisableAzureMonitorAgent(resourceGroupName, clusterName, options) {
|
|
6393
|
-
return tslib.__awaiter(this,
|
|
6394
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6393
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6394
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6395
6395
|
return this.client.sendOperationRequest(args, spec);
|
|
6396
6396
|
});
|
|
6397
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6397
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6398
6398
|
var _a;
|
|
6399
6399
|
let currentRawResponse = undefined;
|
|
6400
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6400
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6401
6401
|
const callback = (rawResponse, flatResponse) => {
|
|
6402
6402
|
currentRawResponse = rawResponse;
|
|
6403
|
-
providedCallback === null || providedCallback ===
|
|
6403
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6404
6404
|
};
|
|
6405
6405
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6406
6406
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6419,8 +6419,8 @@ class ExtensionsImpl {
|
|
|
6419
6419
|
spec: disableAzureMonitorAgentOperationSpec,
|
|
6420
6420
|
});
|
|
6421
6421
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6422
|
-
restoreFrom: options === null || options ===
|
|
6423
|
-
intervalInMs: options === null || options ===
|
|
6422
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6423
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6424
6424
|
resourceLocationConfig: "location",
|
|
6425
6425
|
});
|
|
6426
6426
|
yield poller.poll();
|
|
@@ -6434,7 +6434,7 @@ class ExtensionsImpl {
|
|
|
6434
6434
|
* @param options The options parameters.
|
|
6435
6435
|
*/
|
|
6436
6436
|
beginDisableAzureMonitorAgentAndWait(resourceGroupName, clusterName, options) {
|
|
6437
|
-
return tslib.__awaiter(this,
|
|
6437
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6438
6438
|
const poller = yield this.beginDisableAzureMonitorAgent(resourceGroupName, clusterName, options);
|
|
6439
6439
|
return poller.pollUntilDone();
|
|
6440
6440
|
});
|
|
@@ -6448,17 +6448,17 @@ class ExtensionsImpl {
|
|
|
6448
6448
|
* @param options The options parameters.
|
|
6449
6449
|
*/
|
|
6450
6450
|
beginCreate(resourceGroupName, clusterName, extensionName, parameters, options) {
|
|
6451
|
-
return tslib.__awaiter(this,
|
|
6452
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6451
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6452
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6453
6453
|
return this.client.sendOperationRequest(args, spec);
|
|
6454
6454
|
});
|
|
6455
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6455
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6456
6456
|
var _a;
|
|
6457
6457
|
let currentRawResponse = undefined;
|
|
6458
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6458
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6459
6459
|
const callback = (rawResponse, flatResponse) => {
|
|
6460
6460
|
currentRawResponse = rawResponse;
|
|
6461
|
-
providedCallback === null || providedCallback ===
|
|
6461
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6462
6462
|
};
|
|
6463
6463
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6464
6464
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6483,8 +6483,8 @@ class ExtensionsImpl {
|
|
|
6483
6483
|
spec: createOperationSpec,
|
|
6484
6484
|
});
|
|
6485
6485
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6486
|
-
restoreFrom: options === null || options ===
|
|
6487
|
-
intervalInMs: options === null || options ===
|
|
6486
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6487
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6488
6488
|
resourceLocationConfig: "location",
|
|
6489
6489
|
});
|
|
6490
6490
|
yield poller.poll();
|
|
@@ -6500,7 +6500,7 @@ class ExtensionsImpl {
|
|
|
6500
6500
|
* @param options The options parameters.
|
|
6501
6501
|
*/
|
|
6502
6502
|
beginCreateAndWait(resourceGroupName, clusterName, extensionName, parameters, options) {
|
|
6503
|
-
return tslib.__awaiter(this,
|
|
6503
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6504
6504
|
const poller = yield this.beginCreate(resourceGroupName, clusterName, extensionName, parameters, options);
|
|
6505
6505
|
return poller.pollUntilDone();
|
|
6506
6506
|
});
|
|
@@ -6523,17 +6523,17 @@ class ExtensionsImpl {
|
|
|
6523
6523
|
* @param options The options parameters.
|
|
6524
6524
|
*/
|
|
6525
6525
|
beginDelete(resourceGroupName, clusterName, extensionName, options) {
|
|
6526
|
-
return tslib.__awaiter(this,
|
|
6527
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6526
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6527
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6528
6528
|
return this.client.sendOperationRequest(args, spec);
|
|
6529
6529
|
});
|
|
6530
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6530
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6531
6531
|
var _a;
|
|
6532
6532
|
let currentRawResponse = undefined;
|
|
6533
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6533
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6534
6534
|
const callback = (rawResponse, flatResponse) => {
|
|
6535
6535
|
currentRawResponse = rawResponse;
|
|
6536
|
-
providedCallback === null || providedCallback ===
|
|
6536
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6537
6537
|
};
|
|
6538
6538
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6539
6539
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6552,8 +6552,8 @@ class ExtensionsImpl {
|
|
|
6552
6552
|
spec: deleteOperationSpec$2,
|
|
6553
6553
|
});
|
|
6554
6554
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6555
|
-
restoreFrom: options === null || options ===
|
|
6556
|
-
intervalInMs: options === null || options ===
|
|
6555
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6556
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6557
6557
|
resourceLocationConfig: "location",
|
|
6558
6558
|
});
|
|
6559
6559
|
yield poller.poll();
|
|
@@ -6568,7 +6568,7 @@ class ExtensionsImpl {
|
|
|
6568
6568
|
* @param options The options parameters.
|
|
6569
6569
|
*/
|
|
6570
6570
|
beginDeleteAndWait(resourceGroupName, clusterName, extensionName, options) {
|
|
6571
|
-
return tslib.__awaiter(this,
|
|
6571
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6572
6572
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, extensionName, options);
|
|
6573
6573
|
return poller.pollUntilDone();
|
|
6574
6574
|
});
|
|
@@ -7109,7 +7109,7 @@ class OperationsImpl {
|
|
|
7109
7109
|
return this;
|
|
7110
7110
|
},
|
|
7111
7111
|
byPage: (settings) => {
|
|
7112
|
-
if (settings === null || settings ===
|
|
7112
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7113
7113
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7114
7114
|
}
|
|
7115
7115
|
return this.listPagingPage(options, settings);
|
|
@@ -7119,7 +7119,7 @@ class OperationsImpl {
|
|
|
7119
7119
|
listPagingPage(options, settings) {
|
|
7120
7120
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7121
7121
|
let result;
|
|
7122
|
-
let continuationToken = settings === null || settings ===
|
|
7122
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7123
7123
|
if (!continuationToken) {
|
|
7124
7124
|
result = yield tslib.__await(this._list(options));
|
|
7125
7125
|
let page = result.value || [];
|
|
@@ -7239,7 +7239,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7239
7239
|
return this;
|
|
7240
7240
|
},
|
|
7241
7241
|
byPage: (settings) => {
|
|
7242
|
-
if (settings === null || settings ===
|
|
7242
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7243
7243
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7244
7244
|
}
|
|
7245
7245
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -7249,7 +7249,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7249
7249
|
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
7250
7250
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
7251
7251
|
let result;
|
|
7252
|
-
let continuationToken = settings === null || settings ===
|
|
7252
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7253
7253
|
if (!continuationToken) {
|
|
7254
7254
|
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
7255
7255
|
let page = result.value || [];
|
|
@@ -7304,17 +7304,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7304
7304
|
* @param options The options parameters.
|
|
7305
7305
|
*/
|
|
7306
7306
|
beginCreateOrUpdate(resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options) {
|
|
7307
|
-
return tslib.__awaiter(this,
|
|
7308
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7307
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7308
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7309
7309
|
return this.client.sendOperationRequest(args, spec);
|
|
7310
7310
|
});
|
|
7311
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7311
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7312
7312
|
var _a;
|
|
7313
7313
|
let currentRawResponse = undefined;
|
|
7314
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7314
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7315
7315
|
const callback = (rawResponse, flatResponse) => {
|
|
7316
7316
|
currentRawResponse = rawResponse;
|
|
7317
|
-
providedCallback === null || providedCallback ===
|
|
7317
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7318
7318
|
};
|
|
7319
7319
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7320
7320
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7339,8 +7339,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7339
7339
|
spec: createOrUpdateOperationSpec,
|
|
7340
7340
|
});
|
|
7341
7341
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7342
|
-
restoreFrom: options === null || options ===
|
|
7343
|
-
intervalInMs: options === null || options ===
|
|
7342
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7343
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7344
7344
|
resourceLocationConfig: "azure-async-operation",
|
|
7345
7345
|
});
|
|
7346
7346
|
yield poller.poll();
|
|
@@ -7356,7 +7356,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7356
7356
|
* @param options The options parameters.
|
|
7357
7357
|
*/
|
|
7358
7358
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options) {
|
|
7359
|
-
return tslib.__awaiter(this,
|
|
7359
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7360
7360
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options);
|
|
7361
7361
|
return poller.pollUntilDone();
|
|
7362
7362
|
});
|
|
@@ -7384,17 +7384,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7384
7384
|
* @param options The options parameters.
|
|
7385
7385
|
*/
|
|
7386
7386
|
beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
7387
|
-
return tslib.__awaiter(this,
|
|
7388
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7387
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7388
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7389
7389
|
return this.client.sendOperationRequest(args, spec);
|
|
7390
7390
|
});
|
|
7391
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7391
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7392
7392
|
var _a;
|
|
7393
7393
|
let currentRawResponse = undefined;
|
|
7394
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7394
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7395
7395
|
const callback = (rawResponse, flatResponse) => {
|
|
7396
7396
|
currentRawResponse = rawResponse;
|
|
7397
|
-
providedCallback === null || providedCallback ===
|
|
7397
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7398
7398
|
};
|
|
7399
7399
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7400
7400
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7418,8 +7418,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7418
7418
|
spec: deleteOperationSpec$1,
|
|
7419
7419
|
});
|
|
7420
7420
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7421
|
-
restoreFrom: options === null || options ===
|
|
7422
|
-
intervalInMs: options === null || options ===
|
|
7421
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7422
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7423
7423
|
resourceLocationConfig: "azure-async-operation",
|
|
7424
7424
|
});
|
|
7425
7425
|
yield poller.poll();
|
|
@@ -7434,7 +7434,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
7434
7434
|
* @param options The options parameters.
|
|
7435
7435
|
*/
|
|
7436
7436
|
beginDeleteAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
7437
|
-
return tslib.__awaiter(this,
|
|
7437
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7438
7438
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options);
|
|
7439
7439
|
return poller.pollUntilDone();
|
|
7440
7440
|
});
|
|
@@ -7688,7 +7688,7 @@ class ScriptActionsImpl {
|
|
|
7688
7688
|
return this;
|
|
7689
7689
|
},
|
|
7690
7690
|
byPage: (settings) => {
|
|
7691
|
-
if (settings === null || settings ===
|
|
7691
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7692
7692
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7693
7693
|
}
|
|
7694
7694
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -7698,7 +7698,7 @@ class ScriptActionsImpl {
|
|
|
7698
7698
|
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
7699
7699
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
7700
7700
|
let result;
|
|
7701
|
-
let continuationToken = settings === null || settings ===
|
|
7701
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7702
7702
|
if (!continuationToken) {
|
|
7703
7703
|
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
7704
7704
|
let page = result.value || [];
|
|
@@ -7928,7 +7928,7 @@ class ScriptExecutionHistoryImpl {
|
|
|
7928
7928
|
return this;
|
|
7929
7929
|
},
|
|
7930
7930
|
byPage: (settings) => {
|
|
7931
|
-
if (settings === null || settings ===
|
|
7931
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7932
7932
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7933
7933
|
}
|
|
7934
7934
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -7938,7 +7938,7 @@ class ScriptExecutionHistoryImpl {
|
|
|
7938
7938
|
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
7939
7939
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
7940
7940
|
let result;
|
|
7941
|
-
let continuationToken = settings === null || settings ===
|
|
7941
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7942
7942
|
if (!continuationToken) {
|
|
7943
7943
|
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
7944
7944
|
let page = result.value || [];
|
|
@@ -8103,17 +8103,17 @@ class VirtualMachinesImpl {
|
|
|
8103
8103
|
* @param options The options parameters.
|
|
8104
8104
|
*/
|
|
8105
8105
|
beginRestartHosts(resourceGroupName, clusterName, hosts, options) {
|
|
8106
|
-
return tslib.__awaiter(this,
|
|
8107
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8106
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8107
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8108
8108
|
return this.client.sendOperationRequest(args, spec);
|
|
8109
8109
|
});
|
|
8110
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8110
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8111
8111
|
var _a;
|
|
8112
8112
|
let currentRawResponse = undefined;
|
|
8113
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8113
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8114
8114
|
const callback = (rawResponse, flatResponse) => {
|
|
8115
8115
|
currentRawResponse = rawResponse;
|
|
8116
|
-
providedCallback === null || providedCallback ===
|
|
8116
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8117
8117
|
};
|
|
8118
8118
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8119
8119
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8132,8 +8132,8 @@ class VirtualMachinesImpl {
|
|
|
8132
8132
|
spec: restartHostsOperationSpec,
|
|
8133
8133
|
});
|
|
8134
8134
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8135
|
-
restoreFrom: options === null || options ===
|
|
8136
|
-
intervalInMs: options === null || options ===
|
|
8135
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8136
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8137
8137
|
resourceLocationConfig: "location",
|
|
8138
8138
|
});
|
|
8139
8139
|
yield poller.poll();
|
|
@@ -8148,7 +8148,7 @@ class VirtualMachinesImpl {
|
|
|
8148
8148
|
* @param options The options parameters.
|
|
8149
8149
|
*/
|
|
8150
8150
|
beginRestartHostsAndWait(resourceGroupName, clusterName, hosts, options) {
|
|
8151
|
-
return tslib.__awaiter(this,
|
|
8151
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8152
8152
|
const poller = yield this.beginRestartHosts(resourceGroupName, clusterName, hosts, options);
|
|
8153
8153
|
return poller.pollUntilDone();
|
|
8154
8154
|
});
|
|
@@ -8276,10 +8276,10 @@ class HDInsightManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8276
8276
|
: `${packageDetails}`;
|
|
8277
8277
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
8278
8278
|
userAgentPrefix,
|
|
8279
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
8279
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
8280
8280
|
super(optionsWithDefaults);
|
|
8281
8281
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
8282
|
-
if ((options === null || options ===
|
|
8282
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
8283
8283
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
8284
8284
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
8285
8285
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -8293,7 +8293,7 @@ class HDInsightManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8293
8293
|
});
|
|
8294
8294
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
8295
8295
|
credential: credentials,
|
|
8296
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
8296
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
8297
8297
|
challengeCallbacks: {
|
|
8298
8298
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
8299
8299
|
},
|
|
@@ -8325,7 +8325,7 @@ class HDInsightManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
8325
8325
|
const apiVersionPolicy = {
|
|
8326
8326
|
name: "CustomApiVersionPolicy",
|
|
8327
8327
|
sendRequest(request, next) {
|
|
8328
|
-
return tslib.__awaiter(this,
|
|
8328
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8329
8329
|
const param = request.url.split("?");
|
|
8330
8330
|
if (param.length > 1) {
|
|
8331
8331
|
const newParams = param[1].split("&").map((item) => {
|