| | 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 | |
|
| | 10 | | namespace Azure.ResourceManager.KeyVault.Models |
| | 11 | | { |
| | 12 | | /// <summary> Parameters for updating the access policy in a vault. </summary> |
| | 13 | | public partial class VaultAccessPolicyParameters |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of VaultAccessPolicyParameters. </summary> |
| | 16 | | /// <param name="properties"> Properties of the access policy. </param> |
| | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="properties"/> is null. </exception> |
| 0 | 18 | | public VaultAccessPolicyParameters(VaultAccessPolicyProperties properties) |
| | 19 | | { |
| 0 | 20 | | if (properties == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(properties)); |
| | 23 | | } |
| | 24 | |
|
| 0 | 25 | | Properties = properties; |
| 0 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of VaultAccessPolicyParameters. </summary> |
| | 29 | | /// <param name="id"> The resource id of the access policy. </param> |
| | 30 | | /// <param name="name"> The resource name of the access policy. </param> |
| | 31 | | /// <param name="type"> The resource name of the access policy. </param> |
| | 32 | | /// <param name="location"> The resource type of the access policy. </param> |
| | 33 | | /// <param name="properties"> Properties of the access policy. </param> |
| 0 | 34 | | internal VaultAccessPolicyParameters(string id, string name, string type, string location, VaultAccessPolicyProp |
| | 35 | | { |
| 0 | 36 | | Id = id; |
| 0 | 37 | | Name = name; |
| 0 | 38 | | Type = type; |
| 0 | 39 | | Location = location; |
| 0 | 40 | | Properties = properties; |
| 0 | 41 | | } |
| | 42 | |
|
| | 43 | | /// <summary> The resource id of the access policy. </summary> |
| 0 | 44 | | public string Id { get; } |
| | 45 | | /// <summary> The resource name of the access policy. </summary> |
| 0 | 46 | | public string Name { get; } |
| | 47 | | /// <summary> The resource name of the access policy. </summary> |
| 0 | 48 | | public string Type { get; } |
| | 49 | | /// <summary> The resource type of the access policy. </summary> |
| 0 | 50 | | public string Location { get; } |
| | 51 | | /// <summary> Properties of the access policy. </summary> |
| 0 | 52 | | public VaultAccessPolicyProperties Properties { get; set; } |
| | 53 | | } |
| | 54 | | } |