pub struct Code(/* private fields */);Expand description
Error codes related to project config validations are deprecated since the quota controller methods do not perform these validations. Instead services have to call the Check method, without quota_properties field, to perform these validations before calling the quota controller methods. These methods check only for project deletion to be wipe out compliant.
Implementations§
Source§impl Code
impl Code
Sourcepub const UNSPECIFIED: Code
pub const UNSPECIFIED: Code
This is never used.
Sourcepub const RESOURCE_EXHAUSTED: Code
pub const RESOURCE_EXHAUSTED: Code
Quota allocation failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
Sourcepub const BILLING_NOT_ACTIVE: Code
pub const BILLING_NOT_ACTIVE: Code
Consumer cannot access the service because the service requires active billing.
Sourcepub const PROJECT_DELETED: Code
pub const PROJECT_DELETED: Code
Consumer’s project has been marked as deleted (soft deletion).
Sourcepub const API_KEY_INVALID: Code
pub const API_KEY_INVALID: Code
Specified API key is invalid.
Sourcepub const API_KEY_EXPIRED: Code
pub const API_KEY_EXPIRED: Code
Specified API Key has expired.
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.