| | 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 Microsoft.Rest; |
| | 14 | | using Microsoft.Rest.Serialization; |
| | 15 | | using Newtonsoft.Json; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// The SAS definition management attributes. |
| | 20 | | /// </summary> |
| | 21 | | public partial class SasDefinitionAttributes |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the SasDefinitionAttributes class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public SasDefinitionAttributes() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the SasDefinitionAttributes class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="enabled">the enabled state of the object.</param> |
| | 35 | | /// <param name="created">Creation time in UTC.</param> |
| | 36 | | /// <param name="updated">Last updated time in UTC.</param> |
| | 37 | | /// <param name="recoveryLevel">Reflects the deletion recovery level |
| | 38 | | /// currently in effect for SAS definitions in the current vault. If it |
| | 39 | | /// contains 'Purgeable' the SAS definition can be permanently deleted |
| | 40 | | /// by a privileged user; otherwise, only the system can purge the SAS |
| | 41 | | /// definition, at the end of the retention interval. Possible values |
| | 42 | | /// include: 'Purgeable', 'Recoverable+Purgeable', 'Recoverable', |
| | 43 | | /// 'Recoverable+ProtectedSubscription'</param> |
| 0 | 44 | | public SasDefinitionAttributes(bool? enabled = default(bool?), System.DateTime? created = default(System.DateTim |
| | 45 | | { |
| 0 | 46 | | Enabled = enabled; |
| 0 | 47 | | Created = created; |
| 0 | 48 | | Updated = updated; |
| 0 | 49 | | RecoveryLevel = recoveryLevel; |
| | 50 | | CustomInit(); |
| 0 | 51 | | } |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// An initialization method that performs custom operations like setting defaults |
| | 55 | | /// </summary> |
| | 56 | | partial void CustomInit(); |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// Gets or sets the enabled state of the object. |
| | 60 | | /// </summary> |
| | 61 | | [JsonProperty(PropertyName = "enabled")] |
| 0 | 62 | | public bool? Enabled { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets creation time in UTC. |
| | 66 | | /// </summary> |
| | 67 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 68 | | [JsonProperty(PropertyName = "created")] |
| 0 | 69 | | public System.DateTime? Created { get; private set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets last updated time in UTC. |
| | 73 | | /// </summary> |
| | 74 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 75 | | [JsonProperty(PropertyName = "updated")] |
| 0 | 76 | | public System.DateTime? Updated { get; private set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets reflects the deletion recovery level currently in effect for |
| | 80 | | /// SAS definitions in the current vault. If it contains 'Purgeable' |
| | 81 | | /// the SAS definition can be permanently deleted by a privileged user; |
| | 82 | | /// otherwise, only the system can purge the SAS definition, at the end |
| | 83 | | /// of the retention interval. Possible values include: 'Purgeable', |
| | 84 | | /// 'Recoverable+Purgeable', 'Recoverable', |
| | 85 | | /// 'Recoverable+ProtectedSubscription' |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "recoveryLevel")] |
| 0 | 88 | | public string RecoveryLevel { get; private set; } |
| | 89 | |
|
| | 90 | | } |
| | 91 | | } |