@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
@@ -1 +1 @@
1
- {"version":3,"file":"replications.js","sourceRoot":"","sources":["../../../src/operations/replications.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAwC;QAExC,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC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AAO,CAAC,WAAW;SAChC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,2BAA2B;IACnD,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,eAAe;KAC3B;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,qBAAqB;SAC1C;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 { Replications } 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 Replication,\n ReplicationsListNextOptionalParams,\n ReplicationsListOptionalParams,\n ReplicationsListResponse,\n ReplicationsGetOptionalParams,\n ReplicationsGetResponse,\n ReplicationsCreateOptionalParams,\n ReplicationsCreateResponse,\n ReplicationsDeleteOptionalParams,\n ReplicationUpdateParameters,\n ReplicationsUpdateOptionalParams,\n ReplicationsUpdateResponse,\n ReplicationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Replications operations. */\nexport class ReplicationsImpl implements Replications {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class Replications class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the replications 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?: ReplicationsListOptionalParams,\n ): PagedAsyncIterableIterator<Replication> {\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?: ReplicationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Replication[]> {\n let result: ReplicationsListResponse;\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?: ReplicationsListOptionalParams,\n ): AsyncIterableIterator<Replication> {\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 the replications 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?: ReplicationsListOptionalParams,\n ): Promise<ReplicationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the specified replication.\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 replicationName The name of the replication.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n options?: ReplicationsGetOptionalParams,\n ): Promise<ReplicationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, replicationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a replication 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 replicationName The name of the replication.\n * @param replication The parameters for creating a replication.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n replication: Replication,\n options?: ReplicationsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ReplicationsCreateResponse>,\n ReplicationsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ReplicationsCreateResponse> => {\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 replicationName,\n replication,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ReplicationsCreateResponse,\n OperationState<ReplicationsCreateResponse>\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 replication 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 replicationName The name of the replication.\n * @param replication The parameters for creating a replication.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n replication: Replication,\n options?: ReplicationsCreateOptionalParams,\n ): Promise<ReplicationsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n replicationName,\n replication,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a replication 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 replicationName The name of the replication.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n options?: ReplicationsDeleteOptionalParams,\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, replicationName, 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 a replication 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 replicationName The name of the replication.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n options?: ReplicationsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n replicationName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a replication 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 replicationName The name of the replication.\n * @param replicationUpdateParameters The parameters for updating a replication.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n replicationUpdateParameters: ReplicationUpdateParameters,\n options?: ReplicationsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ReplicationsUpdateResponse>,\n ReplicationsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ReplicationsUpdateResponse> => {\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 replicationName,\n replicationUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ReplicationsUpdateResponse,\n OperationState<ReplicationsUpdateResponse>\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 replication 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 replicationName The name of the replication.\n * @param replicationUpdateParameters The parameters for updating a replication.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n replicationUpdateParameters: ReplicationUpdateParameters,\n options?: ReplicationsUpdateOptionalParams,\n ): Promise<ReplicationsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n replicationName,\n replicationUpdateParameters,\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?: ReplicationsListNextOptionalParams,\n ): Promise<ReplicationsListNextResponse> {\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}/replications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationListResult,\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}/replications/{replicationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Replication,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.replicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Replication,\n },\n 201: {\n bodyMapper: Mappers.Replication,\n },\n 202: {\n bodyMapper: Mappers.Replication,\n },\n 204: {\n bodyMapper: Mappers.Replication,\n },\n },\n requestBody: Parameters.replication,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.replicationName,\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}/replications/{replicationName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.replicationName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Replication,\n },\n 201: {\n bodyMapper: Mappers.Replication,\n },\n 202: {\n bodyMapper: Mappers.Replication,\n },\n 204: {\n bodyMapper: Mappers.Replication,\n },\n },\n requestBody: Parameters.replicationUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.replicationName,\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.ReplicationListResult,\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":"replications.js","sourceRoot":"","sources":["../../../src/operations/replications.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IACV,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,OAAwC;QAExC,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,EACz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AAU,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 { Replications } 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 Replication,\n ReplicationsListNextOptionalParams,\n ReplicationsListOptionalParams,\n ReplicationsListResponse,\n ReplicationsGetOptionalParams,\n ReplicationsGetResponse,\n ReplicationsCreateOptionalParams,\n ReplicationsCreateResponse,\n ReplicationsDeleteOptionalParams,\n ReplicationUpdateParameters,\n ReplicationsUpdateOptionalParams,\n ReplicationsUpdateResponse,\n ReplicationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Replications operations. */\nexport class ReplicationsImpl implements Replications {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class Replications class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the replications 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?: ReplicationsListOptionalParams,\n ): PagedAsyncIterableIterator<Replication> {\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?: ReplicationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Replication[]> {\n let result: ReplicationsListResponse;\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?: ReplicationsListOptionalParams,\n ): AsyncIterableIterator<Replication> {\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 the replications 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?: ReplicationsListOptionalParams,\n ): Promise<ReplicationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the specified replication.\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 replicationName The name of the replication.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n options?: ReplicationsGetOptionalParams,\n ): Promise<ReplicationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, replicationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a replication 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 replicationName The name of the replication.\n * @param replication The parameters for creating a replication.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n replication: Replication,\n options?: ReplicationsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ReplicationsCreateResponse>,\n ReplicationsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ReplicationsCreateResponse> => {\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 replicationName,\n replication,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ReplicationsCreateResponse,\n OperationState<ReplicationsCreateResponse>\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 replication 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 replicationName The name of the replication.\n * @param replication The parameters for creating a replication.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n replication: Replication,\n options?: ReplicationsCreateOptionalParams,\n ): Promise<ReplicationsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n replicationName,\n replication,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a replication 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 replicationName The name of the replication.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n options?: ReplicationsDeleteOptionalParams,\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, replicationName, 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 a replication 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 replicationName The name of the replication.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n options?: ReplicationsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n replicationName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a replication 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 replicationName The name of the replication.\n * @param replicationUpdateParameters The parameters for updating a replication.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n replicationUpdateParameters: ReplicationUpdateParameters,\n options?: ReplicationsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ReplicationsUpdateResponse>,\n ReplicationsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ReplicationsUpdateResponse> => {\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 replicationName,\n replicationUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ReplicationsUpdateResponse,\n OperationState<ReplicationsUpdateResponse>\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 replication 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 replicationName The name of the replication.\n * @param replicationUpdateParameters The parameters for updating a replication.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n replicationName: string,\n replicationUpdateParameters: ReplicationUpdateParameters,\n options?: ReplicationsUpdateOptionalParams,\n ): Promise<ReplicationsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n replicationName,\n replicationUpdateParameters,\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?: ReplicationsListNextOptionalParams,\n ): Promise<ReplicationsListNextResponse> {\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}/replications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationListResult,\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}/replications/{replicationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Replication,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.replicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Replication,\n },\n 201: {\n bodyMapper: Mappers.Replication,\n },\n 202: {\n bodyMapper: Mappers.Replication,\n },\n 204: {\n bodyMapper: Mappers.Replication,\n },\n },\n requestBody: Parameters.replication,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.replicationName,\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}/replications/{replicationName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.replicationName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Replication,\n },\n 201: {\n bodyMapper: Mappers.Replication,\n },\n 202: {\n bodyMapper: Mappers.Replication,\n },\n 204: {\n bodyMapper: Mappers.Replication,\n },\n },\n requestBody: Parameters.replicationUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.replicationName,\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.ReplicationListResult,\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";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Runs operations. */
15
14
  export class RunsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Runs class.
18
18
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class RunsImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- listPagingPage(resourceGroupName, registryName, options, settings) {
47
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._list(resourceGroupName, registryName, options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listNext(resourceGroupName, registryName, continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listPagingPage(resourceGroupName, registryName, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._list(resourceGroupName, registryName, options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listNext(resourceGroupName, registryName, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listPagingAll(resourceGroupName, registryName, options) {
67
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, registryName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listPagingAll(resourceGroupName, registryName, options) {
65
+ for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Gets all the runs for a registry.
@@ -1 +1 @@
1
- {"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../src/operations/runs.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;AAkBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAgC;QAEhC,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,YAAY,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AAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,KAAK;KACjB;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,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Runs } 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 Run,\n RunsListNextOptionalParams,\n RunsListOptionalParams,\n RunsListResponse,\n RunsGetOptionalParams,\n RunsGetResponse,\n RunUpdateParameters,\n RunsUpdateOptionalParams,\n RunsUpdateResponse,\n RunsGetLogSasUrlOptionalParams,\n RunsGetLogSasUrlResponse,\n RunsCancelOptionalParams,\n RunsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Runs operations. */\nexport class RunsImpl implements Runs {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class Runs class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the runs for a registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: RunsListOptionalParams,\n ): PagedAsyncIterableIterator<Run> {\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?: RunsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Run[]> {\n let result: RunsListResponse;\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?: RunsListOptionalParams,\n ): AsyncIterableIterator<Run> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the runs for a registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: RunsListOptionalParams,\n ): Promise<RunsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the detailed information for a given run.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param runId The run ID.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n runId: string,\n options?: RunsGetOptionalParams,\n ): Promise<RunsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, runId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Patch the run properties.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param runId The run ID.\n * @param runUpdateParameters The run update properties.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n registryName: string,\n runId: string,\n runUpdateParameters: RunUpdateParameters,\n options?: RunsUpdateOptionalParams,\n ): Promise<RunsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, runId, runUpdateParameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets a link to download the run logs.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param runId The run ID.\n * @param options The options parameters.\n */\n getLogSasUrl(\n resourceGroupName: string,\n registryName: string,\n runId: string,\n options?: RunsGetLogSasUrlOptionalParams,\n ): Promise<RunsGetLogSasUrlResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, runId, options },\n getLogSasUrlOperationSpec,\n );\n }\n\n /**\n * Cancel an existing run.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param runId The run ID.\n * @param options The options parameters.\n */\n cancel(\n resourceGroupName: string,\n registryName: string,\n runId: string,\n options?: RunsCancelOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, runId, options },\n cancelOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n registryName: string,\n nextLink: string,\n options?: RunsListNextOptionalParams,\n ): Promise<RunsListNextResponse> {\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}/runs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Run,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.runId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Run,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.runUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.runId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getLogSasUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunGetLogResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.runId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.runId,\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.RunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.nextLink,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../src/operations/runs.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;AAkBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IACF,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,OAAgC;QAEhC,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,E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K;KACjB;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,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Runs } 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 Run,\n RunsListNextOptionalParams,\n RunsListOptionalParams,\n RunsListResponse,\n RunsGetOptionalParams,\n RunsGetResponse,\n RunUpdateParameters,\n RunsUpdateOptionalParams,\n RunsUpdateResponse,\n RunsGetLogSasUrlOptionalParams,\n RunsGetLogSasUrlResponse,\n RunsCancelOptionalParams,\n RunsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Runs operations. */\nexport class RunsImpl implements Runs {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class Runs class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the runs for a registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: RunsListOptionalParams,\n ): PagedAsyncIterableIterator<Run> {\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?: RunsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Run[]> {\n let result: RunsListResponse;\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?: RunsListOptionalParams,\n ): AsyncIterableIterator<Run> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the runs for a registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: RunsListOptionalParams,\n ): Promise<RunsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the detailed information for a given run.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param runId The run ID.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n runId: string,\n options?: RunsGetOptionalParams,\n ): Promise<RunsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, runId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Patch the run properties.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param runId The run ID.\n * @param runUpdateParameters The run update properties.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n registryName: string,\n runId: string,\n runUpdateParameters: RunUpdateParameters,\n options?: RunsUpdateOptionalParams,\n ): Promise<RunsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, runId, runUpdateParameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets a link to download the run logs.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param runId The run ID.\n * @param options The options parameters.\n */\n getLogSasUrl(\n resourceGroupName: string,\n registryName: string,\n runId: string,\n options?: RunsGetLogSasUrlOptionalParams,\n ): Promise<RunsGetLogSasUrlResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, runId, options },\n getLogSasUrlOperationSpec,\n );\n }\n\n /**\n * Cancel an existing run.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param runId The run ID.\n * @param options The options parameters.\n */\n cancel(\n resourceGroupName: string,\n registryName: string,\n runId: string,\n options?: RunsCancelOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, runId, options },\n cancelOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n registryName: string,\n nextLink: string,\n options?: RunsListNextOptionalParams,\n ): Promise<RunsListNextResponse> {\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}/runs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Run,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.runId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Run,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.runUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.runId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getLogSasUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunGetLogResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.runId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.runId,\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.RunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.nextLink,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -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 ScopeMaps operations. */
17
16
  export class ScopeMapsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class ScopeMaps class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class ScopeMapsImpl {
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 the scope maps for the specified container registry.
@@ -117,14 +100,19 @@ export class ScopeMapsImpl {
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 ScopeMapsImpl {
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 ScopeMapsImpl {
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 ScopeMapsImpl {
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 ScopeMapsImpl {
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 ScopeMapsImpl {
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();