ArmCosmosDBModelFactory.DatabaseAccountKeysMetadata 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 DatabaseAccountKeysMetadata.
public static Azure.ResourceManager.CosmosDB.Models.DatabaseAccountKeysMetadata DatabaseAccountKeysMetadata (DateTimeOffset? primaryMasterKeyGeneratedOn = default, DateTimeOffset? secondaryMasterKeyGeneratedOn = default, DateTimeOffset? primaryReadonlyMasterKeyGeneratedOn = default, DateTimeOffset? secondaryReadonlyMasterKeyGeneratedOn = default);
static member DatabaseAccountKeysMetadata : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.ResourceManager.CosmosDB.Models.DatabaseAccountKeysMetadata
Public Shared Function DatabaseAccountKeysMetadata (Optional primaryMasterKeyGeneratedOn As Nullable(Of DateTimeOffset) = Nothing, Optional secondaryMasterKeyGeneratedOn As Nullable(Of DateTimeOffset) = Nothing, Optional primaryReadonlyMasterKeyGeneratedOn As Nullable(Of DateTimeOffset) = Nothing, Optional secondaryReadonlyMasterKeyGeneratedOn As Nullable(Of DateTimeOffset) = Nothing) As DatabaseAccountKeysMetadata
Parameters
- primaryMasterKeyGeneratedOn
- Nullable<DateTimeOffset>
The metadata related to the Primary Read-Write Key for the given Cosmos DB database account.
- secondaryMasterKeyGeneratedOn
- Nullable<DateTimeOffset>
The metadata related to the Secondary Read-Write Key for the given Cosmos DB database account.
- primaryReadonlyMasterKeyGeneratedOn
- Nullable<DateTimeOffset>
The metadata related to the Primary Read-Only Key for the given Cosmos DB database account.
- secondaryReadonlyMasterKeyGeneratedOn
- Nullable<DateTimeOffset>
The metadata related to the Secondary Read-Only Key for the given Cosmos DB database account.
Returns
A new DatabaseAccountKeysMetadata instance for mocking.
Applies to
Azure SDK for .NET