Struct gapi_grpc::google::cloud::clouddms::v1::CloudSqlSettings [−][src]
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
impl CloudSqlSettings
[src]
pub fn database_version(&self) -> SqlDatabaseVersion
[src]
Returns the enum value of database_version
, or the default if the field is set to an invalid enum value.
pub fn set_database_version(&mut self, value: SqlDatabaseVersion)
[src]
Sets database_version
to the provided enum value.
pub fn activation_policy(&self) -> SqlActivationPolicy
[src]
Returns the enum value of activation_policy
, or the default if the field is set to an invalid enum value.
pub fn set_activation_policy(&mut self, value: SqlActivationPolicy)
[src]
Sets activation_policy
to the provided enum value.
pub fn data_disk_type(&self) -> SqlDataDiskType
[src]
Returns the enum value of data_disk_type
, or the default if the field is set to an invalid enum value.
pub fn set_data_disk_type(&mut self, value: SqlDataDiskType)
[src]
Sets data_disk_type
to the provided enum value.
Trait Implementations
impl Clone for CloudSqlSettings
[src]
fn clone(&self) -> CloudSqlSettings
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CloudSqlSettings
[src]
impl Default for CloudSqlSettings
[src]
fn default() -> CloudSqlSettings
[src]
impl Message for CloudSqlSettings
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<CloudSqlSettings> for CloudSqlSettings
[src]
fn eq(&self, other: &CloudSqlSettings) -> bool
[src]
fn ne(&self, other: &CloudSqlSettings) -> bool
[src]
impl StructuralPartialEq for CloudSqlSettings
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,