ArmSqlModelFactory.ManagedDatabasePatch 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.
public static Azure.ResourceManager.Sql.Models.ManagedDatabasePatch ManagedDatabasePatch(string collation, Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus? status, DateTimeOffset? createdOn, DateTimeOffset? earliestRestorePoint, DateTimeOffset? restorePointInTime, Azure.Core.AzureLocation? defaultSecondaryLocation, Azure.ResourceManager.Sql.Models.CatalogCollationType? catalogCollation, Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode? createMode, Uri storageContainerUri, Azure.Core.ResourceIdentifier sourceDatabaseId, Azure.Core.ResourceIdentifier crossSubscriptionSourceDatabaseId, Azure.Core.ResourceIdentifier restorableDroppedDatabaseId, Azure.Core.ResourceIdentifier crossSubscriptionRestorableDroppedDatabaseId, string storageContainerIdentity, string storageContainerSasToken, Azure.Core.ResourceIdentifier failoverGroupId, Azure.Core.ResourceIdentifier recoverableDatabaseId, Azure.Core.ResourceIdentifier longTermRetentionBackupResourceId, bool? allowAutoCompleteRestore, string lastBackupName, Azure.Core.ResourceIdentifier crossSubscriptionTargetManagedInstanceId, bool? isLedgerOn, Azure.ResourceManager.Sql.Models.ManagedDatabaseExtendedAccessibilityInfo extendedAccessibilityInfo, System.Collections.Generic.IDictionary<string,string> tags);
static member ManagedDatabasePatch : 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.ManagedDatabaseExtendedAccessibilityInfo * System.Collections.Generic.IDictionary<string, string> -> Azure.ResourceManager.Sql.Models.ManagedDatabasePatch
Public Shared Function ManagedDatabasePatch (collation As String, status As Nullable(Of ManagedDatabaseStatus), createdOn As Nullable(Of DateTimeOffset), earliestRestorePoint As Nullable(Of DateTimeOffset), restorePointInTime As Nullable(Of DateTimeOffset), defaultSecondaryLocation As Nullable(Of AzureLocation), catalogCollation As Nullable(Of CatalogCollationType), createMode As Nullable(Of ManagedDatabaseCreateMode), storageContainerUri As Uri, sourceDatabaseId As ResourceIdentifier, crossSubscriptionSourceDatabaseId As ResourceIdentifier, restorableDroppedDatabaseId As ResourceIdentifier, crossSubscriptionRestorableDroppedDatabaseId As ResourceIdentifier, storageContainerIdentity As String, storageContainerSasToken As String, failoverGroupId As ResourceIdentifier, recoverableDatabaseId As ResourceIdentifier, longTermRetentionBackupResourceId As ResourceIdentifier, allowAutoCompleteRestore As Nullable(Of Boolean), lastBackupName As String, crossSubscriptionTargetManagedInstanceId As ResourceIdentifier, isLedgerOn As Nullable(Of Boolean), extendedAccessibilityInfo As ManagedDatabaseExtendedAccessibilityInfo, tags As IDictionary(Of String, String)) As ManagedDatabasePatch
Parameters
- 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.
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.
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.
- extendedAccessibilityInfo
- ManagedDatabaseExtendedAccessibilityInfo
Additional observability and troubleshooting information for databases in ‘Inaccessible’ state.
- tags
- IDictionary<String,String>
Resource tags.
Returns
A new ManagedDatabasePatch instance for mocking.