#[non_exhaustive]pub struct SqlInstancesVerifyExternalSyncSettingsRequest {
pub instance: String,
pub project: String,
pub verify_connection_only: bool,
pub sync_mode: ExternalSyncMode,
pub verify_replication_only: bool,
pub migration_type: MigrationType,
pub sync_parallel_level: ExternalSyncParallelLevel,
pub sync_config: Option<SyncConfig>,
/* private fields */
}
Expand description
Instance verify external sync settings 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
Project ID of the project that contains the instance.
verify_connection_only: bool
Flag to enable verifying connection only
sync_mode: ExternalSyncMode
External sync mode
verify_replication_only: bool
Optional. Flag to verify settings required by replication setup only
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_parallel_level: ExternalSyncParallelLevel
Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.
sync_config: Option<SyncConfig>
Implementations§
Source§impl SqlInstancesVerifyExternalSyncSettingsRequest
impl SqlInstancesVerifyExternalSyncSettingsRequest
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_verify_connection_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_verify_connection_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of verify_connection_only.
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_verify_replication_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_verify_replication_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of verify_replication_only.
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_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_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 SqlInstancesVerifyExternalSyncSettingsRequest
impl Clone for SqlInstancesVerifyExternalSyncSettingsRequest
Source§fn clone(&self) -> SqlInstancesVerifyExternalSyncSettingsRequest
fn clone(&self) -> SqlInstancesVerifyExternalSyncSettingsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for SqlInstancesVerifyExternalSyncSettingsRequest
impl Default for SqlInstancesVerifyExternalSyncSettingsRequest
Source§fn default() -> SqlInstancesVerifyExternalSyncSettingsRequest
fn default() -> SqlInstancesVerifyExternalSyncSettingsRequest
Source§impl PartialEq for SqlInstancesVerifyExternalSyncSettingsRequest
impl PartialEq for SqlInstancesVerifyExternalSyncSettingsRequest
Source§fn eq(&self, other: &SqlInstancesVerifyExternalSyncSettingsRequest) -> bool
fn eq(&self, other: &SqlInstancesVerifyExternalSyncSettingsRequest) -> bool
self
and other
values to be equal, and is used by ==
.