Struct google_api_proto::google::cloud::alloydb::v1beta::BatchCreateInstanceStatus
source · pub struct BatchCreateInstanceStatus {
pub state: i32,
pub error_msg: String,
pub error: Option<Status>,
pub type: i32,
}
Expand description
Message for current status of an instance in the BatchCreateInstances operation. For example, lets say a BatchCreateInstances workflow has 4 instances, Instance1 through Instance4. Lets also assume that 2 instances succeeded but the third failed to create and the 4th was never picked up for creation because of failure of the previous one. Then, resulting states would look something like:
- Instance1 = ROLLED_BACK
- Instance2 = ROLLED_BACK
- Instance3 = FAILED
- Instance4 = FAILED
However, while the operation is running, the instance might be in other states including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states / do not get further updated once the operation is done.
Fields§
§state: i32
The current state of an instance involved in the batch create operation. Once the operation is complete, the final state of the instances in the LRO can be one of:
- ACTIVE, indicating that instances were created successfully
- FAILED, indicating that a particular instance failed creation
- ROLLED_BACK indicating that although the instance was created successfully, it had to be rolled back and deleted due to failure in other steps of the workflow.
error_msg: String
DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
error: Option<Status>
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
type: i32
Implementations§
source§impl BatchCreateInstanceStatus
impl BatchCreateInstanceStatus
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 type(&self) -> InstanceType
pub fn type(&self) -> InstanceType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: InstanceType)
pub fn set_type(&mut self, value: InstanceType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for BatchCreateInstanceStatus
impl Clone for BatchCreateInstanceStatus
source§fn clone(&self) -> BatchCreateInstanceStatus
fn clone(&self) -> BatchCreateInstanceStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatchCreateInstanceStatus
impl Debug for BatchCreateInstanceStatus
source§impl Default for BatchCreateInstanceStatus
impl Default for BatchCreateInstanceStatus
source§impl Message for BatchCreateInstanceStatus
impl Message for BatchCreateInstanceStatus
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 BatchCreateInstanceStatus
impl PartialEq for BatchCreateInstanceStatus
source§fn eq(&self, other: &BatchCreateInstanceStatus) -> bool
fn eq(&self, other: &BatchCreateInstanceStatus) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BatchCreateInstanceStatus
Auto Trait Implementations§
impl Freeze for BatchCreateInstanceStatus
impl RefUnwindSafe for BatchCreateInstanceStatus
impl Send for BatchCreateInstanceStatus
impl Sync for BatchCreateInstanceStatus
impl Unpin for BatchCreateInstanceStatus
impl UnwindSafe for BatchCreateInstanceStatus
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