| | 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.Collections; |
| | 17 | | using System.Collections.Generic; |
| | 18 | | using System.Linq; |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// A DeletedKeyBundle consisting of a WebKey plus its Attributes and |
| | 22 | | /// deletion info |
| | 23 | | /// </summary> |
| | 24 | | public partial class DeletedKeyBundle : KeyBundle |
| | 25 | | { |
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the DeletedKeyBundle class. |
| | 28 | | /// </summary> |
| 22 | 29 | | public DeletedKeyBundle() |
| | 30 | | { |
| | 31 | | CustomInit(); |
| 22 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// Initializes a new instance of the DeletedKeyBundle class. |
| | 36 | | /// </summary> |
| | 37 | | /// <param name="key">The Json web key.</param> |
| | 38 | | /// <param name="attributes">The key management attributes.</param> |
| | 39 | | /// <param name="tags">Application specific metadata in the form of |
| | 40 | | /// key-value pairs.</param> |
| | 41 | | /// <param name="managed">True if the key's lifetime is managed by key |
| | 42 | | /// vault. If this is a key backing a certificate, then managed will be |
| | 43 | | /// true.</param> |
| | 44 | | /// <param name="recoveryId">The url of the recovery object, used to |
| | 45 | | /// identify and recover the deleted key.</param> |
| | 46 | | /// <param name="scheduledPurgeDate">The time when the key is scheduled |
| | 47 | | /// to be purged, in UTC</param> |
| | 48 | | /// <param name="deletedDate">The time when the key was deleted, in |
| | 49 | | /// UTC</param> |
| | 50 | | public DeletedKeyBundle(Microsoft.Azure.KeyVault.WebKey.JsonWebKey key = default(Microsoft.Azure.KeyVault.WebKey |
| 0 | 51 | | : base(key, attributes, tags, managed) |
| | 52 | | { |
| 0 | 53 | | RecoveryId = recoveryId; |
| 0 | 54 | | ScheduledPurgeDate = scheduledPurgeDate; |
| 0 | 55 | | DeletedDate = deletedDate; |
| | 56 | | CustomInit(); |
| 0 | 57 | | } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// An initialization method that performs custom operations like setting defaults |
| | 61 | | /// </summary> |
| | 62 | | partial void CustomInit(); |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets or sets the url of the recovery object, used to identify and |
| | 66 | | /// recover the deleted key. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "recoveryId")] |
| 24 | 69 | | public string RecoveryId { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets the time when the key is scheduled to be purged, in UTC |
| | 73 | | /// </summary> |
| | 74 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 75 | | [JsonProperty(PropertyName = "scheduledPurgeDate")] |
| 44 | 76 | | public System.DateTime? ScheduledPurgeDate { get; private set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets the time when the key was deleted, in UTC |
| | 80 | | /// </summary> |
| | 81 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 82 | | [JsonProperty(PropertyName = "deletedDate")] |
| 44 | 83 | | public System.DateTime? DeletedDate { get; private set; } |
| | 84 | |
|
| | 85 | | } |
| | 86 | | } |