ArmSqlModelFactory.ManagedDatabaseData Method

Definition

Overloads

ManagedDatabaseData(ResourceIdentifier, String, ResourceType, SystemData, IDictionary<String,String>, AzureLocation, String, Nullable<ManagedDatabaseStatus>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<AzureLocation>, Nullable<CatalogCollationType>, Nullable<ManagedDatabaseCreateMode>, Uri, ResourceIdentifier, ResourceIdentifier, String, String, ResourceIdentifier, ResourceIdentifier, ResourceIdentifier, Nullable<Boolean>, String)
ManagedDatabaseData(ResourceIdentifier, String, ResourceType, SystemData, IDictionary<String,String>, AzureLocation, String, Nullable<ManagedDatabaseStatus>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<AzureLocation>, Nullable<CatalogCollationType>, Nullable<ManagedDatabaseCreateMode>, Uri, ResourceIdentifier, ResourceIdentifier, ResourceIdentifier, ResourceIdentifier, String, String, ResourceIdentifier, ResourceIdentifier, ResourceIdentifier, Nullable<Boolean>, String, ResourceIdentifier, Nullable<Boolean>)

Initializes a new instance of ManagedDatabaseData.

ManagedDatabaseData(ResourceIdentifier, String, ResourceType, SystemData, IDictionary<String,String>, AzureLocation, String, Nullable<ManagedDatabaseStatus>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<AzureLocation>, Nullable<CatalogCollationType>, Nullable<ManagedDatabaseCreateMode>, Uri, ResourceIdentifier, ResourceIdentifier, String, String, ResourceIdentifier, ResourceIdentifier, ResourceIdentifier, Nullable<Boolean>, String)

Source:
ArmSqlModelFactory.cs
public static Azure.ResourceManager.Sql.ManagedDatabaseData ManagedDatabaseData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string collation = default, Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus? status = default, DateTimeOffset? createdOn = default, DateTimeOffset? earliestRestorePoint = default, DateTimeOffset? restorePointInTime = default, Azure.Core.AzureLocation? defaultSecondaryLocation = default, Azure.ResourceManager.Sql.Models.CatalogCollationType? catalogCollation = default, Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode? createMode = default, Uri storageContainerUri = default, Azure.Core.ResourceIdentifier sourceDatabaseId = default, Azure.Core.ResourceIdentifier restorableDroppedDatabaseId = default, string storageContainerIdentity = default, string storageContainerSasToken = default, Azure.Core.ResourceIdentifier failoverGroupId = default, Azure.Core.ResourceIdentifier recoverableDatabaseId = default, Azure.Core.ResourceIdentifier longTermRetentionBackupResourceId = default, bool? allowAutoCompleteRestore = default, string lastBackupName = default);
static member ManagedDatabaseData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * Nullable<Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.Core.AzureLocation> * Nullable<Azure.ResourceManager.Sql.Models.CatalogCollationType> * Nullable<Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode> * Uri * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * string * string * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Nullable<bool> * string -> Azure.ResourceManager.Sql.ManagedDatabaseData
Public Shared Function ManagedDatabaseData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional collation As String = Nothing, Optional status As Nullable(Of ManagedDatabaseStatus) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional earliestRestorePoint As Nullable(Of DateTimeOffset) = Nothing, Optional restorePointInTime As Nullable(Of DateTimeOffset) = Nothing, Optional defaultSecondaryLocation As Nullable(Of AzureLocation) = Nothing, Optional catalogCollation As Nullable(Of CatalogCollationType) = Nothing, Optional createMode As Nullable(Of ManagedDatabaseCreateMode) = Nothing, Optional storageContainerUri As Uri = Nothing, Optional sourceDatabaseId As ResourceIdentifier = Nothing, Optional restorableDroppedDatabaseId As ResourceIdentifier = Nothing, Optional storageContainerIdentity As String = Nothing, Optional storageContainerSasToken As String = Nothing, Optional failoverGroupId As ResourceIdentifier = Nothing, Optional recoverableDatabaseId As ResourceIdentifier = Nothing, Optional longTermRetentionBackupResourceId As ResourceIdentifier = Nothing, Optional allowAutoCompleteRestore As Nullable(Of Boolean) = Nothing, Optional lastBackupName As String = Nothing) As ManagedDatabaseData

Parameters

name
String
resourceType
ResourceType
systemData
SystemData
location
AzureLocation
collation
String
earliestRestorePoint
Nullable<DateTimeOffset>
restorePointInTime
Nullable<DateTimeOffset>
defaultSecondaryLocation
Nullable<AzureLocation>
catalogCollation
Nullable<CatalogCollationType>
storageContainerUri
Uri
sourceDatabaseId
ResourceIdentifier
restorableDroppedDatabaseId
ResourceIdentifier
storageContainerIdentity
String
storageContainerSasToken
String
failoverGroupId
ResourceIdentifier
recoverableDatabaseId
ResourceIdentifier
longTermRetentionBackupResourceId
ResourceIdentifier
allowAutoCompleteRestore
Nullable<Boolean>
lastBackupName
String

Returns

Applies to

ManagedDatabaseData(ResourceIdentifier, String, ResourceType, SystemData, IDictionary<String,String>, AzureLocation, String, Nullable<ManagedDatabaseStatus>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<AzureLocation>, Nullable<CatalogCollationType>, Nullable<ManagedDatabaseCreateMode>, Uri, ResourceIdentifier, ResourceIdentifier, ResourceIdentifier, ResourceIdentifier, String, String, ResourceIdentifier, ResourceIdentifier, ResourceIdentifier, Nullable<Boolean>, String, ResourceIdentifier, Nullable<Boolean>)

Source:
ArmSqlModelFactory.cs

Initializes a new instance of ManagedDatabaseData.

public static Azure.ResourceManager.Sql.ManagedDatabaseData ManagedDatabaseData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string collation = default, Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus? status = default, DateTimeOffset? createdOn = default, DateTimeOffset? earliestRestorePoint = default, DateTimeOffset? restorePointInTime = default, Azure.Core.AzureLocation? defaultSecondaryLocation = default, Azure.ResourceManager.Sql.Models.CatalogCollationType? catalogCollation = default, Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode? createMode = default, Uri storageContainerUri = default, Azure.Core.ResourceIdentifier sourceDatabaseId = default, Azure.Core.ResourceIdentifier crossSubscriptionSourceDatabaseId = default, Azure.Core.ResourceIdentifier restorableDroppedDatabaseId = default, Azure.Core.ResourceIdentifier crossSubscriptionRestorableDroppedDatabaseId = default, string storageContainerIdentity = default, string storageContainerSasToken = default, Azure.Core.ResourceIdentifier failoverGroupId = default, Azure.Core.ResourceIdentifier recoverableDatabaseId = default, Azure.Core.ResourceIdentifier longTermRetentionBackupResourceId = default, bool? allowAutoCompleteRestore = default, string lastBackupName = default, Azure.Core.ResourceIdentifier crossSubscriptionTargetManagedInstanceId = default, bool? isLedgerOn = default);
static member ManagedDatabaseData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * Nullable<Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.Core.AzureLocation> * Nullable<Azure.ResourceManager.Sql.Models.CatalogCollationType> * Nullable<Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode> * Uri * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * string * string * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Nullable<bool> * string * Azure.Core.ResourceIdentifier * Nullable<bool> -> Azure.ResourceManager.Sql.ManagedDatabaseData
Public Shared Function ManagedDatabaseData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional collation As String = Nothing, Optional status As Nullable(Of ManagedDatabaseStatus) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional earliestRestorePoint As Nullable(Of DateTimeOffset) = Nothing, Optional restorePointInTime As Nullable(Of DateTimeOffset) = Nothing, Optional defaultSecondaryLocation As Nullable(Of AzureLocation) = Nothing, Optional catalogCollation As Nullable(Of CatalogCollationType) = Nothing, Optional createMode As Nullable(Of ManagedDatabaseCreateMode) = Nothing, Optional storageContainerUri As Uri = Nothing, Optional sourceDatabaseId As ResourceIdentifier = Nothing, Optional crossSubscriptionSourceDatabaseId As ResourceIdentifier = Nothing, Optional restorableDroppedDatabaseId As ResourceIdentifier = Nothing, Optional crossSubscriptionRestorableDroppedDatabaseId As ResourceIdentifier = Nothing, Optional storageContainerIdentity As String = Nothing, Optional storageContainerSasToken As String = Nothing, Optional failoverGroupId As ResourceIdentifier = Nothing, Optional recoverableDatabaseId As ResourceIdentifier = Nothing, Optional longTermRetentionBackupResourceId As ResourceIdentifier = Nothing, Optional allowAutoCompleteRestore As Nullable(Of Boolean) = Nothing, Optional lastBackupName As String = Nothing, Optional crossSubscriptionTargetManagedInstanceId As ResourceIdentifier = Nothing, Optional isLedgerOn As Nullable(Of Boolean) = Nothing) As ManagedDatabaseData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

collation
String

Collation of the managed database.

status
Nullable<ManagedDatabaseStatus>

Status of the database.

createdOn
Nullable<DateTimeOffset>

Creation date of the database.

earliestRestorePoint
Nullable<DateTimeOffset>

Earliest restore point in time for point in time restore.

restorePointInTime
Nullable<DateTimeOffset>

Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.

defaultSecondaryLocation
Nullable<AzureLocation>

Geo paired region.

catalogCollation
Nullable<CatalogCollationType>

Collation of the metadata catalog.

createMode
Nullable<ManagedDatabaseCreateMode>

Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required).

storageContainerUri
Uri

Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored.

sourceDatabaseId
ResourceIdentifier

The resource identifier of the source database associated with create operation of this database.

crossSubscriptionSourceDatabaseId
ResourceIdentifier

The resource identifier of the cross-subscription source database associated with create operation of this database.

restorableDroppedDatabaseId
ResourceIdentifier

The restorable dropped database resource id to restore when creating this database.

crossSubscriptionRestorableDroppedDatabaseId
ResourceIdentifier

The restorable cross-subscription dropped database resource id to restore when creating this database.

storageContainerIdentity
String

Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed.

storageContainerSasToken
String

Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token.

failoverGroupId
ResourceIdentifier

Instance Failover Group resource identifier that this managed database belongs to.

recoverableDatabaseId
ResourceIdentifier

The resource identifier of the recoverable database associated with create operation of this database.

longTermRetentionBackupResourceId
ResourceIdentifier

The name of the Long Term Retention backup to be used for restore of this managed database.

allowAutoCompleteRestore
Nullable<Boolean>

Whether to auto complete restore of this managed database.

lastBackupName
String

Last backup file name for restore of this managed database.

crossSubscriptionTargetManagedInstanceId
ResourceIdentifier

Target managed instance id used in cross-subscription restore.

isLedgerOn
Nullable<Boolean>

Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.

Returns

A new ManagedDatabaseData instance for mocking.

Applies to