Enum google_api_proto::google::cloud::compute::v1::managed_instance::InstanceStatus
source · #[repr(i32)]pub enum InstanceStatus {
UndefinedInstanceStatus = 0,
Deprovisioning = 428_935_662,
Provisioning = 290_896_621,
Repairing = 413_483_285,
Running = 121_282_975,
Staging = 431_072_283,
Stopped = 444_276_141,
Stopping = 350_791_796,
Suspended = 51_223_995,
Suspending = 514_206_246,
Terminated = 250_018_339,
}
Expand description
[Output Only] The status of the instance. This field is empty when the instance does not exist. Additional supported values which may be not listed in the enum directly due to technical reasons: STOPPING SUSPENDING
Variants§
UndefinedInstanceStatus = 0
A value indicating that the enum field is not set.
Deprovisioning = 428_935_662
The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.
Provisioning = 290_896_621
Resources are being allocated for the instance.
Repairing = 413_483_285
The instance is in repair.
Running = 121_282_975
The instance is running.
Staging = 431_072_283
All required resources have been allocated and the instance is being started.
Stopped = 444_276_141
The instance has stopped successfully.
Stopping = 350_791_796
Suspended = 51_223_995
The instance has suspended.
Suspending = 514_206_246
Terminated = 250_018_339
The instance has stopped (either by explicit action or underlying failure).
Implementations§
source§impl InstanceStatus
impl InstanceStatus
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for InstanceStatus
impl Clone for InstanceStatus
source§fn clone(&self) -> InstanceStatus
fn clone(&self) -> InstanceStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceStatus
impl Debug for InstanceStatus
source§impl Default for InstanceStatus
impl Default for InstanceStatus
source§fn default() -> InstanceStatus
fn default() -> InstanceStatus
source§impl From<InstanceStatus> for i32
impl From<InstanceStatus> for i32
source§fn from(value: InstanceStatus) -> i32
fn from(value: InstanceStatus) -> i32
source§impl Hash for InstanceStatus
impl Hash for InstanceStatus
source§impl Ord for InstanceStatus
impl Ord for InstanceStatus
source§fn cmp(&self, other: &InstanceStatus) -> Ordering
fn cmp(&self, other: &InstanceStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InstanceStatus
impl PartialEq for InstanceStatus
source§fn eq(&self, other: &InstanceStatus) -> bool
fn eq(&self, other: &InstanceStatus) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InstanceStatus
impl PartialOrd for InstanceStatus
source§fn partial_cmp(&self, other: &InstanceStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &InstanceStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for InstanceStatus
impl TryFrom<i32> for InstanceStatus
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<InstanceStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<InstanceStatus, UnknownEnumValue>
impl Copy for InstanceStatus
impl Eq for InstanceStatus
impl StructuralPartialEq for InstanceStatus
Auto Trait Implementations§
impl Freeze for InstanceStatus
impl RefUnwindSafe for InstanceStatus
impl Send for InstanceStatus
impl Sync for InstanceStatus
impl Unpin for InstanceStatus
impl UnwindSafe for InstanceStatus
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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