@azure/arm-containerregistry 11.0.0-alpha.20250422.1 → 11.0.0-alpha.20250423.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 (209) hide show
  1. package/CHANGELOG.md +266 -0
  2. package/LICENSE +1 -1
  3. package/README.md +3 -3
  4. package/dist/browser/containerRegistryManagementClient.d.ts +3 -0
  5. package/dist/browser/containerRegistryManagementClient.d.ts.map +1 -1
  6. package/dist/browser/containerRegistryManagementClient.js +28 -1
  7. package/dist/browser/containerRegistryManagementClient.js.map +1 -1
  8. package/dist/browser/models/index.d.ts +55 -58
  9. package/dist/browser/models/index.d.ts.map +1 -1
  10. package/dist/browser/models/index.js +10 -2
  11. package/dist/browser/models/index.js.map +1 -1
  12. package/dist/browser/models/mappers.d.ts +5 -3
  13. package/dist/browser/models/mappers.d.ts.map +1 -1
  14. package/dist/browser/models/mappers.js +87 -83
  15. package/dist/browser/models/mappers.js.map +1 -1
  16. package/dist/browser/models/parameters.d.ts +0 -1
  17. package/dist/browser/models/parameters.d.ts.map +1 -1
  18. package/dist/browser/models/parameters.js +1 -12
  19. package/dist/browser/models/parameters.js.map +1 -1
  20. package/dist/browser/operations/agentPools.d.ts +3 -3
  21. package/dist/browser/operations/agentPools.d.ts.map +1 -1
  22. package/dist/browser/operations/agentPools.js +28 -17
  23. package/dist/browser/operations/agentPools.js.map +1 -1
  24. package/dist/browser/operations/registries.d.ts +1 -9
  25. package/dist/browser/operations/registries.d.ts.map +1 -1
  26. package/dist/browser/operations/registries.js +6 -58
  27. package/dist/browser/operations/registries.js.map +1 -1
  28. package/dist/browser/operations/runs.d.ts +2 -20
  29. package/dist/browser/operations/runs.d.ts.map +1 -1
  30. package/dist/browser/operations/runs.js +15 -122
  31. package/dist/browser/operations/runs.js.map +1 -1
  32. package/dist/browser/operations/taskRuns.d.ts +1 -9
  33. package/dist/browser/operations/taskRuns.d.ts.map +1 -1
  34. package/dist/browser/operations/taskRuns.js +17 -60
  35. package/dist/browser/operations/taskRuns.js.map +1 -1
  36. package/dist/browser/operations/tasks.d.ts +3 -30
  37. package/dist/browser/operations/tasks.d.ts.map +1 -1
  38. package/dist/browser/operations/tasks.js +31 -181
  39. package/dist/browser/operations/tasks.js.map +1 -1
  40. package/dist/browser/operationsInterfaces/agentPools.d.ts +3 -3
  41. package/dist/browser/operationsInterfaces/agentPools.d.ts.map +1 -1
  42. package/dist/browser/operationsInterfaces/agentPools.js.map +1 -1
  43. package/dist/browser/operationsInterfaces/registries.d.ts +1 -9
  44. package/dist/browser/operationsInterfaces/registries.d.ts.map +1 -1
  45. package/dist/browser/operationsInterfaces/registries.js.map +1 -1
  46. package/dist/browser/operationsInterfaces/runs.d.ts +2 -20
  47. package/dist/browser/operationsInterfaces/runs.d.ts.map +1 -1
  48. package/dist/browser/operationsInterfaces/runs.js.map +1 -1
  49. package/dist/browser/operationsInterfaces/taskRuns.d.ts +1 -9
  50. package/dist/browser/operationsInterfaces/taskRuns.d.ts.map +1 -1
  51. package/dist/browser/operationsInterfaces/taskRuns.js.map +1 -1
  52. package/dist/browser/operationsInterfaces/tasks.d.ts +3 -30
  53. package/dist/browser/operationsInterfaces/tasks.d.ts.map +1 -1
  54. package/dist/browser/operationsInterfaces/tasks.js.map +1 -1
  55. package/dist/commonjs/containerRegistryManagementClient.d.ts +3 -0
  56. package/dist/commonjs/containerRegistryManagementClient.d.ts.map +1 -1
  57. package/dist/commonjs/containerRegistryManagementClient.js +28 -1
  58. package/dist/commonjs/containerRegistryManagementClient.js.map +1 -1
  59. package/dist/commonjs/models/index.d.ts +55 -58
  60. package/dist/commonjs/models/index.d.ts.map +1 -1
  61. package/dist/commonjs/models/index.js +12 -4
  62. package/dist/commonjs/models/index.js.map +1 -1
  63. package/dist/commonjs/models/mappers.d.ts +5 -3
  64. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  65. package/dist/commonjs/models/mappers.js +90 -86
  66. package/dist/commonjs/models/mappers.js.map +1 -1
  67. package/dist/commonjs/models/parameters.d.ts +0 -1
  68. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  69. package/dist/commonjs/models/parameters.js +3 -14
  70. package/dist/commonjs/models/parameters.js.map +1 -1
  71. package/dist/commonjs/operations/agentPools.d.ts +3 -3
  72. package/dist/commonjs/operations/agentPools.d.ts.map +1 -1
  73. package/dist/commonjs/operations/agentPools.js +28 -17
  74. package/dist/commonjs/operations/agentPools.js.map +1 -1
  75. package/dist/commonjs/operations/registries.d.ts +1 -9
  76. package/dist/commonjs/operations/registries.d.ts.map +1 -1
  77. package/dist/commonjs/operations/registries.js +6 -58
  78. package/dist/commonjs/operations/registries.js.map +1 -1
  79. package/dist/commonjs/operations/runs.d.ts +2 -20
  80. package/dist/commonjs/operations/runs.d.ts.map +1 -1
  81. package/dist/commonjs/operations/runs.js +15 -122
  82. package/dist/commonjs/operations/runs.js.map +1 -1
  83. package/dist/commonjs/operations/taskRuns.d.ts +1 -9
  84. package/dist/commonjs/operations/taskRuns.d.ts.map +1 -1
  85. package/dist/commonjs/operations/taskRuns.js +17 -60
  86. package/dist/commonjs/operations/taskRuns.js.map +1 -1
  87. package/dist/commonjs/operations/tasks.d.ts +3 -30
  88. package/dist/commonjs/operations/tasks.d.ts.map +1 -1
  89. package/dist/commonjs/operations/tasks.js +31 -181
  90. package/dist/commonjs/operations/tasks.js.map +1 -1
  91. package/dist/commonjs/operationsInterfaces/agentPools.d.ts +3 -3
  92. package/dist/commonjs/operationsInterfaces/agentPools.d.ts.map +1 -1
  93. package/dist/commonjs/operationsInterfaces/agentPools.js.map +1 -1
  94. package/dist/commonjs/operationsInterfaces/registries.d.ts +1 -9
  95. package/dist/commonjs/operationsInterfaces/registries.d.ts.map +1 -1
  96. package/dist/commonjs/operationsInterfaces/registries.js.map +1 -1
  97. package/dist/commonjs/operationsInterfaces/runs.d.ts +2 -20
  98. package/dist/commonjs/operationsInterfaces/runs.d.ts.map +1 -1
  99. package/dist/commonjs/operationsInterfaces/runs.js.map +1 -1
  100. package/dist/commonjs/operationsInterfaces/taskRuns.d.ts +1 -9
  101. package/dist/commonjs/operationsInterfaces/taskRuns.d.ts.map +1 -1
  102. package/dist/commonjs/operationsInterfaces/taskRuns.js.map +1 -1
  103. package/dist/commonjs/operationsInterfaces/tasks.d.ts +3 -30
  104. package/dist/commonjs/operationsInterfaces/tasks.d.ts.map +1 -1
  105. package/dist/commonjs/operationsInterfaces/tasks.js.map +1 -1
  106. package/dist/esm/containerRegistryManagementClient.d.ts +3 -0
  107. package/dist/esm/containerRegistryManagementClient.d.ts.map +1 -1
  108. package/dist/esm/containerRegistryManagementClient.js +28 -1
  109. package/dist/esm/containerRegistryManagementClient.js.map +1 -1
  110. package/dist/esm/models/index.d.ts +55 -58
  111. package/dist/esm/models/index.d.ts.map +1 -1
  112. package/dist/esm/models/index.js +10 -2
  113. package/dist/esm/models/index.js.map +1 -1
  114. package/dist/esm/models/mappers.d.ts +5 -3
  115. package/dist/esm/models/mappers.d.ts.map +1 -1
  116. package/dist/esm/models/mappers.js +87 -83
  117. package/dist/esm/models/mappers.js.map +1 -1
  118. package/dist/esm/models/parameters.d.ts +0 -1
  119. package/dist/esm/models/parameters.d.ts.map +1 -1
  120. package/dist/esm/models/parameters.js +1 -12
  121. package/dist/esm/models/parameters.js.map +1 -1
  122. package/dist/esm/operations/agentPools.d.ts +3 -3
  123. package/dist/esm/operations/agentPools.d.ts.map +1 -1
  124. package/dist/esm/operations/agentPools.js +28 -17
  125. package/dist/esm/operations/agentPools.js.map +1 -1
  126. package/dist/esm/operations/registries.d.ts +1 -9
  127. package/dist/esm/operations/registries.d.ts.map +1 -1
  128. package/dist/esm/operations/registries.js +6 -58
  129. package/dist/esm/operations/registries.js.map +1 -1
  130. package/dist/esm/operations/runs.d.ts +2 -20
  131. package/dist/esm/operations/runs.d.ts.map +1 -1
  132. package/dist/esm/operations/runs.js +15 -122
  133. package/dist/esm/operations/runs.js.map +1 -1
  134. package/dist/esm/operations/taskRuns.d.ts +1 -9
  135. package/dist/esm/operations/taskRuns.d.ts.map +1 -1
  136. package/dist/esm/operations/taskRuns.js +17 -60
  137. package/dist/esm/operations/taskRuns.js.map +1 -1
  138. package/dist/esm/operations/tasks.d.ts +3 -30
  139. package/dist/esm/operations/tasks.d.ts.map +1 -1
  140. package/dist/esm/operations/tasks.js +31 -181
  141. package/dist/esm/operations/tasks.js.map +1 -1
  142. package/dist/esm/operationsInterfaces/agentPools.d.ts +3 -3
  143. package/dist/esm/operationsInterfaces/agentPools.d.ts.map +1 -1
  144. package/dist/esm/operationsInterfaces/agentPools.js.map +1 -1
  145. package/dist/esm/operationsInterfaces/registries.d.ts +1 -9
  146. package/dist/esm/operationsInterfaces/registries.d.ts.map +1 -1
  147. package/dist/esm/operationsInterfaces/registries.js.map +1 -1
  148. package/dist/esm/operationsInterfaces/runs.d.ts +2 -20
  149. package/dist/esm/operationsInterfaces/runs.d.ts.map +1 -1
  150. package/dist/esm/operationsInterfaces/runs.js.map +1 -1
  151. package/dist/esm/operationsInterfaces/taskRuns.d.ts +1 -9
  152. package/dist/esm/operationsInterfaces/taskRuns.d.ts.map +1 -1
  153. package/dist/esm/operationsInterfaces/taskRuns.js.map +1 -1
  154. package/dist/esm/operationsInterfaces/tasks.d.ts +3 -30
  155. package/dist/esm/operationsInterfaces/tasks.d.ts.map +1 -1
  156. package/dist/esm/operationsInterfaces/tasks.js.map +1 -1
  157. package/dist/react-native/containerRegistryManagementClient.d.ts +3 -0
  158. package/dist/react-native/containerRegistryManagementClient.d.ts.map +1 -1
  159. package/dist/react-native/containerRegistryManagementClient.js +28 -1
  160. package/dist/react-native/containerRegistryManagementClient.js.map +1 -1
  161. package/dist/react-native/models/index.d.ts +55 -58
  162. package/dist/react-native/models/index.d.ts.map +1 -1
  163. package/dist/react-native/models/index.js +10 -2
  164. package/dist/react-native/models/index.js.map +1 -1
  165. package/dist/react-native/models/mappers.d.ts +5 -3
  166. package/dist/react-native/models/mappers.d.ts.map +1 -1
  167. package/dist/react-native/models/mappers.js +87 -83
  168. package/dist/react-native/models/mappers.js.map +1 -1
  169. package/dist/react-native/models/parameters.d.ts +0 -1
  170. package/dist/react-native/models/parameters.d.ts.map +1 -1
  171. package/dist/react-native/models/parameters.js +1 -12
  172. package/dist/react-native/models/parameters.js.map +1 -1
  173. package/dist/react-native/operations/agentPools.d.ts +3 -3
  174. package/dist/react-native/operations/agentPools.d.ts.map +1 -1
  175. package/dist/react-native/operations/agentPools.js +28 -17
  176. package/dist/react-native/operations/agentPools.js.map +1 -1
  177. package/dist/react-native/operations/registries.d.ts +1 -9
  178. package/dist/react-native/operations/registries.d.ts.map +1 -1
  179. package/dist/react-native/operations/registries.js +6 -58
  180. package/dist/react-native/operations/registries.js.map +1 -1
  181. package/dist/react-native/operations/runs.d.ts +2 -20
  182. package/dist/react-native/operations/runs.d.ts.map +1 -1
  183. package/dist/react-native/operations/runs.js +15 -122
  184. package/dist/react-native/operations/runs.js.map +1 -1
  185. package/dist/react-native/operations/taskRuns.d.ts +1 -9
  186. package/dist/react-native/operations/taskRuns.d.ts.map +1 -1
  187. package/dist/react-native/operations/taskRuns.js +17 -60
  188. package/dist/react-native/operations/taskRuns.js.map +1 -1
  189. package/dist/react-native/operations/tasks.d.ts +3 -30
  190. package/dist/react-native/operations/tasks.d.ts.map +1 -1
  191. package/dist/react-native/operations/tasks.js +31 -181
  192. package/dist/react-native/operations/tasks.js.map +1 -1
  193. package/dist/react-native/operationsInterfaces/agentPools.d.ts +3 -3
  194. package/dist/react-native/operationsInterfaces/agentPools.d.ts.map +1 -1
  195. package/dist/react-native/operationsInterfaces/agentPools.js.map +1 -1
  196. package/dist/react-native/operationsInterfaces/registries.d.ts +1 -9
  197. package/dist/react-native/operationsInterfaces/registries.d.ts.map +1 -1
  198. package/dist/react-native/operationsInterfaces/registries.js.map +1 -1
  199. package/dist/react-native/operationsInterfaces/runs.d.ts +2 -20
  200. package/dist/react-native/operationsInterfaces/runs.d.ts.map +1 -1
  201. package/dist/react-native/operationsInterfaces/runs.js.map +1 -1
  202. package/dist/react-native/operationsInterfaces/taskRuns.d.ts +1 -9
  203. package/dist/react-native/operationsInterfaces/taskRuns.d.ts.map +1 -1
  204. package/dist/react-native/operationsInterfaces/taskRuns.js.map +1 -1
  205. package/dist/react-native/operationsInterfaces/tasks.d.ts +3 -30
  206. package/dist/react-native/operationsInterfaces/tasks.d.ts.map +1 -1
  207. package/dist/react-native/operationsInterfaces/tasks.js.map +1 -1
  208. package/package.json +7 -7
  209. package/review/arm-containerregistry.api.md +57 -50
@@ -31,7 +31,7 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
31
31
  requestContentType: "application/json; charset=utf-8",
32
32
  credential: credentials,
33
33
  };
34
- const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.4`;
34
+ const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.5`;
35
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
37
  : `${packageDetails}`;
@@ -64,6 +64,7 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
64
64
  this.subscriptionId = subscriptionId;
65
65
  // Assigning values to Constant parameters
66
66
  this.$host = options.$host || "https://management.azure.com";
67
+ this.apiVersion = options.apiVersion || "2025-03-01-preview";
67
68
  this.archives = new ArchivesImpl(this);
68
69
  this.archiveVersions = new ArchiveVersionsImpl(this);
69
70
  this.cacheRules = new CacheRulesImpl(this);
@@ -83,6 +84,32 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
83
84
  this.runs = new RunsImpl(this);
84
85
  this.taskRuns = new TaskRunsImpl(this);
85
86
  this.tasks = new TasksImpl(this);
87
+ this.addCustomApiVersionPolicy(options.apiVersion);
88
+ }
89
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
90
+ addCustomApiVersionPolicy(apiVersion) {
91
+ if (!apiVersion) {
92
+ return;
93
+ }
94
+ const apiVersionPolicy = {
95
+ name: "CustomApiVersionPolicy",
96
+ async sendRequest(request, next) {
97
+ const param = request.url.split("?");
98
+ if (param.length > 1) {
99
+ const newParams = param[1].split("&").map((item) => {
100
+ if (item.indexOf("api-version") > -1) {
101
+ return "api-version=" + apiVersion;
102
+ }
103
+ else {
104
+ return item;
105
+ }
106
+ });
107
+ request.url = param[0] + "?" + newParams.join("&");
108
+ }
109
+ return next(request);
110
+ },
111
+ };
112
+ this.pipeline.addPolicy(apiVersionPolicy);
86
113
  }
87
114
  }
88
115
  //# sourceMappingURL=containerRegistryManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"containerRegistryManagementClient.js","sourceRoot":"","sources":["../../src/containerRegistryManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,8BAA8B,EAC9B,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,SAAS,GACV,MAAM,uBAAuB,CAAC;AAwB/B,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAI7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,O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AAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,IAAI,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;CAqBF","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ArchivesImpl,\n ArchiveVersionsImpl,\n CacheRulesImpl,\n ConnectedRegistriesImpl,\n CredentialSetsImpl,\n ExportPipelinesImpl,\n RegistriesImpl,\n ImportPipelinesImpl,\n OperationsImpl,\n PipelineRunsImpl,\n PrivateEndpointConnectionsImpl,\n ReplicationsImpl,\n ScopeMapsImpl,\n TokensImpl,\n WebhooksImpl,\n AgentPoolsImpl,\n RunsImpl,\n TaskRunsImpl,\n TasksImpl,\n} from \"./operations/index.js\";\nimport {\n Archives,\n ArchiveVersions,\n CacheRules,\n ConnectedRegistries,\n CredentialSets,\n ExportPipelines,\n Registries,\n ImportPipelines,\n Operations,\n PipelineRuns,\n PrivateEndpointConnections,\n Replications,\n ScopeMaps,\n Tokens,\n Webhooks,\n AgentPools,\n Runs,\n TaskRuns,\n Tasks,\n} from \"./operationsInterfaces/index.js\";\nimport { ContainerRegistryManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ContainerRegistryManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ContainerRegistryManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ContainerRegistryManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ContainerRegistryManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.4`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.archives = new ArchivesImpl(this);\n this.archiveVersions = new ArchiveVersionsImpl(this);\n this.cacheRules = new CacheRulesImpl(this);\n this.connectedRegistries = new ConnectedRegistriesImpl(this);\n this.credentialSets = new CredentialSetsImpl(this);\n this.exportPipelines = new ExportPipelinesImpl(this);\n this.registries = new RegistriesImpl(this);\n this.importPipelines = new ImportPipelinesImpl(this);\n this.operations = new OperationsImpl(this);\n this.pipelineRuns = new PipelineRunsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.replications = new ReplicationsImpl(this);\n this.scopeMaps = new ScopeMapsImpl(this);\n this.tokens = new TokensImpl(this);\n this.webhooks = new WebhooksImpl(this);\n this.agentPools = new AgentPoolsImpl(this);\n this.runs = new RunsImpl(this);\n this.taskRuns = new TaskRunsImpl(this);\n this.tasks = new TasksImpl(this);\n }\n\n archives: Archives;\n archiveVersions: ArchiveVersions;\n cacheRules: CacheRules;\n connectedRegistries: ConnectedRegistries;\n credentialSets: CredentialSets;\n exportPipelines: ExportPipelines;\n registries: Registries;\n importPipelines: ImportPipelines;\n operations: Operations;\n pipelineRuns: PipelineRuns;\n privateEndpointConnections: PrivateEndpointConnections;\n replications: Replications;\n scopeMaps: ScopeMaps;\n tokens: Tokens;\n webhooks: Webhooks;\n agentPools: AgentPools;\n runs: Runs;\n taskRuns: TaskRuns;\n tasks: Tasks;\n}\n"]}
1
+ {"version":3,"file":"containerRegistryManagementClient.js","sourceRo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ensed 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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ArchivesImpl,\n ArchiveVersionsImpl,\n CacheRulesImpl,\n ConnectedRegistriesImpl,\n CredentialSetsImpl,\n ExportPipelinesImpl,\n RegistriesImpl,\n ImportPipelinesImpl,\n OperationsImpl,\n PipelineRunsImpl,\n PrivateEndpointConnectionsImpl,\n ReplicationsImpl,\n ScopeMapsImpl,\n TokensImpl,\n WebhooksImpl,\n AgentPoolsImpl,\n RunsImpl,\n TaskRunsImpl,\n TasksImpl,\n} from \"./operations/index.js\";\nimport {\n Archives,\n ArchiveVersions,\n CacheRules,\n ConnectedRegistries,\n CredentialSets,\n ExportPipelines,\n Registries,\n ImportPipelines,\n Operations,\n PipelineRuns,\n PrivateEndpointConnections,\n Replications,\n ScopeMaps,\n Tokens,\n Webhooks,\n AgentPools,\n Runs,\n TaskRuns,\n Tasks,\n} from \"./operationsInterfaces/index.js\";\nimport { ContainerRegistryManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ContainerRegistryManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ContainerRegistryManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ContainerRegistryManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ContainerRegistryManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.5`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-03-01-preview\";\n this.archives = new ArchivesImpl(this);\n this.archiveVersions = new ArchiveVersionsImpl(this);\n this.cacheRules = new CacheRulesImpl(this);\n this.connectedRegistries = new ConnectedRegistriesImpl(this);\n this.credentialSets = new CredentialSetsImpl(this);\n this.exportPipelines = new ExportPipelinesImpl(this);\n this.registries = new RegistriesImpl(this);\n this.importPipelines = new ImportPipelinesImpl(this);\n this.operations = new OperationsImpl(this);\n this.pipelineRuns = new PipelineRunsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.replications = new ReplicationsImpl(this);\n this.scopeMaps = new ScopeMapsImpl(this);\n this.tokens = new TokensImpl(this);\n this.webhooks = new WebhooksImpl(this);\n this.agentPools = new AgentPoolsImpl(this);\n this.runs = new RunsImpl(this);\n this.taskRuns = new TaskRunsImpl(this);\n this.tasks = new TasksImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n archives: Archives;\n archiveVersions: ArchiveVersions;\n cacheRules: CacheRules;\n connectedRegistries: ConnectedRegistries;\n credentialSets: CredentialSets;\n exportPipelines: ExportPipelines;\n registries: Registries;\n importPipelines: ImportPipelines;\n operations: Operations;\n pipelineRuns: PipelineRuns;\n privateEndpointConnections: PrivateEndpointConnections;\n replications: Replications;\n scopeMaps: ScopeMaps;\n tokens: Tokens;\n webhooks: Webhooks;\n agentPools: AgentPools;\n runs: Runs;\n taskRuns: TaskRuns;\n tasks: Tasks;\n}\n"]}
@@ -814,6 +814,8 @@ export interface RegistryUpdateParameters {
814
814
  anonymousPullEnabled?: boolean;
815
815
  /** Determines whether registry artifacts are indexed for metadata search. */
816
816
  metadataSearch?: MetadataSearch;
817
+ /** Determines registry role assignment mode. */
818
+ roleAssignmentMode?: RoleAssignmentMode;
817
819
  }
818
820
  /** The result of a request to get container registry quota usages. */
819
821
  export interface RegistryUsageListResult {
@@ -1131,31 +1133,6 @@ export interface CallbackConfig {
1131
1133
  [propertyName: string]: string;
1132
1134
  };
1133
1135
  }
1134
- /** An error response from the Azure Container Registry service. */
1135
- export interface ErrorResponseForContainerRegistry {
1136
- /** Azure container registry build API error body. */
1137
- error?: ErrorResponseBody;
1138
- }
1139
- /** An error response from the Azure Container Registry service. */
1140
- export interface ErrorResponseBody {
1141
- /** error code. */
1142
- code: string;
1143
- /** error message. */
1144
- message: string;
1145
- /** target of the particular error. */
1146
- target?: string;
1147
- /** an array of additional nested error response info objects, as described by this contract. */
1148
- details?: InnerErrorDescription[];
1149
- }
1150
- /** inner error. */
1151
- export interface InnerErrorDescription {
1152
- /** error code. */
1153
- code: string;
1154
- /** error message. */
1155
- message: string;
1156
- /** target of the particular error. */
1157
- target?: string;
1158
- }
1159
1136
  /** The parameters for updating an agent pool. */
1160
1137
  export interface AgentPoolUpdateParameters {
1161
1138
  /** The ARM resource tags. */
@@ -1411,6 +1388,12 @@ export interface Credentials {
1411
1388
  }
1412
1389
  /** Describes the credential parameters for accessing the source registry. */
1413
1390
  export interface SourceRegistryCredentials {
1391
+ /**
1392
+ * The Entra identity used for source registry login.
1393
+ * The value is `[system]` for system-assigned managed identity, `[caller]` for caller identity,
1394
+ * and client ID for user-assigned managed identity.
1395
+ */
1396
+ identity?: string;
1414
1397
  /**
1415
1398
  * The authentication mode which determines the source registry login scope. The credentials for the source registry
1416
1399
  * will be generated using the given scope. These credentials will be used to login to
@@ -2014,6 +1997,8 @@ export interface Registry extends Resource {
2014
1997
  metadataSearch?: MetadataSearch;
2015
1998
  /** Determines the domain name label reuse scope. */
2016
1999
  autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope;
2000
+ /** Determines registry role assignment mode. */
2001
+ roleAssignmentMode?: RoleAssignmentMode;
2017
2002
  }
2018
2003
  /** An object that represents a replication for a container registry. */
2019
2004
  export interface Replication extends Resource {
@@ -2431,6 +2416,26 @@ export interface WebhooksDeleteHeaders {
2431
2416
  export interface WebhooksUpdateHeaders {
2432
2417
  azureAsyncOperation?: string;
2433
2418
  }
2419
+ /** Defines headers for AgentPools_create operation. */
2420
+ export interface AgentPoolsCreateHeaders {
2421
+ azureAsyncOperation?: string;
2422
+ }
2423
+ /** Defines headers for AgentPools_delete operation. */
2424
+ export interface AgentPoolsDeleteHeaders {
2425
+ location?: string;
2426
+ }
2427
+ /** Defines headers for AgentPools_update operation. */
2428
+ export interface AgentPoolsUpdateHeaders {
2429
+ azureAsyncOperation?: string;
2430
+ }
2431
+ /** Defines headers for TaskRuns_create operation. */
2432
+ export interface TaskRunsCreateHeaders {
2433
+ azureAsyncOperation?: string;
2434
+ }
2435
+ /** Defines headers for TaskRuns_update operation. */
2436
+ export interface TaskRunsUpdateHeaders {
2437
+ azureAsyncOperation?: string;
2438
+ }
2434
2439
  /** Known values of {@link PackageSourceType} that the service accepts. */
2435
2440
  export declare enum KnownPackageSourceType {
2436
2441
  /** Remote */
@@ -2728,18 +2733,18 @@ export declare enum KnownPipelineSourceType {
2728
2733
  export type PipelineSourceType = string;
2729
2734
  /** Known values of {@link TriggerStatus} that the service accepts. */
2730
2735
  export declare enum KnownTriggerStatus {
2731
- /** Disabled */
2732
- Disabled = "Disabled",
2733
2736
  /** Enabled */
2734
- Enabled = "Enabled"
2737
+ Enabled = "Enabled",
2738
+ /** Disabled */
2739
+ Disabled = "Disabled"
2735
2740
  }
2736
2741
  /**
2737
2742
  * Defines values for TriggerStatus. \
2738
2743
  * {@link KnownTriggerStatus} can be used interchangeably with TriggerStatus,
2739
2744
  * this enum contains the known values that the service supports.
2740
2745
  * ### Known values supported by the service
2741
- * **Disabled** \
2742
- * **Enabled**
2746
+ * **Enabled** \
2747
+ * **Disabled**
2743
2748
  */
2744
2749
  export type TriggerStatus = string;
2745
2750
  /** Known values of {@link AutoGeneratedDomainNameLabelScope} that the service accepts. */
@@ -3045,6 +3050,22 @@ export declare enum KnownMetadataSearch {
3045
3050
  * **Disabled**
3046
3051
  */
3047
3052
  export type MetadataSearch = string;
3053
+ /** Known values of {@link RoleAssignmentMode} that the service accepts. */
3054
+ export declare enum KnownRoleAssignmentMode {
3055
+ /** AbacRepositoryPermissions */
3056
+ AbacRepositoryPermissions = "AbacRepositoryPermissions",
3057
+ /** LegacyRegistryPermissions */
3058
+ LegacyRegistryPermissions = "LegacyRegistryPermissions"
3059
+ }
3060
+ /**
3061
+ * Defines values for RoleAssignmentMode. \
3062
+ * {@link KnownRoleAssignmentMode} can be used interchangeably with RoleAssignmentMode,
3063
+ * this enum contains the known values that the service supports.
3064
+ * ### Known values supported by the service
3065
+ * **AbacRepositoryPermissions** \
3066
+ * **LegacyRegistryPermissions**
3067
+ */
3068
+ export type RoleAssignmentMode = string;
3048
3069
  /** Known values of {@link RegistryUsageUnit} that the service accepts. */
3049
3070
  export declare enum KnownRegistryUsageUnit {
3050
3071
  /** Count */
@@ -3756,10 +3777,6 @@ export interface RegistriesGenerateCredentialsOptionalParams extends coreClient.
3756
3777
  export type RegistriesGenerateCredentialsResponse = GenerateCredentialsResult;
3757
3778
  /** Optional parameters. */
3758
3779
  export interface RegistriesScheduleRunOptionalParams extends coreClient.OperationOptions {
3759
- /** Delay to wait until next poll, in milliseconds. */
3760
- updateIntervalInMs?: number;
3761
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
3762
- resumeFrom?: string;
3763
3780
  }
3764
3781
  /** Contains response data for the scheduleRun operation. */
3765
3782
  export type RegistriesScheduleRunResponse = Run;
@@ -4087,6 +4104,8 @@ export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOpti
4087
4104
  /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
4088
4105
  resumeFrom?: string;
4089
4106
  }
4107
+ /** Contains response data for the delete operation. */
4108
+ export type AgentPoolsDeleteResponse = AgentPoolsDeleteHeaders;
4090
4109
  /** Optional parameters. */
4091
4110
  export interface AgentPoolsUpdateOptionalParams extends coreClient.OperationOptions {
4092
4111
  /** Delay to wait until next poll, in milliseconds. */
@@ -4127,10 +4146,6 @@ export interface RunsGetOptionalParams extends coreClient.OperationOptions {
4127
4146
  export type RunsGetResponse = Run;
4128
4147
  /** Optional parameters. */
4129
4148
  export interface RunsUpdateOptionalParams extends coreClient.OperationOptions {
4130
- /** Delay to wait until next poll, in milliseconds. */
4131
- updateIntervalInMs?: number;
4132
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
4133
- resumeFrom?: string;
4134
4149
  }
4135
4150
  /** Contains response data for the update operation. */
4136
4151
  export type RunsUpdateResponse = Run;
@@ -4141,10 +4156,6 @@ export interface RunsGetLogSasUrlOptionalParams extends coreClient.OperationOpti
4141
4156
  export type RunsGetLogSasUrlResponse = RunGetLogResult;
4142
4157
  /** Optional parameters. */
4143
4158
  export interface RunsCancelOptionalParams extends coreClient.OperationOptions {
4144
- /** Delay to wait until next poll, in milliseconds. */
4145
- updateIntervalInMs?: number;
4146
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
4147
- resumeFrom?: string;
4148
4159
  }
4149
4160
  /** Optional parameters. */
4150
4161
  export interface RunsListNextOptionalParams extends coreClient.OperationOptions {
@@ -4167,10 +4178,6 @@ export interface TaskRunsCreateOptionalParams extends coreClient.OperationOption
4167
4178
  export type TaskRunsCreateResponse = TaskRun;
4168
4179
  /** Optional parameters. */
4169
4180
  export interface TaskRunsDeleteOptionalParams extends coreClient.OperationOptions {
4170
- /** Delay to wait until next poll, in milliseconds. */
4171
- updateIntervalInMs?: number;
4172
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
4173
- resumeFrom?: string;
4174
4181
  }
4175
4182
  /** Optional parameters. */
4176
4183
  export interface TaskRunsUpdateOptionalParams extends coreClient.OperationOptions {
@@ -4208,26 +4215,14 @@ export interface TasksGetOptionalParams extends coreClient.OperationOptions {
4208
4215
  export type TasksGetResponse = Task;
4209
4216
  /** Optional parameters. */
4210
4217
  export interface TasksCreateOptionalParams extends coreClient.OperationOptions {
4211
- /** Delay to wait until next poll, in milliseconds. */
4212
- updateIntervalInMs?: number;
4213
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
4214
- resumeFrom?: string;
4215
4218
  }
4216
4219
  /** Contains response data for the create operation. */
4217
4220
  export type TasksCreateResponse = Task;
4218
4221
  /** Optional parameters. */
4219
4222
  export interface TasksDeleteOptionalParams extends coreClient.OperationOptions {
4220
- /** Delay to wait until next poll, in milliseconds. */
4221
- updateIntervalInMs?: number;
4222
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
4223
- resumeFrom?: string;
4224
4223
  }
4225
4224
  /** Optional parameters. */
4226
4225
  export interface TasksUpdateOptionalParams extends coreClient.OperationOptions {
4227
- /** Delay to wait until next poll, in milliseconds. */
4228
- updateIntervalInMs?: number;
4229
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
4230
- resumeFrom?: string;
4231
4226
  }
4232
4227
  /** Contains response data for the update operation. */
4233
4228
  export type TasksUpdateResponse = Task;
@@ -4245,6 +4240,8 @@ export type TasksListNextResponse = TaskListResult;
4245
4240
  export interface ContainerRegistryManagementClientOptionalParams extends coreClient.ServiceClientOptions {
4246
4241
  /** server parameter */
4247
4242
  $host?: string;
4243
+ /** Api Version */
4244
+ apiVersion?: string;
4248
4245
  /** Overrides client endpoint. */
4249
4246
  endpoint?: string;
4250
4247
  }