| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.KeyVault.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// The key item containing key metadata. |
| | 20 | | /// </summary> |
| | 21 | | public partial class KeyItem |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the KeyItem class. |
| | 25 | | /// </summary> |
| 22 | 26 | | public KeyItem() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 22 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the KeyItem class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="kid">Key identifier.</param> |
| | 35 | | /// <param name="attributes">The key management attributes.</param> |
| | 36 | | /// <param name="tags">Application specific metadata in the form of |
| | 37 | | /// key-value pairs.</param> |
| | 38 | | /// <param name="managed">True if the key's lifetime is managed by key |
| | 39 | | /// vault. If this is a key backing a certificate, then managed will be |
| | 40 | | /// true.</param> |
| 0 | 41 | | public KeyItem(string kid = default(string), KeyAttributes attributes = default(KeyAttributes), IDictionary<stri |
| | 42 | | { |
| 0 | 43 | | Kid = kid; |
| 0 | 44 | | Attributes = attributes; |
| 0 | 45 | | Tags = tags; |
| 0 | 46 | | Managed = managed; |
| | 47 | | CustomInit(); |
| 0 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | 52 | | /// </summary> |
| | 53 | | partial void CustomInit(); |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets key identifier. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "kid")] |
| 66 | 59 | | public string Kid { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets the key management attributes. |
| | 63 | | /// </summary> |
| | 64 | | [JsonProperty(PropertyName = "attributes")] |
| 61 | 65 | | public KeyAttributes Attributes { get; set; } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// Gets or sets application specific metadata in the form of key-value |
| | 69 | | /// pairs. |
| | 70 | | /// </summary> |
| | 71 | | [JsonProperty(PropertyName = "tags")] |
| 0 | 72 | | public IDictionary<string, string> Tags { get; set; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Gets true if the key's lifetime is managed by key vault. If this is |
| | 76 | | /// a key backing a certificate, then managed will be true. |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "managed")] |
| 0 | 79 | | public bool? Managed { get; private set; } |
| | 80 | |
|
| | 81 | | } |
| | 82 | | } |