Google Cloud Sql Admin V1 Client - Class DatabaseInstance (1.6.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class DatabaseInstance.

A Cloud SQL instance resource.

Generated from protobuf messagegoogle.cloud.sql.v1.DatabaseInstance

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ kindstring

This is alwayssql#instance.

↳ stateint

The current serving state of the Cloud SQL instance.

↳ database_versionint

The database engine type and version. ThedatabaseVersion field cannot be changed after instance creation.

↳ settingsSettings

The user settings.

↳ etagstring

This field is deprecated and will be removed from a future version of the API. Use thesettings.settingsVersion field instead.

↳ failover_replicaDatabaseInstance\SqlFailoverReplica

The name and status of the failover replica.

↳ master_instance_namestring

The name of the instance which will act as primary in the replication setup.

↳ replica_namesarray

The replicas of the instance.

↳ max_disk_sizeGoogle\Protobuf\Int64Value

The maximum disk size of the instance in bytes.

↳ current_disk_sizeGoogle\Protobuf\Int64Value

The current disk usage of the instance in bytes. This property has been deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please seethis announcement for details.

↳ ip_addressesarray<IpMapping>

The assigned IP addresses for the instance.

↳ server_ca_certSslCert

SSL configuration.

↳ instance_typeint

The instance type.

↳ projectstring

The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.

↳ ipv6_addressstring

The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.

↳ service_account_email_addressstring

The service account email address assigned to the instance.\This property is read-only.

↳ on_premises_configurationOnPremisesConfiguration

Configuration specific to on-premises instances.

↳ replica_configurationReplicaConfiguration

Configuration specific to failover replicas and read replicas.

↳ backend_typeint

The backend type.SECOND_GEN: Cloud SQL database instance.EXTERNAL: A database server that is not managed by Google. This property is read-only; use thetier property in thesettings object to determine the database type.

↳ self_linkstring

The URI of this resource.

↳ suspension_reasonarray

If the instance state is SUSPENDED, the reason for the suspension.

↳ connection_namestring

Connection name of the Cloud SQL instance used in connection strings.

↳ namestring

Name of the Cloud SQL instance. This does not include the project ID.

↳ regionstring

The geographical region of the Cloud SQL instance. It can be one of theregions where Cloud SQL operates: For example,asia-east1,europe-west1, andus-central1. The default value isus-central1.

↳ gce_zonestring

The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.

↳ secondary_gce_zonestring

The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.

↳ disk_encryption_configurationDiskEncryptionConfiguration

Disk encryption configuration specific to an instance.

↳ disk_encryption_statusDiskEncryptionStatus

Disk encryption status specific to an instance.

↳ root_passwordstring

Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.

↳ scheduled_maintenanceDatabaseInstance\SqlScheduledMaintenance

The start time of any upcoming scheduled maintenance for this instance.

↳ satisfies_pzsGoogle\Protobuf\BoolValue

This status indicates whether the instance satisfies PZS. The status is reserved for future use.

↳ database_installed_versionstring

Output only. Stores the current database version running on the instance including minor version such asMYSQL_8_0_18.

↳ out_of_disk_reportDatabaseInstance\SqlOutOfDiskReport

This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * * Writers: * * the proactive database wellness job for OOD. * * Readers: * * the proactive database wellness job

↳ create_timeGoogle\Protobuf\Timestamp

Output only. The time when the instance was created inRFC 3339 format, for example2012-11-15T16:19:00.094Z.

↳ available_maintenance_versionsarray

Output only. List all maintenance versions applicable on the instance

↳ maintenance_versionstring

The current software version on the instance.

↳ upgradable_database_versionsarray<AvailableDatabaseVersion>

Output only. All database versions that are available for upgrade.

↳ sql_network_architectureint
↳ psc_service_attachment_linkstring

Output only. The link to service attachment of PSC instance.

↳ dns_namestring

Output only. The dns name of the instance.

↳ primary_dns_namestring

Output only. DEPRECATED: please use write_endpoint instead.

↳ write_endpointstring

Output only. The dns name of the primary instance in a replication group.

↳ replication_clusterReplicationCluster

Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.

↳ gemini_configGeminiInstanceConfig

Gemini instance configuration.

↳ satisfies_pziGoogle\Protobuf\BoolValue

Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.

↳ switch_transaction_logs_to_cloud_storage_enabledGoogle\Protobuf\BoolValue

Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.

↳ include_replicas_for_major_version_upgradeGoogle\Protobuf\BoolValue

Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.

↳ tagsarray|Google\Protobuf\Internal\MapField

Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as:"<tag-key-namespaced-name>" : "<tag-value-short-name>". For example, a single resource can have the following tags:"123/environment": "production", "123/costCenter": "marketing", For more information on tag creation and management, seehttps://cloud.google.com/resource-manager/docs/tags/tags-overview.

↳ node_countint

The number of read pool nodes in a read pool.

↳ nodesarray<DatabaseInstance\PoolNodeConfig>

Output only. Entries containing information about each read pool node of the read pool.

↳ dns_namesarray<DnsNameMapping>

Output only. The list of DNS names used by this instance.

getKind

This is alwayssql#instance.

Returns
TypeDescription
string

setKind

This is alwayssql#instance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getState

The current serving state of the Cloud SQL instance.

Returns
TypeDescription
intEnum of typeSqlInstanceState.

setState

The current serving state of the Cloud SQL instance.

Parameter
NameDescription
varint

Enum of typeSqlInstanceState.

Returns
TypeDescription
$this

getDatabaseVersion

The database engine type and version. ThedatabaseVersion field cannotbe changed after instance creation.

Returns
TypeDescription
intEnum of typeSqlDatabaseVersion.

setDatabaseVersion

The database engine type and version. ThedatabaseVersion field cannotbe changed after instance creation.

Parameter
NameDescription
varint

Enum of typeSqlDatabaseVersion.

Returns
TypeDescription
$this

getSettings

The user settings.

Returns
TypeDescription
Settings|null

hasSettings

clearSettings

setSettings

The user settings.

Parameter
NameDescription
varSettings
Returns
TypeDescription
$this

getEtag

This field is deprecated and will be removed from a future version of theAPI. Use thesettings.settingsVersion field instead.

Returns
TypeDescription
string

setEtag

This field is deprecated and will be removed from a future version of theAPI. Use thesettings.settingsVersion field instead.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getFailoverReplica

The name and status of the failover replica.

Returns
TypeDescription
DatabaseInstance\SqlFailoverReplica|null

hasFailoverReplica

clearFailoverReplica

setFailoverReplica

The name and status of the failover replica.

Parameter
NameDescription
varDatabaseInstance\SqlFailoverReplica
Returns
TypeDescription
$this

getMasterInstanceName

The name of the instance which will act as primary in the replicationsetup.

Returns
TypeDescription
string

setMasterInstanceName

The name of the instance which will act as primary in the replicationsetup.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getReplicaNames

The replicas of the instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setReplicaNames

The replicas of the instance.

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this

getMaxDiskSize

The maximum disk size of the instance in bytes.

Returns
TypeDescription
Google\Protobuf\Int64Value|null

hasMaxDiskSize

clearMaxDiskSize

getMaxDiskSizeUnwrapped

Returns the unboxed value fromgetMaxDiskSize()

The maximum disk size of the instance in bytes.

Returns
TypeDescription
int|string|null

setMaxDiskSize

The maximum disk size of the instance in bytes.

Parameter
NameDescription
varGoogle\Protobuf\Int64Value
Returns
TypeDescription
$this

setMaxDiskSizeUnwrapped

Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.

The maximum disk size of the instance in bytes.

Parameter
NameDescription
varint|string|null
Returns
TypeDescription
$this

getCurrentDiskSize

Returns
TypeDescription
Google\Protobuf\Int64Value|null

hasCurrentDiskSize

clearCurrentDiskSize

getCurrentDiskSizeUnwrapped

Returns the unboxed value fromgetCurrentDiskSize()

The current disk usage of the instance in bytes. This property has beendeprecated. Use the"cloudsql.googleapis.com/database/disk/bytes_used" metric in CloudMonitoring API instead. Please seethisannouncementfor details.

Returns
TypeDescription
int|string|null

setCurrentDiskSize

The current disk usage of the instance in bytes. This property has beendeprecated. Use the"cloudsql.googleapis.com/database/disk/bytes_used" metric in CloudMonitoring API instead. Please seethisannouncementfor details.

Parameter
NameDescription
varGoogle\Protobuf\Int64Value
Returns
TypeDescription
$this

setCurrentDiskSizeUnwrapped

Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.

The current disk usage of the instance in bytes. This property has beendeprecated. Use the"cloudsql.googleapis.com/database/disk/bytes_used" metric in CloudMonitoring API instead. Please seethisannouncementfor details.

Parameter
NameDescription
varint|string|null
Returns
TypeDescription
$this

getIpAddresses

The assigned IP addresses for the instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIpAddresses

The assigned IP addresses for the instance.

Parameter
NameDescription
vararray<IpMapping>
Returns
TypeDescription
$this

getServerCaCert

SSL configuration.

Returns
TypeDescription
SslCert|null

hasServerCaCert

clearServerCaCert

setServerCaCert

SSL configuration.

Parameter
NameDescription
varSslCert
Returns
TypeDescription
$this

getInstanceType

The instance type.

Returns
TypeDescription
intEnum of typeSqlInstanceType.

setInstanceType

The instance type.

Parameter
NameDescription
varint

Enum of typeSqlInstanceType.

Returns
TypeDescription
$this

getProject

The project ID of the project containing the Cloud SQL instance. The Googleapps domain is prefixed if applicable.

Returns
TypeDescription
string

setProject

The project ID of the project containing the Cloud SQL instance. The Googleapps domain is prefixed if applicable.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getIpv6Address

The IPv6 address assigned to the instance.

(Deprecated) This property was applicable onlyto First Generation instances.

Returns
TypeDescription
string

setIpv6Address

The IPv6 address assigned to the instance.

(Deprecated) This property was applicable onlyto First Generation instances.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getServiceAccountEmailAddress

The service account email address assigned to the instance.\Thisproperty is read-only.

Returns
TypeDescription
string

setServiceAccountEmailAddress

The service account email address assigned to the instance.\Thisproperty is read-only.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getOnPremisesConfiguration

Configuration specific to on-premises instances.

Returns
TypeDescription
OnPremisesConfiguration|null

hasOnPremisesConfiguration

clearOnPremisesConfiguration

setOnPremisesConfiguration

Configuration specific to on-premises instances.

Parameter
NameDescription
varOnPremisesConfiguration
Returns
TypeDescription
$this

getReplicaConfiguration

Configuration specific to failover replicas and read replicas.

Returns
TypeDescription
ReplicaConfiguration|null

hasReplicaConfiguration

clearReplicaConfiguration

setReplicaConfiguration

Configuration specific to failover replicas and read replicas.

Parameter
NameDescription
varReplicaConfiguration
Returns
TypeDescription
$this

getBackendType

The backend type.

SECOND_GEN: Cloud SQL database instance.EXTERNAL: A database server that is not managed by Google.This property is read-only; use thetier property in thesettingsobject to determine the database type.

Returns
TypeDescription
intEnum of typeSqlBackendType.

setBackendType

The backend type.

SECOND_GEN: Cloud SQL database instance.EXTERNAL: A database server that is not managed by Google.This property is read-only; use thetier property in thesettingsobject to determine the database type.

Parameter
NameDescription
varint

Enum of typeSqlBackendType.

Returns
TypeDescription
$this

getSelfLink

The URI of this resource.

Returns
TypeDescription
string

setSelfLink

The URI of this resource.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSuspensionReason

If the instance state is SUSPENDED, the reason for the suspension.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSuspensionReason

If the instance state is SUSPENDED, the reason for the suspension.

Parameter
NameDescription
varint[]
Returns
TypeDescription
$this

getConnectionName

Connection name of the Cloud SQL instance used in connection strings.

Returns
TypeDescription
string

setConnectionName

Connection name of the Cloud SQL instance used in connection strings.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getName

Name of the Cloud SQL instance. This does not include the project ID.

Returns
TypeDescription
string

setName

Name of the Cloud SQL instance. This does not include the project ID.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getRegion

The geographical region of the Cloud SQL instance.

It can be one of theregionswhere Cloud SQL operates:For example,asia-east1,europe-west1, andus-central1.The default value isus-central1.

Returns
TypeDescription
string

setRegion

The geographical region of the Cloud SQL instance.

It can be one of theregionswhere Cloud SQL operates:For example,asia-east1,europe-west1, andus-central1.The default value isus-central1.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getGceZone

The Compute Engine zone that the instance is currently serving from. Thisvalue could be different from the zone that was specified when the instancewas created if the instance has failed over to its secondary zone. WARNING:Changing this might restart the instance.

Returns
TypeDescription
string

setGceZone

The Compute Engine zone that the instance is currently serving from. Thisvalue could be different from the zone that was specified when the instancewas created if the instance has failed over to its secondary zone. WARNING:Changing this might restart the instance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSecondaryGceZone

The Compute Engine zone that the failover instance is currently servingfrom for a regional instance. This value could be differentfrom the zone that was specified when the instancewas created if the instance has failed over to its secondary/failover zone.

Returns
TypeDescription
string

setSecondaryGceZone

The Compute Engine zone that the failover instance is currently servingfrom for a regional instance. This value could be differentfrom the zone that was specified when the instancewas created if the instance has failed over to its secondary/failover zone.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDiskEncryptionConfiguration

Disk encryption configuration specific to an instance.

Returns
TypeDescription
DiskEncryptionConfiguration|null

hasDiskEncryptionConfiguration

clearDiskEncryptionConfiguration

setDiskEncryptionConfiguration

Disk encryption configuration specific to an instance.

Parameter
NameDescription
varDiskEncryptionConfiguration
Returns
TypeDescription
$this

getDiskEncryptionStatus

Disk encryption status specific to an instance.

Returns
TypeDescription
DiskEncryptionStatus|null

hasDiskEncryptionStatus

clearDiskEncryptionStatus

setDiskEncryptionStatus

Disk encryption status specific to an instance.

Parameter
NameDescription
varDiskEncryptionStatus
Returns
TypeDescription
$this

getRootPassword

Initial root password. Use only on creation. You must set root passwordsbefore you can connect to PostgreSQL instances.

Returns
TypeDescription
string

setRootPassword

Initial root password. Use only on creation. You must set root passwordsbefore you can connect to PostgreSQL instances.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getScheduledMaintenance

The start time of any upcoming scheduled maintenance for this instance.

Returns
TypeDescription
DatabaseInstance\SqlScheduledMaintenance|null

hasScheduledMaintenance

clearScheduledMaintenance

setScheduledMaintenance

The start time of any upcoming scheduled maintenance for this instance.

Parameter
NameDescription
varDatabaseInstance\SqlScheduledMaintenance
Returns
TypeDescription
$this

getSatisfiesPzs

This status indicates whether the instance satisfies PZS.

The status is reserved for future use.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasSatisfiesPzs

clearSatisfiesPzs

getSatisfiesPzsUnwrapped

Returns the unboxed value fromgetSatisfiesPzs()

This status indicates whether the instance satisfies PZS.The status is reserved for future use.

Returns
TypeDescription
bool|null

setSatisfiesPzs

This status indicates whether the instance satisfies PZS.

The status is reserved for future use.

Parameter
NameDescription
varGoogle\Protobuf\BoolValue
Returns
TypeDescription
$this

setSatisfiesPzsUnwrapped

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

This status indicates whether the instance satisfies PZS.The status is reserved for future use.

Parameter
NameDescription
varbool|null
Returns
TypeDescription
$this

getDatabaseInstalledVersion

Output only. Stores the current database version running on the instanceincluding minor version such asMYSQL_8_0_18.

Returns
TypeDescription
string

setDatabaseInstalledVersion

Output only. Stores the current database version running on the instanceincluding minor version such asMYSQL_8_0_18.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getOutOfDiskReport

This field represents the report generated by the proactive databasewellness job for OutOfDisk issues.

  • Writers:
    • the proactive database wellness job for OOD.
  • Readers:
    • the proactive database wellness job
Returns
TypeDescription
DatabaseInstance\SqlOutOfDiskReport|null

hasOutOfDiskReport

clearOutOfDiskReport

setOutOfDiskReport

This field represents the report generated by the proactive databasewellness job for OutOfDisk issues.

  • Writers:
    • the proactive database wellness job for OOD.
  • Readers:
    • the proactive database wellness job
Parameter
NameDescription
varDatabaseInstance\SqlOutOfDiskReport
Returns
TypeDescription
$this

getCreateTime

Output only. The time when the instance was created inRFC 3339 format, for example2012-11-15T16:19:00.094Z.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the instance was created inRFC 3339 format, for example2012-11-15T16:19:00.094Z.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getAvailableMaintenanceVersions

Output only. List all maintenance versions applicable on the instance

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAvailableMaintenanceVersions

Output only. List all maintenance versions applicable on the instance

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this

getMaintenanceVersion

The current software version on the instance.

Returns
TypeDescription
string

setMaintenanceVersion

The current software version on the instance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getUpgradableDatabaseVersions

Output only. All database versions that are available for upgrade.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setUpgradableDatabaseVersions

Output only. All database versions that are available for upgrade.

Parameter
NameDescription
vararray<AvailableDatabaseVersion>
Returns
TypeDescription
$this

getSqlNetworkArchitecture

Generated from protobuf fieldoptional .google.cloud.sql.v1.DatabaseInstance.SqlNetworkArchitecture sql_network_architecture = 47;

Returns
TypeDescription
int

hasSqlNetworkArchitecture

clearSqlNetworkArchitecture

setSqlNetworkArchitecture

Generated from protobuf fieldoptional .google.cloud.sql.v1.DatabaseInstance.SqlNetworkArchitecture sql_network_architecture = 47;

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getPscServiceAttachmentLink

Output only. The link to service attachment of PSC instance.

Returns
TypeDescription
string

hasPscServiceAttachmentLink

clearPscServiceAttachmentLink

setPscServiceAttachmentLink

Output only. The link to service attachment of PSC instance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDnsName

Output only. The dns name of the instance.

Returns
TypeDescription
string

hasDnsName

clearDnsName

setDnsName

Output only. The dns name of the instance.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPrimaryDnsName

Output only. DEPRECATED: please use write_endpoint instead.

Returns
TypeDescription
string

hasPrimaryDnsName

clearPrimaryDnsName

setPrimaryDnsName

Output only. DEPRECATED: please use write_endpoint instead.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getWriteEndpoint

Output only. The dns name of the primary instance in a replication group.

Returns
TypeDescription
string

hasWriteEndpoint

clearWriteEndpoint

setWriteEndpoint

Output only. The dns name of the primary instance in a replication group.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getReplicationCluster

Optional. A primary instance and disaster recovery (DR) replica pair.

A DR replica is a cross-region replica that you designatefor failover in the event that the primary instanceexperiences regional failure.Applicable to MySQL and PostgreSQL.

Returns
TypeDescription
ReplicationCluster|null

hasReplicationCluster

clearReplicationCluster

setReplicationCluster

Optional. A primary instance and disaster recovery (DR) replica pair.

A DR replica is a cross-region replica that you designatefor failover in the event that the primary instanceexperiences regional failure.Applicable to MySQL and PostgreSQL.

Parameter
NameDescription
varReplicationCluster
Returns
TypeDescription
$this

getGeminiConfig

Gemini instance configuration.

Returns
TypeDescription
GeminiInstanceConfig|null

hasGeminiConfig

clearGeminiConfig

setGeminiConfig

Gemini instance configuration.

Parameter
NameDescription
varGeminiInstanceConfig
Returns
TypeDescription
$this

getSatisfiesPzi

Output only. This status indicates whether the instance satisfies PZI.

The status is reserved for future use.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasSatisfiesPzi

clearSatisfiesPzi

getSatisfiesPziUnwrapped

Returns the unboxed value fromgetSatisfiesPzi()

Output only. This status indicates whether the instance satisfies PZI.The status is reserved for future use.

Returns
TypeDescription
bool|null

setSatisfiesPzi

Output only. This status indicates whether the instance satisfies PZI.

The status is reserved for future use.

Parameter
NameDescription
varGoogle\Protobuf\BoolValue
Returns
TypeDescription
$this

setSatisfiesPziUnwrapped

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Output only. This status indicates whether the instance satisfies PZI.The status is reserved for future use.

Parameter
NameDescription
varbool|null
Returns
TypeDescription
$this

getSwitchTransactionLogsToCloudStorageEnabled

Input only. Whether Cloud SQL is enabled to switch storing point-in-timerecovery log files from a data disk to Cloud Storage.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasSwitchTransactionLogsToCloudStorageEnabled

clearSwitchTransactionLogsToCloudStorageEnabled

getSwitchTransactionLogsToCloudStorageEnabledUnwrapped

Returns the unboxed value fromgetSwitchTransactionLogsToCloudStorageEnabled()

Input only. Whether Cloud SQL is enabled to switch storing point-in-timerecovery log files from a data disk to Cloud Storage.

Returns
TypeDescription
bool|null

setSwitchTransactionLogsToCloudStorageEnabled

Input only. Whether Cloud SQL is enabled to switch storing point-in-timerecovery log files from a data disk to Cloud Storage.

Parameter
NameDescription
varGoogle\Protobuf\BoolValue
Returns
TypeDescription
$this

setSwitchTransactionLogsToCloudStorageEnabledUnwrapped

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Input only. Whether Cloud SQL is enabled to switch storing point-in-timerecovery log files from a data disk to Cloud Storage.

Parameter
NameDescription
varbool|null
Returns
TypeDescription
$this

getIncludeReplicasForMajorVersionUpgrade

Input only. Determines whether an in-place major version upgrade ofreplicas happens when an in-place major version upgrade of a primaryinstance is initiated.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasIncludeReplicasForMajorVersionUpgrade

clearIncludeReplicasForMajorVersionUpgrade

getIncludeReplicasForMajorVersionUpgradeUnwrapped

Returns the unboxed value fromgetIncludeReplicasForMajorVersionUpgrade()

Input only. Determines whether an in-place major version upgrade ofreplicas happens when an in-place major version upgrade of a primaryinstance is initiated.

Returns
TypeDescription
bool|null

setIncludeReplicasForMajorVersionUpgrade

Input only. Determines whether an in-place major version upgrade ofreplicas happens when an in-place major version upgrade of a primaryinstance is initiated.

Parameter
NameDescription
varGoogle\Protobuf\BoolValue
Returns
TypeDescription
$this

setIncludeReplicasForMajorVersionUpgradeUnwrapped

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Input only. Determines whether an in-place major version upgrade ofreplicas happens when an in-place major version upgrade of a primaryinstance is initiated.

Parameter
NameDescription
varbool|null
Returns
TypeDescription
$this

getTags

Optional. Input only. Immutable. Tag keys and tag values that are bound tothis instance. You must represent each item in the map as:"<tag-key-namespaced-name>" : "<tag-value-short-name>".

For example, a single resource can have the following tags:

  "123/environment": "production",  "123/costCenter": "marketing",

For more information on tag creation and management, seehttps://cloud.google.com/resource-manager/docs/tags/tags-overview.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setTags

Optional. Input only. Immutable. Tag keys and tag values that are bound tothis instance. You must represent each item in the map as:"<tag-key-namespaced-name>" : "<tag-value-short-name>".

For example, a single resource can have the following tags:

  "123/environment": "production",  "123/costCenter": "marketing",

For more information on tag creation and management, seehttps://cloud.google.com/resource-manager/docs/tags/tags-overview.

Parameter
NameDescription
vararray|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getNodeCount

The number of read pool nodes in a read pool.

Returns
TypeDescription
int

hasNodeCount

clearNodeCount

setNodeCount

The number of read pool nodes in a read pool.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getNodes

Output only. Entries containing information about each read pool node ofthe read pool.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNodes

Output only. Entries containing information about each read pool node ofthe read pool.

Parameter
NameDescription
vararray<DatabaseInstance\PoolNodeConfig>
Returns
TypeDescription
$this

getDnsNames

Output only. The list of DNS names used by this instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDnsNames

Output only. The list of DNS names used by this instance.

Parameter
NameDescription
vararray<DnsNameMapping>
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-09 UTC.