| | 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 secret consisting of a value, id and its attributes. |
| | 20 | | /// </summary> |
| | 21 | | public partial class SecretBundle |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the SecretBundle class. |
| | 25 | | /// </summary> |
| 45 | 26 | | public SecretBundle() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 45 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the SecretBundle class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="value">The secret value.</param> |
| | 35 | | /// <param name="id">The secret id.</param> |
| | 36 | | /// <param name="contentType">The content type of the secret.</param> |
| | 37 | | /// <param name="attributes">The secret management attributes.</param> |
| | 38 | | /// <param name="tags">Application specific metadata in the form of |
| | 39 | | /// key-value pairs.</param> |
| | 40 | | /// <param name="kid">If this is a secret backing a KV certificate, |
| | 41 | | /// then this field specifies the corresponding key backing the KV |
| | 42 | | /// certificate.</param> |
| | 43 | | /// <param name="managed">True if the secret's lifetime is managed by |
| | 44 | | /// key vault. If this is a secret backing a certificate, then managed |
| | 45 | | /// will be true.</param> |
| 0 | 46 | | public SecretBundle(string value = default(string), string id = default(string), string contentType = default(st |
| | 47 | | { |
| 0 | 48 | | Value = value; |
| 0 | 49 | | Id = id; |
| 0 | 50 | | ContentType = contentType; |
| 0 | 51 | | Attributes = attributes; |
| 0 | 52 | | Tags = tags; |
| 0 | 53 | | Kid = kid; |
| 0 | 54 | | Managed = managed; |
| | 55 | | CustomInit(); |
| 0 | 56 | | } |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// An initialization method that performs custom operations like setting defaults |
| | 60 | | /// </summary> |
| | 61 | | partial void CustomInit(); |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets the secret value. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "value")] |
| 38 | 67 | | public string Value { get; set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets the secret id. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "id")] |
| 74 | 73 | | public string Id { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets the content type of the secret. |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "contentType")] |
| 38 | 79 | | public string ContentType { get; set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets or sets the secret management attributes. |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "attributes")] |
| 108 | 85 | | public SecretAttributes Attributes { get; set; } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// Gets or sets application specific metadata in the form of key-value |
| | 89 | | /// pairs. |
| | 90 | | /// </summary> |
| | 91 | | [JsonProperty(PropertyName = "tags")] |
| 12 | 92 | | public IDictionary<string, string> Tags { get; set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets if this is a secret backing a KV certificate, then this field |
| | 96 | | /// specifies the corresponding key backing the KV certificate. |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "kid")] |
| 0 | 99 | | public string Kid { get; private set; } |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// Gets true if the secret's lifetime is managed by key vault. If this |
| | 103 | | /// is a secret backing a certificate, then managed will be true. |
| | 104 | | /// </summary> |
| | 105 | | [JsonProperty(PropertyName = "managed")] |
| 7 | 106 | | public bool? Managed { get; private set; } |
| | 107 | |
|
| | 108 | | } |
| | 109 | | } |