| | | 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 Azure.Core; |
| | | 11 | | |
| | | 12 | | namespace Azure.ResourceManager.KeyVault.Models |
| | | 13 | | { |
| | | 14 | | /// <summary> Parameters for creating or updating a vault. </summary> |
| | | 15 | | public partial class VaultCreateOrUpdateParameters |
| | | 16 | | { |
| | | 17 | | /// <summary> Initializes a new instance of VaultCreateOrUpdateParameters. </summary> |
| | | 18 | | /// <param name="location"> The supported Azure location where the key vault should be created. </param> |
| | | 19 | | /// <param name="properties"> Properties of the vault. </param> |
| | | 20 | | /// <exception cref="ArgumentNullException"> <paramref name="location"/> or <paramref name="properties"/> is nul |
| | 44 | 21 | | public VaultCreateOrUpdateParameters(string location, VaultProperties properties) |
| | | 22 | | { |
| | 44 | 23 | | if (location == null) |
| | | 24 | | { |
| | 0 | 25 | | throw new ArgumentNullException(nameof(location)); |
| | | 26 | | } |
| | 44 | 27 | | if (properties == null) |
| | | 28 | | { |
| | 0 | 29 | | throw new ArgumentNullException(nameof(properties)); |
| | | 30 | | } |
| | | 31 | | |
| | 44 | 32 | | Location = location; |
| | 44 | 33 | | Tags = new ChangeTrackingDictionary<string, string>(); |
| | 44 | 34 | | Properties = properties; |
| | 44 | 35 | | } |
| | | 36 | | |
| | | 37 | | /// <summary> The supported Azure location where the key vault should be created. </summary> |
| | 104 | 38 | | public string Location { get; } |
| | | 39 | | /// <summary> The tags that will be assigned to the key vault. </summary> |
| | 240 | 40 | | public IDictionary<string, string> Tags { get; } |
| | | 41 | | /// <summary> Properties of the vault. </summary> |
| | 104 | 42 | | public VaultProperties Properties { get; } |
| | | 43 | | } |
| | | 44 | | } |