Enum google_api_proto::google::cloud::run::v2::condition::RevisionReason
source · #[repr(i32)]pub enum RevisionReason {
Show 13 variants
Undefined = 0,
Pending = 1,
Reserve = 2,
Retired = 3,
Retiring = 4,
Recreating = 5,
HealthCheckContainerError = 6,
CustomizedPathResponsePending = 7,
MinInstancesNotProvisioned = 8,
ActiveRevisionLimitReached = 9,
NoDeployment = 10,
HealthCheckSkipped = 11,
MinInstancesWarming = 12,
}
Expand description
Reasons specific to Revision resource.
Variants§
Undefined = 0
Default value.
Pending = 1
Revision in Pending state.
Reserve = 2
Revision is in Reserve state.
Retired = 3
Revision is Retired.
Retiring = 4
Revision is being retired.
Recreating = 5
Revision is being recreated.
HealthCheckContainerError = 6
There was a health check error.
CustomizedPathResponsePending = 7
Health check failed due to user error from customized path of the container. System will retry.
MinInstancesNotProvisioned = 8
A revision with min_instance_count > 0 was created and is reserved, but it was not configured to serve traffic, so it’s not live. This can also happen momentarily during traffic migration.
ActiveRevisionLimitReached = 9
The maximum allowed number of active revisions has been reached.
NoDeployment = 10
There was no deployment defined. This value is no longer used, but Services created in older versions of the API might contain this value.
HealthCheckSkipped = 11
A revision’s container has no port specified since the revision is of a manually scaled service with 0 instance count
MinInstancesWarming = 12
A revision with min_instance_count > 0 was created and is waiting for enough instances to begin a traffic migration.
Implementations§
source§impl RevisionReason
impl RevisionReason
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 RevisionReason
impl Clone for RevisionReason
source§fn clone(&self) -> RevisionReason
fn clone(&self) -> RevisionReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RevisionReason
impl Debug for RevisionReason
source§impl Default for RevisionReason
impl Default for RevisionReason
source§fn default() -> RevisionReason
fn default() -> RevisionReason
source§impl From<RevisionReason> for i32
impl From<RevisionReason> for i32
source§fn from(value: RevisionReason) -> i32
fn from(value: RevisionReason) -> i32
source§impl Hash for RevisionReason
impl Hash for RevisionReason
source§impl Ord for RevisionReason
impl Ord for RevisionReason
source§fn cmp(&self, other: &RevisionReason) -> Ordering
fn cmp(&self, other: &RevisionReason) -> 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 RevisionReason
impl PartialEq for RevisionReason
source§fn eq(&self, other: &RevisionReason) -> bool
fn eq(&self, other: &RevisionReason) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RevisionReason
impl PartialOrd for RevisionReason
source§fn partial_cmp(&self, other: &RevisionReason) -> Option<Ordering>
fn partial_cmp(&self, other: &RevisionReason) -> 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 RevisionReason
impl TryFrom<i32> for RevisionReason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<RevisionReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<RevisionReason, UnknownEnumValue>
impl Copy for RevisionReason
impl Eq for RevisionReason
impl StructuralPartialEq for RevisionReason
Auto Trait Implementations§
impl Freeze for RevisionReason
impl RefUnwindSafe for RevisionReason
impl Send for RevisionReason
impl Sync for RevisionReason
impl Unpin for RevisionReason
impl UnwindSafe for RevisionReason
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