你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmSqlModelFactory.ManagedDatabasePatch Method

Definition

Overloads

ManagedDatabasePatch(IDictionary<String,String>, 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)
ManagedDatabasePatch(IDictionary<String,String>, 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 ManagedDatabasePatch.

ManagedDatabasePatch(IDictionary<String,String>, 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.Models.ManagedDatabasePatch ManagedDatabasePatch (System.Collections.Generic.IDictionary<string,string> tags = 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 ManagedDatabasePatch : System.Collections.Generic.IDictionary<string, string> * 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.Models.ManagedDatabasePatch
Public Shared Function ManagedDatabasePatch (Optional tags As IDictionary(Of String, String) = 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 ManagedDatabasePatch

Parameters

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

ManagedDatabasePatch(IDictionary<String,String>, 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 ManagedDatabasePatch.

public static Azure.ResourceManager.Sql.Models.ManagedDatabasePatch ManagedDatabasePatch (System.Collections.Generic.IDictionary<string,string> tags = 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 ManagedDatabasePatch : System.Collections.Generic.IDictionary<string, string> * 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.Models.ManagedDatabasePatch
Public Shared Function ManagedDatabasePatch (Optional tags As IDictionary(Of String, String) = 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 ManagedDatabasePatch

Parameters

tags
IDictionary<String,String>

Resource tags.

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 ManagedDatabasePatch instance for mocking.

Applies to