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 id, or the default value if id is unset.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

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

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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