| | 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 SAS definition bundle consisting of its previous id, |
| | 22 | | /// attributes and its tags, as well as information on when it will be |
| | 23 | | /// purged. |
| | 24 | | /// </summary> |
| | 25 | | public partial class DeletedSasDefinitionBundle : SasDefinitionBundle |
| | 26 | | { |
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the DeletedSasDefinitionBundle class. |
| | 29 | | /// </summary> |
| 0 | 30 | | public DeletedSasDefinitionBundle() |
| | 31 | | { |
| | 32 | | CustomInit(); |
| 0 | 33 | | } |
| | 34 | |
|
| | 35 | | /// <summary> |
| | 36 | | /// Initializes a new instance of the DeletedSasDefinitionBundle class. |
| | 37 | | /// </summary> |
| | 38 | | /// <param name="id">The SAS definition id.</param> |
| | 39 | | /// <param name="secretId">Storage account SAS definition secret |
| | 40 | | /// id.</param> |
| | 41 | | /// <param name="templateUri">The SAS definition token template signed |
| | 42 | | /// with an arbitrary key. Tokens created according to the SAS |
| | 43 | | /// definition will have the same properties as the template.</param> |
| | 44 | | /// <param name="sasType">The type of SAS token the SAS definition will |
| | 45 | | /// create. Possible values include: 'account', 'service'</param> |
| | 46 | | /// <param name="validityPeriod">The validity period of SAS tokens |
| | 47 | | /// created according to the SAS definition.</param> |
| | 48 | | /// <param name="attributes">The SAS definition attributes.</param> |
| | 49 | | /// <param name="tags">Application specific metadata in the form of |
| | 50 | | /// key-value pairs</param> |
| | 51 | | /// <param name="recoveryId">The url of the recovery object, used to |
| | 52 | | /// identify and recover the deleted SAS definition.</param> |
| | 53 | | /// <param name="scheduledPurgeDate">The time when the SAS definition |
| | 54 | | /// is scheduled to be purged, in UTC</param> |
| | 55 | | /// <param name="deletedDate">The time when the SAS definition was |
| | 56 | | /// deleted, in UTC</param> |
| | 57 | | public DeletedSasDefinitionBundle(string id = default(string), string secretId = default(string), string templat |
| 0 | 58 | | : base(id, secretId, templateUri, sasType, validityPeriod, attributes, tags) |
| | 59 | | { |
| 0 | 60 | | RecoveryId = recoveryId; |
| 0 | 61 | | ScheduledPurgeDate = scheduledPurgeDate; |
| 0 | 62 | | DeletedDate = deletedDate; |
| | 63 | | CustomInit(); |
| 0 | 64 | | } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// An initialization method that performs custom operations like setting defaults |
| | 68 | | /// </summary> |
| | 69 | | partial void CustomInit(); |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets the url of the recovery object, used to identify and |
| | 73 | | /// recover the deleted SAS definition. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "recoveryId")] |
| 0 | 76 | | public string RecoveryId { get; set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets the time when the SAS definition is scheduled to be purged, in |
| | 80 | | /// UTC |
| | 81 | | /// </summary> |
| | 82 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 83 | | [JsonProperty(PropertyName = "scheduledPurgeDate")] |
| 0 | 84 | | public System.DateTime? ScheduledPurgeDate { get; private set; } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// Gets the time when the SAS definition was deleted, in UTC |
| | 88 | | /// </summary> |
| | 89 | | [JsonConverter(typeof(UnixTimeJsonConverter))] |
| | 90 | | [JsonProperty(PropertyName = "deletedDate")] |
| 0 | 91 | | public System.DateTime? DeletedDate { get; private set; } |
| | 92 | |
|
| | 93 | | } |
| | 94 | | } |