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

DatabaseUpdate 构造函数

定义

重载

DatabaseUpdate()

初始化 DatabaseUpdate 类的新实例。

DatabaseUpdate(Sku, DatabaseIdentity, String, String, Nullable<Int64>, String, String, String, String, Nullable<Guid>, Nullable<DateTime>, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, String, String, String, String, String, Nullable<Boolean>, String, Nullable<Int64>, Nullable<DateTime>, String, Nullable<Int32>, String, Sku, Nullable<Int32>, String, String, Nullable<Double>, Nullable<DateTime>, Nullable<DateTime>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Guid>, IDictionary<String,String>)

初始化 DatabaseUpdate 类的新实例。

DatabaseUpdate()

初始化 DatabaseUpdate 类的新实例。

public DatabaseUpdate ();
Public Sub New ()

适用于

DatabaseUpdate(Sku, DatabaseIdentity, String, String, Nullable<Int64>, String, String, String, String, Nullable<Guid>, Nullable<DateTime>, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, String, String, String, String, String, Nullable<Boolean>, String, Nullable<Int64>, Nullable<DateTime>, String, Nullable<Int32>, String, Sku, Nullable<Int32>, String, String, Nullable<Double>, Nullable<DateTime>, Nullable<DateTime>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Guid>, IDictionary<String,String>)

初始化 DatabaseUpdate 类的新实例。

public DatabaseUpdate (Microsoft.Azure.Management.Sql.Models.Sku sku = default, Microsoft.Azure.Management.Sql.Models.DatabaseIdentity identity = default, string createMode = default, string collation = default, long? maxSizeBytes = default, string sampleName = default, string elasticPoolId = default, string sourceDatabaseId = default, string status = default, Guid? databaseId = default, DateTime? creationDate = default, string currentServiceObjectiveName = default, string requestedServiceObjectiveName = default, string defaultSecondaryLocation = default, string failoverGroupId = default, DateTime? restorePointInTime = default, DateTime? sourceDatabaseDeletionDate = default, string recoveryServicesRecoveryPointId = default, string longTermRetentionBackupResourceId = default, string recoverableDatabaseId = default, string restorableDroppedDatabaseId = default, string catalogCollation = default, bool? zoneRedundant = default, string licenseType = default, long? maxLogSizeBytes = default, DateTime? earliestRestoreDate = default, string readScale = default, int? highAvailabilityReplicaCount = default, string secondaryType = default, Microsoft.Azure.Management.Sql.Models.Sku currentSku = default, int? autoPauseDelay = default, string currentBackupStorageRedundancy = default, string requestedBackupStorageRedundancy = default, double? minCapacity = default, DateTime? pausedDate = default, DateTime? resumedDate = default, string maintenanceConfigurationId = default, bool? isLedgerOn = default, bool? isInfraEncryptionEnabled = default, Guid? federatedClientId = default, System.Collections.Generic.IDictionary<string,string> tags = default);
new Microsoft.Azure.Management.Sql.Models.DatabaseUpdate : Microsoft.Azure.Management.Sql.Models.Sku * Microsoft.Azure.Management.Sql.Models.DatabaseIdentity * string * string * Nullable<int64> * string * string * string * string * Nullable<Guid> * Nullable<DateTime> * string * string * string * string * Nullable<DateTime> * Nullable<DateTime> * string * string * string * string * string * Nullable<bool> * string * Nullable<int64> * Nullable<DateTime> * string * Nullable<int> * string * Microsoft.Azure.Management.Sql.Models.Sku * Nullable<int> * string * string * Nullable<double> * Nullable<DateTime> * Nullable<DateTime> * string * Nullable<bool> * Nullable<bool> * Nullable<Guid> * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Azure.Management.Sql.Models.DatabaseUpdate
Public Sub New (Optional sku As Sku = Nothing, Optional identity As DatabaseIdentity = Nothing, Optional createMode As String = Nothing, Optional collation As String = Nothing, Optional maxSizeBytes As Nullable(Of Long) = Nothing, Optional sampleName As String = Nothing, Optional elasticPoolId As String = Nothing, Optional sourceDatabaseId As String = Nothing, Optional status As String = Nothing, Optional databaseId As Nullable(Of Guid) = Nothing, Optional creationDate As Nullable(Of DateTime) = Nothing, Optional currentServiceObjectiveName As String = Nothing, Optional requestedServiceObjectiveName As String = Nothing, Optional defaultSecondaryLocation As String = Nothing, Optional failoverGroupId As String = Nothing, Optional restorePointInTime As Nullable(Of DateTime) = Nothing, Optional sourceDatabaseDeletionDate As Nullable(Of DateTime) = Nothing, Optional recoveryServicesRecoveryPointId As String = Nothing, Optional longTermRetentionBackupResourceId As String = Nothing, Optional recoverableDatabaseId As String = Nothing, Optional restorableDroppedDatabaseId As String = Nothing, Optional catalogCollation As String = Nothing, Optional zoneRedundant As Nullable(Of Boolean) = Nothing, Optional licenseType As String = Nothing, Optional maxLogSizeBytes As Nullable(Of Long) = Nothing, Optional earliestRestoreDate As Nullable(Of DateTime) = Nothing, Optional readScale As String = Nothing, Optional highAvailabilityReplicaCount As Nullable(Of Integer) = Nothing, Optional secondaryType As String = Nothing, Optional currentSku As Sku = Nothing, Optional autoPauseDelay As Nullable(Of Integer) = Nothing, Optional currentBackupStorageRedundancy As String = Nothing, Optional requestedBackupStorageRedundancy As String = Nothing, Optional minCapacity As Nullable(Of Double) = Nothing, Optional pausedDate As Nullable(Of DateTime) = Nothing, Optional resumedDate As Nullable(Of DateTime) = Nothing, Optional maintenanceConfigurationId As String = Nothing, Optional isLedgerOn As Nullable(Of Boolean) = Nothing, Optional isInfraEncryptionEnabled As Nullable(Of Boolean) = Nothing, Optional federatedClientId As Nullable(Of Guid) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing)

参数

sku
Sku

SKU 的名称和层。

identity
DatabaseIdentity

数据库标识

createMode
String

指定数据库创建模式。

         Default: regular database creation.

         Copy: creates a database as a copy of an existing database.
         sourceDatabaseId must be specified as the resource ID of the source
         database.

         Secondary: creates a database as a secondary replica of an existing
         database. sourceDatabaseId must be specified as the resource ID of
         the existing primary database.

         PointInTimeRestore: Creates a database by restoring a point in time
         backup of an existing database. sourceDatabaseId must be specified
         as the resource ID of the existing database, and restorePointInTime
         must be specified.

         Recovery: Creates a database by restoring a geo-replicated backup.
         sourceDatabaseId must be specified as the recoverable database
         resource ID to restore.

         Restore: Creates a database by restoring a backup of a deleted
         database. sourceDatabaseId must be specified. If sourceDatabaseId
         is the database's original resource ID, then
         sourceDatabaseDeletionDate must be specified. Otherwise
         sourceDatabaseId must be the restorable dropped database resource
         ID and sourceDatabaseDeletionDate is ignored. restorePointInTime
         may also be specified to restore from an earlier point in time.

         RestoreLongTermRetentionBackup: Creates a database by restoring
         from a long term retention vault.
         recoveryServicesRecoveryPointResourceId must be specified as the
         recovery point resource ID.

         Copy, Secondary, and RestoreLongTermRetentionBackup are not
         supported for DataWarehouse edition. Possible values include:
         'Default', 'Copy', 'Secondary', 'PointInTimeRestore', 'Restore',
         'Recovery', 'RestoreExternalBackup',
         'RestoreExternalBackupSecondary', 'RestoreLongTermRetentionBackup',
         'OnlineSecondary'
collation
String

数据库的排序规则。

maxSizeBytes
Nullable<Int64>

以字节表示的数据库的最大大小。

sampleName
String

创建此数据库时要应用的示例架构的名称。 可能的值包括:“AdventureWorksLT”、“WideWorldImportersStd”、“WideWorldImportersFull”

elasticPoolId
String

包含此数据库的弹性池的资源标识符。

sourceDatabaseId
String

与此数据库的创建操作关联的源数据库的资源标识符。

status
String

数据库的状态。 可能的值包括:“Online”、“Restoring”、“RecoveryPending”、“Recovering”、“Suspect”、“Offline”、“Standby”、 'Shutdown', 'EmergencyMode', 'AutoClosed', '复制', 'Creating', 'Inaccessible', 'OfflineSecondary', '暂停', 'Paused', 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled', 'Stopping', 'Stopped', 'Starting'

databaseId
Nullable<Guid>

数据库的 ID。

creationDate
Nullable<DateTime>

数据库的创建日期 (ISO8601 格式) 。

currentServiceObjectiveName
String

数据库的当前服务级别目标名称。

requestedServiceObjectiveName
String

请求的数据库服务级别目标名称。

defaultSecondaryLocation
String

此数据库的默认次要区域。

failoverGroupId
String

此数据库所属的故障转移组资源标识符。

restorePointInTime
Nullable<DateTime>

指定将还原为创建新数据库的源数据库的时间点 (ISO8601 格式) 。

sourceDatabaseDeletionDate
Nullable<DateTime>

指定删除数据库的时间。

recoveryServicesRecoveryPointId
String

与此数据库的创建操作关联的恢复点的资源标识符。

longTermRetentionBackupResourceId
String

与此数据库的创建操作关联的长期保留备份的资源标识符。

recoverableDatabaseId
String

与此数据库的创建操作关联的可恢复数据库的资源标识符。

restorableDroppedDatabaseId
String

与此数据库的创建操作关联的可还原已删除数据库的资源标识符。

catalogCollation
String

元数据目录的排序规则。 可能的值包括:“DATABASE_DEFAULT”、“SQL_Latin1_General_CP1_CI_AS”

zoneRedundant
Nullable<Boolean>

此数据库是否为区域冗余,这意味着此数据库的副本将分布在多个可用性区域。

licenseType
String

要为此数据库应用的许可证类型。 LicenseIncluded如果需要许可证,或者BasePrice拥有许可证并且符合Azure 混合权益条件。 可能的值包括:“LicenseIncluded”、“BasePrice”

maxLogSizeBytes
Nullable<Int64>

此数据库的最大日志大小。

earliestRestoreDate
Nullable<DateTime>

这会记录此数据库的最早开始日期和时间,该数据库 (ISO8601 格式) 。

readScale
String

只读路由的状态。 如果启用,其连接字符串中应用程序意向设置为只读的连接可能会路由到同一区域中的只读辅助副本 (replica) 。 不适用于弹性池中的超大规模数据库。 可能的值包括:“Enabled”、“Disabled”

highAvailabilityReplicaCount
Nullable<Int32>

与用于提供高可用性的数据库关联的次要副本数。 不适用于弹性池中的超大规模数据库。

secondaryType
String

数据库的辅助类型(如果它是辅助数据库)。 有效值为 Geo 和 Named。 可能的值包括:“Geo”、“Named”

currentSku
Sku

SKU 的名称和层。

autoPauseDelay
Nullable<Int32>

数据库自动暂停的时间(以分钟为单位)。 值 -1 表示已禁用自动暂停

currentBackupStorageRedundancy
String

用于存储此数据库的备份的存储帐户类型。 可能的值包括:“Geo”、“Local”、“Zone”、“GeoZone”

requestedBackupStorageRedundancy
String

用于存储此数据库的备份的存储帐户类型。 可能的值包括:“Geo”、“Local”、“Zone”、“GeoZone”

minCapacity
Nullable<Double>

数据库始终分配的最小容量(如果未暂停)

pausedDate
Nullable<DateTime>

用户配置或操作暂停数据库的日期 (ISO8601 格式) 。 如果数据库准备就绪,则为 Null。

resumedDate
Nullable<DateTime>

用户操作或数据库登录恢复数据库的日期 (ISO8601 格式) 。 如果暂停数据库,则为 Null。

maintenanceConfigurationId
String

分配给数据库的维护配置 ID。 此配置定义将发生维护更新的时间段。

isLedgerOn
Nullable<Boolean>

此数据库是否为账本数据库,这意味着数据库中的所有表都是账本表。 注意:创建数据库后,无法更改此属性的值。

isInfraEncryptionEnabled
Nullable<Boolean>

为此数据库启用了基础结构加密。

federatedClientId
Nullable<Guid>

用于跨租户每个数据库 CMK 方案的客户端 ID

tags
IDictionary<String,String>

资源标记。

适用于