| | 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 | | /// A KeyBundle consisting of a WebKey plus its attributes. |
| | 20 | | /// </summary> |
| | 21 | | public partial class KeyBundle |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the KeyBundle class. |
| | 25 | | /// </summary> |
| 53 | 26 | | public KeyBundle() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 53 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the KeyBundle class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="key">The Json web key.</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 KeyBundle(Microsoft.Azure.KeyVault.WebKey.JsonWebKey key = default(Microsoft.Azure.KeyVault.WebKey.JsonWe |
| | 42 | | { |
| 0 | 43 | | Key = key; |
| 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 the Json web key. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "key")] |
| 156 | 59 | | public Microsoft.Azure.KeyVault.WebKey.JsonWebKey Key { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets the key management attributes. |
| | 63 | | /// </summary> |
| | 64 | | [JsonProperty(PropertyName = "attributes")] |
| 140 | 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")] |
| 21 | 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")] |
| 2 | 79 | | public bool? Managed { get; private set; } |
| | 80 | |
|
| | 81 | | } |
| | 82 | | } |