| | 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 Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// A SAS definition bundle consists of key vault SAS definition details |
| | 20 | | /// plus its attributes. |
| | 21 | | /// </summary> |
| | 22 | | public partial class SasDefinitionBundle |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the SasDefinitionBundle class. |
| | 26 | | /// </summary> |
| 0 | 27 | | public SasDefinitionBundle() |
| | 28 | | { |
| | 29 | | CustomInit(); |
| 0 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Initializes a new instance of the SasDefinitionBundle class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="id">The SAS definition id.</param> |
| | 36 | | /// <param name="secretId">Storage account SAS definition secret |
| | 37 | | /// id.</param> |
| | 38 | | /// <param name="templateUri">The SAS definition token template signed |
| | 39 | | /// with an arbitrary key. Tokens created according to the SAS |
| | 40 | | /// definition will have the same properties as the template.</param> |
| | 41 | | /// <param name="sasType">The type of SAS token the SAS definition will |
| | 42 | | /// create. Possible values include: 'account', 'service'</param> |
| | 43 | | /// <param name="validityPeriod">The validity period of SAS tokens |
| | 44 | | /// created according to the SAS definition.</param> |
| | 45 | | /// <param name="attributes">The SAS definition attributes.</param> |
| | 46 | | /// <param name="tags">Application specific metadata in the form of |
| | 47 | | /// key-value pairs</param> |
| 0 | 48 | | public SasDefinitionBundle(string id = default(string), string secretId = default(string), string templateUri = |
| | 49 | | { |
| 0 | 50 | | Id = id; |
| 0 | 51 | | SecretId = secretId; |
| 0 | 52 | | TemplateUri = templateUri; |
| 0 | 53 | | SasType = sasType; |
| 0 | 54 | | ValidityPeriod = validityPeriod; |
| 0 | 55 | | Attributes = attributes; |
| 0 | 56 | | Tags = tags; |
| | 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 the SAS definition id. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "id")] |
| 0 | 69 | | public string Id { get; private set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets storage account SAS definition secret id. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "sid")] |
| 0 | 75 | | public string SecretId { get; private set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets the SAS definition token template signed with an arbitrary |
| | 79 | | /// key. Tokens created according to the SAS definition will have the |
| | 80 | | /// same properties as the template. |
| | 81 | | /// </summary> |
| | 82 | | [JsonProperty(PropertyName = "templateUri")] |
| 0 | 83 | | public string TemplateUri { get; private set; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets the type of SAS token the SAS definition will create. Possible |
| | 87 | | /// values include: 'account', 'service' |
| | 88 | | /// </summary> |
| | 89 | | [JsonProperty(PropertyName = "sasType")] |
| 0 | 90 | | public string SasType { get; private set; } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets the validity period of SAS tokens created according to the SAS |
| | 94 | | /// definition. |
| | 95 | | /// </summary> |
| | 96 | | [JsonProperty(PropertyName = "validityPeriod")] |
| 0 | 97 | | public string ValidityPeriod { get; private set; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets the SAS definition attributes. |
| | 101 | | /// </summary> |
| | 102 | | [JsonProperty(PropertyName = "attributes")] |
| 0 | 103 | | public SasDefinitionAttributes Attributes { get; private set; } |
| | 104 | |
|
| | 105 | | /// <summary> |
| | 106 | | /// Gets application specific metadata in the form of key-value pairs |
| | 107 | | /// </summary> |
| | 108 | | [JsonProperty(PropertyName = "tags")] |
| 0 | 109 | | public IDictionary<string, string> Tags { get; private set; } |
| | 110 | |
|
| | 111 | | } |
| | 112 | | } |