| | 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 object attributes managed by the KeyVault service. |
| | 20 | | /// </summary> |
| | 21 | | public partial class Attributes |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the Attributes class. |
| | 25 | | /// </summary> |
| 540 | 26 | | public Attributes() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 540 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the Attributes class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="enabled">Determines whether the object is |
| | 35 | | /// enabled.</param> |
| | 36 | | /// <param name="notBefore">Not before date in UTC.</param> |
| | 37 | | /// <param name="expires">Expiry date in UTC.</param> |
| | 38 | | /// <param name="created">Creation time in UTC.</param> |
| | 39 | | /// <param name="updated">Last updated time in UTC.</param> |
| 0 | 40 | | public Attributes(bool? enabled = default(bool?), System.DateTime? notBefore = default(System.DateTime?), System |
| | 41 | | { |
| 0 | 42 | | Enabled = enabled; |
| 0 | 43 | | NotBefore = notBefore; |
| 0 | 44 | | Expires = expires; |
| 0 | 45 | | Created = created; |
| 0 | 46 | | Updated = updated; |
| | 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 determines whether the object is enabled. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "enabled")] |
| 558 | 59 | | public bool? Enabled { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets not before date in UTC. |
| | 63 | | /// </summary> |
| | 64 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 65 | | [JsonProperty(PropertyName = "nbf")] |
| 442 | 66 | | public System.DateTime? NotBefore { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets expiry date in UTC. |
| | 70 | | /// </summary> |
| | 71 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 72 | | [JsonProperty(PropertyName = "exp")] |
| 414 | 73 | | public System.DateTime? Expires { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets creation time in UTC. |
| | 77 | | /// </summary> |
| | 78 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 79 | | [JsonProperty(PropertyName = "created")] |
| 1044 | 80 | | public System.DateTime? Created { get; private set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets last updated time in UTC. |
| | 84 | | /// </summary> |
| | 85 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 86 | | [JsonProperty(PropertyName = "updated")] |
| 1044 | 87 | | public System.DateTime? Updated { get; private set; } |
| | 88 | |
|
| | 89 | | } |
| | 90 | | } |