@azure/arm-networkcloud 1.2.0-alpha.20250718.1 → 1.2.0-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 (195) 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 +648 -314
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/networkCloud.js +33 -5
  6. package/dist/browser/networkCloud.js.map +1 -1
  7. package/dist/browser/operations/agentPools.js +56 -58
  8. package/dist/browser/operations/agentPools.js.map +1 -1
  9. package/dist/browser/operations/bareMetalMachineKeySets.js +56 -58
  10. package/dist/browser/operations/bareMetalMachineKeySets.js.map +1 -1
  11. package/dist/browser/operations/bareMetalMachines.js +188 -157
  12. package/dist/browser/operations/bareMetalMachines.js.map +1 -1
  13. package/dist/browser/operations/bmcKeySets.js +56 -58
  14. package/dist/browser/operations/bmcKeySets.js.map +1 -1
  15. package/dist/browser/operations/cloudServicesNetworks.js +78 -97
  16. package/dist/browser/operations/cloudServicesNetworks.js.map +1 -1
  17. package/dist/browser/operations/clusterManagers.js +67 -91
  18. package/dist/browser/operations/clusterManagers.js.map +1 -1
  19. package/dist/browser/operations/clusters.js +122 -121
  20. package/dist/browser/operations/clusters.js.map +1 -1
  21. package/dist/browser/operations/consoles.js +56 -58
  22. package/dist/browser/operations/consoles.js.map +1 -1
  23. package/dist/browser/operations/kubernetesClusterFeatures.js +56 -58
  24. package/dist/browser/operations/kubernetesClusterFeatures.js.map +1 -1
  25. package/dist/browser/operations/kubernetesClusters.js +89 -103
  26. package/dist/browser/operations/kubernetesClusters.js.map +1 -1
  27. package/dist/browser/operations/l2Networks.js +67 -91
  28. package/dist/browser/operations/l2Networks.js.map +1 -1
  29. package/dist/browser/operations/l3Networks.js +67 -91
  30. package/dist/browser/operations/l3Networks.js.map +1 -1
  31. package/dist/browser/operations/metricsConfigurations.js +56 -58
  32. package/dist/browser/operations/metricsConfigurations.js.map +1 -1
  33. package/dist/browser/operations/operations.js +23 -40
  34. package/dist/browser/operations/operations.js.map +1 -1
  35. package/dist/browser/operations/rackSkus.js +23 -40
  36. package/dist/browser/operations/rackSkus.js.map +1 -1
  37. package/dist/browser/operations/racks.js +78 -97
  38. package/dist/browser/operations/racks.js.map +1 -1
  39. package/dist/browser/operations/storageAppliances.js +100 -109
  40. package/dist/browser/operations/storageAppliances.js.map +1 -1
  41. package/dist/browser/operations/trunkedNetworks.js +67 -91
  42. package/dist/browser/operations/trunkedNetworks.js.map +1 -1
  43. package/dist/browser/operations/virtualMachines.js +122 -121
  44. package/dist/browser/operations/virtualMachines.js.map +1 -1
  45. package/dist/browser/operations/volumes.js +67 -91
  46. package/dist/browser/operations/volumes.js.map +1 -1
  47. package/dist/browser/pagingHelper.js +2 -4
  48. package/dist/browser/pagingHelper.js.map +1 -1
  49. package/dist/commonjs/lroImpl.js +7 -3
  50. package/dist/commonjs/lroImpl.js.map +1 -1
  51. package/dist/commonjs/models/mappers.js +648 -314
  52. package/dist/commonjs/models/mappers.js.map +1 -1
  53. package/dist/commonjs/networkCloud.js +33 -5
  54. package/dist/commonjs/networkCloud.js.map +1 -1
  55. package/dist/commonjs/operations/agentPools.js +56 -57
  56. package/dist/commonjs/operations/agentPools.js.map +1 -1
  57. package/dist/commonjs/operations/bareMetalMachineKeySets.js +56 -57
  58. package/dist/commonjs/operations/bareMetalMachineKeySets.js.map +1 -1
  59. package/dist/commonjs/operations/bareMetalMachines.js +188 -156
  60. package/dist/commonjs/operations/bareMetalMachines.js.map +1 -1
  61. package/dist/commonjs/operations/bmcKeySets.js +56 -57
  62. package/dist/commonjs/operations/bmcKeySets.js.map +1 -1
  63. package/dist/commonjs/operations/cloudServicesNetworks.js +78 -96
  64. package/dist/commonjs/operations/cloudServicesNetworks.js.map +1 -1
  65. package/dist/commonjs/operations/clusterManagers.js +67 -90
  66. package/dist/commonjs/operations/clusterManagers.js.map +1 -1
  67. package/dist/commonjs/operations/clusters.js +122 -120
  68. package/dist/commonjs/operations/clusters.js.map +1 -1
  69. package/dist/commonjs/operations/consoles.js +56 -57
  70. package/dist/commonjs/operations/consoles.js.map +1 -1
  71. package/dist/commonjs/operations/kubernetesClusterFeatures.js +56 -57
  72. package/dist/commonjs/operations/kubernetesClusterFeatures.js.map +1 -1
  73. package/dist/commonjs/operations/kubernetesClusters.js +89 -102
  74. package/dist/commonjs/operations/kubernetesClusters.js.map +1 -1
  75. package/dist/commonjs/operations/l2Networks.js +67 -90
  76. package/dist/commonjs/operations/l2Networks.js.map +1 -1
  77. package/dist/commonjs/operations/l3Networks.js +67 -90
  78. package/dist/commonjs/operations/l3Networks.js.map +1 -1
  79. package/dist/commonjs/operations/metricsConfigurations.js +56 -57
  80. package/dist/commonjs/operations/metricsConfigurations.js.map +1 -1
  81. package/dist/commonjs/operations/operations.js +23 -39
  82. package/dist/commonjs/operations/operations.js.map +1 -1
  83. package/dist/commonjs/operations/rackSkus.js +23 -39
  84. package/dist/commonjs/operations/rackSkus.js.map +1 -1
  85. package/dist/commonjs/operations/racks.js +78 -96
  86. package/dist/commonjs/operations/racks.js.map +1 -1
  87. package/dist/commonjs/operations/storageAppliances.js +100 -108
  88. package/dist/commonjs/operations/storageAppliances.js.map +1 -1
  89. package/dist/commonjs/operations/trunkedNetworks.js +67 -90
  90. package/dist/commonjs/operations/trunkedNetworks.js.map +1 -1
  91. package/dist/commonjs/operations/virtualMachines.js +122 -120
  92. package/dist/commonjs/operations/virtualMachines.js.map +1 -1
  93. package/dist/commonjs/operations/volumes.js +67 -90
  94. package/dist/commonjs/operations/volumes.js.map +1 -1
  95. package/dist/commonjs/pagingHelper.js +2 -4
  96. package/dist/commonjs/pagingHelper.js.map +1 -1
  97. package/dist/commonjs/tsdoc-metadata.json +11 -11
  98. package/dist/esm/lroImpl.js +7 -3
  99. package/dist/esm/lroImpl.js.map +1 -1
  100. package/dist/esm/models/mappers.js +648 -314
  101. package/dist/esm/models/mappers.js.map +1 -1
  102. package/dist/esm/networkCloud.js +33 -5
  103. package/dist/esm/networkCloud.js.map +1 -1
  104. package/dist/esm/operations/agentPools.js +56 -58
  105. package/dist/esm/operations/agentPools.js.map +1 -1
  106. package/dist/esm/operations/bareMetalMachineKeySets.js +56 -58
  107. package/dist/esm/operations/bareMetalMachineKeySets.js.map +1 -1
  108. package/dist/esm/operations/bareMetalMachines.js +188 -157
  109. package/dist/esm/operations/bareMetalMachines.js.map +1 -1
  110. package/dist/esm/operations/bmcKeySets.js +56 -58
  111. package/dist/esm/operations/bmcKeySets.js.map +1 -1
  112. package/dist/esm/operations/cloudServicesNetworks.js +78 -97
  113. package/dist/esm/operations/cloudServicesNetworks.js.map +1 -1
  114. package/dist/esm/operations/clusterManagers.js +67 -91
  115. package/dist/esm/operations/clusterManagers.js.map +1 -1
  116. package/dist/esm/operations/clusters.js +122 -121
  117. package/dist/esm/operations/clusters.js.map +1 -1
  118. package/dist/esm/operations/consoles.js +56 -58
  119. package/dist/esm/operations/consoles.js.map +1 -1
  120. package/dist/esm/operations/kubernetesClusterFeatures.js +56 -58
  121. package/dist/esm/operations/kubernetesClusterFeatures.js.map +1 -1
  122. package/dist/esm/operations/kubernetesClusters.js +89 -103
  123. package/dist/esm/operations/kubernetesClusters.js.map +1 -1
  124. package/dist/esm/operations/l2Networks.js +67 -91
  125. package/dist/esm/operations/l2Networks.js.map +1 -1
  126. package/dist/esm/operations/l3Networks.js +67 -91
  127. package/dist/esm/operations/l3Networks.js.map +1 -1
  128. package/dist/esm/operations/metricsConfigurations.js +56 -58
  129. package/dist/esm/operations/metricsConfigurations.js.map +1 -1
  130. package/dist/esm/operations/operations.js +23 -40
  131. package/dist/esm/operations/operations.js.map +1 -1
  132. package/dist/esm/operations/rackSkus.js +23 -40
  133. package/dist/esm/operations/rackSkus.js.map +1 -1
  134. package/dist/esm/operations/racks.js +78 -97
  135. package/dist/esm/operations/racks.js.map +1 -1
  136. package/dist/esm/operations/storageAppliances.js +100 -109
  137. package/dist/esm/operations/storageAppliances.js.map +1 -1
  138. package/dist/esm/operations/trunkedNetworks.js +67 -91
  139. package/dist/esm/operations/trunkedNetworks.js.map +1 -1
  140. package/dist/esm/operations/virtualMachines.js +122 -121
  141. package/dist/esm/operations/virtualMachines.js.map +1 -1
  142. package/dist/esm/operations/volumes.js +67 -91
  143. package/dist/esm/operations/volumes.js.map +1 -1
  144. package/dist/esm/pagingHelper.js +2 -4
  145. package/dist/esm/pagingHelper.js.map +1 -1
  146. package/dist/react-native/lroImpl.js +7 -3
  147. package/dist/react-native/lroImpl.js.map +1 -1
  148. package/dist/react-native/models/mappers.js +648 -314
  149. package/dist/react-native/models/mappers.js.map +1 -1
  150. package/dist/react-native/networkCloud.js +33 -5
  151. package/dist/react-native/networkCloud.js.map +1 -1
  152. package/dist/react-native/operations/agentPools.js +56 -58
  153. package/dist/react-native/operations/agentPools.js.map +1 -1
  154. package/dist/react-native/operations/bareMetalMachineKeySets.js +56 -58
  155. package/dist/react-native/operations/bareMetalMachineKeySets.js.map +1 -1
  156. package/dist/react-native/operations/bareMetalMachines.js +188 -157
  157. package/dist/react-native/operations/bareMetalMachines.js.map +1 -1
  158. package/dist/react-native/operations/bmcKeySets.js +56 -58
  159. package/dist/react-native/operations/bmcKeySets.js.map +1 -1
  160. package/dist/react-native/operations/cloudServicesNetworks.js +78 -97
  161. package/dist/react-native/operations/cloudServicesNetworks.js.map +1 -1
  162. package/dist/react-native/operations/clusterManagers.js +67 -91
  163. package/dist/react-native/operations/clusterManagers.js.map +1 -1
  164. package/dist/react-native/operations/clusters.js +122 -121
  165. package/dist/react-native/operations/clusters.js.map +1 -1
  166. package/dist/react-native/operations/consoles.js +56 -58
  167. package/dist/react-native/operations/consoles.js.map +1 -1
  168. package/dist/react-native/operations/kubernetesClusterFeatures.js +56 -58
  169. package/dist/react-native/operations/kubernetesClusterFeatures.js.map +1 -1
  170. package/dist/react-native/operations/kubernetesClusters.js +89 -103
  171. package/dist/react-native/operations/kubernetesClusters.js.map +1 -1
  172. package/dist/react-native/operations/l2Networks.js +67 -91
  173. package/dist/react-native/operations/l2Networks.js.map +1 -1
  174. package/dist/react-native/operations/l3Networks.js +67 -91
  175. package/dist/react-native/operations/l3Networks.js.map +1 -1
  176. package/dist/react-native/operations/metricsConfigurations.js +56 -58
  177. package/dist/react-native/operations/metricsConfigurations.js.map +1 -1
  178. package/dist/react-native/operations/operations.js +23 -40
  179. package/dist/react-native/operations/operations.js.map +1 -1
  180. package/dist/react-native/operations/rackSkus.js +23 -40
  181. package/dist/react-native/operations/rackSkus.js.map +1 -1
  182. package/dist/react-native/operations/racks.js +78 -97
  183. package/dist/react-native/operations/racks.js.map +1 -1
  184. package/dist/react-native/operations/storageAppliances.js +100 -109
  185. package/dist/react-native/operations/storageAppliances.js.map +1 -1
  186. package/dist/react-native/operations/trunkedNetworks.js +67 -91
  187. package/dist/react-native/operations/trunkedNetworks.js.map +1 -1
  188. package/dist/react-native/operations/virtualMachines.js +122 -121
  189. package/dist/react-native/operations/virtualMachines.js.map +1 -1
  190. package/dist/react-native/operations/volumes.js +67 -91
  191. package/dist/react-native/operations/volumes.js.map +1 -1
  192. package/dist/react-native/pagingHelper.js +2 -4
  193. package/dist/react-native/pagingHelper.js.map +1 -1
  194. package/package.json +2 -2
  195. package/review/arm-networkcloud-node.api.md +4516 -4516
@@ -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 BmcKeySets operations. */
17
16
  export class BmcKeySetsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class BmcKeySets class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class BmcKeySetsImpl {
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.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByCluster(resourceGroupName, clusterName, 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._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByCluster(resourceGroupName, clusterName, 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._listByClusterNext(resourceGroupName, clusterName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listByClusterPagingAll(resourceGroupName, clusterName, options) {
69
- return __asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, 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 *listByClusterPagingAll(resourceGroupName, clusterName, options) {
67
+ for await (const page of this.listByClusterPagingPage(resourceGroupName, clusterName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Get a list of baseboard management controller key sets for the provided cluster.
@@ -118,14 +101,19 @@ export class BmcKeySetsImpl {
118
101
  return this.client.sendOperationRequest(args, spec);
119
102
  };
120
103
  const sendOperationFn = async (args, spec) => {
121
- var _a;
122
104
  let currentRawResponse = undefined;
123
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
105
+ const providedCallback = args.options?.onResponse;
124
106
  const callback = (rawResponse, flatResponse) => {
125
107
  currentRawResponse = rawResponse;
126
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
108
+ providedCallback?.(rawResponse, flatResponse);
109
+ };
110
+ const updatedArgs = {
111
+ ...args,
112
+ options: {
113
+ ...args.options,
114
+ onResponse: callback,
115
+ },
127
116
  };
128
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
129
117
  const flatResponse = await directSendOperation(updatedArgs, spec);
130
118
  return {
131
119
  flatResponse,
@@ -148,8 +136,8 @@ export class BmcKeySetsImpl {
148
136
  spec: createOrUpdateOperationSpec,
149
137
  });
150
138
  const poller = await createHttpPoller(lro, {
151
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
152
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
139
+ restoreFrom: options?.resumeFrom,
140
+ intervalInMs: options?.updateIntervalInMs,
153
141
  resourceLocationConfig: "azure-async-operation",
154
142
  });
155
143
  await poller.poll();
@@ -180,14 +168,19 @@ export class BmcKeySetsImpl {
180
168
  return this.client.sendOperationRequest(args, spec);
181
169
  };
182
170
  const sendOperationFn = async (args, spec) => {
183
- var _a;
184
171
  let currentRawResponse = undefined;
185
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
172
+ const providedCallback = args.options?.onResponse;
186
173
  const callback = (rawResponse, flatResponse) => {
187
174
  currentRawResponse = rawResponse;
188
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
175
+ providedCallback?.(rawResponse, flatResponse);
176
+ };
177
+ const updatedArgs = {
178
+ ...args,
179
+ options: {
180
+ ...args.options,
181
+ onResponse: callback,
182
+ },
189
183
  };
190
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
191
184
  const flatResponse = await directSendOperation(updatedArgs, spec);
192
185
  return {
193
186
  flatResponse,
@@ -204,8 +197,8 @@ export class BmcKeySetsImpl {
204
197
  spec: deleteOperationSpec,
205
198
  });
206
199
  const poller = await createHttpPoller(lro, {
207
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
208
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
200
+ restoreFrom: options?.resumeFrom,
201
+ intervalInMs: options?.updateIntervalInMs,
209
202
  resourceLocationConfig: "location",
210
203
  });
211
204
  await poller.poll();
@@ -235,14 +228,19 @@ export class BmcKeySetsImpl {
235
228
  return this.client.sendOperationRequest(args, spec);
236
229
  };
237
230
  const sendOperationFn = async (args, spec) => {
238
- var _a;
239
231
  let currentRawResponse = undefined;
240
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
232
+ const providedCallback = args.options?.onResponse;
241
233
  const callback = (rawResponse, flatResponse) => {
242
234
  currentRawResponse = rawResponse;
243
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
235
+ providedCallback?.(rawResponse, flatResponse);
236
+ };
237
+ const updatedArgs = {
238
+ ...args,
239
+ options: {
240
+ ...args.options,
241
+ onResponse: callback,
242
+ },
244
243
  };
245
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
246
244
  const flatResponse = await directSendOperation(updatedArgs, spec);
247
245
  return {
248
246
  flatResponse,
@@ -259,8 +257,8 @@ export class BmcKeySetsImpl {
259
257
  spec: updateOperationSpec,
260
258
  });
261
259
  const poller = await createHttpPoller(lro, {
262
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
263
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
260
+ restoreFrom: options?.resumeFrom,
261
+ intervalInMs: options?.updateIntervalInMs,
264
262
  resourceLocationConfig: "azure-async-operation",
265
263
  });
266
264
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"bmcKeySets.js","sourceRoot":"","sources":["../../../src/operations/bmcKeySets.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,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CACl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AE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;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,WAAW;KACvB;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 { BmcKeySets } 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 { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n BmcKeySet,\n BmcKeySetsListByClusterNextOptionalParams,\n BmcKeySetsListByClusterOptionalParams,\n BmcKeySetsListByClusterResponse,\n BmcKeySetsGetOptionalParams,\n BmcKeySetsGetResponse,\n BmcKeySetsCreateOrUpdateOptionalParams,\n BmcKeySetsCreateOrUpdateResponse,\n BmcKeySetsDeleteOptionalParams,\n BmcKeySetsDeleteResponse,\n BmcKeySetsUpdateOptionalParams,\n BmcKeySetsUpdateResponse,\n BmcKeySetsListByClusterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BmcKeySets operations. */\nexport class BmcKeySetsImpl implements BmcKeySets {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class BmcKeySets class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of baseboard management controller key sets for the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n public listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: BmcKeySetsListByClusterOptionalParams,\n ): PagedAsyncIterableIterator<BmcKeySet> {\n const iter = this.listByClusterPagingAll(\n resourceGroupName,\n clusterName,\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.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByClusterPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: BmcKeySetsListByClusterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<BmcKeySet[]> {\n let result: BmcKeySetsListByClusterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByCluster(\n resourceGroupName,\n clusterName,\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._listByClusterNext(\n resourceGroupName,\n clusterName,\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 *listByClusterPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: BmcKeySetsListByClusterOptionalParams,\n ): AsyncIterableIterator<BmcKeySet> {\n for await (const page of this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of baseboard management controller key sets for the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n private _listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: BmcKeySetsListByClusterOptionalParams,\n ): Promise<BmcKeySetsListByClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listByClusterOperationSpec,\n );\n }\n\n /**\n * Get baseboard management controller key set of the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsGetOptionalParams,\n ): Promise<BmcKeySetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, bmcKeySetName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new baseboard management controller key set or update the existing one for the provided\n * cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param bmcKeySetParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n bmcKeySetParameters: BmcKeySet,\n options?: BmcKeySetsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BmcKeySetsCreateOrUpdateResponse>,\n BmcKeySetsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BmcKeySetsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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: {\n resourceGroupName,\n clusterName,\n bmcKeySetName,\n bmcKeySetParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n BmcKeySetsCreateOrUpdateResponse,\n OperationState<BmcKeySetsCreateOrUpdateResponse>\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 new baseboard management controller key set or update the existing one for the provided\n * cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param bmcKeySetParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n bmcKeySetParameters: BmcKeySet,\n options?: BmcKeySetsCreateOrUpdateOptionalParams,\n ): Promise<BmcKeySetsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n bmcKeySetName,\n bmcKeySetParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the baseboard management controller key set of the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BmcKeySetsDeleteResponse>,\n BmcKeySetsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BmcKeySetsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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, clusterName, bmcKeySetName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n BmcKeySetsDeleteResponse,\n OperationState<BmcKeySetsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the baseboard management controller key set of the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsDeleteOptionalParams,\n ): Promise<BmcKeySetsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n bmcKeySetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch properties of baseboard management controller key set for the provided cluster, or update the\n * tags associated with it. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BmcKeySetsUpdateResponse>,\n BmcKeySetsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BmcKeySetsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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, clusterName, bmcKeySetName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n BmcKeySetsUpdateResponse,\n OperationState<BmcKeySetsUpdateResponse>\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 * Patch properties of baseboard management controller key set for the provided cluster, or update the\n * tags associated with it. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsUpdateOptionalParams,\n ): Promise<BmcKeySetsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n bmcKeySetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByClusterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param nextLink The nextLink from the previous successful call to the ListByCluster method.\n * @param options The options parameters.\n */\n private _listByClusterNext(\n resourceGroupName: string,\n clusterName: string,\n nextLink: string,\n options?: BmcKeySetsListByClusterNextOptionalParams,\n ): Promise<BmcKeySetsListByClusterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, nextLink, options },\n listByClusterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySetList,\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.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySet,\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.clusterName,\n Parameters.bmcKeySetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 201: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 202: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 204: {\n bodyMapper: Mappers.BmcKeySet,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.bmcKeySetParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.bmcKeySetName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\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.clusterName,\n Parameters.bmcKeySetName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 201: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 202: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 204: {\n bodyMapper: Mappers.BmcKeySet,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.bmcKeySetUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.bmcKeySetName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listByClusterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySetList,\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.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n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EAAE,UAAU,CAAC,yBAAyB;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;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,WAAW;KACvB;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 { BmcKeySets } 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 { NetworkCloud } from \"../networkCloud.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n BmcKeySet,\n BmcKeySetsListByClusterNextOptionalParams,\n BmcKeySetsListByClusterOptionalParams,\n BmcKeySetsListByClusterResponse,\n BmcKeySetsGetOptionalParams,\n BmcKeySetsGetResponse,\n BmcKeySetsCreateOrUpdateOptionalParams,\n BmcKeySetsCreateOrUpdateResponse,\n BmcKeySetsDeleteOptionalParams,\n BmcKeySetsDeleteResponse,\n BmcKeySetsUpdateOptionalParams,\n BmcKeySetsUpdateResponse,\n BmcKeySetsListByClusterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BmcKeySets operations. */\nexport class BmcKeySetsImpl implements BmcKeySets {\n private readonly client: NetworkCloud;\n\n /**\n * Initialize a new instance of the class BmcKeySets class.\n * @param client Reference to the service client\n */\n constructor(client: NetworkCloud) {\n this.client = client;\n }\n\n /**\n * Get a list of baseboard management controller key sets for the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n public listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: BmcKeySetsListByClusterOptionalParams,\n ): PagedAsyncIterableIterator<BmcKeySet> {\n const iter = this.listByClusterPagingAll(\n resourceGroupName,\n clusterName,\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.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByClusterPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: BmcKeySetsListByClusterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<BmcKeySet[]> {\n let result: BmcKeySetsListByClusterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByCluster(\n resourceGroupName,\n clusterName,\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._listByClusterNext(\n resourceGroupName,\n clusterName,\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 *listByClusterPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: BmcKeySetsListByClusterOptionalParams,\n ): AsyncIterableIterator<BmcKeySet> {\n for await (const page of this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of baseboard management controller key sets for the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n private _listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: BmcKeySetsListByClusterOptionalParams,\n ): Promise<BmcKeySetsListByClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listByClusterOperationSpec,\n );\n }\n\n /**\n * Get baseboard management controller key set of the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsGetOptionalParams,\n ): Promise<BmcKeySetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, bmcKeySetName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new baseboard management controller key set or update the existing one for the provided\n * cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param bmcKeySetParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n bmcKeySetParameters: BmcKeySet,\n options?: BmcKeySetsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BmcKeySetsCreateOrUpdateResponse>,\n BmcKeySetsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BmcKeySetsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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: {\n resourceGroupName,\n clusterName,\n bmcKeySetName,\n bmcKeySetParameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n BmcKeySetsCreateOrUpdateResponse,\n OperationState<BmcKeySetsCreateOrUpdateResponse>\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 new baseboard management controller key set or update the existing one for the provided\n * cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param bmcKeySetParameters The request body.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n bmcKeySetParameters: BmcKeySet,\n options?: BmcKeySetsCreateOrUpdateOptionalParams,\n ): Promise<BmcKeySetsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n bmcKeySetName,\n bmcKeySetParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the baseboard management controller key set of the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BmcKeySetsDeleteResponse>,\n BmcKeySetsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BmcKeySetsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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, clusterName, bmcKeySetName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n BmcKeySetsDeleteResponse,\n OperationState<BmcKeySetsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the baseboard management controller key set of the provided cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsDeleteOptionalParams,\n ): Promise<BmcKeySetsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n bmcKeySetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch properties of baseboard management controller key set for the provided cluster, or update the\n * tags associated with it. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BmcKeySetsUpdateResponse>,\n BmcKeySetsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BmcKeySetsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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, clusterName, bmcKeySetName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n BmcKeySetsUpdateResponse,\n OperationState<BmcKeySetsUpdateResponse>\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 * Patch properties of baseboard management controller key set for the provided cluster, or update the\n * tags associated with it. Properties and tag updates can be done independently.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param bmcKeySetName The name of the baseboard management controller key set.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n bmcKeySetName: string,\n options?: BmcKeySetsUpdateOptionalParams,\n ): Promise<BmcKeySetsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n bmcKeySetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByClusterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param nextLink The nextLink from the previous successful call to the ListByCluster method.\n * @param options The options parameters.\n */\n private _listByClusterNext(\n resourceGroupName: string,\n clusterName: string,\n nextLink: string,\n options?: BmcKeySetsListByClusterNextOptionalParams,\n ): Promise<BmcKeySetsListByClusterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, nextLink, options },\n listByClusterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySetList,\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.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySet,\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.clusterName,\n Parameters.bmcKeySetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 201: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 202: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 204: {\n bodyMapper: Mappers.BmcKeySet,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.bmcKeySetParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.bmcKeySetName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 201: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 202: {\n bodyMapper: Mappers.OperationStatusResult,\n },\n 204: {\n bodyMapper: Mappers.OperationStatusResult,\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.clusterName,\n Parameters.bmcKeySetName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 201: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 202: {\n bodyMapper: Mappers.BmcKeySet,\n },\n 204: {\n bodyMapper: Mappers.BmcKeySet,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.bmcKeySetUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.bmcKeySetName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listByClusterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BmcKeySetList,\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.clusterName,\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 CloudServicesNetworks operations. */
17
16
  export class CloudServicesNetworksImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class CloudServicesNetworks class.
20
20
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class CloudServicesNetworksImpl {
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.listBySubscriptionPagingPage(options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- listBySubscriptionPagingPage(options, settings) {
47
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listBySubscription(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._listBySubscriptionNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listBySubscriptionPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listBySubscriptionPagingAll(options) {
67
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(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 *listBySubscriptionPagingAll(options) {
65
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Get a list of cloud services networks in the provided resource group.
@@ -98,52 +81,35 @@ export class CloudServicesNetworksImpl {
98
81
  return this;
99
82
  },
100
83
  byPage: (settings) => {
101
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
84
+ if (settings?.maxPageSize) {
102
85
  throw new Error("maxPageSize is not supported by this operation.");
103
86
  }
104
87
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
105
88
  },
106
89
  };
107
90
  }
108
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
109
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- });
91
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByResourceGroup(resourceGroupName, options);
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
101
+ while (continuationToken) {
102
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
127
108
  }
128
- listByResourceGroupPagingAll(resourceGroupName, options) {
129
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
132
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
- _c = _f.value;
134
- _d = false;
135
- const page = _c;
136
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
- }
138
- }
139
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
- finally {
141
- try {
142
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
- }
144
- finally { if (e_2) throw e_2.error; }
145
- }
146
- });
109
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
110
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
111
+ yield* page;
112
+ }
147
113
  }
148
114
  /**
149
115
  * Get a list of cloud services networks in the provided subscription.
@@ -181,14 +147,19 @@ export class CloudServicesNetworksImpl {
181
147
  return this.client.sendOperationRequest(args, spec);
182
148
  };
183
149
  const sendOperationFn = async (args, spec) => {
184
- var _a;
185
150
  let currentRawResponse = undefined;
186
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
151
+ const providedCallback = args.options?.onResponse;
187
152
  const callback = (rawResponse, flatResponse) => {
188
153
  currentRawResponse = rawResponse;
189
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
154
+ providedCallback?.(rawResponse, flatResponse);
155
+ };
156
+ const updatedArgs = {
157
+ ...args,
158
+ options: {
159
+ ...args.options,
160
+ onResponse: callback,
161
+ },
190
162
  };
191
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
192
163
  const flatResponse = await directSendOperation(updatedArgs, spec);
193
164
  return {
194
165
  flatResponse,
@@ -210,8 +181,8 @@ export class CloudServicesNetworksImpl {
210
181
  spec: createOrUpdateOperationSpec,
211
182
  });
212
183
  const poller = await createHttpPoller(lro, {
213
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
214
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
184
+ restoreFrom: options?.resumeFrom,
185
+ intervalInMs: options?.updateIntervalInMs,
215
186
  resourceLocationConfig: "azure-async-operation",
216
187
  });
217
188
  await poller.poll();
@@ -239,14 +210,19 @@ export class CloudServicesNetworksImpl {
239
210
  return this.client.sendOperationRequest(args, spec);
240
211
  };
241
212
  const sendOperationFn = async (args, spec) => {
242
- var _a;
243
213
  let currentRawResponse = undefined;
244
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
214
+ const providedCallback = args.options?.onResponse;
245
215
  const callback = (rawResponse, flatResponse) => {
246
216
  currentRawResponse = rawResponse;
247
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
217
+ providedCallback?.(rawResponse, flatResponse);
218
+ };
219
+ const updatedArgs = {
220
+ ...args,
221
+ options: {
222
+ ...args.options,
223
+ onResponse: callback,
224
+ },
248
225
  };
249
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
250
226
  const flatResponse = await directSendOperation(updatedArgs, spec);
251
227
  return {
252
228
  flatResponse,
@@ -263,8 +239,8 @@ export class CloudServicesNetworksImpl {
263
239
  spec: deleteOperationSpec,
264
240
  });
265
241
  const poller = await createHttpPoller(lro, {
266
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
267
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
242
+ restoreFrom: options?.resumeFrom,
243
+ intervalInMs: options?.updateIntervalInMs,
268
244
  resourceLocationConfig: "location",
269
245
  });
270
246
  await poller.poll();
@@ -292,14 +268,19 @@ export class CloudServicesNetworksImpl {
292
268
  return this.client.sendOperationRequest(args, spec);
293
269
  };
294
270
  const sendOperationFn = async (args, spec) => {
295
- var _a;
296
271
  let currentRawResponse = undefined;
297
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
272
+ const providedCallback = args.options?.onResponse;
298
273
  const callback = (rawResponse, flatResponse) => {
299
274
  currentRawResponse = rawResponse;
300
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
275
+ providedCallback?.(rawResponse, flatResponse);
276
+ };
277
+ const updatedArgs = {
278
+ ...args,
279
+ options: {
280
+ ...args.options,
281
+ onResponse: callback,
282
+ },
301
283
  };
302
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
303
284
  const flatResponse = await directSendOperation(updatedArgs, spec);
304
285
  return {
305
286
  flatResponse,
@@ -316,8 +297,8 @@ export class CloudServicesNetworksImpl {
316
297
  spec: updateOperationSpec,
317
298
  });
318
299
  const poller = await createHttpPoller(lro, {
319
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
320
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
300
+ restoreFrom: options?.resumeFrom,
301
+ intervalInMs: options?.updateIntervalInMs,
321
302
  resourceLocationConfig: "azure-async-operation",
322
303
  });
323
304
  await poller.poll();