| | 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 attributes of a key managed by the key vault service. |
| | 18 | | /// </summary> |
| | 19 | | public partial class KeyAttributes : Attributes |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the KeyAttributes class. |
| | 23 | | /// </summary> |
| 172 | 24 | | public KeyAttributes() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 172 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the KeyAttributes 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 keys in the current vault. If it contains |
| | 40 | | /// 'Purgeable' the key can be permanently deleted by a privileged |
| | 41 | | /// user; otherwise, only the system can purge the key, at the end of |
| | 42 | | /// the retention interval. Possible values include: 'Purgeable', |
| | 43 | | /// 'Recoverable+Purgeable', 'Recoverable', |
| | 44 | | /// 'Recoverable+ProtectedSubscription'</param> |
| | 45 | | public KeyAttributes(bool? enabled = default(bool?), System.DateTime? notBefore = default(System.DateTime?), Sys |
| 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 | | /// keys in the current vault. If it contains 'Purgeable' the key can |
| | 60 | | /// be permanently deleted by a privileged user; otherwise, only the |
| | 61 | | /// system can purge the key, at the end of the retention interval. |
| | 62 | | /// Possible values include: 'Purgeable', 'Recoverable+Purgeable', |
| | 63 | | /// 'Recoverable', 'Recoverable+ProtectedSubscription' |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "recoveryLevel")] |
| 330 | 66 | | public string RecoveryLevel { get; private set; } |
| | 67 | |
|
| | 68 | | } |
| | 69 | | } |