Google Cloud Dms V1 Client - Class CloudSqlSettings (1.5.5)

Reference documentation and code samples for the Google Cloud Dms V1 Client class CloudSqlSettings.

Settings for creating a Cloud SQL database instance.

Generated from protobuf message google.cloud.clouddms.v1.CloudSqlSettings

Namespace

Google \ Cloud \ CloudDms \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ database_version
int

The database engine type and version.

↳ user_labels
array| Google\Protobuf\Internal\MapField

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "18kg", "count": "3" } .

↳ tier
string

The tier (or machine type) for this instance, for example: db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For more information, see Cloud SQL Instance Settings .

↳ storage_auto_resize_limit
Google\Protobuf\Int64Value

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

↳ activation_policy
int

The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains so even in the absence of connection requests. NEVER : The instance is off; it is not activated, even if a connection request arrives.

↳ ip_config
Google\Cloud\CloudDms\V1\SqlIpConfig

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

↳ auto_storage_increase
Google\Protobuf\BoolValue

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

↳ database_flags
array| Google\Protobuf\Internal\MapField

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

↳ data_disk_type
int

The type of storage: PD_SSD (default) or PD_HDD .

↳ data_disk_size_gb
Google\Protobuf\Int64Value

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

↳ zone
string

The Google Cloud Platform zone where your Cloud SQL database instance is located.

↳ secondary_zone
string

Optional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

↳ source_id
string

The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID

↳ root_password
string

Input only. Initial root password.

↳ root_password_set
bool

Output only. Indicates If this connection profile root password is stored.

↳ collation
string

The Cloud SQL default instance level collation.

↳ cmek_key_name
string

The KMS key name used for the csql instance.

↳ availability_type
int

Optional. Availability type. Potential values: * ZONAL : The instance serves data from only one zone. Outages in that zone affect data availability. * REGIONAL : The instance can serve data from more than one zone in a region (it is highly available).

↳ edition
int

Optional. The edition of the given Cloud SQL instance.

getDatabaseVersion

The database engine type and version.

Returns
Type
Description
int

setDatabaseVersion

The database engine type and version.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getUserLabels

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs.

An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "18kg", "count": "3" } .

Returns
Type
Description

setUserLabels

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs.

An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "18kg", "count": "3" } .

Parameter
Name
Description
Returns
Type
Description
$this

getTier

The tier (or machine type) for this instance, for example: db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances).

For more information, see Cloud SQL Instance Settings .

Returns
Type
Description
string

setTier

The tier (or machine type) for this instance, for example: db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances).

For more information, see Cloud SQL Instance Settings .

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getStorageAutoResizeLimit

The maximum size to which storage capacity can be automatically increased.

The default value is 0, which specifies that there is no limit.

Returns
Type
Description

hasStorageAutoResizeLimit

clearStorageAutoResizeLimit

getStorageAutoResizeLimitValue

Returns the unboxed value from getStorageAutoResizeLimit()

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

Returns
Type
Description
int|string|null

setStorageAutoResizeLimit

The maximum size to which storage capacity can be automatically increased.

The default value is 0, which specifies that there is no limit.

Parameter
Name
Description
Returns
Type
Description
$this

setStorageAutoResizeLimitValue

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

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

Parameter
Name
Description
var
int|string|null
Returns
Type
Description
$this

getActivationPolicy

The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains so even in the absence of connection requests.

NEVER : The instance is off; it is not activated, even if a connection request arrives.

Returns
Type
Description
int

setActivationPolicy

The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains so even in the absence of connection requests.

NEVER : The instance is off; it is not activated, even if a connection request arrives.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getIpConfig

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance.

The IPv4 address cannot be disabled.

Returns
Type
Description

hasIpConfig

clearIpConfig

setIpConfig

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance.

The IPv4 address cannot be disabled.

Parameter
Name
Description
Returns
Type
Description
$this

getAutoStorageIncrease

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

Returns
Type
Description

hasAutoStorageIncrease

clearAutoStorageIncrease

getAutoStorageIncreaseValue

Returns the unboxed value from getAutoStorageIncrease()

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

Returns
Type
Description
bool|null

setAutoStorageIncrease

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

Parameter
Name
Description
Returns
Type
Description
$this

setAutoStorageIncreaseValue

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

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

Parameter
Name
Description
var
bool|null
Returns
Type
Description
$this

getDatabaseFlags

The database flags passed to the Cloud SQL instance at startup.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Returns
Type
Description

setDatabaseFlags

The database flags passed to the Cloud SQL instance at startup.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Parameter
Name
Description
Returns
Type
Description
$this

getDataDiskType

The type of storage: PD_SSD (default) or PD_HDD .

Returns
Type
Description
int

setDataDiskType

The type of storage: PD_SSD (default) or PD_HDD .

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getDataDiskSizeGb

The storage capacity available to the database, in GB.

The minimum (and default) size is 10GB.

Returns
Type
Description

hasDataDiskSizeGb

clearDataDiskSizeGb

getDataDiskSizeGbValue

Returns the unboxed value from getDataDiskSizeGb()

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

Returns
Type
Description
int|string|null

setDataDiskSizeGb

The storage capacity available to the database, in GB.

The minimum (and default) size is 10GB.

Parameter
Name
Description
Returns
Type
Description
$this

setDataDiskSizeGbValue

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

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

Parameter
Name
Description
var
int|string|null
Returns
Type
Description
$this

getZone

The Google Cloud Platform zone where your Cloud SQL database instance is located.

Returns
Type
Description
string

setZone

The Google Cloud Platform zone where your Cloud SQL database instance is located.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSecondaryZone

Optional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

Returns
Type
Description
string

setSecondaryZone

Optional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSourceId

The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID

Returns
Type
Description
string

setSourceId

The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getRootPassword

Input only. Initial root password.

Returns
Type
Description
string

setRootPassword

Input only. Initial root password.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getRootPasswordSet

Output only. Indicates If this connection profile root password is stored.

Returns
Type
Description
bool

setRootPasswordSet

Output only. Indicates If this connection profile root password is stored.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getCollation

The Cloud SQL default instance level collation.

Returns
Type
Description
string

setCollation

The Cloud SQL default instance level collation.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCmekKeyName

The KMS key name used for the csql instance.

Returns
Type
Description
string

setCmekKeyName

The KMS key name used for the csql instance.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getAvailabilityType

Optional. Availability type. Potential values:

  • ZONAL : The instance serves data from only one zone. Outages in that zone affect data availability.

  • REGIONAL : The instance can serve data from more than one zone in a region (it is highly available).

Returns
Type
Description
int

setAvailabilityType

Optional. Availability type. Potential values:

  • ZONAL : The instance serves data from only one zone. Outages in that zone affect data availability.

  • REGIONAL : The instance can serve data from more than one zone in a region (it is highly available).

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getEdition

Optional. The edition of the given Cloud SQL instance.

Returns
Type
Description
int

setEdition

Optional. The edition of the given Cloud SQL instance.

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: