ArmCosmosDBModelFactory.RestorableCosmosDBAccountData 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.
Overloads
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
- location
- Nullable<AzureLocation>
- accountName
- String
- createdOn
- Nullable<DateTimeOffset>
- deletedOn
- Nullable<DateTimeOffset>
- apiType
- Nullable<CosmosDBApiType>
- restorableLocations
- IEnumerable<RestorableLocationResourceInfo>
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
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.