@azure/arm-paloaltonetworksngfw 1.1.1-alpha.20250718.1 → 1.1.1-alpha.20250730.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-node.api.md +2026 -2026
@@ -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 CertificateObjectGlobalRulestack operations. */
17
16
  export class CertificateObjectGlobalRulestackImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class CertificateObjectGlobalRulestack class.
20
20
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class CertificateObjectGlobalRulestackImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listPagingPage(globalRulestackName, options, settings);
44
44
  }
45
45
  };
46
46
  }
47
- listPagingPage(globalRulestackName, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(globalRulestackName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(globalRulestackName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
47
+ async *listPagingPage(globalRulestackName, options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._list(globalRulestackName, options);
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield page;
56
+ }
57
+ while (continuationToken) {
58
+ result = await this._listNext(globalRulestackName, continuationToken, options);
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield page;
63
+ }
66
64
  }
67
- listPagingAll(globalRulestackName, options) {
68
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listPagingPage(globalRulestackName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
65
+ async *listPagingAll(globalRulestackName, options) {
66
+ for await (const page of this.listPagingPage(globalRulestackName, options)) {
67
+ yield* page;
68
+ }
86
69
  }
87
70
  /**
88
71
  * List CertificateObjectGlobalRulestackResource resources by Tenant
@@ -113,14 +96,19 @@ export class CertificateObjectGlobalRulestackImpl {
113
96
  return this.client.sendOperationRequest(args, spec);
114
97
  };
115
98
  const sendOperationFn = async (args, spec) => {
116
- var _a;
117
99
  let currentRawResponse = undefined;
118
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
100
+ const providedCallback = args.options?.onResponse;
119
101
  const callback = (rawResponse, flatResponse) => {
120
102
  currentRawResponse = rawResponse;
121
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
103
+ providedCallback?.(rawResponse, flatResponse);
104
+ };
105
+ const updatedArgs = {
106
+ ...args,
107
+ options: {
108
+ ...args.options,
109
+ onResponse: callback
110
+ }
122
111
  };
123
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
124
112
  const flatResponse = await directSendOperation(updatedArgs, spec);
125
113
  return {
126
114
  flatResponse,
@@ -137,8 +125,8 @@ export class CertificateObjectGlobalRulestackImpl {
137
125
  spec: createOrUpdateOperationSpec
138
126
  });
139
127
  const poller = await createHttpPoller(lro, {
140
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
141
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
128
+ restoreFrom: options?.resumeFrom,
129
+ intervalInMs: options?.updateIntervalInMs,
142
130
  resourceLocationConfig: "azure-async-operation"
143
131
  });
144
132
  await poller.poll();
@@ -166,14 +154,19 @@ export class CertificateObjectGlobalRulestackImpl {
166
154
  return this.client.sendOperationRequest(args, spec);
167
155
  };
168
156
  const sendOperationFn = async (args, spec) => {
169
- var _a;
170
157
  let currentRawResponse = undefined;
171
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
158
+ const providedCallback = args.options?.onResponse;
172
159
  const callback = (rawResponse, flatResponse) => {
173
160
  currentRawResponse = rawResponse;
174
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
161
+ providedCallback?.(rawResponse, flatResponse);
162
+ };
163
+ const updatedArgs = {
164
+ ...args,
165
+ options: {
166
+ ...args.options,
167
+ onResponse: callback
168
+ }
175
169
  };
176
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
177
170
  const flatResponse = await directSendOperation(updatedArgs, spec);
178
171
  return {
179
172
  flatResponse,
@@ -190,8 +183,8 @@ export class CertificateObjectGlobalRulestackImpl {
190
183
  spec: deleteOperationSpec
191
184
  });
192
185
  const poller = await createHttpPoller(lro, {
193
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
194
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
186
+ restoreFrom: options?.resumeFrom,
187
+ intervalInMs: options?.updateIntervalInMs,
195
188
  resourceLocationConfig: "azure-async-operation"
196
189
  });
197
190
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"certificateObjectGlobalRulestack.js","sourceRoot":"","sources":["../../../src/operations/certificateObjectGlobalRulestack.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;AAc9C,4CAA4C;AAC5C,oEAAoE;AAC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U,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,IAAI;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,kGAAkG;IACpG,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,IAAI;KAChB;IACD,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,kDAAkD;SACvE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,QAAQ;KACpB;IACD,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 { CertificateObjectGlobalRulestack } 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 CertificateObjectGlobalRulestackResource,\n CertificateObjectGlobalRulestackListNextOptionalParams,\n CertificateObjectGlobalRulestackListOptionalParams,\n CertificateObjectGlobalRulestackListResponse,\n CertificateObjectGlobalRulestackGetOptionalParams,\n CertificateObjectGlobalRulestackGetResponse,\n CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams,\n CertificateObjectGlobalRulestackCreateOrUpdateResponse,\n CertificateObjectGlobalRulestackDeleteOptionalParams,\n CertificateObjectGlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CertificateObjectGlobalRulestack operations. */\nexport class CertificateObjectGlobalRulestackImpl\n implements CertificateObjectGlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class CertificateObjectGlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List CertificateObjectGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n public list(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<CertificateObjectGlobalRulestackResource> {\n const iter = this.listPagingAll(globalRulestackName, 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(globalRulestackName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CertificateObjectGlobalRulestackResource[]> {\n let result: CertificateObjectGlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(globalRulestackName, 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(\n globalRulestackName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): AsyncIterableIterator<CertificateObjectGlobalRulestackResource> {\n for await (const page of this.listPagingPage(\n globalRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List CertificateObjectGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n private _list(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): Promise<CertificateObjectGlobalRulestackListResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackGetOptionalParams\n ): Promise<CertificateObjectGlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n name: string,\n resource: CertificateObjectGlobalRulestackResource,\n options?: CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CertificateObjectGlobalRulestackCreateOrUpdateResponse>,\n CertificateObjectGlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CertificateObjectGlobalRulestackCreateOrUpdateResponse> => {\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, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n CertificateObjectGlobalRulestackCreateOrUpdateResponse,\n OperationState<CertificateObjectGlobalRulestackCreateOrUpdateResponse>\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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n name: string,\n resource: CertificateObjectGlobalRulestackResource,\n options?: CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<CertificateObjectGlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackDeleteOptionalParams\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, name, 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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, name, options);\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param globalRulestackName GlobalRulestack resource name\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 globalRulestackName: string,\n nextLink: string,\n options?: CertificateObjectGlobalRulestackListNextOptionalParams\n ): Promise<CertificateObjectGlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResourceListResult\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 getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}\",\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: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"certificateObjectGlobalRulestack.js","sourceRoot":"","sources":["../../../src/operations/certificateObjectGlobalRulestack.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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E,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,kGAAkG;IACpG,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,IAAI;KAChB;IACD,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,kDAAkD;SACvE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,QAAQ;KACpB;IACD,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 { CertificateObjectGlobalRulestack } 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 CertificateObjectGlobalRulestackResource,\n CertificateObjectGlobalRulestackListNextOptionalParams,\n CertificateObjectGlobalRulestackListOptionalParams,\n CertificateObjectGlobalRulestackListResponse,\n CertificateObjectGlobalRulestackGetOptionalParams,\n CertificateObjectGlobalRulestackGetResponse,\n CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams,\n CertificateObjectGlobalRulestackCreateOrUpdateResponse,\n CertificateObjectGlobalRulestackDeleteOptionalParams,\n CertificateObjectGlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CertificateObjectGlobalRulestack operations. */\nexport class CertificateObjectGlobalRulestackImpl\n implements CertificateObjectGlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class CertificateObjectGlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List CertificateObjectGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n public list(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<CertificateObjectGlobalRulestackResource> {\n const iter = this.listPagingAll(globalRulestackName, 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(globalRulestackName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CertificateObjectGlobalRulestackResource[]> {\n let result: CertificateObjectGlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(globalRulestackName, 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(\n globalRulestackName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): AsyncIterableIterator<CertificateObjectGlobalRulestackResource> {\n for await (const page of this.listPagingPage(\n globalRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List CertificateObjectGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n private _list(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): Promise<CertificateObjectGlobalRulestackListResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackGetOptionalParams\n ): Promise<CertificateObjectGlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n name: string,\n resource: CertificateObjectGlobalRulestackResource,\n options?: CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CertificateObjectGlobalRulestackCreateOrUpdateResponse>,\n CertificateObjectGlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CertificateObjectGlobalRulestackCreateOrUpdateResponse> => {\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, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n CertificateObjectGlobalRulestackCreateOrUpdateResponse,\n OperationState<CertificateObjectGlobalRulestackCreateOrUpdateResponse>\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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n name: string,\n resource: CertificateObjectGlobalRulestackResource,\n options?: CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<CertificateObjectGlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackDeleteOptionalParams\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, name, 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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, name, options);\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param globalRulestackName GlobalRulestack resource name\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 globalRulestackName: string,\n nextLink: string,\n options?: CertificateObjectGlobalRulestackListNextOptionalParams\n ): Promise<CertificateObjectGlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResourceListResult\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 getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/certificates/{name}\",\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: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.nextLink\n ],\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 CertificateObjectLocalRulestack operations. */
17
16
  export class CertificateObjectLocalRulestackImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class CertificateObjectLocalRulestack class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class CertificateObjectLocalRulestackImpl {
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 CertificateObjectLocalRulestackResource resources by LocalRulestacks
@@ -117,14 +100,19 @@ export class CertificateObjectLocalRulestackImpl {
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,
@@ -141,8 +129,8 @@ export class CertificateObjectLocalRulestackImpl {
141
129
  spec: createOrUpdateOperationSpec
142
130
  });
143
131
  const poller = await createHttpPoller(lro, {
144
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
145
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
132
+ restoreFrom: options?.resumeFrom,
133
+ intervalInMs: options?.updateIntervalInMs,
146
134
  resourceLocationConfig: "azure-async-operation"
147
135
  });
148
136
  await poller.poll();
@@ -172,14 +160,19 @@ export class CertificateObjectLocalRulestackImpl {
172
160
  return this.client.sendOperationRequest(args, spec);
173
161
  };
174
162
  const sendOperationFn = async (args, spec) => {
175
- var _a;
176
163
  let currentRawResponse = undefined;
177
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
164
+ const providedCallback = args.options?.onResponse;
178
165
  const callback = (rawResponse, flatResponse) => {
179
166
  currentRawResponse = rawResponse;
180
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
167
+ providedCallback?.(rawResponse, flatResponse);
168
+ };
169
+ const updatedArgs = {
170
+ ...args,
171
+ options: {
172
+ ...args.options,
173
+ onResponse: callback
174
+ }
181
175
  };
182
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
183
176
  const flatResponse = await directSendOperation(updatedArgs, spec);
184
177
  return {
185
178
  flatResponse,
@@ -196,8 +189,8 @@ export class CertificateObjectLocalRulestackImpl {
196
189
  spec: deleteOperationSpec
197
190
  });
198
191
  const poller = await createHttpPoller(lro, {
199
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
200
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
192
+ restoreFrom: options?.resumeFrom,
193
+ intervalInMs: options?.updateIntervalInMs,
201
194
  resourceLocationConfig: "azure-async-operation"
202
195
  });
203
196
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"certificateObjectLocalRulestack.js","sourceRoot":"","sources":["../../../src/operations/certificateObjectLocalRulestack.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,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,IAAI;QACf,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iDAAiD;SACtE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,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 { CertificateObjectLocalRulestack } 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 CertificateObjectLocalRulestackResource,\n CertificateObjectLocalRulestackListByLocalRulestacksNextOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksResponse,\n CertificateObjectLocalRulestackGetOptionalParams,\n CertificateObjectLocalRulestackGetResponse,\n CertificateObjectLocalRulestackCreateOrUpdateOptionalParams,\n CertificateObjectLocalRulestackCreateOrUpdateResponse,\n CertificateObjectLocalRulestackDeleteOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CertificateObjectLocalRulestack operations. */\nexport class CertificateObjectLocalRulestackImpl\n implements CertificateObjectLocalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class CertificateObjectLocalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List CertificateObjectLocalRulestackResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n public listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<CertificateObjectLocalRulestackResource> {\n const iter = this.listByLocalRulestacksPagingAll(\n resourceGroupName,\n localRulestackName,\n options\n );\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.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByLocalRulestacksPagingPage(\n resourceGroupName: string,\n localRulestackName: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CertificateObjectLocalRulestackResource[]> {\n let result: CertificateObjectLocalRulestackListByLocalRulestacksResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLocalRulestacks(\n resourceGroupName,\n localRulestackName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByLocalRulestacksNext(\n resourceGroupName,\n localRulestackName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByLocalRulestacksPagingAll(\n resourceGroupName: string,\n localRulestackName: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<CertificateObjectLocalRulestackResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List CertificateObjectLocalRulestackResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n private _listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): Promise<CertificateObjectLocalRulestackListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackGetOptionalParams\n ): Promise<CertificateObjectLocalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: CertificateObjectLocalRulestackResource,\n options?: CertificateObjectLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CertificateObjectLocalRulestackCreateOrUpdateResponse>,\n CertificateObjectLocalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CertificateObjectLocalRulestackCreateOrUpdateResponse> => {\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: { resourceGroupName, localRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n CertificateObjectLocalRulestackCreateOrUpdateResponse,\n OperationState<CertificateObjectLocalRulestackCreateOrUpdateResponse>\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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: CertificateObjectLocalRulestackResource,\n options?: CertificateObjectLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<CertificateObjectLocalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n localRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackDeleteOptionalParams\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: { resourceGroupName, localRulestackName, name, 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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n localRulestackName,\n name,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByLocalRulestacksNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param nextLink The nextLink from the previous successful call to the ListByLocalRulestacks method.\n * @param options The options parameters.\n */\n private _listByLocalRulestacksNext(\n resourceGroupName: string,\n localRulestackName: string,\n nextLink: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksNextOptionalParams\n ): Promise<CertificateObjectLocalRulestackListByLocalRulestacksNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, nextLink, options },\n listByLocalRulestacksNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocalRulestacksOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}\",\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: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByLocalRulestacksNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"certificateObjectLocalRulestack.js","sourceRoot":"","sources":["../../../src/operations/certificateObjectLocalRulestack.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;AAc9C,4CAA4C;AAC5C,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAE7B,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qBAAqB,CAC1B,iBAAyB,EACzB,kBAA0B,EAC1B,OAA4E;QAE5E,MAAM,IAAI,GAAG,IAAI,CAAC,8BAA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AI;QACf,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,kKAAkK;IACpK,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,IAAI;QACf,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iDAAiD;SACtE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,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 { CertificateObjectLocalRulestack } 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 CertificateObjectLocalRulestackResource,\n CertificateObjectLocalRulestackListByLocalRulestacksNextOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksResponse,\n CertificateObjectLocalRulestackGetOptionalParams,\n CertificateObjectLocalRulestackGetResponse,\n CertificateObjectLocalRulestackCreateOrUpdateOptionalParams,\n CertificateObjectLocalRulestackCreateOrUpdateResponse,\n CertificateObjectLocalRulestackDeleteOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CertificateObjectLocalRulestack operations. */\nexport class CertificateObjectLocalRulestackImpl\n implements CertificateObjectLocalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class CertificateObjectLocalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List CertificateObjectLocalRulestackResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n public listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<CertificateObjectLocalRulestackResource> {\n const iter = this.listByLocalRulestacksPagingAll(\n resourceGroupName,\n localRulestackName,\n options\n );\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.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByLocalRulestacksPagingPage(\n resourceGroupName: string,\n localRulestackName: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CertificateObjectLocalRulestackResource[]> {\n let result: CertificateObjectLocalRulestackListByLocalRulestacksResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLocalRulestacks(\n resourceGroupName,\n localRulestackName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByLocalRulestacksNext(\n resourceGroupName,\n localRulestackName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByLocalRulestacksPagingAll(\n resourceGroupName: string,\n localRulestackName: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<CertificateObjectLocalRulestackResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List CertificateObjectLocalRulestackResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n private _listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): Promise<CertificateObjectLocalRulestackListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackGetOptionalParams\n ): Promise<CertificateObjectLocalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: CertificateObjectLocalRulestackResource,\n options?: CertificateObjectLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CertificateObjectLocalRulestackCreateOrUpdateResponse>,\n CertificateObjectLocalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CertificateObjectLocalRulestackCreateOrUpdateResponse> => {\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: { resourceGroupName, localRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n CertificateObjectLocalRulestackCreateOrUpdateResponse,\n OperationState<CertificateObjectLocalRulestackCreateOrUpdateResponse>\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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: CertificateObjectLocalRulestackResource,\n options?: CertificateObjectLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<CertificateObjectLocalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n localRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackDeleteOptionalParams\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: { resourceGroupName, localRulestackName, name, 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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n localRulestackName,\n name,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByLocalRulestacksNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param nextLink The nextLink from the previous successful call to the ListByLocalRulestacks method.\n * @param options The options parameters.\n */\n private _listByLocalRulestacksNext(\n resourceGroupName: string,\n localRulestackName: string,\n nextLink: string,\n options?: CertificateObjectLocalRulestackListByLocalRulestacksNextOptionalParams\n ): Promise<CertificateObjectLocalRulestackListByLocalRulestacksNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, nextLink, options },\n listByLocalRulestacksNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocalRulestacksOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/certificates/{name}\",\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: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByLocalRulestacksNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}