Share via


ArmStorageModelFactory.AccountSasContent Method

Definition

Initializes a new instance of AccountSasContent.

public static Azure.ResourceManager.Storage.Models.AccountSasContent AccountSasContent (Azure.ResourceManager.Storage.Models.StorageAccountSasSignedService services = default, Azure.ResourceManager.Storage.Models.StorageAccountSasSignedResourceType resourceTypes = default, Azure.ResourceManager.Storage.Models.StorageAccountSasPermission permissions = default, string ipAddressOrRange = default, Azure.ResourceManager.Storage.Models.StorageAccountHttpProtocol? protocols = default, DateTimeOffset? sharedAccessStartOn = default, DateTimeOffset sharedAccessExpireOn = default, string keyToSign = default);
static member AccountSasContent : Azure.ResourceManager.Storage.Models.StorageAccountSasSignedService * Azure.ResourceManager.Storage.Models.StorageAccountSasSignedResourceType * Azure.ResourceManager.Storage.Models.StorageAccountSasPermission * string * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountHttpProtocol> * Nullable<DateTimeOffset> * DateTimeOffset * string -> Azure.ResourceManager.Storage.Models.AccountSasContent
Public Shared Function AccountSasContent (Optional services As StorageAccountSasSignedService = Nothing, Optional resourceTypes As StorageAccountSasSignedResourceType = Nothing, Optional permissions As StorageAccountSasPermission = Nothing, Optional ipAddressOrRange As String = Nothing, Optional protocols As Nullable(Of StorageAccountHttpProtocol) = Nothing, Optional sharedAccessStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional sharedAccessExpireOn As DateTimeOffset = Nothing, Optional keyToSign As String = Nothing) As AccountSasContent

Parameters

services
StorageAccountSasSignedService

The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f).

resourceTypes
StorageAccountSasSignedResourceType

The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.

permissions
StorageAccountSasPermission

The signed permissions for the account 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.

sharedAccessExpireOn
DateTimeOffset

The time at which the shared access signature becomes invalid.

keyToSign
String

The key to sign the account SAS token with.

Returns

A new AccountSasContent instance for mocking.

Applies to