@azure/arm-containerregistry 11.0.0-alpha.20250718.1 → 11.0.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 (186) hide show
  1. package/dist/browser/containerRegistryManagementClient.js +32 -5
  2. package/dist/browser/containerRegistryManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +471 -220
  6. package/dist/browser/models/mappers.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/archiveVersions.js +45 -52
  10. package/dist/browser/operations/archiveVersions.js.map +1 -1
  11. package/dist/browser/operations/archives.js +45 -52
  12. package/dist/browser/operations/archives.js.map +1 -1
  13. package/dist/browser/operations/cacheRules.js +56 -58
  14. package/dist/browser/operations/cacheRules.js.map +1 -1
  15. package/dist/browser/operations/connectedRegistries.js +67 -64
  16. package/dist/browser/operations/connectedRegistries.js.map +1 -1
  17. package/dist/browser/operations/credentialSets.js +56 -58
  18. package/dist/browser/operations/credentialSets.js.map +1 -1
  19. package/dist/browser/operations/exportPipelines.js +45 -52
  20. package/dist/browser/operations/exportPipelines.js.map +1 -1
  21. package/dist/browser/operations/importPipelines.js +45 -52
  22. package/dist/browser/operations/importPipelines.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/pipelineRuns.js +45 -52
  26. package/dist/browser/operations/pipelineRuns.js.map +1 -1
  27. package/dist/browser/operations/privateEndpointConnections.js +45 -52
  28. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  29. package/dist/browser/operations/registries.js +125 -151
  30. package/dist/browser/operations/registries.js.map +1 -1
  31. package/dist/browser/operations/replications.js +56 -58
  32. package/dist/browser/operations/replications.js.map +1 -1
  33. package/dist/browser/operations/runs.js +23 -40
  34. package/dist/browser/operations/runs.js.map +1 -1
  35. package/dist/browser/operations/scopeMaps.js +56 -58
  36. package/dist/browser/operations/scopeMaps.js.map +1 -1
  37. package/dist/browser/operations/taskRuns.js +45 -52
  38. package/dist/browser/operations/taskRuns.js.map +1 -1
  39. package/dist/browser/operations/tasks.js +23 -40
  40. package/dist/browser/operations/tasks.js.map +1 -1
  41. package/dist/browser/operations/tokens.js +56 -58
  42. package/dist/browser/operations/tokens.js.map +1 -1
  43. package/dist/browser/operations/webhooks.js +78 -97
  44. package/dist/browser/operations/webhooks.js.map +1 -1
  45. package/dist/browser/pagingHelper.js +2 -4
  46. package/dist/browser/pagingHelper.js.map +1 -1
  47. package/dist/commonjs/containerRegistryManagementClient.js +32 -5
  48. package/dist/commonjs/containerRegistryManagementClient.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 +471 -220
  52. package/dist/commonjs/models/mappers.js.map +1 -1
  53. package/dist/commonjs/operations/agentPools.js +56 -57
  54. package/dist/commonjs/operations/agentPools.js.map +1 -1
  55. package/dist/commonjs/operations/archiveVersions.js +45 -51
  56. package/dist/commonjs/operations/archiveVersions.js.map +1 -1
  57. package/dist/commonjs/operations/archives.js +45 -51
  58. package/dist/commonjs/operations/archives.js.map +1 -1
  59. package/dist/commonjs/operations/cacheRules.js +56 -57
  60. package/dist/commonjs/operations/cacheRules.js.map +1 -1
  61. package/dist/commonjs/operations/connectedRegistries.js +67 -63
  62. package/dist/commonjs/operations/connectedRegistries.js.map +1 -1
  63. package/dist/commonjs/operations/credentialSets.js +56 -57
  64. package/dist/commonjs/operations/credentialSets.js.map +1 -1
  65. package/dist/commonjs/operations/exportPipelines.js +45 -51
  66. package/dist/commonjs/operations/exportPipelines.js.map +1 -1
  67. package/dist/commonjs/operations/importPipelines.js +45 -51
  68. package/dist/commonjs/operations/importPipelines.js.map +1 -1
  69. package/dist/commonjs/operations/operations.js +23 -39
  70. package/dist/commonjs/operations/operations.js.map +1 -1
  71. package/dist/commonjs/operations/pipelineRuns.js +45 -51
  72. package/dist/commonjs/operations/pipelineRuns.js.map +1 -1
  73. package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
  74. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  75. package/dist/commonjs/operations/registries.js +125 -150
  76. package/dist/commonjs/operations/registries.js.map +1 -1
  77. package/dist/commonjs/operations/replications.js +56 -57
  78. package/dist/commonjs/operations/replications.js.map +1 -1
  79. package/dist/commonjs/operations/runs.js +23 -39
  80. package/dist/commonjs/operations/runs.js.map +1 -1
  81. package/dist/commonjs/operations/scopeMaps.js +56 -57
  82. package/dist/commonjs/operations/scopeMaps.js.map +1 -1
  83. package/dist/commonjs/operations/taskRuns.js +45 -51
  84. package/dist/commonjs/operations/taskRuns.js.map +1 -1
  85. package/dist/commonjs/operations/tasks.js +23 -39
  86. package/dist/commonjs/operations/tasks.js.map +1 -1
  87. package/dist/commonjs/operations/tokens.js +56 -57
  88. package/dist/commonjs/operations/tokens.js.map +1 -1
  89. package/dist/commonjs/operations/webhooks.js +78 -96
  90. package/dist/commonjs/operations/webhooks.js.map +1 -1
  91. package/dist/commonjs/pagingHelper.js +2 -4
  92. package/dist/commonjs/pagingHelper.js.map +1 -1
  93. package/dist/commonjs/tsdoc-metadata.json +1 -1
  94. package/dist/esm/containerRegistryManagementClient.js +32 -5
  95. package/dist/esm/containerRegistryManagementClient.js.map +1 -1
  96. package/dist/esm/lroImpl.js +7 -3
  97. package/dist/esm/lroImpl.js.map +1 -1
  98. package/dist/esm/models/mappers.js +471 -220
  99. package/dist/esm/models/mappers.js.map +1 -1
  100. package/dist/esm/operations/agentPools.js +56 -58
  101. package/dist/esm/operations/agentPools.js.map +1 -1
  102. package/dist/esm/operations/archiveVersions.js +45 -52
  103. package/dist/esm/operations/archiveVersions.js.map +1 -1
  104. package/dist/esm/operations/archives.js +45 -52
  105. package/dist/esm/operations/archives.js.map +1 -1
  106. package/dist/esm/operations/cacheRules.js +56 -58
  107. package/dist/esm/operations/cacheRules.js.map +1 -1
  108. package/dist/esm/operations/connectedRegistries.js +67 -64
  109. package/dist/esm/operations/connectedRegistries.js.map +1 -1
  110. package/dist/esm/operations/credentialSets.js +56 -58
  111. package/dist/esm/operations/credentialSets.js.map +1 -1
  112. package/dist/esm/operations/exportPipelines.js +45 -52
  113. package/dist/esm/operations/exportPipelines.js.map +1 -1
  114. package/dist/esm/operations/importPipelines.js +45 -52
  115. package/dist/esm/operations/importPipelines.js.map +1 -1
  116. package/dist/esm/operations/operations.js +23 -40
  117. package/dist/esm/operations/operations.js.map +1 -1
  118. package/dist/esm/operations/pipelineRuns.js +45 -52
  119. package/dist/esm/operations/pipelineRuns.js.map +1 -1
  120. package/dist/esm/operations/privateEndpointConnections.js +45 -52
  121. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  122. package/dist/esm/operations/registries.js +125 -151
  123. package/dist/esm/operations/registries.js.map +1 -1
  124. package/dist/esm/operations/replications.js +56 -58
  125. package/dist/esm/operations/replications.js.map +1 -1
  126. package/dist/esm/operations/runs.js +23 -40
  127. package/dist/esm/operations/runs.js.map +1 -1
  128. package/dist/esm/operations/scopeMaps.js +56 -58
  129. package/dist/esm/operations/scopeMaps.js.map +1 -1
  130. package/dist/esm/operations/taskRuns.js +45 -52
  131. package/dist/esm/operations/taskRuns.js.map +1 -1
  132. package/dist/esm/operations/tasks.js +23 -40
  133. package/dist/esm/operations/tasks.js.map +1 -1
  134. package/dist/esm/operations/tokens.js +56 -58
  135. package/dist/esm/operations/tokens.js.map +1 -1
  136. package/dist/esm/operations/webhooks.js +78 -97
  137. package/dist/esm/operations/webhooks.js.map +1 -1
  138. package/dist/esm/pagingHelper.js +2 -4
  139. package/dist/esm/pagingHelper.js.map +1 -1
  140. package/dist/react-native/containerRegistryManagementClient.js +32 -5
  141. package/dist/react-native/containerRegistryManagementClient.js.map +1 -1
  142. package/dist/react-native/lroImpl.js +7 -3
  143. package/dist/react-native/lroImpl.js.map +1 -1
  144. package/dist/react-native/models/mappers.js +471 -220
  145. package/dist/react-native/models/mappers.js.map +1 -1
  146. package/dist/react-native/operations/agentPools.js +56 -58
  147. package/dist/react-native/operations/agentPools.js.map +1 -1
  148. package/dist/react-native/operations/archiveVersions.js +45 -52
  149. package/dist/react-native/operations/archiveVersions.js.map +1 -1
  150. package/dist/react-native/operations/archives.js +45 -52
  151. package/dist/react-native/operations/archives.js.map +1 -1
  152. package/dist/react-native/operations/cacheRules.js +56 -58
  153. package/dist/react-native/operations/cacheRules.js.map +1 -1
  154. package/dist/react-native/operations/connectedRegistries.js +67 -64
  155. package/dist/react-native/operations/connectedRegistries.js.map +1 -1
  156. package/dist/react-native/operations/credentialSets.js +56 -58
  157. package/dist/react-native/operations/credentialSets.js.map +1 -1
  158. package/dist/react-native/operations/exportPipelines.js +45 -52
  159. package/dist/react-native/operations/exportPipelines.js.map +1 -1
  160. package/dist/react-native/operations/importPipelines.js +45 -52
  161. package/dist/react-native/operations/importPipelines.js.map +1 -1
  162. package/dist/react-native/operations/operations.js +23 -40
  163. package/dist/react-native/operations/operations.js.map +1 -1
  164. package/dist/react-native/operations/pipelineRuns.js +45 -52
  165. package/dist/react-native/operations/pipelineRuns.js.map +1 -1
  166. package/dist/react-native/operations/privateEndpointConnections.js +45 -52
  167. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  168. package/dist/react-native/operations/registries.js +125 -151
  169. package/dist/react-native/operations/registries.js.map +1 -1
  170. package/dist/react-native/operations/replications.js +56 -58
  171. package/dist/react-native/operations/replications.js.map +1 -1
  172. package/dist/react-native/operations/runs.js +23 -40
  173. package/dist/react-native/operations/runs.js.map +1 -1
  174. package/dist/react-native/operations/scopeMaps.js +56 -58
  175. package/dist/react-native/operations/scopeMaps.js.map +1 -1
  176. package/dist/react-native/operations/taskRuns.js +45 -52
  177. package/dist/react-native/operations/taskRuns.js.map +1 -1
  178. package/dist/react-native/operations/tasks.js +23 -40
  179. package/dist/react-native/operations/tasks.js.map +1 -1
  180. package/dist/react-native/operations/tokens.js +56 -58
  181. package/dist/react-native/operations/tokens.js.map +1 -1
  182. package/dist/react-native/operations/webhooks.js +78 -97
  183. package/dist/react-native/operations/webhooks.js.map +1 -1
  184. package/dist/react-native/pagingHelper.js +2 -4
  185. package/dist/react-native/pagingHelper.js.map +1 -1
  186. package/package.json +2 -2
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing AgentPools operations. */
20
20
  class AgentPoolsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class AgentPools class.
23
24
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class AgentPoolsImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listPagingPage(resourceGroupName, registryName, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._list(resourceGroupName, registryName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listPagingPage(resourceGroupName, registryName, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._list(resourceGroupName, registryName, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listNext(resourceGroupName, registryName, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listPagingAll(resourceGroupName, registryName, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, registryName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listPagingAll(resourceGroupName, registryName, options) {
71
+ for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * Gets the detailed information for a given agent pool.
@@ -111,14 +95,19 @@ class AgentPoolsImpl {
111
95
  return this.client.sendOperationRequest(args, spec);
112
96
  };
113
97
  const sendOperationFn = async (args, spec) => {
114
- var _a;
115
98
  let currentRawResponse = undefined;
116
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
99
+ const providedCallback = args.options?.onResponse;
117
100
  const callback = (rawResponse, flatResponse) => {
118
101
  currentRawResponse = rawResponse;
119
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
102
+ providedCallback?.(rawResponse, flatResponse);
103
+ };
104
+ const updatedArgs = {
105
+ ...args,
106
+ options: {
107
+ ...args.options,
108
+ onResponse: callback,
109
+ },
120
110
  };
121
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
122
111
  const flatResponse = await directSendOperation(updatedArgs, spec);
123
112
  return {
124
113
  flatResponse,
@@ -141,8 +130,8 @@ class AgentPoolsImpl {
141
130
  spec: createOperationSpec,
142
131
  });
143
132
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
144
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
145
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
133
+ restoreFrom: options?.resumeFrom,
134
+ intervalInMs: options?.updateIntervalInMs,
146
135
  resourceLocationConfig: "azure-async-operation",
147
136
  });
148
137
  await poller.poll();
@@ -172,14 +161,19 @@ class AgentPoolsImpl {
172
161
  return this.client.sendOperationRequest(args, spec);
173
162
  };
174
163
  const sendOperationFn = async (args, spec) => {
175
- var _a;
176
164
  let currentRawResponse = undefined;
177
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
165
+ const providedCallback = args.options?.onResponse;
178
166
  const callback = (rawResponse, flatResponse) => {
179
167
  currentRawResponse = rawResponse;
180
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
168
+ providedCallback?.(rawResponse, flatResponse);
169
+ };
170
+ const updatedArgs = {
171
+ ...args,
172
+ options: {
173
+ ...args.options,
174
+ onResponse: callback,
175
+ },
181
176
  };
182
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
183
177
  const flatResponse = await directSendOperation(updatedArgs, spec);
184
178
  return {
185
179
  flatResponse,
@@ -196,8 +190,8 @@ class AgentPoolsImpl {
196
190
  spec: deleteOperationSpec,
197
191
  });
198
192
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
199
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
200
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
193
+ restoreFrom: options?.resumeFrom,
194
+ intervalInMs: options?.updateIntervalInMs,
201
195
  resourceLocationConfig: "location",
202
196
  });
203
197
  await poller.poll();
@@ -227,14 +221,19 @@ class AgentPoolsImpl {
227
221
  return this.client.sendOperationRequest(args, spec);
228
222
  };
229
223
  const sendOperationFn = async (args, spec) => {
230
- var _a;
231
224
  let currentRawResponse = undefined;
232
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
225
+ const providedCallback = args.options?.onResponse;
233
226
  const callback = (rawResponse, flatResponse) => {
234
227
  currentRawResponse = rawResponse;
235
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
228
+ providedCallback?.(rawResponse, flatResponse);
229
+ };
230
+ const updatedArgs = {
231
+ ...args,
232
+ options: {
233
+ ...args.options,
234
+ onResponse: callback,
235
+ },
236
236
  };
237
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
238
237
  const flatResponse = await directSendOperation(updatedArgs, spec);
239
238
  return {
240
239
  flatResponse,
@@ -257,8 +256,8 @@ class AgentPoolsImpl {
257
256
  spec: updateOperationSpec,
258
257
  });
259
258
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
260
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
261
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
259
+ restoreFrom: options?.resumeFrom,
260
+ intervalInMs: options?.updateIntervalInMs,
262
261
  resourceLocationConfig: "azure-async-operation",
263
262
  });
264
263
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"agentPools.js","sourceRoot":"","sources":["../../../src/operations/agentPools.ts"],"names":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,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,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 { AgentPools } 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 { ContainerRegistryManagementClient } from \"../containerRegistryManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AgentPool,\n AgentPoolsListNextOptionalParams,\n AgentPoolsListOptionalParams,\n AgentPoolsListResponse,\n AgentPoolsGetOptionalParams,\n AgentPoolsGetResponse,\n AgentPoolsCreateOptionalParams,\n AgentPoolsCreateResponse,\n AgentPoolsDeleteOptionalParams,\n AgentPoolsDeleteResponse,\n AgentPoolUpdateParameters,\n AgentPoolsUpdateOptionalParams,\n AgentPoolsUpdateResponse,\n AgentPoolsGetQueueStatusOptionalParams,\n AgentPoolsGetQueueStatusResponse,\n AgentPoolsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AgentPools operations. */\nexport class AgentPoolsImpl implements AgentPools {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class AgentPools class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the agent pools for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: AgentPoolsListOptionalParams,\n ): PagedAsyncIterableIterator<AgentPool> {\n const iter = this.listPagingAll(resourceGroupName, registryName, 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(\n resourceGroupName,\n registryName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n registryName: string,\n options?: AgentPoolsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AgentPool[]> {\n let result: AgentPoolsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, registryName, 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 resourceGroupName,\n registryName,\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 resourceGroupName: string,\n registryName: string,\n options?: AgentPoolsListOptionalParams,\n ): AsyncIterableIterator<AgentPool> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the detailed information for a given agent pool.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsGetOptionalParams,\n ): Promise<AgentPoolsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, agentPoolName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates an agent pool for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param agentPool The parameters of an agent pool that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options?: AgentPoolsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsCreateResponse>,\n AgentPoolsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsCreateResponse> => {\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 registryName,\n agentPoolName,\n agentPool,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsCreateResponse,\n OperationState<AgentPoolsCreateResponse>\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 * Creates an agent pool for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param agentPool The parameters of an agent pool that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options?: AgentPoolsCreateOptionalParams,\n ): Promise<AgentPoolsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n agentPoolName,\n agentPool,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified agent pool resource.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsDeleteResponse>,\n AgentPoolsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsDeleteResponse> => {\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, registryName, agentPoolName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsDeleteResponse,\n OperationState<AgentPoolsDeleteResponse>\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 * Deletes a specified agent pool resource.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<AgentPoolsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n agentPoolName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an agent pool with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param updateParameters The parameters for updating an agent pool.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsUpdateResponse>,\n AgentPoolsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsUpdateResponse> => {\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 registryName,\n agentPoolName,\n updateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsUpdateResponse,\n OperationState<AgentPoolsUpdateResponse>\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 * Updates an agent pool with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param updateParameters The parameters for updating an agent pool.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<AgentPoolsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n agentPoolName,\n updateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists all the agent pools for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: AgentPoolsListOptionalParams,\n ): Promise<AgentPoolsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the count of queued runs for a given agent pool.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n getQueueStatus(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsGetQueueStatusOptionalParams,\n ): Promise<AgentPoolsGetQueueStatusResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, agentPoolName, options },\n getQueueStatusOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\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 resourceGroupName: string,\n registryName: string,\n nextLink: string,\n options?: AgentPoolsListNextOptionalParams,\n ): Promise<AgentPoolsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.agentPool,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.updateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getQueueStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolQueueStatus,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\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.AgentPoolListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.nextLink,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"agentPools.js","sourceRoot":"","sources":["../../../src/operations/agentPools.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D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ACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,+KAA+K;IACrL,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,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,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,aAAa;KACzB;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,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,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 { AgentPools } 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 { ContainerRegistryManagementClient } from \"../containerRegistryManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AgentPool,\n AgentPoolsListNextOptionalParams,\n AgentPoolsListOptionalParams,\n AgentPoolsListResponse,\n AgentPoolsGetOptionalParams,\n AgentPoolsGetResponse,\n AgentPoolsCreateOptionalParams,\n AgentPoolsCreateResponse,\n AgentPoolsDeleteOptionalParams,\n AgentPoolsDeleteResponse,\n AgentPoolUpdateParameters,\n AgentPoolsUpdateOptionalParams,\n AgentPoolsUpdateResponse,\n AgentPoolsGetQueueStatusOptionalParams,\n AgentPoolsGetQueueStatusResponse,\n AgentPoolsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AgentPools operations. */\nexport class AgentPoolsImpl implements AgentPools {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class AgentPools class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the agent pools for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: AgentPoolsListOptionalParams,\n ): PagedAsyncIterableIterator<AgentPool> {\n const iter = this.listPagingAll(resourceGroupName, registryName, 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(\n resourceGroupName,\n registryName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n registryName: string,\n options?: AgentPoolsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AgentPool[]> {\n let result: AgentPoolsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, registryName, 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 resourceGroupName,\n registryName,\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 resourceGroupName: string,\n registryName: string,\n options?: AgentPoolsListOptionalParams,\n ): AsyncIterableIterator<AgentPool> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the detailed information for a given agent pool.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsGetOptionalParams,\n ): Promise<AgentPoolsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, agentPoolName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates an agent pool for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param agentPool The parameters of an agent pool that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options?: AgentPoolsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsCreateResponse>,\n AgentPoolsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsCreateResponse> => {\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 registryName,\n agentPoolName,\n agentPool,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsCreateResponse,\n OperationState<AgentPoolsCreateResponse>\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 * Creates an agent pool for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param agentPool The parameters of an agent pool that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options?: AgentPoolsCreateOptionalParams,\n ): Promise<AgentPoolsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n agentPoolName,\n agentPool,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified agent pool resource.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsDeleteResponse>,\n AgentPoolsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsDeleteResponse> => {\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, registryName, agentPoolName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsDeleteResponse,\n OperationState<AgentPoolsDeleteResponse>\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 * Deletes a specified agent pool resource.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<AgentPoolsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n agentPoolName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an agent pool with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param updateParameters The parameters for updating an agent pool.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AgentPoolsUpdateResponse>,\n AgentPoolsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsUpdateResponse> => {\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 registryName,\n agentPoolName,\n updateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsUpdateResponse,\n OperationState<AgentPoolsUpdateResponse>\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 * Updates an agent pool with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param updateParameters The parameters for updating an agent pool.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<AgentPoolsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n agentPoolName,\n updateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists all the agent pools for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: AgentPoolsListOptionalParams,\n ): Promise<AgentPoolsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the count of queued runs for a given agent pool.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n getQueueStatus(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsGetQueueStatusOptionalParams,\n ): Promise<AgentPoolsGetQueueStatusResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, agentPoolName, options },\n getQueueStatusOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\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 resourceGroupName: string,\n registryName: string,\n nextLink: string,\n options?: AgentPoolsListNextOptionalParams,\n ): Promise<AgentPoolsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.agentPool,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.updateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getQueueStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolQueueStatus,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\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.AgentPoolListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.nextLink,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing ArchiveVersions operations. */
20
20
  class ArchiveVersionsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class ArchiveVersions class.
23
24
  * @param client Reference to the service client
@@ -43,52 +44,35 @@ class ArchiveVersionsImpl {
43
44
  return this;
44
45
  },
45
46
  byPage: (settings) => {
46
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
47
+ if (settings?.maxPageSize) {
47
48
  throw new Error("maxPageSize is not supported by this operation.");
48
49
  }
49
50
  return this.listPagingPage(resourceGroupName, registryName, packageType, archiveName, options, settings);
50
51
  },
51
52
  };
52
53
  }
53
- listPagingPage(resourceGroupName, registryName, packageType, archiveName, options, settings) {
54
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
55
- let result;
56
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
57
- if (!continuationToken) {
58
- result = yield tslib_1.__await(this._list(resourceGroupName, registryName, packageType, archiveName, options));
59
- let page = result.value || [];
60
- continuationToken = result.nextLink;
61
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
62
- yield yield tslib_1.__await(page);
63
- }
64
- while (continuationToken) {
65
- result = yield tslib_1.__await(this._listNext(resourceGroupName, registryName, packageType, archiveName, continuationToken, options));
66
- continuationToken = result.nextLink;
67
- let page = result.value || [];
68
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
69
- yield yield tslib_1.__await(page);
70
- }
71
- });
54
+ async *listPagingPage(resourceGroupName, registryName, packageType, archiveName, options, settings) {
55
+ let result;
56
+ let continuationToken = settings?.continuationToken;
57
+ if (!continuationToken) {
58
+ result = await this._list(resourceGroupName, registryName, packageType, archiveName, options);
59
+ let page = result.value || [];
60
+ continuationToken = result.nextLink;
61
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
62
+ yield page;
63
+ }
64
+ while (continuationToken) {
65
+ result = await this._listNext(resourceGroupName, registryName, packageType, archiveName, continuationToken, options);
66
+ continuationToken = result.nextLink;
67
+ let page = result.value || [];
68
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
69
+ yield page;
70
+ }
72
71
  }
73
- listPagingAll(resourceGroupName, registryName, packageType, archiveName, options) {
74
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
75
- var _a, e_1, _b, _c;
76
- try {
77
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, registryName, packageType, archiveName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
78
- _c = _f.value;
79
- _d = false;
80
- const page = _c;
81
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
82
- }
83
- }
84
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
85
- finally {
86
- try {
87
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
88
- }
89
- finally { if (e_1) throw e_1.error; }
90
- }
91
- });
72
+ async *listPagingAll(resourceGroupName, registryName, packageType, archiveName, options) {
73
+ for await (const page of this.listPagingPage(resourceGroupName, registryName, packageType, archiveName, options)) {
74
+ yield* page;
75
+ }
92
76
  }
93
77
  /**
94
78
  * Lists all archive versions for the specified container registry, repository type and archive name.
@@ -134,14 +118,19 @@ class ArchiveVersionsImpl {
134
118
  return this.client.sendOperationRequest(args, spec);
135
119
  };
136
120
  const sendOperationFn = async (args, spec) => {
137
- var _a;
138
121
  let currentRawResponse = undefined;
139
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
122
+ const providedCallback = args.options?.onResponse;
140
123
  const callback = (rawResponse, flatResponse) => {
141
124
  currentRawResponse = rawResponse;
142
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
125
+ providedCallback?.(rawResponse, flatResponse);
126
+ };
127
+ const updatedArgs = {
128
+ ...args,
129
+ options: {
130
+ ...args.options,
131
+ onResponse: callback,
132
+ },
143
133
  };
144
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
145
134
  const flatResponse = await directSendOperation(updatedArgs, spec);
146
135
  return {
147
136
  flatResponse,
@@ -165,8 +154,8 @@ class ArchiveVersionsImpl {
165
154
  spec: createOperationSpec,
166
155
  });
167
156
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
168
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
169
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
157
+ restoreFrom: options?.resumeFrom,
158
+ intervalInMs: options?.updateIntervalInMs,
170
159
  resourceLocationConfig: "azure-async-operation",
171
160
  });
172
161
  await poller.poll();
@@ -199,14 +188,19 @@ class ArchiveVersionsImpl {
199
188
  return this.client.sendOperationRequest(args, spec);
200
189
  };
201
190
  const sendOperationFn = async (args, spec) => {
202
- var _a;
203
191
  let currentRawResponse = undefined;
204
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
192
+ const providedCallback = args.options?.onResponse;
205
193
  const callback = (rawResponse, flatResponse) => {
206
194
  currentRawResponse = rawResponse;
207
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
195
+ providedCallback?.(rawResponse, flatResponse);
196
+ };
197
+ const updatedArgs = {
198
+ ...args,
199
+ options: {
200
+ ...args.options,
201
+ onResponse: callback,
202
+ },
208
203
  };
209
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
210
204
  const flatResponse = await directSendOperation(updatedArgs, spec);
211
205
  return {
212
206
  flatResponse,
@@ -230,8 +224,8 @@ class ArchiveVersionsImpl {
230
224
  spec: deleteOperationSpec,
231
225
  });
232
226
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
233
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
234
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
227
+ restoreFrom: options?.resumeFrom,
228
+ intervalInMs: options?.updateIntervalInMs,
235
229
  resourceLocationConfig: "location",
236
230
  });
237
231
  await poller.poll();