你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DatabaseUpdate 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
数据库的排序规则。
- 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'
- currentServiceObjectiveName
- String
数据库的当前服务级别目标名称。
- requestedServiceObjectiveName
- String
请求的数据库服务级别目标名称。
- defaultSecondaryLocation
- String
此数据库的默认次要区域。
- failoverGroupId
- String
此数据库所属的故障转移组资源标识符。
- recoveryServicesRecoveryPointId
- String
与此数据库的创建操作关联的恢复点的资源标识符。
- longTermRetentionBackupResourceId
- String
与此数据库的创建操作关联的长期保留备份的资源标识符。
- recoverableDatabaseId
- String
与此数据库的创建操作关联的可恢复数据库的资源标识符。
- restorableDroppedDatabaseId
- String
与此数据库的创建操作关联的可还原已删除数据库的资源标识符。
- catalogCollation
- String
元数据目录的排序规则。 可能的值包括:“DATABASE_DEFAULT”、“SQL_Latin1_General_CP1_CI_AS”
- licenseType
- String
要为此数据库应用的许可证类型。 LicenseIncluded
如果需要许可证,或者BasePrice
拥有许可证并且符合Azure 混合权益条件。 可能的值包括:“LicenseIncluded”、“BasePrice”
- readScale
- String
只读路由的状态。 如果启用,其连接字符串中应用程序意向设置为只读的连接可能会路由到同一区域中的只读辅助副本 (replica) 。 不适用于弹性池中的超大规模数据库。 可能的值包括:“Enabled”、“Disabled”
- secondaryType
- String
数据库的辅助类型(如果它是辅助数据库)。 有效值为 Geo 和 Named。 可能的值包括:“Geo”、“Named”
- currentSku
- Sku
SKU 的名称和层。
- currentBackupStorageRedundancy
- String
用于存储此数据库的备份的存储帐户类型。 可能的值包括:“Geo”、“Local”、“Zone”、“GeoZone”
- requestedBackupStorageRedundancy
- String
用于存储此数据库的备份的存储帐户类型。 可能的值包括:“Geo”、“Local”、“Zone”、“GeoZone”
- maintenanceConfigurationId
- String
分配给数据库的维护配置 ID。 此配置定义将发生维护更新的时间段。
- tags
- IDictionary<String,String>
资源标记。