Compartilhar via


ArmCosmosDBModelFactory.RestorableCosmosDBAccountData Method

Definition

Overloads

RestorableCosmosDBAccountData(ResourceIdentifier, String, ResourceType, SystemData, Nullable<AzureLocation>, String, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<CosmosDBApiType>, IEnumerable<RestorableLocationResourceInfo>)
RestorableCosmosDBAccountData(ResourceIdentifier, String, ResourceType, SystemData, Nullable<AzureLocation>, String, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<CosmosDBApiType>, IEnumerable<RestorableLocationResourceInfo>)

Initializes a new instance of RestorableCosmosDBAccountData.

RestorableCosmosDBAccountData(ResourceIdentifier, String, ResourceType, SystemData, Nullable<AzureLocation>, String, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<CosmosDBApiType>, IEnumerable<RestorableLocationResourceInfo>)

Source:
ArmCosmosDBModelFactory.cs
public static Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountData RestorableCosmosDBAccountData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.AzureLocation? location = default, string accountName = default, DateTimeOffset? createdOn = default, DateTimeOffset? deletedOn = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBApiType? apiType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.RestorableLocationResourceInfo> restorableLocations = default);
static member RestorableCosmosDBAccountData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.Core.AzureLocation> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBApiType> * seq<Azure.ResourceManager.CosmosDB.Models.RestorableLocationResourceInfo> -> Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountData
Public Shared Function RestorableCosmosDBAccountData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional accountName As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional deletedOn As Nullable(Of DateTimeOffset) = Nothing, Optional apiType As Nullable(Of CosmosDBApiType) = Nothing, Optional restorableLocations As IEnumerable(Of RestorableLocationResourceInfo) = Nothing) As RestorableCosmosDBAccountData

Parameters

name
String
resourceType
ResourceType
systemData
SystemData
accountName
String

Returns

Applies to

RestorableCosmosDBAccountData(ResourceIdentifier, String, ResourceType, SystemData, Nullable<AzureLocation>, String, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<CosmosDBApiType>, IEnumerable<RestorableLocationResourceInfo>)

Source:
ArmCosmosDBModelFactory.cs

Initializes a new instance of RestorableCosmosDBAccountData.

public static Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountData RestorableCosmosDBAccountData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.AzureLocation? location = default, string accountName = default, DateTimeOffset? createdOn = default, DateTimeOffset? oldestRestorableOn = default, DateTimeOffset? deletedOn = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBApiType? apiType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.RestorableLocationResourceInfo> restorableLocations = default);
static member RestorableCosmosDBAccountData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.Core.AzureLocation> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBApiType> * seq<Azure.ResourceManager.CosmosDB.Models.RestorableLocationResourceInfo> -> Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountData
Public Shared Function RestorableCosmosDBAccountData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional accountName As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional oldestRestorableOn As Nullable(Of DateTimeOffset) = Nothing, Optional deletedOn As Nullable(Of DateTimeOffset) = Nothing, Optional apiType As Nullable(Of CosmosDBApiType) = Nothing, Optional restorableLocations As IEnumerable(Of RestorableLocationResourceInfo) = Nothing) As RestorableCosmosDBAccountData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

location
Nullable<AzureLocation>

The location of the resource group to which the resource belongs.

accountName
String

The name of the global database account.

createdOn
Nullable<DateTimeOffset>

The creation time of the restorable database account (ISO-8601 format).

oldestRestorableOn
Nullable<DateTimeOffset>

The least recent time at which the database account can be restored to (ISO-8601 format).

deletedOn
Nullable<DateTimeOffset>

The time at which the restorable database account has been deleted (ISO-8601 format).

apiType
Nullable<CosmosDBApiType>

The API type of the restorable database account.

restorableLocations
IEnumerable<RestorableLocationResourceInfo>

List of regions where the of the database account can be restored from.

Returns

A new RestorableCosmosDBAccountData instance for mocking.

Applies to