@azure/arm-paloaltonetworksngfw 1.1.1-alpha.20250207.1 → 1.1.1-alpha.20250211.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 +247 -247
- 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
|
}
|
|
@@ -4078,7 +4078,7 @@ function createLroSpec(inputs) {
|
|
|
4078
4078
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
4079
4079
|
sendPollRequest: (path, options) => {
|
|
4080
4080
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
4081
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
4081
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
4082
4082
|
}
|
|
4083
4083
|
};
|
|
4084
4084
|
}
|
|
@@ -4114,7 +4114,7 @@ class GlobalRulestackImpl {
|
|
|
4114
4114
|
return this;
|
|
4115
4115
|
},
|
|
4116
4116
|
byPage: (settings) => {
|
|
4117
|
-
if (settings === null || settings ===
|
|
4117
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4118
4118
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4119
4119
|
}
|
|
4120
4120
|
return this.listPagingPage(options, settings);
|
|
@@ -4124,7 +4124,7 @@ class GlobalRulestackImpl {
|
|
|
4124
4124
|
listPagingPage(options, settings) {
|
|
4125
4125
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4126
4126
|
let result;
|
|
4127
|
-
let continuationToken = settings === null || settings ===
|
|
4127
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4128
4128
|
if (!continuationToken) {
|
|
4129
4129
|
result = yield tslib.__await(this._list(options));
|
|
4130
4130
|
let page = result.value || [];
|
|
@@ -4183,17 +4183,17 @@ class GlobalRulestackImpl {
|
|
|
4183
4183
|
* @param options The options parameters.
|
|
4184
4184
|
*/
|
|
4185
4185
|
beginCreateOrUpdate(globalRulestackName, resource, options) {
|
|
4186
|
-
return tslib.__awaiter(this,
|
|
4187
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4186
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4187
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4188
4188
|
return this.client.sendOperationRequest(args, spec);
|
|
4189
4189
|
});
|
|
4190
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4190
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4191
4191
|
var _a;
|
|
4192
4192
|
let currentRawResponse = undefined;
|
|
4193
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4193
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4194
4194
|
const callback = (rawResponse, flatResponse) => {
|
|
4195
4195
|
currentRawResponse = rawResponse;
|
|
4196
|
-
providedCallback === null || providedCallback ===
|
|
4196
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4197
4197
|
};
|
|
4198
4198
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4199
4199
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4212,8 +4212,8 @@ class GlobalRulestackImpl {
|
|
|
4212
4212
|
spec: createOrUpdateOperationSpec$b
|
|
4213
4213
|
});
|
|
4214
4214
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4215
|
-
restoreFrom: options === null || options ===
|
|
4216
|
-
intervalInMs: options === null || options ===
|
|
4215
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4216
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4217
4217
|
resourceLocationConfig: "azure-async-operation"
|
|
4218
4218
|
});
|
|
4219
4219
|
yield poller.poll();
|
|
@@ -4227,7 +4227,7 @@ class GlobalRulestackImpl {
|
|
|
4227
4227
|
* @param options The options parameters.
|
|
4228
4228
|
*/
|
|
4229
4229
|
beginCreateOrUpdateAndWait(globalRulestackName, resource, options) {
|
|
4230
|
-
return tslib.__awaiter(this,
|
|
4230
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4231
4231
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, resource, options);
|
|
4232
4232
|
return poller.pollUntilDone();
|
|
4233
4233
|
});
|
|
@@ -4247,17 +4247,17 @@ class GlobalRulestackImpl {
|
|
|
4247
4247
|
* @param options The options parameters.
|
|
4248
4248
|
*/
|
|
4249
4249
|
beginDelete(globalRulestackName, options) {
|
|
4250
|
-
return tslib.__awaiter(this,
|
|
4251
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4250
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4251
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4252
4252
|
return this.client.sendOperationRequest(args, spec);
|
|
4253
4253
|
});
|
|
4254
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4254
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4255
4255
|
var _a;
|
|
4256
4256
|
let currentRawResponse = undefined;
|
|
4257
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4257
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4258
4258
|
const callback = (rawResponse, flatResponse) => {
|
|
4259
4259
|
currentRawResponse = rawResponse;
|
|
4260
|
-
providedCallback === null || providedCallback ===
|
|
4260
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4261
4261
|
};
|
|
4262
4262
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4263
4263
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4276,8 +4276,8 @@ class GlobalRulestackImpl {
|
|
|
4276
4276
|
spec: deleteOperationSpec$b
|
|
4277
4277
|
});
|
|
4278
4278
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4279
|
-
restoreFrom: options === null || options ===
|
|
4280
|
-
intervalInMs: options === null || options ===
|
|
4279
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4280
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4281
4281
|
resourceLocationConfig: "azure-async-operation"
|
|
4282
4282
|
});
|
|
4283
4283
|
yield poller.poll();
|
|
@@ -4290,7 +4290,7 @@ class GlobalRulestackImpl {
|
|
|
4290
4290
|
* @param options The options parameters.
|
|
4291
4291
|
*/
|
|
4292
4292
|
beginDeleteAndWait(globalRulestackName, options) {
|
|
4293
|
-
return tslib.__awaiter(this,
|
|
4293
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4294
4294
|
const poller = yield this.beginDelete(globalRulestackName, options);
|
|
4295
4295
|
return poller.pollUntilDone();
|
|
4296
4296
|
});
|
|
@@ -4301,17 +4301,17 @@ class GlobalRulestackImpl {
|
|
|
4301
4301
|
* @param options The options parameters.
|
|
4302
4302
|
*/
|
|
4303
4303
|
beginCommit(globalRulestackName, options) {
|
|
4304
|
-
return tslib.__awaiter(this,
|
|
4305
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4304
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4305
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4306
4306
|
return this.client.sendOperationRequest(args, spec);
|
|
4307
4307
|
});
|
|
4308
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4308
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4309
4309
|
var _a;
|
|
4310
4310
|
let currentRawResponse = undefined;
|
|
4311
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4311
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4312
4312
|
const callback = (rawResponse, flatResponse) => {
|
|
4313
4313
|
currentRawResponse = rawResponse;
|
|
4314
|
-
providedCallback === null || providedCallback ===
|
|
4314
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4315
4315
|
};
|
|
4316
4316
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4317
4317
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4330,8 +4330,8 @@ class GlobalRulestackImpl {
|
|
|
4330
4330
|
spec: commitOperationSpec$1
|
|
4331
4331
|
});
|
|
4332
4332
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4333
|
-
restoreFrom: options === null || options ===
|
|
4334
|
-
intervalInMs: options === null || options ===
|
|
4333
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4334
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4335
4335
|
resourceLocationConfig: "location"
|
|
4336
4336
|
});
|
|
4337
4337
|
yield poller.poll();
|
|
@@ -4344,7 +4344,7 @@ class GlobalRulestackImpl {
|
|
|
4344
4344
|
* @param options The options parameters.
|
|
4345
4345
|
*/
|
|
4346
4346
|
beginCommitAndWait(globalRulestackName, options) {
|
|
4347
|
-
return tslib.__awaiter(this,
|
|
4347
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4348
4348
|
const poller = yield this.beginCommit(globalRulestackName, options);
|
|
4349
4349
|
return poller.pollUntilDone();
|
|
4350
4350
|
});
|
|
@@ -4727,7 +4727,7 @@ class CertificateObjectGlobalRulestackImpl {
|
|
|
4727
4727
|
return this;
|
|
4728
4728
|
},
|
|
4729
4729
|
byPage: (settings) => {
|
|
4730
|
-
if (settings === null || settings ===
|
|
4730
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4731
4731
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4732
4732
|
}
|
|
4733
4733
|
return this.listPagingPage(globalRulestackName, options, settings);
|
|
@@ -4737,7 +4737,7 @@ class CertificateObjectGlobalRulestackImpl {
|
|
|
4737
4737
|
listPagingPage(globalRulestackName, options, settings) {
|
|
4738
4738
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4739
4739
|
let result;
|
|
4740
|
-
let continuationToken = settings === null || settings ===
|
|
4740
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4741
4741
|
if (!continuationToken) {
|
|
4742
4742
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
|
4743
4743
|
let page = result.value || [];
|
|
@@ -4799,17 +4799,17 @@ class CertificateObjectGlobalRulestackImpl {
|
|
|
4799
4799
|
* @param options The options parameters.
|
|
4800
4800
|
*/
|
|
4801
4801
|
beginCreateOrUpdate(globalRulestackName, name, resource, options) {
|
|
4802
|
-
return tslib.__awaiter(this,
|
|
4803
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4802
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4803
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4804
4804
|
return this.client.sendOperationRequest(args, spec);
|
|
4805
4805
|
});
|
|
4806
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4806
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4807
4807
|
var _a;
|
|
4808
4808
|
let currentRawResponse = undefined;
|
|
4809
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4809
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4810
4810
|
const callback = (rawResponse, flatResponse) => {
|
|
4811
4811
|
currentRawResponse = rawResponse;
|
|
4812
|
-
providedCallback === null || providedCallback ===
|
|
4812
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4813
4813
|
};
|
|
4814
4814
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4815
4815
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4828,8 +4828,8 @@ class CertificateObjectGlobalRulestackImpl {
|
|
|
4828
4828
|
spec: createOrUpdateOperationSpec$a
|
|
4829
4829
|
});
|
|
4830
4830
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4831
|
-
restoreFrom: options === null || options ===
|
|
4832
|
-
intervalInMs: options === null || options ===
|
|
4831
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4832
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4833
4833
|
resourceLocationConfig: "azure-async-operation"
|
|
4834
4834
|
});
|
|
4835
4835
|
yield poller.poll();
|
|
@@ -4844,7 +4844,7 @@ class CertificateObjectGlobalRulestackImpl {
|
|
|
4844
4844
|
* @param options The options parameters.
|
|
4845
4845
|
*/
|
|
4846
4846
|
beginCreateOrUpdateAndWait(globalRulestackName, name, resource, options) {
|
|
4847
|
-
return tslib.__awaiter(this,
|
|
4847
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4848
4848
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, name, resource, options);
|
|
4849
4849
|
return poller.pollUntilDone();
|
|
4850
4850
|
});
|
|
@@ -4856,17 +4856,17 @@ class CertificateObjectGlobalRulestackImpl {
|
|
|
4856
4856
|
* @param options The options parameters.
|
|
4857
4857
|
*/
|
|
4858
4858
|
beginDelete(globalRulestackName, name, options) {
|
|
4859
|
-
return tslib.__awaiter(this,
|
|
4860
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4859
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4860
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4861
4861
|
return this.client.sendOperationRequest(args, spec);
|
|
4862
4862
|
});
|
|
4863
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4863
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4864
4864
|
var _a;
|
|
4865
4865
|
let currentRawResponse = undefined;
|
|
4866
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4866
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4867
4867
|
const callback = (rawResponse, flatResponse) => {
|
|
4868
4868
|
currentRawResponse = rawResponse;
|
|
4869
|
-
providedCallback === null || providedCallback ===
|
|
4869
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4870
4870
|
};
|
|
4871
4871
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4872
4872
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4885,8 +4885,8 @@ class CertificateObjectGlobalRulestackImpl {
|
|
|
4885
4885
|
spec: deleteOperationSpec$a
|
|
4886
4886
|
});
|
|
4887
4887
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4888
|
-
restoreFrom: options === null || options ===
|
|
4889
|
-
intervalInMs: options === null || options ===
|
|
4888
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4889
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4890
4890
|
resourceLocationConfig: "azure-async-operation"
|
|
4891
4891
|
});
|
|
4892
4892
|
yield poller.poll();
|
|
@@ -4900,7 +4900,7 @@ class CertificateObjectGlobalRulestackImpl {
|
|
|
4900
4900
|
* @param options The options parameters.
|
|
4901
4901
|
*/
|
|
4902
4902
|
beginDeleteAndWait(globalRulestackName, name, options) {
|
|
4903
|
-
return tslib.__awaiter(this,
|
|
4903
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4904
4904
|
const poller = yield this.beginDelete(globalRulestackName, name, options);
|
|
4905
4905
|
return poller.pollUntilDone();
|
|
4906
4906
|
});
|
|
@@ -5057,7 +5057,7 @@ class FqdnListGlobalRulestackImpl {
|
|
|
5057
5057
|
return this;
|
|
5058
5058
|
},
|
|
5059
5059
|
byPage: (settings) => {
|
|
5060
|
-
if (settings === null || settings ===
|
|
5060
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5061
5061
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5062
5062
|
}
|
|
5063
5063
|
return this.listPagingPage(globalRulestackName, options, settings);
|
|
@@ -5067,7 +5067,7 @@ class FqdnListGlobalRulestackImpl {
|
|
|
5067
5067
|
listPagingPage(globalRulestackName, options, settings) {
|
|
5068
5068
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5069
5069
|
let result;
|
|
5070
|
-
let continuationToken = settings === null || settings ===
|
|
5070
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5071
5071
|
if (!continuationToken) {
|
|
5072
5072
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
|
5073
5073
|
let page = result.value || [];
|
|
@@ -5129,17 +5129,17 @@ class FqdnListGlobalRulestackImpl {
|
|
|
5129
5129
|
* @param options The options parameters.
|
|
5130
5130
|
*/
|
|
5131
5131
|
beginCreateOrUpdate(globalRulestackName, name, resource, options) {
|
|
5132
|
-
return tslib.__awaiter(this,
|
|
5133
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5132
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5133
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5134
5134
|
return this.client.sendOperationRequest(args, spec);
|
|
5135
5135
|
});
|
|
5136
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5136
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5137
5137
|
var _a;
|
|
5138
5138
|
let currentRawResponse = undefined;
|
|
5139
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5139
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5140
5140
|
const callback = (rawResponse, flatResponse) => {
|
|
5141
5141
|
currentRawResponse = rawResponse;
|
|
5142
|
-
providedCallback === null || providedCallback ===
|
|
5142
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5143
5143
|
};
|
|
5144
5144
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5145
5145
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5158,8 +5158,8 @@ class FqdnListGlobalRulestackImpl {
|
|
|
5158
5158
|
spec: createOrUpdateOperationSpec$9
|
|
5159
5159
|
});
|
|
5160
5160
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5161
|
-
restoreFrom: options === null || options ===
|
|
5162
|
-
intervalInMs: options === null || options ===
|
|
5161
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5162
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5163
5163
|
resourceLocationConfig: "azure-async-operation"
|
|
5164
5164
|
});
|
|
5165
5165
|
yield poller.poll();
|
|
@@ -5174,7 +5174,7 @@ class FqdnListGlobalRulestackImpl {
|
|
|
5174
5174
|
* @param options The options parameters.
|
|
5175
5175
|
*/
|
|
5176
5176
|
beginCreateOrUpdateAndWait(globalRulestackName, name, resource, options) {
|
|
5177
|
-
return tslib.__awaiter(this,
|
|
5177
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5178
5178
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, name, resource, options);
|
|
5179
5179
|
return poller.pollUntilDone();
|
|
5180
5180
|
});
|
|
@@ -5186,17 +5186,17 @@ class FqdnListGlobalRulestackImpl {
|
|
|
5186
5186
|
* @param options The options parameters.
|
|
5187
5187
|
*/
|
|
5188
5188
|
beginDelete(globalRulestackName, name, options) {
|
|
5189
|
-
return tslib.__awaiter(this,
|
|
5190
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5189
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5190
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5191
5191
|
return this.client.sendOperationRequest(args, spec);
|
|
5192
5192
|
});
|
|
5193
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5193
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5194
5194
|
var _a;
|
|
5195
5195
|
let currentRawResponse = undefined;
|
|
5196
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5196
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5197
5197
|
const callback = (rawResponse, flatResponse) => {
|
|
5198
5198
|
currentRawResponse = rawResponse;
|
|
5199
|
-
providedCallback === null || providedCallback ===
|
|
5199
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5200
5200
|
};
|
|
5201
5201
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5202
5202
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5215,8 +5215,8 @@ class FqdnListGlobalRulestackImpl {
|
|
|
5215
5215
|
spec: deleteOperationSpec$9
|
|
5216
5216
|
});
|
|
5217
5217
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5218
|
-
restoreFrom: options === null || options ===
|
|
5219
|
-
intervalInMs: options === null || options ===
|
|
5218
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5219
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5220
5220
|
resourceLocationConfig: "azure-async-operation"
|
|
5221
5221
|
});
|
|
5222
5222
|
yield poller.poll();
|
|
@@ -5230,7 +5230,7 @@ class FqdnListGlobalRulestackImpl {
|
|
|
5230
5230
|
* @param options The options parameters.
|
|
5231
5231
|
*/
|
|
5232
5232
|
beginDeleteAndWait(globalRulestackName, name, options) {
|
|
5233
|
-
return tslib.__awaiter(this,
|
|
5233
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5234
5234
|
const poller = yield this.beginDelete(globalRulestackName, name, options);
|
|
5235
5235
|
return poller.pollUntilDone();
|
|
5236
5236
|
});
|
|
@@ -5387,7 +5387,7 @@ class PostRulesImpl {
|
|
|
5387
5387
|
return this;
|
|
5388
5388
|
},
|
|
5389
5389
|
byPage: (settings) => {
|
|
5390
|
-
if (settings === null || settings ===
|
|
5390
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5391
5391
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5392
5392
|
}
|
|
5393
5393
|
return this.listPagingPage(globalRulestackName, options, settings);
|
|
@@ -5397,7 +5397,7 @@ class PostRulesImpl {
|
|
|
5397
5397
|
listPagingPage(globalRulestackName, options, settings) {
|
|
5398
5398
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5399
5399
|
let result;
|
|
5400
|
-
let continuationToken = settings === null || settings ===
|
|
5400
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5401
5401
|
if (!continuationToken) {
|
|
5402
5402
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
|
5403
5403
|
let page = result.value || [];
|
|
@@ -5459,17 +5459,17 @@ class PostRulesImpl {
|
|
|
5459
5459
|
* @param options The options parameters.
|
|
5460
5460
|
*/
|
|
5461
5461
|
beginCreateOrUpdate(globalRulestackName, priority, resource, options) {
|
|
5462
|
-
return tslib.__awaiter(this,
|
|
5463
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5462
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5463
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5464
5464
|
return this.client.sendOperationRequest(args, spec);
|
|
5465
5465
|
});
|
|
5466
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5466
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5467
5467
|
var _a;
|
|
5468
5468
|
let currentRawResponse = undefined;
|
|
5469
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5469
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5470
5470
|
const callback = (rawResponse, flatResponse) => {
|
|
5471
5471
|
currentRawResponse = rawResponse;
|
|
5472
|
-
providedCallback === null || providedCallback ===
|
|
5472
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5473
5473
|
};
|
|
5474
5474
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5475
5475
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5488,8 +5488,8 @@ class PostRulesImpl {
|
|
|
5488
5488
|
spec: createOrUpdateOperationSpec$8
|
|
5489
5489
|
});
|
|
5490
5490
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5491
|
-
restoreFrom: options === null || options ===
|
|
5492
|
-
intervalInMs: options === null || options ===
|
|
5491
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5492
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5493
5493
|
resourceLocationConfig: "azure-async-operation"
|
|
5494
5494
|
});
|
|
5495
5495
|
yield poller.poll();
|
|
@@ -5504,7 +5504,7 @@ class PostRulesImpl {
|
|
|
5504
5504
|
* @param options The options parameters.
|
|
5505
5505
|
*/
|
|
5506
5506
|
beginCreateOrUpdateAndWait(globalRulestackName, priority, resource, options) {
|
|
5507
|
-
return tslib.__awaiter(this,
|
|
5507
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5508
5508
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, priority, resource, options);
|
|
5509
5509
|
return poller.pollUntilDone();
|
|
5510
5510
|
});
|
|
@@ -5516,17 +5516,17 @@ class PostRulesImpl {
|
|
|
5516
5516
|
* @param options The options parameters.
|
|
5517
5517
|
*/
|
|
5518
5518
|
beginDelete(globalRulestackName, priority, options) {
|
|
5519
|
-
return tslib.__awaiter(this,
|
|
5520
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5519
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5520
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5521
5521
|
return this.client.sendOperationRequest(args, spec);
|
|
5522
5522
|
});
|
|
5523
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5523
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5524
5524
|
var _a;
|
|
5525
5525
|
let currentRawResponse = undefined;
|
|
5526
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5526
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5527
5527
|
const callback = (rawResponse, flatResponse) => {
|
|
5528
5528
|
currentRawResponse = rawResponse;
|
|
5529
|
-
providedCallback === null || providedCallback ===
|
|
5529
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5530
5530
|
};
|
|
5531
5531
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5532
5532
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5545,8 +5545,8 @@ class PostRulesImpl {
|
|
|
5545
5545
|
spec: deleteOperationSpec$8
|
|
5546
5546
|
});
|
|
5547
5547
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5548
|
-
restoreFrom: options === null || options ===
|
|
5549
|
-
intervalInMs: options === null || options ===
|
|
5548
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5549
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5550
5550
|
resourceLocationConfig: "azure-async-operation"
|
|
5551
5551
|
});
|
|
5552
5552
|
yield poller.poll();
|
|
@@ -5560,7 +5560,7 @@ class PostRulesImpl {
|
|
|
5560
5560
|
* @param options The options parameters.
|
|
5561
5561
|
*/
|
|
5562
5562
|
beginDeleteAndWait(globalRulestackName, priority, options) {
|
|
5563
|
-
return tslib.__awaiter(this,
|
|
5563
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5564
5564
|
const poller = yield this.beginDelete(globalRulestackName, priority, options);
|
|
5565
5565
|
return poller.pollUntilDone();
|
|
5566
5566
|
});
|
|
@@ -5802,7 +5802,7 @@ class PrefixListGlobalRulestackImpl {
|
|
|
5802
5802
|
return this;
|
|
5803
5803
|
},
|
|
5804
5804
|
byPage: (settings) => {
|
|
5805
|
-
if (settings === null || settings ===
|
|
5805
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5806
5806
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5807
5807
|
}
|
|
5808
5808
|
return this.listPagingPage(globalRulestackName, options, settings);
|
|
@@ -5812,7 +5812,7 @@ class PrefixListGlobalRulestackImpl {
|
|
|
5812
5812
|
listPagingPage(globalRulestackName, options, settings) {
|
|
5813
5813
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5814
5814
|
let result;
|
|
5815
|
-
let continuationToken = settings === null || settings ===
|
|
5815
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5816
5816
|
if (!continuationToken) {
|
|
5817
5817
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
|
5818
5818
|
let page = result.value || [];
|
|
@@ -5874,17 +5874,17 @@ class PrefixListGlobalRulestackImpl {
|
|
|
5874
5874
|
* @param options The options parameters.
|
|
5875
5875
|
*/
|
|
5876
5876
|
beginCreateOrUpdate(globalRulestackName, name, resource, options) {
|
|
5877
|
-
return tslib.__awaiter(this,
|
|
5878
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5877
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5878
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5879
5879
|
return this.client.sendOperationRequest(args, spec);
|
|
5880
5880
|
});
|
|
5881
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5881
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5882
5882
|
var _a;
|
|
5883
5883
|
let currentRawResponse = undefined;
|
|
5884
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5884
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5885
5885
|
const callback = (rawResponse, flatResponse) => {
|
|
5886
5886
|
currentRawResponse = rawResponse;
|
|
5887
|
-
providedCallback === null || providedCallback ===
|
|
5887
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5888
5888
|
};
|
|
5889
5889
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5890
5890
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5903,8 +5903,8 @@ class PrefixListGlobalRulestackImpl {
|
|
|
5903
5903
|
spec: createOrUpdateOperationSpec$7
|
|
5904
5904
|
});
|
|
5905
5905
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5906
|
-
restoreFrom: options === null || options ===
|
|
5907
|
-
intervalInMs: options === null || options ===
|
|
5906
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5907
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5908
5908
|
resourceLocationConfig: "azure-async-operation"
|
|
5909
5909
|
});
|
|
5910
5910
|
yield poller.poll();
|
|
@@ -5919,7 +5919,7 @@ class PrefixListGlobalRulestackImpl {
|
|
|
5919
5919
|
* @param options The options parameters.
|
|
5920
5920
|
*/
|
|
5921
5921
|
beginCreateOrUpdateAndWait(globalRulestackName, name, resource, options) {
|
|
5922
|
-
return tslib.__awaiter(this,
|
|
5922
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5923
5923
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, name, resource, options);
|
|
5924
5924
|
return poller.pollUntilDone();
|
|
5925
5925
|
});
|
|
@@ -5931,17 +5931,17 @@ class PrefixListGlobalRulestackImpl {
|
|
|
5931
5931
|
* @param options The options parameters.
|
|
5932
5932
|
*/
|
|
5933
5933
|
beginDelete(globalRulestackName, name, options) {
|
|
5934
|
-
return tslib.__awaiter(this,
|
|
5935
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5934
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5935
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5936
5936
|
return this.client.sendOperationRequest(args, spec);
|
|
5937
5937
|
});
|
|
5938
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5938
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5939
5939
|
var _a;
|
|
5940
5940
|
let currentRawResponse = undefined;
|
|
5941
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5941
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5942
5942
|
const callback = (rawResponse, flatResponse) => {
|
|
5943
5943
|
currentRawResponse = rawResponse;
|
|
5944
|
-
providedCallback === null || providedCallback ===
|
|
5944
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5945
5945
|
};
|
|
5946
5946
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5947
5947
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5960,8 +5960,8 @@ class PrefixListGlobalRulestackImpl {
|
|
|
5960
5960
|
spec: deleteOperationSpec$7
|
|
5961
5961
|
});
|
|
5962
5962
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5963
|
-
restoreFrom: options === null || options ===
|
|
5964
|
-
intervalInMs: options === null || options ===
|
|
5963
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5964
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5965
5965
|
resourceLocationConfig: "azure-async-operation"
|
|
5966
5966
|
});
|
|
5967
5967
|
yield poller.poll();
|
|
@@ -5975,7 +5975,7 @@ class PrefixListGlobalRulestackImpl {
|
|
|
5975
5975
|
* @param options The options parameters.
|
|
5976
5976
|
*/
|
|
5977
5977
|
beginDeleteAndWait(globalRulestackName, name, options) {
|
|
5978
|
-
return tslib.__awaiter(this,
|
|
5978
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5979
5979
|
const poller = yield this.beginDelete(globalRulestackName, name, options);
|
|
5980
5980
|
return poller.pollUntilDone();
|
|
5981
5981
|
});
|
|
@@ -6132,7 +6132,7 @@ class PreRulesImpl {
|
|
|
6132
6132
|
return this;
|
|
6133
6133
|
},
|
|
6134
6134
|
byPage: (settings) => {
|
|
6135
|
-
if (settings === null || settings ===
|
|
6135
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6136
6136
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6137
6137
|
}
|
|
6138
6138
|
return this.listPagingPage(globalRulestackName, options, settings);
|
|
@@ -6142,7 +6142,7 @@ class PreRulesImpl {
|
|
|
6142
6142
|
listPagingPage(globalRulestackName, options, settings) {
|
|
6143
6143
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6144
6144
|
let result;
|
|
6145
|
-
let continuationToken = settings === null || settings ===
|
|
6145
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6146
6146
|
if (!continuationToken) {
|
|
6147
6147
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
|
6148
6148
|
let page = result.value || [];
|
|
@@ -6204,17 +6204,17 @@ class PreRulesImpl {
|
|
|
6204
6204
|
* @param options The options parameters.
|
|
6205
6205
|
*/
|
|
6206
6206
|
beginCreateOrUpdate(globalRulestackName, priority, resource, options) {
|
|
6207
|
-
return tslib.__awaiter(this,
|
|
6208
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6207
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6208
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6209
6209
|
return this.client.sendOperationRequest(args, spec);
|
|
6210
6210
|
});
|
|
6211
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6211
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6212
6212
|
var _a;
|
|
6213
6213
|
let currentRawResponse = undefined;
|
|
6214
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6214
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6215
6215
|
const callback = (rawResponse, flatResponse) => {
|
|
6216
6216
|
currentRawResponse = rawResponse;
|
|
6217
|
-
providedCallback === null || providedCallback ===
|
|
6217
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6218
6218
|
};
|
|
6219
6219
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6220
6220
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6233,8 +6233,8 @@ class PreRulesImpl {
|
|
|
6233
6233
|
spec: createOrUpdateOperationSpec$6
|
|
6234
6234
|
});
|
|
6235
6235
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6236
|
-
restoreFrom: options === null || options ===
|
|
6237
|
-
intervalInMs: options === null || options ===
|
|
6236
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6237
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6238
6238
|
resourceLocationConfig: "azure-async-operation"
|
|
6239
6239
|
});
|
|
6240
6240
|
yield poller.poll();
|
|
@@ -6249,7 +6249,7 @@ class PreRulesImpl {
|
|
|
6249
6249
|
* @param options The options parameters.
|
|
6250
6250
|
*/
|
|
6251
6251
|
beginCreateOrUpdateAndWait(globalRulestackName, priority, resource, options) {
|
|
6252
|
-
return tslib.__awaiter(this,
|
|
6252
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6253
6253
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, priority, resource, options);
|
|
6254
6254
|
return poller.pollUntilDone();
|
|
6255
6255
|
});
|
|
@@ -6261,17 +6261,17 @@ class PreRulesImpl {
|
|
|
6261
6261
|
* @param options The options parameters.
|
|
6262
6262
|
*/
|
|
6263
6263
|
beginDelete(globalRulestackName, priority, options) {
|
|
6264
|
-
return tslib.__awaiter(this,
|
|
6265
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6264
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6265
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6266
6266
|
return this.client.sendOperationRequest(args, spec);
|
|
6267
6267
|
});
|
|
6268
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6268
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6269
6269
|
var _a;
|
|
6270
6270
|
let currentRawResponse = undefined;
|
|
6271
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6271
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6272
6272
|
const callback = (rawResponse, flatResponse) => {
|
|
6273
6273
|
currentRawResponse = rawResponse;
|
|
6274
|
-
providedCallback === null || providedCallback ===
|
|
6274
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6275
6275
|
};
|
|
6276
6276
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6277
6277
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6290,8 +6290,8 @@ class PreRulesImpl {
|
|
|
6290
6290
|
spec: deleteOperationSpec$6
|
|
6291
6291
|
});
|
|
6292
6292
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6293
|
-
restoreFrom: options === null || options ===
|
|
6294
|
-
intervalInMs: options === null || options ===
|
|
6293
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6294
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6295
6295
|
resourceLocationConfig: "azure-async-operation"
|
|
6296
6296
|
});
|
|
6297
6297
|
yield poller.poll();
|
|
@@ -6305,7 +6305,7 @@ class PreRulesImpl {
|
|
|
6305
6305
|
* @param options The options parameters.
|
|
6306
6306
|
*/
|
|
6307
6307
|
beginDeleteAndWait(globalRulestackName, priority, options) {
|
|
6308
|
-
return tslib.__awaiter(this,
|
|
6308
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6309
6309
|
const poller = yield this.beginDelete(globalRulestackName, priority, options);
|
|
6310
6310
|
return poller.pollUntilDone();
|
|
6311
6311
|
});
|
|
@@ -6546,7 +6546,7 @@ class OperationsImpl {
|
|
|
6546
6546
|
return this;
|
|
6547
6547
|
},
|
|
6548
6548
|
byPage: (settings) => {
|
|
6549
|
-
if (settings === null || settings ===
|
|
6549
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6550
6550
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6551
6551
|
}
|
|
6552
6552
|
return this.listPagingPage(options, settings);
|
|
@@ -6556,7 +6556,7 @@ class OperationsImpl {
|
|
|
6556
6556
|
listPagingPage(options, settings) {
|
|
6557
6557
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6558
6558
|
let result;
|
|
6559
|
-
let continuationToken = settings === null || settings ===
|
|
6559
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6560
6560
|
if (!continuationToken) {
|
|
6561
6561
|
result = yield tslib.__await(this._list(options));
|
|
6562
6562
|
let page = result.value || [];
|
|
@@ -6674,7 +6674,7 @@ class FirewallsImpl {
|
|
|
6674
6674
|
return this;
|
|
6675
6675
|
},
|
|
6676
6676
|
byPage: (settings) => {
|
|
6677
|
-
if (settings === null || settings ===
|
|
6677
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6678
6678
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6679
6679
|
}
|
|
6680
6680
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -6684,7 +6684,7 @@ class FirewallsImpl {
|
|
|
6684
6684
|
listBySubscriptionPagingPage(options, settings) {
|
|
6685
6685
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
6686
6686
|
let result;
|
|
6687
|
-
let continuationToken = settings === null || settings ===
|
|
6687
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6688
6688
|
if (!continuationToken) {
|
|
6689
6689
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
6690
6690
|
let page = result.value || [];
|
|
@@ -6736,7 +6736,7 @@ class FirewallsImpl {
|
|
|
6736
6736
|
return this;
|
|
6737
6737
|
},
|
|
6738
6738
|
byPage: (settings) => {
|
|
6739
|
-
if (settings === null || settings ===
|
|
6739
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6740
6740
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6741
6741
|
}
|
|
6742
6742
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6746,7 +6746,7 @@ class FirewallsImpl {
|
|
|
6746
6746
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6747
6747
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6748
6748
|
let result;
|
|
6749
|
-
let continuationToken = settings === null || settings ===
|
|
6749
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6750
6750
|
if (!continuationToken) {
|
|
6751
6751
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6752
6752
|
let page = result.value || [];
|
|
@@ -6815,17 +6815,17 @@ class FirewallsImpl {
|
|
|
6815
6815
|
* @param options The options parameters.
|
|
6816
6816
|
*/
|
|
6817
6817
|
beginCreateOrUpdate(resourceGroupName, firewallName, resource, options) {
|
|
6818
|
-
return tslib.__awaiter(this,
|
|
6819
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6818
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6819
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6820
6820
|
return this.client.sendOperationRequest(args, spec);
|
|
6821
6821
|
});
|
|
6822
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6822
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6823
6823
|
var _a;
|
|
6824
6824
|
let currentRawResponse = undefined;
|
|
6825
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6825
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6826
6826
|
const callback = (rawResponse, flatResponse) => {
|
|
6827
6827
|
currentRawResponse = rawResponse;
|
|
6828
|
-
providedCallback === null || providedCallback ===
|
|
6828
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6829
6829
|
};
|
|
6830
6830
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6831
6831
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6844,8 +6844,8 @@ class FirewallsImpl {
|
|
|
6844
6844
|
spec: createOrUpdateOperationSpec$5
|
|
6845
6845
|
});
|
|
6846
6846
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6847
|
-
restoreFrom: options === null || options ===
|
|
6848
|
-
intervalInMs: options === null || options ===
|
|
6847
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6848
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6849
6849
|
resourceLocationConfig: "azure-async-operation"
|
|
6850
6850
|
});
|
|
6851
6851
|
yield poller.poll();
|
|
@@ -6860,7 +6860,7 @@ class FirewallsImpl {
|
|
|
6860
6860
|
* @param options The options parameters.
|
|
6861
6861
|
*/
|
|
6862
6862
|
beginCreateOrUpdateAndWait(resourceGroupName, firewallName, resource, options) {
|
|
6863
|
-
return tslib.__awaiter(this,
|
|
6863
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6864
6864
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, firewallName, resource, options);
|
|
6865
6865
|
return poller.pollUntilDone();
|
|
6866
6866
|
});
|
|
@@ -6882,17 +6882,17 @@ class FirewallsImpl {
|
|
|
6882
6882
|
* @param options The options parameters.
|
|
6883
6883
|
*/
|
|
6884
6884
|
beginDelete(resourceGroupName, firewallName, options) {
|
|
6885
|
-
return tslib.__awaiter(this,
|
|
6886
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6885
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6886
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6887
6887
|
return this.client.sendOperationRequest(args, spec);
|
|
6888
6888
|
});
|
|
6889
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6889
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6890
6890
|
var _a;
|
|
6891
6891
|
let currentRawResponse = undefined;
|
|
6892
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6892
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6893
6893
|
const callback = (rawResponse, flatResponse) => {
|
|
6894
6894
|
currentRawResponse = rawResponse;
|
|
6895
|
-
providedCallback === null || providedCallback ===
|
|
6895
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6896
6896
|
};
|
|
6897
6897
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6898
6898
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6911,8 +6911,8 @@ class FirewallsImpl {
|
|
|
6911
6911
|
spec: deleteOperationSpec$5
|
|
6912
6912
|
});
|
|
6913
6913
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6914
|
-
restoreFrom: options === null || options ===
|
|
6915
|
-
intervalInMs: options === null || options ===
|
|
6914
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6915
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6916
6916
|
resourceLocationConfig: "azure-async-operation"
|
|
6917
6917
|
});
|
|
6918
6918
|
yield poller.poll();
|
|
@@ -6926,7 +6926,7 @@ class FirewallsImpl {
|
|
|
6926
6926
|
* @param options The options parameters.
|
|
6927
6927
|
*/
|
|
6928
6928
|
beginDeleteAndWait(resourceGroupName, firewallName, options) {
|
|
6929
|
-
return tslib.__awaiter(this,
|
|
6929
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6930
6930
|
const poller = yield this.beginDelete(resourceGroupName, firewallName, options);
|
|
6931
6931
|
return poller.pollUntilDone();
|
|
6932
6932
|
});
|
|
@@ -7276,7 +7276,7 @@ class LocalRulestacksImpl {
|
|
|
7276
7276
|
return this;
|
|
7277
7277
|
},
|
|
7278
7278
|
byPage: (settings) => {
|
|
7279
|
-
if (settings === null || settings ===
|
|
7279
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7280
7280
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7281
7281
|
}
|
|
7282
7282
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -7286,7 +7286,7 @@ class LocalRulestacksImpl {
|
|
|
7286
7286
|
listBySubscriptionPagingPage(options, settings) {
|
|
7287
7287
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
7288
7288
|
let result;
|
|
7289
|
-
let continuationToken = settings === null || settings ===
|
|
7289
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7290
7290
|
if (!continuationToken) {
|
|
7291
7291
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
7292
7292
|
let page = result.value || [];
|
|
@@ -7338,7 +7338,7 @@ class LocalRulestacksImpl {
|
|
|
7338
7338
|
return this;
|
|
7339
7339
|
},
|
|
7340
7340
|
byPage: (settings) => {
|
|
7341
|
-
if (settings === null || settings ===
|
|
7341
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7342
7342
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7343
7343
|
}
|
|
7344
7344
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -7348,7 +7348,7 @@ class LocalRulestacksImpl {
|
|
|
7348
7348
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
7349
7349
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
7350
7350
|
let result;
|
|
7351
|
-
let continuationToken = settings === null || settings ===
|
|
7351
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7352
7352
|
if (!continuationToken) {
|
|
7353
7353
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
7354
7354
|
let page = result.value || [];
|
|
@@ -7417,17 +7417,17 @@ class LocalRulestacksImpl {
|
|
|
7417
7417
|
* @param options The options parameters.
|
|
7418
7418
|
*/
|
|
7419
7419
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, resource, options) {
|
|
7420
|
-
return tslib.__awaiter(this,
|
|
7421
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7420
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7421
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7422
7422
|
return this.client.sendOperationRequest(args, spec);
|
|
7423
7423
|
});
|
|
7424
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7424
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7425
7425
|
var _a;
|
|
7426
7426
|
let currentRawResponse = undefined;
|
|
7427
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7427
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7428
7428
|
const callback = (rawResponse, flatResponse) => {
|
|
7429
7429
|
currentRawResponse = rawResponse;
|
|
7430
|
-
providedCallback === null || providedCallback ===
|
|
7430
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7431
7431
|
};
|
|
7432
7432
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7433
7433
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7446,8 +7446,8 @@ class LocalRulestacksImpl {
|
|
|
7446
7446
|
spec: createOrUpdateOperationSpec$4
|
|
7447
7447
|
});
|
|
7448
7448
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7449
|
-
restoreFrom: options === null || options ===
|
|
7450
|
-
intervalInMs: options === null || options ===
|
|
7449
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7450
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7451
7451
|
resourceLocationConfig: "azure-async-operation"
|
|
7452
7452
|
});
|
|
7453
7453
|
yield poller.poll();
|
|
@@ -7462,7 +7462,7 @@ class LocalRulestacksImpl {
|
|
|
7462
7462
|
* @param options The options parameters.
|
|
7463
7463
|
*/
|
|
7464
7464
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, resource, options) {
|
|
7465
|
-
return tslib.__awaiter(this,
|
|
7465
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7466
7466
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, resource, options);
|
|
7467
7467
|
return poller.pollUntilDone();
|
|
7468
7468
|
});
|
|
@@ -7484,17 +7484,17 @@ class LocalRulestacksImpl {
|
|
|
7484
7484
|
* @param options The options parameters.
|
|
7485
7485
|
*/
|
|
7486
7486
|
beginDelete(resourceGroupName, localRulestackName, options) {
|
|
7487
|
-
return tslib.__awaiter(this,
|
|
7488
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7487
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7488
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7489
7489
|
return this.client.sendOperationRequest(args, spec);
|
|
7490
7490
|
});
|
|
7491
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7491
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7492
7492
|
var _a;
|
|
7493
7493
|
let currentRawResponse = undefined;
|
|
7494
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7494
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7495
7495
|
const callback = (rawResponse, flatResponse) => {
|
|
7496
7496
|
currentRawResponse = rawResponse;
|
|
7497
|
-
providedCallback === null || providedCallback ===
|
|
7497
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7498
7498
|
};
|
|
7499
7499
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7500
7500
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7513,8 +7513,8 @@ class LocalRulestacksImpl {
|
|
|
7513
7513
|
spec: deleteOperationSpec$4
|
|
7514
7514
|
});
|
|
7515
7515
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7516
|
-
restoreFrom: options === null || options ===
|
|
7517
|
-
intervalInMs: options === null || options ===
|
|
7516
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7517
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7518
7518
|
resourceLocationConfig: "azure-async-operation"
|
|
7519
7519
|
});
|
|
7520
7520
|
yield poller.poll();
|
|
@@ -7528,7 +7528,7 @@ class LocalRulestacksImpl {
|
|
|
7528
7528
|
* @param options The options parameters.
|
|
7529
7529
|
*/
|
|
7530
7530
|
beginDeleteAndWait(resourceGroupName, localRulestackName, options) {
|
|
7531
|
-
return tslib.__awaiter(this,
|
|
7531
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7532
7532
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, options);
|
|
7533
7533
|
return poller.pollUntilDone();
|
|
7534
7534
|
});
|
|
@@ -7540,17 +7540,17 @@ class LocalRulestacksImpl {
|
|
|
7540
7540
|
* @param options The options parameters.
|
|
7541
7541
|
*/
|
|
7542
7542
|
beginCommit(resourceGroupName, localRulestackName, options) {
|
|
7543
|
-
return tslib.__awaiter(this,
|
|
7544
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7543
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7544
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7545
7545
|
return this.client.sendOperationRequest(args, spec);
|
|
7546
7546
|
});
|
|
7547
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7547
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7548
7548
|
var _a;
|
|
7549
7549
|
let currentRawResponse = undefined;
|
|
7550
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7550
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7551
7551
|
const callback = (rawResponse, flatResponse) => {
|
|
7552
7552
|
currentRawResponse = rawResponse;
|
|
7553
|
-
providedCallback === null || providedCallback ===
|
|
7553
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7554
7554
|
};
|
|
7555
7555
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7556
7556
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7569,8 +7569,8 @@ class LocalRulestacksImpl {
|
|
|
7569
7569
|
spec: commitOperationSpec
|
|
7570
7570
|
});
|
|
7571
7571
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7572
|
-
restoreFrom: options === null || options ===
|
|
7573
|
-
intervalInMs: options === null || options ===
|
|
7572
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7573
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7574
7574
|
resourceLocationConfig: "location"
|
|
7575
7575
|
});
|
|
7576
7576
|
yield poller.poll();
|
|
@@ -7584,7 +7584,7 @@ class LocalRulestacksImpl {
|
|
|
7584
7584
|
* @param options The options parameters.
|
|
7585
7585
|
*/
|
|
7586
7586
|
beginCommitAndWait(resourceGroupName, localRulestackName, options) {
|
|
7587
|
-
return tslib.__awaiter(this,
|
|
7587
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7588
7588
|
const poller = yield this.beginCommit(resourceGroupName, localRulestackName, options);
|
|
7589
7589
|
return poller.pollUntilDone();
|
|
7590
7590
|
});
|
|
@@ -8124,7 +8124,7 @@ class FirewallStatusImpl {
|
|
|
8124
8124
|
return this;
|
|
8125
8125
|
},
|
|
8126
8126
|
byPage: (settings) => {
|
|
8127
|
-
if (settings === null || settings ===
|
|
8127
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8128
8128
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8129
8129
|
}
|
|
8130
8130
|
return this.listByFirewallsPagingPage(resourceGroupName, firewallName, options, settings);
|
|
@@ -8134,7 +8134,7 @@ class FirewallStatusImpl {
|
|
|
8134
8134
|
listByFirewallsPagingPage(resourceGroupName, firewallName, options, settings) {
|
|
8135
8135
|
return tslib.__asyncGenerator(this, arguments, function* listByFirewallsPagingPage_1() {
|
|
8136
8136
|
let result;
|
|
8137
|
-
let continuationToken = settings === null || settings ===
|
|
8137
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8138
8138
|
if (!continuationToken) {
|
|
8139
8139
|
result = yield tslib.__await(this._listByFirewalls(resourceGroupName, firewallName, options));
|
|
8140
8140
|
let page = result.value || [];
|
|
@@ -8299,7 +8299,7 @@ class CertificateObjectLocalRulestackImpl {
|
|
|
8299
8299
|
return this;
|
|
8300
8300
|
},
|
|
8301
8301
|
byPage: (settings) => {
|
|
8302
|
-
if (settings === null || settings ===
|
|
8302
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8303
8303
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8304
8304
|
}
|
|
8305
8305
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
|
@@ -8309,7 +8309,7 @@ class CertificateObjectLocalRulestackImpl {
|
|
|
8309
8309
|
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
8310
8310
|
return tslib.__asyncGenerator(this, arguments, function* listByLocalRulestacksPagingPage_1() {
|
|
8311
8311
|
let result;
|
|
8312
|
-
let continuationToken = settings === null || settings ===
|
|
8312
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8313
8313
|
if (!continuationToken) {
|
|
8314
8314
|
result = yield tslib.__await(this._listByLocalRulestacks(resourceGroupName, localRulestackName, options));
|
|
8315
8315
|
let page = result.value || [];
|
|
@@ -8374,17 +8374,17 @@ class CertificateObjectLocalRulestackImpl {
|
|
|
8374
8374
|
* @param options The options parameters.
|
|
8375
8375
|
*/
|
|
8376
8376
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options) {
|
|
8377
|
-
return tslib.__awaiter(this,
|
|
8378
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8377
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8378
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8379
8379
|
return this.client.sendOperationRequest(args, spec);
|
|
8380
8380
|
});
|
|
8381
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8381
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8382
8382
|
var _a;
|
|
8383
8383
|
let currentRawResponse = undefined;
|
|
8384
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8384
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8385
8385
|
const callback = (rawResponse, flatResponse) => {
|
|
8386
8386
|
currentRawResponse = rawResponse;
|
|
8387
|
-
providedCallback === null || providedCallback ===
|
|
8387
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8388
8388
|
};
|
|
8389
8389
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8390
8390
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8403,8 +8403,8 @@ class CertificateObjectLocalRulestackImpl {
|
|
|
8403
8403
|
spec: createOrUpdateOperationSpec$3
|
|
8404
8404
|
});
|
|
8405
8405
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8406
|
-
restoreFrom: options === null || options ===
|
|
8407
|
-
intervalInMs: options === null || options ===
|
|
8406
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8407
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8408
8408
|
resourceLocationConfig: "azure-async-operation"
|
|
8409
8409
|
});
|
|
8410
8410
|
yield poller.poll();
|
|
@@ -8420,7 +8420,7 @@ class CertificateObjectLocalRulestackImpl {
|
|
|
8420
8420
|
* @param options The options parameters.
|
|
8421
8421
|
*/
|
|
8422
8422
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, name, resource, options) {
|
|
8423
|
-
return tslib.__awaiter(this,
|
|
8423
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8424
8424
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options);
|
|
8425
8425
|
return poller.pollUntilDone();
|
|
8426
8426
|
});
|
|
@@ -8433,17 +8433,17 @@ class CertificateObjectLocalRulestackImpl {
|
|
|
8433
8433
|
* @param options The options parameters.
|
|
8434
8434
|
*/
|
|
8435
8435
|
beginDelete(resourceGroupName, localRulestackName, name, options) {
|
|
8436
|
-
return tslib.__awaiter(this,
|
|
8437
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8436
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8437
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8438
8438
|
return this.client.sendOperationRequest(args, spec);
|
|
8439
8439
|
});
|
|
8440
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8440
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8441
8441
|
var _a;
|
|
8442
8442
|
let currentRawResponse = undefined;
|
|
8443
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8443
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8444
8444
|
const callback = (rawResponse, flatResponse) => {
|
|
8445
8445
|
currentRawResponse = rawResponse;
|
|
8446
|
-
providedCallback === null || providedCallback ===
|
|
8446
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8447
8447
|
};
|
|
8448
8448
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8449
8449
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8462,8 +8462,8 @@ class CertificateObjectLocalRulestackImpl {
|
|
|
8462
8462
|
spec: deleteOperationSpec$3
|
|
8463
8463
|
});
|
|
8464
8464
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8465
|
-
restoreFrom: options === null || options ===
|
|
8466
|
-
intervalInMs: options === null || options ===
|
|
8465
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8466
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8467
8467
|
resourceLocationConfig: "azure-async-operation"
|
|
8468
8468
|
});
|
|
8469
8469
|
yield poller.poll();
|
|
@@ -8478,7 +8478,7 @@ class CertificateObjectLocalRulestackImpl {
|
|
|
8478
8478
|
* @param options The options parameters.
|
|
8479
8479
|
*/
|
|
8480
8480
|
beginDeleteAndWait(resourceGroupName, localRulestackName, name, options) {
|
|
8481
|
-
return tslib.__awaiter(this,
|
|
8481
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8482
8482
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, name, options);
|
|
8483
8483
|
return poller.pollUntilDone();
|
|
8484
8484
|
});
|
|
@@ -8650,7 +8650,7 @@ class FqdnListLocalRulestackImpl {
|
|
|
8650
8650
|
return this;
|
|
8651
8651
|
},
|
|
8652
8652
|
byPage: (settings) => {
|
|
8653
|
-
if (settings === null || settings ===
|
|
8653
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
8654
8654
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8655
8655
|
}
|
|
8656
8656
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
|
@@ -8660,7 +8660,7 @@ class FqdnListLocalRulestackImpl {
|
|
|
8660
8660
|
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
8661
8661
|
return tslib.__asyncGenerator(this, arguments, function* listByLocalRulestacksPagingPage_1() {
|
|
8662
8662
|
let result;
|
|
8663
|
-
let continuationToken = settings === null || settings ===
|
|
8663
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
8664
8664
|
if (!continuationToken) {
|
|
8665
8665
|
result = yield tslib.__await(this._listByLocalRulestacks(resourceGroupName, localRulestackName, options));
|
|
8666
8666
|
let page = result.value || [];
|
|
@@ -8725,17 +8725,17 @@ class FqdnListLocalRulestackImpl {
|
|
|
8725
8725
|
* @param options The options parameters.
|
|
8726
8726
|
*/
|
|
8727
8727
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options) {
|
|
8728
|
-
return tslib.__awaiter(this,
|
|
8729
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8728
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8729
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8730
8730
|
return this.client.sendOperationRequest(args, spec);
|
|
8731
8731
|
});
|
|
8732
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8732
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8733
8733
|
var _a;
|
|
8734
8734
|
let currentRawResponse = undefined;
|
|
8735
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8735
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8736
8736
|
const callback = (rawResponse, flatResponse) => {
|
|
8737
8737
|
currentRawResponse = rawResponse;
|
|
8738
|
-
providedCallback === null || providedCallback ===
|
|
8738
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8739
8739
|
};
|
|
8740
8740
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8741
8741
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8754,8 +8754,8 @@ class FqdnListLocalRulestackImpl {
|
|
|
8754
8754
|
spec: createOrUpdateOperationSpec$2
|
|
8755
8755
|
});
|
|
8756
8756
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8757
|
-
restoreFrom: options === null || options ===
|
|
8758
|
-
intervalInMs: options === null || options ===
|
|
8757
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8758
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8759
8759
|
resourceLocationConfig: "azure-async-operation"
|
|
8760
8760
|
});
|
|
8761
8761
|
yield poller.poll();
|
|
@@ -8771,7 +8771,7 @@ class FqdnListLocalRulestackImpl {
|
|
|
8771
8771
|
* @param options The options parameters.
|
|
8772
8772
|
*/
|
|
8773
8773
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, name, resource, options) {
|
|
8774
|
-
return tslib.__awaiter(this,
|
|
8774
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8775
8775
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options);
|
|
8776
8776
|
return poller.pollUntilDone();
|
|
8777
8777
|
});
|
|
@@ -8784,17 +8784,17 @@ class FqdnListLocalRulestackImpl {
|
|
|
8784
8784
|
* @param options The options parameters.
|
|
8785
8785
|
*/
|
|
8786
8786
|
beginDelete(resourceGroupName, localRulestackName, name, options) {
|
|
8787
|
-
return tslib.__awaiter(this,
|
|
8788
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8787
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8788
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8789
8789
|
return this.client.sendOperationRequest(args, spec);
|
|
8790
8790
|
});
|
|
8791
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8791
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8792
8792
|
var _a;
|
|
8793
8793
|
let currentRawResponse = undefined;
|
|
8794
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8794
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
8795
8795
|
const callback = (rawResponse, flatResponse) => {
|
|
8796
8796
|
currentRawResponse = rawResponse;
|
|
8797
|
-
providedCallback === null || providedCallback ===
|
|
8797
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
8798
8798
|
};
|
|
8799
8799
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8800
8800
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8813,8 +8813,8 @@ class FqdnListLocalRulestackImpl {
|
|
|
8813
8813
|
spec: deleteOperationSpec$2
|
|
8814
8814
|
});
|
|
8815
8815
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8816
|
-
restoreFrom: options === null || options ===
|
|
8817
|
-
intervalInMs: options === null || options ===
|
|
8816
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8817
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8818
8818
|
resourceLocationConfig: "azure-async-operation"
|
|
8819
8819
|
});
|
|
8820
8820
|
yield poller.poll();
|
|
@@ -8829,7 +8829,7 @@ class FqdnListLocalRulestackImpl {
|
|
|
8829
8829
|
* @param options The options parameters.
|
|
8830
8830
|
*/
|
|
8831
8831
|
beginDeleteAndWait(resourceGroupName, localRulestackName, name, options) {
|
|
8832
|
-
return tslib.__awaiter(this,
|
|
8832
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8833
8833
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, name, options);
|
|
8834
8834
|
return poller.pollUntilDone();
|
|
8835
8835
|
});
|
|
@@ -9001,7 +9001,7 @@ class LocalRulesImpl {
|
|
|
9001
9001
|
return this;
|
|
9002
9002
|
},
|
|
9003
9003
|
byPage: (settings) => {
|
|
9004
|
-
if (settings === null || settings ===
|
|
9004
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
9005
9005
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9006
9006
|
}
|
|
9007
9007
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
|
@@ -9011,7 +9011,7 @@ class LocalRulesImpl {
|
|
|
9011
9011
|
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
9012
9012
|
return tslib.__asyncGenerator(this, arguments, function* listByLocalRulestacksPagingPage_1() {
|
|
9013
9013
|
let result;
|
|
9014
|
-
let continuationToken = settings === null || settings ===
|
|
9014
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
9015
9015
|
if (!continuationToken) {
|
|
9016
9016
|
result = yield tslib.__await(this._listByLocalRulestacks(resourceGroupName, localRulestackName, options));
|
|
9017
9017
|
let page = result.value || [];
|
|
@@ -9076,17 +9076,17 @@ class LocalRulesImpl {
|
|
|
9076
9076
|
* @param options The options parameters.
|
|
9077
9077
|
*/
|
|
9078
9078
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, priority, resource, options) {
|
|
9079
|
-
return tslib.__awaiter(this,
|
|
9080
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9079
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9080
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9081
9081
|
return this.client.sendOperationRequest(args, spec);
|
|
9082
9082
|
});
|
|
9083
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9083
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9084
9084
|
var _a;
|
|
9085
9085
|
let currentRawResponse = undefined;
|
|
9086
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9086
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
9087
9087
|
const callback = (rawResponse, flatResponse) => {
|
|
9088
9088
|
currentRawResponse = rawResponse;
|
|
9089
|
-
providedCallback === null || providedCallback ===
|
|
9089
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
9090
9090
|
};
|
|
9091
9091
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9092
9092
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9111,8 +9111,8 @@ class LocalRulesImpl {
|
|
|
9111
9111
|
spec: createOrUpdateOperationSpec$1
|
|
9112
9112
|
});
|
|
9113
9113
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9114
|
-
restoreFrom: options === null || options ===
|
|
9115
|
-
intervalInMs: options === null || options ===
|
|
9114
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9115
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9116
9116
|
resourceLocationConfig: "azure-async-operation"
|
|
9117
9117
|
});
|
|
9118
9118
|
yield poller.poll();
|
|
@@ -9128,7 +9128,7 @@ class LocalRulesImpl {
|
|
|
9128
9128
|
* @param options The options parameters.
|
|
9129
9129
|
*/
|
|
9130
9130
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, priority, resource, options) {
|
|
9131
|
-
return tslib.__awaiter(this,
|
|
9131
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9132
9132
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, priority, resource, options);
|
|
9133
9133
|
return poller.pollUntilDone();
|
|
9134
9134
|
});
|
|
@@ -9141,17 +9141,17 @@ class LocalRulesImpl {
|
|
|
9141
9141
|
* @param options The options parameters.
|
|
9142
9142
|
*/
|
|
9143
9143
|
beginDelete(resourceGroupName, localRulestackName, priority, options) {
|
|
9144
|
-
return tslib.__awaiter(this,
|
|
9145
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9144
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9145
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9146
9146
|
return this.client.sendOperationRequest(args, spec);
|
|
9147
9147
|
});
|
|
9148
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9148
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9149
9149
|
var _a;
|
|
9150
9150
|
let currentRawResponse = undefined;
|
|
9151
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9151
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
9152
9152
|
const callback = (rawResponse, flatResponse) => {
|
|
9153
9153
|
currentRawResponse = rawResponse;
|
|
9154
|
-
providedCallback === null || providedCallback ===
|
|
9154
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
9155
9155
|
};
|
|
9156
9156
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9157
9157
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9170,8 +9170,8 @@ class LocalRulesImpl {
|
|
|
9170
9170
|
spec: deleteOperationSpec$1
|
|
9171
9171
|
});
|
|
9172
9172
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9173
|
-
restoreFrom: options === null || options ===
|
|
9174
|
-
intervalInMs: options === null || options ===
|
|
9173
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9174
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9175
9175
|
resourceLocationConfig: "azure-async-operation"
|
|
9176
9176
|
});
|
|
9177
9177
|
yield poller.poll();
|
|
@@ -9186,7 +9186,7 @@ class LocalRulesImpl {
|
|
|
9186
9186
|
* @param options The options parameters.
|
|
9187
9187
|
*/
|
|
9188
9188
|
beginDeleteAndWait(resourceGroupName, localRulestackName, priority, options) {
|
|
9189
|
-
return tslib.__awaiter(this,
|
|
9189
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9190
9190
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, priority, options);
|
|
9191
9191
|
return poller.pollUntilDone();
|
|
9192
9192
|
});
|
|
@@ -9452,7 +9452,7 @@ class PrefixListLocalRulestackImpl {
|
|
|
9452
9452
|
return this;
|
|
9453
9453
|
},
|
|
9454
9454
|
byPage: (settings) => {
|
|
9455
|
-
if (settings === null || settings ===
|
|
9455
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
9456
9456
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9457
9457
|
}
|
|
9458
9458
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
|
@@ -9462,7 +9462,7 @@ class PrefixListLocalRulestackImpl {
|
|
|
9462
9462
|
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
9463
9463
|
return tslib.__asyncGenerator(this, arguments, function* listByLocalRulestacksPagingPage_1() {
|
|
9464
9464
|
let result;
|
|
9465
|
-
let continuationToken = settings === null || settings ===
|
|
9465
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
9466
9466
|
if (!continuationToken) {
|
|
9467
9467
|
result = yield tslib.__await(this._listByLocalRulestacks(resourceGroupName, localRulestackName, options));
|
|
9468
9468
|
let page = result.value || [];
|
|
@@ -9527,17 +9527,17 @@ class PrefixListLocalRulestackImpl {
|
|
|
9527
9527
|
* @param options The options parameters.
|
|
9528
9528
|
*/
|
|
9529
9529
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options) {
|
|
9530
|
-
return tslib.__awaiter(this,
|
|
9531
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9530
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9531
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9532
9532
|
return this.client.sendOperationRequest(args, spec);
|
|
9533
9533
|
});
|
|
9534
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9534
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9535
9535
|
var _a;
|
|
9536
9536
|
let currentRawResponse = undefined;
|
|
9537
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9537
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
9538
9538
|
const callback = (rawResponse, flatResponse) => {
|
|
9539
9539
|
currentRawResponse = rawResponse;
|
|
9540
|
-
providedCallback === null || providedCallback ===
|
|
9540
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
9541
9541
|
};
|
|
9542
9542
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9543
9543
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9556,8 +9556,8 @@ class PrefixListLocalRulestackImpl {
|
|
|
9556
9556
|
spec: createOrUpdateOperationSpec
|
|
9557
9557
|
});
|
|
9558
9558
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9559
|
-
restoreFrom: options === null || options ===
|
|
9560
|
-
intervalInMs: options === null || options ===
|
|
9559
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9560
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9561
9561
|
resourceLocationConfig: "azure-async-operation"
|
|
9562
9562
|
});
|
|
9563
9563
|
yield poller.poll();
|
|
@@ -9573,7 +9573,7 @@ class PrefixListLocalRulestackImpl {
|
|
|
9573
9573
|
* @param options The options parameters.
|
|
9574
9574
|
*/
|
|
9575
9575
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, name, resource, options) {
|
|
9576
|
-
return tslib.__awaiter(this,
|
|
9576
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9577
9577
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options);
|
|
9578
9578
|
return poller.pollUntilDone();
|
|
9579
9579
|
});
|
|
@@ -9586,17 +9586,17 @@ class PrefixListLocalRulestackImpl {
|
|
|
9586
9586
|
* @param options The options parameters.
|
|
9587
9587
|
*/
|
|
9588
9588
|
beginDelete(resourceGroupName, localRulestackName, name, options) {
|
|
9589
|
-
return tslib.__awaiter(this,
|
|
9590
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
9589
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9590
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9591
9591
|
return this.client.sendOperationRequest(args, spec);
|
|
9592
9592
|
});
|
|
9593
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
9593
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9594
9594
|
var _a;
|
|
9595
9595
|
let currentRawResponse = undefined;
|
|
9596
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
9596
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
9597
9597
|
const callback = (rawResponse, flatResponse) => {
|
|
9598
9598
|
currentRawResponse = rawResponse;
|
|
9599
|
-
providedCallback === null || providedCallback ===
|
|
9599
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
9600
9600
|
};
|
|
9601
9601
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
9602
9602
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -9615,8 +9615,8 @@ class PrefixListLocalRulestackImpl {
|
|
|
9615
9615
|
spec: deleteOperationSpec
|
|
9616
9616
|
});
|
|
9617
9617
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
9618
|
-
restoreFrom: options === null || options ===
|
|
9619
|
-
intervalInMs: options === null || options ===
|
|
9618
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9619
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9620
9620
|
resourceLocationConfig: "azure-async-operation"
|
|
9621
9621
|
});
|
|
9622
9622
|
yield poller.poll();
|
|
@@ -9631,7 +9631,7 @@ class PrefixListLocalRulestackImpl {
|
|
|
9631
9631
|
* @param options The options parameters.
|
|
9632
9632
|
*/
|
|
9633
9633
|
beginDeleteAndWait(resourceGroupName, localRulestackName, name, options) {
|
|
9634
|
-
return tslib.__awaiter(this,
|
|
9634
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9635
9635
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, name, options);
|
|
9636
9636
|
return poller.pollUntilDone();
|
|
9637
9637
|
});
|
|
@@ -9804,10 +9804,10 @@ class PaloAltoNetworksCloudngfw extends coreClient__namespace.ServiceClient {
|
|
|
9804
9804
|
: `${packageDetails}`;
|
|
9805
9805
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
9806
9806
|
userAgentPrefix
|
|
9807
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
9807
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
9808
9808
|
super(optionsWithDefaults);
|
|
9809
9809
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
9810
|
-
if ((options === null || options ===
|
|
9810
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
9811
9811
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
9812
9812
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
9813
9813
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -9821,7 +9821,7 @@ class PaloAltoNetworksCloudngfw extends coreClient__namespace.ServiceClient {
|
|
|
9821
9821
|
});
|
|
9822
9822
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
9823
9823
|
credential: credentials,
|
|
9824
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
9824
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
9825
9825
|
challengeCallbacks: {
|
|
9826
9826
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
9827
9827
|
}
|
|
@@ -9856,7 +9856,7 @@ class PaloAltoNetworksCloudngfw extends coreClient__namespace.ServiceClient {
|
|
|
9856
9856
|
const apiVersionPolicy = {
|
|
9857
9857
|
name: "CustomApiVersionPolicy",
|
|
9858
9858
|
sendRequest(request, next) {
|
|
9859
|
-
return tslib.__awaiter(this,
|
|
9859
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
9860
9860
|
const param = request.url.split("?");
|
|
9861
9861
|
if (param.length > 1) {
|
|
9862
9862
|
const newParams = param[1].split("&").map((item) => {
|