Struct google_api_proto::google::cloud::sql::v1beta4::CloneContext
source · 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>,
pub preferred_secondary_zone: Option<String>,
}
Expand description
Database instance clone context.
Fields§
§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.
preferred_secondary_zone: Option<String>
Optional. Copy clone and point-in-time recovery clone of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field.
Implementations§
source§impl CloneContext
impl CloneContext
sourcepub fn preferred_zone(&self) -> &str
pub fn preferred_zone(&self) -> &str
Returns the value of preferred_zone
, or the default value if preferred_zone
is unset.
sourcepub fn preferred_secondary_zone(&self) -> &str
pub fn preferred_secondary_zone(&self) -> &str
Returns the value of preferred_secondary_zone
, or the default value if preferred_secondary_zone
is unset.
Trait Implementations§
source§impl Clone for CloneContext
impl Clone for CloneContext
source§fn clone(&self) -> CloneContext
fn clone(&self) -> CloneContext
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloneContext
impl Debug for CloneContext
source§impl Default for CloneContext
impl Default for CloneContext
source§impl Message for CloneContext
impl Message for CloneContext
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 CloneContext
impl PartialEq for CloneContext
source§fn eq(&self, other: &CloneContext) -> bool
fn eq(&self, other: &CloneContext) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloneContext
Auto Trait Implementations§
impl Freeze for CloneContext
impl RefUnwindSafe for CloneContext
impl Send for CloneContext
impl Sync for CloneContext
impl Unpin for CloneContext
impl UnwindSafe for CloneContext
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