pub struct Code(/* private fields */);Expand description
Error codes for Check responses.
Implementations§
Source§impl Code
impl Code
Sourcepub const ERROR_CODE_UNSPECIFIED: Code
pub const ERROR_CODE_UNSPECIFIED: Code
This is never used in CheckResponse.
Sourcepub const NOT_FOUND: Code
pub const NOT_FOUND: Code
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].
Sourcepub const PERMISSION_DENIED: Code
pub const PERMISSION_DENIED: Code
The consumer doesn’t have access to the specified resource. Same as [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
Sourcepub const RESOURCE_EXHAUSTED: Code
pub const RESOURCE_EXHAUSTED: Code
Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
Sourcepub const SERVICE_NOT_ACTIVATED: Code
pub const SERVICE_NOT_ACTIVATED: Code
The consumer hasn’t activated the service.
Sourcepub const BILLING_DISABLED: Code
pub const BILLING_DISABLED: Code
The consumer cannot access the service because billing is disabled.
Sourcepub const PROJECT_DELETED: Code
pub const PROJECT_DELETED: Code
The consumer’s project has been marked as deleted (soft deletion).
Sourcepub const PROJECT_INVALID: Code
pub const PROJECT_INVALID: Code
The consumer’s project number or id does not represent a valid project.
Sourcepub const CONSUMER_INVALID: Code
pub const CONSUMER_INVALID: Code
The input consumer info does not represent a valid consumer folder or organization.
Sourcepub const IP_ADDRESS_BLOCKED: Code
pub const IP_ADDRESS_BLOCKED: Code
The IP address of the consumer is invalid for the specific consumer project.
Sourcepub const REFERER_BLOCKED: Code
pub const REFERER_BLOCKED: Code
The referer address of the consumer request is invalid for the specific consumer project.
Sourcepub const CLIENT_APP_BLOCKED: Code
pub const CLIENT_APP_BLOCKED: Code
The client application of the consumer request is invalid for the specific consumer project.
Sourcepub const API_TARGET_BLOCKED: Code
pub const API_TARGET_BLOCKED: Code
The API targeted by this request is invalid for the specified consumer project.
Sourcepub const API_KEY_INVALID: Code
pub const API_KEY_INVALID: Code
The consumer’s API key is invalid.
Sourcepub const API_KEY_EXPIRED: Code
pub const API_KEY_EXPIRED: Code
The consumer’s API Key has expired.
Sourcepub const API_KEY_NOT_FOUND: Code
pub const API_KEY_NOT_FOUND: Code
The consumer’s API Key was not found in config record.
Sourcepub const INVALID_CREDENTIAL: Code
pub const INVALID_CREDENTIAL: Code
The credential in the request can not be verified.
Sourcepub const NAMESPACE_LOOKUP_UNAVAILABLE: Code
pub const NAMESPACE_LOOKUP_UNAVAILABLE: Code
The backend server for looking up project id/number is unavailable.
Sourcepub const SERVICE_STATUS_UNAVAILABLE: Code
pub const SERVICE_STATUS_UNAVAILABLE: Code
The backend server for checking service status is unavailable.
Sourcepub const BILLING_STATUS_UNAVAILABLE: Code
pub const BILLING_STATUS_UNAVAILABLE: Code
The backend server for checking billing status is unavailable.
Sourcepub const CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE: Code
pub const CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE: Code
Cloud Resource Manager backend server is unavailable.
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.