Struct google_api_proto::google::cloud::clouddms::v1::CloudSqlSettings
source · pub struct CloudSqlSettings {Show 19 fields
pub database_version: i32,
pub user_labels: BTreeMap<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: BTreeMap<String, String>,
pub data_disk_type: i32,
pub data_disk_size_gb: Option<i64>,
pub zone: String,
pub secondary_zone: String,
pub source_id: String,
pub root_password: String,
pub root_password_set: bool,
pub collation: String,
pub cmek_key_name: String,
pub availability_type: i32,
pub edition: i32,
}
Expand description
Settings for creating a Cloud SQL database instance.
Fields§
§database_version: i32
The database engine type and version.
user_labels: BTreeMap<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: BTreeMap<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 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: i32
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: i32
Optional. The edition of the given Cloud SQL instance.
Implementations§
source§impl CloudSqlSettings
impl CloudSqlSettings
sourcepub fn database_version(&self) -> SqlDatabaseVersion
pub fn database_version(&self) -> SqlDatabaseVersion
Returns the enum value of database_version
, or the default if the field is set to an invalid enum value.
sourcepub fn set_database_version(&mut self, value: SqlDatabaseVersion)
pub fn set_database_version(&mut self, value: SqlDatabaseVersion)
Sets database_version
to the provided enum value.
sourcepub fn activation_policy(&self) -> SqlActivationPolicy
pub fn activation_policy(&self) -> SqlActivationPolicy
Returns the enum value of activation_policy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_activation_policy(&mut self, value: SqlActivationPolicy)
pub fn set_activation_policy(&mut self, value: SqlActivationPolicy)
Sets activation_policy
to the provided enum value.
sourcepub fn data_disk_type(&self) -> SqlDataDiskType
pub fn data_disk_type(&self) -> SqlDataDiskType
Returns the enum value of data_disk_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_data_disk_type(&mut self, value: SqlDataDiskType)
pub fn set_data_disk_type(&mut self, value: SqlDataDiskType)
Sets data_disk_type
to the provided enum value.
sourcepub fn availability_type(&self) -> SqlAvailabilityType
pub fn availability_type(&self) -> SqlAvailabilityType
Returns the enum value of availability_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_availability_type(&mut self, value: SqlAvailabilityType)
pub fn set_availability_type(&mut self, value: SqlAvailabilityType)
Sets availability_type
to the provided enum value.
sourcepub fn edition(&self) -> Edition
pub fn edition(&self) -> Edition
Returns the enum value of edition
, or the default if the field is set to an invalid enum value.
sourcepub fn set_edition(&mut self, value: Edition)
pub fn set_edition(&mut self, value: Edition)
Sets edition
to the provided enum value.
Trait Implementations§
source§impl Clone for CloudSqlSettings
impl Clone for CloudSqlSettings
source§fn clone(&self) -> CloudSqlSettings
fn clone(&self) -> CloudSqlSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloudSqlSettings
impl Debug for CloudSqlSettings
source§impl Default for CloudSqlSettings
impl Default for CloudSqlSettings
source§impl Message for CloudSqlSettings
impl Message for CloudSqlSettings
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CloudSqlSettings
impl PartialEq for CloudSqlSettings
source§fn eq(&self, other: &CloudSqlSettings) -> bool
fn eq(&self, other: &CloudSqlSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudSqlSettings
Auto Trait Implementations§
impl Freeze for CloudSqlSettings
impl RefUnwindSafe for CloudSqlSettings
impl Send for CloudSqlSettings
impl Sync for CloudSqlSettings
impl Unpin for CloudSqlSettings
impl UnwindSafe for CloudSqlSettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request