| | 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 Deleted Certificate consisting of its previous id, attributes and its |
| | 22 | | /// tags, as well as information on when it will be purged. |
| | 23 | | /// </summary> |
| | 24 | | public partial class DeletedCertificateBundle : CertificateBundle |
| | 25 | | { |
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the DeletedCertificateBundle class. |
| | 28 | | /// </summary> |
| 23 | 29 | | public DeletedCertificateBundle() |
| | 30 | | { |
| | 31 | | CustomInit(); |
| 23 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// Initializes a new instance of the DeletedCertificateBundle class. |
| | 36 | | /// </summary> |
| | 37 | | /// <param name="id">The certificate id.</param> |
| | 38 | | /// <param name="kid">The key id.</param> |
| | 39 | | /// <param name="sid">The secret id.</param> |
| | 40 | | /// <param name="x509Thumbprint">Thumbprint of the certificate.</param> |
| | 41 | | /// <param name="policy">The management policy.</param> |
| | 42 | | /// <param name="cer">CER contents of x509 certificate.</param> |
| | 43 | | /// <param name="contentType">The content type of the secret.</param> |
| | 44 | | /// <param name="attributes">The certificate attributes.</param> |
| | 45 | | /// <param name="tags">Application specific metadata in the form of |
| | 46 | | /// key-value pairs</param> |
| | 47 | | /// <param name="recoveryId">The url of the recovery object, used to |
| | 48 | | /// identify and recover the deleted certificate.</param> |
| | 49 | | /// <param name="scheduledPurgeDate">The time when the certificate is |
| | 50 | | /// scheduled to be purged, in UTC</param> |
| | 51 | | /// <param name="deletedDate">The time when the certificate was |
| | 52 | | /// deleted, in UTC</param> |
| | 53 | | public DeletedCertificateBundle(string id = default(string), string kid = default(string), string sid = default( |
| 0 | 54 | | : base(id, kid, sid, x509Thumbprint, policy, cer, contentType, attributes, tags) |
| | 55 | | { |
| 0 | 56 | | RecoveryId = recoveryId; |
| 0 | 57 | | ScheduledPurgeDate = scheduledPurgeDate; |
| 0 | 58 | | DeletedDate = deletedDate; |
| | 59 | | CustomInit(); |
| 0 | 60 | | } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// An initialization method that performs custom operations like setting defaults |
| | 64 | | /// </summary> |
| | 65 | | partial void CustomInit(); |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// Gets or sets the url of the recovery object, used to identify and |
| | 69 | | /// recover the deleted certificate. |
| | 70 | | /// </summary> |
| | 71 | | [JsonProperty(PropertyName = "recoveryId")] |
| 14 | 72 | | public string RecoveryId { get; set; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Gets the time when the certificate is scheduled to be purged, in |
| | 76 | | /// UTC |
| | 77 | | /// </summary> |
| | 78 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 79 | | [JsonProperty(PropertyName = "scheduledPurgeDate")] |
| 24 | 80 | | public System.DateTime? ScheduledPurgeDate { get; private set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets the time when the certificate was deleted, in UTC |
| | 84 | | /// </summary> |
| | 85 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 86 | | [JsonProperty(PropertyName = "deletedDate")] |
| 24 | 87 | | public System.DateTime? DeletedDate { get; private set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Validate the object. |
| | 91 | | /// </summary> |
| | 92 | | /// <exception cref="ValidationException"> |
| | 93 | | /// Thrown if validation fails |
| | 94 | | /// </exception> |
| | 95 | | public override void Validate() |
| | 96 | | { |
| 0 | 97 | | base.Validate(); |
| 0 | 98 | | } |
| | 99 | | } |
| | 100 | | } |