pub struct CloudSqlSettings {Show 20 fields
pub activation_policy: Option<String>,
pub auto_storage_increase: Option<bool>,
pub availability_type: Option<String>,
pub cmek_key_name: Option<String>,
pub collation: Option<String>,
pub data_cache_config: Option<DataCacheConfig>,
pub data_disk_size_gb: Option<i64>,
pub data_disk_type: Option<String>,
pub database_flags: Option<HashMap<String, String>>,
pub database_version: Option<String>,
pub edition: Option<String>,
pub ip_config: Option<SqlIpConfig>,
pub root_password: Option<String>,
pub root_password_set: Option<bool>,
pub secondary_zone: Option<String>,
pub source_id: Option<String>,
pub storage_auto_resize_limit: Option<i64>,
pub tier: Option<String>,
pub user_labels: Option<HashMap<String, String>>,
pub zone: Option<String>,
}
Expand description
Settings for creating a Cloud SQL database instance.
This type is not used in any activity, and only used as part of another schema.
Fields§
§activation_policy: Option<String>
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.
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.
availability_type: Option<String>
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).
cmek_key_name: Option<String>
The KMS key name used for the csql instance.
collation: Option<String>
The Cloud SQL default instance level collation.
data_cache_config: Option<DataCacheConfig>
Optional. Data cache is an optional feature available for Cloud SQL for MySQL Enterprise Plus edition only. For more information on data cache, see Data cache overview in Cloud SQL documentation.
data_disk_size_gb: Option<i64>
The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.
data_disk_type: Option<String>
The type of storage: PD_SSD
(default) or PD_HDD
.
database_flags: Option<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” }.
database_version: Option<String>
The database engine type and version.
edition: Option<String>
Optional. The edition of the given Cloud SQL instance.
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.
root_password: Option<String>
Input only. Initial root password.
root_password_set: Option<bool>
Output only. Indicates If this connection profile root password is stored.
secondary_zone: Option<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: Option<String>
The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID
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.
tier: Option<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.
user_labels: Option<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" }
.
zone: Option<String>
The Google Cloud Platform zone where your Cloud SQL database instance is located.
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§fn default() -> CloudSqlSettings
fn default() -> CloudSqlSettings
Source§impl<'de> Deserialize<'de> for CloudSqlSettings
impl<'de> Deserialize<'de> for CloudSqlSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for CloudSqlSettings
impl Serialize for CloudSqlSettings
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more