@azure/arm-containerregistry 10.1.0-beta.2 → 10.1.0-beta.4

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 (159) hide show
  1. package/CHANGELOG.md +32 -11
  2. package/README.md +1 -1
  3. package/dist/index.js +623 -167
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/connectedRegistriesCreateSample.js +1 -1
  8. package/dist-esm/samples-dev/connectedRegistriesDeactivateSample.js +1 -1
  9. package/dist-esm/samples-dev/connectedRegistriesDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/connectedRegistriesGetSample.js +1 -1
  11. package/dist-esm/samples-dev/connectedRegistriesListSample.js +1 -1
  12. package/dist-esm/samples-dev/connectedRegistriesUpdateSample.js +1 -1
  13. package/dist-esm/samples-dev/exportPipelinesCreateSample.js +1 -1
  14. package/dist-esm/samples-dev/exportPipelinesDeleteSample.js +1 -1
  15. package/dist-esm/samples-dev/exportPipelinesGetSample.js +1 -1
  16. package/dist-esm/samples-dev/exportPipelinesListSample.js +1 -1
  17. package/dist-esm/samples-dev/importPipelinesCreateSample.js +1 -1
  18. package/dist-esm/samples-dev/importPipelinesDeleteSample.js +1 -1
  19. package/dist-esm/samples-dev/importPipelinesGetSample.js +1 -1
  20. package/dist-esm/samples-dev/importPipelinesListSample.js +1 -1
  21. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  22. package/dist-esm/samples-dev/pipelineRunsCreateSample.js +2 -2
  23. package/dist-esm/samples-dev/pipelineRunsDeleteSample.js +1 -1
  24. package/dist-esm/samples-dev/pipelineRunsGetSample.js +1 -1
  25. package/dist-esm/samples-dev/pipelineRunsListSample.js +1 -1
  26. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  27. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  28. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  29. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  30. package/dist-esm/samples-dev/registriesCheckNameAvailabilitySample.js +2 -2
  31. package/dist-esm/samples-dev/registriesCreateSample.js +2 -2
  32. package/dist-esm/samples-dev/registriesDeleteSample.js +1 -1
  33. package/dist-esm/samples-dev/registriesGenerateCredentialsSample.js +1 -1
  34. package/dist-esm/samples-dev/registriesGetPrivateLinkResourceSample.js +1 -1
  35. package/dist-esm/samples-dev/registriesGetSample.js +1 -1
  36. package/dist-esm/samples-dev/registriesImportImageSample.js +3 -3
  37. package/dist-esm/samples-dev/registriesListByResourceGroupSample.js +1 -1
  38. package/dist-esm/samples-dev/registriesListCredentialsSample.js +1 -1
  39. package/dist-esm/samples-dev/registriesListPrivateLinkResourcesSample.js +1 -1
  40. package/dist-esm/samples-dev/registriesListSample.js +1 -1
  41. package/dist-esm/samples-dev/registriesListUsagesSample.js +1 -1
  42. package/dist-esm/samples-dev/registriesRegenerateCredentialSample.js +1 -1
  43. package/dist-esm/samples-dev/registriesUpdateSample.js +1 -1
  44. package/dist-esm/samples-dev/replicationsCreateSample.js +2 -2
  45. package/dist-esm/samples-dev/replicationsDeleteSample.js +1 -1
  46. package/dist-esm/samples-dev/replicationsGetSample.js +1 -1
  47. package/dist-esm/samples-dev/replicationsListSample.js +1 -1
  48. package/dist-esm/samples-dev/replicationsUpdateSample.js +1 -1
  49. package/dist-esm/samples-dev/scopeMapsCreateSample.js +1 -1
  50. package/dist-esm/samples-dev/scopeMapsDeleteSample.js +1 -1
  51. package/dist-esm/samples-dev/scopeMapsGetSample.js +1 -1
  52. package/dist-esm/samples-dev/scopeMapsListSample.js +1 -1
  53. package/dist-esm/samples-dev/scopeMapsUpdateSample.js +1 -1
  54. package/dist-esm/samples-dev/tokensCreateSample.js +1 -1
  55. package/dist-esm/samples-dev/tokensDeleteSample.js +1 -1
  56. package/dist-esm/samples-dev/tokensGetSample.js +1 -1
  57. package/dist-esm/samples-dev/tokensListSample.js +1 -1
  58. package/dist-esm/samples-dev/tokensUpdateSample.js +1 -1
  59. package/dist-esm/samples-dev/webhooksCreateSample.js +1 -1
  60. package/dist-esm/samples-dev/webhooksDeleteSample.js +1 -1
  61. package/dist-esm/samples-dev/webhooksGetCallbackConfigSample.js +1 -1
  62. package/dist-esm/samples-dev/webhooksGetSample.js +1 -1
  63. package/dist-esm/samples-dev/webhooksListEventsSample.js +1 -1
  64. package/dist-esm/samples-dev/webhooksListSample.js +1 -1
  65. package/dist-esm/samples-dev/webhooksPingSample.js +1 -1
  66. package/dist-esm/samples-dev/webhooksUpdateSample.js +1 -1
  67. package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
  68. package/dist-esm/src/containerRegistryManagementClient.js +25 -6
  69. package/dist-esm/src/containerRegistryManagementClient.js.map +1 -1
  70. package/dist-esm/src/index.d.ts +1 -0
  71. package/dist-esm/src/index.d.ts.map +1 -1
  72. package/dist-esm/src/index.js +1 -0
  73. package/dist-esm/src/index.js.map +1 -1
  74. package/dist-esm/src/models/index.d.ts +235 -59
  75. package/dist-esm/src/models/index.d.ts.map +1 -1
  76. package/dist-esm/src/models/index.js +141 -0
  77. package/dist-esm/src/models/index.js.map +1 -1
  78. package/dist-esm/src/models/mappers.d.ts +4 -1
  79. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  80. package/dist-esm/src/models/mappers.js +94 -33
  81. package/dist-esm/src/models/mappers.js.map +1 -1
  82. package/dist-esm/src/models/parameters.js +1 -1
  83. package/dist-esm/src/operations/agentPools.d.ts.map +1 -1
  84. package/dist-esm/src/operations/agentPools.js +19 -7
  85. package/dist-esm/src/operations/agentPools.js.map +1 -1
  86. package/dist-esm/src/operations/connectedRegistries.d.ts.map +1 -1
  87. package/dist-esm/src/operations/connectedRegistries.js +19 -7
  88. package/dist-esm/src/operations/connectedRegistries.js.map +1 -1
  89. package/dist-esm/src/operations/exportPipelines.d.ts.map +1 -1
  90. package/dist-esm/src/operations/exportPipelines.js +19 -7
  91. package/dist-esm/src/operations/exportPipelines.js.map +1 -1
  92. package/dist-esm/src/operations/importPipelines.d.ts.map +1 -1
  93. package/dist-esm/src/operations/importPipelines.js +19 -7
  94. package/dist-esm/src/operations/importPipelines.js.map +1 -1
  95. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  96. package/dist-esm/src/operations/operations.js +19 -7
  97. package/dist-esm/src/operations/operations.js.map +1 -1
  98. package/dist-esm/src/operations/pipelineRuns.d.ts.map +1 -1
  99. package/dist-esm/src/operations/pipelineRuns.js +19 -7
  100. package/dist-esm/src/operations/pipelineRuns.js.map +1 -1
  101. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  102. package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
  103. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  104. package/dist-esm/src/operations/registries.d.ts.map +1 -1
  105. package/dist-esm/src/operations/registries.js +55 -21
  106. package/dist-esm/src/operations/registries.js.map +1 -1
  107. package/dist-esm/src/operations/replications.d.ts.map +1 -1
  108. package/dist-esm/src/operations/replications.js +19 -7
  109. package/dist-esm/src/operations/replications.js.map +1 -1
  110. package/dist-esm/src/operations/runs.d.ts.map +1 -1
  111. package/dist-esm/src/operations/runs.js +19 -7
  112. package/dist-esm/src/operations/runs.js.map +1 -1
  113. package/dist-esm/src/operations/scopeMaps.d.ts.map +1 -1
  114. package/dist-esm/src/operations/scopeMaps.js +19 -7
  115. package/dist-esm/src/operations/scopeMaps.js.map +1 -1
  116. package/dist-esm/src/operations/taskRuns.d.ts.map +1 -1
  117. package/dist-esm/src/operations/taskRuns.js +19 -7
  118. package/dist-esm/src/operations/taskRuns.js.map +1 -1
  119. package/dist-esm/src/operations/tasks.d.ts.map +1 -1
  120. package/dist-esm/src/operations/tasks.js +19 -7
  121. package/dist-esm/src/operations/tasks.js.map +1 -1
  122. package/dist-esm/src/operations/tokens.d.ts.map +1 -1
  123. package/dist-esm/src/operations/tokens.js +19 -7
  124. package/dist-esm/src/operations/tokens.js.map +1 -1
  125. package/dist-esm/src/operations/webhooks.d.ts.map +1 -1
  126. package/dist-esm/src/operations/webhooks.js +37 -14
  127. package/dist-esm/src/operations/webhooks.js.map +1 -1
  128. package/dist-esm/src/pagingHelper.d.ts +13 -0
  129. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  130. package/dist-esm/src/pagingHelper.js +32 -0
  131. package/dist-esm/src/pagingHelper.js.map +1 -0
  132. package/dist-esm/test/containerregistry_examples.d.ts.map +1 -1
  133. package/dist-esm/test/containerregistry_examples.js +16 -18
  134. package/dist-esm/test/containerregistry_examples.js.map +1 -1
  135. package/package.json +15 -11
  136. package/review/arm-containerregistry.api.md +177 -280
  137. package/src/containerRegistryManagementClient.ts +35 -5
  138. package/src/index.ts +1 -0
  139. package/src/models/index.ts +243 -60
  140. package/src/models/mappers.ts +98 -34
  141. package/src/models/parameters.ts +1 -1
  142. package/src/operations/agentPools.ts +27 -9
  143. package/src/operations/connectedRegistries.ts +26 -8
  144. package/src/operations/exportPipelines.ts +26 -8
  145. package/src/operations/importPipelines.ts +26 -8
  146. package/src/operations/operations.ts +21 -8
  147. package/src/operations/pipelineRuns.ts +26 -8
  148. package/src/operations/privateEndpointConnections.ts +26 -8
  149. package/src/operations/registries.ts +71 -29
  150. package/src/operations/replications.ts +26 -8
  151. package/src/operations/runs.ts +26 -8
  152. package/src/operations/scopeMaps.ts +26 -8
  153. package/src/operations/taskRuns.ts +27 -9
  154. package/src/operations/tasks.ts +26 -8
  155. package/src/operations/tokens.ts +26 -8
  156. package/src/operations/webhooks.ts +53 -22
  157. package/src/pagingHelper.ts +39 -0
  158. package/types/arm-containerregistry.d.ts +250 -60
  159. package/types/tsdoc-metadata.json +1 -1
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Updates a token with the specified parameters.
15
15
  *
16
16
  * @summary Updates a token with the specified parameters.
17
- * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2021-12-01-preview/examples/TokenUpdate.json
17
+ * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/TokenUpdate.json
18
18
  */
19
19
  function tokenUpdate() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Creates a webhook for a container registry with the specified parameters.
15
15
  *
16
16
  * @summary Creates a webhook for a container registry with the specified parameters.
17
- * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2021-12-01-preview/examples/WebhookCreate.json
17
+ * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookCreate.json
18
18
  */
19
19
  function webhookCreate() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Deletes a webhook from a container registry.
15
15
  *
16
16
  * @summary Deletes a webhook from a container registry.
17
- * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2021-12-01-preview/examples/WebhookDelete.json
17
+ * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookDelete.json
18
18
  */
19
19
  function webhookDelete() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets the configuration of service URI and custom headers for the webhook.
15
15
  *
16
16
  * @summary Gets the configuration of service URI and custom headers for the webhook.
17
- * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2021-12-01-preview/examples/WebhookGetCallbackConfig.json
17
+ * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookGetCallbackConfig.json
18
18
  */
19
19
  function webhookGetCallbackConfig() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets the properties of the specified webhook.
15
15
  *
16
16
  * @summary Gets the properties of the specified webhook.
17
- * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2021-12-01-preview/examples/WebhookGet.json
17
+ * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookGet.json
18
18
  */
19
19
  function webhookGet() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Lists recent events for the specified webhook.
15
15
  *
16
16
  * @summary Lists recent events for the specified webhook.
17
- * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2021-12-01-preview/examples/WebhookListEvents.json
17
+ * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookListEvents.json
18
18
  */
19
19
  function webhookListEvents() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Lists all the webhooks for the specified container registry.
15
15
  *
16
16
  * @summary Lists all the webhooks for the specified container registry.
17
- * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2021-12-01-preview/examples/WebhookList.json
17
+ * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookList.json
18
18
  */
19
19
  function webhookList() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Triggers a ping event to be sent to the webhook.
15
15
  *
16
16
  * @summary Triggers a ping event to be sent to the webhook.
17
- * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2021-12-01-preview/examples/WebhookPing.json
17
+ * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookPing.json
18
18
  */
19
19
  function webhookPing() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Updates a webhook with the specified parameters.
15
15
  *
16
16
  * @summary Updates a webhook with the specified parameters.
17
- * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2021-12-01-preview/examples/WebhookUpdate.json
17
+ * x-ms-original-file: specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookUpdate.json
18
18
  */
19
19
  function webhookUpdate() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"containerRegistryManagementClient.d.ts","sourceRoot":"","sources":["../../src/containerRegistryManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAkB7C,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,eAAe,EACf,UAAU,EACV,YAAY,EACZ,0BAA0B,EAC1B,YAAY,EACZ,SAAS,EACT,MAAM,EACN,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,KAAK,EACN,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,+CAA+C,EAAE,MAAM,UAAU,CAAC;AAE3E,qBAAa,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C;IA2D3D,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;CACd"}
1
+ {"version":3,"file":"containerRegistryManagementClient.d.ts","sourceRoot":"","sources":["../../src/containerRegistryManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAkB7C,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,eAAe,EACf,UAAU,EACV,YAAY,EACZ,0BAA0B,EAC1B,YAAY,EACZ,SAAS,EACT,MAAM,EACN,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,KAAK,EACN,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,+CAA+C,EAAE,MAAM,UAAU,CAAC;AAE3E,qBAAa,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C;IAwF3D,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;CACd"}
@@ -6,6 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
9
10
  import { ConnectedRegistriesImpl, ExportPipelinesImpl, RegistriesImpl, ImportPipelinesImpl, OperationsImpl, PipelineRunsImpl, PrivateEndpointConnectionsImpl, ReplicationsImpl, ScopeMapsImpl, TokensImpl, WebhooksImpl, AgentPoolsImpl, RunsImpl, TaskRunsImpl, TasksImpl } from "./operations";
10
11
  export class ContainerRegistryManagementClient extends coreClient.ServiceClient {
11
12
  /**
@@ -15,7 +16,7 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
15
16
  * @param options The parameter options
16
17
  */
17
18
  constructor(credentials, subscriptionId, options) {
18
- var _a, _b;
19
+ var _a, _b, _c;
19
20
  if (credentials === undefined) {
20
21
  throw new Error("'credentials' cannot be null");
21
22
  }
@@ -30,17 +31,35 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
30
31
  requestContentType: "application/json; charset=utf-8",
31
32
  credential: credentials
32
33
  };
33
- const packageDetails = `azsdk-js-arm-containerregistry/10.1.0-beta.2`;
34
+ const packageDetails = `azsdk-js-arm-containerregistry/10.1.0-beta.4`;
34
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
37
  : `${packageDetails}`;
37
- if (!options.credentialScopes) {
38
- options.credentialScopes = ["https://management.azure.com/.default"];
39
- }
40
38
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
41
39
  userAgentPrefix
42
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
40
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
43
41
  super(optionsWithDefaults);
42
+ let bearerTokenAuthenticationPolicyFound = false;
43
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
44
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
47
+ }
48
+ if (!options ||
49
+ !options.pipeline ||
50
+ options.pipeline.getOrderedPolicies().length == 0 ||
51
+ !bearerTokenAuthenticationPolicyFound) {
52
+ this.pipeline.removePolicy({
53
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
54
+ });
55
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
+ credential: credentials,
57
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
58
+ challengeCallbacks: {
59
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
60
+ }
61
+ }));
62
+ }
44
63
  // Parameter assignments
45
64
  this.subscriptionId = subscriptionId;
46
65
  // Assigning values to Constant parameters
@@ -1 +1 @@
1
- {"version":3,"file":"containerRegistryManagementClient.js","sourceRoot":"","sources":["../../src/containerRegistryManagementClient.ts"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,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;CAiBF"}
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,uBAAuB,EACvB,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,EACV,MAAM,cAAc,CAAC;AAoBtB,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAI7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAoD;YAChE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,8CAA8C,CAAC;QACtE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,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AO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,YAAY,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;CAiBF"}
@@ -1,4 +1,5 @@
1
1
  /// <reference lib="esnext.asynciterable" />
2
+ export { getContinuationToken } from "./pagingHelper";
2
3
  export * from "./models";
3
4
  export { ContainerRegistryManagementClient } from "./containerRegistryManagementClient";
4
5
  export * from "./operationsInterfaces";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,cAAc,wBAAwB,CAAC"}
@@ -6,6 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  /// <reference lib="esnext.asynciterable" />
9
+ export { getContinuationToken } from "./pagingHelper";
9
10
  export * from "./models";
10
11
  export { ContainerRegistryManagementClient } from "./containerRegistryManagementClient";
11
12
  export * from "./operationsInterfaces";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,cAAc,wBAAwB,CAAC"}