#[non_exhaustive]pub enum Code {
Show 30 variants
CleanupFailed,
DeprecatedResourceUsed,
DeprecatedTypeUsed,
DiskSizeLargerThanImageSize,
ExperimentalTypeUsed,
ExternalApiWarning,
FieldValueOverriden,
InjectedKernelsDeprecated,
InvalidHealthCheckForDynamicWieghtedLb,
LargeDeploymentWarning,
ListOverheadQuotaExceed,
MissingTypeDependency,
NextHopAddressNotAssigned,
NextHopCannotIpForward,
NextHopInstanceHasNoIpv6Interface,
NextHopInstanceNotFound,
NextHopInstanceNotOnNetwork,
NextHopNotRunning,
NotCriticalError,
NoResultsOnPage,
PartialSuccess,
QuotaInfoUnavailable,
RequiredTosAgreement,
ResourceInUseByOtherResourceWarning,
ResourceNotDeleted,
SchemaValidationIgnored,
SingleInstancePropertyTemplate,
UndeclaredProperties,
Unreachable,
UnknownValue(UnknownValue),
}snapshots only.Expand description
The enumerated type for the code field.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CleanupFailed
Warning about failed cleanup of transient changes made by a failed operation.
DeprecatedResourceUsed
A link to a deprecated resource was created.
DeprecatedTypeUsed
When deploying and at least one of the resources has a type marked as deprecated
DiskSizeLargerThanImageSize
The user created a boot disk that is larger than image size.
ExperimentalTypeUsed
When deploying and at least one of the resources has a type marked as experimental
ExternalApiWarning
Warning that is present in an external api call
FieldValueOverriden
Warning that value of a field has been overridden. Deprecated unused field.
InjectedKernelsDeprecated
The operation involved use of an injected kernel, which is deprecated.
InvalidHealthCheckForDynamicWieghtedLb
A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.
LargeDeploymentWarning
When deploying a deployment with a exceedingly large number of resources
ListOverheadQuotaExceed
Resource can’t be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.
MissingTypeDependency
A resource depends on a missing type
NextHopAddressNotAssigned
The route’s nextHopIp address is not assigned to an instance on the network.
NextHopCannotIpForward
The route’s next hop instance cannot ip forward.
NextHopInstanceHasNoIpv6Interface
The route’s nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.
NextHopInstanceNotFound
The route’s nextHopInstance URL refers to an instance that does not exist.
NextHopInstanceNotOnNetwork
The route’s nextHopInstance URL refers to an instance that is not on the same network as the route.
NextHopNotRunning
The route’s next hop instance does not have a status of RUNNING.
NotCriticalError
Error which is not critical. We decided to continue the process despite the mentioned error.
NoResultsOnPage
No results are present on a particular list page.
PartialSuccess
Success is reported, but some results may be missing due to errors
Quota information is not available to client requests (e.g: regions.list).
RequiredTosAgreement
The user attempted to use a resource that requires a TOS they have not accepted.
ResourceInUseByOtherResourceWarning
Warning that a resource is in use.
ResourceNotDeleted
One or more of the resources set to auto-delete could not be deleted because they were in use.
SchemaValidationIgnored
When a resource schema validation is ignored.
SingleInstancePropertyTemplate
Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.
UndeclaredProperties
When undeclared properties in the schema are present
Unreachable
A given scope cannot be reached.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using Code::value or Code::name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Code
impl<'de> Deserialize<'de> for Code
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.