| | 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.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// The secret management attributes. |
| | 18 | | /// </summary> |
| | 19 | | public partial class SecretAttributes : Attributes |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the SecretAttributes class. |
| | 23 | | /// </summary> |
| 158 | 24 | | public SecretAttributes() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 158 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the SecretAttributes class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="enabled">Determines whether the object is |
| | 33 | | /// enabled.</param> |
| | 34 | | /// <param name="notBefore">Not before date in UTC.</param> |
| | 35 | | /// <param name="expires">Expiry date in UTC.</param> |
| | 36 | | /// <param name="created">Creation time in UTC.</param> |
| | 37 | | /// <param name="updated">Last updated time in UTC.</param> |
| | 38 | | /// <param name="recoveryLevel">Reflects the deletion recovery level |
| | 39 | | /// currently in effect for secrets in the current vault. If it |
| | 40 | | /// contains 'Purgeable', the secret can be permanently deleted by a |
| | 41 | | /// privileged user; otherwise, only the system can purge the secret, |
| | 42 | | /// at the end of the retention interval. Possible values include: |
| | 43 | | /// 'Purgeable', 'Recoverable+Purgeable', 'Recoverable', |
| | 44 | | /// 'Recoverable+ProtectedSubscription'</param> |
| | 45 | | public SecretAttributes(bool? enabled = default(bool?), System.DateTime? notBefore = default(System.DateTime?), |
| 0 | 46 | | : base(enabled, notBefore, expires, created, updated) |
| | 47 | | { |
| 0 | 48 | | RecoveryLevel = recoveryLevel; |
| | 49 | | CustomInit(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets reflects the deletion recovery level currently in effect for |
| | 59 | | /// secrets in the current vault. If it contains 'Purgeable', the |
| | 60 | | /// secret can be permanently deleted by a privileged user; otherwise, |
| | 61 | | /// only the system can purge the secret, at the end of the retention |
| | 62 | | /// interval. Possible values include: 'Purgeable', |
| | 63 | | /// 'Recoverable+Purgeable', 'Recoverable', |
| | 64 | | /// 'Recoverable+ProtectedSubscription' |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "recoveryLevel")] |
| 158 | 67 | | public string RecoveryLevel { get; private set; } |
| | 68 | |
|
| | 69 | | } |
| | 70 | | } |