@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
@@ -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 CredentialSets operations. */
17
16
  export class CredentialSetsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class CredentialSets class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class CredentialSetsImpl {
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.listPagingPage(resourceGroupName, registryName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listPagingPage(resourceGroupName, registryName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._list(resourceGroupName, registryName, 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._listNext(resourceGroupName, registryName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listPagingPage(resourceGroupName, registryName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(resourceGroupName, registryName, 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._listNext(resourceGroupName, registryName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listPagingAll(resourceGroupName, registryName, options) {
69
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, registryName, 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 *listPagingAll(resourceGroupName, registryName, options) {
67
+ for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Lists all credential set resources for the specified container registry.
@@ -117,14 +100,19 @@ export class CredentialSetsImpl {
117
100
  return this.client.sendOperationRequest(args, spec);
118
101
  };
119
102
  const sendOperationFn = async (args, spec) => {
120
- var _a;
121
103
  let currentRawResponse = undefined;
122
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
104
+ const providedCallback = args.options?.onResponse;
123
105
  const callback = (rawResponse, flatResponse) => {
124
106
  currentRawResponse = rawResponse;
125
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
107
+ providedCallback?.(rawResponse, flatResponse);
108
+ };
109
+ const updatedArgs = {
110
+ ...args,
111
+ options: {
112
+ ...args.options,
113
+ onResponse: callback,
114
+ },
126
115
  };
127
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
128
116
  const flatResponse = await directSendOperation(updatedArgs, spec);
129
117
  return {
130
118
  flatResponse,
@@ -147,8 +135,8 @@ export class CredentialSetsImpl {
147
135
  spec: createOperationSpec,
148
136
  });
149
137
  const poller = await createHttpPoller(lro, {
150
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
151
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
138
+ restoreFrom: options?.resumeFrom,
139
+ intervalInMs: options?.updateIntervalInMs,
152
140
  resourceLocationConfig: "azure-async-operation",
153
141
  });
154
142
  await poller.poll();
@@ -178,14 +166,19 @@ export class CredentialSetsImpl {
178
166
  return this.client.sendOperationRequest(args, spec);
179
167
  };
180
168
  const sendOperationFn = async (args, spec) => {
181
- var _a;
182
169
  let currentRawResponse = undefined;
183
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
170
+ const providedCallback = args.options?.onResponse;
184
171
  const callback = (rawResponse, flatResponse) => {
185
172
  currentRawResponse = rawResponse;
186
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
173
+ providedCallback?.(rawResponse, flatResponse);
174
+ };
175
+ const updatedArgs = {
176
+ ...args,
177
+ options: {
178
+ ...args.options,
179
+ onResponse: callback,
180
+ },
187
181
  };
188
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
189
182
  const flatResponse = await directSendOperation(updatedArgs, spec);
190
183
  return {
191
184
  flatResponse,
@@ -202,8 +195,8 @@ export class CredentialSetsImpl {
202
195
  spec: deleteOperationSpec,
203
196
  });
204
197
  const poller = await createHttpPoller(lro, {
205
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
206
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
198
+ restoreFrom: options?.resumeFrom,
199
+ intervalInMs: options?.updateIntervalInMs,
207
200
  resourceLocationConfig: "location",
208
201
  });
209
202
  await poller.poll();
@@ -233,14 +226,19 @@ export class CredentialSetsImpl {
233
226
  return this.client.sendOperationRequest(args, spec);
234
227
  };
235
228
  const sendOperationFn = async (args, spec) => {
236
- var _a;
237
229
  let currentRawResponse = undefined;
238
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
230
+ const providedCallback = args.options?.onResponse;
239
231
  const callback = (rawResponse, flatResponse) => {
240
232
  currentRawResponse = rawResponse;
241
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
233
+ providedCallback?.(rawResponse, flatResponse);
234
+ };
235
+ const updatedArgs = {
236
+ ...args,
237
+ options: {
238
+ ...args.options,
239
+ onResponse: callback,
240
+ },
242
241
  };
243
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
244
242
  const flatResponse = await directSendOperation(updatedArgs, spec);
245
243
  return {
246
244
  flatResponse,
@@ -263,8 +261,8 @@ export class CredentialSetsImpl {
263
261
  spec: updateOperationSpec,
264
262
  });
265
263
  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,
264
+ restoreFrom: options?.resumeFrom,
265
+ intervalInMs: options?.updateIntervalInMs,
268
266
  resourceLocationConfig: "azure-async-operation",
269
267
  });
270
268
  await poller.poll();
@@ -1 +1 @@
1
- {"version":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QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,6BAA6B;IACrD,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,YAAY;QACvB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,uBAAuB;SAC5C;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,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CredentialSets } 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 CredentialSet,\n CredentialSetsListNextOptionalParams,\n CredentialSetsListOptionalParams,\n CredentialSetsListResponse,\n CredentialSetsGetOptionalParams,\n CredentialSetsGetResponse,\n CredentialSetsCreateOptionalParams,\n CredentialSetsCreateResponse,\n CredentialSetsDeleteOptionalParams,\n CredentialSetsDeleteResponse,\n CredentialSetUpdateParameters,\n CredentialSetsUpdateOptionalParams,\n CredentialSetsUpdateResponse,\n CredentialSetsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CredentialSets operations. */\nexport class CredentialSetsImpl implements CredentialSets {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class CredentialSets class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all credential set resources for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: CredentialSetsListOptionalParams,\n ): PagedAsyncIterableIterator<CredentialSet> {\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?: CredentialSetsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CredentialSet[]> {\n let result: CredentialSetsListResponse;\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?: CredentialSetsListOptionalParams,\n ): AsyncIterableIterator<CredentialSet> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all credential set resources for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: CredentialSetsListOptionalParams,\n ): Promise<CredentialSetsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the specified credential set resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n options?: CredentialSetsGetOptionalParams,\n ): Promise<CredentialSetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, credentialSetName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a credential set for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param credentialSetCreateParameters The parameters for creating a credential set.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n credentialSetCreateParameters: CredentialSet,\n options?: CredentialSetsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CredentialSetsCreateResponse>,\n CredentialSetsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CredentialSetsCreateResponse> => {\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 credentialSetName,\n credentialSetCreateParameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n CredentialSetsCreateResponse,\n OperationState<CredentialSetsCreateResponse>\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 a credential set for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param credentialSetCreateParameters The parameters for creating a credential set.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n credentialSetCreateParameters: CredentialSet,\n options?: CredentialSetsCreateOptionalParams,\n ): Promise<CredentialSetsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n credentialSetName,\n credentialSetCreateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a credential set from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n options?: CredentialSetsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CredentialSetsDeleteResponse>,\n CredentialSetsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CredentialSetsDeleteResponse> => {\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, credentialSetName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n CredentialSetsDeleteResponse,\n OperationState<CredentialSetsDeleteResponse>\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 credential set from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n options?: CredentialSetsDeleteOptionalParams,\n ): Promise<CredentialSetsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n credentialSetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a credential set for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param credentialSetUpdateParameters The parameters for updating a credential set.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n credentialSetUpdateParameters: CredentialSetUpdateParameters,\n options?: CredentialSetsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CredentialSetsUpdateResponse>,\n CredentialSetsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CredentialSetsUpdateResponse> => {\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 credentialSetName,\n credentialSetUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n CredentialSetsUpdateResponse,\n OperationState<CredentialSetsUpdateResponse>\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 a credential set for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param credentialSetUpdateParameters The parameters for updating a credential set.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n credentialSetUpdateParameters: CredentialSetUpdateParameters,\n options?: CredentialSetsUpdateOptionalParams,\n ): Promise<CredentialSetsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n credentialSetName,\n credentialSetUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: CredentialSetsListNextOptionalParams,\n ): Promise<CredentialSetsListNextResponse> {\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 listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSetListResult,\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.registryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSet,\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.registryName,\n Parameters.credentialSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSet,\n },\n 201: {\n bodyMapper: Mappers.CredentialSet,\n },\n 202: {\n bodyMapper: Mappers.CredentialSet,\n },\n 204: {\n bodyMapper: Mappers.CredentialSet,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.credentialSetCreateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.credentialSetName,\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}/credentialSets/{credentialSetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.CredentialSetsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.CredentialSetsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.CredentialSetsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.CredentialSetsDeleteHeaders,\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.registryName,\n Parameters.credentialSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSet,\n },\n 201: {\n bodyMapper: Mappers.CredentialSet,\n },\n 202: {\n bodyMapper: Mappers.CredentialSet,\n },\n 204: {\n bodyMapper: Mappers.CredentialSet,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.credentialSetUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.credentialSetName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSetListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"credentialSets.js","sourceRoot":"","sources":["../../../src/operations/credentialSets.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;AAkB9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,YAAoB,EACpB,OAA0C,EAC1C,QAAuB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C,6BAA6B;IACrD,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,YAAY;QACvB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,uBAAuB;SAC5C;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,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CredentialSets } 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 CredentialSet,\n CredentialSetsListNextOptionalParams,\n CredentialSetsListOptionalParams,\n CredentialSetsListResponse,\n CredentialSetsGetOptionalParams,\n CredentialSetsGetResponse,\n CredentialSetsCreateOptionalParams,\n CredentialSetsCreateResponse,\n CredentialSetsDeleteOptionalParams,\n CredentialSetsDeleteResponse,\n CredentialSetUpdateParameters,\n CredentialSetsUpdateOptionalParams,\n CredentialSetsUpdateResponse,\n CredentialSetsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CredentialSets operations. */\nexport class CredentialSetsImpl implements CredentialSets {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class CredentialSets class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all credential set resources for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: CredentialSetsListOptionalParams,\n ): PagedAsyncIterableIterator<CredentialSet> {\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?: CredentialSetsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CredentialSet[]> {\n let result: CredentialSetsListResponse;\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?: CredentialSetsListOptionalParams,\n ): AsyncIterableIterator<CredentialSet> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all credential set resources for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: CredentialSetsListOptionalParams,\n ): Promise<CredentialSetsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the specified credential set resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n options?: CredentialSetsGetOptionalParams,\n ): Promise<CredentialSetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, credentialSetName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a credential set for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param credentialSetCreateParameters The parameters for creating a credential set.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n credentialSetCreateParameters: CredentialSet,\n options?: CredentialSetsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CredentialSetsCreateResponse>,\n CredentialSetsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CredentialSetsCreateResponse> => {\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 credentialSetName,\n credentialSetCreateParameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n CredentialSetsCreateResponse,\n OperationState<CredentialSetsCreateResponse>\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 a credential set for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param credentialSetCreateParameters The parameters for creating a credential set.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n credentialSetCreateParameters: CredentialSet,\n options?: CredentialSetsCreateOptionalParams,\n ): Promise<CredentialSetsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n credentialSetName,\n credentialSetCreateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a credential set from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n options?: CredentialSetsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CredentialSetsDeleteResponse>,\n CredentialSetsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CredentialSetsDeleteResponse> => {\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, credentialSetName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n CredentialSetsDeleteResponse,\n OperationState<CredentialSetsDeleteResponse>\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 credential set from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n options?: CredentialSetsDeleteOptionalParams,\n ): Promise<CredentialSetsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n credentialSetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a credential set for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param credentialSetUpdateParameters The parameters for updating a credential set.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n credentialSetUpdateParameters: CredentialSetUpdateParameters,\n options?: CredentialSetsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CredentialSetsUpdateResponse>,\n CredentialSetsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CredentialSetsUpdateResponse> => {\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 credentialSetName,\n credentialSetUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n CredentialSetsUpdateResponse,\n OperationState<CredentialSetsUpdateResponse>\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 a credential set for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param credentialSetName The name of the credential set.\n * @param credentialSetUpdateParameters The parameters for updating a credential set.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n credentialSetName: string,\n credentialSetUpdateParameters: CredentialSetUpdateParameters,\n options?: CredentialSetsUpdateOptionalParams,\n ): Promise<CredentialSetsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n credentialSetName,\n credentialSetUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: CredentialSetsListNextOptionalParams,\n ): Promise<CredentialSetsListNextResponse> {\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 listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSetListResult,\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.registryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSet,\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.registryName,\n Parameters.credentialSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSet,\n },\n 201: {\n bodyMapper: Mappers.CredentialSet,\n },\n 202: {\n bodyMapper: Mappers.CredentialSet,\n },\n 204: {\n bodyMapper: Mappers.CredentialSet,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.credentialSetCreateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.credentialSetName,\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}/credentialSets/{credentialSetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.CredentialSetsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.CredentialSetsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.CredentialSetsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.CredentialSetsDeleteHeaders,\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.registryName,\n Parameters.credentialSetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSet,\n },\n 201: {\n bodyMapper: Mappers.CredentialSet,\n },\n 202: {\n bodyMapper: Mappers.CredentialSet,\n },\n 204: {\n bodyMapper: Mappers.CredentialSet,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.credentialSetUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.credentialSetName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialSetListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing ExportPipelines operations. */
17
16
  export class ExportPipelinesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class ExportPipelines class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class ExportPipelinesImpl {
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.listPagingPage(resourceGroupName, registryName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listPagingPage(resourceGroupName, registryName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._list(resourceGroupName, registryName, 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._listNext(resourceGroupName, registryName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listPagingPage(resourceGroupName, registryName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(resourceGroupName, registryName, 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._listNext(resourceGroupName, registryName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listPagingAll(resourceGroupName, registryName, options) {
69
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, registryName, 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 *listPagingAll(resourceGroupName, registryName, options) {
67
+ for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Lists all export pipelines for the specified container registry.
@@ -117,14 +100,19 @@ export class ExportPipelinesImpl {
117
100
  return this.client.sendOperationRequest(args, spec);
118
101
  };
119
102
  const sendOperationFn = async (args, spec) => {
120
- var _a;
121
103
  let currentRawResponse = undefined;
122
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
104
+ const providedCallback = args.options?.onResponse;
123
105
  const callback = (rawResponse, flatResponse) => {
124
106
  currentRawResponse = rawResponse;
125
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
107
+ providedCallback?.(rawResponse, flatResponse);
108
+ };
109
+ const updatedArgs = {
110
+ ...args,
111
+ options: {
112
+ ...args.options,
113
+ onResponse: callback,
114
+ },
126
115
  };
127
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
128
116
  const flatResponse = await directSendOperation(updatedArgs, spec);
129
117
  return {
130
118
  flatResponse,
@@ -147,8 +135,8 @@ export class ExportPipelinesImpl {
147
135
  spec: createOperationSpec,
148
136
  });
149
137
  const poller = await createHttpPoller(lro, {
150
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
151
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
138
+ restoreFrom: options?.resumeFrom,
139
+ intervalInMs: options?.updateIntervalInMs,
152
140
  resourceLocationConfig: "azure-async-operation",
153
141
  });
154
142
  await poller.poll();
@@ -178,14 +166,19 @@ export class ExportPipelinesImpl {
178
166
  return this.client.sendOperationRequest(args, spec);
179
167
  };
180
168
  const sendOperationFn = async (args, spec) => {
181
- var _a;
182
169
  let currentRawResponse = undefined;
183
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
170
+ const providedCallback = args.options?.onResponse;
184
171
  const callback = (rawResponse, flatResponse) => {
185
172
  currentRawResponse = rawResponse;
186
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
173
+ providedCallback?.(rawResponse, flatResponse);
174
+ };
175
+ const updatedArgs = {
176
+ ...args,
177
+ options: {
178
+ ...args.options,
179
+ onResponse: callback,
180
+ },
187
181
  };
188
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
189
182
  const flatResponse = await directSendOperation(updatedArgs, spec);
190
183
  return {
191
184
  flatResponse,
@@ -202,8 +195,8 @@ export class ExportPipelinesImpl {
202
195
  spec: deleteOperationSpec,
203
196
  });
204
197
  const poller = await createHttpPoller(lro, {
205
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
206
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
198
+ restoreFrom: options?.resumeFrom,
199
+ intervalInMs: options?.updateIntervalInMs,
207
200
  resourceLocationConfig: "location",
208
201
  });
209
202
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"exportPipelines.js","sourceRoot":"","sources":["../../../src/operations/exportPipelines.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,M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,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;KAC9B;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,wBAAwB;SAC7C;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,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ExportPipelines } 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 ExportPipeline,\n ExportPipelinesListNextOptionalParams,\n ExportPipelinesListOptionalParams,\n ExportPipelinesListResponse,\n ExportPipelinesGetOptionalParams,\n ExportPipelinesGetResponse,\n ExportPipelinesCreateOptionalParams,\n ExportPipelinesCreateResponse,\n ExportPipelinesDeleteOptionalParams,\n ExportPipelinesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ExportPipelines operations. */\nexport class ExportPipelinesImpl implements ExportPipelines {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class ExportPipelines class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all export pipelines for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: ExportPipelinesListOptionalParams,\n ): PagedAsyncIterableIterator<ExportPipeline> {\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?: ExportPipelinesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ExportPipeline[]> {\n let result: ExportPipelinesListResponse;\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?: ExportPipelinesListOptionalParams,\n ): AsyncIterableIterator<ExportPipeline> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all export pipelines for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: ExportPipelinesListOptionalParams,\n ): Promise<ExportPipelinesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the export pipeline.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n options?: ExportPipelinesGetOptionalParams,\n ): Promise<ExportPipelinesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, exportPipelineName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates an export pipeline for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param exportPipelineCreateParameters The parameters for creating an export pipeline.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n exportPipelineCreateParameters: ExportPipeline,\n options?: ExportPipelinesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ExportPipelinesCreateResponse>,\n ExportPipelinesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ExportPipelinesCreateResponse> => {\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 exportPipelineName,\n exportPipelineCreateParameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ExportPipelinesCreateResponse,\n OperationState<ExportPipelinesCreateResponse>\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 export pipeline for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param exportPipelineCreateParameters The parameters for creating an export pipeline.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n exportPipelineCreateParameters: ExportPipeline,\n options?: ExportPipelinesCreateOptionalParams,\n ): Promise<ExportPipelinesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n exportPipelineName,\n exportPipelineCreateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an export pipeline from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n options?: ExportPipelinesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: 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, exportPipelineName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an export pipeline from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n options?: ExportPipelinesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n exportPipelineName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: ExportPipelinesListNextOptionalParams,\n ): Promise<ExportPipelinesListNextResponse> {\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 listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportPipelineListResult,\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.registryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportPipeline,\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.registryName,\n Parameters.exportPipelineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportPipeline,\n },\n 201: {\n bodyMapper: Mappers.ExportPipeline,\n },\n 202: {\n bodyMapper: Mappers.ExportPipeline,\n },\n 204: {\n bodyMapper: Mappers.ExportPipeline,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.exportPipelineCreateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.exportPipelineName,\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}/exportPipelines/{exportPipelineName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.exportPipelineName,\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.ExportPipelineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"exportPipelines.js","sourceRoot":"","sources":["../../../src/operations/exportPipelines.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;AAc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ACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ExportPipelines } 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 ExportPipeline,\n ExportPipelinesListNextOptionalParams,\n ExportPipelinesListOptionalParams,\n ExportPipelinesListResponse,\n ExportPipelinesGetOptionalParams,\n ExportPipelinesGetResponse,\n ExportPipelinesCreateOptionalParams,\n ExportPipelinesCreateResponse,\n ExportPipelinesDeleteOptionalParams,\n ExportPipelinesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ExportPipelines operations. */\nexport class ExportPipelinesImpl implements ExportPipelines {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class ExportPipelines class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all export pipelines for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: ExportPipelinesListOptionalParams,\n ): PagedAsyncIterableIterator<ExportPipeline> {\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?: ExportPipelinesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ExportPipeline[]> {\n let result: ExportPipelinesListResponse;\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?: ExportPipelinesListOptionalParams,\n ): AsyncIterableIterator<ExportPipeline> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all export pipelines for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: ExportPipelinesListOptionalParams,\n ): Promise<ExportPipelinesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the export pipeline.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n options?: ExportPipelinesGetOptionalParams,\n ): Promise<ExportPipelinesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, exportPipelineName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates an export pipeline for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param exportPipelineCreateParameters The parameters for creating an export pipeline.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n exportPipelineCreateParameters: ExportPipeline,\n options?: ExportPipelinesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ExportPipelinesCreateResponse>,\n ExportPipelinesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ExportPipelinesCreateResponse> => {\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 exportPipelineName,\n exportPipelineCreateParameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ExportPipelinesCreateResponse,\n OperationState<ExportPipelinesCreateResponse>\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 export pipeline for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param exportPipelineCreateParameters The parameters for creating an export pipeline.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n exportPipelineCreateParameters: ExportPipeline,\n options?: ExportPipelinesCreateOptionalParams,\n ): Promise<ExportPipelinesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n exportPipelineName,\n exportPipelineCreateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an export pipeline from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n options?: ExportPipelinesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: 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, exportPipelineName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an export pipeline from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param exportPipelineName The name of the export pipeline.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n exportPipelineName: string,\n options?: ExportPipelinesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n exportPipelineName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\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?: ExportPipelinesListNextOptionalParams,\n ): Promise<ExportPipelinesListNextResponse> {\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 listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportPipelineListResult,\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.registryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportPipeline,\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.registryName,\n Parameters.exportPipelineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportPipeline,\n },\n 201: {\n bodyMapper: Mappers.ExportPipeline,\n },\n 202: {\n bodyMapper: Mappers.ExportPipeline,\n },\n 204: {\n bodyMapper: Mappers.ExportPipeline,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.exportPipelineCreateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.exportPipelineName,\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}/exportPipelines/{exportPipelineName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.exportPipelineName,\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.ExportPipelineListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}