@azure/arm-devcenter 1.1.1-alpha.20250106.1 → 1.1.1-alpha.20250107.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +334 -334
- 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
|
}
|
|
@@ -4869,7 +4869,7 @@ function createLroSpec(inputs) {
|
|
|
4869
4869
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
4870
4870
|
sendPollRequest: (path, options) => {
|
|
4871
4871
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
4872
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
4872
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
4873
4873
|
},
|
|
4874
4874
|
};
|
|
4875
4875
|
}
|
|
@@ -4905,7 +4905,7 @@ class DevCentersImpl {
|
|
|
4905
4905
|
return this;
|
|
4906
4906
|
},
|
|
4907
4907
|
byPage: (settings) => {
|
|
4908
|
-
if (settings === null || settings ===
|
|
4908
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4909
4909
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4910
4910
|
}
|
|
4911
4911
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -4915,7 +4915,7 @@ class DevCentersImpl {
|
|
|
4915
4915
|
listBySubscriptionPagingPage(options, settings) {
|
|
4916
4916
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
4917
4917
|
let result;
|
|
4918
|
-
let continuationToken = settings === null || settings ===
|
|
4918
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4919
4919
|
if (!continuationToken) {
|
|
4920
4920
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
4921
4921
|
let page = result.value || [];
|
|
@@ -4967,7 +4967,7 @@ class DevCentersImpl {
|
|
|
4967
4967
|
return this;
|
|
4968
4968
|
},
|
|
4969
4969
|
byPage: (settings) => {
|
|
4970
|
-
if (settings === null || settings ===
|
|
4970
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4971
4971
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4972
4972
|
}
|
|
4973
4973
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -4977,7 +4977,7 @@ class DevCentersImpl {
|
|
|
4977
4977
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4978
4978
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4979
4979
|
let result;
|
|
4980
|
-
let continuationToken = settings === null || settings ===
|
|
4980
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4981
4981
|
if (!continuationToken) {
|
|
4982
4982
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
4983
4983
|
let page = result.value || [];
|
|
@@ -5046,17 +5046,17 @@ class DevCentersImpl {
|
|
|
5046
5046
|
* @param options The options parameters.
|
|
5047
5047
|
*/
|
|
5048
5048
|
beginCreateOrUpdate(resourceGroupName, devCenterName, body, 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 DevCentersImpl {
|
|
|
5075
5075
|
spec: createOrUpdateOperationSpec$b,
|
|
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: "azure-async-operation",
|
|
5081
5081
|
});
|
|
5082
5082
|
yield poller.poll();
|
|
@@ -5091,7 +5091,7 @@ class DevCentersImpl {
|
|
|
5091
5091
|
* @param options The options parameters.
|
|
5092
5092
|
*/
|
|
5093
5093
|
beginCreateOrUpdateAndWait(resourceGroupName, devCenterName, body, options) {
|
|
5094
|
-
return tslib.__awaiter(this,
|
|
5094
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5095
5095
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, devCenterName, body, options);
|
|
5096
5096
|
return poller.pollUntilDone();
|
|
5097
5097
|
});
|
|
@@ -5104,17 +5104,17 @@ class DevCentersImpl {
|
|
|
5104
5104
|
* @param options The options parameters.
|
|
5105
5105
|
*/
|
|
5106
5106
|
beginUpdate(resourceGroupName, devCenterName, body, options) {
|
|
5107
|
-
return tslib.__awaiter(this,
|
|
5108
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5107
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5108
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5109
5109
|
return this.client.sendOperationRequest(args, spec);
|
|
5110
5110
|
});
|
|
5111
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5111
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5112
5112
|
var _a;
|
|
5113
5113
|
let currentRawResponse = undefined;
|
|
5114
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5114
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5115
5115
|
const callback = (rawResponse, flatResponse) => {
|
|
5116
5116
|
currentRawResponse = rawResponse;
|
|
5117
|
-
providedCallback === null || providedCallback ===
|
|
5117
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5118
5118
|
};
|
|
5119
5119
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5120
5120
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5133,8 +5133,8 @@ class DevCentersImpl {
|
|
|
5133
5133
|
spec: updateOperationSpec$8,
|
|
5134
5134
|
});
|
|
5135
5135
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5136
|
-
restoreFrom: options === null || options ===
|
|
5137
|
-
intervalInMs: options === null || options ===
|
|
5136
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5137
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5138
5138
|
resourceLocationConfig: "azure-async-operation",
|
|
5139
5139
|
});
|
|
5140
5140
|
yield poller.poll();
|
|
@@ -5149,7 +5149,7 @@ class DevCentersImpl {
|
|
|
5149
5149
|
* @param options The options parameters.
|
|
5150
5150
|
*/
|
|
5151
5151
|
beginUpdateAndWait(resourceGroupName, devCenterName, body, options) {
|
|
5152
|
-
return tslib.__awaiter(this,
|
|
5152
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5153
5153
|
const poller = yield this.beginUpdate(resourceGroupName, devCenterName, body, options);
|
|
5154
5154
|
return poller.pollUntilDone();
|
|
5155
5155
|
});
|
|
@@ -5161,17 +5161,17 @@ class DevCentersImpl {
|
|
|
5161
5161
|
* @param options The options parameters.
|
|
5162
5162
|
*/
|
|
5163
5163
|
beginDelete(resourceGroupName, devCenterName, options) {
|
|
5164
|
-
return tslib.__awaiter(this,
|
|
5165
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5164
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5165
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5166
5166
|
return this.client.sendOperationRequest(args, spec);
|
|
5167
5167
|
});
|
|
5168
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5168
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5169
5169
|
var _a;
|
|
5170
5170
|
let currentRawResponse = undefined;
|
|
5171
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5171
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5172
5172
|
const callback = (rawResponse, flatResponse) => {
|
|
5173
5173
|
currentRawResponse = rawResponse;
|
|
5174
|
-
providedCallback === null || providedCallback ===
|
|
5174
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5175
5175
|
};
|
|
5176
5176
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5177
5177
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5190,8 +5190,8 @@ class DevCentersImpl {
|
|
|
5190
5190
|
spec: deleteOperationSpec$b,
|
|
5191
5191
|
});
|
|
5192
5192
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5193
|
-
restoreFrom: options === null || options ===
|
|
5194
|
-
intervalInMs: options === null || options ===
|
|
5193
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5194
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5195
5195
|
resourceLocationConfig: "azure-async-operation",
|
|
5196
5196
|
});
|
|
5197
5197
|
yield poller.poll();
|
|
@@ -5205,7 +5205,7 @@ class DevCentersImpl {
|
|
|
5205
5205
|
* @param options The options parameters.
|
|
5206
5206
|
*/
|
|
5207
5207
|
beginDeleteAndWait(resourceGroupName, devCenterName, options) {
|
|
5208
|
-
return tslib.__awaiter(this,
|
|
5208
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5209
5209
|
const poller = yield this.beginDelete(resourceGroupName, devCenterName, options);
|
|
5210
5210
|
return poller.pollUntilDone();
|
|
5211
5211
|
});
|
|
@@ -5452,7 +5452,7 @@ class ProjectsImpl {
|
|
|
5452
5452
|
return this;
|
|
5453
5453
|
},
|
|
5454
5454
|
byPage: (settings) => {
|
|
5455
|
-
if (settings === null || settings ===
|
|
5455
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5456
5456
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5457
5457
|
}
|
|
5458
5458
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -5462,7 +5462,7 @@ class ProjectsImpl {
|
|
|
5462
5462
|
listBySubscriptionPagingPage(options, settings) {
|
|
5463
5463
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5464
5464
|
let result;
|
|
5465
|
-
let continuationToken = settings === null || settings ===
|
|
5465
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5466
5466
|
if (!continuationToken) {
|
|
5467
5467
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
5468
5468
|
let page = result.value || [];
|
|
@@ -5514,7 +5514,7 @@ class ProjectsImpl {
|
|
|
5514
5514
|
return this;
|
|
5515
5515
|
},
|
|
5516
5516
|
byPage: (settings) => {
|
|
5517
|
-
if (settings === null || settings ===
|
|
5517
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5518
5518
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5519
5519
|
}
|
|
5520
5520
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5524,7 +5524,7 @@ class ProjectsImpl {
|
|
|
5524
5524
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5525
5525
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5526
5526
|
let result;
|
|
5527
|
-
let continuationToken = settings === null || settings ===
|
|
5527
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5528
5528
|
if (!continuationToken) {
|
|
5529
5529
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5530
5530
|
let page = result.value || [];
|
|
@@ -5593,17 +5593,17 @@ class ProjectsImpl {
|
|
|
5593
5593
|
* @param options The options parameters.
|
|
5594
5594
|
*/
|
|
5595
5595
|
beginCreateOrUpdate(resourceGroupName, projectName, body, options) {
|
|
5596
|
-
return tslib.__awaiter(this,
|
|
5597
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5596
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5597
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5598
5598
|
return this.client.sendOperationRequest(args, spec);
|
|
5599
5599
|
});
|
|
5600
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5600
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5601
5601
|
var _a;
|
|
5602
5602
|
let currentRawResponse = undefined;
|
|
5603
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5603
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5604
5604
|
const callback = (rawResponse, flatResponse) => {
|
|
5605
5605
|
currentRawResponse = rawResponse;
|
|
5606
|
-
providedCallback === null || providedCallback ===
|
|
5606
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5607
5607
|
};
|
|
5608
5608
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5609
5609
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5622,8 +5622,8 @@ class ProjectsImpl {
|
|
|
5622
5622
|
spec: createOrUpdateOperationSpec$a,
|
|
5623
5623
|
});
|
|
5624
5624
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5625
|
-
restoreFrom: options === null || options ===
|
|
5626
|
-
intervalInMs: options === null || options ===
|
|
5625
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5626
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5627
5627
|
resourceLocationConfig: "azure-async-operation",
|
|
5628
5628
|
});
|
|
5629
5629
|
yield poller.poll();
|
|
@@ -5638,7 +5638,7 @@ class ProjectsImpl {
|
|
|
5638
5638
|
* @param options The options parameters.
|
|
5639
5639
|
*/
|
|
5640
5640
|
beginCreateOrUpdateAndWait(resourceGroupName, projectName, body, options) {
|
|
5641
|
-
return tslib.__awaiter(this,
|
|
5641
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5642
5642
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, projectName, body, options);
|
|
5643
5643
|
return poller.pollUntilDone();
|
|
5644
5644
|
});
|
|
@@ -5651,17 +5651,17 @@ class ProjectsImpl {
|
|
|
5651
5651
|
* @param options The options parameters.
|
|
5652
5652
|
*/
|
|
5653
5653
|
beginUpdate(resourceGroupName, projectName, body, options) {
|
|
5654
|
-
return tslib.__awaiter(this,
|
|
5655
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5654
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5655
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5656
5656
|
return this.client.sendOperationRequest(args, spec);
|
|
5657
5657
|
});
|
|
5658
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5658
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5659
5659
|
var _a;
|
|
5660
5660
|
let currentRawResponse = undefined;
|
|
5661
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5661
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5662
5662
|
const callback = (rawResponse, flatResponse) => {
|
|
5663
5663
|
currentRawResponse = rawResponse;
|
|
5664
|
-
providedCallback === null || providedCallback ===
|
|
5664
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5665
5665
|
};
|
|
5666
5666
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5667
5667
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5680,8 +5680,8 @@ class ProjectsImpl {
|
|
|
5680
5680
|
spec: updateOperationSpec$7,
|
|
5681
5681
|
});
|
|
5682
5682
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5683
|
-
restoreFrom: options === null || options ===
|
|
5684
|
-
intervalInMs: options === null || options ===
|
|
5683
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5684
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5685
5685
|
resourceLocationConfig: "azure-async-operation",
|
|
5686
5686
|
});
|
|
5687
5687
|
yield poller.poll();
|
|
@@ -5696,7 +5696,7 @@ class ProjectsImpl {
|
|
|
5696
5696
|
* @param options The options parameters.
|
|
5697
5697
|
*/
|
|
5698
5698
|
beginUpdateAndWait(resourceGroupName, projectName, body, options) {
|
|
5699
|
-
return tslib.__awaiter(this,
|
|
5699
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5700
5700
|
const poller = yield this.beginUpdate(resourceGroupName, projectName, body, options);
|
|
5701
5701
|
return poller.pollUntilDone();
|
|
5702
5702
|
});
|
|
@@ -5708,17 +5708,17 @@ class ProjectsImpl {
|
|
|
5708
5708
|
* @param options The options parameters.
|
|
5709
5709
|
*/
|
|
5710
5710
|
beginDelete(resourceGroupName, projectName, options) {
|
|
5711
|
-
return tslib.__awaiter(this,
|
|
5712
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5711
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5712
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5713
5713
|
return this.client.sendOperationRequest(args, spec);
|
|
5714
5714
|
});
|
|
5715
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5715
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5716
5716
|
var _a;
|
|
5717
5717
|
let currentRawResponse = undefined;
|
|
5718
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5718
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5719
5719
|
const callback = (rawResponse, flatResponse) => {
|
|
5720
5720
|
currentRawResponse = rawResponse;
|
|
5721
|
-
providedCallback === null || providedCallback ===
|
|
5721
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5722
5722
|
};
|
|
5723
5723
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5724
5724
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5737,8 +5737,8 @@ class ProjectsImpl {
|
|
|
5737
5737
|
spec: deleteOperationSpec$a,
|
|
5738
5738
|
});
|
|
5739
5739
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5740
|
-
restoreFrom: options === null || options ===
|
|
5741
|
-
intervalInMs: options === null || options ===
|
|
5740
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5741
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5742
5742
|
resourceLocationConfig: "azure-async-operation",
|
|
5743
5743
|
});
|
|
5744
5744
|
yield poller.poll();
|
|
@@ -5752,7 +5752,7 @@ class ProjectsImpl {
|
|
|
5752
5752
|
* @param options The options parameters.
|
|
5753
5753
|
*/
|
|
5754
5754
|
beginDeleteAndWait(resourceGroupName, projectName, options) {
|
|
5755
|
-
return tslib.__awaiter(this,
|
|
5755
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5756
5756
|
const poller = yield this.beginDelete(resourceGroupName, projectName, options);
|
|
5757
5757
|
return poller.pollUntilDone();
|
|
5758
5758
|
});
|
|
@@ -6001,7 +6001,7 @@ class AttachedNetworksImpl {
|
|
|
6001
6001
|
return this;
|
|
6002
6002
|
},
|
|
6003
6003
|
byPage: (settings) => {
|
|
6004
|
-
if (settings === null || settings ===
|
|
6004
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6005
6005
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6006
6006
|
}
|
|
6007
6007
|
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
@@ -6011,7 +6011,7 @@ class AttachedNetworksImpl {
|
|
|
6011
6011
|
listByProjectPagingPage(resourceGroupName, projectName, options, settings) {
|
|
6012
6012
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
6013
6013
|
let result;
|
|
6014
|
-
let continuationToken = settings === null || settings ===
|
|
6014
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6015
6015
|
if (!continuationToken) {
|
|
6016
6016
|
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
6017
6017
|
let page = result.value || [];
|
|
@@ -6064,7 +6064,7 @@ class AttachedNetworksImpl {
|
|
|
6064
6064
|
return this;
|
|
6065
6065
|
},
|
|
6066
6066
|
byPage: (settings) => {
|
|
6067
|
-
if (settings === null || settings ===
|
|
6067
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6068
6068
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6069
6069
|
}
|
|
6070
6070
|
return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
|
|
@@ -6074,7 +6074,7 @@ class AttachedNetworksImpl {
|
|
|
6074
6074
|
listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
|
|
6075
6075
|
return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
|
|
6076
6076
|
let result;
|
|
6077
|
-
let continuationToken = settings === null || settings ===
|
|
6077
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6078
6078
|
if (!continuationToken) {
|
|
6079
6079
|
result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
|
|
6080
6080
|
let page = result.value || [];
|
|
@@ -6168,17 +6168,17 @@ class AttachedNetworksImpl {
|
|
|
6168
6168
|
* @param options The options parameters.
|
|
6169
6169
|
*/
|
|
6170
6170
|
beginCreateOrUpdate(resourceGroupName, devCenterName, attachedNetworkConnectionName, body, options) {
|
|
6171
|
-
return tslib.__awaiter(this,
|
|
6172
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6171
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6172
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6173
6173
|
return this.client.sendOperationRequest(args, spec);
|
|
6174
6174
|
});
|
|
6175
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6175
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6176
6176
|
var _a;
|
|
6177
6177
|
let currentRawResponse = undefined;
|
|
6178
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6178
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6179
6179
|
const callback = (rawResponse, flatResponse) => {
|
|
6180
6180
|
currentRawResponse = rawResponse;
|
|
6181
|
-
providedCallback === null || providedCallback ===
|
|
6181
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6182
6182
|
};
|
|
6183
6183
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6184
6184
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6203,8 +6203,8 @@ class AttachedNetworksImpl {
|
|
|
6203
6203
|
spec: createOrUpdateOperationSpec$9,
|
|
6204
6204
|
});
|
|
6205
6205
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6206
|
-
restoreFrom: options === null || options ===
|
|
6207
|
-
intervalInMs: options === null || options ===
|
|
6206
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6207
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6208
6208
|
resourceLocationConfig: "azure-async-operation",
|
|
6209
6209
|
});
|
|
6210
6210
|
yield poller.poll();
|
|
@@ -6220,7 +6220,7 @@ class AttachedNetworksImpl {
|
|
|
6220
6220
|
* @param options The options parameters.
|
|
6221
6221
|
*/
|
|
6222
6222
|
beginCreateOrUpdateAndWait(resourceGroupName, devCenterName, attachedNetworkConnectionName, body, options) {
|
|
6223
|
-
return tslib.__awaiter(this,
|
|
6223
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6224
6224
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, devCenterName, attachedNetworkConnectionName, body, options);
|
|
6225
6225
|
return poller.pollUntilDone();
|
|
6226
6226
|
});
|
|
@@ -6233,17 +6233,17 @@ class AttachedNetworksImpl {
|
|
|
6233
6233
|
* @param options The options parameters.
|
|
6234
6234
|
*/
|
|
6235
6235
|
beginDelete(resourceGroupName, devCenterName, attachedNetworkConnectionName, options) {
|
|
6236
|
-
return tslib.__awaiter(this,
|
|
6237
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6236
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6237
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6238
6238
|
return this.client.sendOperationRequest(args, spec);
|
|
6239
6239
|
});
|
|
6240
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6240
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6241
6241
|
var _a;
|
|
6242
6242
|
let currentRawResponse = undefined;
|
|
6243
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6243
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6244
6244
|
const callback = (rawResponse, flatResponse) => {
|
|
6245
6245
|
currentRawResponse = rawResponse;
|
|
6246
|
-
providedCallback === null || providedCallback ===
|
|
6246
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6247
6247
|
};
|
|
6248
6248
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6249
6249
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6267,8 +6267,8 @@ class AttachedNetworksImpl {
|
|
|
6267
6267
|
spec: deleteOperationSpec$9,
|
|
6268
6268
|
});
|
|
6269
6269
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6270
|
-
restoreFrom: options === null || options ===
|
|
6271
|
-
intervalInMs: options === null || options ===
|
|
6270
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6271
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6272
6272
|
resourceLocationConfig: "azure-async-operation",
|
|
6273
6273
|
});
|
|
6274
6274
|
yield poller.poll();
|
|
@@ -6283,7 +6283,7 @@ class AttachedNetworksImpl {
|
|
|
6283
6283
|
* @param options The options parameters.
|
|
6284
6284
|
*/
|
|
6285
6285
|
beginDeleteAndWait(resourceGroupName, devCenterName, attachedNetworkConnectionName, options) {
|
|
6286
|
-
return tslib.__awaiter(this,
|
|
6286
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6287
6287
|
const poller = yield this.beginDelete(resourceGroupName, devCenterName, attachedNetworkConnectionName, options);
|
|
6288
6288
|
return poller.pollUntilDone();
|
|
6289
6289
|
});
|
|
@@ -6537,7 +6537,7 @@ class ProjectCatalogsImpl {
|
|
|
6537
6537
|
return this;
|
|
6538
6538
|
},
|
|
6539
6539
|
byPage: (settings) => {
|
|
6540
|
-
if (settings === null || settings ===
|
|
6540
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6541
6541
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6542
6542
|
}
|
|
6543
6543
|
return this.listPagingPage(resourceGroupName, projectName, options, settings);
|
|
@@ -6547,7 +6547,7 @@ class ProjectCatalogsImpl {
|
|
|
6547
6547
|
listPagingPage(resourceGroupName, projectName, options, settings) {
|
|
6548
6548
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6549
6549
|
let result;
|
|
6550
|
-
let continuationToken = settings === null || settings ===
|
|
6550
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6551
6551
|
if (!continuationToken) {
|
|
6552
6552
|
result = yield tslib.__await(this._list(resourceGroupName, projectName, options));
|
|
6553
6553
|
let page = result.value || [];
|
|
@@ -6612,17 +6612,17 @@ class ProjectCatalogsImpl {
|
|
|
6612
6612
|
* @param options The options parameters.
|
|
6613
6613
|
*/
|
|
6614
6614
|
beginCreateOrUpdate(resourceGroupName, projectName, catalogName, body, options) {
|
|
6615
|
-
return tslib.__awaiter(this,
|
|
6616
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6615
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6616
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6617
6617
|
return this.client.sendOperationRequest(args, spec);
|
|
6618
6618
|
});
|
|
6619
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6619
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6620
6620
|
var _a;
|
|
6621
6621
|
let currentRawResponse = undefined;
|
|
6622
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6622
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6623
6623
|
const callback = (rawResponse, flatResponse) => {
|
|
6624
6624
|
currentRawResponse = rawResponse;
|
|
6625
|
-
providedCallback === null || providedCallback ===
|
|
6625
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6626
6626
|
};
|
|
6627
6627
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6628
6628
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6641,8 +6641,8 @@ class ProjectCatalogsImpl {
|
|
|
6641
6641
|
spec: createOrUpdateOperationSpec$8,
|
|
6642
6642
|
});
|
|
6643
6643
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6644
|
-
restoreFrom: options === null || options ===
|
|
6645
|
-
intervalInMs: options === null || options ===
|
|
6644
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6645
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6646
6646
|
resourceLocationConfig: "azure-async-operation",
|
|
6647
6647
|
});
|
|
6648
6648
|
yield poller.poll();
|
|
@@ -6658,7 +6658,7 @@ class ProjectCatalogsImpl {
|
|
|
6658
6658
|
* @param options The options parameters.
|
|
6659
6659
|
*/
|
|
6660
6660
|
beginCreateOrUpdateAndWait(resourceGroupName, projectName, catalogName, body, options) {
|
|
6661
|
-
return tslib.__awaiter(this,
|
|
6661
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6662
6662
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, projectName, catalogName, body, options);
|
|
6663
6663
|
return poller.pollUntilDone();
|
|
6664
6664
|
});
|
|
@@ -6672,17 +6672,17 @@ class ProjectCatalogsImpl {
|
|
|
6672
6672
|
* @param options The options parameters.
|
|
6673
6673
|
*/
|
|
6674
6674
|
beginPatch(resourceGroupName, projectName, catalogName, body, options) {
|
|
6675
|
-
return tslib.__awaiter(this,
|
|
6676
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6675
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6676
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6677
6677
|
return this.client.sendOperationRequest(args, spec);
|
|
6678
6678
|
});
|
|
6679
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6679
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6680
6680
|
var _a;
|
|
6681
6681
|
let currentRawResponse = undefined;
|
|
6682
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6682
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6683
6683
|
const callback = (rawResponse, flatResponse) => {
|
|
6684
6684
|
currentRawResponse = rawResponse;
|
|
6685
|
-
providedCallback === null || providedCallback ===
|
|
6685
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6686
6686
|
};
|
|
6687
6687
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6688
6688
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6701,8 +6701,8 @@ class ProjectCatalogsImpl {
|
|
|
6701
6701
|
spec: patchOperationSpec,
|
|
6702
6702
|
});
|
|
6703
6703
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6704
|
-
restoreFrom: options === null || options ===
|
|
6705
|
-
intervalInMs: options === null || options ===
|
|
6704
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6705
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6706
6706
|
resourceLocationConfig: "azure-async-operation",
|
|
6707
6707
|
});
|
|
6708
6708
|
yield poller.poll();
|
|
@@ -6718,7 +6718,7 @@ class ProjectCatalogsImpl {
|
|
|
6718
6718
|
* @param options The options parameters.
|
|
6719
6719
|
*/
|
|
6720
6720
|
beginPatchAndWait(resourceGroupName, projectName, catalogName, body, options) {
|
|
6721
|
-
return tslib.__awaiter(this,
|
|
6721
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6722
6722
|
const poller = yield this.beginPatch(resourceGroupName, projectName, catalogName, body, options);
|
|
6723
6723
|
return poller.pollUntilDone();
|
|
6724
6724
|
});
|
|
@@ -6731,17 +6731,17 @@ class ProjectCatalogsImpl {
|
|
|
6731
6731
|
* @param options The options parameters.
|
|
6732
6732
|
*/
|
|
6733
6733
|
beginDelete(resourceGroupName, projectName, catalogName, options) {
|
|
6734
|
-
return tslib.__awaiter(this,
|
|
6735
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6734
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6735
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6736
6736
|
return this.client.sendOperationRequest(args, spec);
|
|
6737
6737
|
});
|
|
6738
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6738
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6739
6739
|
var _a;
|
|
6740
6740
|
let currentRawResponse = undefined;
|
|
6741
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6741
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6742
6742
|
const callback = (rawResponse, flatResponse) => {
|
|
6743
6743
|
currentRawResponse = rawResponse;
|
|
6744
|
-
providedCallback === null || providedCallback ===
|
|
6744
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6745
6745
|
};
|
|
6746
6746
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6747
6747
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6760,8 +6760,8 @@ class ProjectCatalogsImpl {
|
|
|
6760
6760
|
spec: deleteOperationSpec$8,
|
|
6761
6761
|
});
|
|
6762
6762
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6763
|
-
restoreFrom: options === null || options ===
|
|
6764
|
-
intervalInMs: options === null || options ===
|
|
6763
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6764
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6765
6765
|
resourceLocationConfig: "azure-async-operation",
|
|
6766
6766
|
});
|
|
6767
6767
|
yield poller.poll();
|
|
@@ -6776,7 +6776,7 @@ class ProjectCatalogsImpl {
|
|
|
6776
6776
|
* @param options The options parameters.
|
|
6777
6777
|
*/
|
|
6778
6778
|
beginDeleteAndWait(resourceGroupName, projectName, catalogName, options) {
|
|
6779
|
-
return tslib.__awaiter(this,
|
|
6779
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6780
6780
|
const poller = yield this.beginDelete(resourceGroupName, projectName, catalogName, options);
|
|
6781
6781
|
return poller.pollUntilDone();
|
|
6782
6782
|
});
|
|
@@ -6799,17 +6799,17 @@ class ProjectCatalogsImpl {
|
|
|
6799
6799
|
* @param options The options parameters.
|
|
6800
6800
|
*/
|
|
6801
6801
|
beginSync(resourceGroupName, projectName, catalogName, options) {
|
|
6802
|
-
return tslib.__awaiter(this,
|
|
6803
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6802
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6803
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6804
6804
|
return this.client.sendOperationRequest(args, spec);
|
|
6805
6805
|
});
|
|
6806
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6806
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6807
6807
|
var _a;
|
|
6808
6808
|
let currentRawResponse = undefined;
|
|
6809
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6809
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6810
6810
|
const callback = (rawResponse, flatResponse) => {
|
|
6811
6811
|
currentRawResponse = rawResponse;
|
|
6812
|
-
providedCallback === null || providedCallback ===
|
|
6812
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6813
6813
|
};
|
|
6814
6814
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6815
6815
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6828,8 +6828,8 @@ class ProjectCatalogsImpl {
|
|
|
6828
6828
|
spec: syncOperationSpec$1,
|
|
6829
6829
|
});
|
|
6830
6830
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6831
|
-
restoreFrom: options === null || options ===
|
|
6832
|
-
intervalInMs: options === null || options ===
|
|
6831
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6832
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6833
6833
|
resourceLocationConfig: "azure-async-operation",
|
|
6834
6834
|
});
|
|
6835
6835
|
yield poller.poll();
|
|
@@ -6844,7 +6844,7 @@ class ProjectCatalogsImpl {
|
|
|
6844
6844
|
* @param options The options parameters.
|
|
6845
6845
|
*/
|
|
6846
6846
|
beginSyncAndWait(resourceGroupName, projectName, catalogName, options) {
|
|
6847
|
-
return tslib.__awaiter(this,
|
|
6847
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6848
6848
|
const poller = yield this.beginSync(resourceGroupName, projectName, catalogName, options);
|
|
6849
6849
|
return poller.pollUntilDone();
|
|
6850
6850
|
});
|
|
@@ -6857,17 +6857,17 @@ class ProjectCatalogsImpl {
|
|
|
6857
6857
|
* @param options The options parameters.
|
|
6858
6858
|
*/
|
|
6859
6859
|
beginConnect(resourceGroupName, projectName, catalogName, options) {
|
|
6860
|
-
return tslib.__awaiter(this,
|
|
6861
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6860
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6861
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6862
6862
|
return this.client.sendOperationRequest(args, spec);
|
|
6863
6863
|
});
|
|
6864
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6864
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6865
6865
|
var _a;
|
|
6866
6866
|
let currentRawResponse = undefined;
|
|
6867
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6867
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6868
6868
|
const callback = (rawResponse, flatResponse) => {
|
|
6869
6869
|
currentRawResponse = rawResponse;
|
|
6870
|
-
providedCallback === null || providedCallback ===
|
|
6870
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6871
6871
|
};
|
|
6872
6872
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6873
6873
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6886,8 +6886,8 @@ class ProjectCatalogsImpl {
|
|
|
6886
6886
|
spec: connectOperationSpec$1,
|
|
6887
6887
|
});
|
|
6888
6888
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6889
|
-
restoreFrom: options === null || options ===
|
|
6890
|
-
intervalInMs: options === null || options ===
|
|
6889
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6890
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6891
6891
|
resourceLocationConfig: "azure-async-operation",
|
|
6892
6892
|
});
|
|
6893
6893
|
yield poller.poll();
|
|
@@ -6902,7 +6902,7 @@ class ProjectCatalogsImpl {
|
|
|
6902
6902
|
* @param options The options parameters.
|
|
6903
6903
|
*/
|
|
6904
6904
|
beginConnectAndWait(resourceGroupName, projectName, catalogName, options) {
|
|
6905
|
-
return tslib.__awaiter(this,
|
|
6905
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6906
6906
|
const poller = yield this.beginConnect(resourceGroupName, projectName, catalogName, options);
|
|
6907
6907
|
return poller.pollUntilDone();
|
|
6908
6908
|
});
|
|
@@ -7200,7 +7200,7 @@ class EnvironmentDefinitionsImpl {
|
|
|
7200
7200
|
return this;
|
|
7201
7201
|
},
|
|
7202
7202
|
byPage: (settings) => {
|
|
7203
|
-
if (settings === null || settings ===
|
|
7203
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7204
7204
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7205
7205
|
}
|
|
7206
7206
|
return this.listByProjectCatalogPagingPage(resourceGroupName, projectName, catalogName, options, settings);
|
|
@@ -7210,7 +7210,7 @@ class EnvironmentDefinitionsImpl {
|
|
|
7210
7210
|
listByProjectCatalogPagingPage(resourceGroupName, projectName, catalogName, options, settings) {
|
|
7211
7211
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectCatalogPagingPage_1() {
|
|
7212
7212
|
let result;
|
|
7213
|
-
let continuationToken = settings === null || settings ===
|
|
7213
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7214
7214
|
if (!continuationToken) {
|
|
7215
7215
|
result = yield tslib.__await(this._listByProjectCatalog(resourceGroupName, projectName, catalogName, options));
|
|
7216
7216
|
let page = result.value || [];
|
|
@@ -7264,7 +7264,7 @@ class EnvironmentDefinitionsImpl {
|
|
|
7264
7264
|
return this;
|
|
7265
7265
|
},
|
|
7266
7266
|
byPage: (settings) => {
|
|
7267
|
-
if (settings === null || settings ===
|
|
7267
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7268
7268
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7269
7269
|
}
|
|
7270
7270
|
return this.listByCatalogPagingPage(resourceGroupName, devCenterName, catalogName, options, settings);
|
|
@@ -7274,7 +7274,7 @@ class EnvironmentDefinitionsImpl {
|
|
|
7274
7274
|
listByCatalogPagingPage(resourceGroupName, devCenterName, catalogName, options, settings) {
|
|
7275
7275
|
return tslib.__asyncGenerator(this, arguments, function* listByCatalogPagingPage_1() {
|
|
7276
7276
|
let result;
|
|
7277
|
-
let continuationToken = settings === null || settings ===
|
|
7277
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7278
7278
|
if (!continuationToken) {
|
|
7279
7279
|
result = yield tslib.__await(this._listByCatalog(resourceGroupName, devCenterName, catalogName, options));
|
|
7280
7280
|
let page = result.value || [];
|
|
@@ -7658,7 +7658,7 @@ class GalleriesImpl {
|
|
|
7658
7658
|
return this;
|
|
7659
7659
|
},
|
|
7660
7660
|
byPage: (settings) => {
|
|
7661
|
-
if (settings === null || settings ===
|
|
7661
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7662
7662
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7663
7663
|
}
|
|
7664
7664
|
return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
|
|
@@ -7668,7 +7668,7 @@ class GalleriesImpl {
|
|
|
7668
7668
|
listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
|
|
7669
7669
|
return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
|
|
7670
7670
|
let result;
|
|
7671
|
-
let continuationToken = settings === null || settings ===
|
|
7671
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7672
7672
|
if (!continuationToken) {
|
|
7673
7673
|
result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
|
|
7674
7674
|
let page = result.value || [];
|
|
@@ -7733,17 +7733,17 @@ class GalleriesImpl {
|
|
|
7733
7733
|
* @param options The options parameters.
|
|
7734
7734
|
*/
|
|
7735
7735
|
beginCreateOrUpdate(resourceGroupName, devCenterName, galleryName, body, options) {
|
|
7736
|
-
return tslib.__awaiter(this,
|
|
7737
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7736
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7737
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7738
7738
|
return this.client.sendOperationRequest(args, spec);
|
|
7739
7739
|
});
|
|
7740
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7740
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7741
7741
|
var _a;
|
|
7742
7742
|
let currentRawResponse = undefined;
|
|
7743
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7743
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7744
7744
|
const callback = (rawResponse, flatResponse) => {
|
|
7745
7745
|
currentRawResponse = rawResponse;
|
|
7746
|
-
providedCallback === null || providedCallback ===
|
|
7746
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7747
7747
|
};
|
|
7748
7748
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7749
7749
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7762,8 +7762,8 @@ class GalleriesImpl {
|
|
|
7762
7762
|
spec: createOrUpdateOperationSpec$7,
|
|
7763
7763
|
});
|
|
7764
7764
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7765
|
-
restoreFrom: options === null || options ===
|
|
7766
|
-
intervalInMs: options === null || options ===
|
|
7765
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7766
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7767
7767
|
resourceLocationConfig: "azure-async-operation",
|
|
7768
7768
|
});
|
|
7769
7769
|
yield poller.poll();
|
|
@@ -7779,7 +7779,7 @@ class GalleriesImpl {
|
|
|
7779
7779
|
* @param options The options parameters.
|
|
7780
7780
|
*/
|
|
7781
7781
|
beginCreateOrUpdateAndWait(resourceGroupName, devCenterName, galleryName, body, options) {
|
|
7782
|
-
return tslib.__awaiter(this,
|
|
7782
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7783
7783
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, devCenterName, galleryName, body, options);
|
|
7784
7784
|
return poller.pollUntilDone();
|
|
7785
7785
|
});
|
|
@@ -7792,17 +7792,17 @@ class GalleriesImpl {
|
|
|
7792
7792
|
* @param options The options parameters.
|
|
7793
7793
|
*/
|
|
7794
7794
|
beginDelete(resourceGroupName, devCenterName, galleryName, options) {
|
|
7795
|
-
return tslib.__awaiter(this,
|
|
7796
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7795
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7796
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7797
7797
|
return this.client.sendOperationRequest(args, spec);
|
|
7798
7798
|
});
|
|
7799
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7799
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7800
7800
|
var _a;
|
|
7801
7801
|
let currentRawResponse = undefined;
|
|
7802
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7802
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7803
7803
|
const callback = (rawResponse, flatResponse) => {
|
|
7804
7804
|
currentRawResponse = rawResponse;
|
|
7805
|
-
providedCallback === null || providedCallback ===
|
|
7805
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7806
7806
|
};
|
|
7807
7807
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7808
7808
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7821,8 +7821,8 @@ class GalleriesImpl {
|
|
|
7821
7821
|
spec: deleteOperationSpec$7,
|
|
7822
7822
|
});
|
|
7823
7823
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7824
|
-
restoreFrom: options === null || options ===
|
|
7825
|
-
intervalInMs: options === null || options ===
|
|
7824
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7825
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7826
7826
|
resourceLocationConfig: "azure-async-operation",
|
|
7827
7827
|
});
|
|
7828
7828
|
yield poller.poll();
|
|
@@ -7837,7 +7837,7 @@ class GalleriesImpl {
|
|
|
7837
7837
|
* @param options The options parameters.
|
|
7838
7838
|
*/
|
|
7839
7839
|
beginDeleteAndWait(resourceGroupName, devCenterName, galleryName, options) {
|
|
7840
|
-
return tslib.__awaiter(this,
|
|
7840
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7841
7841
|
const poller = yield this.beginDelete(resourceGroupName, devCenterName, galleryName, options);
|
|
7842
7842
|
return poller.pollUntilDone();
|
|
7843
7843
|
});
|
|
@@ -8017,7 +8017,7 @@ class ImagesImpl {
|
|
|
8017
8017
|
return this;
|
|
8018
8018
|
},
|
|
8019
8019
|
byPage: (settings) => {
|
|
8020
|
-
if (settings === null || settings ===
|
|
8020
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8021
8021
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8022
8022
|
}
|
|
8023
8023
|
return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
|
|
@@ -8027,7 +8027,7 @@ class ImagesImpl {
|
|
|
8027
8027
|
listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
|
|
8028
8028
|
return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
|
|
8029
8029
|
let result;
|
|
8030
|
-
let continuationToken = settings === null || settings ===
|
|
8030
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8031
8031
|
if (!continuationToken) {
|
|
8032
8032
|
result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
|
|
8033
8033
|
let page = result.value || [];
|
|
@@ -8081,7 +8081,7 @@ class ImagesImpl {
|
|
|
8081
8081
|
return this;
|
|
8082
8082
|
},
|
|
8083
8083
|
byPage: (settings) => {
|
|
8084
|
-
if (settings === null || settings ===
|
|
8084
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8085
8085
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8086
8086
|
}
|
|
8087
8087
|
return this.listByGalleryPagingPage(resourceGroupName, devCenterName, galleryName, options, settings);
|
|
@@ -8091,7 +8091,7 @@ class ImagesImpl {
|
|
|
8091
8091
|
listByGalleryPagingPage(resourceGroupName, devCenterName, galleryName, options, settings) {
|
|
8092
8092
|
return tslib.__asyncGenerator(this, arguments, function* listByGalleryPagingPage_1() {
|
|
8093
8093
|
let result;
|
|
8094
|
-
let continuationToken = settings === null || settings ===
|
|
8094
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8095
8095
|
if (!continuationToken) {
|
|
8096
8096
|
result = yield tslib.__await(this._listByGallery(resourceGroupName, devCenterName, galleryName, options));
|
|
8097
8097
|
let page = result.value || [];
|
|
@@ -8327,7 +8327,7 @@ class ImageVersionsImpl {
|
|
|
8327
8327
|
return this;
|
|
8328
8328
|
},
|
|
8329
8329
|
byPage: (settings) => {
|
|
8330
|
-
if (settings === null || settings ===
|
|
8330
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8331
8331
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8332
8332
|
}
|
|
8333
8333
|
return this.listByImagePagingPage(resourceGroupName, devCenterName, galleryName, imageName, options, settings);
|
|
@@ -8337,7 +8337,7 @@ class ImageVersionsImpl {
|
|
|
8337
8337
|
listByImagePagingPage(resourceGroupName, devCenterName, galleryName, imageName, options, settings) {
|
|
8338
8338
|
return tslib.__asyncGenerator(this, arguments, function* listByImagePagingPage_1() {
|
|
8339
8339
|
let result;
|
|
8340
|
-
let continuationToken = settings === null || settings ===
|
|
8340
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8341
8341
|
if (!continuationToken) {
|
|
8342
8342
|
result = yield tslib.__await(this._listByImage(resourceGroupName, devCenterName, galleryName, imageName, options));
|
|
8343
8343
|
let page = result.value || [];
|
|
@@ -8530,7 +8530,7 @@ class CatalogsImpl {
|
|
|
8530
8530
|
return this;
|
|
8531
8531
|
},
|
|
8532
8532
|
byPage: (settings) => {
|
|
8533
|
-
if (settings === null || settings ===
|
|
8533
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8534
8534
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8535
8535
|
}
|
|
8536
8536
|
return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
|
|
@@ -8540,7 +8540,7 @@ class CatalogsImpl {
|
|
|
8540
8540
|
listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
|
|
8541
8541
|
return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
|
|
8542
8542
|
let result;
|
|
8543
|
-
let continuationToken = settings === null || settings ===
|
|
8543
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8544
8544
|
if (!continuationToken) {
|
|
8545
8545
|
result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
|
|
8546
8546
|
let page = result.value || [];
|
|
@@ -8605,17 +8605,17 @@ class CatalogsImpl {
|
|
|
8605
8605
|
* @param options The options parameters.
|
|
8606
8606
|
*/
|
|
8607
8607
|
beginCreateOrUpdate(resourceGroupName, devCenterName, catalogName, body, options) {
|
|
8608
|
-
return tslib.__awaiter(this,
|
|
8609
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8608
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8609
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8610
8610
|
return this.client.sendOperationRequest(args, spec);
|
|
8611
8611
|
});
|
|
8612
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8612
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8613
8613
|
var _a;
|
|
8614
8614
|
let currentRawResponse = undefined;
|
|
8615
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8615
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8616
8616
|
const callback = (rawResponse, flatResponse) => {
|
|
8617
8617
|
currentRawResponse = rawResponse;
|
|
8618
|
-
providedCallback === null || providedCallback ===
|
|
8618
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8619
8619
|
};
|
|
8620
8620
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8621
8621
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8634,8 +8634,8 @@ class CatalogsImpl {
|
|
|
8634
8634
|
spec: createOrUpdateOperationSpec$6,
|
|
8635
8635
|
});
|
|
8636
8636
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8637
|
-
restoreFrom: options === null || options ===
|
|
8638
|
-
intervalInMs: options === null || options ===
|
|
8637
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8638
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8639
8639
|
resourceLocationConfig: "azure-async-operation",
|
|
8640
8640
|
});
|
|
8641
8641
|
yield poller.poll();
|
|
@@ -8651,7 +8651,7 @@ class CatalogsImpl {
|
|
|
8651
8651
|
* @param options The options parameters.
|
|
8652
8652
|
*/
|
|
8653
8653
|
beginCreateOrUpdateAndWait(resourceGroupName, devCenterName, catalogName, body, options) {
|
|
8654
|
-
return tslib.__awaiter(this,
|
|
8654
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8655
8655
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, devCenterName, catalogName, body, options);
|
|
8656
8656
|
return poller.pollUntilDone();
|
|
8657
8657
|
});
|
|
@@ -8665,17 +8665,17 @@ class CatalogsImpl {
|
|
|
8665
8665
|
* @param options The options parameters.
|
|
8666
8666
|
*/
|
|
8667
8667
|
beginUpdate(resourceGroupName, devCenterName, catalogName, body, options) {
|
|
8668
|
-
return tslib.__awaiter(this,
|
|
8669
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8668
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8669
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8670
8670
|
return this.client.sendOperationRequest(args, spec);
|
|
8671
8671
|
});
|
|
8672
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8672
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8673
8673
|
var _a;
|
|
8674
8674
|
let currentRawResponse = undefined;
|
|
8675
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8675
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8676
8676
|
const callback = (rawResponse, flatResponse) => {
|
|
8677
8677
|
currentRawResponse = rawResponse;
|
|
8678
|
-
providedCallback === null || providedCallback ===
|
|
8678
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8679
8679
|
};
|
|
8680
8680
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8681
8681
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8694,8 +8694,8 @@ class CatalogsImpl {
|
|
|
8694
8694
|
spec: updateOperationSpec$6,
|
|
8695
8695
|
});
|
|
8696
8696
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8697
|
-
restoreFrom: options === null || options ===
|
|
8698
|
-
intervalInMs: options === null || options ===
|
|
8697
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8698
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8699
8699
|
resourceLocationConfig: "azure-async-operation",
|
|
8700
8700
|
});
|
|
8701
8701
|
yield poller.poll();
|
|
@@ -8711,7 +8711,7 @@ class CatalogsImpl {
|
|
|
8711
8711
|
* @param options The options parameters.
|
|
8712
8712
|
*/
|
|
8713
8713
|
beginUpdateAndWait(resourceGroupName, devCenterName, catalogName, body, options) {
|
|
8714
|
-
return tslib.__awaiter(this,
|
|
8714
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8715
8715
|
const poller = yield this.beginUpdate(resourceGroupName, devCenterName, catalogName, body, options);
|
|
8716
8716
|
return poller.pollUntilDone();
|
|
8717
8717
|
});
|
|
@@ -8724,17 +8724,17 @@ class CatalogsImpl {
|
|
|
8724
8724
|
* @param options The options parameters.
|
|
8725
8725
|
*/
|
|
8726
8726
|
beginDelete(resourceGroupName, devCenterName, catalogName, options) {
|
|
8727
|
-
return tslib.__awaiter(this,
|
|
8728
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8727
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8728
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8729
8729
|
return this.client.sendOperationRequest(args, spec);
|
|
8730
8730
|
});
|
|
8731
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8731
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8732
8732
|
var _a;
|
|
8733
8733
|
let currentRawResponse = undefined;
|
|
8734
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8734
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8735
8735
|
const callback = (rawResponse, flatResponse) => {
|
|
8736
8736
|
currentRawResponse = rawResponse;
|
|
8737
|
-
providedCallback === null || providedCallback ===
|
|
8737
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8738
8738
|
};
|
|
8739
8739
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8740
8740
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8753,8 +8753,8 @@ class CatalogsImpl {
|
|
|
8753
8753
|
spec: deleteOperationSpec$6,
|
|
8754
8754
|
});
|
|
8755
8755
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8756
|
-
restoreFrom: options === null || options ===
|
|
8757
|
-
intervalInMs: options === null || options ===
|
|
8756
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8757
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8758
8758
|
resourceLocationConfig: "azure-async-operation",
|
|
8759
8759
|
});
|
|
8760
8760
|
yield poller.poll();
|
|
@@ -8769,7 +8769,7 @@ class CatalogsImpl {
|
|
|
8769
8769
|
* @param options The options parameters.
|
|
8770
8770
|
*/
|
|
8771
8771
|
beginDeleteAndWait(resourceGroupName, devCenterName, catalogName, options) {
|
|
8772
|
-
return tslib.__awaiter(this,
|
|
8772
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8773
8773
|
const poller = yield this.beginDelete(resourceGroupName, devCenterName, catalogName, options);
|
|
8774
8774
|
return poller.pollUntilDone();
|
|
8775
8775
|
});
|
|
@@ -8792,17 +8792,17 @@ class CatalogsImpl {
|
|
|
8792
8792
|
* @param options The options parameters.
|
|
8793
8793
|
*/
|
|
8794
8794
|
beginSync(resourceGroupName, devCenterName, catalogName, options) {
|
|
8795
|
-
return tslib.__awaiter(this,
|
|
8796
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8795
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8796
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8797
8797
|
return this.client.sendOperationRequest(args, spec);
|
|
8798
8798
|
});
|
|
8799
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8799
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8800
8800
|
var _a;
|
|
8801
8801
|
let currentRawResponse = undefined;
|
|
8802
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8802
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8803
8803
|
const callback = (rawResponse, flatResponse) => {
|
|
8804
8804
|
currentRawResponse = rawResponse;
|
|
8805
|
-
providedCallback === null || providedCallback ===
|
|
8805
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8806
8806
|
};
|
|
8807
8807
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8808
8808
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8821,8 +8821,8 @@ class CatalogsImpl {
|
|
|
8821
8821
|
spec: syncOperationSpec,
|
|
8822
8822
|
});
|
|
8823
8823
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8824
|
-
restoreFrom: options === null || options ===
|
|
8825
|
-
intervalInMs: options === null || options ===
|
|
8824
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8825
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8826
8826
|
resourceLocationConfig: "azure-async-operation",
|
|
8827
8827
|
});
|
|
8828
8828
|
yield poller.poll();
|
|
@@ -8837,7 +8837,7 @@ class CatalogsImpl {
|
|
|
8837
8837
|
* @param options The options parameters.
|
|
8838
8838
|
*/
|
|
8839
8839
|
beginSyncAndWait(resourceGroupName, devCenterName, catalogName, options) {
|
|
8840
|
-
return tslib.__awaiter(this,
|
|
8840
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8841
8841
|
const poller = yield this.beginSync(resourceGroupName, devCenterName, catalogName, options);
|
|
8842
8842
|
return poller.pollUntilDone();
|
|
8843
8843
|
});
|
|
@@ -8850,17 +8850,17 @@ class CatalogsImpl {
|
|
|
8850
8850
|
* @param options The options parameters.
|
|
8851
8851
|
*/
|
|
8852
8852
|
beginConnect(resourceGroupName, devCenterName, catalogName, options) {
|
|
8853
|
-
return tslib.__awaiter(this,
|
|
8854
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8853
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8854
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8855
8855
|
return this.client.sendOperationRequest(args, spec);
|
|
8856
8856
|
});
|
|
8857
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8857
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8858
8858
|
var _a;
|
|
8859
8859
|
let currentRawResponse = undefined;
|
|
8860
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8860
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8861
8861
|
const callback = (rawResponse, flatResponse) => {
|
|
8862
8862
|
currentRawResponse = rawResponse;
|
|
8863
|
-
providedCallback === null || providedCallback ===
|
|
8863
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8864
8864
|
};
|
|
8865
8865
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8866
8866
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8879,8 +8879,8 @@ class CatalogsImpl {
|
|
|
8879
8879
|
spec: connectOperationSpec,
|
|
8880
8880
|
});
|
|
8881
8881
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8882
|
-
restoreFrom: options === null || options ===
|
|
8883
|
-
intervalInMs: options === null || options ===
|
|
8882
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8883
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8884
8884
|
resourceLocationConfig: "azure-async-operation",
|
|
8885
8885
|
});
|
|
8886
8886
|
yield poller.poll();
|
|
@@ -8895,7 +8895,7 @@ class CatalogsImpl {
|
|
|
8895
8895
|
* @param options The options parameters.
|
|
8896
8896
|
*/
|
|
8897
8897
|
beginConnectAndWait(resourceGroupName, devCenterName, catalogName, options) {
|
|
8898
|
-
return tslib.__awaiter(this,
|
|
8898
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8899
8899
|
const poller = yield this.beginConnect(resourceGroupName, devCenterName, catalogName, options);
|
|
8900
8900
|
return poller.pollUntilDone();
|
|
8901
8901
|
});
|
|
@@ -9192,7 +9192,7 @@ class EnvironmentTypesImpl {
|
|
|
9192
9192
|
return this;
|
|
9193
9193
|
},
|
|
9194
9194
|
byPage: (settings) => {
|
|
9195
|
-
if (settings === null || settings ===
|
|
9195
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9196
9196
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9197
9197
|
}
|
|
9198
9198
|
return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
|
|
@@ -9202,7 +9202,7 @@ class EnvironmentTypesImpl {
|
|
|
9202
9202
|
listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
|
|
9203
9203
|
return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
|
|
9204
9204
|
let result;
|
|
9205
|
-
let continuationToken = settings === null || settings ===
|
|
9205
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9206
9206
|
if (!continuationToken) {
|
|
9207
9207
|
result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
|
|
9208
9208
|
let page = result.value || [];
|
|
@@ -9473,7 +9473,7 @@ class ProjectAllowedEnvironmentTypesImpl {
|
|
|
9473
9473
|
return this;
|
|
9474
9474
|
},
|
|
9475
9475
|
byPage: (settings) => {
|
|
9476
|
-
if (settings === null || settings ===
|
|
9476
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9477
9477
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9478
9478
|
}
|
|
9479
9479
|
return this.listPagingPage(resourceGroupName, projectName, options, settings);
|
|
@@ -9483,7 +9483,7 @@ class ProjectAllowedEnvironmentTypesImpl {
|
|
|
9483
9483
|
listPagingPage(resourceGroupName, projectName, options, settings) {
|
|
9484
9484
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9485
9485
|
let result;
|
|
9486
|
-
let continuationToken = settings === null || settings ===
|
|
9486
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9487
9487
|
if (!continuationToken) {
|
|
9488
9488
|
result = yield tslib.__await(this._list(resourceGroupName, projectName, options));
|
|
9489
9489
|
let page = result.value || [];
|
|
@@ -9650,7 +9650,7 @@ class ProjectEnvironmentTypesImpl {
|
|
|
9650
9650
|
return this;
|
|
9651
9651
|
},
|
|
9652
9652
|
byPage: (settings) => {
|
|
9653
|
-
if (settings === null || settings ===
|
|
9653
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9654
9654
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9655
9655
|
}
|
|
9656
9656
|
return this.listPagingPage(resourceGroupName, projectName, options, settings);
|
|
@@ -9660,7 +9660,7 @@ class ProjectEnvironmentTypesImpl {
|
|
|
9660
9660
|
listPagingPage(resourceGroupName, projectName, options, settings) {
|
|
9661
9661
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9662
9662
|
let result;
|
|
9663
|
-
let continuationToken = settings === null || settings ===
|
|
9663
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9664
9664
|
if (!continuationToken) {
|
|
9665
9665
|
result = yield tslib.__await(this._list(resourceGroupName, projectName, options));
|
|
9666
9666
|
let page = result.value || [];
|
|
@@ -9931,7 +9931,7 @@ class DevBoxDefinitionsImpl {
|
|
|
9931
9931
|
return this;
|
|
9932
9932
|
},
|
|
9933
9933
|
byPage: (settings) => {
|
|
9934
|
-
if (settings === null || settings ===
|
|
9934
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9935
9935
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9936
9936
|
}
|
|
9937
9937
|
return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
|
|
@@ -9941,7 +9941,7 @@ class DevBoxDefinitionsImpl {
|
|
|
9941
9941
|
listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
|
|
9942
9942
|
return tslib.__asyncGenerator(this, arguments, function* listByDevCenterPagingPage_1() {
|
|
9943
9943
|
let result;
|
|
9944
|
-
let continuationToken = settings === null || settings ===
|
|
9944
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9945
9945
|
if (!continuationToken) {
|
|
9946
9946
|
result = yield tslib.__await(this._listByDevCenter(resourceGroupName, devCenterName, options));
|
|
9947
9947
|
let page = result.value || [];
|
|
@@ -9994,7 +9994,7 @@ class DevBoxDefinitionsImpl {
|
|
|
9994
9994
|
return this;
|
|
9995
9995
|
},
|
|
9996
9996
|
byPage: (settings) => {
|
|
9997
|
-
if (settings === null || settings ===
|
|
9997
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9998
9998
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9999
9999
|
}
|
|
10000
10000
|
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
@@ -10004,7 +10004,7 @@ class DevBoxDefinitionsImpl {
|
|
|
10004
10004
|
listByProjectPagingPage(resourceGroupName, projectName, options, settings) {
|
|
10005
10005
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
10006
10006
|
let result;
|
|
10007
|
-
let continuationToken = settings === null || settings ===
|
|
10007
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10008
10008
|
if (!continuationToken) {
|
|
10009
10009
|
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
10010
10010
|
let page = result.value || [];
|
|
@@ -10069,17 +10069,17 @@ class DevBoxDefinitionsImpl {
|
|
|
10069
10069
|
* @param options The options parameters.
|
|
10070
10070
|
*/
|
|
10071
10071
|
beginCreateOrUpdate(resourceGroupName, devCenterName, devBoxDefinitionName, body, options) {
|
|
10072
|
-
return tslib.__awaiter(this,
|
|
10073
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10072
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10073
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10074
10074
|
return this.client.sendOperationRequest(args, spec);
|
|
10075
10075
|
});
|
|
10076
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10076
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10077
10077
|
var _a;
|
|
10078
10078
|
let currentRawResponse = undefined;
|
|
10079
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10079
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10080
10080
|
const callback = (rawResponse, flatResponse) => {
|
|
10081
10081
|
currentRawResponse = rawResponse;
|
|
10082
|
-
providedCallback === null || providedCallback ===
|
|
10082
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10083
10083
|
};
|
|
10084
10084
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10085
10085
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10104,8 +10104,8 @@ class DevBoxDefinitionsImpl {
|
|
|
10104
10104
|
spec: createOrUpdateOperationSpec$3,
|
|
10105
10105
|
});
|
|
10106
10106
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10107
|
-
restoreFrom: options === null || options ===
|
|
10108
|
-
intervalInMs: options === null || options ===
|
|
10107
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10108
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10109
10109
|
resourceLocationConfig: "azure-async-operation",
|
|
10110
10110
|
});
|
|
10111
10111
|
yield poller.poll();
|
|
@@ -10121,7 +10121,7 @@ class DevBoxDefinitionsImpl {
|
|
|
10121
10121
|
* @param options The options parameters.
|
|
10122
10122
|
*/
|
|
10123
10123
|
beginCreateOrUpdateAndWait(resourceGroupName, devCenterName, devBoxDefinitionName, body, options) {
|
|
10124
|
-
return tslib.__awaiter(this,
|
|
10124
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10125
10125
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, devCenterName, devBoxDefinitionName, body, options);
|
|
10126
10126
|
return poller.pollUntilDone();
|
|
10127
10127
|
});
|
|
@@ -10135,17 +10135,17 @@ class DevBoxDefinitionsImpl {
|
|
|
10135
10135
|
* @param options The options parameters.
|
|
10136
10136
|
*/
|
|
10137
10137
|
beginUpdate(resourceGroupName, devCenterName, devBoxDefinitionName, body, options) {
|
|
10138
|
-
return tslib.__awaiter(this,
|
|
10139
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10138
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10139
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10140
10140
|
return this.client.sendOperationRequest(args, spec);
|
|
10141
10141
|
});
|
|
10142
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10142
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10143
10143
|
var _a;
|
|
10144
10144
|
let currentRawResponse = undefined;
|
|
10145
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10145
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10146
10146
|
const callback = (rawResponse, flatResponse) => {
|
|
10147
10147
|
currentRawResponse = rawResponse;
|
|
10148
|
-
providedCallback === null || providedCallback ===
|
|
10148
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10149
10149
|
};
|
|
10150
10150
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10151
10151
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10170,8 +10170,8 @@ class DevBoxDefinitionsImpl {
|
|
|
10170
10170
|
spec: updateOperationSpec$3,
|
|
10171
10171
|
});
|
|
10172
10172
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10173
|
-
restoreFrom: options === null || options ===
|
|
10174
|
-
intervalInMs: options === null || options ===
|
|
10173
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10174
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10175
10175
|
resourceLocationConfig: "azure-async-operation",
|
|
10176
10176
|
});
|
|
10177
10177
|
yield poller.poll();
|
|
@@ -10187,7 +10187,7 @@ class DevBoxDefinitionsImpl {
|
|
|
10187
10187
|
* @param options The options parameters.
|
|
10188
10188
|
*/
|
|
10189
10189
|
beginUpdateAndWait(resourceGroupName, devCenterName, devBoxDefinitionName, body, options) {
|
|
10190
|
-
return tslib.__awaiter(this,
|
|
10190
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10191
10191
|
const poller = yield this.beginUpdate(resourceGroupName, devCenterName, devBoxDefinitionName, body, options);
|
|
10192
10192
|
return poller.pollUntilDone();
|
|
10193
10193
|
});
|
|
@@ -10200,17 +10200,17 @@ class DevBoxDefinitionsImpl {
|
|
|
10200
10200
|
* @param options The options parameters.
|
|
10201
10201
|
*/
|
|
10202
10202
|
beginDelete(resourceGroupName, devCenterName, devBoxDefinitionName, options) {
|
|
10203
|
-
return tslib.__awaiter(this,
|
|
10204
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
10203
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10204
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10205
10205
|
return this.client.sendOperationRequest(args, spec);
|
|
10206
10206
|
});
|
|
10207
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
10207
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10208
10208
|
var _a;
|
|
10209
10209
|
let currentRawResponse = undefined;
|
|
10210
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
10210
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
10211
10211
|
const callback = (rawResponse, flatResponse) => {
|
|
10212
10212
|
currentRawResponse = rawResponse;
|
|
10213
|
-
providedCallback === null || providedCallback ===
|
|
10213
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
10214
10214
|
};
|
|
10215
10215
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
10216
10216
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -10229,8 +10229,8 @@ class DevBoxDefinitionsImpl {
|
|
|
10229
10229
|
spec: deleteOperationSpec$3,
|
|
10230
10230
|
});
|
|
10231
10231
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
10232
|
-
restoreFrom: options === null || options ===
|
|
10233
|
-
intervalInMs: options === null || options ===
|
|
10232
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
10233
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
10234
10234
|
resourceLocationConfig: "azure-async-operation",
|
|
10235
10235
|
});
|
|
10236
10236
|
yield poller.poll();
|
|
@@ -10245,7 +10245,7 @@ class DevBoxDefinitionsImpl {
|
|
|
10245
10245
|
* @param options The options parameters.
|
|
10246
10246
|
*/
|
|
10247
10247
|
beginDeleteAndWait(resourceGroupName, devCenterName, devBoxDefinitionName, options) {
|
|
10248
|
-
return tslib.__awaiter(this,
|
|
10248
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
10249
10249
|
const poller = yield this.beginDelete(resourceGroupName, devCenterName, devBoxDefinitionName, options);
|
|
10250
10250
|
return poller.pollUntilDone();
|
|
10251
10251
|
});
|
|
@@ -10549,7 +10549,7 @@ class OperationsImpl {
|
|
|
10549
10549
|
return this;
|
|
10550
10550
|
},
|
|
10551
10551
|
byPage: (settings) => {
|
|
10552
|
-
if (settings === null || settings ===
|
|
10552
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10553
10553
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10554
10554
|
}
|
|
10555
10555
|
return this.listPagingPage(options, settings);
|
|
@@ -10559,7 +10559,7 @@ class OperationsImpl {
|
|
|
10559
10559
|
listPagingPage(options, settings) {
|
|
10560
10560
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
10561
10561
|
let result;
|
|
10562
|
-
let continuationToken = settings === null || settings ===
|
|
10562
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10563
10563
|
if (!continuationToken) {
|
|
10564
10564
|
result = yield tslib.__await(this._list(options));
|
|
10565
10565
|
let page = result.value || [];
|
|
@@ -10732,7 +10732,7 @@ class UsagesImpl {
|
|
|
10732
10732
|
return this;
|
|
10733
10733
|
},
|
|
10734
10734
|
byPage: (settings) => {
|
|
10735
|
-
if (settings === null || settings ===
|
|
10735
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10736
10736
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10737
10737
|
}
|
|
10738
10738
|
return this.listByLocationPagingPage(location, options, settings);
|
|
@@ -10742,7 +10742,7 @@ class UsagesImpl {
|
|
|
10742
10742
|
listByLocationPagingPage(location, options, settings) {
|
|
10743
10743
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
10744
10744
|
let result;
|
|
10745
|
-
let continuationToken = settings === null || settings ===
|
|
10745
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10746
10746
|
if (!continuationToken) {
|
|
10747
10747
|
result = yield tslib.__await(this._listByLocation(location, options));
|
|
10748
10748
|
let page = result.value || [];
|
|
@@ -10963,7 +10963,7 @@ class SkusImpl {
|
|
|
10963
10963
|
return this;
|
|
10964
10964
|
},
|
|
10965
10965
|
byPage: (settings) => {
|
|
10966
|
-
if (settings === null || settings ===
|
|
10966
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
10967
10967
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
10968
10968
|
}
|
|
10969
10969
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -10973,7 +10973,7 @@ class SkusImpl {
|
|
|
10973
10973
|
listBySubscriptionPagingPage(options, settings) {
|
|
10974
10974
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
10975
10975
|
let result;
|
|
10976
|
-
let continuationToken = settings === null || settings ===
|
|
10976
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
10977
10977
|
if (!continuationToken) {
|
|
10978
10978
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
10979
10979
|
let page = result.value || [];
|
|
@@ -11097,7 +11097,7 @@ class PoolsImpl {
|
|
|
11097
11097
|
return this;
|
|
11098
11098
|
},
|
|
11099
11099
|
byPage: (settings) => {
|
|
11100
|
-
if (settings === null || settings ===
|
|
11100
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11101
11101
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11102
11102
|
}
|
|
11103
11103
|
return this.listByProjectPagingPage(resourceGroupName, projectName, options, settings);
|
|
@@ -11107,7 +11107,7 @@ class PoolsImpl {
|
|
|
11107
11107
|
listByProjectPagingPage(resourceGroupName, projectName, options, settings) {
|
|
11108
11108
|
return tslib.__asyncGenerator(this, arguments, function* listByProjectPagingPage_1() {
|
|
11109
11109
|
let result;
|
|
11110
|
-
let continuationToken = settings === null || settings ===
|
|
11110
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11111
11111
|
if (!continuationToken) {
|
|
11112
11112
|
result = yield tslib.__await(this._listByProject(resourceGroupName, projectName, options));
|
|
11113
11113
|
let page = result.value || [];
|
|
@@ -11172,17 +11172,17 @@ class PoolsImpl {
|
|
|
11172
11172
|
* @param options The options parameters.
|
|
11173
11173
|
*/
|
|
11174
11174
|
beginCreateOrUpdate(resourceGroupName, projectName, poolName, body, options) {
|
|
11175
|
-
return tslib.__awaiter(this,
|
|
11176
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11175
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11176
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11177
11177
|
return this.client.sendOperationRequest(args, spec);
|
|
11178
11178
|
});
|
|
11179
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11179
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11180
11180
|
var _a;
|
|
11181
11181
|
let currentRawResponse = undefined;
|
|
11182
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11182
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11183
11183
|
const callback = (rawResponse, flatResponse) => {
|
|
11184
11184
|
currentRawResponse = rawResponse;
|
|
11185
|
-
providedCallback === null || providedCallback ===
|
|
11185
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11186
11186
|
};
|
|
11187
11187
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11188
11188
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11201,8 +11201,8 @@ class PoolsImpl {
|
|
|
11201
11201
|
spec: createOrUpdateOperationSpec$2,
|
|
11202
11202
|
});
|
|
11203
11203
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11204
|
-
restoreFrom: options === null || options ===
|
|
11205
|
-
intervalInMs: options === null || options ===
|
|
11204
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11205
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11206
11206
|
resourceLocationConfig: "azure-async-operation",
|
|
11207
11207
|
});
|
|
11208
11208
|
yield poller.poll();
|
|
@@ -11218,7 +11218,7 @@ class PoolsImpl {
|
|
|
11218
11218
|
* @param options The options parameters.
|
|
11219
11219
|
*/
|
|
11220
11220
|
beginCreateOrUpdateAndWait(resourceGroupName, projectName, poolName, body, options) {
|
|
11221
|
-
return tslib.__awaiter(this,
|
|
11221
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11222
11222
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, projectName, poolName, body, options);
|
|
11223
11223
|
return poller.pollUntilDone();
|
|
11224
11224
|
});
|
|
@@ -11232,17 +11232,17 @@ class PoolsImpl {
|
|
|
11232
11232
|
* @param options The options parameters.
|
|
11233
11233
|
*/
|
|
11234
11234
|
beginUpdate(resourceGroupName, projectName, poolName, body, options) {
|
|
11235
|
-
return tslib.__awaiter(this,
|
|
11236
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11235
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11236
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11237
11237
|
return this.client.sendOperationRequest(args, spec);
|
|
11238
11238
|
});
|
|
11239
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11239
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11240
11240
|
var _a;
|
|
11241
11241
|
let currentRawResponse = undefined;
|
|
11242
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11242
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11243
11243
|
const callback = (rawResponse, flatResponse) => {
|
|
11244
11244
|
currentRawResponse = rawResponse;
|
|
11245
|
-
providedCallback === null || providedCallback ===
|
|
11245
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11246
11246
|
};
|
|
11247
11247
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11248
11248
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11261,8 +11261,8 @@ class PoolsImpl {
|
|
|
11261
11261
|
spec: updateOperationSpec$2,
|
|
11262
11262
|
});
|
|
11263
11263
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11264
|
-
restoreFrom: options === null || options ===
|
|
11265
|
-
intervalInMs: options === null || options ===
|
|
11264
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11265
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11266
11266
|
resourceLocationConfig: "azure-async-operation",
|
|
11267
11267
|
});
|
|
11268
11268
|
yield poller.poll();
|
|
@@ -11278,7 +11278,7 @@ class PoolsImpl {
|
|
|
11278
11278
|
* @param options The options parameters.
|
|
11279
11279
|
*/
|
|
11280
11280
|
beginUpdateAndWait(resourceGroupName, projectName, poolName, body, options) {
|
|
11281
|
-
return tslib.__awaiter(this,
|
|
11281
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11282
11282
|
const poller = yield this.beginUpdate(resourceGroupName, projectName, poolName, body, options);
|
|
11283
11283
|
return poller.pollUntilDone();
|
|
11284
11284
|
});
|
|
@@ -11291,17 +11291,17 @@ class PoolsImpl {
|
|
|
11291
11291
|
* @param options The options parameters.
|
|
11292
11292
|
*/
|
|
11293
11293
|
beginDelete(resourceGroupName, projectName, poolName, options) {
|
|
11294
|
-
return tslib.__awaiter(this,
|
|
11295
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11294
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11295
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11296
11296
|
return this.client.sendOperationRequest(args, spec);
|
|
11297
11297
|
});
|
|
11298
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11298
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11299
11299
|
var _a;
|
|
11300
11300
|
let currentRawResponse = undefined;
|
|
11301
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11301
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11302
11302
|
const callback = (rawResponse, flatResponse) => {
|
|
11303
11303
|
currentRawResponse = rawResponse;
|
|
11304
|
-
providedCallback === null || providedCallback ===
|
|
11304
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11305
11305
|
};
|
|
11306
11306
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11307
11307
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11320,8 +11320,8 @@ class PoolsImpl {
|
|
|
11320
11320
|
spec: deleteOperationSpec$2,
|
|
11321
11321
|
});
|
|
11322
11322
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11323
|
-
restoreFrom: options === null || options ===
|
|
11324
|
-
intervalInMs: options === null || options ===
|
|
11323
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11324
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11325
11325
|
resourceLocationConfig: "azure-async-operation",
|
|
11326
11326
|
});
|
|
11327
11327
|
yield poller.poll();
|
|
@@ -11336,7 +11336,7 @@ class PoolsImpl {
|
|
|
11336
11336
|
* @param options The options parameters.
|
|
11337
11337
|
*/
|
|
11338
11338
|
beginDeleteAndWait(resourceGroupName, projectName, poolName, options) {
|
|
11339
|
-
return tslib.__awaiter(this,
|
|
11339
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11340
11340
|
const poller = yield this.beginDelete(resourceGroupName, projectName, poolName, options);
|
|
11341
11341
|
return poller.pollUntilDone();
|
|
11342
11342
|
});
|
|
@@ -11349,17 +11349,17 @@ class PoolsImpl {
|
|
|
11349
11349
|
* @param options The options parameters.
|
|
11350
11350
|
*/
|
|
11351
11351
|
beginRunHealthChecks(resourceGroupName, projectName, poolName, options) {
|
|
11352
|
-
return tslib.__awaiter(this,
|
|
11353
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11352
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11353
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11354
11354
|
return this.client.sendOperationRequest(args, spec);
|
|
11355
11355
|
});
|
|
11356
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11356
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11357
11357
|
var _a;
|
|
11358
11358
|
let currentRawResponse = undefined;
|
|
11359
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11359
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11360
11360
|
const callback = (rawResponse, flatResponse) => {
|
|
11361
11361
|
currentRawResponse = rawResponse;
|
|
11362
|
-
providedCallback === null || providedCallback ===
|
|
11362
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11363
11363
|
};
|
|
11364
11364
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11365
11365
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11378,8 +11378,8 @@ class PoolsImpl {
|
|
|
11378
11378
|
spec: runHealthChecksOperationSpec$1,
|
|
11379
11379
|
});
|
|
11380
11380
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11381
|
-
restoreFrom: options === null || options ===
|
|
11382
|
-
intervalInMs: options === null || options ===
|
|
11381
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11382
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11383
11383
|
resourceLocationConfig: "azure-async-operation",
|
|
11384
11384
|
});
|
|
11385
11385
|
yield poller.poll();
|
|
@@ -11394,7 +11394,7 @@ class PoolsImpl {
|
|
|
11394
11394
|
* @param options The options parameters.
|
|
11395
11395
|
*/
|
|
11396
11396
|
beginRunHealthChecksAndWait(resourceGroupName, projectName, poolName, options) {
|
|
11397
|
-
return tslib.__awaiter(this,
|
|
11397
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11398
11398
|
const poller = yield this.beginRunHealthChecks(resourceGroupName, projectName, poolName, options);
|
|
11399
11399
|
return poller.pollUntilDone();
|
|
11400
11400
|
});
|
|
@@ -11639,7 +11639,7 @@ class SchedulesImpl {
|
|
|
11639
11639
|
return this;
|
|
11640
11640
|
},
|
|
11641
11641
|
byPage: (settings) => {
|
|
11642
|
-
if (settings === null || settings ===
|
|
11642
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
11643
11643
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11644
11644
|
}
|
|
11645
11645
|
return this.listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings);
|
|
@@ -11649,7 +11649,7 @@ class SchedulesImpl {
|
|
|
11649
11649
|
listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings) {
|
|
11650
11650
|
return tslib.__asyncGenerator(this, arguments, function* listByPoolPagingPage_1() {
|
|
11651
11651
|
let result;
|
|
11652
|
-
let continuationToken = settings === null || settings ===
|
|
11652
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
11653
11653
|
if (!continuationToken) {
|
|
11654
11654
|
result = yield tslib.__await(this._listByPool(resourceGroupName, projectName, poolName, options));
|
|
11655
11655
|
let page = result.value || [];
|
|
@@ -11717,17 +11717,17 @@ class SchedulesImpl {
|
|
|
11717
11717
|
* @param options The options parameters.
|
|
11718
11718
|
*/
|
|
11719
11719
|
beginCreateOrUpdate(resourceGroupName, projectName, poolName, scheduleName, body, options) {
|
|
11720
|
-
return tslib.__awaiter(this,
|
|
11721
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11720
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11721
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11722
11722
|
return this.client.sendOperationRequest(args, spec);
|
|
11723
11723
|
});
|
|
11724
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11724
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11725
11725
|
var _a;
|
|
11726
11726
|
let currentRawResponse = undefined;
|
|
11727
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11727
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11728
11728
|
const callback = (rawResponse, flatResponse) => {
|
|
11729
11729
|
currentRawResponse = rawResponse;
|
|
11730
|
-
providedCallback === null || providedCallback ===
|
|
11730
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11731
11731
|
};
|
|
11732
11732
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11733
11733
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11753,8 +11753,8 @@ class SchedulesImpl {
|
|
|
11753
11753
|
spec: createOrUpdateOperationSpec$1,
|
|
11754
11754
|
});
|
|
11755
11755
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11756
|
-
restoreFrom: options === null || options ===
|
|
11757
|
-
intervalInMs: options === null || options ===
|
|
11756
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11757
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11758
11758
|
resourceLocationConfig: "azure-async-operation",
|
|
11759
11759
|
});
|
|
11760
11760
|
yield poller.poll();
|
|
@@ -11771,7 +11771,7 @@ class SchedulesImpl {
|
|
|
11771
11771
|
* @param options The options parameters.
|
|
11772
11772
|
*/
|
|
11773
11773
|
beginCreateOrUpdateAndWait(resourceGroupName, projectName, poolName, scheduleName, body, options) {
|
|
11774
|
-
return tslib.__awaiter(this,
|
|
11774
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11775
11775
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, projectName, poolName, scheduleName, body, options);
|
|
11776
11776
|
return poller.pollUntilDone();
|
|
11777
11777
|
});
|
|
@@ -11786,17 +11786,17 @@ class SchedulesImpl {
|
|
|
11786
11786
|
* @param options The options parameters.
|
|
11787
11787
|
*/
|
|
11788
11788
|
beginUpdate(resourceGroupName, projectName, poolName, scheduleName, body, options) {
|
|
11789
|
-
return tslib.__awaiter(this,
|
|
11790
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11789
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11790
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11791
11791
|
return this.client.sendOperationRequest(args, spec);
|
|
11792
11792
|
});
|
|
11793
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11793
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11794
11794
|
var _a;
|
|
11795
11795
|
let currentRawResponse = undefined;
|
|
11796
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11796
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11797
11797
|
const callback = (rawResponse, flatResponse) => {
|
|
11798
11798
|
currentRawResponse = rawResponse;
|
|
11799
|
-
providedCallback === null || providedCallback ===
|
|
11799
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11800
11800
|
};
|
|
11801
11801
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11802
11802
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11822,8 +11822,8 @@ class SchedulesImpl {
|
|
|
11822
11822
|
spec: updateOperationSpec$1,
|
|
11823
11823
|
});
|
|
11824
11824
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11825
|
-
restoreFrom: options === null || options ===
|
|
11826
|
-
intervalInMs: options === null || options ===
|
|
11825
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11826
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11827
11827
|
resourceLocationConfig: "azure-async-operation",
|
|
11828
11828
|
});
|
|
11829
11829
|
yield poller.poll();
|
|
@@ -11840,7 +11840,7 @@ class SchedulesImpl {
|
|
|
11840
11840
|
* @param options The options parameters.
|
|
11841
11841
|
*/
|
|
11842
11842
|
beginUpdateAndWait(resourceGroupName, projectName, poolName, scheduleName, body, options) {
|
|
11843
|
-
return tslib.__awaiter(this,
|
|
11843
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11844
11844
|
const poller = yield this.beginUpdate(resourceGroupName, projectName, poolName, scheduleName, body, options);
|
|
11845
11845
|
return poller.pollUntilDone();
|
|
11846
11846
|
});
|
|
@@ -11854,17 +11854,17 @@ class SchedulesImpl {
|
|
|
11854
11854
|
* @param options The options parameters.
|
|
11855
11855
|
*/
|
|
11856
11856
|
beginDelete(resourceGroupName, projectName, poolName, scheduleName, options) {
|
|
11857
|
-
return tslib.__awaiter(this,
|
|
11858
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11857
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11858
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11859
11859
|
return this.client.sendOperationRequest(args, spec);
|
|
11860
11860
|
});
|
|
11861
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11861
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11862
11862
|
var _a;
|
|
11863
11863
|
let currentRawResponse = undefined;
|
|
11864
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11864
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
11865
11865
|
const callback = (rawResponse, flatResponse) => {
|
|
11866
11866
|
currentRawResponse = rawResponse;
|
|
11867
|
-
providedCallback === null || providedCallback ===
|
|
11867
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
11868
11868
|
};
|
|
11869
11869
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11870
11870
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11883,8 +11883,8 @@ class SchedulesImpl {
|
|
|
11883
11883
|
spec: deleteOperationSpec$1,
|
|
11884
11884
|
});
|
|
11885
11885
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11886
|
-
restoreFrom: options === null || options ===
|
|
11887
|
-
intervalInMs: options === null || options ===
|
|
11886
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
11887
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
11888
11888
|
resourceLocationConfig: "azure-async-operation",
|
|
11889
11889
|
});
|
|
11890
11890
|
yield poller.poll();
|
|
@@ -11900,7 +11900,7 @@ class SchedulesImpl {
|
|
|
11900
11900
|
* @param options The options parameters.
|
|
11901
11901
|
*/
|
|
11902
11902
|
beginDeleteAndWait(resourceGroupName, projectName, poolName, scheduleName, options) {
|
|
11903
|
-
return tslib.__awaiter(this,
|
|
11903
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
11904
11904
|
const poller = yield this.beginDelete(resourceGroupName, projectName, poolName, scheduleName, options);
|
|
11905
11905
|
return poller.pollUntilDone();
|
|
11906
11906
|
});
|
|
@@ -12118,7 +12118,7 @@ class NetworkConnectionsImpl {
|
|
|
12118
12118
|
return this;
|
|
12119
12119
|
},
|
|
12120
12120
|
byPage: (settings) => {
|
|
12121
|
-
if (settings === null || settings ===
|
|
12121
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12122
12122
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12123
12123
|
}
|
|
12124
12124
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -12128,7 +12128,7 @@ class NetworkConnectionsImpl {
|
|
|
12128
12128
|
listBySubscriptionPagingPage(options, settings) {
|
|
12129
12129
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
12130
12130
|
let result;
|
|
12131
|
-
let continuationToken = settings === null || settings ===
|
|
12131
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
12132
12132
|
if (!continuationToken) {
|
|
12133
12133
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
12134
12134
|
let page = result.value || [];
|
|
@@ -12180,7 +12180,7 @@ class NetworkConnectionsImpl {
|
|
|
12180
12180
|
return this;
|
|
12181
12181
|
},
|
|
12182
12182
|
byPage: (settings) => {
|
|
12183
|
-
if (settings === null || settings ===
|
|
12183
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12184
12184
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12185
12185
|
}
|
|
12186
12186
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -12190,7 +12190,7 @@ class NetworkConnectionsImpl {
|
|
|
12190
12190
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
12191
12191
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
12192
12192
|
let result;
|
|
12193
|
-
let continuationToken = settings === null || settings ===
|
|
12193
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
12194
12194
|
if (!continuationToken) {
|
|
12195
12195
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
12196
12196
|
let page = result.value || [];
|
|
@@ -12243,7 +12243,7 @@ class NetworkConnectionsImpl {
|
|
|
12243
12243
|
return this;
|
|
12244
12244
|
},
|
|
12245
12245
|
byPage: (settings) => {
|
|
12246
|
-
if (settings === null || settings ===
|
|
12246
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12247
12247
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12248
12248
|
}
|
|
12249
12249
|
return this.listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options, settings);
|
|
@@ -12294,7 +12294,7 @@ class NetworkConnectionsImpl {
|
|
|
12294
12294
|
return this;
|
|
12295
12295
|
},
|
|
12296
12296
|
byPage: (settings) => {
|
|
12297
|
-
if (settings === null || settings ===
|
|
12297
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
12298
12298
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12299
12299
|
}
|
|
12300
12300
|
return this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, networkConnectionName, options, settings);
|
|
@@ -12304,7 +12304,7 @@ class NetworkConnectionsImpl {
|
|
|
12304
12304
|
listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, networkConnectionName, options, settings) {
|
|
12305
12305
|
return tslib.__asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingPage_1() {
|
|
12306
12306
|
let result;
|
|
12307
|
-
let continuationToken = settings === null || settings ===
|
|
12307
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
12308
12308
|
if (!continuationToken) {
|
|
12309
12309
|
result = yield tslib.__await(this._listOutboundNetworkDependenciesEndpoints(resourceGroupName, networkConnectionName, options));
|
|
12310
12310
|
let page = result.value || [];
|
|
@@ -12373,17 +12373,17 @@ class NetworkConnectionsImpl {
|
|
|
12373
12373
|
* @param options The options parameters.
|
|
12374
12374
|
*/
|
|
12375
12375
|
beginCreateOrUpdate(resourceGroupName, networkConnectionName, body, options) {
|
|
12376
|
-
return tslib.__awaiter(this,
|
|
12377
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12376
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12377
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12378
12378
|
return this.client.sendOperationRequest(args, spec);
|
|
12379
12379
|
});
|
|
12380
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12380
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12381
12381
|
var _a;
|
|
12382
12382
|
let currentRawResponse = undefined;
|
|
12383
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12383
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12384
12384
|
const callback = (rawResponse, flatResponse) => {
|
|
12385
12385
|
currentRawResponse = rawResponse;
|
|
12386
|
-
providedCallback === null || providedCallback ===
|
|
12386
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12387
12387
|
};
|
|
12388
12388
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12389
12389
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12402,8 +12402,8 @@ class NetworkConnectionsImpl {
|
|
|
12402
12402
|
spec: createOrUpdateOperationSpec,
|
|
12403
12403
|
});
|
|
12404
12404
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12405
|
-
restoreFrom: options === null || options ===
|
|
12406
|
-
intervalInMs: options === null || options ===
|
|
12405
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12406
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12407
12407
|
resourceLocationConfig: "azure-async-operation",
|
|
12408
12408
|
});
|
|
12409
12409
|
yield poller.poll();
|
|
@@ -12418,7 +12418,7 @@ class NetworkConnectionsImpl {
|
|
|
12418
12418
|
* @param options The options parameters.
|
|
12419
12419
|
*/
|
|
12420
12420
|
beginCreateOrUpdateAndWait(resourceGroupName, networkConnectionName, body, options) {
|
|
12421
|
-
return tslib.__awaiter(this,
|
|
12421
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12422
12422
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, networkConnectionName, body, options);
|
|
12423
12423
|
return poller.pollUntilDone();
|
|
12424
12424
|
});
|
|
@@ -12431,17 +12431,17 @@ class NetworkConnectionsImpl {
|
|
|
12431
12431
|
* @param options The options parameters.
|
|
12432
12432
|
*/
|
|
12433
12433
|
beginUpdate(resourceGroupName, networkConnectionName, body, options) {
|
|
12434
|
-
return tslib.__awaiter(this,
|
|
12435
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12434
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12435
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12436
12436
|
return this.client.sendOperationRequest(args, spec);
|
|
12437
12437
|
});
|
|
12438
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12438
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12439
12439
|
var _a;
|
|
12440
12440
|
let currentRawResponse = undefined;
|
|
12441
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12441
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12442
12442
|
const callback = (rawResponse, flatResponse) => {
|
|
12443
12443
|
currentRawResponse = rawResponse;
|
|
12444
|
-
providedCallback === null || providedCallback ===
|
|
12444
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12445
12445
|
};
|
|
12446
12446
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12447
12447
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12460,8 +12460,8 @@ class NetworkConnectionsImpl {
|
|
|
12460
12460
|
spec: updateOperationSpec,
|
|
12461
12461
|
});
|
|
12462
12462
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12463
|
-
restoreFrom: options === null || options ===
|
|
12464
|
-
intervalInMs: options === null || options ===
|
|
12463
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12464
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12465
12465
|
resourceLocationConfig: "azure-async-operation",
|
|
12466
12466
|
});
|
|
12467
12467
|
yield poller.poll();
|
|
@@ -12476,7 +12476,7 @@ class NetworkConnectionsImpl {
|
|
|
12476
12476
|
* @param options The options parameters.
|
|
12477
12477
|
*/
|
|
12478
12478
|
beginUpdateAndWait(resourceGroupName, networkConnectionName, body, options) {
|
|
12479
|
-
return tslib.__awaiter(this,
|
|
12479
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12480
12480
|
const poller = yield this.beginUpdate(resourceGroupName, networkConnectionName, body, options);
|
|
12481
12481
|
return poller.pollUntilDone();
|
|
12482
12482
|
});
|
|
@@ -12488,17 +12488,17 @@ class NetworkConnectionsImpl {
|
|
|
12488
12488
|
* @param options The options parameters.
|
|
12489
12489
|
*/
|
|
12490
12490
|
beginDelete(resourceGroupName, networkConnectionName, options) {
|
|
12491
|
-
return tslib.__awaiter(this,
|
|
12492
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12491
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12492
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12493
12493
|
return this.client.sendOperationRequest(args, spec);
|
|
12494
12494
|
});
|
|
12495
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12495
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12496
12496
|
var _a;
|
|
12497
12497
|
let currentRawResponse = undefined;
|
|
12498
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12498
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12499
12499
|
const callback = (rawResponse, flatResponse) => {
|
|
12500
12500
|
currentRawResponse = rawResponse;
|
|
12501
|
-
providedCallback === null || providedCallback ===
|
|
12501
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12502
12502
|
};
|
|
12503
12503
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12504
12504
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12517,8 +12517,8 @@ class NetworkConnectionsImpl {
|
|
|
12517
12517
|
spec: deleteOperationSpec,
|
|
12518
12518
|
});
|
|
12519
12519
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12520
|
-
restoreFrom: options === null || options ===
|
|
12521
|
-
intervalInMs: options === null || options ===
|
|
12520
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12521
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12522
12522
|
resourceLocationConfig: "azure-async-operation",
|
|
12523
12523
|
});
|
|
12524
12524
|
yield poller.poll();
|
|
@@ -12532,7 +12532,7 @@ class NetworkConnectionsImpl {
|
|
|
12532
12532
|
* @param options The options parameters.
|
|
12533
12533
|
*/
|
|
12534
12534
|
beginDeleteAndWait(resourceGroupName, networkConnectionName, options) {
|
|
12535
|
-
return tslib.__awaiter(this,
|
|
12535
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12536
12536
|
const poller = yield this.beginDelete(resourceGroupName, networkConnectionName, options);
|
|
12537
12537
|
return poller.pollUntilDone();
|
|
12538
12538
|
});
|
|
@@ -12563,17 +12563,17 @@ class NetworkConnectionsImpl {
|
|
|
12563
12563
|
* @param options The options parameters.
|
|
12564
12564
|
*/
|
|
12565
12565
|
beginRunHealthChecks(resourceGroupName, networkConnectionName, options) {
|
|
12566
|
-
return tslib.__awaiter(this,
|
|
12567
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
12566
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12567
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12568
12568
|
return this.client.sendOperationRequest(args, spec);
|
|
12569
12569
|
});
|
|
12570
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
12570
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12571
12571
|
var _a;
|
|
12572
12572
|
let currentRawResponse = undefined;
|
|
12573
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
12573
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
12574
12574
|
const callback = (rawResponse, flatResponse) => {
|
|
12575
12575
|
currentRawResponse = rawResponse;
|
|
12576
|
-
providedCallback === null || providedCallback ===
|
|
12576
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
12577
12577
|
};
|
|
12578
12578
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
12579
12579
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -12592,8 +12592,8 @@ class NetworkConnectionsImpl {
|
|
|
12592
12592
|
spec: runHealthChecksOperationSpec,
|
|
12593
12593
|
});
|
|
12594
12594
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
12595
|
-
restoreFrom: options === null || options ===
|
|
12596
|
-
intervalInMs: options === null || options ===
|
|
12595
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
12596
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
12597
12597
|
resourceLocationConfig: "azure-async-operation",
|
|
12598
12598
|
});
|
|
12599
12599
|
yield poller.poll();
|
|
@@ -12608,7 +12608,7 @@ class NetworkConnectionsImpl {
|
|
|
12608
12608
|
* @param options The options parameters.
|
|
12609
12609
|
*/
|
|
12610
12610
|
beginRunHealthChecksAndWait(resourceGroupName, networkConnectionName, options) {
|
|
12611
|
-
return tslib.__awaiter(this,
|
|
12611
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
12612
12612
|
const poller = yield this.beginRunHealthChecks(resourceGroupName, networkConnectionName, options);
|
|
12613
12613
|
return poller.pollUntilDone();
|
|
12614
12614
|
});
|
|
@@ -12995,10 +12995,10 @@ class DevCenterClient extends coreClient__namespace.ServiceClient {
|
|
|
12995
12995
|
: `${packageDetails}`;
|
|
12996
12996
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
12997
12997
|
userAgentPrefix,
|
|
12998
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
12998
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
12999
12999
|
super(optionsWithDefaults);
|
|
13000
13000
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
13001
|
-
if ((options === null || options ===
|
|
13001
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
13002
13002
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
13003
13003
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
13004
13004
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -13012,7 +13012,7 @@ class DevCenterClient extends coreClient__namespace.ServiceClient {
|
|
|
13012
13012
|
});
|
|
13013
13013
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
13014
13014
|
credential: credentials,
|
|
13015
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
13015
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
13016
13016
|
challengeCallbacks: {
|
|
13017
13017
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
13018
13018
|
},
|
|
@@ -13058,7 +13058,7 @@ class DevCenterClient extends coreClient__namespace.ServiceClient {
|
|
|
13058
13058
|
const apiVersionPolicy = {
|
|
13059
13059
|
name: "CustomApiVersionPolicy",
|
|
13060
13060
|
sendRequest(request, next) {
|
|
13061
|
-
return tslib.__awaiter(this,
|
|
13061
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
13062
13062
|
const param = request.url.split("?");
|
|
13063
13063
|
if (param.length > 1) {
|
|
13064
13064
|
const newParams = param[1].split("&").map((item) => {
|