Struct google_api_proto::google::cloud::netapp::v1::Replication
source · pub struct Replication {Show 14 fields
pub name: String,
pub state: i32,
pub state_details: String,
pub role: i32,
pub replication_schedule: i32,
pub mirror_state: i32,
pub healthy: Option<bool>,
pub create_time: Option<Timestamp>,
pub destination_volume: String,
pub transfer_stats: Option<TransferStats>,
pub labels: BTreeMap<String, String>,
pub description: Option<String>,
pub destination_volume_parameters: Option<DestinationVolumeParameters>,
pub source_volume: String,
}
Expand description
Replication is a nested resource under Volume, that describes a cross-region replication relationship between 2 volumes in different regions.
Fields§
§name: String
Identifier. The resource name of the Replication.
Format:
projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}
.
state: i32
Output only. State of the replication.
state_details: String
Output only. State details of the replication.
role: i32
Output only. Indicates whether this points to source or destination.
replication_schedule: i32
Required. Indicates the schedule for replication.
mirror_state: i32
Output only. Indicates the state of mirroring.
healthy: Option<bool>
Output only. Condition of the relationship. Can be one of the following:
- true: The replication relationship is healthy. It has not missed the most recent scheduled transfer.
- false: The replication relationship is not healthy. It has missed the most recent scheduled transfer.
create_time: Option<Timestamp>
Output only. Replication create time.
destination_volume: String
Output only. Full name of destination volume resource. Example : “projects/{project}/locations/{location}/volumes/{volume_id}”
transfer_stats: Option<TransferStats>
Output only. Replication transfer statistics.
labels: BTreeMap<String, String>
Resource labels to represent user provided metadata.
description: Option<String>
A description about this replication relationship.
destination_volume_parameters: Option<DestinationVolumeParameters>
Required. Input only. Destination volume parameters
source_volume: String
Output only. Full name of source volume resource. Example : “projects/{project}/locations/{location}/volumes/{volume_id}”
Implementations§
source§impl Replication
impl Replication
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn role(&self) -> ReplicationRole
pub fn role(&self) -> ReplicationRole
Returns the enum value of role
, or the default if the field is set to an invalid enum value.
sourcepub fn set_role(&mut self, value: ReplicationRole)
pub fn set_role(&mut self, value: ReplicationRole)
Sets role
to the provided enum value.
sourcepub fn replication_schedule(&self) -> ReplicationSchedule
pub fn replication_schedule(&self) -> ReplicationSchedule
Returns the enum value of replication_schedule
, or the default if the field is set to an invalid enum value.
sourcepub fn set_replication_schedule(&mut self, value: ReplicationSchedule)
pub fn set_replication_schedule(&mut self, value: ReplicationSchedule)
Sets replication_schedule
to the provided enum value.
sourcepub fn mirror_state(&self) -> MirrorState
pub fn mirror_state(&self) -> MirrorState
Returns the enum value of mirror_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_mirror_state(&mut self, value: MirrorState)
pub fn set_mirror_state(&mut self, value: MirrorState)
Sets mirror_state
to the provided enum value.
sourcepub fn healthy(&self) -> bool
pub fn healthy(&self) -> bool
Returns the value of healthy
, or the default value if healthy
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Trait Implementations§
source§impl Clone for Replication
impl Clone for Replication
source§fn clone(&self) -> Replication
fn clone(&self) -> Replication
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Replication
impl Debug for Replication
source§impl Default for Replication
impl Default for Replication
source§impl Message for Replication
impl Message for Replication
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 Replication
impl PartialEq for Replication
source§fn eq(&self, other: &Replication) -> bool
fn eq(&self, other: &Replication) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Replication
Auto Trait Implementations§
impl Freeze for Replication
impl RefUnwindSafe for Replication
impl Send for Replication
impl Sync for Replication
impl Unpin for Replication
impl UnwindSafe for Replication
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