@azure/arm-streamanalytics 5.0.0-alpha.20250206.1 → 5.0.0-alpha.20250210.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 +156 -156
- 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 === void 0 ? void 0 : _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 !== void 0 ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -5508,7 +5508,7 @@ function createLroSpec(inputs) {
|
|
|
5508
5508
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
5509
5509
|
sendPollRequest: (path, options) => {
|
|
5510
5510
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
5511
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
5511
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
5512
5512
|
},
|
|
5513
5513
|
};
|
|
5514
5514
|
}
|
|
@@ -5546,7 +5546,7 @@ class FunctionsImpl {
|
|
|
5546
5546
|
return this;
|
|
5547
5547
|
},
|
|
5548
5548
|
byPage: (settings) => {
|
|
5549
|
-
if (settings === null || settings ===
|
|
5549
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5550
5550
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5551
5551
|
}
|
|
5552
5552
|
return this.listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings);
|
|
@@ -5556,7 +5556,7 @@ class FunctionsImpl {
|
|
|
5556
5556
|
listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
|
|
5557
5557
|
return tslib.__asyncGenerator(this, arguments, function* listByStreamingJobPagingPage_1() {
|
|
5558
5558
|
let result;
|
|
5559
|
-
let continuationToken = settings === null || settings ===
|
|
5559
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5560
5560
|
if (!continuationToken) {
|
|
5561
5561
|
result = yield tslib.__await(this._listByStreamingJob(resourceGroupName, jobName, options));
|
|
5562
5562
|
let page = result.value || [];
|
|
@@ -5660,17 +5660,17 @@ class FunctionsImpl {
|
|
|
5660
5660
|
* @param options The options parameters.
|
|
5661
5661
|
*/
|
|
5662
5662
|
beginTest(resourceGroupName, jobName, functionName, options) {
|
|
5663
|
-
return tslib.__awaiter(this,
|
|
5664
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5663
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5664
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5665
5665
|
return this.client.sendOperationRequest(args, spec);
|
|
5666
5666
|
});
|
|
5667
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5667
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5668
5668
|
var _a;
|
|
5669
5669
|
let currentRawResponse = undefined;
|
|
5670
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5670
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5671
5671
|
const callback = (rawResponse, flatResponse) => {
|
|
5672
5672
|
currentRawResponse = rawResponse;
|
|
5673
|
-
providedCallback === null || providedCallback ===
|
|
5673
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5674
5674
|
};
|
|
5675
5675
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5676
5676
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5689,8 +5689,8 @@ class FunctionsImpl {
|
|
|
5689
5689
|
spec: testOperationSpec$2,
|
|
5690
5690
|
});
|
|
5691
5691
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5692
|
-
restoreFrom: options === null || options ===
|
|
5693
|
-
intervalInMs: options === null || options ===
|
|
5692
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5693
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5694
5694
|
});
|
|
5695
5695
|
yield poller.poll();
|
|
5696
5696
|
return poller;
|
|
@@ -5706,7 +5706,7 @@ class FunctionsImpl {
|
|
|
5706
5706
|
* @param options The options parameters.
|
|
5707
5707
|
*/
|
|
5708
5708
|
beginTestAndWait(resourceGroupName, jobName, functionName, options) {
|
|
5709
|
-
return tslib.__awaiter(this,
|
|
5709
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5710
5710
|
const poller = yield this.beginTest(resourceGroupName, jobName, functionName, options);
|
|
5711
5711
|
return poller.pollUntilDone();
|
|
5712
5712
|
});
|
|
@@ -5974,7 +5974,7 @@ class InputsImpl {
|
|
|
5974
5974
|
return this;
|
|
5975
5975
|
},
|
|
5976
5976
|
byPage: (settings) => {
|
|
5977
|
-
if (settings === null || settings ===
|
|
5977
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5978
5978
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5979
5979
|
}
|
|
5980
5980
|
return this.listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings);
|
|
@@ -5984,7 +5984,7 @@ class InputsImpl {
|
|
|
5984
5984
|
listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
|
|
5985
5985
|
return tslib.__asyncGenerator(this, arguments, function* listByStreamingJobPagingPage_1() {
|
|
5986
5986
|
let result;
|
|
5987
|
-
let continuationToken = settings === null || settings ===
|
|
5987
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5988
5988
|
if (!continuationToken) {
|
|
5989
5989
|
result = yield tslib.__await(this._listByStreamingJob(resourceGroupName, jobName, options));
|
|
5990
5990
|
let page = result.value || [];
|
|
@@ -6085,17 +6085,17 @@ class InputsImpl {
|
|
|
6085
6085
|
* @param options The options parameters.
|
|
6086
6086
|
*/
|
|
6087
6087
|
beginTest(resourceGroupName, jobName, inputName, options) {
|
|
6088
|
-
return tslib.__awaiter(this,
|
|
6089
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6088
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6089
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6090
6090
|
return this.client.sendOperationRequest(args, spec);
|
|
6091
6091
|
});
|
|
6092
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6092
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6093
6093
|
var _a;
|
|
6094
6094
|
let currentRawResponse = undefined;
|
|
6095
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6095
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6096
6096
|
const callback = (rawResponse, flatResponse) => {
|
|
6097
6097
|
currentRawResponse = rawResponse;
|
|
6098
|
-
providedCallback === null || providedCallback ===
|
|
6098
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6099
6099
|
};
|
|
6100
6100
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6101
6101
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6114,8 +6114,8 @@ class InputsImpl {
|
|
|
6114
6114
|
spec: testOperationSpec$1,
|
|
6115
6115
|
});
|
|
6116
6116
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6117
|
-
restoreFrom: options === null || options ===
|
|
6118
|
-
intervalInMs: options === null || options ===
|
|
6117
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6118
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6119
6119
|
});
|
|
6120
6120
|
yield poller.poll();
|
|
6121
6121
|
return poller;
|
|
@@ -6129,7 +6129,7 @@ class InputsImpl {
|
|
|
6129
6129
|
* @param options The options parameters.
|
|
6130
6130
|
*/
|
|
6131
6131
|
beginTestAndWait(resourceGroupName, jobName, inputName, options) {
|
|
6132
|
-
return tslib.__awaiter(this,
|
|
6132
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6133
6133
|
const poller = yield this.beginTest(resourceGroupName, jobName, inputName, options);
|
|
6134
6134
|
return poller.pollUntilDone();
|
|
6135
6135
|
});
|
|
@@ -6363,7 +6363,7 @@ class OutputsImpl {
|
|
|
6363
6363
|
return this;
|
|
6364
6364
|
},
|
|
6365
6365
|
byPage: (settings) => {
|
|
6366
|
-
if (settings === null || settings ===
|
|
6366
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6367
6367
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6368
6368
|
}
|
|
6369
6369
|
return this.listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings);
|
|
@@ -6373,7 +6373,7 @@ class OutputsImpl {
|
|
|
6373
6373
|
listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
|
|
6374
6374
|
return tslib.__asyncGenerator(this, arguments, function* listByStreamingJobPagingPage_1() {
|
|
6375
6375
|
let result;
|
|
6376
|
-
let continuationToken = settings === null || settings ===
|
|
6376
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6377
6377
|
if (!continuationToken) {
|
|
6378
6378
|
result = yield tslib.__await(this._listByStreamingJob(resourceGroupName, jobName, options));
|
|
6379
6379
|
let page = result.value || [];
|
|
@@ -6475,17 +6475,17 @@ class OutputsImpl {
|
|
|
6475
6475
|
* @param options The options parameters.
|
|
6476
6476
|
*/
|
|
6477
6477
|
beginTest(resourceGroupName, jobName, outputName, options) {
|
|
6478
|
-
return tslib.__awaiter(this,
|
|
6479
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6478
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6479
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6480
6480
|
return this.client.sendOperationRequest(args, spec);
|
|
6481
6481
|
});
|
|
6482
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6482
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6483
6483
|
var _a;
|
|
6484
6484
|
let currentRawResponse = undefined;
|
|
6485
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6485
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6486
6486
|
const callback = (rawResponse, flatResponse) => {
|
|
6487
6487
|
currentRawResponse = rawResponse;
|
|
6488
|
-
providedCallback === null || providedCallback ===
|
|
6488
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6489
6489
|
};
|
|
6490
6490
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6491
6491
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6504,8 +6504,8 @@ class OutputsImpl {
|
|
|
6504
6504
|
spec: testOperationSpec,
|
|
6505
6505
|
});
|
|
6506
6506
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6507
|
-
restoreFrom: options === null || options ===
|
|
6508
|
-
intervalInMs: options === null || options ===
|
|
6507
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6508
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6509
6509
|
});
|
|
6510
6510
|
yield poller.poll();
|
|
6511
6511
|
return poller;
|
|
@@ -6519,7 +6519,7 @@ class OutputsImpl {
|
|
|
6519
6519
|
* @param options The options parameters.
|
|
6520
6520
|
*/
|
|
6521
6521
|
beginTestAndWait(resourceGroupName, jobName, outputName, options) {
|
|
6522
|
-
return tslib.__awaiter(this,
|
|
6522
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6523
6523
|
const poller = yield this.beginTest(resourceGroupName, jobName, outputName, options);
|
|
6524
6524
|
return poller.pollUntilDone();
|
|
6525
6525
|
});
|
|
@@ -6751,7 +6751,7 @@ class OperationsImpl {
|
|
|
6751
6751
|
return this;
|
|
6752
6752
|
},
|
|
6753
6753
|
byPage: (settings) => {
|
|
6754
|
-
if (settings === null || settings ===
|
|
6754
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6755
6755
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6756
6756
|
}
|
|
6757
6757
|
return this.listPagingPage(options, settings);
|
|
@@ -6761,7 +6761,7 @@ class OperationsImpl {
|
|
|
6761
6761
|
listPagingPage(options, settings) {
|
|
6762
6762
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6763
6763
|
let result;
|
|
6764
|
-
let continuationToken = settings === null || settings ===
|
|
6764
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6765
6765
|
if (!continuationToken) {
|
|
6766
6766
|
result = yield tslib.__await(this._list(options));
|
|
6767
6767
|
let page = result.value || [];
|
|
@@ -6880,7 +6880,7 @@ class StreamingJobsImpl {
|
|
|
6880
6880
|
return this;
|
|
6881
6881
|
},
|
|
6882
6882
|
byPage: (settings) => {
|
|
6883
|
-
if (settings === null || settings ===
|
|
6883
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6884
6884
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6885
6885
|
}
|
|
6886
6886
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6890,7 +6890,7 @@ class StreamingJobsImpl {
|
|
|
6890
6890
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6891
6891
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6892
6892
|
let result;
|
|
6893
|
-
let continuationToken = settings === null || settings ===
|
|
6893
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6894
6894
|
if (!continuationToken) {
|
|
6895
6895
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6896
6896
|
let page = result.value || [];
|
|
@@ -6941,7 +6941,7 @@ class StreamingJobsImpl {
|
|
|
6941
6941
|
return this;
|
|
6942
6942
|
},
|
|
6943
6943
|
byPage: (settings) => {
|
|
6944
|
-
if (settings === null || settings ===
|
|
6944
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6945
6945
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6946
6946
|
}
|
|
6947
6947
|
return this.listPagingPage(options, settings);
|
|
@@ -6951,7 +6951,7 @@ class StreamingJobsImpl {
|
|
|
6951
6951
|
listPagingPage(options, settings) {
|
|
6952
6952
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6953
6953
|
let result;
|
|
6954
|
-
let continuationToken = settings === null || settings ===
|
|
6954
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6955
6955
|
if (!continuationToken) {
|
|
6956
6956
|
result = yield tslib.__await(this._list(options));
|
|
6957
6957
|
let page = result.value || [];
|
|
@@ -6997,17 +6997,17 @@ class StreamingJobsImpl {
|
|
|
6997
6997
|
* @param options The options parameters.
|
|
6998
6998
|
*/
|
|
6999
6999
|
beginCreateOrReplace(resourceGroupName, jobName, streamingJob, options) {
|
|
7000
|
-
return tslib.__awaiter(this,
|
|
7001
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7000
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7001
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7002
7002
|
return this.client.sendOperationRequest(args, spec);
|
|
7003
7003
|
});
|
|
7004
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7004
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7005
7005
|
var _a;
|
|
7006
7006
|
let currentRawResponse = undefined;
|
|
7007
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7007
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7008
7008
|
const callback = (rawResponse, flatResponse) => {
|
|
7009
7009
|
currentRawResponse = rawResponse;
|
|
7010
|
-
providedCallback === null || providedCallback ===
|
|
7010
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7011
7011
|
};
|
|
7012
7012
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7013
7013
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7026,8 +7026,8 @@ class StreamingJobsImpl {
|
|
|
7026
7026
|
spec: createOrReplaceOperationSpec$1,
|
|
7027
7027
|
});
|
|
7028
7028
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7029
|
-
restoreFrom: options === null || options ===
|
|
7030
|
-
intervalInMs: options === null || options ===
|
|
7029
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7030
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7031
7031
|
});
|
|
7032
7032
|
yield poller.poll();
|
|
7033
7033
|
return poller;
|
|
@@ -7042,7 +7042,7 @@ class StreamingJobsImpl {
|
|
|
7042
7042
|
* @param options The options parameters.
|
|
7043
7043
|
*/
|
|
7044
7044
|
beginCreateOrReplaceAndWait(resourceGroupName, jobName, streamingJob, options) {
|
|
7045
|
-
return tslib.__awaiter(this,
|
|
7045
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7046
7046
|
const poller = yield this.beginCreateOrReplace(resourceGroupName, jobName, streamingJob, options);
|
|
7047
7047
|
return poller.pollUntilDone();
|
|
7048
7048
|
});
|
|
@@ -7068,17 +7068,17 @@ class StreamingJobsImpl {
|
|
|
7068
7068
|
* @param options The options parameters.
|
|
7069
7069
|
*/
|
|
7070
7070
|
beginDelete(resourceGroupName, jobName, options) {
|
|
7071
|
-
return tslib.__awaiter(this,
|
|
7072
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7071
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7072
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7073
7073
|
return this.client.sendOperationRequest(args, spec);
|
|
7074
7074
|
});
|
|
7075
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7075
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7076
7076
|
var _a;
|
|
7077
7077
|
let currentRawResponse = undefined;
|
|
7078
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7078
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7079
7079
|
const callback = (rawResponse, flatResponse) => {
|
|
7080
7080
|
currentRawResponse = rawResponse;
|
|
7081
|
-
providedCallback === null || providedCallback ===
|
|
7081
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7082
7082
|
};
|
|
7083
7083
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7084
7084
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7097,8 +7097,8 @@ class StreamingJobsImpl {
|
|
|
7097
7097
|
spec: deleteOperationSpec$2,
|
|
7098
7098
|
});
|
|
7099
7099
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7100
|
-
restoreFrom: options === null || options ===
|
|
7101
|
-
intervalInMs: options === null || options ===
|
|
7100
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7101
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7102
7102
|
});
|
|
7103
7103
|
yield poller.poll();
|
|
7104
7104
|
return poller;
|
|
@@ -7111,7 +7111,7 @@ class StreamingJobsImpl {
|
|
|
7111
7111
|
* @param options The options parameters.
|
|
7112
7112
|
*/
|
|
7113
7113
|
beginDeleteAndWait(resourceGroupName, jobName, options) {
|
|
7114
|
-
return tslib.__awaiter(this,
|
|
7114
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7115
7115
|
const poller = yield this.beginDelete(resourceGroupName, jobName, options);
|
|
7116
7116
|
return poller.pollUntilDone();
|
|
7117
7117
|
});
|
|
@@ -7148,17 +7148,17 @@ class StreamingJobsImpl {
|
|
|
7148
7148
|
* @param options The options parameters.
|
|
7149
7149
|
*/
|
|
7150
7150
|
beginStart(resourceGroupName, jobName, options) {
|
|
7151
|
-
return tslib.__awaiter(this,
|
|
7152
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7151
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7152
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7153
7153
|
return this.client.sendOperationRequest(args, spec);
|
|
7154
7154
|
});
|
|
7155
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7155
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7156
7156
|
var _a;
|
|
7157
7157
|
let currentRawResponse = undefined;
|
|
7158
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7158
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7159
7159
|
const callback = (rawResponse, flatResponse) => {
|
|
7160
7160
|
currentRawResponse = rawResponse;
|
|
7161
|
-
providedCallback === null || providedCallback ===
|
|
7161
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7162
7162
|
};
|
|
7163
7163
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7164
7164
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7177,8 +7177,8 @@ class StreamingJobsImpl {
|
|
|
7177
7177
|
spec: startOperationSpec,
|
|
7178
7178
|
});
|
|
7179
7179
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7180
|
-
restoreFrom: options === null || options ===
|
|
7181
|
-
intervalInMs: options === null || options ===
|
|
7180
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7181
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7182
7182
|
});
|
|
7183
7183
|
yield poller.poll();
|
|
7184
7184
|
return poller;
|
|
@@ -7192,7 +7192,7 @@ class StreamingJobsImpl {
|
|
|
7192
7192
|
* @param options The options parameters.
|
|
7193
7193
|
*/
|
|
7194
7194
|
beginStartAndWait(resourceGroupName, jobName, options) {
|
|
7195
|
-
return tslib.__awaiter(this,
|
|
7195
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7196
7196
|
const poller = yield this.beginStart(resourceGroupName, jobName, options);
|
|
7197
7197
|
return poller.pollUntilDone();
|
|
7198
7198
|
});
|
|
@@ -7205,17 +7205,17 @@ class StreamingJobsImpl {
|
|
|
7205
7205
|
* @param options The options parameters.
|
|
7206
7206
|
*/
|
|
7207
7207
|
beginStop(resourceGroupName, jobName, options) {
|
|
7208
|
-
return tslib.__awaiter(this,
|
|
7209
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7208
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7209
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7210
7210
|
return this.client.sendOperationRequest(args, spec);
|
|
7211
7211
|
});
|
|
7212
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7212
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7213
7213
|
var _a;
|
|
7214
7214
|
let currentRawResponse = undefined;
|
|
7215
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7215
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7216
7216
|
const callback = (rawResponse, flatResponse) => {
|
|
7217
7217
|
currentRawResponse = rawResponse;
|
|
7218
|
-
providedCallback === null || providedCallback ===
|
|
7218
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7219
7219
|
};
|
|
7220
7220
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7221
7221
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7234,8 +7234,8 @@ class StreamingJobsImpl {
|
|
|
7234
7234
|
spec: stopOperationSpec,
|
|
7235
7235
|
});
|
|
7236
7236
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7237
|
-
restoreFrom: options === null || options ===
|
|
7238
|
-
intervalInMs: options === null || options ===
|
|
7237
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7238
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7239
7239
|
});
|
|
7240
7240
|
yield poller.poll();
|
|
7241
7241
|
return poller;
|
|
@@ -7249,7 +7249,7 @@ class StreamingJobsImpl {
|
|
|
7249
7249
|
* @param options The options parameters.
|
|
7250
7250
|
*/
|
|
7251
7251
|
beginStopAndWait(resourceGroupName, jobName, options) {
|
|
7252
|
-
return tslib.__awaiter(this,
|
|
7252
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7253
7253
|
const poller = yield this.beginStop(resourceGroupName, jobName, options);
|
|
7254
7254
|
return poller.pollUntilDone();
|
|
7255
7255
|
});
|
|
@@ -7261,17 +7261,17 @@ class StreamingJobsImpl {
|
|
|
7261
7261
|
* @param options The options parameters.
|
|
7262
7262
|
*/
|
|
7263
7263
|
beginScale(resourceGroupName, jobName, options) {
|
|
7264
|
-
return tslib.__awaiter(this,
|
|
7265
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7264
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7265
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7266
7266
|
return this.client.sendOperationRequest(args, spec);
|
|
7267
7267
|
});
|
|
7268
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7268
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7269
7269
|
var _a;
|
|
7270
7270
|
let currentRawResponse = undefined;
|
|
7271
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7271
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7272
7272
|
const callback = (rawResponse, flatResponse) => {
|
|
7273
7273
|
currentRawResponse = rawResponse;
|
|
7274
|
-
providedCallback === null || providedCallback ===
|
|
7274
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7275
7275
|
};
|
|
7276
7276
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7277
7277
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7290,8 +7290,8 @@ class StreamingJobsImpl {
|
|
|
7290
7290
|
spec: scaleOperationSpec,
|
|
7291
7291
|
});
|
|
7292
7292
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7293
|
-
restoreFrom: options === null || options ===
|
|
7294
|
-
intervalInMs: options === null || options ===
|
|
7293
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7294
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7295
7295
|
});
|
|
7296
7296
|
yield poller.poll();
|
|
7297
7297
|
return poller;
|
|
@@ -7304,7 +7304,7 @@ class StreamingJobsImpl {
|
|
|
7304
7304
|
* @param options The options parameters.
|
|
7305
7305
|
*/
|
|
7306
7306
|
beginScaleAndWait(resourceGroupName, jobName, options) {
|
|
7307
|
-
return tslib.__awaiter(this,
|
|
7307
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7308
7308
|
const poller = yield this.beginScale(resourceGroupName, jobName, options);
|
|
7309
7309
|
return poller.pollUntilDone();
|
|
7310
7310
|
});
|
|
@@ -7621,7 +7621,7 @@ class SkuOperationsImpl {
|
|
|
7621
7621
|
return this;
|
|
7622
7622
|
},
|
|
7623
7623
|
byPage: (settings) => {
|
|
7624
|
-
if (settings === null || settings ===
|
|
7624
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7625
7625
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7626
7626
|
}
|
|
7627
7627
|
return this.listPagingPage(resourceGroupName, jobName, options, settings);
|
|
@@ -7631,7 +7631,7 @@ class SkuOperationsImpl {
|
|
|
7631
7631
|
listPagingPage(resourceGroupName, jobName, options, settings) {
|
|
7632
7632
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7633
7633
|
let result;
|
|
7634
|
-
let continuationToken = settings === null || settings ===
|
|
7634
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7635
7635
|
if (!continuationToken) {
|
|
7636
7636
|
result = yield tslib.__await(this._list(resourceGroupName, jobName, options));
|
|
7637
7637
|
let page = result.value || [];
|
|
@@ -7767,17 +7767,17 @@ class SubscriptionsImpl {
|
|
|
7767
7767
|
* @param options The options parameters.
|
|
7768
7768
|
*/
|
|
7769
7769
|
beginTestQuery(location, testQuery, options) {
|
|
7770
|
-
return tslib.__awaiter(this,
|
|
7771
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7770
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7771
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7772
7772
|
return this.client.sendOperationRequest(args, spec);
|
|
7773
7773
|
});
|
|
7774
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7774
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7775
7775
|
var _a;
|
|
7776
7776
|
let currentRawResponse = undefined;
|
|
7777
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7777
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7778
7778
|
const callback = (rawResponse, flatResponse) => {
|
|
7779
7779
|
currentRawResponse = rawResponse;
|
|
7780
|
-
providedCallback === null || providedCallback ===
|
|
7780
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7781
7781
|
};
|
|
7782
7782
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7783
7783
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7796,8 +7796,8 @@ class SubscriptionsImpl {
|
|
|
7796
7796
|
spec: testQueryOperationSpec,
|
|
7797
7797
|
});
|
|
7798
7798
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7799
|
-
restoreFrom: options === null || options ===
|
|
7800
|
-
intervalInMs: options === null || options ===
|
|
7799
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7800
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7801
7801
|
resourceLocationConfig: "location",
|
|
7802
7802
|
});
|
|
7803
7803
|
yield poller.poll();
|
|
@@ -7813,7 +7813,7 @@ class SubscriptionsImpl {
|
|
|
7813
7813
|
* @param options The options parameters.
|
|
7814
7814
|
*/
|
|
7815
7815
|
beginTestQueryAndWait(location, testQuery, options) {
|
|
7816
|
-
return tslib.__awaiter(this,
|
|
7816
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7817
7817
|
const poller = yield this.beginTestQuery(location, testQuery, options);
|
|
7818
7818
|
return poller.pollUntilDone();
|
|
7819
7819
|
});
|
|
@@ -7837,17 +7837,17 @@ class SubscriptionsImpl {
|
|
|
7837
7837
|
* @param options The options parameters.
|
|
7838
7838
|
*/
|
|
7839
7839
|
beginSampleInput(location, sampleInput, options) {
|
|
7840
|
-
return tslib.__awaiter(this,
|
|
7841
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7840
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7841
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7842
7842
|
return this.client.sendOperationRequest(args, spec);
|
|
7843
7843
|
});
|
|
7844
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7844
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7845
7845
|
var _a;
|
|
7846
7846
|
let currentRawResponse = undefined;
|
|
7847
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7847
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7848
7848
|
const callback = (rawResponse, flatResponse) => {
|
|
7849
7849
|
currentRawResponse = rawResponse;
|
|
7850
|
-
providedCallback === null || providedCallback ===
|
|
7850
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7851
7851
|
};
|
|
7852
7852
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7853
7853
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7866,8 +7866,8 @@ class SubscriptionsImpl {
|
|
|
7866
7866
|
spec: sampleInputOperationSpec,
|
|
7867
7867
|
});
|
|
7868
7868
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7869
|
-
restoreFrom: options === null || options ===
|
|
7870
|
-
intervalInMs: options === null || options ===
|
|
7869
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7870
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7871
7871
|
resourceLocationConfig: "location",
|
|
7872
7872
|
});
|
|
7873
7873
|
yield poller.poll();
|
|
@@ -7882,7 +7882,7 @@ class SubscriptionsImpl {
|
|
|
7882
7882
|
* @param options The options parameters.
|
|
7883
7883
|
*/
|
|
7884
7884
|
beginSampleInputAndWait(location, sampleInput, options) {
|
|
7885
|
-
return tslib.__awaiter(this,
|
|
7885
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7886
7886
|
const poller = yield this.beginSampleInput(location, sampleInput, options);
|
|
7887
7887
|
return poller.pollUntilDone();
|
|
7888
7888
|
});
|
|
@@ -7895,17 +7895,17 @@ class SubscriptionsImpl {
|
|
|
7895
7895
|
* @param options The options parameters.
|
|
7896
7896
|
*/
|
|
7897
7897
|
beginTestInput(location, testInput, options) {
|
|
7898
|
-
return tslib.__awaiter(this,
|
|
7899
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7898
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7899
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7900
7900
|
return this.client.sendOperationRequest(args, spec);
|
|
7901
7901
|
});
|
|
7902
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7902
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7903
7903
|
var _a;
|
|
7904
7904
|
let currentRawResponse = undefined;
|
|
7905
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7905
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7906
7906
|
const callback = (rawResponse, flatResponse) => {
|
|
7907
7907
|
currentRawResponse = rawResponse;
|
|
7908
|
-
providedCallback === null || providedCallback ===
|
|
7908
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7909
7909
|
};
|
|
7910
7910
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7911
7911
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7924,8 +7924,8 @@ class SubscriptionsImpl {
|
|
|
7924
7924
|
spec: testInputOperationSpec,
|
|
7925
7925
|
});
|
|
7926
7926
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7927
|
-
restoreFrom: options === null || options ===
|
|
7928
|
-
intervalInMs: options === null || options ===
|
|
7927
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7928
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7929
7929
|
resourceLocationConfig: "location",
|
|
7930
7930
|
});
|
|
7931
7931
|
yield poller.poll();
|
|
@@ -7940,7 +7940,7 @@ class SubscriptionsImpl {
|
|
|
7940
7940
|
* @param options The options parameters.
|
|
7941
7941
|
*/
|
|
7942
7942
|
beginTestInputAndWait(location, testInput, options) {
|
|
7943
|
-
return tslib.__awaiter(this,
|
|
7943
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7944
7944
|
const poller = yield this.beginTestInput(location, testInput, options);
|
|
7945
7945
|
return poller.pollUntilDone();
|
|
7946
7946
|
});
|
|
@@ -7953,17 +7953,17 @@ class SubscriptionsImpl {
|
|
|
7953
7953
|
* @param options The options parameters.
|
|
7954
7954
|
*/
|
|
7955
7955
|
beginTestOutput(location, testOutput, options) {
|
|
7956
|
-
return tslib.__awaiter(this,
|
|
7957
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7956
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7957
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7958
7958
|
return this.client.sendOperationRequest(args, spec);
|
|
7959
7959
|
});
|
|
7960
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7960
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7961
7961
|
var _a;
|
|
7962
7962
|
let currentRawResponse = undefined;
|
|
7963
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7963
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7964
7964
|
const callback = (rawResponse, flatResponse) => {
|
|
7965
7965
|
currentRawResponse = rawResponse;
|
|
7966
|
-
providedCallback === null || providedCallback ===
|
|
7966
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7967
7967
|
};
|
|
7968
7968
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7969
7969
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7982,8 +7982,8 @@ class SubscriptionsImpl {
|
|
|
7982
7982
|
spec: testOutputOperationSpec,
|
|
7983
7983
|
});
|
|
7984
7984
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7985
|
-
restoreFrom: options === null || options ===
|
|
7986
|
-
intervalInMs: options === null || options ===
|
|
7985
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7986
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7987
7987
|
resourceLocationConfig: "location",
|
|
7988
7988
|
});
|
|
7989
7989
|
yield poller.poll();
|
|
@@ -7998,7 +7998,7 @@ class SubscriptionsImpl {
|
|
|
7998
7998
|
* @param options The options parameters.
|
|
7999
7999
|
*/
|
|
8000
8000
|
beginTestOutputAndWait(location, testOutput, options) {
|
|
8001
|
-
return tslib.__awaiter(this,
|
|
8001
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8002
8002
|
const poller = yield this.beginTestOutput(location, testOutput, options);
|
|
8003
8003
|
return poller.pollUntilDone();
|
|
8004
8004
|
});
|
|
@@ -8361,7 +8361,7 @@ class ClustersImpl {
|
|
|
8361
8361
|
return this;
|
|
8362
8362
|
},
|
|
8363
8363
|
byPage: (settings) => {
|
|
8364
|
-
if (settings === null || settings ===
|
|
8364
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8365
8365
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8366
8366
|
}
|
|
8367
8367
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -8371,7 +8371,7 @@ class ClustersImpl {
|
|
|
8371
8371
|
listBySubscriptionPagingPage(options, settings) {
|
|
8372
8372
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
8373
8373
|
let result;
|
|
8374
|
-
let continuationToken = settings === null || settings ===
|
|
8374
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8375
8375
|
if (!continuationToken) {
|
|
8376
8376
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
8377
8377
|
let page = result.value || [];
|
|
@@ -8423,7 +8423,7 @@ class ClustersImpl {
|
|
|
8423
8423
|
return this;
|
|
8424
8424
|
},
|
|
8425
8425
|
byPage: (settings) => {
|
|
8426
|
-
if (settings === null || settings ===
|
|
8426
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8427
8427
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8428
8428
|
}
|
|
8429
8429
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -8433,7 +8433,7 @@ class ClustersImpl {
|
|
|
8433
8433
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
8434
8434
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
8435
8435
|
let result;
|
|
8436
|
-
let continuationToken = settings === null || settings ===
|
|
8436
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8437
8437
|
if (!continuationToken) {
|
|
8438
8438
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
8439
8439
|
let page = result.value || [];
|
|
@@ -8486,7 +8486,7 @@ class ClustersImpl {
|
|
|
8486
8486
|
return this;
|
|
8487
8487
|
},
|
|
8488
8488
|
byPage: (settings) => {
|
|
8489
|
-
if (settings === null || settings ===
|
|
8489
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8490
8490
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8491
8491
|
}
|
|
8492
8492
|
return this.listStreamingJobsPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -8496,7 +8496,7 @@ class ClustersImpl {
|
|
|
8496
8496
|
listStreamingJobsPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
8497
8497
|
return tslib.__asyncGenerator(this, arguments, function* listStreamingJobsPagingPage_1() {
|
|
8498
8498
|
let result;
|
|
8499
|
-
let continuationToken = settings === null || settings ===
|
|
8499
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8500
8500
|
if (!continuationToken) {
|
|
8501
8501
|
result = yield tslib.__await(this._listStreamingJobs(resourceGroupName, clusterName, options));
|
|
8502
8502
|
let page = result.value || [];
|
|
@@ -8542,17 +8542,17 @@ class ClustersImpl {
|
|
|
8542
8542
|
* @param options The options parameters.
|
|
8543
8543
|
*/
|
|
8544
8544
|
beginCreateOrUpdate(resourceGroupName, clusterName, cluster, options) {
|
|
8545
|
-
return tslib.__awaiter(this,
|
|
8546
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8545
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8546
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8547
8547
|
return this.client.sendOperationRequest(args, spec);
|
|
8548
8548
|
});
|
|
8549
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8549
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8550
8550
|
var _a;
|
|
8551
8551
|
let currentRawResponse = undefined;
|
|
8552
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8552
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8553
8553
|
const callback = (rawResponse, flatResponse) => {
|
|
8554
8554
|
currentRawResponse = rawResponse;
|
|
8555
|
-
providedCallback === null || providedCallback ===
|
|
8555
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8556
8556
|
};
|
|
8557
8557
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8558
8558
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8571,8 +8571,8 @@ class ClustersImpl {
|
|
|
8571
8571
|
spec: createOrUpdateOperationSpec$1,
|
|
8572
8572
|
});
|
|
8573
8573
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8574
|
-
restoreFrom: options === null || options ===
|
|
8575
|
-
intervalInMs: options === null || options ===
|
|
8574
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8575
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8576
8576
|
});
|
|
8577
8577
|
yield poller.poll();
|
|
8578
8578
|
return poller;
|
|
@@ -8587,7 +8587,7 @@ class ClustersImpl {
|
|
|
8587
8587
|
* @param options The options parameters.
|
|
8588
8588
|
*/
|
|
8589
8589
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, cluster, options) {
|
|
8590
|
-
return tslib.__awaiter(this,
|
|
8590
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8591
8591
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, cluster, options);
|
|
8592
8592
|
return poller.pollUntilDone();
|
|
8593
8593
|
});
|
|
@@ -8602,17 +8602,17 @@ class ClustersImpl {
|
|
|
8602
8602
|
* @param options The options parameters.
|
|
8603
8603
|
*/
|
|
8604
8604
|
beginUpdate(resourceGroupName, clusterName, cluster, options) {
|
|
8605
|
-
return tslib.__awaiter(this,
|
|
8606
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8605
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8606
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8607
8607
|
return this.client.sendOperationRequest(args, spec);
|
|
8608
8608
|
});
|
|
8609
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8609
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8610
8610
|
var _a;
|
|
8611
8611
|
let currentRawResponse = undefined;
|
|
8612
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8612
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8613
8613
|
const callback = (rawResponse, flatResponse) => {
|
|
8614
8614
|
currentRawResponse = rawResponse;
|
|
8615
|
-
providedCallback === null || providedCallback ===
|
|
8615
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8616
8616
|
};
|
|
8617
8617
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8618
8618
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8631,8 +8631,8 @@ class ClustersImpl {
|
|
|
8631
8631
|
spec: updateOperationSpec,
|
|
8632
8632
|
});
|
|
8633
8633
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8634
|
-
restoreFrom: options === null || options ===
|
|
8635
|
-
intervalInMs: options === null || options ===
|
|
8634
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8635
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8636
8636
|
});
|
|
8637
8637
|
yield poller.poll();
|
|
8638
8638
|
return poller;
|
|
@@ -8648,7 +8648,7 @@ class ClustersImpl {
|
|
|
8648
8648
|
* @param options The options parameters.
|
|
8649
8649
|
*/
|
|
8650
8650
|
beginUpdateAndWait(resourceGroupName, clusterName, cluster, options) {
|
|
8651
|
-
return tslib.__awaiter(this,
|
|
8651
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8652
8652
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, cluster, options);
|
|
8653
8653
|
return poller.pollUntilDone();
|
|
8654
8654
|
});
|
|
@@ -8669,17 +8669,17 @@ class ClustersImpl {
|
|
|
8669
8669
|
* @param options The options parameters.
|
|
8670
8670
|
*/
|
|
8671
8671
|
beginDelete(resourceGroupName, clusterName, options) {
|
|
8672
|
-
return tslib.__awaiter(this,
|
|
8673
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8672
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8673
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8674
8674
|
return this.client.sendOperationRequest(args, spec);
|
|
8675
8675
|
});
|
|
8676
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8676
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8677
8677
|
var _a;
|
|
8678
8678
|
let currentRawResponse = undefined;
|
|
8679
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8679
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8680
8680
|
const callback = (rawResponse, flatResponse) => {
|
|
8681
8681
|
currentRawResponse = rawResponse;
|
|
8682
|
-
providedCallback === null || providedCallback ===
|
|
8682
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8683
8683
|
};
|
|
8684
8684
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8685
8685
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8698,8 +8698,8 @@ class ClustersImpl {
|
|
|
8698
8698
|
spec: deleteOperationSpec$1,
|
|
8699
8699
|
});
|
|
8700
8700
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8701
|
-
restoreFrom: options === null || options ===
|
|
8702
|
-
intervalInMs: options === null || options ===
|
|
8701
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8702
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8703
8703
|
});
|
|
8704
8704
|
yield poller.poll();
|
|
8705
8705
|
return poller;
|
|
@@ -8712,7 +8712,7 @@ class ClustersImpl {
|
|
|
8712
8712
|
* @param options The options parameters.
|
|
8713
8713
|
*/
|
|
8714
8714
|
beginDeleteAndWait(resourceGroupName, clusterName, options) {
|
|
8715
|
-
return tslib.__awaiter(this,
|
|
8715
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8716
8716
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
|
|
8717
8717
|
return poller.pollUntilDone();
|
|
8718
8718
|
});
|
|
@@ -9038,7 +9038,7 @@ class PrivateEndpointsImpl {
|
|
|
9038
9038
|
return this;
|
|
9039
9039
|
},
|
|
9040
9040
|
byPage: (settings) => {
|
|
9041
|
-
if (settings === null || settings ===
|
|
9041
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
9042
9042
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9043
9043
|
}
|
|
9044
9044
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -9048,7 +9048,7 @@ class PrivateEndpointsImpl {
|
|
|
9048
9048
|
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
9049
9049
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
9050
9050
|
let result;
|
|
9051
|
-
let continuationToken = settings === null || settings ===
|
|
9051
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
9052
9052
|
if (!continuationToken) {
|
|
9053
9053
|
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
9054
9054
|
let page = result.value || [];
|
|
@@ -9121,17 +9121,17 @@ class PrivateEndpointsImpl {
|
|
|
9121
9121
|
* @param options The options parameters.
|
|
9122
9122
|
*/
|
|
9123
9123
|
beginDelete(resourceGroupName, clusterName, privateEndpointName, options) {
|
|
9124
|
-
return tslib.__awaiter(this,
|
|
9125
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9124
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9125
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9126
9126
|
return this.client.sendOperationRequest(args, spec);
|
|
9127
9127
|
});
|
|
9128
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9128
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9129
9129
|
var _a;
|
|
9130
9130
|
let currentRawResponse = undefined;
|
|
9131
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9131
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
9132
9132
|
const callback = (rawResponse, flatResponse) => {
|
|
9133
9133
|
currentRawResponse = rawResponse;
|
|
9134
|
-
providedCallback === null || providedCallback ===
|
|
9134
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
9135
9135
|
};
|
|
9136
9136
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9137
9137
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9150,8 +9150,8 @@ class PrivateEndpointsImpl {
|
|
|
9150
9150
|
spec: deleteOperationSpec,
|
|
9151
9151
|
});
|
|
9152
9152
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9153
|
-
restoreFrom: options === null || options ===
|
|
9154
|
-
intervalInMs: options === null || options ===
|
|
9153
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9154
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9155
9155
|
});
|
|
9156
9156
|
yield poller.poll();
|
|
9157
9157
|
return poller;
|
|
@@ -9165,7 +9165,7 @@ class PrivateEndpointsImpl {
|
|
|
9165
9165
|
* @param options The options parameters.
|
|
9166
9166
|
*/
|
|
9167
9167
|
beginDeleteAndWait(resourceGroupName, clusterName, privateEndpointName, options) {
|
|
9168
|
-
return tslib.__awaiter(this,
|
|
9168
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9169
9169
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, privateEndpointName, options);
|
|
9170
9170
|
return poller.pollUntilDone();
|
|
9171
9171
|
});
|
|
@@ -9348,10 +9348,10 @@ class StreamAnalyticsManagementClient extends coreClient__namespace.ServiceClien
|
|
|
9348
9348
|
: `${packageDetails}`;
|
|
9349
9349
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
9350
9350
|
userAgentPrefix,
|
|
9351
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
9351
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
9352
9352
|
super(optionsWithDefaults);
|
|
9353
9353
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
9354
|
-
if ((options === null || options ===
|
|
9354
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
9355
9355
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
9356
9356
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
9357
9357
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -9365,7 +9365,7 @@ class StreamAnalyticsManagementClient extends coreClient__namespace.ServiceClien
|
|
|
9365
9365
|
});
|
|
9366
9366
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
9367
9367
|
credential: credentials,
|
|
9368
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
9368
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
9369
9369
|
challengeCallbacks: {
|
|
9370
9370
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
9371
9371
|
},
|