@azure/arm-paloaltonetworksngfw 1.1.1-alpha.20250620.1 → 1.1.1-alpha.20250721.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +307 -146
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/certificateObjectGlobalRulestack.js +45 -52
  6. package/dist/browser/operations/certificateObjectGlobalRulestack.js.map +1 -1
  7. package/dist/browser/operations/certificateObjectLocalRulestack.js +45 -52
  8. package/dist/browser/operations/certificateObjectLocalRulestack.js.map +1 -1
  9. package/dist/browser/operations/firewallStatus.js +23 -40
  10. package/dist/browser/operations/firewallStatus.js.map +1 -1
  11. package/dist/browser/operations/firewalls.js +67 -91
  12. package/dist/browser/operations/firewalls.js.map +1 -1
  13. package/dist/browser/operations/fqdnListGlobalRulestack.js +45 -52
  14. package/dist/browser/operations/fqdnListGlobalRulestack.js.map +1 -1
  15. package/dist/browser/operations/fqdnListLocalRulestack.js +45 -52
  16. package/dist/browser/operations/fqdnListLocalRulestack.js.map +1 -1
  17. package/dist/browser/operations/globalRulestack.js +56 -58
  18. package/dist/browser/operations/globalRulestack.js.map +1 -1
  19. package/dist/browser/operations/localRules.js +45 -52
  20. package/dist/browser/operations/localRules.js.map +1 -1
  21. package/dist/browser/operations/localRulestacks.js +78 -97
  22. package/dist/browser/operations/localRulestacks.js.map +1 -1
  23. package/dist/browser/operations/operations.js +23 -40
  24. package/dist/browser/operations/operations.js.map +1 -1
  25. package/dist/browser/operations/postRules.js +45 -52
  26. package/dist/browser/operations/postRules.js.map +1 -1
  27. package/dist/browser/operations/preRules.js +45 -52
  28. package/dist/browser/operations/preRules.js.map +1 -1
  29. package/dist/browser/operations/prefixListGlobalRulestack.js +45 -52
  30. package/dist/browser/operations/prefixListGlobalRulestack.js.map +1 -1
  31. package/dist/browser/operations/prefixListLocalRulestack.js +45 -52
  32. package/dist/browser/operations/prefixListLocalRulestack.js.map +1 -1
  33. package/dist/browser/pagingHelper.js +2 -4
  34. package/dist/browser/pagingHelper.js.map +1 -1
  35. package/dist/browser/paloAltoNetworksCloudngfw.js +27 -5
  36. package/dist/browser/paloAltoNetworksCloudngfw.js.map +1 -1
  37. package/dist/commonjs/lroImpl.js +7 -3
  38. package/dist/commonjs/lroImpl.js.map +1 -1
  39. package/dist/commonjs/models/mappers.js +307 -146
  40. package/dist/commonjs/models/mappers.js.map +1 -1
  41. package/dist/commonjs/operations/certificateObjectGlobalRulestack.js +45 -51
  42. package/dist/commonjs/operations/certificateObjectGlobalRulestack.js.map +1 -1
  43. package/dist/commonjs/operations/certificateObjectLocalRulestack.js +45 -51
  44. package/dist/commonjs/operations/certificateObjectLocalRulestack.js.map +1 -1
  45. package/dist/commonjs/operations/firewallStatus.js +23 -39
  46. package/dist/commonjs/operations/firewallStatus.js.map +1 -1
  47. package/dist/commonjs/operations/firewalls.js +67 -90
  48. package/dist/commonjs/operations/firewalls.js.map +1 -1
  49. package/dist/commonjs/operations/fqdnListGlobalRulestack.js +45 -51
  50. package/dist/commonjs/operations/fqdnListGlobalRulestack.js.map +1 -1
  51. package/dist/commonjs/operations/fqdnListLocalRulestack.js +45 -51
  52. package/dist/commonjs/operations/fqdnListLocalRulestack.js.map +1 -1
  53. package/dist/commonjs/operations/globalRulestack.js +56 -57
  54. package/dist/commonjs/operations/globalRulestack.js.map +1 -1
  55. package/dist/commonjs/operations/localRules.js +45 -51
  56. package/dist/commonjs/operations/localRules.js.map +1 -1
  57. package/dist/commonjs/operations/localRulestacks.js +78 -96
  58. package/dist/commonjs/operations/localRulestacks.js.map +1 -1
  59. package/dist/commonjs/operations/operations.js +23 -39
  60. package/dist/commonjs/operations/operations.js.map +1 -1
  61. package/dist/commonjs/operations/postRules.js +45 -51
  62. package/dist/commonjs/operations/postRules.js.map +1 -1
  63. package/dist/commonjs/operations/preRules.js +45 -51
  64. package/dist/commonjs/operations/preRules.js.map +1 -1
  65. package/dist/commonjs/operations/prefixListGlobalRulestack.js +45 -51
  66. package/dist/commonjs/operations/prefixListGlobalRulestack.js.map +1 -1
  67. package/dist/commonjs/operations/prefixListLocalRulestack.js +45 -51
  68. package/dist/commonjs/operations/prefixListLocalRulestack.js.map +1 -1
  69. package/dist/commonjs/pagingHelper.js +2 -4
  70. package/dist/commonjs/pagingHelper.js.map +1 -1
  71. package/dist/commonjs/paloAltoNetworksCloudngfw.js +27 -5
  72. package/dist/commonjs/paloAltoNetworksCloudngfw.js.map +1 -1
  73. package/dist/commonjs/tsdoc-metadata.json +11 -11
  74. package/dist/esm/lroImpl.js +7 -3
  75. package/dist/esm/lroImpl.js.map +1 -1
  76. package/dist/esm/models/mappers.js +307 -146
  77. package/dist/esm/models/mappers.js.map +1 -1
  78. package/dist/esm/operations/certificateObjectGlobalRulestack.js +45 -52
  79. package/dist/esm/operations/certificateObjectGlobalRulestack.js.map +1 -1
  80. package/dist/esm/operations/certificateObjectLocalRulestack.js +45 -52
  81. package/dist/esm/operations/certificateObjectLocalRulestack.js.map +1 -1
  82. package/dist/esm/operations/firewallStatus.js +23 -40
  83. package/dist/esm/operations/firewallStatus.js.map +1 -1
  84. package/dist/esm/operations/firewalls.js +67 -91
  85. package/dist/esm/operations/firewalls.js.map +1 -1
  86. package/dist/esm/operations/fqdnListGlobalRulestack.js +45 -52
  87. package/dist/esm/operations/fqdnListGlobalRulestack.js.map +1 -1
  88. package/dist/esm/operations/fqdnListLocalRulestack.js +45 -52
  89. package/dist/esm/operations/fqdnListLocalRulestack.js.map +1 -1
  90. package/dist/esm/operations/globalRulestack.js +56 -58
  91. package/dist/esm/operations/globalRulestack.js.map +1 -1
  92. package/dist/esm/operations/localRules.js +45 -52
  93. package/dist/esm/operations/localRules.js.map +1 -1
  94. package/dist/esm/operations/localRulestacks.js +78 -97
  95. package/dist/esm/operations/localRulestacks.js.map +1 -1
  96. package/dist/esm/operations/operations.js +23 -40
  97. package/dist/esm/operations/operations.js.map +1 -1
  98. package/dist/esm/operations/postRules.js +45 -52
  99. package/dist/esm/operations/postRules.js.map +1 -1
  100. package/dist/esm/operations/preRules.js +45 -52
  101. package/dist/esm/operations/preRules.js.map +1 -1
  102. package/dist/esm/operations/prefixListGlobalRulestack.js +45 -52
  103. package/dist/esm/operations/prefixListGlobalRulestack.js.map +1 -1
  104. package/dist/esm/operations/prefixListLocalRulestack.js +45 -52
  105. package/dist/esm/operations/prefixListLocalRulestack.js.map +1 -1
  106. package/dist/esm/pagingHelper.js +2 -4
  107. package/dist/esm/pagingHelper.js.map +1 -1
  108. package/dist/esm/paloAltoNetworksCloudngfw.js +27 -5
  109. package/dist/esm/paloAltoNetworksCloudngfw.js.map +1 -1
  110. package/dist/react-native/lroImpl.js +7 -3
  111. package/dist/react-native/lroImpl.js.map +1 -1
  112. package/dist/react-native/models/mappers.js +307 -146
  113. package/dist/react-native/models/mappers.js.map +1 -1
  114. package/dist/react-native/operations/certificateObjectGlobalRulestack.js +45 -52
  115. package/dist/react-native/operations/certificateObjectGlobalRulestack.js.map +1 -1
  116. package/dist/react-native/operations/certificateObjectLocalRulestack.js +45 -52
  117. package/dist/react-native/operations/certificateObjectLocalRulestack.js.map +1 -1
  118. package/dist/react-native/operations/firewallStatus.js +23 -40
  119. package/dist/react-native/operations/firewallStatus.js.map +1 -1
  120. package/dist/react-native/operations/firewalls.js +67 -91
  121. package/dist/react-native/operations/firewalls.js.map +1 -1
  122. package/dist/react-native/operations/fqdnListGlobalRulestack.js +45 -52
  123. package/dist/react-native/operations/fqdnListGlobalRulestack.js.map +1 -1
  124. package/dist/react-native/operations/fqdnListLocalRulestack.js +45 -52
  125. package/dist/react-native/operations/fqdnListLocalRulestack.js.map +1 -1
  126. package/dist/react-native/operations/globalRulestack.js +56 -58
  127. package/dist/react-native/operations/globalRulestack.js.map +1 -1
  128. package/dist/react-native/operations/localRules.js +45 -52
  129. package/dist/react-native/operations/localRules.js.map +1 -1
  130. package/dist/react-native/operations/localRulestacks.js +78 -97
  131. package/dist/react-native/operations/localRulestacks.js.map +1 -1
  132. package/dist/react-native/operations/operations.js +23 -40
  133. package/dist/react-native/operations/operations.js.map +1 -1
  134. package/dist/react-native/operations/postRules.js +45 -52
  135. package/dist/react-native/operations/postRules.js.map +1 -1
  136. package/dist/react-native/operations/preRules.js +45 -52
  137. package/dist/react-native/operations/preRules.js.map +1 -1
  138. package/dist/react-native/operations/prefixListGlobalRulestack.js +45 -52
  139. package/dist/react-native/operations/prefixListGlobalRulestack.js.map +1 -1
  140. package/dist/react-native/operations/prefixListLocalRulestack.js +45 -52
  141. package/dist/react-native/operations/prefixListLocalRulestack.js.map +1 -1
  142. package/dist/react-native/pagingHelper.js +2 -4
  143. package/dist/react-native/pagingHelper.js.map +1 -1
  144. package/dist/react-native/paloAltoNetworksCloudngfw.js +27 -5
  145. package/dist/react-native/paloAltoNetworksCloudngfw.js.map +1 -1
  146. package/package.json +2 -2
  147. /package/review/{arm-paloaltonetworksngfw.api.md → arm-paloaltonetworksngfw-node.api.md} +0 -0
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing GlobalRulestack operations. */
17
16
  export class GlobalRulestackImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class GlobalRulestack class.
20
20
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class GlobalRulestackImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listPagingPage(options, settings);
43
43
  }
44
44
  };
45
45
  }
46
- listPagingPage(options, settings) {
47
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._list(options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._list(options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listPagingAll(options) {
67
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listPagingAll(options) {
65
+ for await (const page of this.listPagingPage(options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * List GlobalRulestackResource resources by Tenant
@@ -109,14 +92,19 @@ export class GlobalRulestackImpl {
109
92
  return this.client.sendOperationRequest(args, spec);
110
93
  };
111
94
  const sendOperationFn = async (args, spec) => {
112
- var _a;
113
95
  let currentRawResponse = undefined;
114
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
96
+ const providedCallback = args.options?.onResponse;
115
97
  const callback = (rawResponse, flatResponse) => {
116
98
  currentRawResponse = rawResponse;
117
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
99
+ providedCallback?.(rawResponse, flatResponse);
100
+ };
101
+ const updatedArgs = {
102
+ ...args,
103
+ options: {
104
+ ...args.options,
105
+ onResponse: callback
106
+ }
118
107
  };
119
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
120
108
  const flatResponse = await directSendOperation(updatedArgs, spec);
121
109
  return {
122
110
  flatResponse,
@@ -133,8 +121,8 @@ export class GlobalRulestackImpl {
133
121
  spec: createOrUpdateOperationSpec
134
122
  });
135
123
  const poller = await createHttpPoller(lro, {
136
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
137
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
124
+ restoreFrom: options?.resumeFrom,
125
+ intervalInMs: options?.updateIntervalInMs,
138
126
  resourceLocationConfig: "azure-async-operation"
139
127
  });
140
128
  await poller.poll();
@@ -169,14 +157,19 @@ export class GlobalRulestackImpl {
169
157
  return this.client.sendOperationRequest(args, spec);
170
158
  };
171
159
  const sendOperationFn = async (args, spec) => {
172
- var _a;
173
160
  let currentRawResponse = undefined;
174
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
161
+ const providedCallback = args.options?.onResponse;
175
162
  const callback = (rawResponse, flatResponse) => {
176
163
  currentRawResponse = rawResponse;
177
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
164
+ providedCallback?.(rawResponse, flatResponse);
165
+ };
166
+ const updatedArgs = {
167
+ ...args,
168
+ options: {
169
+ ...args.options,
170
+ onResponse: callback
171
+ }
178
172
  };
179
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
180
173
  const flatResponse = await directSendOperation(updatedArgs, spec);
181
174
  return {
182
175
  flatResponse,
@@ -193,8 +186,8 @@ export class GlobalRulestackImpl {
193
186
  spec: deleteOperationSpec
194
187
  });
195
188
  const poller = await createHttpPoller(lro, {
196
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
197
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
189
+ restoreFrom: options?.resumeFrom,
190
+ intervalInMs: options?.updateIntervalInMs,
198
191
  resourceLocationConfig: "azure-async-operation"
199
192
  });
200
193
  await poller.poll();
@@ -219,14 +212,19 @@ export class GlobalRulestackImpl {
219
212
  return this.client.sendOperationRequest(args, spec);
220
213
  };
221
214
  const sendOperationFn = async (args, spec) => {
222
- var _a;
223
215
  let currentRawResponse = undefined;
224
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
216
+ const providedCallback = args.options?.onResponse;
225
217
  const callback = (rawResponse, flatResponse) => {
226
218
  currentRawResponse = rawResponse;
227
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
219
+ providedCallback?.(rawResponse, flatResponse);
220
+ };
221
+ const updatedArgs = {
222
+ ...args,
223
+ options: {
224
+ ...args.options,
225
+ onResponse: callback
226
+ }
228
227
  };
229
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
230
228
  const flatResponse = await directSendOperation(updatedArgs, spec);
231
229
  return {
232
230
  flatResponse,
@@ -243,8 +241,8 @@ export class GlobalRulestackImpl {
243
241
  spec: commitOperationSpec
244
242
  });
245
243
  const poller = await createHttpPoller(lro, {
246
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
247
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
244
+ restoreFrom: options?.resumeFrom,
245
+ intervalInMs: options?.updateIntervalInMs,
248
246
  resourceLocationConfig: "location"
249
247
  });
250
248
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"globalRulestack.js","sourceRoot":"","sources":["../../../src/operations/globalRulestack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAmC9C,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,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,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,mBAAmB,CAAC;IACjE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { GlobalRulestack } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n GlobalRulestackResource,\n GlobalRulestackListNextOptionalParams,\n GlobalRulestackListOptionalParams,\n GlobalRulestackListResponse,\n GlobalRulestackGetOptionalParams,\n GlobalRulestackGetResponse,\n GlobalRulestackCreateOrUpdateOptionalParams,\n GlobalRulestackCreateOrUpdateResponse,\n GlobalRulestackResourceUpdate,\n GlobalRulestackUpdateOptionalParams,\n GlobalRulestackUpdateResponse,\n GlobalRulestackDeleteOptionalParams,\n GlobalRulestackCommitOptionalParams,\n GlobalRulestackGetChangeLogOptionalParams,\n GlobalRulestackGetChangeLogResponse,\n AdvSecurityObjectTypeEnum,\n GlobalRulestackListAdvancedSecurityObjectsOptionalParams,\n GlobalRulestackListAdvancedSecurityObjectsResponse,\n GlobalRulestackListAppIdsOptionalParams,\n GlobalRulestackListAppIdsResponse,\n GlobalRulestackListCountriesOptionalParams,\n GlobalRulestackListCountriesResponse,\n GlobalRulestackListFirewallsOptionalParams,\n GlobalRulestackListFirewallsResponse,\n GlobalRulestackListPredefinedUrlCategoriesOptionalParams,\n GlobalRulestackListPredefinedUrlCategoriesResponse,\n SecurityServicesTypeEnum,\n GlobalRulestackListSecurityServicesOptionalParams,\n GlobalRulestackListSecurityServicesResponse,\n GlobalRulestackRevertOptionalParams,\n GlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GlobalRulestack operations. */\nexport class GlobalRulestackImpl implements GlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class GlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List GlobalRulestackResource resources by Tenant\n * @param options The options parameters.\n */\n public list(\n options?: GlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<GlobalRulestackResource> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: GlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<GlobalRulestackResource[]> {\n let result: GlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: GlobalRulestackListOptionalParams\n ): AsyncIterableIterator<GlobalRulestackResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List GlobalRulestackResource resources by Tenant\n * @param options The options parameters.\n */\n private _list(\n options?: GlobalRulestackListOptionalParams\n ): Promise<GlobalRulestackListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n options?: GlobalRulestackGetOptionalParams\n ): Promise<GlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n resource: GlobalRulestackResource,\n options?: GlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<GlobalRulestackCreateOrUpdateResponse>,\n GlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<GlobalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n GlobalRulestackCreateOrUpdateResponse,\n OperationState<GlobalRulestackCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n resource: GlobalRulestackResource,\n options?: GlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<GlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n update(\n globalRulestackName: string,\n properties: GlobalRulestackResourceUpdate,\n options?: GlobalRulestackUpdateOptionalParams\n ): Promise<GlobalRulestackUpdateResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, properties, options },\n updateOperationSpec\n );\n }\n\n /**\n * Delete a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n options?: GlobalRulestackDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n options?: GlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Commit rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginCommit(\n globalRulestackName: string,\n options?: GlobalRulestackCommitOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, options },\n spec: commitOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Commit rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginCommitAndWait(\n globalRulestackName: string,\n options?: GlobalRulestackCommitOptionalParams\n ): Promise<void> {\n const poller = await this.beginCommit(globalRulestackName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get changelog\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n getChangeLog(\n globalRulestackName: string,\n options?: GlobalRulestackGetChangeLogOptionalParams\n ): Promise<GlobalRulestackGetChangeLogResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n getChangeLogOperationSpec\n );\n }\n\n /**\n * Get the list of advanced security objects\n * @param globalRulestackName GlobalRulestack resource name\n * @param typeParam\n * @param options The options parameters.\n */\n listAdvancedSecurityObjects(\n globalRulestackName: string,\n typeParam: AdvSecurityObjectTypeEnum,\n options?: GlobalRulestackListAdvancedSecurityObjectsOptionalParams\n ): Promise<GlobalRulestackListAdvancedSecurityObjectsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, typeParam, options },\n listAdvancedSecurityObjectsOperationSpec\n );\n }\n\n /**\n * List of AppIds for GlobalRulestack ApiVersion\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listAppIds(\n globalRulestackName: string,\n options?: GlobalRulestackListAppIdsOptionalParams\n ): Promise<GlobalRulestackListAppIdsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listAppIdsOperationSpec\n );\n }\n\n /**\n * List of countries for Rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listCountries(\n globalRulestackName: string,\n options?: GlobalRulestackListCountriesOptionalParams\n ): Promise<GlobalRulestackListCountriesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listCountriesOperationSpec\n );\n }\n\n /**\n * List of Firewalls associated with Rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listFirewalls(\n globalRulestackName: string,\n options?: GlobalRulestackListFirewallsOptionalParams\n ): Promise<GlobalRulestackListFirewallsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listFirewallsOperationSpec\n );\n }\n\n /**\n * List predefined URL categories for rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listPredefinedUrlCategories(\n globalRulestackName: string,\n options?: GlobalRulestackListPredefinedUrlCategoriesOptionalParams\n ): Promise<GlobalRulestackListPredefinedUrlCategoriesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listPredefinedUrlCategoriesOperationSpec\n );\n }\n\n /**\n * List the security services for rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param typeParam\n * @param options The options parameters.\n */\n listSecurityServices(\n globalRulestackName: string,\n typeParam: SecurityServicesTypeEnum,\n options?: GlobalRulestackListSecurityServicesOptionalParams\n ): Promise<GlobalRulestackListSecurityServicesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, typeParam, options },\n listSecurityServicesOperationSpec\n );\n }\n\n /**\n * Revert rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n revert(\n globalRulestackName: string,\n options?: GlobalRulestackRevertOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n revertOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: GlobalRulestackListNextOptionalParams\n ): Promise<GlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst commitOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/commit\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getChangeLogOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/getChangeLog\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Changelog\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAdvancedSecurityObjectsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAdvancedSecurityObjects\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AdvSecurityObjectListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.typeParam\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAppIdsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAppIds\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListAppIdResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.appIdVersion,\n Parameters.appPrefix\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listCountriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listCountries\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CountriesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listFirewallsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listFirewalls\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListFirewallsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listPredefinedUrlCategoriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listPredefinedUrlCategories\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PredefinedUrlCategoriesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listSecurityServicesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listSecurityServices\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityServicesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.typeParam1\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst revertOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/revert\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"globalRulestack.js","sourceRoot":"","sources":["../../../src/operations/globalRulestack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAmC9C,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IACb,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,O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;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { GlobalRulestack } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n GlobalRulestackResource,\n GlobalRulestackListNextOptionalParams,\n GlobalRulestackListOptionalParams,\n GlobalRulestackListResponse,\n GlobalRulestackGetOptionalParams,\n GlobalRulestackGetResponse,\n GlobalRulestackCreateOrUpdateOptionalParams,\n GlobalRulestackCreateOrUpdateResponse,\n GlobalRulestackResourceUpdate,\n GlobalRulestackUpdateOptionalParams,\n GlobalRulestackUpdateResponse,\n GlobalRulestackDeleteOptionalParams,\n GlobalRulestackCommitOptionalParams,\n GlobalRulestackGetChangeLogOptionalParams,\n GlobalRulestackGetChangeLogResponse,\n AdvSecurityObjectTypeEnum,\n GlobalRulestackListAdvancedSecurityObjectsOptionalParams,\n GlobalRulestackListAdvancedSecurityObjectsResponse,\n GlobalRulestackListAppIdsOptionalParams,\n GlobalRulestackListAppIdsResponse,\n GlobalRulestackListCountriesOptionalParams,\n GlobalRulestackListCountriesResponse,\n GlobalRulestackListFirewallsOptionalParams,\n GlobalRulestackListFirewallsResponse,\n GlobalRulestackListPredefinedUrlCategoriesOptionalParams,\n GlobalRulestackListPredefinedUrlCategoriesResponse,\n SecurityServicesTypeEnum,\n GlobalRulestackListSecurityServicesOptionalParams,\n GlobalRulestackListSecurityServicesResponse,\n GlobalRulestackRevertOptionalParams,\n GlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GlobalRulestack operations. */\nexport class GlobalRulestackImpl implements GlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class GlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List GlobalRulestackResource resources by Tenant\n * @param options The options parameters.\n */\n public list(\n options?: GlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<GlobalRulestackResource> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: GlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<GlobalRulestackResource[]> {\n let result: GlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: GlobalRulestackListOptionalParams\n ): AsyncIterableIterator<GlobalRulestackResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List GlobalRulestackResource resources by Tenant\n * @param options The options parameters.\n */\n private _list(\n options?: GlobalRulestackListOptionalParams\n ): Promise<GlobalRulestackListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n options?: GlobalRulestackGetOptionalParams\n ): Promise<GlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n resource: GlobalRulestackResource,\n options?: GlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<GlobalRulestackCreateOrUpdateResponse>,\n GlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<GlobalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n GlobalRulestackCreateOrUpdateResponse,\n OperationState<GlobalRulestackCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n resource: GlobalRulestackResource,\n options?: GlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<GlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n update(\n globalRulestackName: string,\n properties: GlobalRulestackResourceUpdate,\n options?: GlobalRulestackUpdateOptionalParams\n ): Promise<GlobalRulestackUpdateResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, properties, options },\n updateOperationSpec\n );\n }\n\n /**\n * Delete a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n options?: GlobalRulestackDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n options?: GlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Commit rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginCommit(\n globalRulestackName: string,\n options?: GlobalRulestackCommitOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, options },\n spec: commitOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Commit rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginCommitAndWait(\n globalRulestackName: string,\n options?: GlobalRulestackCommitOptionalParams\n ): Promise<void> {\n const poller = await this.beginCommit(globalRulestackName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get changelog\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n getChangeLog(\n globalRulestackName: string,\n options?: GlobalRulestackGetChangeLogOptionalParams\n ): Promise<GlobalRulestackGetChangeLogResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n getChangeLogOperationSpec\n );\n }\n\n /**\n * Get the list of advanced security objects\n * @param globalRulestackName GlobalRulestack resource name\n * @param typeParam\n * @param options The options parameters.\n */\n listAdvancedSecurityObjects(\n globalRulestackName: string,\n typeParam: AdvSecurityObjectTypeEnum,\n options?: GlobalRulestackListAdvancedSecurityObjectsOptionalParams\n ): Promise<GlobalRulestackListAdvancedSecurityObjectsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, typeParam, options },\n listAdvancedSecurityObjectsOperationSpec\n );\n }\n\n /**\n * List of AppIds for GlobalRulestack ApiVersion\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listAppIds(\n globalRulestackName: string,\n options?: GlobalRulestackListAppIdsOptionalParams\n ): Promise<GlobalRulestackListAppIdsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listAppIdsOperationSpec\n );\n }\n\n /**\n * List of countries for Rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listCountries(\n globalRulestackName: string,\n options?: GlobalRulestackListCountriesOptionalParams\n ): Promise<GlobalRulestackListCountriesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listCountriesOperationSpec\n );\n }\n\n /**\n * List of Firewalls associated with Rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listFirewalls(\n globalRulestackName: string,\n options?: GlobalRulestackListFirewallsOptionalParams\n ): Promise<GlobalRulestackListFirewallsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listFirewallsOperationSpec\n );\n }\n\n /**\n * List predefined URL categories for rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listPredefinedUrlCategories(\n globalRulestackName: string,\n options?: GlobalRulestackListPredefinedUrlCategoriesOptionalParams\n ): Promise<GlobalRulestackListPredefinedUrlCategoriesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listPredefinedUrlCategoriesOperationSpec\n );\n }\n\n /**\n * List the security services for rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param typeParam\n * @param options The options parameters.\n */\n listSecurityServices(\n globalRulestackName: string,\n typeParam: SecurityServicesTypeEnum,\n options?: GlobalRulestackListSecurityServicesOptionalParams\n ): Promise<GlobalRulestackListSecurityServicesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, typeParam, options },\n listSecurityServicesOperationSpec\n );\n }\n\n /**\n * Revert rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n revert(\n globalRulestackName: string,\n options?: GlobalRulestackRevertOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n revertOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: GlobalRulestackListNextOptionalParams\n ): Promise<GlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst commitOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/commit\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getChangeLogOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/getChangeLog\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Changelog\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAdvancedSecurityObjectsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAdvancedSecurityObjects\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AdvSecurityObjectListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.typeParam\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAppIdsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAppIds\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListAppIdResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.appIdVersion,\n Parameters.appPrefix\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listCountriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listCountries\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CountriesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listFirewallsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listFirewalls\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListFirewallsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listPredefinedUrlCategoriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listPredefinedUrlCategories\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PredefinedUrlCategoriesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listSecurityServicesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listSecurityServices\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityServicesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.typeParam1\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst revertOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/revert\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing LocalRules operations. */
17
16
  export class LocalRulesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class LocalRules class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class LocalRulesImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
45
45
  }
46
46
  };
47
47
  }
48
- listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByLocalRulestacksPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByLocalRulestacks(resourceGroupName, localRulestackName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listByLocalRulestacksNext(resourceGroupName, localRulestackName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByLocalRulestacks(resourceGroupName, localRulestackName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listByLocalRulestacksNext(resourceGroupName, localRulestackName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listByLocalRulestacksPagingAll(resourceGroupName, localRulestackName, options) {
69
- return __asyncGenerator(this, arguments, function* listByLocalRulestacksPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
66
+ async *listByLocalRulestacksPagingAll(resourceGroupName, localRulestackName, options) {
67
+ for await (const page of this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * List LocalRulesResource resources by LocalRulestacks
@@ -117,14 +100,19 @@ export class LocalRulesImpl {
117
100
  return this.client.sendOperationRequest(args, spec);
118
101
  };
119
102
  const sendOperationFn = async (args, spec) => {
120
- var _a;
121
103
  let currentRawResponse = undefined;
122
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
104
+ const providedCallback = args.options?.onResponse;
123
105
  const callback = (rawResponse, flatResponse) => {
124
106
  currentRawResponse = rawResponse;
125
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
107
+ providedCallback?.(rawResponse, flatResponse);
108
+ };
109
+ const updatedArgs = {
110
+ ...args,
111
+ options: {
112
+ ...args.options,
113
+ onResponse: callback
114
+ }
126
115
  };
127
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
128
116
  const flatResponse = await directSendOperation(updatedArgs, spec);
129
117
  return {
130
118
  flatResponse,
@@ -147,8 +135,8 @@ export class LocalRulesImpl {
147
135
  spec: createOrUpdateOperationSpec
148
136
  });
149
137
  const poller = await createHttpPoller(lro, {
150
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
151
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
138
+ restoreFrom: options?.resumeFrom,
139
+ intervalInMs: options?.updateIntervalInMs,
152
140
  resourceLocationConfig: "azure-async-operation"
153
141
  });
154
142
  await poller.poll();
@@ -178,14 +166,19 @@ export class LocalRulesImpl {
178
166
  return this.client.sendOperationRequest(args, spec);
179
167
  };
180
168
  const sendOperationFn = async (args, spec) => {
181
- var _a;
182
169
  let currentRawResponse = undefined;
183
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
170
+ const providedCallback = args.options?.onResponse;
184
171
  const callback = (rawResponse, flatResponse) => {
185
172
  currentRawResponse = rawResponse;
186
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
173
+ providedCallback?.(rawResponse, flatResponse);
174
+ };
175
+ const updatedArgs = {
176
+ ...args,
177
+ options: {
178
+ ...args.options,
179
+ onResponse: callback
180
+ }
187
181
  };
188
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
189
182
  const flatResponse = await directSendOperation(updatedArgs, spec);
190
183
  return {
191
184
  flatResponse,
@@ -202,8 +195,8 @@ export class LocalRulesImpl {
202
195
  spec: deleteOperationSpec
203
196
  });
204
197
  const poller = await createHttpPoller(lro, {
205
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
206
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
198
+ restoreFrom: options?.resumeFrom,
199
+ intervalInMs: options?.updateIntervalInMs,
207
200
  resourceLocationConfig: "azure-async-operation"
208
201
  });
209
202
  await poller.poll();