共用方式為


ArmStorageModelFactory.StorageEncryptionService Method

Definition

Initializes a new instance of StorageEncryptionService.

public static Azure.ResourceManager.Storage.Models.StorageEncryptionService StorageEncryptionService (bool? isEnabled = default, DateTimeOffset? lastEnabledOn = default, Azure.ResourceManager.Storage.Models.StorageEncryptionKeyType? keyType = default);
static member StorageEncryptionService : Nullable<bool> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Storage.Models.StorageEncryptionKeyType> -> Azure.ResourceManager.Storage.Models.StorageEncryptionService
Public Shared Function StorageEncryptionService (Optional isEnabled As Nullable(Of Boolean) = Nothing, Optional lastEnabledOn As Nullable(Of DateTimeOffset) = Nothing, Optional keyType As Nullable(Of StorageEncryptionKeyType) = Nothing) As StorageEncryptionService

Parameters

isEnabled
Nullable<Boolean>

A boolean indicating whether or not the service encrypts the data as it is stored. Encryption at rest is enabled by default today and cannot be disabled.

lastEnabledOn
Nullable<DateTimeOffset>

Gets a rough estimate of the date/time when the encryption was last enabled by the user. Data is encrypted at rest by default today and cannot be disabled.

keyType
Nullable<StorageEncryptionKeyType>

Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used.

Returns

A new StorageEncryptionService instance for mocking.

Applies to