| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.ResourceManager.Storage.Models |
| | 11 | | { |
| | 12 | | /// <summary> The parameters to list service SAS credentials of a specific resource. </summary> |
| | 13 | | public partial class ServiceSasParameters |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of ServiceSasParameters. </summary> |
| | 16 | | /// <param name="canonicalizedResource"> The canonical path to the signed resource. </param> |
| 20 | 17 | | public ServiceSasParameters(string canonicalizedResource) |
| | 18 | | { |
| 20 | 19 | | if (canonicalizedResource == null) |
| | 20 | | { |
| 0 | 21 | | throw new ArgumentNullException(nameof(canonicalizedResource)); |
| | 22 | | } |
| | 23 | |
|
| 20 | 24 | | CanonicalizedResource = canonicalizedResource; |
| 20 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> Initializes a new instance of ServiceSasParameters. </summary> |
| | 28 | | /// <param name="canonicalizedResource"> The canonical path to the signed resource. </param> |
| | 29 | | /// <param name="resource"> The signed services accessible with the service SAS. Possible values include: Blob ( |
| | 30 | | /// <param name="permissions"> The signed permissions for the service SAS. Possible values include: Read (r), Wr |
| | 31 | | /// <param name="iPAddressOrRange"> An IP address or a range of IP addresses from which to accept requests. </pa |
| | 32 | | /// <param name="protocols"> The protocol permitted for a request made with the account SAS. </param> |
| | 33 | | /// <param name="sharedAccessStartTime"> The time at which the SAS becomes valid. </param> |
| | 34 | | /// <param name="sharedAccessExpiryTime"> The time at which the shared access signature becomes invalid. </param |
| | 35 | | /// <param name="identifier"> A unique value up to 64 characters in length that correlates to an access policy s |
| | 36 | | /// <param name="partitionKeyStart"> The start of partition key. </param> |
| | 37 | | /// <param name="partitionKeyEnd"> The end of partition key. </param> |
| | 38 | | /// <param name="rowKeyStart"> The start of row key. </param> |
| | 39 | | /// <param name="rowKeyEnd"> The end of row key. </param> |
| | 40 | | /// <param name="keyToSign"> The key to sign the account SAS token with. </param> |
| | 41 | | /// <param name="cacheControl"> The response header override for cache control. </param> |
| | 42 | | /// <param name="contentDisposition"> The response header override for content disposition. </param> |
| | 43 | | /// <param name="contentEncoding"> The response header override for content encoding. </param> |
| | 44 | | /// <param name="contentLanguage"> The response header override for content language. </param> |
| | 45 | | /// <param name="contentType"> The response header override for content type. </param> |
| 0 | 46 | | internal ServiceSasParameters(string canonicalizedResource, SignedResource? resource, Permissions? permissions, |
| | 47 | | { |
| 0 | 48 | | CanonicalizedResource = canonicalizedResource; |
| 0 | 49 | | Resource = resource; |
| 0 | 50 | | Permissions = permissions; |
| 0 | 51 | | IPAddressOrRange = iPAddressOrRange; |
| 0 | 52 | | Protocols = protocols; |
| 0 | 53 | | SharedAccessStartTime = sharedAccessStartTime; |
| 0 | 54 | | SharedAccessExpiryTime = sharedAccessExpiryTime; |
| 0 | 55 | | Identifier = identifier; |
| 0 | 56 | | PartitionKeyStart = partitionKeyStart; |
| 0 | 57 | | PartitionKeyEnd = partitionKeyEnd; |
| 0 | 58 | | RowKeyStart = rowKeyStart; |
| 0 | 59 | | RowKeyEnd = rowKeyEnd; |
| 0 | 60 | | KeyToSign = keyToSign; |
| 0 | 61 | | CacheControl = cacheControl; |
| 0 | 62 | | ContentDisposition = contentDisposition; |
| 0 | 63 | | ContentEncoding = contentEncoding; |
| 0 | 64 | | ContentLanguage = contentLanguage; |
| 0 | 65 | | ContentType = contentType; |
| 0 | 66 | | } |
| | 67 | |
|
| | 68 | | /// <summary> The canonical path to the signed resource. </summary> |
| 12 | 69 | | public string CanonicalizedResource { get; } |
| | 70 | | /// <summary> The signed services accessible with the service SAS. Possible values include: Blob (b), Container |
| 60 | 71 | | public SignedResource? Resource { get; set; } |
| | 72 | | /// <summary> The signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete ( |
| 60 | 73 | | public Permissions? Permissions { get; set; } |
| | 74 | | /// <summary> An IP address or a range of IP addresses from which to accept requests. </summary> |
| 0 | 75 | | public string IPAddressOrRange { get; set; } |
| | 76 | | /// <summary> The protocol permitted for a request made with the account SAS. </summary> |
| 32 | 77 | | public HttpProtocol? Protocols { get; set; } |
| | 78 | | /// <summary> The time at which the SAS becomes valid. </summary> |
| 28 | 79 | | public DateTimeOffset? SharedAccessStartTime { get; set; } |
| | 80 | | /// <summary> The time at which the shared access signature becomes invalid. </summary> |
| 44 | 81 | | public DateTimeOffset? SharedAccessExpiryTime { get; set; } |
| | 82 | | /// <summary> A unique value up to 64 characters in length that correlates to an access policy specified for the |
| 0 | 83 | | public string Identifier { get; set; } |
| | 84 | | /// <summary> The start of partition key. </summary> |
| 0 | 85 | | public string PartitionKeyStart { get; set; } |
| | 86 | | /// <summary> The end of partition key. </summary> |
| 0 | 87 | | public string PartitionKeyEnd { get; set; } |
| | 88 | | /// <summary> The start of row key. </summary> |
| 0 | 89 | | public string RowKeyStart { get; set; } |
| | 90 | | /// <summary> The end of row key. </summary> |
| 0 | 91 | | public string RowKeyEnd { get; set; } |
| | 92 | | /// <summary> The key to sign the account SAS token with. </summary> |
| 20 | 93 | | public string KeyToSign { get; set; } |
| | 94 | | /// <summary> The response header override for cache control. </summary> |
| 0 | 95 | | public string CacheControl { get; set; } |
| | 96 | | /// <summary> The response header override for content disposition. </summary> |
| 0 | 97 | | public string ContentDisposition { get; set; } |
| | 98 | | /// <summary> The response header override for content encoding. </summary> |
| 0 | 99 | | public string ContentEncoding { get; set; } |
| | 100 | | /// <summary> The response header override for content language. </summary> |
| 0 | 101 | | public string ContentLanguage { get; set; } |
| | 102 | | /// <summary> The response header override for content type. </summary> |
| 0 | 103 | | public string ContentType { get; set; } |
| | 104 | | } |
| | 105 | | } |