Struct google_api_proto::google::cloud::compute::v1::ManagedInstance
source · pub struct ManagedInstance {
pub current_action: Option<String>,
pub id: Option<u64>,
pub instance: Option<String>,
pub instance_health: Vec<ManagedInstanceInstanceHealth>,
pub instance_status: Option<String>,
pub last_attempt: Option<ManagedInstanceLastAttempt>,
pub name: Option<String>,
pub preserved_state_from_config: Option<PreservedState>,
pub preserved_state_from_policy: Option<PreservedState>,
pub version: Option<ManagedInstanceVersion>,
}
Expand description
A Managed Instance resource.
Fields§
§current_action: Option<String>
[Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group’s targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.
id: Option<u64>
[Output only] The unique identifier for this resource. This field is empty when instance does not exist.
instance: Option<String>
[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
instance_health: Vec<ManagedInstanceInstanceHealth>
[Output Only] Health state of the instance per health-check.
instance_status: Option<String>
[Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.
last_attempt: Option<ManagedInstanceLastAttempt>
[Output Only] Information about the last attempt to create or delete the instance.
name: Option<String>
[Output Only] The name of the instance. The name always exists even if the instance has not yet been created.
preserved_state_from_config: Option<PreservedState>
[Output Only] Preserved state applied from per-instance config for this instance.
preserved_state_from_policy: Option<PreservedState>
[Output Only] Preserved state generated based on stateful policy for this instance.
version: Option<ManagedInstanceVersion>
[Output Only] Intended version of this instance.
Implementations§
source§impl ManagedInstance
impl ManagedInstance
sourcepub fn instance(&self) -> &str
pub fn instance(&self) -> &str
Returns the value of instance
, or the default value if instance
is unset.
sourcepub fn instance_status(&self) -> &str
pub fn instance_status(&self) -> &str
Returns the value of instance_status
, or the default value if instance_status
is unset.
sourcepub fn current_action(&self) -> &str
pub fn current_action(&self) -> &str
Returns the value of current_action
, or the default value if current_action
is unset.
Trait Implementations§
source§impl Clone for ManagedInstance
impl Clone for ManagedInstance
source§fn clone(&self) -> ManagedInstance
fn clone(&self) -> ManagedInstance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ManagedInstance
impl Debug for ManagedInstance
source§impl Default for ManagedInstance
impl Default for ManagedInstance
source§impl Message for ManagedInstance
impl Message for ManagedInstance
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 ManagedInstance
impl PartialEq for ManagedInstance
source§fn eq(&self, other: &ManagedInstance) -> bool
fn eq(&self, other: &ManagedInstance) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ManagedInstance
Auto Trait Implementations§
impl Freeze for ManagedInstance
impl RefUnwindSafe for ManagedInstance
impl Send for ManagedInstance
impl Sync for ManagedInstance
impl Unpin for ManagedInstance
impl UnwindSafe for ManagedInstance
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