@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":"scopeMaps.js","sourceRoot":"","sources":["../../../src/operations/scopeMaps.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAqC;QAErC,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,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cA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AAO,CAAC,QAAQ;SAC7B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,wBAAwB;IAChD,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,YAAY;KACxB;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,kBAAkB;SACvC;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 { ScopeMaps } 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 ScopeMap,\n ScopeMapsListNextOptionalParams,\n ScopeMapsListOptionalParams,\n ScopeMapsListResponse,\n ScopeMapsGetOptionalParams,\n ScopeMapsGetResponse,\n ScopeMapsCreateOptionalParams,\n ScopeMapsCreateResponse,\n ScopeMapsDeleteOptionalParams,\n ScopeMapUpdateParameters,\n ScopeMapsUpdateOptionalParams,\n ScopeMapsUpdateResponse,\n ScopeMapsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ScopeMaps operations. */\nexport class ScopeMapsImpl implements ScopeMaps {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class ScopeMaps 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 scope maps 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?: ScopeMapsListOptionalParams,\n ): PagedAsyncIterableIterator<ScopeMap> {\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?: ScopeMapsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ScopeMap[]> {\n let result: ScopeMapsListResponse;\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?: ScopeMapsListOptionalParams,\n ): AsyncIterableIterator<ScopeMap> {\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 scope maps 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?: ScopeMapsListOptionalParams,\n ): Promise<ScopeMapsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the specified scope map.\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 scopeMapName The name of the scope map.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n options?: ScopeMapsGetOptionalParams,\n ): Promise<ScopeMapsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, scopeMapName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a scope map 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 scopeMapName The name of the scope map.\n * @param scopeMapCreateParameters The parameters for creating a scope map.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n scopeMapCreateParameters: ScopeMap,\n options?: ScopeMapsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ScopeMapsCreateResponse>,\n ScopeMapsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ScopeMapsCreateResponse> => {\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 scopeMapName,\n scopeMapCreateParameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ScopeMapsCreateResponse,\n OperationState<ScopeMapsCreateResponse>\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 scope map 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 scopeMapName The name of the scope map.\n * @param scopeMapCreateParameters The parameters for creating a scope map.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n scopeMapCreateParameters: ScopeMap,\n options?: ScopeMapsCreateOptionalParams,\n ): Promise<ScopeMapsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n scopeMapName,\n scopeMapCreateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a scope map 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 scopeMapName The name of the scope map.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n options?: ScopeMapsDeleteOptionalParams,\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, scopeMapName, 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 scope map 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 scopeMapName The name of the scope map.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n options?: ScopeMapsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n scopeMapName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a scope map 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 scopeMapName The name of the scope map.\n * @param scopeMapUpdateParameters The parameters for updating a scope map.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n scopeMapUpdateParameters: ScopeMapUpdateParameters,\n options?: ScopeMapsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ScopeMapsUpdateResponse>,\n ScopeMapsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ScopeMapsUpdateResponse> => {\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 scopeMapName,\n scopeMapUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ScopeMapsUpdateResponse,\n OperationState<ScopeMapsUpdateResponse>\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 scope map 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 scopeMapName The name of the scope map.\n * @param scopeMapUpdateParameters The parameters for updating a scope map.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n scopeMapUpdateParameters: ScopeMapUpdateParameters,\n options?: ScopeMapsUpdateOptionalParams,\n ): Promise<ScopeMapsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n scopeMapName,\n scopeMapUpdateParameters,\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?: ScopeMapsListNextOptionalParams,\n ): Promise<ScopeMapsListNextResponse> {\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}/scopeMaps\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopeMapListResult,\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}/scopeMaps/{scopeMapName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopeMap,\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.scopeMapName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopeMap,\n },\n 201: {\n bodyMapper: Mappers.ScopeMap,\n },\n 202: {\n bodyMapper: Mappers.ScopeMap,\n },\n 204: {\n bodyMapper: Mappers.ScopeMap,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.scopeMapCreateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.scopeMapName,\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}/scopeMaps/{scopeMapName}\",\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.scopeMapName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopeMap,\n },\n 201: {\n bodyMapper: Mappers.ScopeMap,\n },\n 202: {\n bodyMapper: Mappers.ScopeMap,\n },\n 204: {\n bodyMapper: Mappers.ScopeMap,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.scopeMapUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.scopeMapName,\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.ScopeMapListResult,\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":"scopeMaps.js","sourceRoot":"","sources":["../../../src/operations/scopeMaps.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAA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5B,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 { ScopeMaps } 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 ScopeMap,\n ScopeMapsListNextOptionalParams,\n ScopeMapsListOptionalParams,\n ScopeMapsListResponse,\n ScopeMapsGetOptionalParams,\n ScopeMapsGetResponse,\n ScopeMapsCreateOptionalParams,\n ScopeMapsCreateResponse,\n ScopeMapsDeleteOptionalParams,\n ScopeMapUpdateParameters,\n ScopeMapsUpdateOptionalParams,\n ScopeMapsUpdateResponse,\n ScopeMapsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ScopeMaps operations. */\nexport class ScopeMapsImpl implements ScopeMaps {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class ScopeMaps 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 scope maps 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?: ScopeMapsListOptionalParams,\n ): PagedAsyncIterableIterator<ScopeMap> {\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?: ScopeMapsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ScopeMap[]> {\n let result: ScopeMapsListResponse;\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?: ScopeMapsListOptionalParams,\n ): AsyncIterableIterator<ScopeMap> {\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 scope maps 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?: ScopeMapsListOptionalParams,\n ): Promise<ScopeMapsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the specified scope map.\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 scopeMapName The name of the scope map.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n options?: ScopeMapsGetOptionalParams,\n ): Promise<ScopeMapsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, scopeMapName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a scope map 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 scopeMapName The name of the scope map.\n * @param scopeMapCreateParameters The parameters for creating a scope map.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n scopeMapCreateParameters: ScopeMap,\n options?: ScopeMapsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ScopeMapsCreateResponse>,\n ScopeMapsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ScopeMapsCreateResponse> => {\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 scopeMapName,\n scopeMapCreateParameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ScopeMapsCreateResponse,\n OperationState<ScopeMapsCreateResponse>\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 scope map 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 scopeMapName The name of the scope map.\n * @param scopeMapCreateParameters The parameters for creating a scope map.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n scopeMapCreateParameters: ScopeMap,\n options?: ScopeMapsCreateOptionalParams,\n ): Promise<ScopeMapsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n scopeMapName,\n scopeMapCreateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a scope map 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 scopeMapName The name of the scope map.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n options?: ScopeMapsDeleteOptionalParams,\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, scopeMapName, 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 scope map 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 scopeMapName The name of the scope map.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n options?: ScopeMapsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n scopeMapName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a scope map 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 scopeMapName The name of the scope map.\n * @param scopeMapUpdateParameters The parameters for updating a scope map.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n scopeMapUpdateParameters: ScopeMapUpdateParameters,\n options?: ScopeMapsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ScopeMapsUpdateResponse>,\n ScopeMapsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ScopeMapsUpdateResponse> => {\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 scopeMapName,\n scopeMapUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ScopeMapsUpdateResponse,\n OperationState<ScopeMapsUpdateResponse>\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 scope map 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 scopeMapName The name of the scope map.\n * @param scopeMapUpdateParameters The parameters for updating a scope map.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n scopeMapName: string,\n scopeMapUpdateParameters: ScopeMapUpdateParameters,\n options?: ScopeMapsUpdateOptionalParams,\n ): Promise<ScopeMapsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n scopeMapName,\n scopeMapUpdateParameters,\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?: ScopeMapsListNextOptionalParams,\n ): Promise<ScopeMapsListNextResponse> {\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}/scopeMaps\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopeMapListResult,\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}/scopeMaps/{scopeMapName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopeMap,\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.scopeMapName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopeMap,\n },\n 201: {\n bodyMapper: Mappers.ScopeMap,\n },\n 202: {\n bodyMapper: Mappers.ScopeMap,\n },\n 204: {\n bodyMapper: Mappers.ScopeMap,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.scopeMapCreateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.scopeMapName,\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}/scopeMaps/{scopeMapName}\",\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.scopeMapName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopeMap,\n },\n 201: {\n bodyMapper: Mappers.ScopeMap,\n },\n 202: {\n bodyMapper: Mappers.ScopeMap,\n },\n 204: {\n bodyMapper: Mappers.ScopeMap,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.scopeMapUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.scopeMapName,\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.ScopeMapListResult,\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"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing TaskRuns operations. */
20
20
  class TaskRunsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class TaskRuns class.
23
24
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class TaskRunsImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listPagingPage(resourceGroupName, registryName, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._list(resourceGroupName, registryName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listPagingPage(resourceGroupName, registryName, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._list(resourceGroupName, registryName, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listNext(resourceGroupName, registryName, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listPagingAll(resourceGroupName, registryName, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, registryName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listPagingAll(resourceGroupName, registryName, options) {
71
+ for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * Gets the detailed information for a given task run.
@@ -111,14 +95,19 @@ class TaskRunsImpl {
111
95
  return this.client.sendOperationRequest(args, spec);
112
96
  };
113
97
  const sendOperationFn = async (args, spec) => {
114
- var _a;
115
98
  let currentRawResponse = undefined;
116
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
99
+ const providedCallback = args.options?.onResponse;
117
100
  const callback = (rawResponse, flatResponse) => {
118
101
  currentRawResponse = rawResponse;
119
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
102
+ providedCallback?.(rawResponse, flatResponse);
103
+ };
104
+ const updatedArgs = {
105
+ ...args,
106
+ options: {
107
+ ...args.options,
108
+ onResponse: callback,
109
+ },
120
110
  };
121
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
122
111
  const flatResponse = await directSendOperation(updatedArgs, spec);
123
112
  return {
124
113
  flatResponse,
@@ -135,8 +124,8 @@ class TaskRunsImpl {
135
124
  spec: createOperationSpec,
136
125
  });
137
126
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
138
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
139
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
127
+ restoreFrom: options?.resumeFrom,
128
+ intervalInMs: options?.updateIntervalInMs,
140
129
  resourceLocationConfig: "azure-async-operation",
141
130
  });
142
131
  await poller.poll();
@@ -177,14 +166,19 @@ class TaskRunsImpl {
177
166
  return this.client.sendOperationRequest(args, spec);
178
167
  };
179
168
  const sendOperationFn = async (args, spec) => {
180
- var _a;
181
169
  let currentRawResponse = undefined;
182
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
170
+ const providedCallback = args.options?.onResponse;
183
171
  const callback = (rawResponse, flatResponse) => {
184
172
  currentRawResponse = rawResponse;
185
- 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
+ },
186
181
  };
187
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
188
182
  const flatResponse = await directSendOperation(updatedArgs, spec);
189
183
  return {
190
184
  flatResponse,
@@ -207,8 +201,8 @@ class TaskRunsImpl {
207
201
  spec: updateOperationSpec,
208
202
  });
209
203
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
210
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
211
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
204
+ restoreFrom: options?.resumeFrom,
205
+ intervalInMs: options?.updateIntervalInMs,
212
206
  resourceLocationConfig: "azure-async-operation",
213
207
  });
214
208
  await poller.poll();
@@ -1 +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AE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6IAA6I;IACnJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;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,iBAAiB;SACtC;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 { TaskRuns } 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 TaskRun,\n TaskRunsListNextOptionalParams,\n TaskRunsListOptionalParams,\n TaskRunsListResponse,\n TaskRunsGetOptionalParams,\n TaskRunsGetResponse,\n TaskRunsCreateOptionalParams,\n TaskRunsCreateResponse,\n TaskRunsDeleteOptionalParams,\n TaskRunUpdateParameters,\n TaskRunsUpdateOptionalParams,\n TaskRunsUpdateResponse,\n TaskRunsGetDetailsOptionalParams,\n TaskRunsGetDetailsResponse,\n TaskRunsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TaskRuns operations. */\nexport class TaskRunsImpl implements TaskRuns {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class TaskRuns 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 task runs for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): PagedAsyncIterableIterator<TaskRun> {\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?: TaskRunsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TaskRun[]> {\n let result: TaskRunsListResponse;\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?: TaskRunsListOptionalParams,\n ): AsyncIterableIterator<TaskRun> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the detailed information for a given task 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 taskRunName The name of the task run.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsGetOptionalParams,\n ): Promise<TaskRunsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a task run for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param taskRun The parameters of a run that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n taskRun: TaskRun,\n options?: TaskRunsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TaskRunsCreateResponse>,\n TaskRunsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TaskRunsCreateResponse> => {\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, taskRunName, taskRun, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n TaskRunsCreateResponse,\n OperationState<TaskRunsCreateResponse>\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 task run for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param taskRun The parameters of a run that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n taskRun: TaskRun,\n options?: TaskRunsCreateOptionalParams,\n ): Promise<TaskRunsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n taskRunName,\n taskRun,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified task run resource.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Updates a task run with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param updateParameters The parameters for updating a task run.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n updateParameters: TaskRunUpdateParameters,\n options?: TaskRunsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TaskRunsUpdateResponse>,\n TaskRunsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TaskRunsUpdateResponse> => {\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 taskRunName,\n updateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n TaskRunsUpdateResponse,\n OperationState<TaskRunsUpdateResponse>\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 task run with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param updateParameters The parameters for updating a task run.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n updateParameters: TaskRunUpdateParameters,\n options?: TaskRunsUpdateOptionalParams,\n ): Promise<TaskRunsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n taskRunName,\n updateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the detailed information for a given task run that includes all secrets.\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 taskRunName The name of the task run.\n * @param options The options parameters.\n */\n getDetails(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsGetDetailsOptionalParams,\n ): Promise<TaskRunsGetDetailsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n getDetailsOperationSpec,\n );\n }\n\n /**\n * Lists all the task runs for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): Promise<TaskRunsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\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?: TaskRunsListNextOptionalParams,\n ): Promise<TaskRunsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\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.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n 201: {\n bodyMapper: Mappers.TaskRun,\n },\n 202: {\n bodyMapper: Mappers.TaskRun,\n },\n 204: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.taskRun,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.taskRunName,\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}/taskRuns/{taskRunName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\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.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n 201: {\n bodyMapper: Mappers.TaskRun,\n },\n 202: {\n bodyMapper: Mappers.TaskRun,\n },\n 204: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.updateParameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getDetailsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\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.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRunListResult,\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":"taskRuns.js","sourceRoot":"","sources":["../../../src/operations/taskRuns.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAmB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IACN,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,OAAoC;QAEpC,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,CAA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","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 { TaskRuns } 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 TaskRun,\n TaskRunsListNextOptionalParams,\n TaskRunsListOptionalParams,\n TaskRunsListResponse,\n TaskRunsGetOptionalParams,\n TaskRunsGetResponse,\n TaskRunsCreateOptionalParams,\n TaskRunsCreateResponse,\n TaskRunsDeleteOptionalParams,\n TaskRunUpdateParameters,\n TaskRunsUpdateOptionalParams,\n TaskRunsUpdateResponse,\n TaskRunsGetDetailsOptionalParams,\n TaskRunsGetDetailsResponse,\n TaskRunsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TaskRuns operations. */\nexport class TaskRunsImpl implements TaskRuns {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class TaskRuns 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 task runs for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): PagedAsyncIterableIterator<TaskRun> {\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?: TaskRunsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TaskRun[]> {\n let result: TaskRunsListResponse;\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?: TaskRunsListOptionalParams,\n ): AsyncIterableIterator<TaskRun> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the detailed information for a given task 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 taskRunName The name of the task run.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsGetOptionalParams,\n ): Promise<TaskRunsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a task run for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param taskRun The parameters of a run that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n taskRun: TaskRun,\n options?: TaskRunsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TaskRunsCreateResponse>,\n TaskRunsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TaskRunsCreateResponse> => {\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, taskRunName, taskRun, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n TaskRunsCreateResponse,\n OperationState<TaskRunsCreateResponse>\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 task run for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param taskRun The parameters of a run that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n taskRun: TaskRun,\n options?: TaskRunsCreateOptionalParams,\n ): Promise<TaskRunsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n taskRunName,\n taskRun,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified task run resource.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Updates a task run with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param updateParameters The parameters for updating a task run.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n updateParameters: TaskRunUpdateParameters,\n options?: TaskRunsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TaskRunsUpdateResponse>,\n TaskRunsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TaskRunsUpdateResponse> => {\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 taskRunName,\n updateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n TaskRunsUpdateResponse,\n OperationState<TaskRunsUpdateResponse>\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 task run with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param updateParameters The parameters for updating a task run.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n updateParameters: TaskRunUpdateParameters,\n options?: TaskRunsUpdateOptionalParams,\n ): Promise<TaskRunsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n taskRunName,\n updateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the detailed information for a given task run that includes all secrets.\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 taskRunName The name of the task run.\n * @param options The options parameters.\n */\n getDetails(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsGetDetailsOptionalParams,\n ): Promise<TaskRunsGetDetailsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n getDetailsOperationSpec,\n );\n }\n\n /**\n * Lists all the task runs for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): Promise<TaskRunsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\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?: TaskRunsListNextOptionalParams,\n ): Promise<TaskRunsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\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.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n 201: {\n bodyMapper: Mappers.TaskRun,\n },\n 202: {\n bodyMapper: Mappers.TaskRun,\n },\n 204: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.taskRun,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.taskRunName,\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}/taskRuns/{taskRunName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\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.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n 201: {\n bodyMapper: Mappers.TaskRun,\n },\n 202: {\n bodyMapper: Mappers.TaskRun,\n },\n 204: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.updateParameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getDetailsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\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.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRunListResult,\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"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Tasks operations. */
18
18
  class TasksImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Tasks class.
21
22
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class TasksImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
46
47
  },
47
48
  };
48
49
  }
49
- listPagingPage(resourceGroupName, registryName, options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._list(resourceGroupName, registryName, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
66
- }
67
- });
50
+ async *listPagingPage(resourceGroupName, registryName, options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._list(resourceGroupName, registryName, options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listNext(resourceGroupName, registryName, continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield page;
66
+ }
68
67
  }
69
- listPagingAll(resourceGroupName, registryName, options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, registryName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
68
+ async *listPagingAll(resourceGroupName, registryName, options) {
69
+ for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * Lists all the tasks for a specified container registry.