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
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
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
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
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
impl RefUnwindSafe for CloudSqlSettings
impl Send for CloudSqlSettings
impl Sync for CloudSqlSettings
impl Unpin for CloudSqlSettings
impl UnwindSafe for CloudSqlSettings
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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