| | 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 | | /// The SAS definition update parameters. |
| | 20 | | /// </summary> |
| | 21 | | public partial class SasDefinitionUpdateParameters |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the SasDefinitionUpdateParameters |
| | 25 | | /// class. |
| | 26 | | /// </summary> |
| 0 | 27 | | public SasDefinitionUpdateParameters() |
| | 28 | | { |
| | 29 | | CustomInit(); |
| 0 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Initializes a new instance of the SasDefinitionUpdateParameters |
| | 34 | | /// class. |
| | 35 | | /// </summary> |
| | 36 | | /// <param name="templateUri">The SAS definition token template signed |
| | 37 | | /// with an arbitrary key. Tokens created according to the SAS |
| | 38 | | /// definition will have the same properties as the template.</param> |
| | 39 | | /// <param name="sasType">The type of SAS token the SAS definition will |
| | 40 | | /// create. Possible values include: 'account', 'service'</param> |
| | 41 | | /// <param name="validityPeriod">The validity period of SAS tokens |
| | 42 | | /// created according to the SAS definition.</param> |
| | 43 | | /// <param name="sasDefinitionAttributes">The attributes of the SAS |
| | 44 | | /// definition.</param> |
| | 45 | | /// <param name="tags">Application specific metadata in the form of |
| | 46 | | /// key-value pairs.</param> |
| 0 | 47 | | public SasDefinitionUpdateParameters(string templateUri = default(string), string sasType = default(string), str |
| | 48 | | { |
| 0 | 49 | | TemplateUri = templateUri; |
| 0 | 50 | | SasType = sasType; |
| 0 | 51 | | ValidityPeriod = validityPeriod; |
| 0 | 52 | | SasDefinitionAttributes = sasDefinitionAttributes; |
| 0 | 53 | | Tags = tags; |
| | 54 | | CustomInit(); |
| 0 | 55 | | } |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// An initialization method that performs custom operations like setting defaults |
| | 59 | | /// </summary> |
| | 60 | | partial void CustomInit(); |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Gets or sets the SAS definition token template signed with an |
| | 64 | | /// arbitrary key. Tokens created according to the SAS definition will |
| | 65 | | /// have the same properties as the template. |
| | 66 | | /// </summary> |
| | 67 | | [JsonProperty(PropertyName = "templateUri")] |
| 0 | 68 | | public string TemplateUri { get; set; } |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// Gets or sets the type of SAS token the SAS definition will create. |
| | 72 | | /// Possible values include: 'account', 'service' |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "sasType")] |
| 0 | 75 | | public string SasType { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets the validity period of SAS tokens created according to |
| | 79 | | /// the SAS definition. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "validityPeriod")] |
| 0 | 82 | | public string ValidityPeriod { get; set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets or sets the attributes of the SAS definition. |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "attributes")] |
| 0 | 88 | | public SasDefinitionAttributes SasDefinitionAttributes { get; set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets or sets application specific metadata in the form of key-value |
| | 92 | | /// pairs. |
| | 93 | | /// </summary> |
| | 94 | | [JsonProperty(PropertyName = "tags")] |
| 0 | 95 | | public IDictionary<string, string> Tags { get; set; } |
| | 96 | |
|
| | 97 | | } |
| | 98 | | } |