@azure/arm-containerregistry 10.1.1-alpha.20230918.1 → 11.0.0-alpha.20230919.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 (174) hide show
  1. package/CHANGELOG.md +55 -8
  2. package/README.md +1 -1
  3. package/dist/index.js +2302 -877
  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/cacheRulesCreateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/cacheRulesCreateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/cacheRulesCreateSample.js +45 -0
  10. package/dist-esm/samples-dev/cacheRulesCreateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/cacheRulesDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/cacheRulesDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/cacheRulesDeleteSample.js +40 -0
  14. package/dist-esm/samples-dev/cacheRulesDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/cacheRulesGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/cacheRulesGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/cacheRulesGetSample.js +40 -0
  18. package/dist-esm/samples-dev/cacheRulesGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/cacheRulesListSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/cacheRulesListSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/cacheRulesListSample.js +60 -0
  22. package/dist-esm/samples-dev/cacheRulesListSample.js.map +1 -0
  23. package/dist-esm/samples-dev/cacheRulesUpdateSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/cacheRulesUpdateSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/cacheRulesUpdateSample.js +43 -0
  26. package/dist-esm/samples-dev/cacheRulesUpdateSample.js.map +1 -0
  27. package/dist-esm/samples-dev/credentialSetsCreateSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/credentialSetsCreateSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/credentialSetsCreateSample.js +51 -0
  30. package/dist-esm/samples-dev/credentialSetsCreateSample.js.map +1 -0
  31. package/dist-esm/samples-dev/credentialSetsDeleteSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/credentialSetsDeleteSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/credentialSetsDeleteSample.js +40 -0
  34. package/dist-esm/samples-dev/credentialSetsDeleteSample.js.map +1 -0
  35. package/dist-esm/samples-dev/credentialSetsGetSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/credentialSetsGetSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/credentialSetsGetSample.js +40 -0
  38. package/dist-esm/samples-dev/credentialSetsGetSample.js.map +1 -0
  39. package/dist-esm/samples-dev/credentialSetsListSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/credentialSetsListSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/credentialSetsListSample.js +60 -0
  42. package/dist-esm/samples-dev/credentialSetsListSample.js.map +1 -0
  43. package/dist-esm/samples-dev/credentialSetsUpdateSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/credentialSetsUpdateSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/credentialSetsUpdateSample.js +49 -0
  46. package/dist-esm/samples-dev/credentialSetsUpdateSample.js.map +1 -0
  47. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  48. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  49. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  50. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  51. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  52. package/dist-esm/samples-dev/registriesCheckNameAvailabilitySample.js +2 -2
  53. package/dist-esm/samples-dev/registriesCreateSample.js +2 -2
  54. package/dist-esm/samples-dev/registriesDeleteSample.js +1 -1
  55. package/dist-esm/samples-dev/registriesGenerateCredentialsSample.js +1 -1
  56. package/dist-esm/samples-dev/registriesGetPrivateLinkResourceSample.js +1 -1
  57. package/dist-esm/samples-dev/registriesGetSample.js +1 -1
  58. package/dist-esm/samples-dev/registriesImportImageSample.js +3 -3
  59. package/dist-esm/samples-dev/registriesListByResourceGroupSample.js +1 -1
  60. package/dist-esm/samples-dev/registriesListCredentialsSample.js +1 -1
  61. package/dist-esm/samples-dev/registriesListPrivateLinkResourcesSample.js +1 -1
  62. package/dist-esm/samples-dev/registriesListSample.js +1 -1
  63. package/dist-esm/samples-dev/registriesListUsagesSample.js +1 -1
  64. package/dist-esm/samples-dev/registriesRegenerateCredentialSample.js +1 -1
  65. package/dist-esm/samples-dev/registriesUpdateSample.js +1 -1
  66. package/dist-esm/samples-dev/replicationsCreateSample.js +2 -2
  67. package/dist-esm/samples-dev/replicationsDeleteSample.js +1 -1
  68. package/dist-esm/samples-dev/replicationsGetSample.js +1 -1
  69. package/dist-esm/samples-dev/replicationsListSample.js +1 -1
  70. package/dist-esm/samples-dev/replicationsUpdateSample.js +1 -1
  71. package/dist-esm/samples-dev/scopeMapsCreateSample.js +1 -1
  72. package/dist-esm/samples-dev/scopeMapsDeleteSample.js +1 -1
  73. package/dist-esm/samples-dev/scopeMapsGetSample.js +1 -1
  74. package/dist-esm/samples-dev/scopeMapsListSample.js +1 -1
  75. package/dist-esm/samples-dev/scopeMapsUpdateSample.js +1 -1
  76. package/dist-esm/samples-dev/tokensCreateSample.js +1 -1
  77. package/dist-esm/samples-dev/tokensDeleteSample.js +1 -1
  78. package/dist-esm/samples-dev/tokensGetSample.js +1 -1
  79. package/dist-esm/samples-dev/tokensListSample.js +1 -1
  80. package/dist-esm/samples-dev/tokensUpdateSample.js +1 -1
  81. package/dist-esm/samples-dev/webhooksCreateSample.js +2 -4
  82. package/dist-esm/samples-dev/webhooksCreateSample.js.map +1 -1
  83. package/dist-esm/samples-dev/webhooksDeleteSample.js +1 -1
  84. package/dist-esm/samples-dev/webhooksGetCallbackConfigSample.js +1 -1
  85. package/dist-esm/samples-dev/webhooksGetSample.js +1 -1
  86. package/dist-esm/samples-dev/webhooksListEventsSample.js +1 -1
  87. package/dist-esm/samples-dev/webhooksListSample.js +1 -1
  88. package/dist-esm/samples-dev/webhooksPingSample.js +1 -1
  89. package/dist-esm/samples-dev/webhooksUpdateSample.js +2 -4
  90. package/dist-esm/samples-dev/webhooksUpdateSample.js.map +1 -1
  91. package/dist-esm/src/containerRegistryManagementClient.d.ts +3 -1
  92. package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
  93. package/dist-esm/src/containerRegistryManagementClient.js +4 -2
  94. package/dist-esm/src/containerRegistryManagementClient.js.map +1 -1
  95. package/dist-esm/src/models/index.d.ts +432 -141
  96. package/dist-esm/src/models/index.d.ts.map +1 -1
  97. package/dist-esm/src/models/index.js +42 -28
  98. package/dist-esm/src/models/index.js.map +1 -1
  99. package/dist-esm/src/models/mappers.d.ts +24 -7
  100. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  101. package/dist-esm/src/models/mappers.js +644 -236
  102. package/dist-esm/src/models/mappers.js.map +1 -1
  103. package/dist-esm/src/models/parameters.d.ts +10 -4
  104. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  105. package/dist-esm/src/models/parameters.js +72 -26
  106. package/dist-esm/src/models/parameters.js.map +1 -1
  107. package/dist-esm/src/operations/agentPools.js +11 -11
  108. package/dist-esm/src/operations/agentPools.js.map +1 -1
  109. package/dist-esm/src/operations/cacheRules.d.ts +99 -0
  110. package/dist-esm/src/operations/cacheRules.d.ts.map +1 -0
  111. package/dist-esm/src/operations/cacheRules.js +476 -0
  112. package/dist-esm/src/operations/cacheRules.js.map +1 -0
  113. package/dist-esm/src/operations/credentialSets.d.ts +99 -0
  114. package/dist-esm/src/operations/credentialSets.d.ts.map +1 -0
  115. package/dist-esm/src/operations/credentialSets.js +476 -0
  116. package/dist-esm/src/operations/credentialSets.js.map +1 -0
  117. package/dist-esm/src/operations/index.d.ts +2 -0
  118. package/dist-esm/src/operations/index.d.ts.map +1 -1
  119. package/dist-esm/src/operations/index.js +2 -0
  120. package/dist-esm/src/operations/index.js.map +1 -1
  121. package/dist-esm/src/operations/privateEndpointConnections.js +1 -1
  122. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  123. package/dist-esm/src/operations/registries.js +8 -8
  124. package/dist-esm/src/operations/registries.js.map +1 -1
  125. package/dist-esm/src/operations/replications.js +2 -2
  126. package/dist-esm/src/operations/replications.js.map +1 -1
  127. package/dist-esm/src/operations/runs.js +9 -9
  128. package/dist-esm/src/operations/runs.js.map +1 -1
  129. package/dist-esm/src/operations/scopeMaps.js +2 -2
  130. package/dist-esm/src/operations/scopeMaps.js.map +1 -1
  131. package/dist-esm/src/operations/taskRuns.js +11 -11
  132. package/dist-esm/src/operations/taskRuns.js.map +1 -1
  133. package/dist-esm/src/operations/tasks.js +11 -11
  134. package/dist-esm/src/operations/tasks.js.map +1 -1
  135. package/dist-esm/src/operations/tokens.js +2 -2
  136. package/dist-esm/src/operations/tokens.js.map +1 -1
  137. package/dist-esm/src/operations/webhooks.js +2 -2
  138. package/dist-esm/src/operations/webhooks.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/cacheRules.d.ts +74 -0
  140. package/dist-esm/src/operationsInterfaces/cacheRules.d.ts.map +1 -0
  141. package/dist-esm/src/operationsInterfaces/cacheRules.js +9 -0
  142. package/dist-esm/src/operationsInterfaces/cacheRules.js.map +1 -0
  143. package/dist-esm/src/operationsInterfaces/credentialSets.d.ts +74 -0
  144. package/dist-esm/src/operationsInterfaces/credentialSets.d.ts.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/credentialSets.js +9 -0
  146. package/dist-esm/src/operationsInterfaces/credentialSets.js.map +1 -0
  147. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  148. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  149. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  150. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  151. package/package.json +5 -5
  152. package/review/arm-containerregistry.api.md +258 -5
  153. package/src/containerRegistryManagementClient.ts +9 -1
  154. package/src/models/index.ts +494 -152
  155. package/src/models/mappers.ts +682 -243
  156. package/src/models/parameters.ts +83 -27
  157. package/src/operations/agentPools.ts +11 -11
  158. package/src/operations/cacheRules.ts +661 -0
  159. package/src/operations/credentialSets.ts +661 -0
  160. package/src/operations/index.ts +2 -0
  161. package/src/operations/privateEndpointConnections.ts +1 -1
  162. package/src/operations/registries.ts +8 -8
  163. package/src/operations/replications.ts +2 -2
  164. package/src/operations/runs.ts +9 -9
  165. package/src/operations/scopeMaps.ts +2 -2
  166. package/src/operations/taskRuns.ts +11 -11
  167. package/src/operations/tasks.ts +11 -11
  168. package/src/operations/tokens.ts +2 -2
  169. package/src/operations/webhooks.ts +2 -2
  170. package/src/operationsInterfaces/cacheRules.ts +153 -0
  171. package/src/operationsInterfaces/credentialSets.ts +153 -0
  172. package/src/operationsInterfaces/index.ts +2 -0
  173. package/types/arm-containerregistry.d.ts +491 -11
  174. package/types/tsdoc-metadata.json +1 -1
@@ -247,6 +247,21 @@ export declare interface Argument {
247
247
  isSecret?: boolean;
248
248
  }
249
249
 
250
+ /** Authentication credential stored for an upstream. */
251
+ export declare interface AuthCredential {
252
+ /** The name of the credential. */
253
+ name?: CredentialName;
254
+ /** KeyVault Secret URI for accessing the username. */
255
+ usernameSecretIdentifier?: string;
256
+ /** KeyVault Secret URI for accessing the password. */
257
+ passwordSecretIdentifier?: string;
258
+ /**
259
+ * This provides data pertaining to the health of the auth credential.
260
+ * NOTE: This property will not be serialized. It can only be populated by the server.
261
+ */
262
+ readonly credentialHealth?: CredentialHealth;
263
+ }
264
+
250
265
  /** The authorization properties for accessing the source code repository. */
251
266
  export declare interface AuthInfo {
252
267
  /** The type of Auth token. */
@@ -337,6 +352,183 @@ export declare interface BaseImageTriggerUpdateParameters {
337
352
  name: string;
338
353
  }
339
354
 
355
+ /** An object that represents a cache rule for a container registry. */
356
+ export declare interface CacheRule extends ProxyResource {
357
+ /** The ARM resource ID of the credential store which is associated with the cache rule. */
358
+ credentialSetResourceId?: string;
359
+ /** Source repository pulled from upstream. */
360
+ sourceRepository?: string;
361
+ /**
362
+ * Target repository specified in docker pull command.
363
+ * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
364
+ */
365
+ targetRepository?: string;
366
+ /**
367
+ * The creation date of the cache rule.
368
+ * NOTE: This property will not be serialized. It can only be populated by the server.
369
+ */
370
+ readonly creationDate?: Date;
371
+ /**
372
+ * Provisioning state of the resource.
373
+ * NOTE: This property will not be serialized. It can only be populated by the server.
374
+ */
375
+ readonly provisioningState?: ProvisioningState;
376
+ }
377
+
378
+ /** Interface representing a CacheRules. */
379
+ export declare interface CacheRules {
380
+ /**
381
+ * Lists all cache rule resources for the specified container registry.
382
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
383
+ * @param registryName The name of the container registry.
384
+ * @param options The options parameters.
385
+ */
386
+ list(resourceGroupName: string, registryName: string, options?: CacheRulesListOptionalParams): PagedAsyncIterableIterator<CacheRule>;
387
+ /**
388
+ * Gets the properties of the specified cache rule resource.
389
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
390
+ * @param registryName The name of the container registry.
391
+ * @param cacheRuleName The name of the cache rule.
392
+ * @param options The options parameters.
393
+ */
394
+ get(resourceGroupName: string, registryName: string, cacheRuleName: string, options?: CacheRulesGetOptionalParams): Promise<CacheRulesGetResponse>;
395
+ /**
396
+ * Creates a cache rule for a container registry with the specified parameters.
397
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
398
+ * @param registryName The name of the container registry.
399
+ * @param cacheRuleName The name of the cache rule.
400
+ * @param cacheRuleCreateParameters The parameters for creating a cache rule.
401
+ * @param options The options parameters.
402
+ */
403
+ beginCreate(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleCreateParameters: CacheRule, options?: CacheRulesCreateOptionalParams): Promise<SimplePollerLike<OperationState<CacheRulesCreateResponse>, CacheRulesCreateResponse>>;
404
+ /**
405
+ * Creates a cache rule for a container registry with the specified parameters.
406
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
407
+ * @param registryName The name of the container registry.
408
+ * @param cacheRuleName The name of the cache rule.
409
+ * @param cacheRuleCreateParameters The parameters for creating a cache rule.
410
+ * @param options The options parameters.
411
+ */
412
+ beginCreateAndWait(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleCreateParameters: CacheRule, options?: CacheRulesCreateOptionalParams): Promise<CacheRulesCreateResponse>;
413
+ /**
414
+ * Deletes a cache rule resource from a container registry.
415
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
416
+ * @param registryName The name of the container registry.
417
+ * @param cacheRuleName The name of the cache rule.
418
+ * @param options The options parameters.
419
+ */
420
+ beginDelete(resourceGroupName: string, registryName: string, cacheRuleName: string, options?: CacheRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<CacheRulesDeleteResponse>, CacheRulesDeleteResponse>>;
421
+ /**
422
+ * Deletes a cache rule resource from a container registry.
423
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
424
+ * @param registryName The name of the container registry.
425
+ * @param cacheRuleName The name of the cache rule.
426
+ * @param options The options parameters.
427
+ */
428
+ beginDeleteAndWait(resourceGroupName: string, registryName: string, cacheRuleName: string, options?: CacheRulesDeleteOptionalParams): Promise<CacheRulesDeleteResponse>;
429
+ /**
430
+ * Updates a cache rule for a container registry with the specified parameters.
431
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
432
+ * @param registryName The name of the container registry.
433
+ * @param cacheRuleName The name of the cache rule.
434
+ * @param cacheRuleUpdateParameters The parameters for updating a cache rule.
435
+ * @param options The options parameters.
436
+ */
437
+ beginUpdate(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleUpdateParameters: CacheRuleUpdateParameters, options?: CacheRulesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CacheRulesUpdateResponse>, CacheRulesUpdateResponse>>;
438
+ /**
439
+ * Updates a cache rule for a container registry with the specified parameters.
440
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
441
+ * @param registryName The name of the container registry.
442
+ * @param cacheRuleName The name of the cache rule.
443
+ * @param cacheRuleUpdateParameters The parameters for updating a cache rule.
444
+ * @param options The options parameters.
445
+ */
446
+ beginUpdateAndWait(resourceGroupName: string, registryName: string, cacheRuleName: string, cacheRuleUpdateParameters: CacheRuleUpdateParameters, options?: CacheRulesUpdateOptionalParams): Promise<CacheRulesUpdateResponse>;
447
+ }
448
+
449
+ /** Defines headers for CacheRules_create operation. */
450
+ export declare interface CacheRulesCreateHeaders {
451
+ azureAsyncOperation?: string;
452
+ }
453
+
454
+ /** Optional parameters. */
455
+ export declare interface CacheRulesCreateOptionalParams extends coreClient.OperationOptions {
456
+ /** Delay to wait until next poll, in milliseconds. */
457
+ updateIntervalInMs?: number;
458
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
459
+ resumeFrom?: string;
460
+ }
461
+
462
+ /** Contains response data for the create operation. */
463
+ export declare type CacheRulesCreateResponse = CacheRule;
464
+
465
+ /** Defines headers for CacheRules_delete operation. */
466
+ export declare interface CacheRulesDeleteHeaders {
467
+ location?: string;
468
+ }
469
+
470
+ /** Optional parameters. */
471
+ export declare interface CacheRulesDeleteOptionalParams extends coreClient.OperationOptions {
472
+ /** Delay to wait until next poll, in milliseconds. */
473
+ updateIntervalInMs?: number;
474
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
475
+ resumeFrom?: string;
476
+ }
477
+
478
+ /** Contains response data for the delete operation. */
479
+ export declare type CacheRulesDeleteResponse = CacheRulesDeleteHeaders;
480
+
481
+ /** Optional parameters. */
482
+ export declare interface CacheRulesGetOptionalParams extends coreClient.OperationOptions {
483
+ }
484
+
485
+ /** Contains response data for the get operation. */
486
+ export declare type CacheRulesGetResponse = CacheRule;
487
+
488
+ /** Optional parameters. */
489
+ export declare interface CacheRulesListNextOptionalParams extends coreClient.OperationOptions {
490
+ }
491
+
492
+ /** Contains response data for the listNext operation. */
493
+ export declare type CacheRulesListNextResponse = CacheRulesListResult;
494
+
495
+ /** Optional parameters. */
496
+ export declare interface CacheRulesListOptionalParams extends coreClient.OperationOptions {
497
+ }
498
+
499
+ /** Contains response data for the list operation. */
500
+ export declare type CacheRulesListResponse = CacheRulesListResult;
501
+
502
+ /** The result of a request to list cache rules for a container registry. */
503
+ export declare interface CacheRulesListResult {
504
+ /** The list of cache rules. */
505
+ value?: CacheRule[];
506
+ /** If provided, client must use NextLink URI to request next list of cache rules. */
507
+ nextLink?: string;
508
+ }
509
+
510
+ /** Defines headers for CacheRules_update operation. */
511
+ export declare interface CacheRulesUpdateHeaders {
512
+ azureAsyncOperation?: string;
513
+ }
514
+
515
+ /** Optional parameters. */
516
+ export declare interface CacheRulesUpdateOptionalParams extends coreClient.OperationOptions {
517
+ /** Delay to wait until next poll, in milliseconds. */
518
+ updateIntervalInMs?: number;
519
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
520
+ resumeFrom?: string;
521
+ }
522
+
523
+ /** Contains response data for the update operation. */
524
+ export declare type CacheRulesUpdateResponse = CacheRule;
525
+
526
+ /** The parameters for updating a cache rule. */
527
+ export declare interface CacheRuleUpdateParameters {
528
+ /** The ARM resource ID of the credential store which is associated with the Cache rule. */
529
+ credentialSetResourceId?: string;
530
+ }
531
+
340
532
  /** The configuration of service URI and custom headers for the webhook. */
341
533
  export declare interface CallbackConfig {
342
534
  /** The service URI for the webhook to post notifications. */
@@ -369,6 +561,8 @@ export declare class ContainerRegistryManagementClient extends coreClient.Servic
369
561
  * @param options The parameter options
370
562
  */
371
563
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ContainerRegistryManagementClientOptionalParams);
564
+ cacheRules: CacheRules;
565
+ credentialSets: CredentialSets;
372
566
  registries: Registries;
373
567
  operations: Operations;
374
568
  privateEndpointConnections: PrivateEndpointConnections;
@@ -402,6 +596,35 @@ export declare interface ContainerRegistryManagementClientOptionalParams extends
402
596
  */
403
597
  export declare type CreatedByType = string;
404
598
 
599
+ /** The health of the auth credential. */
600
+ export declare interface CredentialHealth {
601
+ /** The health status of credential. */
602
+ status?: CredentialHealthStatus;
603
+ /** Error code representing the health check error. */
604
+ errorCode?: string;
605
+ /** Descriptive message representing the health check error. */
606
+ errorMessage?: string;
607
+ }
608
+
609
+ /**
610
+ * Defines values for CredentialHealthStatus. \
611
+ * {@link KnownCredentialHealthStatus} can be used interchangeably with CredentialHealthStatus,
612
+ * this enum contains the known values that the service supports.
613
+ * ### Known values supported by the service
614
+ * **Healthy** \
615
+ * **Unhealthy**
616
+ */
617
+ export declare type CredentialHealthStatus = string;
618
+
619
+ /**
620
+ * Defines values for CredentialName. \
621
+ * {@link KnownCredentialName} can be used interchangeably with CredentialName,
622
+ * this enum contains the known values that the service supports.
623
+ * ### Known values supported by the service
624
+ * **Credential1**
625
+ */
626
+ export declare type CredentialName = string;
627
+
405
628
  /** The parameters that describes a set of credentials that will be used when a run is invoked. */
406
629
  export declare interface Credentials {
407
630
  /** Describes the credential parameters for accessing the source registry. */
@@ -416,6 +639,188 @@ export declare interface Credentials {
416
639
  };
417
640
  }
418
641
 
642
+ /** An object that represents a credential set resource for a container registry. */
643
+ export declare interface CredentialSet extends ProxyResource {
644
+ /** Identities associated with the resource. This is used to access the KeyVault secrets. */
645
+ identity?: IdentityProperties;
646
+ /** The credentials are stored for this upstream or login server. */
647
+ loginServer?: string;
648
+ /**
649
+ * List of authentication credentials stored for an upstream.
650
+ * Usually consists of a primary and an optional secondary credential.
651
+ */
652
+ authCredentials?: AuthCredential[];
653
+ /**
654
+ * The creation date of credential store resource.
655
+ * NOTE: This property will not be serialized. It can only be populated by the server.
656
+ */
657
+ readonly creationDate?: Date;
658
+ /**
659
+ * Provisioning state of the resource.
660
+ * NOTE: This property will not be serialized. It can only be populated by the server.
661
+ */
662
+ readonly provisioningState?: ProvisioningState;
663
+ }
664
+
665
+ /** The result of a request to list credential sets for a container registry. */
666
+ export declare interface CredentialSetListResult {
667
+ /** The list of credential sets. Since this list may be incomplete, the nextLink field should be used to request the next list of credential sets. */
668
+ value?: CredentialSet[];
669
+ /** The URI that can be used to request the next list of credential sets. */
670
+ nextLink?: string;
671
+ }
672
+
673
+ /** Interface representing a CredentialSets. */
674
+ export declare interface CredentialSets {
675
+ /**
676
+ * Lists all credential set resources for the specified container registry.
677
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
678
+ * @param registryName The name of the container registry.
679
+ * @param options The options parameters.
680
+ */
681
+ list(resourceGroupName: string, registryName: string, options?: CredentialSetsListOptionalParams): PagedAsyncIterableIterator<CredentialSet>;
682
+ /**
683
+ * Gets the properties of the specified credential set resource.
684
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
685
+ * @param registryName The name of the container registry.
686
+ * @param credentialSetName The name of the credential set.
687
+ * @param options The options parameters.
688
+ */
689
+ get(resourceGroupName: string, registryName: string, credentialSetName: string, options?: CredentialSetsGetOptionalParams): Promise<CredentialSetsGetResponse>;
690
+ /**
691
+ * Creates a credential set for a container registry with the specified parameters.
692
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
693
+ * @param registryName The name of the container registry.
694
+ * @param credentialSetName The name of the credential set.
695
+ * @param credentialSetCreateParameters The parameters for creating a credential set.
696
+ * @param options The options parameters.
697
+ */
698
+ beginCreate(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetCreateParameters: CredentialSet, options?: CredentialSetsCreateOptionalParams): Promise<SimplePollerLike<OperationState<CredentialSetsCreateResponse>, CredentialSetsCreateResponse>>;
699
+ /**
700
+ * Creates a credential set for a container registry with the specified parameters.
701
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
702
+ * @param registryName The name of the container registry.
703
+ * @param credentialSetName The name of the credential set.
704
+ * @param credentialSetCreateParameters The parameters for creating a credential set.
705
+ * @param options The options parameters.
706
+ */
707
+ beginCreateAndWait(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetCreateParameters: CredentialSet, options?: CredentialSetsCreateOptionalParams): Promise<CredentialSetsCreateResponse>;
708
+ /**
709
+ * Deletes a credential set from a container registry.
710
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
711
+ * @param registryName The name of the container registry.
712
+ * @param credentialSetName The name of the credential set.
713
+ * @param options The options parameters.
714
+ */
715
+ beginDelete(resourceGroupName: string, registryName: string, credentialSetName: string, options?: CredentialSetsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<CredentialSetsDeleteResponse>, CredentialSetsDeleteResponse>>;
716
+ /**
717
+ * Deletes a credential set from a container registry.
718
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
719
+ * @param registryName The name of the container registry.
720
+ * @param credentialSetName The name of the credential set.
721
+ * @param options The options parameters.
722
+ */
723
+ beginDeleteAndWait(resourceGroupName: string, registryName: string, credentialSetName: string, options?: CredentialSetsDeleteOptionalParams): Promise<CredentialSetsDeleteResponse>;
724
+ /**
725
+ * Updates a credential set for a container registry with the specified parameters.
726
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
727
+ * @param registryName The name of the container registry.
728
+ * @param credentialSetName The name of the credential set.
729
+ * @param credentialSetUpdateParameters The parameters for updating a credential set.
730
+ * @param options The options parameters.
731
+ */
732
+ beginUpdate(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetUpdateParameters: CredentialSetUpdateParameters, options?: CredentialSetsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CredentialSetsUpdateResponse>, CredentialSetsUpdateResponse>>;
733
+ /**
734
+ * Updates a credential set for a container registry with the specified parameters.
735
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
736
+ * @param registryName The name of the container registry.
737
+ * @param credentialSetName The name of the credential set.
738
+ * @param credentialSetUpdateParameters The parameters for updating a credential set.
739
+ * @param options The options parameters.
740
+ */
741
+ beginUpdateAndWait(resourceGroupName: string, registryName: string, credentialSetName: string, credentialSetUpdateParameters: CredentialSetUpdateParameters, options?: CredentialSetsUpdateOptionalParams): Promise<CredentialSetsUpdateResponse>;
742
+ }
743
+
744
+ /** Defines headers for CredentialSets_create operation. */
745
+ export declare interface CredentialSetsCreateHeaders {
746
+ azureAsyncOperation?: string;
747
+ }
748
+
749
+ /** Optional parameters. */
750
+ export declare interface CredentialSetsCreateOptionalParams extends coreClient.OperationOptions {
751
+ /** Delay to wait until next poll, in milliseconds. */
752
+ updateIntervalInMs?: number;
753
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
754
+ resumeFrom?: string;
755
+ }
756
+
757
+ /** Contains response data for the create operation. */
758
+ export declare type CredentialSetsCreateResponse = CredentialSet;
759
+
760
+ /** Defines headers for CredentialSets_delete operation. */
761
+ export declare interface CredentialSetsDeleteHeaders {
762
+ location?: string;
763
+ }
764
+
765
+ /** Optional parameters. */
766
+ export declare interface CredentialSetsDeleteOptionalParams extends coreClient.OperationOptions {
767
+ /** Delay to wait until next poll, in milliseconds. */
768
+ updateIntervalInMs?: number;
769
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
770
+ resumeFrom?: string;
771
+ }
772
+
773
+ /** Contains response data for the delete operation. */
774
+ export declare type CredentialSetsDeleteResponse = CredentialSetsDeleteHeaders;
775
+
776
+ /** Optional parameters. */
777
+ export declare interface CredentialSetsGetOptionalParams extends coreClient.OperationOptions {
778
+ }
779
+
780
+ /** Contains response data for the get operation. */
781
+ export declare type CredentialSetsGetResponse = CredentialSet;
782
+
783
+ /** Optional parameters. */
784
+ export declare interface CredentialSetsListNextOptionalParams extends coreClient.OperationOptions {
785
+ }
786
+
787
+ /** Contains response data for the listNext operation. */
788
+ export declare type CredentialSetsListNextResponse = CredentialSetListResult;
789
+
790
+ /** Optional parameters. */
791
+ export declare interface CredentialSetsListOptionalParams extends coreClient.OperationOptions {
792
+ }
793
+
794
+ /** Contains response data for the list operation. */
795
+ export declare type CredentialSetsListResponse = CredentialSetListResult;
796
+
797
+ /** Defines headers for CredentialSets_update operation. */
798
+ export declare interface CredentialSetsUpdateHeaders {
799
+ azureAsyncOperation?: string;
800
+ }
801
+
802
+ /** Optional parameters. */
803
+ export declare interface CredentialSetsUpdateOptionalParams extends coreClient.OperationOptions {
804
+ /** Delay to wait until next poll, in milliseconds. */
805
+ updateIntervalInMs?: number;
806
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
807
+ resumeFrom?: string;
808
+ }
809
+
810
+ /** Contains response data for the update operation. */
811
+ export declare type CredentialSetsUpdateResponse = CredentialSet;
812
+
813
+ /** The parameters for updating a credential set */
814
+ export declare interface CredentialSetUpdateParameters {
815
+ /** Identities associated with the resource. This is used to access the KeyVault secrets. */
816
+ identity?: IdentityProperties;
817
+ /**
818
+ * List of authentication credentials stored for an upstream.
819
+ * Usually consists of a primary and an optional secondary credential.
820
+ */
821
+ authCredentials?: AuthCredential[];
822
+ }
823
+
419
824
  /** Describes the credentials that will be used to access a custom registry during a run. */
420
825
  export declare interface CustomRegistryCredentials {
421
826
  /** The username for logging into the custom registry. */
@@ -578,10 +983,53 @@ export declare interface EncryptionProperty {
578
983
  */
579
984
  export declare type EncryptionStatus = string;
580
985
 
581
- /** An error response from the Azure Container Registry service. */
986
+ /** The resource management error additional info. */
987
+ export declare interface ErrorAdditionalInfo {
988
+ /**
989
+ * The additional info type.
990
+ * NOTE: This property will not be serialized. It can only be populated by the server.
991
+ */
992
+ readonly type?: string;
993
+ /**
994
+ * The additional info.
995
+ * NOTE: This property will not be serialized. It can only be populated by the server.
996
+ */
997
+ readonly info?: Record<string, unknown>;
998
+ }
999
+
1000
+ /** The error detail. */
1001
+ export declare interface ErrorDetail {
1002
+ /**
1003
+ * The error code.
1004
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1005
+ */
1006
+ readonly code?: string;
1007
+ /**
1008
+ * The error message.
1009
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1010
+ */
1011
+ readonly message?: string;
1012
+ /**
1013
+ * The error target.
1014
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1015
+ */
1016
+ readonly target?: string;
1017
+ /**
1018
+ * The error details.
1019
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1020
+ */
1021
+ readonly details?: ErrorDetail[];
1022
+ /**
1023
+ * The error additional info.
1024
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1025
+ */
1026
+ readonly additionalInfo?: ErrorAdditionalInfo[];
1027
+ }
1028
+
1029
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
582
1030
  export declare interface ErrorResponse {
583
- /** Azure container registry build API error body. */
584
- error?: ErrorResponseBody;
1031
+ /** The error object. */
1032
+ error?: ErrorDetail;
585
1033
  }
586
1034
 
587
1035
  /** An error response from the Azure Container Registry service. */
@@ -596,6 +1044,12 @@ export declare interface ErrorResponseBody {
596
1044
  details?: InnerErrorDescription[];
597
1045
  }
598
1046
 
1047
+ /** An error response from the Azure Container Registry service. */
1048
+ export declare interface ErrorResponseForContainerRegistry {
1049
+ /** Azure container registry build API error body. */
1050
+ error?: ErrorResponseBody;
1051
+ }
1052
+
599
1053
  /** The event for a webhook. */
600
1054
  declare interface Event_2 extends EventInfo {
601
1055
  /** The event request message sent to the service URI. */
@@ -763,10 +1217,16 @@ export declare function getContinuationToken(page: unknown): string | undefined;
763
1217
 
764
1218
  /** Managed identity for the resource. */
765
1219
  export declare interface IdentityProperties {
766
- /** The principal ID of resource identity. */
767
- principalId?: string;
768
- /** The tenant ID of resource. */
769
- tenantId?: string;
1220
+ /**
1221
+ * The principal ID of resource identity.
1222
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1223
+ */
1224
+ readonly principalId?: string;
1225
+ /**
1226
+ * The tenant ID of resource.
1227
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1228
+ */
1229
+ readonly tenantId?: string;
770
1230
  /** The identity type. */
771
1231
  type?: ResourceIdentityType;
772
1232
  /**
@@ -954,6 +1414,20 @@ export declare enum KnownCreatedByType {
954
1414
  Key = "Key"
955
1415
  }
956
1416
 
1417
+ /** Known values of {@link CredentialHealthStatus} that the service accepts. */
1418
+ export declare enum KnownCredentialHealthStatus {
1419
+ /** Healthy */
1420
+ Healthy = "Healthy",
1421
+ /** Unhealthy */
1422
+ Unhealthy = "Unhealthy"
1423
+ }
1424
+
1425
+ /** Known values of {@link CredentialName} that the service accepts. */
1426
+ export declare enum KnownCredentialName {
1427
+ /** Credential1 */
1428
+ Credential1 = "Credential1"
1429
+ }
1430
+
957
1431
  /** Known values of {@link DefaultAction} that the service accepts. */
958
1432
  export declare enum KnownDefaultAction {
959
1433
  /** Allow */
@@ -3907,10 +4381,16 @@ export declare type TrustPolicyType = string;
3907
4381
  export declare type UpdateTriggerPayloadType = string;
3908
4382
 
3909
4383
  export declare interface UserIdentityProperties {
3910
- /** The principal id of user assigned identity. */
3911
- principalId?: string;
3912
- /** The client id of user assigned identity. */
3913
- clientId?: string;
4384
+ /**
4385
+ * The principal id of user assigned identity.
4386
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4387
+ */
4388
+ readonly principalId?: string;
4389
+ /**
4390
+ * The client id of user assigned identity.
4391
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4392
+ */
4393
+ readonly clientId?: string;
3914
4394
  }
3915
4395
 
3916
4396
  /**
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.37.0"
8
+ "packageVersion": "7.36.4"
9
9
  }
10
10
  ]
11
11
  }