Struct google_api_proto::google::cloud::alloydb::v1::SupportedDatabaseFlag
source · pub struct SupportedDatabaseFlag {
pub name: String,
pub flag_name: String,
pub value_type: i32,
pub accepts_multiple_values: bool,
pub supported_db_versions: Vec<i32>,
pub requires_db_restart: bool,
pub restrictions: Option<Restrictions>,
}
Expand description
SupportedDatabaseFlag gives general information about a database flag, like type and allowed values. This is a static value that is defined on the server side, and it cannot be modified by callers. To set the Database flags on a particular Instance, a caller should modify the Instance.database_flags field.
Fields§
§name: String
The name of the flag resource, following Google Cloud conventions, e.g.:
- projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning.
flag_name: String
The name of the database flag, e.g. “max_allowed_packets”. The is a possibly key for the Instance.database_flags map field.
value_type: i32
§accepts_multiple_values: bool
Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
supported_db_versions: Vec<i32>
Major database engine versions for which this flag is supported.
requires_db_restart: bool
Whether setting or updating this flag on an Instance requires a database restart. If a flag that requires database restart is set, the backend will automatically restart the database (making sure to satisfy any availability SLO’s).
restrictions: Option<Restrictions>
The restrictions on the flag value per type.
Implementations§
source§impl SupportedDatabaseFlag
impl SupportedDatabaseFlag
sourcepub fn value_type(&self) -> ValueType
pub fn value_type(&self) -> ValueType
Returns the enum value of value_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_value_type(&mut self, value: ValueType)
pub fn set_value_type(&mut self, value: ValueType)
Sets value_type
to the provided enum value.
sourcepub fn supported_db_versions(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DatabaseVersion>>
pub fn supported_db_versions( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DatabaseVersion>>
Returns an iterator which yields the valid enum values contained in supported_db_versions
.
sourcepub fn push_supported_db_versions(&mut self, value: DatabaseVersion)
pub fn push_supported_db_versions(&mut self, value: DatabaseVersion)
Appends the provided enum value to supported_db_versions
.
Trait Implementations§
source§impl Clone for SupportedDatabaseFlag
impl Clone for SupportedDatabaseFlag
source§fn clone(&self) -> SupportedDatabaseFlag
fn clone(&self) -> SupportedDatabaseFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SupportedDatabaseFlag
impl Debug for SupportedDatabaseFlag
source§impl Default for SupportedDatabaseFlag
impl Default for SupportedDatabaseFlag
source§impl Message for SupportedDatabaseFlag
impl Message for SupportedDatabaseFlag
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 SupportedDatabaseFlag
impl PartialEq for SupportedDatabaseFlag
source§fn eq(&self, other: &SupportedDatabaseFlag) -> bool
fn eq(&self, other: &SupportedDatabaseFlag) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SupportedDatabaseFlag
Auto Trait Implementations§
impl Freeze for SupportedDatabaseFlag
impl RefUnwindSafe for SupportedDatabaseFlag
impl Send for SupportedDatabaseFlag
impl Sync for SupportedDatabaseFlag
impl Unpin for SupportedDatabaseFlag
impl UnwindSafe for SupportedDatabaseFlag
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