pub struct SqlInstancesStartExternalSyncRequest {
pub instance: String,
pub project: String,
pub sync_mode: i32,
pub skip_verification: bool,
pub sync_parallel_level: i32,
pub migration_type: i32,
pub sync_config: Option<SyncConfig>,
}
Fields§
§instance: String
Cloud SQL instance ID. This does not include the project ID.
project: String
ID of the project that contains the instance.
sync_mode: i32
External sync mode.
skip_verification: bool
Whether to skip the verification step (VESS).
sync_parallel_level: i32
Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
migration_type: i32
Optional. MigrationType configures the migration to use physical files or
logical dump files. If not set, then the logical dump file configuration is
used. Valid values are LOGICAL
or PHYSICAL
. Only applicable to MySQL.
sync_config: Option<SyncConfig>
Implementations§
source§impl SqlInstancesStartExternalSyncRequest
impl SqlInstancesStartExternalSyncRequest
sourcepub fn sync_mode(&self) -> ExternalSyncMode
pub fn sync_mode(&self) -> ExternalSyncMode
Returns the enum value of sync_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_sync_mode(&mut self, value: ExternalSyncMode)
pub fn set_sync_mode(&mut self, value: ExternalSyncMode)
Sets sync_mode
to the provided enum value.
sourcepub fn sync_parallel_level(&self) -> ExternalSyncParallelLevel
pub fn sync_parallel_level(&self) -> ExternalSyncParallelLevel
Returns the enum value of sync_parallel_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_sync_parallel_level(&mut self, value: ExternalSyncParallelLevel)
pub fn set_sync_parallel_level(&mut self, value: ExternalSyncParallelLevel)
Sets sync_parallel_level
to the provided enum value.
sourcepub fn migration_type(&self) -> MigrationType
pub fn migration_type(&self) -> MigrationType
Returns the enum value of migration_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_migration_type(&mut self, value: MigrationType)
pub fn set_migration_type(&mut self, value: MigrationType)
Sets migration_type
to the provided enum value.
Trait Implementations§
source§impl Clone for SqlInstancesStartExternalSyncRequest
impl Clone for SqlInstancesStartExternalSyncRequest
source§fn clone(&self) -> SqlInstancesStartExternalSyncRequest
fn clone(&self) -> SqlInstancesStartExternalSyncRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for SqlInstancesStartExternalSyncRequest
impl Message for SqlInstancesStartExternalSyncRequest
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 SqlInstancesStartExternalSyncRequest
impl PartialEq for SqlInstancesStartExternalSyncRequest
source§fn eq(&self, other: &SqlInstancesStartExternalSyncRequest) -> bool
fn eq(&self, other: &SqlInstancesStartExternalSyncRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SqlInstancesStartExternalSyncRequest
Auto Trait Implementations§
impl Freeze for SqlInstancesStartExternalSyncRequest
impl RefUnwindSafe for SqlInstancesStartExternalSyncRequest
impl Send for SqlInstancesStartExternalSyncRequest
impl Sync for SqlInstancesStartExternalSyncRequest
impl Unpin for SqlInstancesStartExternalSyncRequest
impl UnwindSafe for SqlInstancesStartExternalSyncRequest
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