Struct googapis::google::cloud::compute::v1::ManagedInstance [−][src]
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 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.
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
Returns the value of instance
, or the default value if instance
is unset.
Returns the value of instance_status
, or the default value if instance_status
is unset.
Returns the value of current_action
, or the default value if current_action
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ManagedInstance
impl Send for ManagedInstance
impl Sync for ManagedInstance
impl Unpin for ManagedInstance
impl UnwindSafe for ManagedInstance
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more