ArmStorageModelFactory.ServiceSasContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of ServiceSasContent.
public static Azure.ResourceManager.Storage.Models.ServiceSasContent ServiceSasContent (string canonicalizedResource = default, Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType? resource = default, Azure.ResourceManager.Storage.Models.StorageAccountSasPermission? permissions = default, string ipAddressOrRange = default, Azure.ResourceManager.Storage.Models.StorageAccountHttpProtocol? protocols = default, DateTimeOffset? sharedAccessStartOn = default, DateTimeOffset? sharedAccessExpiryOn = default, string identifier = default, string partitionKeyStart = default, string partitionKeyEnd = default, string rowKeyStart = default, string rowKeyEnd = default, string keyToSign = default, string cacheControl = default, string contentDisposition = default, string contentEncoding = default, string contentLanguage = default, string contentType = default);
static member ServiceSasContent : string * Nullable<Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType> * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountSasPermission> * string * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountHttpProtocol> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * string * string * string * string * string * string * string * string * string -> Azure.ResourceManager.Storage.Models.ServiceSasContent
Public Shared Function ServiceSasContent (Optional canonicalizedResource As String = Nothing, Optional resource As Nullable(Of ServiceSasSignedResourceType) = Nothing, Optional permissions As Nullable(Of StorageAccountSasPermission) = Nothing, Optional ipAddressOrRange As String = Nothing, Optional protocols As Nullable(Of StorageAccountHttpProtocol) = Nothing, Optional sharedAccessStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional sharedAccessExpiryOn As Nullable(Of DateTimeOffset) = Nothing, Optional identifier As String = Nothing, Optional partitionKeyStart As String = Nothing, Optional partitionKeyEnd As String = Nothing, Optional rowKeyStart As String = Nothing, Optional rowKeyEnd As String = Nothing, Optional keyToSign As String = Nothing, Optional cacheControl As String = Nothing, Optional contentDisposition As String = Nothing, Optional contentEncoding As String = Nothing, Optional contentLanguage As String = Nothing, Optional contentType As String = Nothing) As ServiceSasContent
Parameters
- canonicalizedResource
- String
The canonical path to the signed resource.
- resource
- Nullable<ServiceSasSignedResourceType>
The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s).
- permissions
- Nullable<StorageAccountSasPermission>
The signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).
- ipAddressOrRange
- String
An IP address or a range of IP addresses from which to accept requests.
- protocols
- Nullable<StorageAccountHttpProtocol>
The protocol permitted for a request made with the account SAS.
- sharedAccessStartOn
- Nullable<DateTimeOffset>
The time at which the SAS becomes valid.
- sharedAccessExpiryOn
- Nullable<DateTimeOffset>
The time at which the shared access signature becomes invalid.
- identifier
- String
A unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table.
- partitionKeyStart
- String
The start of partition key.
- partitionKeyEnd
- String
The end of partition key.
- rowKeyStart
- String
The start of row key.
- rowKeyEnd
- String
The end of row key.
- keyToSign
- String
The key to sign the account SAS token with.
- cacheControl
- String
The response header override for cache control.
- contentDisposition
- String
The response header override for content disposition.
- contentEncoding
- String
The response header override for content encoding.
- contentLanguage
- String
The response header override for content language.
- contentType
- String
The response header override for content type.
Returns
A new ServiceSasContent instance for mocking.
Applies to
Azure SDK for .NET