Struct gapi_grpc::google::cloud::sql::v1beta4::Settings [−][src]
Database instance settings.
Fields
settings_version: Option<i64>
The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
tier: String
The tier (or machine type) for this instance, for example db-custom-1-3840.
kind: String
This is always sql#settings.
user_labels: HashMap<String, String>
User-provided labels, represented as a dictionary where each label is a single key value pair.
availability_type: i32
Availability type. Potential values:
ZONAL: The instance serves data from only one zone.
Outages in that zone affect data accessibility.
REGIONAL: The instance can serve data from more than one zone
in a region
(it is highly available).
For more information, see
Overview of the High Availability Configuration.
pricing_plan: i32
The pricing plan for this instance. This can be either PER_USE or PACKAGE. Only PER_USE is supported for Second Generation instances.
replication_type: i32
The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS. (Deprecated_ This property was only applicable to First Generation instances.
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_configuration: Option<IpConfiguration>
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 for Second Generation instances.
storage_auto_resize: Option<bool>
Configuration to increase storage size automatically. The default value is true.
location_preference: Option<LocationPreference>
The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances.
database_flags: Vec<DatabaseFlags>
The database flags passed to the instance at startup.
data_disk_type: i32
The type of data disk: PD_SSD (default) or PD_HDD. Not used for First Generation instances.
maintenance_window: Option<MaintenanceWindow>
The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
backup_configuration: Option<BackupConfiguration>
The daily backup configuration for the instance.
database_replication_enabled: Option<bool>
Configuration specific to read replica instances. Indicates whether replication is enabled or not.
crash_safe_replication_enabled: Option<bool>
Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
data_disk_size_gb: Option<i64>
The size of data disk, in GB. The data disk size minimum is 10GB.
active_directory_config: Option<SqlActiveDirectoryConfig>
Active Directory configuration, relevant only for Cloud SQL for SQL Server.
collation: String
The name of server Instance collation.
deny_maintenance_periods: Vec<DenyMaintenancePeriod>
Deny maintenance periods
insights_config: Option<InsightsConfig>
Insights configuration, for now relevant only for Postgres.
Implementations
impl Settings
[src]
pub fn availability_type(&self) -> SqlAvailabilityType
[src]
Returns the enum value of availability_type
, or the default if the field is set to an invalid enum value.
pub fn set_availability_type(&mut self, value: SqlAvailabilityType)
[src]
Sets availability_type
to the provided enum value.
pub fn pricing_plan(&self) -> SqlPricingPlan
[src]
Returns the enum value of pricing_plan
, or the default if the field is set to an invalid enum value.
pub fn set_pricing_plan(&mut self, value: SqlPricingPlan)
[src]
Sets pricing_plan
to the provided enum value.
pub fn replication_type(&self) -> SqlReplicationType
[src]
Returns the enum value of replication_type
, or the default if the field is set to an invalid enum value.
pub fn set_replication_type(&mut self, value: SqlReplicationType)
[src]
Sets replication_type
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 Settings
[src]
impl Debug for Settings
[src]
impl Default for Settings
[src]
impl Message for Settings
[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<Settings> for Settings
[src]
impl StructuralPartialEq for Settings
[src]
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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>,