Struct googapis::google::cloud::clouddms::v1::CloudSqlSettings[][src]

pub struct CloudSqlSettings {
Show 15 fields pub database_version: i32, pub user_labels: HashMap<String, String>, pub tier: String, pub storage_auto_resize_limit: Option<i64>, pub activation_policy: i32, pub ip_config: Option<SqlIpConfig>, pub auto_storage_increase: Option<bool>, pub database_flags: HashMap<String, String>, pub data_disk_type: i32, pub data_disk_size_gb: Option<i64>, pub zone: String, pub source_id: String, pub root_password: String, pub root_password_set: bool, pub collation: String,
}
Expand description

Settings for creating a Cloud SQL database instance.

Fields

database_version: i32

The database engine type and version.

user_labels: HashMap<String, String>

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: Option<i64>

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: i32

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: Option<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: Option<bool>

[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: HashMap<String, String>

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: i32

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

data_disk_size_gb: Option<i64>

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 datdabse instance is located.

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.

Implementations

Returns the enum value of database_version, or the default if the field is set to an invalid enum value.

Sets database_version to the provided enum value.

Returns the enum value of activation_policy, or the default if the field is set to an invalid enum value.

Sets activation_policy to the provided enum value.

Returns the enum value of data_disk_type, or the default if the field is set to an invalid enum value.

Sets data_disk_type to the provided enum value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more