Dela via


ArmStorageModelFactory.StorageAccountKey Method

Definition

Initializes a new instance of StorageAccountKey.

public static Azure.ResourceManager.Storage.Models.StorageAccountKey StorageAccountKey (string keyName = default, string value = default, Azure.ResourceManager.Storage.Models.StorageAccountKeyPermission? permissions = default, DateTimeOffset? createdOn = default);
static member StorageAccountKey : string * string * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountKeyPermission> * Nullable<DateTimeOffset> -> Azure.ResourceManager.Storage.Models.StorageAccountKey
Public Shared Function StorageAccountKey (Optional keyName As String = Nothing, Optional value As String = Nothing, Optional permissions As Nullable(Of StorageAccountKeyPermission) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing) As StorageAccountKey

Parameters

keyName
String

Name of the key.

value
String

Base 64-encoded value of the key.

permissions
Nullable<StorageAccountKeyPermission>

Permissions for the key -- read-only or full permissions.

createdOn
Nullable<DateTimeOffset>

Creation time of the key, in round trip date format.

Returns

A new StorageAccountKey instance for mocking.

Applies to