Partilhar via


DatabaseInner Construtores

Definição

Sobrecargas

DatabaseInner()

Inicializa uma nova instância da classe DatabaseInner.

DatabaseInner(String, String, String, String, IDictionary<String, String>, String, String, Nullable<DateTime>, Nullable<Int64>, Nullable<Guid>, Nullable<Guid>, Nullable<DateTime>, CreateMode, String, Nullable<DateTime>, Nullable<DateTime>, String, DatabaseEdition, String, Nullable<Guid>, ServiceObjectiveName, ServiceObjectiveName, String, String, String, IList<ServiceTierAdvisorInner>, IList<TransparentDataEncryptionInner>, IList<RecommendedIndex>, String, Nullable<ReadScale>, SampleName, Nullable<Boolean>)

Inicializa uma nova instância da classe DatabaseInner.

DatabaseInner()

Inicializa uma nova instância da classe DatabaseInner.

public DatabaseInner ();
Public Sub New ()

Aplica-se a

DatabaseInner(String, String, String, String, IDictionary<String, String>, String, String, Nullable<DateTime>, Nullable<Int64>, Nullable<Guid>, Nullable<Guid>, Nullable<DateTime>, CreateMode, String, Nullable<DateTime>, Nullable<DateTime>, String, DatabaseEdition, String, Nullable<Guid>, ServiceObjectiveName, ServiceObjectiveName, String, String, String, IList<ServiceTierAdvisorInner>, IList<TransparentDataEncryptionInner>, IList<RecommendedIndex>, String, Nullable<ReadScale>, SampleName, Nullable<Boolean>)

Inicializa uma nova instância da classe DatabaseInner.

public DatabaseInner (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string kind = default, string collation = default, DateTime? creationDate = default, long? containmentState = default, Guid? currentServiceObjectiveId = default, Guid? databaseId = default, DateTime? earliestRestoreDate = default, Microsoft.Azure.Management.Sql.Fluent.Models.CreateMode createMode = default, string sourceDatabaseId = default, DateTime? sourceDatabaseDeletionDate = default, DateTime? restorePointInTime = default, string recoveryServicesRecoveryPointResourceId = default, Microsoft.Azure.Management.Sql.Fluent.Models.DatabaseEdition edition = default, string maxSizeBytes = default, Guid? requestedServiceObjectiveId = default, Microsoft.Azure.Management.Sql.Fluent.Models.ServiceObjectiveName requestedServiceObjectiveName = default, Microsoft.Azure.Management.Sql.Fluent.Models.ServiceObjectiveName serviceLevelObjective = default, string status = default, string elasticPoolName = default, string defaultSecondaryLocation = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.ServiceTierAdvisorInner> serviceTierAdvisors = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.TransparentDataEncryptionInner> transparentDataEncryption = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.RecommendedIndex> recommendedIndex = default, string failoverGroupId = default, Microsoft.Azure.Management.Sql.Fluent.Models.ReadScale? readScale = default, Microsoft.Azure.Management.Sql.Fluent.Models.SampleName sampleName = default, bool? zoneRedundant = default);
new Microsoft.Azure.Management.Sql.Fluent.Models.DatabaseInner : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * Nullable<DateTime> * Nullable<int64> * Nullable<Guid> * Nullable<Guid> * Nullable<DateTime> * Microsoft.Azure.Management.Sql.Fluent.Models.CreateMode * string * Nullable<DateTime> * Nullable<DateTime> * string * Microsoft.Azure.Management.Sql.Fluent.Models.DatabaseEdition * string * Nullable<Guid> * Microsoft.Azure.Management.Sql.Fluent.Models.ServiceObjectiveName * Microsoft.Azure.Management.Sql.Fluent.Models.ServiceObjectiveName * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.ServiceTierAdvisorInner> * System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.TransparentDataEncryptionInner> * System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.RecommendedIndex> * string * Nullable<Microsoft.Azure.Management.Sql.Fluent.Models.ReadScale> * Microsoft.Azure.Management.Sql.Fluent.Models.SampleName * Nullable<bool> -> Microsoft.Azure.Management.Sql.Fluent.Models.DatabaseInner
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional kind As String = Nothing, Optional collation As String = Nothing, Optional creationDate As Nullable(Of DateTime) = Nothing, Optional containmentState As Nullable(Of Long) = Nothing, Optional currentServiceObjectiveId As Nullable(Of Guid) = Nothing, Optional databaseId As Nullable(Of Guid) = Nothing, Optional earliestRestoreDate As Nullable(Of DateTime) = Nothing, Optional createMode As CreateMode = Nothing, Optional sourceDatabaseId As String = Nothing, Optional sourceDatabaseDeletionDate As Nullable(Of DateTime) = Nothing, Optional restorePointInTime As Nullable(Of DateTime) = Nothing, Optional recoveryServicesRecoveryPointResourceId As String = Nothing, Optional edition As DatabaseEdition = Nothing, Optional maxSizeBytes As String = Nothing, Optional requestedServiceObjectiveId As Nullable(Of Guid) = Nothing, Optional requestedServiceObjectiveName As ServiceObjectiveName = Nothing, Optional serviceLevelObjective As ServiceObjectiveName = Nothing, Optional status As String = Nothing, Optional elasticPoolName As String = Nothing, Optional defaultSecondaryLocation As String = Nothing, Optional serviceTierAdvisors As IList(Of ServiceTierAdvisorInner) = Nothing, Optional transparentDataEncryption As IList(Of TransparentDataEncryptionInner) = Nothing, Optional recommendedIndex As IList(Of RecommendedIndex) = Nothing, Optional failoverGroupId As String = Nothing, Optional readScale As Nullable(Of ReadScale) = Nothing, Optional sampleName As SampleName = Nothing, Optional zoneRedundant As Nullable(Of Boolean) = Nothing)

Parâmetros

location
String

Local do recurso.

id
String
name
String
type
String
tags
IDictionary<String,String>

Marcas de recurso.

kind
String

Tipo de banco de dados. Esses são metadados usados para a experiência de portal do Azure.

collation
String

A ordenação do banco de dados. Se createMode não for Padrão, esse valor será ignorado.

creationDate
Nullable<DateTime>

A data de criação do banco de dados (formato ISO8601).

containmentState
Nullable<Int64>

O estado de contenção do banco de dados.

currentServiceObjectiveId
Nullable<Guid>

A ID do objetivo do nível de serviço atual do banco de dados. Essa é a ID do objetivo de nível de serviço que está ativo no momento.

databaseId
Nullable<Guid>

A ID do banco de dados.

earliestRestoreDate
Nullable<DateTime>

Isso registra a data e a hora de início mais antigas em que a restauração está disponível para esse banco de dados (formato ISO8601).

createMode
CreateMode

Especifica o modo de criação do banco de dados.

         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.

         OnlineSecondary/NonReadableSecondary: creates a database as a
         (readable or nonreadable) 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, NonReadableSecondary, OnlineSecondary and
         RestoreLongTermRetentionBackup are not supported for DataWarehouse
         edition. Possible values include: 'Copy', 'Default',
         'NonReadableSecondary', 'OnlineSecondary', 'PointInTimeRestore',
         'Recovery', 'Restore', 'RestoreLongTermRetentionBackup'
sourceDatabaseId
String

Condicional. Se createMode for Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery ou Restore, esse valor será necessário. Especifica a ID do recurso do banco de dados de origem. Se createMode for NonReadableSecondary ou OnlineSecondary, o nome do banco de dados de origem deverá ser o mesmo que o novo banco de dados que está sendo criado.

sourceDatabaseDeletionDate
Nullable<DateTime>

Condicional. Se createMode for Restore e sourceDatabaseId for a ID de recurso original do banco de dados excluído quando ela existir (em oposição à ID de banco de dados descartada restaurável atual), esse valor será necessário. Especifica a hora em que o banco de dados foi excluído.

restorePointInTime
Nullable<DateTime>

Condicional. Se createMode for PointInTimeRestore, esse valor será necessário. Se createMode for Restore, esse valor será opcional. Especifica o ponto no tempo (formato ISO8601) do banco de dados de origem que será restaurado para criar o novo banco de dados. Deve ser maior ou igual ao valor mais antigo do banco de dados de origemRestoreDate.

recoveryServicesRecoveryPointResourceId
String

Condicional. Se createMode for RestoreLongTermRetentionBackup, esse valor será necessário. Especifica a ID do recurso do ponto de recuperação do qual restaurar.

edition
DatabaseEdition

A edição do banco de dados. A enumeração DatabaseEditions contém todas as edições válidas. Se createMode for NonReadableSecondary ou OnlineSecondary, esse valor será ignorado.

         The list of SKUs may vary by region and support offer. To determine
         the SKUs (including the SKU name, tier/edition, family, and
         capacity) that are available to your subscription in an Azure
         region, use the `Capabilities_ListByLocation` REST API or one of
         the following commands:

         ```azurecli
         az sql db list-editions -l &lt;location&gt; -o table
         ````

         ```powershell
         Get-AzSqlServerServiceObjective -Location &lt;location&gt;
         ````
         . Possible values include: 'Web', 'Business', 'Basic', 'Standard',
         'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse',
         'System', 'System2', 'GeneralPurpose', 'BusinessCritical',
         'Hyperscale'
maxSizeBytes
String

O tamanho máximo do banco de dados expresso em bytes. Se createMode não for Padrão, esse valor será ignorado. Para ver os valores possíveis, consulte a API de funcionalidades (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referida por operationId: "Capabilities_ListByLocation".

requestedServiceObjectiveId
Nullable<Guid>

A ID de objetivo de nível de serviço configurada do banco de dados. Esse é o objetivo de nível de serviço que está no processo de ser aplicado ao banco de dados. Depois de atualizado com êxito, ele corresponderá ao valor da propriedade currentServiceObjectiveId. Se requestedServiceObjectiveId e requestedServiceObjectiveName forem atualizados, o valor de requestedServiceObjectiveId substituirá o valor de requestedServiceObjectiveName.

         The list of SKUs may vary by region and support offer. To determine
         the service objective ids that are available to your subscription
         in an Azure region, use the `Capabilities_ListByLocation` REST
         API.
requestedServiceObjectiveName
ServiceObjectiveName

O nome do objetivo de nível de serviço configurado do banco de dados. Esse é o objetivo de nível de serviço que está no processo de ser aplicado ao banco de dados. Depois de atualizado com êxito, ele corresponderá ao valor da propriedade serviceLevelObjective.

         The list of SKUs may vary by region and support offer. To determine
         the SKUs (including the SKU name, tier/edition, family, and
         capacity) that are available to your subscription in an Azure
         region, use the `Capabilities_ListByLocation` REST API or one of
         the following commands:

         ```azurecli
         az sql db list-editions -l &lt;location&gt; -o table
         ````

         ```powershell
         Get-AzSqlServerServiceObjective -Location &lt;location&gt;
         ````
         . Possible values include: 'System', 'System0', 'System1',
         'System2', 'System3', 'System4', 'System2L', 'System3L',
         'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6',
         'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15',
         'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400',
         'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500',
         'DW1500c', 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c',
         'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c',
         'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600',
         'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool'
serviceLevelObjective
ServiceObjectiveName

O objetivo de nível de serviço atual do banco de dados. Os valores possíveis incluem: 'System', 'System0', 'System1', 'System2', 'System3', 'System4', 'System2L', 'System3L', 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400', 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', 'DW1500' 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', 'DW6000c', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool'

status
String

O status do banco de dados.

elasticPoolName
String

O nome do pool elástico em que o banco de dados está. Se elasticPoolName e requestedServiceObjectiveName forem atualizados, o valor de requestedServiceObjectiveName será ignorado. Não há suporte para a edição DataWarehouse.

defaultSecondaryLocation
String

A região secundária padrão para esse banco de dados.

serviceTierAdvisors
IList<ServiceTierAdvisorInner>

A lista de assistentes da camada de serviço para esse banco de dados. Propriedade expandida

transparentDataEncryption
IList<TransparentDataEncryptionInner>

As informações de criptografia de dados transparentes para esse banco de dados.

recommendedIndex
IList<RecommendedIndex>

Os índices recomendados para esse banco de dados.

failoverGroupId
String

O identificador de recurso do grupo de failover que contém esse banco de dados.

readScale
Nullable<ReadScale>

Condicional. Se o banco de dados for um secundário geográfico, readScale indicará se as conexões somente leitura têm permissão para esse banco de dados ou não. Não há suporte para a edição DataWarehouse. Os valores possíveis incluem: 'Enabled', 'Disabled'

sampleName
SampleName

Indica o nome do esquema de exemplo a ser aplicado ao criar esse banco de dados. Se createMode não for Padrão, esse valor será ignorado. Não há suporte para a edição DataWarehouse. Os valores possíveis incluem: 'AdventureWorksLT'

zoneRedundant
Nullable<Boolean>

Se esse banco de dados tem ou não redundância de zona, o que significa que as réplicas desse banco de dados serão distribuídas entre várias zonas de disponibilidade.

Aplica-se a