| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.Collections.Generic; |
| | 10 | | using System.Linq; |
| | 11 | |
|
| | 12 | | namespace Azure.ResourceManager.KeyVault.Models |
| | 13 | | { |
| | 14 | | /// <summary> Properties of the vault access policy. </summary> |
| | 15 | | public partial class VaultAccessPolicyProperties |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of VaultAccessPolicyProperties. </summary> |
| | 18 | | /// <param name="accessPolicies"> An array of 0 to 16 identities that have access to the key vault. All identiti |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="accessPolicies"/> is null. </exception> |
| 0 | 20 | | public VaultAccessPolicyProperties(IEnumerable<AccessPolicyEntry> accessPolicies) |
| | 21 | | { |
| 0 | 22 | | if (accessPolicies == null) |
| | 23 | | { |
| 0 | 24 | | throw new ArgumentNullException(nameof(accessPolicies)); |
| | 25 | | } |
| | 26 | |
|
| 0 | 27 | | AccessPolicies = accessPolicies.ToList(); |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> Initializes a new instance of VaultAccessPolicyProperties. </summary> |
| | 31 | | /// <param name="accessPolicies"> An array of 0 to 16 identities that have access to the key vault. All identiti |
| 0 | 32 | | internal VaultAccessPolicyProperties(IList<AccessPolicyEntry> accessPolicies) |
| | 33 | | { |
| 0 | 34 | | AccessPolicies = accessPolicies; |
| 0 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> An array of 0 to 16 identities that have access to the key vault. All identities in the array must |
| 0 | 38 | | public IList<AccessPolicyEntry> AccessPolicies { get; } |
| | 39 | | } |
| | 40 | | } |