@azure/arm-paloaltonetworksngfw 1.1.1-alpha.20250103.1 → 1.1.1-alpha.20250107.1
Sign up to get free protection for your applications and to get access to all the features.
- 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 === undefined ? undefined : _a.continuationToken;
|
51
51
|
}
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
53
53
|
var _a;
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
55
55
|
return;
|
56
56
|
}
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
59
59
|
pageMap.set(page, pageInfo);
|
60
60
|
}
|
@@ -4085,7 +4085,7 @@ function createLroSpec(inputs) {
|
|
4085
4085
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
4086
4086
|
sendPollRequest: (path, options) => {
|
4087
4087
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
4088
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
4088
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
4089
4089
|
}
|
4090
4090
|
};
|
4091
4091
|
}
|
@@ -4121,7 +4121,7 @@ class GlobalRulestackImpl {
|
|
4121
4121
|
return this;
|
4122
4122
|
},
|
4123
4123
|
byPage: (settings) => {
|
4124
|
-
if (settings === null || settings ===
|
4124
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
4125
4125
|
throw new Error("maxPageSize is not supported by this operation.");
|
4126
4126
|
}
|
4127
4127
|
return this.listPagingPage(options, settings);
|
@@ -4131,7 +4131,7 @@ class GlobalRulestackImpl {
|
|
4131
4131
|
listPagingPage(options, settings) {
|
4132
4132
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
4133
4133
|
let result;
|
4134
|
-
let continuationToken = settings === null || settings ===
|
4134
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
4135
4135
|
if (!continuationToken) {
|
4136
4136
|
result = yield tslib.__await(this._list(options));
|
4137
4137
|
let page = result.value || [];
|
@@ -4190,17 +4190,17 @@ class GlobalRulestackImpl {
|
|
4190
4190
|
* @param options The options parameters.
|
4191
4191
|
*/
|
4192
4192
|
beginCreateOrUpdate(globalRulestackName, resource, options) {
|
4193
|
-
return tslib.__awaiter(this,
|
4194
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4193
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4194
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4195
4195
|
return this.client.sendOperationRequest(args, spec);
|
4196
4196
|
});
|
4197
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4197
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4198
4198
|
var _a;
|
4199
4199
|
let currentRawResponse = undefined;
|
4200
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4200
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4201
4201
|
const callback = (rawResponse, flatResponse) => {
|
4202
4202
|
currentRawResponse = rawResponse;
|
4203
|
-
providedCallback === null || providedCallback ===
|
4203
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4204
4204
|
};
|
4205
4205
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4206
4206
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4219,8 +4219,8 @@ class GlobalRulestackImpl {
|
|
4219
4219
|
spec: createOrUpdateOperationSpec$b
|
4220
4220
|
});
|
4221
4221
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4222
|
-
restoreFrom: options === null || options ===
|
4223
|
-
intervalInMs: options === null || options ===
|
4222
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4223
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4224
4224
|
resourceLocationConfig: "azure-async-operation"
|
4225
4225
|
});
|
4226
4226
|
yield poller.poll();
|
@@ -4234,7 +4234,7 @@ class GlobalRulestackImpl {
|
|
4234
4234
|
* @param options The options parameters.
|
4235
4235
|
*/
|
4236
4236
|
beginCreateOrUpdateAndWait(globalRulestackName, resource, options) {
|
4237
|
-
return tslib.__awaiter(this,
|
4237
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4238
4238
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, resource, options);
|
4239
4239
|
return poller.pollUntilDone();
|
4240
4240
|
});
|
@@ -4254,17 +4254,17 @@ class GlobalRulestackImpl {
|
|
4254
4254
|
* @param options The options parameters.
|
4255
4255
|
*/
|
4256
4256
|
beginDelete(globalRulestackName, options) {
|
4257
|
-
return tslib.__awaiter(this,
|
4258
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4257
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4258
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4259
4259
|
return this.client.sendOperationRequest(args, spec);
|
4260
4260
|
});
|
4261
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4261
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4262
4262
|
var _a;
|
4263
4263
|
let currentRawResponse = undefined;
|
4264
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4264
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4265
4265
|
const callback = (rawResponse, flatResponse) => {
|
4266
4266
|
currentRawResponse = rawResponse;
|
4267
|
-
providedCallback === null || providedCallback ===
|
4267
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4268
4268
|
};
|
4269
4269
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4270
4270
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4283,8 +4283,8 @@ class GlobalRulestackImpl {
|
|
4283
4283
|
spec: deleteOperationSpec$b
|
4284
4284
|
});
|
4285
4285
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4286
|
-
restoreFrom: options === null || options ===
|
4287
|
-
intervalInMs: options === null || options ===
|
4286
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4287
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4288
4288
|
resourceLocationConfig: "azure-async-operation"
|
4289
4289
|
});
|
4290
4290
|
yield poller.poll();
|
@@ -4297,7 +4297,7 @@ class GlobalRulestackImpl {
|
|
4297
4297
|
* @param options The options parameters.
|
4298
4298
|
*/
|
4299
4299
|
beginDeleteAndWait(globalRulestackName, options) {
|
4300
|
-
return tslib.__awaiter(this,
|
4300
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4301
4301
|
const poller = yield this.beginDelete(globalRulestackName, options);
|
4302
4302
|
return poller.pollUntilDone();
|
4303
4303
|
});
|
@@ -4308,17 +4308,17 @@ class GlobalRulestackImpl {
|
|
4308
4308
|
* @param options The options parameters.
|
4309
4309
|
*/
|
4310
4310
|
beginCommit(globalRulestackName, options) {
|
4311
|
-
return tslib.__awaiter(this,
|
4312
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4311
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4312
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4313
4313
|
return this.client.sendOperationRequest(args, spec);
|
4314
4314
|
});
|
4315
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4315
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4316
4316
|
var _a;
|
4317
4317
|
let currentRawResponse = undefined;
|
4318
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4318
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4319
4319
|
const callback = (rawResponse, flatResponse) => {
|
4320
4320
|
currentRawResponse = rawResponse;
|
4321
|
-
providedCallback === null || providedCallback ===
|
4321
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4322
4322
|
};
|
4323
4323
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4324
4324
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4337,8 +4337,8 @@ class GlobalRulestackImpl {
|
|
4337
4337
|
spec: commitOperationSpec$1
|
4338
4338
|
});
|
4339
4339
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4340
|
-
restoreFrom: options === null || options ===
|
4341
|
-
intervalInMs: options === null || options ===
|
4340
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4341
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4342
4342
|
resourceLocationConfig: "location"
|
4343
4343
|
});
|
4344
4344
|
yield poller.poll();
|
@@ -4351,7 +4351,7 @@ class GlobalRulestackImpl {
|
|
4351
4351
|
* @param options The options parameters.
|
4352
4352
|
*/
|
4353
4353
|
beginCommitAndWait(globalRulestackName, options) {
|
4354
|
-
return tslib.__awaiter(this,
|
4354
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4355
4355
|
const poller = yield this.beginCommit(globalRulestackName, options);
|
4356
4356
|
return poller.pollUntilDone();
|
4357
4357
|
});
|
@@ -4734,7 +4734,7 @@ class CertificateObjectGlobalRulestackImpl {
|
|
4734
4734
|
return this;
|
4735
4735
|
},
|
4736
4736
|
byPage: (settings) => {
|
4737
|
-
if (settings === null || settings ===
|
4737
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
4738
4738
|
throw new Error("maxPageSize is not supported by this operation.");
|
4739
4739
|
}
|
4740
4740
|
return this.listPagingPage(globalRulestackName, options, settings);
|
@@ -4744,7 +4744,7 @@ class CertificateObjectGlobalRulestackImpl {
|
|
4744
4744
|
listPagingPage(globalRulestackName, options, settings) {
|
4745
4745
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
4746
4746
|
let result;
|
4747
|
-
let continuationToken = settings === null || settings ===
|
4747
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
4748
4748
|
if (!continuationToken) {
|
4749
4749
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
4750
4750
|
let page = result.value || [];
|
@@ -4806,17 +4806,17 @@ class CertificateObjectGlobalRulestackImpl {
|
|
4806
4806
|
* @param options The options parameters.
|
4807
4807
|
*/
|
4808
4808
|
beginCreateOrUpdate(globalRulestackName, name, resource, options) {
|
4809
|
-
return tslib.__awaiter(this,
|
4810
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4809
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4810
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4811
4811
|
return this.client.sendOperationRequest(args, spec);
|
4812
4812
|
});
|
4813
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4813
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4814
4814
|
var _a;
|
4815
4815
|
let currentRawResponse = undefined;
|
4816
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4816
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4817
4817
|
const callback = (rawResponse, flatResponse) => {
|
4818
4818
|
currentRawResponse = rawResponse;
|
4819
|
-
providedCallback === null || providedCallback ===
|
4819
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4820
4820
|
};
|
4821
4821
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4822
4822
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4835,8 +4835,8 @@ class CertificateObjectGlobalRulestackImpl {
|
|
4835
4835
|
spec: createOrUpdateOperationSpec$a
|
4836
4836
|
});
|
4837
4837
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4838
|
-
restoreFrom: options === null || options ===
|
4839
|
-
intervalInMs: options === null || options ===
|
4838
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4839
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4840
4840
|
resourceLocationConfig: "azure-async-operation"
|
4841
4841
|
});
|
4842
4842
|
yield poller.poll();
|
@@ -4851,7 +4851,7 @@ class CertificateObjectGlobalRulestackImpl {
|
|
4851
4851
|
* @param options The options parameters.
|
4852
4852
|
*/
|
4853
4853
|
beginCreateOrUpdateAndWait(globalRulestackName, name, resource, options) {
|
4854
|
-
return tslib.__awaiter(this,
|
4854
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4855
4855
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, name, resource, options);
|
4856
4856
|
return poller.pollUntilDone();
|
4857
4857
|
});
|
@@ -4863,17 +4863,17 @@ class CertificateObjectGlobalRulestackImpl {
|
|
4863
4863
|
* @param options The options parameters.
|
4864
4864
|
*/
|
4865
4865
|
beginDelete(globalRulestackName, name, options) {
|
4866
|
-
return tslib.__awaiter(this,
|
4867
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4866
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4867
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4868
4868
|
return this.client.sendOperationRequest(args, spec);
|
4869
4869
|
});
|
4870
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4870
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4871
4871
|
var _a;
|
4872
4872
|
let currentRawResponse = undefined;
|
4873
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4873
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4874
4874
|
const callback = (rawResponse, flatResponse) => {
|
4875
4875
|
currentRawResponse = rawResponse;
|
4876
|
-
providedCallback === null || providedCallback ===
|
4876
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4877
4877
|
};
|
4878
4878
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4879
4879
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4892,8 +4892,8 @@ class CertificateObjectGlobalRulestackImpl {
|
|
4892
4892
|
spec: deleteOperationSpec$a
|
4893
4893
|
});
|
4894
4894
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4895
|
-
restoreFrom: options === null || options ===
|
4896
|
-
intervalInMs: options === null || options ===
|
4895
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4896
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4897
4897
|
resourceLocationConfig: "azure-async-operation"
|
4898
4898
|
});
|
4899
4899
|
yield poller.poll();
|
@@ -4907,7 +4907,7 @@ class CertificateObjectGlobalRulestackImpl {
|
|
4907
4907
|
* @param options The options parameters.
|
4908
4908
|
*/
|
4909
4909
|
beginDeleteAndWait(globalRulestackName, name, options) {
|
4910
|
-
return tslib.__awaiter(this,
|
4910
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4911
4911
|
const poller = yield this.beginDelete(globalRulestackName, name, options);
|
4912
4912
|
return poller.pollUntilDone();
|
4913
4913
|
});
|
@@ -5064,7 +5064,7 @@ class FqdnListGlobalRulestackImpl {
|
|
5064
5064
|
return this;
|
5065
5065
|
},
|
5066
5066
|
byPage: (settings) => {
|
5067
|
-
if (settings === null || settings ===
|
5067
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
5068
5068
|
throw new Error("maxPageSize is not supported by this operation.");
|
5069
5069
|
}
|
5070
5070
|
return this.listPagingPage(globalRulestackName, options, settings);
|
@@ -5074,7 +5074,7 @@ class FqdnListGlobalRulestackImpl {
|
|
5074
5074
|
listPagingPage(globalRulestackName, options, settings) {
|
5075
5075
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
5076
5076
|
let result;
|
5077
|
-
let continuationToken = settings === null || settings ===
|
5077
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
5078
5078
|
if (!continuationToken) {
|
5079
5079
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
5080
5080
|
let page = result.value || [];
|
@@ -5136,17 +5136,17 @@ class FqdnListGlobalRulestackImpl {
|
|
5136
5136
|
* @param options The options parameters.
|
5137
5137
|
*/
|
5138
5138
|
beginCreateOrUpdate(globalRulestackName, name, resource, options) {
|
5139
|
-
return tslib.__awaiter(this,
|
5140
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5139
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5140
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5141
5141
|
return this.client.sendOperationRequest(args, spec);
|
5142
5142
|
});
|
5143
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5143
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5144
5144
|
var _a;
|
5145
5145
|
let currentRawResponse = undefined;
|
5146
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5146
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5147
5147
|
const callback = (rawResponse, flatResponse) => {
|
5148
5148
|
currentRawResponse = rawResponse;
|
5149
|
-
providedCallback === null || providedCallback ===
|
5149
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5150
5150
|
};
|
5151
5151
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5152
5152
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5165,8 +5165,8 @@ class FqdnListGlobalRulestackImpl {
|
|
5165
5165
|
spec: createOrUpdateOperationSpec$9
|
5166
5166
|
});
|
5167
5167
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5168
|
-
restoreFrom: options === null || options ===
|
5169
|
-
intervalInMs: options === null || options ===
|
5168
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5169
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5170
5170
|
resourceLocationConfig: "azure-async-operation"
|
5171
5171
|
});
|
5172
5172
|
yield poller.poll();
|
@@ -5181,7 +5181,7 @@ class FqdnListGlobalRulestackImpl {
|
|
5181
5181
|
* @param options The options parameters.
|
5182
5182
|
*/
|
5183
5183
|
beginCreateOrUpdateAndWait(globalRulestackName, name, resource, options) {
|
5184
|
-
return tslib.__awaiter(this,
|
5184
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5185
5185
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, name, resource, options);
|
5186
5186
|
return poller.pollUntilDone();
|
5187
5187
|
});
|
@@ -5193,17 +5193,17 @@ class FqdnListGlobalRulestackImpl {
|
|
5193
5193
|
* @param options The options parameters.
|
5194
5194
|
*/
|
5195
5195
|
beginDelete(globalRulestackName, name, options) {
|
5196
|
-
return tslib.__awaiter(this,
|
5197
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5196
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5197
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5198
5198
|
return this.client.sendOperationRequest(args, spec);
|
5199
5199
|
});
|
5200
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5200
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5201
5201
|
var _a;
|
5202
5202
|
let currentRawResponse = undefined;
|
5203
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5203
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5204
5204
|
const callback = (rawResponse, flatResponse) => {
|
5205
5205
|
currentRawResponse = rawResponse;
|
5206
|
-
providedCallback === null || providedCallback ===
|
5206
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5207
5207
|
};
|
5208
5208
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5209
5209
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5222,8 +5222,8 @@ class FqdnListGlobalRulestackImpl {
|
|
5222
5222
|
spec: deleteOperationSpec$9
|
5223
5223
|
});
|
5224
5224
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5225
|
-
restoreFrom: options === null || options ===
|
5226
|
-
intervalInMs: options === null || options ===
|
5225
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5226
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5227
5227
|
resourceLocationConfig: "azure-async-operation"
|
5228
5228
|
});
|
5229
5229
|
yield poller.poll();
|
@@ -5237,7 +5237,7 @@ class FqdnListGlobalRulestackImpl {
|
|
5237
5237
|
* @param options The options parameters.
|
5238
5238
|
*/
|
5239
5239
|
beginDeleteAndWait(globalRulestackName, name, options) {
|
5240
|
-
return tslib.__awaiter(this,
|
5240
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5241
5241
|
const poller = yield this.beginDelete(globalRulestackName, name, options);
|
5242
5242
|
return poller.pollUntilDone();
|
5243
5243
|
});
|
@@ -5394,7 +5394,7 @@ class PostRulesImpl {
|
|
5394
5394
|
return this;
|
5395
5395
|
},
|
5396
5396
|
byPage: (settings) => {
|
5397
|
-
if (settings === null || settings ===
|
5397
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
5398
5398
|
throw new Error("maxPageSize is not supported by this operation.");
|
5399
5399
|
}
|
5400
5400
|
return this.listPagingPage(globalRulestackName, options, settings);
|
@@ -5404,7 +5404,7 @@ class PostRulesImpl {
|
|
5404
5404
|
listPagingPage(globalRulestackName, options, settings) {
|
5405
5405
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
5406
5406
|
let result;
|
5407
|
-
let continuationToken = settings === null || settings ===
|
5407
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
5408
5408
|
if (!continuationToken) {
|
5409
5409
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
5410
5410
|
let page = result.value || [];
|
@@ -5466,17 +5466,17 @@ class PostRulesImpl {
|
|
5466
5466
|
* @param options The options parameters.
|
5467
5467
|
*/
|
5468
5468
|
beginCreateOrUpdate(globalRulestackName, priority, resource, options) {
|
5469
|
-
return tslib.__awaiter(this,
|
5470
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5469
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5470
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5471
5471
|
return this.client.sendOperationRequest(args, spec);
|
5472
5472
|
});
|
5473
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5473
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5474
5474
|
var _a;
|
5475
5475
|
let currentRawResponse = undefined;
|
5476
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5476
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5477
5477
|
const callback = (rawResponse, flatResponse) => {
|
5478
5478
|
currentRawResponse = rawResponse;
|
5479
|
-
providedCallback === null || providedCallback ===
|
5479
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5480
5480
|
};
|
5481
5481
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5482
5482
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5495,8 +5495,8 @@ class PostRulesImpl {
|
|
5495
5495
|
spec: createOrUpdateOperationSpec$8
|
5496
5496
|
});
|
5497
5497
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5498
|
-
restoreFrom: options === null || options ===
|
5499
|
-
intervalInMs: options === null || options ===
|
5498
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5499
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5500
5500
|
resourceLocationConfig: "azure-async-operation"
|
5501
5501
|
});
|
5502
5502
|
yield poller.poll();
|
@@ -5511,7 +5511,7 @@ class PostRulesImpl {
|
|
5511
5511
|
* @param options The options parameters.
|
5512
5512
|
*/
|
5513
5513
|
beginCreateOrUpdateAndWait(globalRulestackName, priority, resource, options) {
|
5514
|
-
return tslib.__awaiter(this,
|
5514
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5515
5515
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, priority, resource, options);
|
5516
5516
|
return poller.pollUntilDone();
|
5517
5517
|
});
|
@@ -5523,17 +5523,17 @@ class PostRulesImpl {
|
|
5523
5523
|
* @param options The options parameters.
|
5524
5524
|
*/
|
5525
5525
|
beginDelete(globalRulestackName, priority, options) {
|
5526
|
-
return tslib.__awaiter(this,
|
5527
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5526
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5527
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5528
5528
|
return this.client.sendOperationRequest(args, spec);
|
5529
5529
|
});
|
5530
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5530
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5531
5531
|
var _a;
|
5532
5532
|
let currentRawResponse = undefined;
|
5533
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5533
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5534
5534
|
const callback = (rawResponse, flatResponse) => {
|
5535
5535
|
currentRawResponse = rawResponse;
|
5536
|
-
providedCallback === null || providedCallback ===
|
5536
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5537
5537
|
};
|
5538
5538
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5539
5539
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5552,8 +5552,8 @@ class PostRulesImpl {
|
|
5552
5552
|
spec: deleteOperationSpec$8
|
5553
5553
|
});
|
5554
5554
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5555
|
-
restoreFrom: options === null || options ===
|
5556
|
-
intervalInMs: options === null || options ===
|
5555
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5556
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5557
5557
|
resourceLocationConfig: "azure-async-operation"
|
5558
5558
|
});
|
5559
5559
|
yield poller.poll();
|
@@ -5567,7 +5567,7 @@ class PostRulesImpl {
|
|
5567
5567
|
* @param options The options parameters.
|
5568
5568
|
*/
|
5569
5569
|
beginDeleteAndWait(globalRulestackName, priority, options) {
|
5570
|
-
return tslib.__awaiter(this,
|
5570
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5571
5571
|
const poller = yield this.beginDelete(globalRulestackName, priority, options);
|
5572
5572
|
return poller.pollUntilDone();
|
5573
5573
|
});
|
@@ -5809,7 +5809,7 @@ class PrefixListGlobalRulestackImpl {
|
|
5809
5809
|
return this;
|
5810
5810
|
},
|
5811
5811
|
byPage: (settings) => {
|
5812
|
-
if (settings === null || settings ===
|
5812
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
5813
5813
|
throw new Error("maxPageSize is not supported by this operation.");
|
5814
5814
|
}
|
5815
5815
|
return this.listPagingPage(globalRulestackName, options, settings);
|
@@ -5819,7 +5819,7 @@ class PrefixListGlobalRulestackImpl {
|
|
5819
5819
|
listPagingPage(globalRulestackName, options, settings) {
|
5820
5820
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
5821
5821
|
let result;
|
5822
|
-
let continuationToken = settings === null || settings ===
|
5822
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
5823
5823
|
if (!continuationToken) {
|
5824
5824
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
5825
5825
|
let page = result.value || [];
|
@@ -5881,17 +5881,17 @@ class PrefixListGlobalRulestackImpl {
|
|
5881
5881
|
* @param options The options parameters.
|
5882
5882
|
*/
|
5883
5883
|
beginCreateOrUpdate(globalRulestackName, name, resource, options) {
|
5884
|
-
return tslib.__awaiter(this,
|
5885
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5884
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5885
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5886
5886
|
return this.client.sendOperationRequest(args, spec);
|
5887
5887
|
});
|
5888
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5888
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5889
5889
|
var _a;
|
5890
5890
|
let currentRawResponse = undefined;
|
5891
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5891
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5892
5892
|
const callback = (rawResponse, flatResponse) => {
|
5893
5893
|
currentRawResponse = rawResponse;
|
5894
|
-
providedCallback === null || providedCallback ===
|
5894
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5895
5895
|
};
|
5896
5896
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5897
5897
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5910,8 +5910,8 @@ class PrefixListGlobalRulestackImpl {
|
|
5910
5910
|
spec: createOrUpdateOperationSpec$7
|
5911
5911
|
});
|
5912
5912
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5913
|
-
restoreFrom: options === null || options ===
|
5914
|
-
intervalInMs: options === null || options ===
|
5913
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5914
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5915
5915
|
resourceLocationConfig: "azure-async-operation"
|
5916
5916
|
});
|
5917
5917
|
yield poller.poll();
|
@@ -5926,7 +5926,7 @@ class PrefixListGlobalRulestackImpl {
|
|
5926
5926
|
* @param options The options parameters.
|
5927
5927
|
*/
|
5928
5928
|
beginCreateOrUpdateAndWait(globalRulestackName, name, resource, options) {
|
5929
|
-
return tslib.__awaiter(this,
|
5929
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5930
5930
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, name, resource, options);
|
5931
5931
|
return poller.pollUntilDone();
|
5932
5932
|
});
|
@@ -5938,17 +5938,17 @@ class PrefixListGlobalRulestackImpl {
|
|
5938
5938
|
* @param options The options parameters.
|
5939
5939
|
*/
|
5940
5940
|
beginDelete(globalRulestackName, name, options) {
|
5941
|
-
return tslib.__awaiter(this,
|
5942
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5941
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5942
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5943
5943
|
return this.client.sendOperationRequest(args, spec);
|
5944
5944
|
});
|
5945
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5945
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5946
5946
|
var _a;
|
5947
5947
|
let currentRawResponse = undefined;
|
5948
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5948
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5949
5949
|
const callback = (rawResponse, flatResponse) => {
|
5950
5950
|
currentRawResponse = rawResponse;
|
5951
|
-
providedCallback === null || providedCallback ===
|
5951
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5952
5952
|
};
|
5953
5953
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5954
5954
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5967,8 +5967,8 @@ class PrefixListGlobalRulestackImpl {
|
|
5967
5967
|
spec: deleteOperationSpec$7
|
5968
5968
|
});
|
5969
5969
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5970
|
-
restoreFrom: options === null || options ===
|
5971
|
-
intervalInMs: options === null || options ===
|
5970
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5971
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5972
5972
|
resourceLocationConfig: "azure-async-operation"
|
5973
5973
|
});
|
5974
5974
|
yield poller.poll();
|
@@ -5982,7 +5982,7 @@ class PrefixListGlobalRulestackImpl {
|
|
5982
5982
|
* @param options The options parameters.
|
5983
5983
|
*/
|
5984
5984
|
beginDeleteAndWait(globalRulestackName, name, options) {
|
5985
|
-
return tslib.__awaiter(this,
|
5985
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5986
5986
|
const poller = yield this.beginDelete(globalRulestackName, name, options);
|
5987
5987
|
return poller.pollUntilDone();
|
5988
5988
|
});
|
@@ -6139,7 +6139,7 @@ class PreRulesImpl {
|
|
6139
6139
|
return this;
|
6140
6140
|
},
|
6141
6141
|
byPage: (settings) => {
|
6142
|
-
if (settings === null || settings ===
|
6142
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
6143
6143
|
throw new Error("maxPageSize is not supported by this operation.");
|
6144
6144
|
}
|
6145
6145
|
return this.listPagingPage(globalRulestackName, options, settings);
|
@@ -6149,7 +6149,7 @@ class PreRulesImpl {
|
|
6149
6149
|
listPagingPage(globalRulestackName, options, settings) {
|
6150
6150
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
6151
6151
|
let result;
|
6152
|
-
let continuationToken = settings === null || settings ===
|
6152
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
6153
6153
|
if (!continuationToken) {
|
6154
6154
|
result = yield tslib.__await(this._list(globalRulestackName, options));
|
6155
6155
|
let page = result.value || [];
|
@@ -6211,17 +6211,17 @@ class PreRulesImpl {
|
|
6211
6211
|
* @param options The options parameters.
|
6212
6212
|
*/
|
6213
6213
|
beginCreateOrUpdate(globalRulestackName, priority, resource, options) {
|
6214
|
-
return tslib.__awaiter(this,
|
6215
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6214
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6215
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6216
6216
|
return this.client.sendOperationRequest(args, spec);
|
6217
6217
|
});
|
6218
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6218
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6219
6219
|
var _a;
|
6220
6220
|
let currentRawResponse = undefined;
|
6221
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6221
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6222
6222
|
const callback = (rawResponse, flatResponse) => {
|
6223
6223
|
currentRawResponse = rawResponse;
|
6224
|
-
providedCallback === null || providedCallback ===
|
6224
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6225
6225
|
};
|
6226
6226
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6227
6227
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6240,8 +6240,8 @@ class PreRulesImpl {
|
|
6240
6240
|
spec: createOrUpdateOperationSpec$6
|
6241
6241
|
});
|
6242
6242
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6243
|
-
restoreFrom: options === null || options ===
|
6244
|
-
intervalInMs: options === null || options ===
|
6243
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6244
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6245
6245
|
resourceLocationConfig: "azure-async-operation"
|
6246
6246
|
});
|
6247
6247
|
yield poller.poll();
|
@@ -6256,7 +6256,7 @@ class PreRulesImpl {
|
|
6256
6256
|
* @param options The options parameters.
|
6257
6257
|
*/
|
6258
6258
|
beginCreateOrUpdateAndWait(globalRulestackName, priority, resource, options) {
|
6259
|
-
return tslib.__awaiter(this,
|
6259
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6260
6260
|
const poller = yield this.beginCreateOrUpdate(globalRulestackName, priority, resource, options);
|
6261
6261
|
return poller.pollUntilDone();
|
6262
6262
|
});
|
@@ -6268,17 +6268,17 @@ class PreRulesImpl {
|
|
6268
6268
|
* @param options The options parameters.
|
6269
6269
|
*/
|
6270
6270
|
beginDelete(globalRulestackName, priority, options) {
|
6271
|
-
return tslib.__awaiter(this,
|
6272
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6271
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6272
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6273
6273
|
return this.client.sendOperationRequest(args, spec);
|
6274
6274
|
});
|
6275
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6275
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6276
6276
|
var _a;
|
6277
6277
|
let currentRawResponse = undefined;
|
6278
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6278
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6279
6279
|
const callback = (rawResponse, flatResponse) => {
|
6280
6280
|
currentRawResponse = rawResponse;
|
6281
|
-
providedCallback === null || providedCallback ===
|
6281
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6282
6282
|
};
|
6283
6283
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6284
6284
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6297,8 +6297,8 @@ class PreRulesImpl {
|
|
6297
6297
|
spec: deleteOperationSpec$6
|
6298
6298
|
});
|
6299
6299
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6300
|
-
restoreFrom: options === null || options ===
|
6301
|
-
intervalInMs: options === null || options ===
|
6300
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6301
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6302
6302
|
resourceLocationConfig: "azure-async-operation"
|
6303
6303
|
});
|
6304
6304
|
yield poller.poll();
|
@@ -6312,7 +6312,7 @@ class PreRulesImpl {
|
|
6312
6312
|
* @param options The options parameters.
|
6313
6313
|
*/
|
6314
6314
|
beginDeleteAndWait(globalRulestackName, priority, options) {
|
6315
|
-
return tslib.__awaiter(this,
|
6315
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6316
6316
|
const poller = yield this.beginDelete(globalRulestackName, priority, options);
|
6317
6317
|
return poller.pollUntilDone();
|
6318
6318
|
});
|
@@ -6553,7 +6553,7 @@ class OperationsImpl {
|
|
6553
6553
|
return this;
|
6554
6554
|
},
|
6555
6555
|
byPage: (settings) => {
|
6556
|
-
if (settings === null || settings ===
|
6556
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
6557
6557
|
throw new Error("maxPageSize is not supported by this operation.");
|
6558
6558
|
}
|
6559
6559
|
return this.listPagingPage(options, settings);
|
@@ -6563,7 +6563,7 @@ class OperationsImpl {
|
|
6563
6563
|
listPagingPage(options, settings) {
|
6564
6564
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
6565
6565
|
let result;
|
6566
|
-
let continuationToken = settings === null || settings ===
|
6566
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
6567
6567
|
if (!continuationToken) {
|
6568
6568
|
result = yield tslib.__await(this._list(options));
|
6569
6569
|
let page = result.value || [];
|
@@ -6681,7 +6681,7 @@ class FirewallsImpl {
|
|
6681
6681
|
return this;
|
6682
6682
|
},
|
6683
6683
|
byPage: (settings) => {
|
6684
|
-
if (settings === null || settings ===
|
6684
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
6685
6685
|
throw new Error("maxPageSize is not supported by this operation.");
|
6686
6686
|
}
|
6687
6687
|
return this.listBySubscriptionPagingPage(options, settings);
|
@@ -6691,7 +6691,7 @@ class FirewallsImpl {
|
|
6691
6691
|
listBySubscriptionPagingPage(options, settings) {
|
6692
6692
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
6693
6693
|
let result;
|
6694
|
-
let continuationToken = settings === null || settings ===
|
6694
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
6695
6695
|
if (!continuationToken) {
|
6696
6696
|
result = yield tslib.__await(this._listBySubscription(options));
|
6697
6697
|
let page = result.value || [];
|
@@ -6743,7 +6743,7 @@ class FirewallsImpl {
|
|
6743
6743
|
return this;
|
6744
6744
|
},
|
6745
6745
|
byPage: (settings) => {
|
6746
|
-
if (settings === null || settings ===
|
6746
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
6747
6747
|
throw new Error("maxPageSize is not supported by this operation.");
|
6748
6748
|
}
|
6749
6749
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
@@ -6753,7 +6753,7 @@ class FirewallsImpl {
|
|
6753
6753
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
6754
6754
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
6755
6755
|
let result;
|
6756
|
-
let continuationToken = settings === null || settings ===
|
6756
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
6757
6757
|
if (!continuationToken) {
|
6758
6758
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
6759
6759
|
let page = result.value || [];
|
@@ -6822,17 +6822,17 @@ class FirewallsImpl {
|
|
6822
6822
|
* @param options The options parameters.
|
6823
6823
|
*/
|
6824
6824
|
beginCreateOrUpdate(resourceGroupName, firewallName, resource, options) {
|
6825
|
-
return tslib.__awaiter(this,
|
6826
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6825
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6826
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6827
6827
|
return this.client.sendOperationRequest(args, spec);
|
6828
6828
|
});
|
6829
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6829
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6830
6830
|
var _a;
|
6831
6831
|
let currentRawResponse = undefined;
|
6832
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6832
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6833
6833
|
const callback = (rawResponse, flatResponse) => {
|
6834
6834
|
currentRawResponse = rawResponse;
|
6835
|
-
providedCallback === null || providedCallback ===
|
6835
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6836
6836
|
};
|
6837
6837
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6838
6838
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6851,8 +6851,8 @@ class FirewallsImpl {
|
|
6851
6851
|
spec: createOrUpdateOperationSpec$5
|
6852
6852
|
});
|
6853
6853
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6854
|
-
restoreFrom: options === null || options ===
|
6855
|
-
intervalInMs: options === null || options ===
|
6854
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6855
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6856
6856
|
resourceLocationConfig: "azure-async-operation"
|
6857
6857
|
});
|
6858
6858
|
yield poller.poll();
|
@@ -6867,7 +6867,7 @@ class FirewallsImpl {
|
|
6867
6867
|
* @param options The options parameters.
|
6868
6868
|
*/
|
6869
6869
|
beginCreateOrUpdateAndWait(resourceGroupName, firewallName, resource, options) {
|
6870
|
-
return tslib.__awaiter(this,
|
6870
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6871
6871
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, firewallName, resource, options);
|
6872
6872
|
return poller.pollUntilDone();
|
6873
6873
|
});
|
@@ -6889,17 +6889,17 @@ class FirewallsImpl {
|
|
6889
6889
|
* @param options The options parameters.
|
6890
6890
|
*/
|
6891
6891
|
beginDelete(resourceGroupName, firewallName, options) {
|
6892
|
-
return tslib.__awaiter(this,
|
6893
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6892
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6893
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6894
6894
|
return this.client.sendOperationRequest(args, spec);
|
6895
6895
|
});
|
6896
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6896
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6897
6897
|
var _a;
|
6898
6898
|
let currentRawResponse = undefined;
|
6899
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6899
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6900
6900
|
const callback = (rawResponse, flatResponse) => {
|
6901
6901
|
currentRawResponse = rawResponse;
|
6902
|
-
providedCallback === null || providedCallback ===
|
6902
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6903
6903
|
};
|
6904
6904
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6905
6905
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6918,8 +6918,8 @@ class FirewallsImpl {
|
|
6918
6918
|
spec: deleteOperationSpec$5
|
6919
6919
|
});
|
6920
6920
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6921
|
-
restoreFrom: options === null || options ===
|
6922
|
-
intervalInMs: options === null || options ===
|
6921
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6922
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6923
6923
|
resourceLocationConfig: "azure-async-operation"
|
6924
6924
|
});
|
6925
6925
|
yield poller.poll();
|
@@ -6933,7 +6933,7 @@ class FirewallsImpl {
|
|
6933
6933
|
* @param options The options parameters.
|
6934
6934
|
*/
|
6935
6935
|
beginDeleteAndWait(resourceGroupName, firewallName, options) {
|
6936
|
-
return tslib.__awaiter(this,
|
6936
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6937
6937
|
const poller = yield this.beginDelete(resourceGroupName, firewallName, options);
|
6938
6938
|
return poller.pollUntilDone();
|
6939
6939
|
});
|
@@ -7283,7 +7283,7 @@ class LocalRulestacksImpl {
|
|
7283
7283
|
return this;
|
7284
7284
|
},
|
7285
7285
|
byPage: (settings) => {
|
7286
|
-
if (settings === null || settings ===
|
7286
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
7287
7287
|
throw new Error("maxPageSize is not supported by this operation.");
|
7288
7288
|
}
|
7289
7289
|
return this.listBySubscriptionPagingPage(options, settings);
|
@@ -7293,7 +7293,7 @@ class LocalRulestacksImpl {
|
|
7293
7293
|
listBySubscriptionPagingPage(options, settings) {
|
7294
7294
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
7295
7295
|
let result;
|
7296
|
-
let continuationToken = settings === null || settings ===
|
7296
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
7297
7297
|
if (!continuationToken) {
|
7298
7298
|
result = yield tslib.__await(this._listBySubscription(options));
|
7299
7299
|
let page = result.value || [];
|
@@ -7345,7 +7345,7 @@ class LocalRulestacksImpl {
|
|
7345
7345
|
return this;
|
7346
7346
|
},
|
7347
7347
|
byPage: (settings) => {
|
7348
|
-
if (settings === null || settings ===
|
7348
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
7349
7349
|
throw new Error("maxPageSize is not supported by this operation.");
|
7350
7350
|
}
|
7351
7351
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
@@ -7355,7 +7355,7 @@ class LocalRulestacksImpl {
|
|
7355
7355
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
7356
7356
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
7357
7357
|
let result;
|
7358
|
-
let continuationToken = settings === null || settings ===
|
7358
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
7359
7359
|
if (!continuationToken) {
|
7360
7360
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
7361
7361
|
let page = result.value || [];
|
@@ -7424,17 +7424,17 @@ class LocalRulestacksImpl {
|
|
7424
7424
|
* @param options The options parameters.
|
7425
7425
|
*/
|
7426
7426
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, resource, options) {
|
7427
|
-
return tslib.__awaiter(this,
|
7428
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
7427
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7428
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7429
7429
|
return this.client.sendOperationRequest(args, spec);
|
7430
7430
|
});
|
7431
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
7431
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7432
7432
|
var _a;
|
7433
7433
|
let currentRawResponse = undefined;
|
7434
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
7434
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
7435
7435
|
const callback = (rawResponse, flatResponse) => {
|
7436
7436
|
currentRawResponse = rawResponse;
|
7437
|
-
providedCallback === null || providedCallback ===
|
7437
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
7438
7438
|
};
|
7439
7439
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
7440
7440
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -7453,8 +7453,8 @@ class LocalRulestacksImpl {
|
|
7453
7453
|
spec: createOrUpdateOperationSpec$4
|
7454
7454
|
});
|
7455
7455
|
const poller = yield coreLro.createHttpPoller(lro, {
|
7456
|
-
restoreFrom: options === null || options ===
|
7457
|
-
intervalInMs: options === null || options ===
|
7456
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
7457
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
7458
7458
|
resourceLocationConfig: "azure-async-operation"
|
7459
7459
|
});
|
7460
7460
|
yield poller.poll();
|
@@ -7469,7 +7469,7 @@ class LocalRulestacksImpl {
|
|
7469
7469
|
* @param options The options parameters.
|
7470
7470
|
*/
|
7471
7471
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, resource, options) {
|
7472
|
-
return tslib.__awaiter(this,
|
7472
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7473
7473
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, resource, options);
|
7474
7474
|
return poller.pollUntilDone();
|
7475
7475
|
});
|
@@ -7491,17 +7491,17 @@ class LocalRulestacksImpl {
|
|
7491
7491
|
* @param options The options parameters.
|
7492
7492
|
*/
|
7493
7493
|
beginDelete(resourceGroupName, localRulestackName, options) {
|
7494
|
-
return tslib.__awaiter(this,
|
7495
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
7494
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7495
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7496
7496
|
return this.client.sendOperationRequest(args, spec);
|
7497
7497
|
});
|
7498
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
7498
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7499
7499
|
var _a;
|
7500
7500
|
let currentRawResponse = undefined;
|
7501
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
7501
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
7502
7502
|
const callback = (rawResponse, flatResponse) => {
|
7503
7503
|
currentRawResponse = rawResponse;
|
7504
|
-
providedCallback === null || providedCallback ===
|
7504
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
7505
7505
|
};
|
7506
7506
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
7507
7507
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -7520,8 +7520,8 @@ class LocalRulestacksImpl {
|
|
7520
7520
|
spec: deleteOperationSpec$4
|
7521
7521
|
});
|
7522
7522
|
const poller = yield coreLro.createHttpPoller(lro, {
|
7523
|
-
restoreFrom: options === null || options ===
|
7524
|
-
intervalInMs: options === null || options ===
|
7523
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
7524
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
7525
7525
|
resourceLocationConfig: "azure-async-operation"
|
7526
7526
|
});
|
7527
7527
|
yield poller.poll();
|
@@ -7535,7 +7535,7 @@ class LocalRulestacksImpl {
|
|
7535
7535
|
* @param options The options parameters.
|
7536
7536
|
*/
|
7537
7537
|
beginDeleteAndWait(resourceGroupName, localRulestackName, options) {
|
7538
|
-
return tslib.__awaiter(this,
|
7538
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7539
7539
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, options);
|
7540
7540
|
return poller.pollUntilDone();
|
7541
7541
|
});
|
@@ -7547,17 +7547,17 @@ class LocalRulestacksImpl {
|
|
7547
7547
|
* @param options The options parameters.
|
7548
7548
|
*/
|
7549
7549
|
beginCommit(resourceGroupName, localRulestackName, options) {
|
7550
|
-
return tslib.__awaiter(this,
|
7551
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
7550
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7551
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7552
7552
|
return this.client.sendOperationRequest(args, spec);
|
7553
7553
|
});
|
7554
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
7554
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7555
7555
|
var _a;
|
7556
7556
|
let currentRawResponse = undefined;
|
7557
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
7557
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
7558
7558
|
const callback = (rawResponse, flatResponse) => {
|
7559
7559
|
currentRawResponse = rawResponse;
|
7560
|
-
providedCallback === null || providedCallback ===
|
7560
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
7561
7561
|
};
|
7562
7562
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
7563
7563
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -7576,8 +7576,8 @@ class LocalRulestacksImpl {
|
|
7576
7576
|
spec: commitOperationSpec
|
7577
7577
|
});
|
7578
7578
|
const poller = yield coreLro.createHttpPoller(lro, {
|
7579
|
-
restoreFrom: options === null || options ===
|
7580
|
-
intervalInMs: options === null || options ===
|
7579
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
7580
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
7581
7581
|
resourceLocationConfig: "location"
|
7582
7582
|
});
|
7583
7583
|
yield poller.poll();
|
@@ -7591,7 +7591,7 @@ class LocalRulestacksImpl {
|
|
7591
7591
|
* @param options The options parameters.
|
7592
7592
|
*/
|
7593
7593
|
beginCommitAndWait(resourceGroupName, localRulestackName, options) {
|
7594
|
-
return tslib.__awaiter(this,
|
7594
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7595
7595
|
const poller = yield this.beginCommit(resourceGroupName, localRulestackName, options);
|
7596
7596
|
return poller.pollUntilDone();
|
7597
7597
|
});
|
@@ -8131,7 +8131,7 @@ class FirewallStatusImpl {
|
|
8131
8131
|
return this;
|
8132
8132
|
},
|
8133
8133
|
byPage: (settings) => {
|
8134
|
-
if (settings === null || settings ===
|
8134
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
8135
8135
|
throw new Error("maxPageSize is not supported by this operation.");
|
8136
8136
|
}
|
8137
8137
|
return this.listByFirewallsPagingPage(resourceGroupName, firewallName, options, settings);
|
@@ -8141,7 +8141,7 @@ class FirewallStatusImpl {
|
|
8141
8141
|
listByFirewallsPagingPage(resourceGroupName, firewallName, options, settings) {
|
8142
8142
|
return tslib.__asyncGenerator(this, arguments, function* listByFirewallsPagingPage_1() {
|
8143
8143
|
let result;
|
8144
|
-
let continuationToken = settings === null || settings ===
|
8144
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
8145
8145
|
if (!continuationToken) {
|
8146
8146
|
result = yield tslib.__await(this._listByFirewalls(resourceGroupName, firewallName, options));
|
8147
8147
|
let page = result.value || [];
|
@@ -8306,7 +8306,7 @@ class CertificateObjectLocalRulestackImpl {
|
|
8306
8306
|
return this;
|
8307
8307
|
},
|
8308
8308
|
byPage: (settings) => {
|
8309
|
-
if (settings === null || settings ===
|
8309
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
8310
8310
|
throw new Error("maxPageSize is not supported by this operation.");
|
8311
8311
|
}
|
8312
8312
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
@@ -8316,7 +8316,7 @@ class CertificateObjectLocalRulestackImpl {
|
|
8316
8316
|
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
8317
8317
|
return tslib.__asyncGenerator(this, arguments, function* listByLocalRulestacksPagingPage_1() {
|
8318
8318
|
let result;
|
8319
|
-
let continuationToken = settings === null || settings ===
|
8319
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
8320
8320
|
if (!continuationToken) {
|
8321
8321
|
result = yield tslib.__await(this._listByLocalRulestacks(resourceGroupName, localRulestackName, options));
|
8322
8322
|
let page = result.value || [];
|
@@ -8381,17 +8381,17 @@ class CertificateObjectLocalRulestackImpl {
|
|
8381
8381
|
* @param options The options parameters.
|
8382
8382
|
*/
|
8383
8383
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options) {
|
8384
|
-
return tslib.__awaiter(this,
|
8385
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
8384
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
8385
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
8386
8386
|
return this.client.sendOperationRequest(args, spec);
|
8387
8387
|
});
|
8388
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
8388
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
8389
8389
|
var _a;
|
8390
8390
|
let currentRawResponse = undefined;
|
8391
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
8391
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
8392
8392
|
const callback = (rawResponse, flatResponse) => {
|
8393
8393
|
currentRawResponse = rawResponse;
|
8394
|
-
providedCallback === null || providedCallback ===
|
8394
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
8395
8395
|
};
|
8396
8396
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
8397
8397
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -8410,8 +8410,8 @@ class CertificateObjectLocalRulestackImpl {
|
|
8410
8410
|
spec: createOrUpdateOperationSpec$3
|
8411
8411
|
});
|
8412
8412
|
const poller = yield coreLro.createHttpPoller(lro, {
|
8413
|
-
restoreFrom: options === null || options ===
|
8414
|
-
intervalInMs: options === null || options ===
|
8413
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
8414
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
8415
8415
|
resourceLocationConfig: "azure-async-operation"
|
8416
8416
|
});
|
8417
8417
|
yield poller.poll();
|
@@ -8427,7 +8427,7 @@ class CertificateObjectLocalRulestackImpl {
|
|
8427
8427
|
* @param options The options parameters.
|
8428
8428
|
*/
|
8429
8429
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, name, resource, options) {
|
8430
|
-
return tslib.__awaiter(this,
|
8430
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
8431
8431
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options);
|
8432
8432
|
return poller.pollUntilDone();
|
8433
8433
|
});
|
@@ -8440,17 +8440,17 @@ class CertificateObjectLocalRulestackImpl {
|
|
8440
8440
|
* @param options The options parameters.
|
8441
8441
|
*/
|
8442
8442
|
beginDelete(resourceGroupName, localRulestackName, name, options) {
|
8443
|
-
return tslib.__awaiter(this,
|
8444
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
8443
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
8444
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
8445
8445
|
return this.client.sendOperationRequest(args, spec);
|
8446
8446
|
});
|
8447
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
8447
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
8448
8448
|
var _a;
|
8449
8449
|
let currentRawResponse = undefined;
|
8450
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
8450
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
8451
8451
|
const callback = (rawResponse, flatResponse) => {
|
8452
8452
|
currentRawResponse = rawResponse;
|
8453
|
-
providedCallback === null || providedCallback ===
|
8453
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
8454
8454
|
};
|
8455
8455
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
8456
8456
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -8469,8 +8469,8 @@ class CertificateObjectLocalRulestackImpl {
|
|
8469
8469
|
spec: deleteOperationSpec$3
|
8470
8470
|
});
|
8471
8471
|
const poller = yield coreLro.createHttpPoller(lro, {
|
8472
|
-
restoreFrom: options === null || options ===
|
8473
|
-
intervalInMs: options === null || options ===
|
8472
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
8473
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
8474
8474
|
resourceLocationConfig: "azure-async-operation"
|
8475
8475
|
});
|
8476
8476
|
yield poller.poll();
|
@@ -8485,7 +8485,7 @@ class CertificateObjectLocalRulestackImpl {
|
|
8485
8485
|
* @param options The options parameters.
|
8486
8486
|
*/
|
8487
8487
|
beginDeleteAndWait(resourceGroupName, localRulestackName, name, options) {
|
8488
|
-
return tslib.__awaiter(this,
|
8488
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
8489
8489
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, name, options);
|
8490
8490
|
return poller.pollUntilDone();
|
8491
8491
|
});
|
@@ -8657,7 +8657,7 @@ class FqdnListLocalRulestackImpl {
|
|
8657
8657
|
return this;
|
8658
8658
|
},
|
8659
8659
|
byPage: (settings) => {
|
8660
|
-
if (settings === null || settings ===
|
8660
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
8661
8661
|
throw new Error("maxPageSize is not supported by this operation.");
|
8662
8662
|
}
|
8663
8663
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
@@ -8667,7 +8667,7 @@ class FqdnListLocalRulestackImpl {
|
|
8667
8667
|
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
8668
8668
|
return tslib.__asyncGenerator(this, arguments, function* listByLocalRulestacksPagingPage_1() {
|
8669
8669
|
let result;
|
8670
|
-
let continuationToken = settings === null || settings ===
|
8670
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
8671
8671
|
if (!continuationToken) {
|
8672
8672
|
result = yield tslib.__await(this._listByLocalRulestacks(resourceGroupName, localRulestackName, options));
|
8673
8673
|
let page = result.value || [];
|
@@ -8732,17 +8732,17 @@ class FqdnListLocalRulestackImpl {
|
|
8732
8732
|
* @param options The options parameters.
|
8733
8733
|
*/
|
8734
8734
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options) {
|
8735
|
-
return tslib.__awaiter(this,
|
8736
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
8735
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
8736
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
8737
8737
|
return this.client.sendOperationRequest(args, spec);
|
8738
8738
|
});
|
8739
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
8739
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
8740
8740
|
var _a;
|
8741
8741
|
let currentRawResponse = undefined;
|
8742
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
8742
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
8743
8743
|
const callback = (rawResponse, flatResponse) => {
|
8744
8744
|
currentRawResponse = rawResponse;
|
8745
|
-
providedCallback === null || providedCallback ===
|
8745
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
8746
8746
|
};
|
8747
8747
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
8748
8748
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -8761,8 +8761,8 @@ class FqdnListLocalRulestackImpl {
|
|
8761
8761
|
spec: createOrUpdateOperationSpec$2
|
8762
8762
|
});
|
8763
8763
|
const poller = yield coreLro.createHttpPoller(lro, {
|
8764
|
-
restoreFrom: options === null || options ===
|
8765
|
-
intervalInMs: options === null || options ===
|
8764
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
8765
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
8766
8766
|
resourceLocationConfig: "azure-async-operation"
|
8767
8767
|
});
|
8768
8768
|
yield poller.poll();
|
@@ -8778,7 +8778,7 @@ class FqdnListLocalRulestackImpl {
|
|
8778
8778
|
* @param options The options parameters.
|
8779
8779
|
*/
|
8780
8780
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, name, resource, options) {
|
8781
|
-
return tslib.__awaiter(this,
|
8781
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
8782
8782
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options);
|
8783
8783
|
return poller.pollUntilDone();
|
8784
8784
|
});
|
@@ -8791,17 +8791,17 @@ class FqdnListLocalRulestackImpl {
|
|
8791
8791
|
* @param options The options parameters.
|
8792
8792
|
*/
|
8793
8793
|
beginDelete(resourceGroupName, localRulestackName, name, options) {
|
8794
|
-
return tslib.__awaiter(this,
|
8795
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
8794
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
8795
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
8796
8796
|
return this.client.sendOperationRequest(args, spec);
|
8797
8797
|
});
|
8798
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
8798
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
8799
8799
|
var _a;
|
8800
8800
|
let currentRawResponse = undefined;
|
8801
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
8801
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
8802
8802
|
const callback = (rawResponse, flatResponse) => {
|
8803
8803
|
currentRawResponse = rawResponse;
|
8804
|
-
providedCallback === null || providedCallback ===
|
8804
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
8805
8805
|
};
|
8806
8806
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
8807
8807
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -8820,8 +8820,8 @@ class FqdnListLocalRulestackImpl {
|
|
8820
8820
|
spec: deleteOperationSpec$2
|
8821
8821
|
});
|
8822
8822
|
const poller = yield coreLro.createHttpPoller(lro, {
|
8823
|
-
restoreFrom: options === null || options ===
|
8824
|
-
intervalInMs: options === null || options ===
|
8823
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
8824
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
8825
8825
|
resourceLocationConfig: "azure-async-operation"
|
8826
8826
|
});
|
8827
8827
|
yield poller.poll();
|
@@ -8836,7 +8836,7 @@ class FqdnListLocalRulestackImpl {
|
|
8836
8836
|
* @param options The options parameters.
|
8837
8837
|
*/
|
8838
8838
|
beginDeleteAndWait(resourceGroupName, localRulestackName, name, options) {
|
8839
|
-
return tslib.__awaiter(this,
|
8839
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
8840
8840
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, name, options);
|
8841
8841
|
return poller.pollUntilDone();
|
8842
8842
|
});
|
@@ -9008,7 +9008,7 @@ class LocalRulesImpl {
|
|
9008
9008
|
return this;
|
9009
9009
|
},
|
9010
9010
|
byPage: (settings) => {
|
9011
|
-
if (settings === null || settings ===
|
9011
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
9012
9012
|
throw new Error("maxPageSize is not supported by this operation.");
|
9013
9013
|
}
|
9014
9014
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
@@ -9018,7 +9018,7 @@ class LocalRulesImpl {
|
|
9018
9018
|
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
9019
9019
|
return tslib.__asyncGenerator(this, arguments, function* listByLocalRulestacksPagingPage_1() {
|
9020
9020
|
let result;
|
9021
|
-
let continuationToken = settings === null || settings ===
|
9021
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
9022
9022
|
if (!continuationToken) {
|
9023
9023
|
result = yield tslib.__await(this._listByLocalRulestacks(resourceGroupName, localRulestackName, options));
|
9024
9024
|
let page = result.value || [];
|
@@ -9083,17 +9083,17 @@ class LocalRulesImpl {
|
|
9083
9083
|
* @param options The options parameters.
|
9084
9084
|
*/
|
9085
9085
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, priority, resource, options) {
|
9086
|
-
return tslib.__awaiter(this,
|
9087
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
9086
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
9087
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
9088
9088
|
return this.client.sendOperationRequest(args, spec);
|
9089
9089
|
});
|
9090
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
9090
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
9091
9091
|
var _a;
|
9092
9092
|
let currentRawResponse = undefined;
|
9093
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
9093
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
9094
9094
|
const callback = (rawResponse, flatResponse) => {
|
9095
9095
|
currentRawResponse = rawResponse;
|
9096
|
-
providedCallback === null || providedCallback ===
|
9096
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
9097
9097
|
};
|
9098
9098
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
9099
9099
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -9118,8 +9118,8 @@ class LocalRulesImpl {
|
|
9118
9118
|
spec: createOrUpdateOperationSpec$1
|
9119
9119
|
});
|
9120
9120
|
const poller = yield coreLro.createHttpPoller(lro, {
|
9121
|
-
restoreFrom: options === null || options ===
|
9122
|
-
intervalInMs: options === null || options ===
|
9121
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
9122
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
9123
9123
|
resourceLocationConfig: "azure-async-operation"
|
9124
9124
|
});
|
9125
9125
|
yield poller.poll();
|
@@ -9135,7 +9135,7 @@ class LocalRulesImpl {
|
|
9135
9135
|
* @param options The options parameters.
|
9136
9136
|
*/
|
9137
9137
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, priority, resource, options) {
|
9138
|
-
return tslib.__awaiter(this,
|
9138
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
9139
9139
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, priority, resource, options);
|
9140
9140
|
return poller.pollUntilDone();
|
9141
9141
|
});
|
@@ -9148,17 +9148,17 @@ class LocalRulesImpl {
|
|
9148
9148
|
* @param options The options parameters.
|
9149
9149
|
*/
|
9150
9150
|
beginDelete(resourceGroupName, localRulestackName, priority, options) {
|
9151
|
-
return tslib.__awaiter(this,
|
9152
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
9151
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
9152
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
9153
9153
|
return this.client.sendOperationRequest(args, spec);
|
9154
9154
|
});
|
9155
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
9155
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
9156
9156
|
var _a;
|
9157
9157
|
let currentRawResponse = undefined;
|
9158
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
9158
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
9159
9159
|
const callback = (rawResponse, flatResponse) => {
|
9160
9160
|
currentRawResponse = rawResponse;
|
9161
|
-
providedCallback === null || providedCallback ===
|
9161
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
9162
9162
|
};
|
9163
9163
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
9164
9164
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -9177,8 +9177,8 @@ class LocalRulesImpl {
|
|
9177
9177
|
spec: deleteOperationSpec$1
|
9178
9178
|
});
|
9179
9179
|
const poller = yield coreLro.createHttpPoller(lro, {
|
9180
|
-
restoreFrom: options === null || options ===
|
9181
|
-
intervalInMs: options === null || options ===
|
9180
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
9181
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
9182
9182
|
resourceLocationConfig: "azure-async-operation"
|
9183
9183
|
});
|
9184
9184
|
yield poller.poll();
|
@@ -9193,7 +9193,7 @@ class LocalRulesImpl {
|
|
9193
9193
|
* @param options The options parameters.
|
9194
9194
|
*/
|
9195
9195
|
beginDeleteAndWait(resourceGroupName, localRulestackName, priority, options) {
|
9196
|
-
return tslib.__awaiter(this,
|
9196
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
9197
9197
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, priority, options);
|
9198
9198
|
return poller.pollUntilDone();
|
9199
9199
|
});
|
@@ -9459,7 +9459,7 @@ class PrefixListLocalRulestackImpl {
|
|
9459
9459
|
return this;
|
9460
9460
|
},
|
9461
9461
|
byPage: (settings) => {
|
9462
|
-
if (settings === null || settings ===
|
9462
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
9463
9463
|
throw new Error("maxPageSize is not supported by this operation.");
|
9464
9464
|
}
|
9465
9465
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
@@ -9469,7 +9469,7 @@ class PrefixListLocalRulestackImpl {
|
|
9469
9469
|
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
9470
9470
|
return tslib.__asyncGenerator(this, arguments, function* listByLocalRulestacksPagingPage_1() {
|
9471
9471
|
let result;
|
9472
|
-
let continuationToken = settings === null || settings ===
|
9472
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
9473
9473
|
if (!continuationToken) {
|
9474
9474
|
result = yield tslib.__await(this._listByLocalRulestacks(resourceGroupName, localRulestackName, options));
|
9475
9475
|
let page = result.value || [];
|
@@ -9534,17 +9534,17 @@ class PrefixListLocalRulestackImpl {
|
|
9534
9534
|
* @param options The options parameters.
|
9535
9535
|
*/
|
9536
9536
|
beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options) {
|
9537
|
-
return tslib.__awaiter(this,
|
9538
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
9537
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
9538
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
9539
9539
|
return this.client.sendOperationRequest(args, spec);
|
9540
9540
|
});
|
9541
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
9541
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
9542
9542
|
var _a;
|
9543
9543
|
let currentRawResponse = undefined;
|
9544
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
9544
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
9545
9545
|
const callback = (rawResponse, flatResponse) => {
|
9546
9546
|
currentRawResponse = rawResponse;
|
9547
|
-
providedCallback === null || providedCallback ===
|
9547
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
9548
9548
|
};
|
9549
9549
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
9550
9550
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -9563,8 +9563,8 @@ class PrefixListLocalRulestackImpl {
|
|
9563
9563
|
spec: createOrUpdateOperationSpec
|
9564
9564
|
});
|
9565
9565
|
const poller = yield coreLro.createHttpPoller(lro, {
|
9566
|
-
restoreFrom: options === null || options ===
|
9567
|
-
intervalInMs: options === null || options ===
|
9566
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
9567
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
9568
9568
|
resourceLocationConfig: "azure-async-operation"
|
9569
9569
|
});
|
9570
9570
|
yield poller.poll();
|
@@ -9580,7 +9580,7 @@ class PrefixListLocalRulestackImpl {
|
|
9580
9580
|
* @param options The options parameters.
|
9581
9581
|
*/
|
9582
9582
|
beginCreateOrUpdateAndWait(resourceGroupName, localRulestackName, name, resource, options) {
|
9583
|
-
return tslib.__awaiter(this,
|
9583
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
9584
9584
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, localRulestackName, name, resource, options);
|
9585
9585
|
return poller.pollUntilDone();
|
9586
9586
|
});
|
@@ -9593,17 +9593,17 @@ class PrefixListLocalRulestackImpl {
|
|
9593
9593
|
* @param options The options parameters.
|
9594
9594
|
*/
|
9595
9595
|
beginDelete(resourceGroupName, localRulestackName, name, options) {
|
9596
|
-
return tslib.__awaiter(this,
|
9597
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
9596
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
9597
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
9598
9598
|
return this.client.sendOperationRequest(args, spec);
|
9599
9599
|
});
|
9600
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
9600
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
9601
9601
|
var _a;
|
9602
9602
|
let currentRawResponse = undefined;
|
9603
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
9603
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
9604
9604
|
const callback = (rawResponse, flatResponse) => {
|
9605
9605
|
currentRawResponse = rawResponse;
|
9606
|
-
providedCallback === null || providedCallback ===
|
9606
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
9607
9607
|
};
|
9608
9608
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
9609
9609
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -9622,8 +9622,8 @@ class PrefixListLocalRulestackImpl {
|
|
9622
9622
|
spec: deleteOperationSpec
|
9623
9623
|
});
|
9624
9624
|
const poller = yield coreLro.createHttpPoller(lro, {
|
9625
|
-
restoreFrom: options === null || options ===
|
9626
|
-
intervalInMs: options === null || options ===
|
9625
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
9626
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
9627
9627
|
resourceLocationConfig: "azure-async-operation"
|
9628
9628
|
});
|
9629
9629
|
yield poller.poll();
|
@@ -9638,7 +9638,7 @@ class PrefixListLocalRulestackImpl {
|
|
9638
9638
|
* @param options The options parameters.
|
9639
9639
|
*/
|
9640
9640
|
beginDeleteAndWait(resourceGroupName, localRulestackName, name, options) {
|
9641
|
-
return tslib.__awaiter(this,
|
9641
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
9642
9642
|
const poller = yield this.beginDelete(resourceGroupName, localRulestackName, name, options);
|
9643
9643
|
return poller.pollUntilDone();
|
9644
9644
|
});
|
@@ -9811,10 +9811,10 @@ class PaloAltoNetworksCloudngfw extends coreClient__namespace.ServiceClient {
|
|
9811
9811
|
: `${packageDetails}`;
|
9812
9812
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
9813
9813
|
userAgentPrefix
|
9814
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
9814
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
9815
9815
|
super(optionsWithDefaults);
|
9816
9816
|
let bearerTokenAuthenticationPolicyFound = false;
|
9817
|
-
if ((options === null || options ===
|
9817
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
9818
9818
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
9819
9819
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
9820
9820
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
@@ -9828,7 +9828,7 @@ class PaloAltoNetworksCloudngfw extends coreClient__namespace.ServiceClient {
|
|
9828
9828
|
});
|
9829
9829
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
9830
9830
|
credential: credentials,
|
9831
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
9831
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
9832
9832
|
challengeCallbacks: {
|
9833
9833
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
9834
9834
|
}
|
@@ -9863,7 +9863,7 @@ class PaloAltoNetworksCloudngfw extends coreClient__namespace.ServiceClient {
|
|
9863
9863
|
const apiVersionPolicy = {
|
9864
9864
|
name: "CustomApiVersionPolicy",
|
9865
9865
|
sendRequest(request, next) {
|
9866
|
-
return tslib.__awaiter(this,
|
9866
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
9867
9867
|
const param = request.url.split("?");
|
9868
9868
|
if (param.length > 1) {
|
9869
9869
|
const newParams = param[1].split("&").map((item) => {
|