Enum google_api_proto::google::api::servicecontrol::v1::check_error::Code
source · #[repr(i32)]pub enum Code {
Show 21 variants
ErrorCodeUnspecified = 0,
NotFound = 5,
PermissionDenied = 7,
ResourceExhausted = 8,
ServiceNotActivated = 104,
BillingDisabled = 107,
ProjectDeleted = 108,
ProjectInvalid = 114,
ConsumerInvalid = 125,
IpAddressBlocked = 109,
RefererBlocked = 110,
ClientAppBlocked = 111,
ApiTargetBlocked = 122,
ApiKeyInvalid = 105,
ApiKeyExpired = 112,
ApiKeyNotFound = 113,
InvalidCredential = 123,
NamespaceLookupUnavailable = 300,
ServiceStatusUnavailable = 301,
BillingStatusUnavailable = 302,
CloudResourceManagerBackendUnavailable = 305,
}
Expand description
Error codes for Check responses.
Variants§
ErrorCodeUnspecified = 0
This is never used in CheckResponse
.
NotFound = 5
The consumer’s project id, network container, or resource container was not found. Same as [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND].
PermissionDenied = 7
The consumer doesn’t have access to the specified resource. Same as [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
ResourceExhausted = 8
Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
ServiceNotActivated = 104
The consumer hasn’t activated the service.
BillingDisabled = 107
The consumer cannot access the service because billing is disabled.
ProjectDeleted = 108
The consumer’s project has been marked as deleted (soft deletion).
ProjectInvalid = 114
The consumer’s project number or id does not represent a valid project.
ConsumerInvalid = 125
The input consumer info does not represent a valid consumer folder or organization.
IpAddressBlocked = 109
The IP address of the consumer is invalid for the specific consumer project.
RefererBlocked = 110
The referer address of the consumer request is invalid for the specific consumer project.
ClientAppBlocked = 111
The client application of the consumer request is invalid for the specific consumer project.
ApiTargetBlocked = 122
The API targeted by this request is invalid for the specified consumer project.
ApiKeyInvalid = 105
The consumer’s API key is invalid.
ApiKeyExpired = 112
The consumer’s API Key has expired.
ApiKeyNotFound = 113
The consumer’s API Key was not found in config record.
InvalidCredential = 123
The credential in the request can not be verified.
The backend server for looking up project id/number is unavailable.
The backend server for checking service status is unavailable.
The backend server for checking billing status is unavailable.
Cloud Resource Manager backend server is unavailable.
Implementations§
source§impl Code
impl Code
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 Ord for Code
impl Ord for Code
source§impl PartialEq for Code
impl PartialEq for Code
source§impl PartialOrd for Code
impl PartialOrd for Code
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 Code
impl TryFrom<i32> for Code
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Code
impl Eq for Code
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
§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