#[non_exhaustive]pub struct SqlInstancesStartExternalSyncRequest {
pub instance: String,
pub project: String,
pub sync_mode: ExternalSyncMode,
pub skip_verification: bool,
pub sync_parallel_level: ExternalSyncParallelLevel,
pub migration_type: MigrationType,
pub sync_config: Option<SyncConfig>,
/* private fields */
}
Expand description
Instance start external sync request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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: ExternalSyncMode
External sync mode.
skip_verification: bool
Whether to skip the verification step (VESS).
sync_parallel_level: ExternalSyncParallelLevel
Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
migration_type: MigrationType
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
pub fn new() -> Self
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sets the value of project.
Sourcepub fn set_sync_mode<T: Into<ExternalSyncMode>>(self, v: T) -> Self
pub fn set_sync_mode<T: Into<ExternalSyncMode>>(self, v: T) -> Self
Sets the value of sync_mode.
Sourcepub fn set_skip_verification<T: Into<bool>>(self, v: T) -> Self
pub fn set_skip_verification<T: Into<bool>>(self, v: T) -> Self
Sets the value of skip_verification.
Sourcepub fn set_sync_parallel_level<T: Into<ExternalSyncParallelLevel>>(
self,
v: T,
) -> Self
pub fn set_sync_parallel_level<T: Into<ExternalSyncParallelLevel>>( self, v: T, ) -> Self
Sets the value of sync_parallel_level.
Sourcepub fn set_migration_type<T: Into<MigrationType>>(self, v: T) -> Self
pub fn set_migration_type<T: Into<MigrationType>>(self, v: T) -> Self
Sets the value of migration_type.
Sourcepub fn set_sync_config<T: Into<Option<SyncConfig>>>(self, v: T) -> Self
pub fn set_sync_config<T: Into<Option<SyncConfig>>>(self, v: T) -> Self
Sets the value of sync_config.
Note that all the setters affecting sync_config
are mutually
exclusive.
Sourcepub fn mysql_sync_config(&self) -> Option<&Box<MySqlSyncConfig>>
pub fn mysql_sync_config(&self) -> Option<&Box<MySqlSyncConfig>>
The value of sync_config
if it holds a MysqlSyncConfig
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_mysql_sync_config<T: Into<Box<MySqlSyncConfig>>>(self, v: T) -> Self
pub fn set_mysql_sync_config<T: Into<Box<MySqlSyncConfig>>>(self, v: T) -> Self
Sets the value of sync_config
to hold a MysqlSyncConfig
.
Note that all the setters affecting sync_config
are
mutually exclusive.
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 Default for SqlInstancesStartExternalSyncRequest
impl Default for SqlInstancesStartExternalSyncRequest
Source§fn default() -> SqlInstancesStartExternalSyncRequest
fn default() -> SqlInstancesStartExternalSyncRequest
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 ==
.