| | 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 | | /// The deleted secret item containing metadata about the deleted secret. |
| | 22 | | /// </summary> |
| | 23 | | public partial class DeletedSecretItem : SecretItem |
| | 24 | | { |
| | 25 | | /// <summary> |
| | 26 | | /// Initializes a new instance of the DeletedSecretItem class. |
| | 27 | | /// </summary> |
| 3 | 28 | | public DeletedSecretItem() |
| | 29 | | { |
| | 30 | | CustomInit(); |
| 3 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Initializes a new instance of the DeletedSecretItem class. |
| | 35 | | /// </summary> |
| | 36 | | /// <param name="id">Secret identifier.</param> |
| | 37 | | /// <param name="attributes">The secret management attributes.</param> |
| | 38 | | /// <param name="tags">Application specific metadata in the form of |
| | 39 | | /// key-value pairs.</param> |
| | 40 | | /// <param name="contentType">Type of the secret value such as a |
| | 41 | | /// password.</param> |
| | 42 | | /// <param name="managed">True if the secret's lifetime is managed by |
| | 43 | | /// key vault. If this is a key backing a certificate, then managed |
| | 44 | | /// will be true.</param> |
| | 45 | | /// <param name="recoveryId">The url of the recovery object, used to |
| | 46 | | /// identify and recover the deleted secret.</param> |
| | 47 | | /// <param name="scheduledPurgeDate">The time when the secret is |
| | 48 | | /// scheduled to be purged, in UTC</param> |
| | 49 | | /// <param name="deletedDate">The time when the secret was deleted, in |
| | 50 | | /// UTC</param> |
| | 51 | | public DeletedSecretItem(string id = default(string), SecretAttributes attributes = default(SecretAttributes), I |
| 0 | 52 | | : base(id, attributes, tags, contentType, managed) |
| | 53 | | { |
| 0 | 54 | | RecoveryId = recoveryId; |
| 0 | 55 | | ScheduledPurgeDate = scheduledPurgeDate; |
| 0 | 56 | | DeletedDate = deletedDate; |
| | 57 | | CustomInit(); |
| 0 | 58 | | } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// An initialization method that performs custom operations like setting defaults |
| | 62 | | /// </summary> |
| | 63 | | partial void CustomInit(); |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets the url of the recovery object, used to identify and |
| | 67 | | /// recover the deleted secret. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "recoveryId")] |
| 15 | 70 | | public string RecoveryId { get; set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets the time when the secret is scheduled to be purged, in UTC |
| | 74 | | /// </summary> |
| | 75 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 76 | | [JsonProperty(PropertyName = "scheduledPurgeDate")] |
| 9 | 77 | | public System.DateTime? ScheduledPurgeDate { get; private set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets the time when the secret was deleted, in UTC |
| | 81 | | /// </summary> |
| | 82 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 83 | | [JsonProperty(PropertyName = "deletedDate")] |
| 9 | 84 | | public System.DateTime? DeletedDate { get; private set; } |
| | 85 | |
|
| | 86 | | } |
| | 87 | | } |