@azure/arm-containerregistry 10.1.0-alpha.20220421.1 → 10.1.0-beta.3

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 (84) hide show
  1. package/CHANGELOG.md +8 -15
  2. package/dist/index.js +123 -35
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/connectedRegistriesCreateSample.js +1 -1
  7. package/dist-esm/samples-dev/connectedRegistriesDeactivateSample.js +1 -1
  8. package/dist-esm/samples-dev/connectedRegistriesDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/connectedRegistriesGetSample.js +1 -1
  10. package/dist-esm/samples-dev/connectedRegistriesListSample.js +1 -1
  11. package/dist-esm/samples-dev/connectedRegistriesUpdateSample.js +1 -1
  12. package/dist-esm/samples-dev/exportPipelinesCreateSample.js +1 -1
  13. package/dist-esm/samples-dev/exportPipelinesDeleteSample.js +1 -1
  14. package/dist-esm/samples-dev/exportPipelinesGetSample.js +1 -1
  15. package/dist-esm/samples-dev/exportPipelinesListSample.js +1 -1
  16. package/dist-esm/samples-dev/importPipelinesCreateSample.js +1 -1
  17. package/dist-esm/samples-dev/importPipelinesDeleteSample.js +1 -1
  18. package/dist-esm/samples-dev/importPipelinesGetSample.js +1 -1
  19. package/dist-esm/samples-dev/importPipelinesListSample.js +1 -1
  20. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  21. package/dist-esm/samples-dev/pipelineRunsCreateSample.js +2 -2
  22. package/dist-esm/samples-dev/pipelineRunsDeleteSample.js +1 -1
  23. package/dist-esm/samples-dev/pipelineRunsGetSample.js +1 -1
  24. package/dist-esm/samples-dev/pipelineRunsListSample.js +1 -1
  25. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  26. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  27. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  28. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  29. package/dist-esm/samples-dev/registriesCheckNameAvailabilitySample.js +2 -2
  30. package/dist-esm/samples-dev/registriesCreateSample.js +2 -2
  31. package/dist-esm/samples-dev/registriesDeleteSample.js +1 -1
  32. package/dist-esm/samples-dev/registriesGenerateCredentialsSample.js +1 -1
  33. package/dist-esm/samples-dev/registriesGetPrivateLinkResourceSample.js +1 -1
  34. package/dist-esm/samples-dev/registriesGetSample.js +1 -1
  35. package/dist-esm/samples-dev/registriesImportImageSample.js +3 -3
  36. package/dist-esm/samples-dev/registriesListByResourceGroupSample.js +1 -1
  37. package/dist-esm/samples-dev/registriesListCredentialsSample.js +1 -1
  38. package/dist-esm/samples-dev/registriesListPrivateLinkResourcesSample.js +1 -1
  39. package/dist-esm/samples-dev/registriesListSample.js +1 -1
  40. package/dist-esm/samples-dev/registriesListUsagesSample.js +1 -1
  41. package/dist-esm/samples-dev/registriesRegenerateCredentialSample.js +1 -1
  42. package/dist-esm/samples-dev/registriesUpdateSample.js +1 -1
  43. package/dist-esm/samples-dev/replicationsCreateSample.js +2 -2
  44. package/dist-esm/samples-dev/replicationsDeleteSample.js +1 -1
  45. package/dist-esm/samples-dev/replicationsGetSample.js +1 -1
  46. package/dist-esm/samples-dev/replicationsListSample.js +1 -1
  47. package/dist-esm/samples-dev/replicationsUpdateSample.js +1 -1
  48. package/dist-esm/samples-dev/scopeMapsCreateSample.js +1 -1
  49. package/dist-esm/samples-dev/scopeMapsDeleteSample.js +1 -1
  50. package/dist-esm/samples-dev/scopeMapsGetSample.js +1 -1
  51. package/dist-esm/samples-dev/scopeMapsListSample.js +1 -1
  52. package/dist-esm/samples-dev/scopeMapsUpdateSample.js +1 -1
  53. package/dist-esm/samples-dev/tokensCreateSample.js +1 -1
  54. package/dist-esm/samples-dev/tokensDeleteSample.js +1 -1
  55. package/dist-esm/samples-dev/tokensGetSample.js +1 -1
  56. package/dist-esm/samples-dev/tokensListSample.js +1 -1
  57. package/dist-esm/samples-dev/tokensUpdateSample.js +1 -1
  58. package/dist-esm/samples-dev/webhooksCreateSample.js +1 -1
  59. package/dist-esm/samples-dev/webhooksDeleteSample.js +1 -1
  60. package/dist-esm/samples-dev/webhooksGetCallbackConfigSample.js +1 -1
  61. package/dist-esm/samples-dev/webhooksGetSample.js +1 -1
  62. package/dist-esm/samples-dev/webhooksListEventsSample.js +1 -1
  63. package/dist-esm/samples-dev/webhooksListSample.js +1 -1
  64. package/dist-esm/samples-dev/webhooksPingSample.js +1 -1
  65. package/dist-esm/samples-dev/webhooksUpdateSample.js +1 -1
  66. package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
  67. package/dist-esm/src/containerRegistryManagementClient.js +17 -0
  68. package/dist-esm/src/containerRegistryManagementClient.js.map +1 -1
  69. package/dist-esm/src/models/index.d.ts +50 -9
  70. package/dist-esm/src/models/index.d.ts.map +1 -1
  71. package/dist-esm/src/models/index.js +6 -0
  72. package/dist-esm/src/models/index.js.map +1 -1
  73. package/dist-esm/src/models/mappers.d.ts +4 -1
  74. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  75. package/dist-esm/src/models/mappers.js +94 -33
  76. package/dist-esm/src/models/mappers.js.map +1 -1
  77. package/dist-esm/src/models/parameters.js +1 -1
  78. package/package.json +3 -3
  79. package/review/arm-containerregistry.api.md +36 -7
  80. package/src/containerRegistryManagementClient.ts +24 -0
  81. package/src/models/index.ts +56 -10
  82. package/src/models/mappers.ts +98 -34
  83. package/src/models/parameters.ts +1 -1
  84. package/types/arm-containerregistry.d.ts +56 -10
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for ContainerRegistryManagementClient.",
6
- "version": "10.1.0-alpha.20220421.1",
6
+ "version": "10.1.0-beta.3",
7
7
  "engines": {
8
8
  "node": ">=12.0.0"
9
9
  },
@@ -11,9 +11,9 @@
11
11
  "@azure/core-lro": "^2.2.0",
12
12
  "@azure/abort-controller": "^1.0.0",
13
13
  "@azure/core-paging": "^1.2.0",
14
- "@azure/core-client": "^1.0.0",
14
+ "@azure/core-client": "^1.5.0",
15
15
  "@azure/core-auth": "^1.3.0",
16
- "@azure/core-rest-pipeline": "^1.1.0",
16
+ "@azure/core-rest-pipeline": "^1.8.0",
17
17
  "tslib": "^2.2.0"
18
18
  },
19
19
  "keywords": [
@@ -164,6 +164,14 @@ export interface AuthInfoUpdateParameters {
164
164
  tokenType?: TokenType;
165
165
  }
166
166
 
167
+ // @public
168
+ export interface AzureADAuthenticationAsArmPolicy {
169
+ status?: AzureADAuthenticationAsArmPolicyStatus;
170
+ }
171
+
172
+ // @public
173
+ export type AzureADAuthenticationAsArmPolicyStatus = string;
174
+
167
175
  // @public
168
176
  export interface BaseImageDependency {
169
177
  digest?: string;
@@ -823,6 +831,14 @@ export enum KnownAuditLogStatus {
823
831
  Enabled = "Enabled"
824
832
  }
825
833
 
834
+ // @public
835
+ export enum KnownAzureADAuthenticationAsArmPolicyStatus {
836
+ // (undocumented)
837
+ Disabled = "disabled",
838
+ // (undocumented)
839
+ Enabled = "enabled"
840
+ }
841
+
826
842
  // @public
827
843
  export enum KnownBaseImageDependencyType {
828
844
  // (undocumented)
@@ -1270,7 +1286,6 @@ export type NetworkRuleBypassOptions = string;
1270
1286
  export interface NetworkRuleSet {
1271
1287
  defaultAction: DefaultAction;
1272
1288
  ipRules?: IPRule[];
1273
- virtualNetworkRules?: VirtualNetworkRule[];
1274
1289
  }
1275
1290
 
1276
1291
  // @public
@@ -1351,6 +1366,12 @@ export interface OverrideTaskStepProperties {
1351
1366
  values?: SetValue[];
1352
1367
  }
1353
1368
 
1369
+ // @public
1370
+ export interface PackageType {
1371
+ readonly endpoint?: string;
1372
+ name?: string;
1373
+ }
1374
+
1354
1375
  // @public
1355
1376
  export interface ParentProperties {
1356
1377
  id?: string;
@@ -1503,9 +1524,11 @@ export interface PlatformUpdateParameters {
1503
1524
 
1504
1525
  // @public
1505
1526
  export interface Policies {
1527
+ azureADAuthenticationAsArmPolicy?: AzureADAuthenticationAsArmPolicy;
1506
1528
  exportPolicy?: ExportPolicy;
1507
1529
  quarantinePolicy?: QuarantinePolicy;
1508
1530
  retentionPolicy?: RetentionPolicy;
1531
+ softDeletePolicy?: SoftDeletePolicy;
1509
1532
  trustPolicy?: TrustPolicy;
1510
1533
  }
1511
1534
 
@@ -2226,6 +2249,13 @@ export type SkuName = string;
2226
2249
  // @public
2227
2250
  export type SkuTier = string;
2228
2251
 
2252
+ // @public
2253
+ export interface SoftDeletePolicy {
2254
+ readonly lastUpdatedTime?: Date;
2255
+ retentionDays?: number;
2256
+ status?: PolicyStatus;
2257
+ }
2258
+
2229
2259
  // @public
2230
2260
  export interface Source {
2231
2261
  addr?: string;
@@ -2314,6 +2344,11 @@ export interface StatusDetailProperties {
2314
2344
  // @public
2315
2345
  export type StepType = string;
2316
2346
 
2347
+ // @public
2348
+ export interface StorageAccountProperties {
2349
+ id: string;
2350
+ }
2351
+
2317
2352
  // @public
2318
2353
  export interface SyncProperties {
2319
2354
  readonly gatewayEndpoint?: string;
@@ -2771,12 +2806,6 @@ export interface UserIdentityProperties {
2771
2806
  // @public
2772
2807
  export type Variant = string;
2773
2808
 
2774
- // @public
2775
- export interface VirtualNetworkRule {
2776
- action?: Action;
2777
- virtualNetworkResourceId: string;
2778
- }
2779
-
2780
2809
  // @public
2781
2810
  export type Webhook = Resource & {
2782
2811
  status?: WebhookStatus;
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
11
  import * as coreAuth from "@azure/core-auth";
11
12
  import {
12
13
  ConnectedRegistriesImpl,
@@ -94,6 +95,29 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
94
95
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
95
96
  };
96
97
  super(optionsWithDefaults);
98
+
99
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
100
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
101
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
102
+ (pipelinePolicy) =>
103
+ pipelinePolicy.name ===
104
+ coreRestPipeline.bearerTokenAuthenticationPolicyName
105
+ );
106
+ if (!bearerTokenAuthenticationPolicyFound) {
107
+ this.pipeline.removePolicy({
108
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
109
+ });
110
+ this.pipeline.addPolicy(
111
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
112
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
113
+ challengeCallbacks: {
114
+ authorizeRequestOnChallenge:
115
+ coreClient.authorizeRequestOnClaimChallenge
116
+ }
117
+ })
118
+ );
119
+ }
120
+ }
97
121
  // Parameter assignments
98
122
  this.subscriptionId = subscriptionId;
99
123
 
@@ -588,20 +588,10 @@ export interface Status {
588
588
  export interface NetworkRuleSet {
589
589
  /** The default action of allow or deny when no other rules match. */
590
590
  defaultAction: DefaultAction;
591
- /** The virtual network rules. */
592
- virtualNetworkRules?: VirtualNetworkRule[];
593
591
  /** The IP ACL rules. */
594
592
  ipRules?: IPRule[];
595
593
  }
596
594
 
597
- /** Virtual network rule. */
598
- export interface VirtualNetworkRule {
599
- /** The action of virtual network rule. */
600
- action?: Action;
601
- /** Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. */
602
- virtualNetworkResourceId: string;
603
- }
604
-
605
595
  /** IP rule with specific IP or IP range in CIDR format. */
606
596
  export interface IPRule {
607
597
  /** The action of IP ACL rule. */
@@ -620,6 +610,10 @@ export interface Policies {
620
610
  retentionPolicy?: RetentionPolicy;
621
611
  /** The export policy for a container registry. */
622
612
  exportPolicy?: ExportPolicy;
613
+ /** The policy for using ARM audience token for a container registry. */
614
+ azureADAuthenticationAsArmPolicy?: AzureADAuthenticationAsArmPolicy;
615
+ /** The soft delete policy for a container registry. */
616
+ softDeletePolicy?: SoftDeletePolicy;
623
617
  }
624
618
 
625
619
  /** The quarantine policy for a container registry. */
@@ -655,6 +649,25 @@ export interface ExportPolicy {
655
649
  status?: ExportPolicyStatus;
656
650
  }
657
651
 
652
+ /** The policy for using ARM audience token for a container registry. */
653
+ export interface AzureADAuthenticationAsArmPolicy {
654
+ /** The value that indicates whether the policy is enabled or not. */
655
+ status?: AzureADAuthenticationAsArmPolicyStatus;
656
+ }
657
+
658
+ /** The soft delete policy for a container registry */
659
+ export interface SoftDeletePolicy {
660
+ /** The number of days after which a soft-deleted item is permanently deleted. */
661
+ retentionDays?: number;
662
+ /**
663
+ * The timestamp when the policy was last updated.
664
+ * NOTE: This property will not be serialized. It can only be populated by the server.
665
+ */
666
+ readonly lastUpdatedTime?: Date;
667
+ /** The value that indicates whether the policy is enabled or not. */
668
+ status?: PolicyStatus;
669
+ }
670
+
658
671
  export interface EncryptionProperty {
659
672
  /** Indicates whether or not the encryption is enabled for container registry. */
660
673
  status?: EncryptionStatus;
@@ -1511,6 +1524,23 @@ export interface BaseImageTriggerUpdateParameters {
1511
1524
  name: string;
1512
1525
  }
1513
1526
 
1527
+ /** The properties of a storage account for a container registry. Only applicable to Classic SKU. */
1528
+ export interface StorageAccountProperties {
1529
+ /** The resource ID of the storage account. */
1530
+ id: string;
1531
+ }
1532
+
1533
+ /** The properties of a package type. */
1534
+ export interface PackageType {
1535
+ /** The name of the package type. */
1536
+ name?: string;
1537
+ /**
1538
+ * The endpoint of the package type.
1539
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1540
+ */
1541
+ readonly endpoint?: string;
1542
+ }
1543
+
1514
1544
  /** The Active Directory Object that will be used for authenticating the token of a container registry. */
1515
1545
  export interface ActiveDirectoryObject {
1516
1546
  /** The user/group/application object ID for Active Directory Object that will be used for authenticating the token of a container registry. */
@@ -2586,6 +2616,22 @@ export enum KnownExportPolicyStatus {
2586
2616
  */
2587
2617
  export type ExportPolicyStatus = string;
2588
2618
 
2619
+ /** Known values of {@link AzureADAuthenticationAsArmPolicyStatus} that the service accepts. */
2620
+ export enum KnownAzureADAuthenticationAsArmPolicyStatus {
2621
+ Enabled = "enabled",
2622
+ Disabled = "disabled"
2623
+ }
2624
+
2625
+ /**
2626
+ * Defines values for AzureADAuthenticationAsArmPolicyStatus. \
2627
+ * {@link KnownAzureADAuthenticationAsArmPolicyStatus} can be used interchangeably with AzureADAuthenticationAsArmPolicyStatus,
2628
+ * this enum contains the known values that the service supports.
2629
+ * ### Known values supported by the service
2630
+ * **enabled** \
2631
+ * **disabled**
2632
+ */
2633
+ export type AzureADAuthenticationAsArmPolicyStatus = string;
2634
+
2589
2635
  /** Known values of {@link EncryptionStatus} that the service accepts. */
2590
2636
  export enum KnownEncryptionStatus {
2591
2637
  Enabled = "enabled",
@@ -1471,18 +1471,6 @@ export const NetworkRuleSet: coreClient.CompositeMapper = {
1471
1471
  name: "String"
1472
1472
  }
1473
1473
  },
1474
- virtualNetworkRules: {
1475
- serializedName: "virtualNetworkRules",
1476
- type: {
1477
- name: "Sequence",
1478
- element: {
1479
- type: {
1480
- name: "Composite",
1481
- className: "VirtualNetworkRule"
1482
- }
1483
- }
1484
- }
1485
- },
1486
1474
  ipRules: {
1487
1475
  serializedName: "ipRules",
1488
1476
  type: {
@@ -1499,34 +1487,13 @@ export const NetworkRuleSet: coreClient.CompositeMapper = {
1499
1487
  }
1500
1488
  };
1501
1489
 
1502
- export const VirtualNetworkRule: coreClient.CompositeMapper = {
1503
- type: {
1504
- name: "Composite",
1505
- className: "VirtualNetworkRule",
1506
- modelProperties: {
1507
- action: {
1508
- serializedName: "action",
1509
- type: {
1510
- name: "String"
1511
- }
1512
- },
1513
- virtualNetworkResourceId: {
1514
- serializedName: "id",
1515
- required: true,
1516
- type: {
1517
- name: "String"
1518
- }
1519
- }
1520
- }
1521
- }
1522
- };
1523
-
1524
1490
  export const IPRule: coreClient.CompositeMapper = {
1525
1491
  type: {
1526
1492
  name: "Composite",
1527
1493
  className: "IPRule",
1528
1494
  modelProperties: {
1529
1495
  action: {
1496
+ defaultValue: "Allow",
1530
1497
  serializedName: "action",
1531
1498
  type: {
1532
1499
  name: "String"
@@ -1575,6 +1542,20 @@ export const Policies: coreClient.CompositeMapper = {
1575
1542
  name: "Composite",
1576
1543
  className: "ExportPolicy"
1577
1544
  }
1545
+ },
1546
+ azureADAuthenticationAsArmPolicy: {
1547
+ serializedName: "azureADAuthenticationAsArmPolicy",
1548
+ type: {
1549
+ name: "Composite",
1550
+ className: "AzureADAuthenticationAsArmPolicy"
1551
+ }
1552
+ },
1553
+ softDeletePolicy: {
1554
+ serializedName: "softDeletePolicy",
1555
+ type: {
1556
+ name: "Composite",
1557
+ className: "SoftDeletePolicy"
1558
+ }
1578
1559
  }
1579
1560
  }
1580
1561
  }
@@ -1662,6 +1643,51 @@ export const ExportPolicy: coreClient.CompositeMapper = {
1662
1643
  }
1663
1644
  };
1664
1645
 
1646
+ export const AzureADAuthenticationAsArmPolicy: coreClient.CompositeMapper = {
1647
+ type: {
1648
+ name: "Composite",
1649
+ className: "AzureADAuthenticationAsArmPolicy",
1650
+ modelProperties: {
1651
+ status: {
1652
+ defaultValue: "enabled",
1653
+ serializedName: "status",
1654
+ type: {
1655
+ name: "String"
1656
+ }
1657
+ }
1658
+ }
1659
+ }
1660
+ };
1661
+
1662
+ export const SoftDeletePolicy: coreClient.CompositeMapper = {
1663
+ type: {
1664
+ name: "Composite",
1665
+ className: "SoftDeletePolicy",
1666
+ modelProperties: {
1667
+ retentionDays: {
1668
+ defaultValue: 7,
1669
+ serializedName: "retentionDays",
1670
+ type: {
1671
+ name: "Number"
1672
+ }
1673
+ },
1674
+ lastUpdatedTime: {
1675
+ serializedName: "lastUpdatedTime",
1676
+ readOnly: true,
1677
+ type: {
1678
+ name: "DateTime"
1679
+ }
1680
+ },
1681
+ status: {
1682
+ serializedName: "status",
1683
+ type: {
1684
+ name: "String"
1685
+ }
1686
+ }
1687
+ }
1688
+ }
1689
+ };
1690
+
1665
1691
  export const EncryptionProperty: coreClient.CompositeMapper = {
1666
1692
  type: {
1667
1693
  name: "Composite",
@@ -4080,6 +4106,44 @@ export const BaseImageTriggerUpdateParameters: coreClient.CompositeMapper = {
4080
4106
  }
4081
4107
  };
4082
4108
 
4109
+ export const StorageAccountProperties: coreClient.CompositeMapper = {
4110
+ type: {
4111
+ name: "Composite",
4112
+ className: "StorageAccountProperties",
4113
+ modelProperties: {
4114
+ id: {
4115
+ serializedName: "id",
4116
+ required: true,
4117
+ type: {
4118
+ name: "String"
4119
+ }
4120
+ }
4121
+ }
4122
+ }
4123
+ };
4124
+
4125
+ export const PackageType: coreClient.CompositeMapper = {
4126
+ type: {
4127
+ name: "Composite",
4128
+ className: "PackageType",
4129
+ modelProperties: {
4130
+ name: {
4131
+ serializedName: "name",
4132
+ type: {
4133
+ name: "String"
4134
+ }
4135
+ },
4136
+ endpoint: {
4137
+ serializedName: "endpoint",
4138
+ readOnly: true,
4139
+ type: {
4140
+ name: "String"
4141
+ }
4142
+ }
4143
+ }
4144
+ }
4145
+ };
4146
+
4083
4147
  export const ActiveDirectoryObject: coreClient.CompositeMapper = {
4084
4148
  type: {
4085
4149
  name: "Composite",
@@ -69,7 +69,7 @@ export const $host: OperationURLParameter = {
69
69
  export const apiVersion: OperationQueryParameter = {
70
70
  parameterPath: "apiVersion",
71
71
  mapper: {
72
- defaultValue: "2021-12-01-preview",
72
+ defaultValue: "2022-02-01-preview",
73
73
  isConstant: true,
74
74
  serializedName: "api-version",
75
75
  type: {
@@ -304,6 +304,22 @@ export declare interface AuthInfoUpdateParameters {
304
304
  expiresIn?: number;
305
305
  }
306
306
 
307
+ /** The policy for using ARM audience token for a container registry. */
308
+ export declare interface AzureADAuthenticationAsArmPolicy {
309
+ /** The value that indicates whether the policy is enabled or not. */
310
+ status?: AzureADAuthenticationAsArmPolicyStatus;
311
+ }
312
+
313
+ /**
314
+ * Defines values for AzureADAuthenticationAsArmPolicyStatus. \
315
+ * {@link KnownAzureADAuthenticationAsArmPolicyStatus} can be used interchangeably with AzureADAuthenticationAsArmPolicyStatus,
316
+ * this enum contains the known values that the service supports.
317
+ * ### Known values supported by the service
318
+ * **enabled** \
319
+ * **disabled**
320
+ */
321
+ export declare type AzureADAuthenticationAsArmPolicyStatus = string;
322
+
307
323
  /** Properties that describe a base image dependency. */
308
324
  export declare interface BaseImageDependency {
309
325
  /** The type of the base image dependency. */
@@ -1457,6 +1473,12 @@ export declare enum KnownAuditLogStatus {
1457
1473
  Disabled = "Disabled"
1458
1474
  }
1459
1475
 
1476
+ /** Known values of {@link AzureADAuthenticationAsArmPolicyStatus} that the service accepts. */
1477
+ export declare enum KnownAzureADAuthenticationAsArmPolicyStatus {
1478
+ Enabled = "enabled",
1479
+ Disabled = "disabled"
1480
+ }
1481
+
1460
1482
  /** Known values of {@link BaseImageDependencyType} that the service accepts. */
1461
1483
  export declare enum KnownBaseImageDependencyType {
1462
1484
  BuildTime = "BuildTime",
@@ -1819,8 +1841,6 @@ export declare type NetworkRuleBypassOptions = string;
1819
1841
  export declare interface NetworkRuleSet {
1820
1842
  /** The default action of allow or deny when no other rules match. */
1821
1843
  defaultAction: DefaultAction;
1822
- /** The virtual network rules. */
1823
- virtualNetworkRules?: VirtualNetworkRule[];
1824
1844
  /** The IP ACL rules. */
1825
1845
  ipRules?: IPRule[];
1826
1846
  }
@@ -1947,6 +1967,17 @@ export declare interface OverrideTaskStepProperties {
1947
1967
  updateTriggerToken?: string;
1948
1968
  }
1949
1969
 
1970
+ /** The properties of a package type. */
1971
+ export declare interface PackageType {
1972
+ /** The name of the package type. */
1973
+ name?: string;
1974
+ /**
1975
+ * The endpoint of the package type.
1976
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1977
+ */
1978
+ readonly endpoint?: string;
1979
+ }
1980
+
1950
1981
  /** The properties of the connected registry parent. */
1951
1982
  export declare interface ParentProperties {
1952
1983
  /** The resource ID of the parent to which the connected registry will be associated. */
@@ -2223,6 +2254,10 @@ export declare interface Policies {
2223
2254
  retentionPolicy?: RetentionPolicy;
2224
2255
  /** The export policy for a container registry. */
2225
2256
  exportPolicy?: ExportPolicy;
2257
+ /** The policy for using ARM audience token for a container registry. */
2258
+ azureADAuthenticationAsArmPolicy?: AzureADAuthenticationAsArmPolicy;
2259
+ /** The soft delete policy for a container registry. */
2260
+ softDeletePolicy?: SoftDeletePolicy;
2226
2261
  }
2227
2262
 
2228
2263
  /**
@@ -3647,6 +3682,19 @@ export declare type SkuName = string;
3647
3682
  */
3648
3683
  export declare type SkuTier = string;
3649
3684
 
3685
+ /** The soft delete policy for a container registry */
3686
+ export declare interface SoftDeletePolicy {
3687
+ /** The number of days after which a soft-deleted item is permanently deleted. */
3688
+ retentionDays?: number;
3689
+ /**
3690
+ * The timestamp when the policy was last updated.
3691
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3692
+ */
3693
+ readonly lastUpdatedTime?: Date;
3694
+ /** The value that indicates whether the policy is enabled or not. */
3695
+ status?: PolicyStatus;
3696
+ }
3697
+
3650
3698
  /** The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. */
3651
3699
  export declare interface Source {
3652
3700
  /** The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port. */
@@ -3834,6 +3882,12 @@ export declare interface StatusDetailProperties {
3834
3882
  */
3835
3883
  export declare type StepType = string;
3836
3884
 
3885
+ /** The properties of a storage account for a container registry. Only applicable to Classic SKU. */
3886
+ export declare interface StorageAccountProperties {
3887
+ /** The resource ID of the storage account. */
3888
+ id: string;
3889
+ }
3890
+
3837
3891
  /** The sync properties of the connected registry with its parent. */
3838
3892
  export declare interface SyncProperties {
3839
3893
  /** The resource ID of the ACR token used to authenticate the connected registry to its parent during sync. */
@@ -4723,14 +4777,6 @@ export declare interface UserIdentityProperties {
4723
4777
  */
4724
4778
  export declare type Variant = string;
4725
4779
 
4726
- /** Virtual network rule. */
4727
- export declare interface VirtualNetworkRule {
4728
- /** The action of virtual network rule. */
4729
- action?: Action;
4730
- /** Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. */
4731
- virtualNetworkResourceId: string;
4732
- }
4733
-
4734
4780
  /** An object that represents a webhook for a container registry. */
4735
4781
  export declare type Webhook = Resource & {
4736
4782
  /** The status of the webhook at the time the operation was called. */