#[non_exhaustive]pub struct CloneContext {
pub kind: String,
pub pitr_timestamp_ms: i64,
pub destination_instance_name: String,
pub bin_log_coordinates: Option<BinLogCoordinates>,
pub point_in_time: Option<Timestamp>,
pub allocated_ip_range: String,
pub database_names: Vec<String>,
pub preferred_zone: Option<String>,
/* private fields */
}
Expand description
Database instance clone context.
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.kind: String
This is always sql#cloneContext
.
pitr_timestamp_ms: i64
Reserved for future use.
destination_instance_name: String
Name of the Cloud SQL instance to be created as a clone.
bin_log_coordinates: Option<BinLogCoordinates>
Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
point_in_time: Option<Timestamp>
Timestamp, if specified, identifies the time to which the source instance is cloned.
allocated_ip_range: String
The name of the allocated ip range for the private ip Cloud SQL instance. For example: “google-managed-services-default”. If set, the cloned instance ip will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.
database_names: Vec<String>
(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.
preferred_zone: Option<String>
Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance. This field applies to all DB types.
Implementations§
Source§impl CloneContext
impl CloneContext
pub fn new() -> Self
Sourcepub fn set_pitr_timestamp_ms<T: Into<i64>>(self, v: T) -> Self
pub fn set_pitr_timestamp_ms<T: Into<i64>>(self, v: T) -> Self
Sets the value of pitr_timestamp_ms.
Sourcepub fn set_destination_instance_name<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_instance_name<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_instance_name.
Sourcepub fn set_bin_log_coordinates<T>(self, v: T) -> Selfwhere
T: Into<BinLogCoordinates>,
pub fn set_bin_log_coordinates<T>(self, v: T) -> Selfwhere
T: Into<BinLogCoordinates>,
Sets the value of bin_log_coordinates.
Sourcepub fn set_or_clear_bin_log_coordinates<T>(self, v: Option<T>) -> Selfwhere
T: Into<BinLogCoordinates>,
pub fn set_or_clear_bin_log_coordinates<T>(self, v: Option<T>) -> Selfwhere
T: Into<BinLogCoordinates>,
Sets or clears the value of bin_log_coordinates.
Sourcepub fn set_point_in_time<T>(self, v: T) -> Self
pub fn set_point_in_time<T>(self, v: T) -> Self
Sets the value of point_in_time.
Sourcepub fn set_or_clear_point_in_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_point_in_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of point_in_time.
Sourcepub fn set_allocated_ip_range<T: Into<String>>(self, v: T) -> Self
pub fn set_allocated_ip_range<T: Into<String>>(self, v: T) -> Self
Sets the value of allocated_ip_range.
Sourcepub fn set_database_names<T, V>(self, v: T) -> Self
pub fn set_database_names<T, V>(self, v: T) -> Self
Sets the value of database_names.
Sourcepub fn set_preferred_zone<T>(self, v: T) -> Self
pub fn set_preferred_zone<T>(self, v: T) -> Self
Sets the value of preferred_zone.
Sourcepub fn set_or_clear_preferred_zone<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_preferred_zone<T>(self, v: Option<T>) -> Self
Sets or clears the value of preferred_zone.
Trait Implementations§
Source§impl Clone for CloneContext
impl Clone for CloneContext
Source§fn clone(&self) -> CloneContext
fn clone(&self) -> CloneContext
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more