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