Struct google_api_proto::google::api::cloudquotas::v1::QuotaInfo
source · pub struct QuotaInfo {Show 16 fields
pub name: String,
pub quota_id: String,
pub metric: String,
pub service: String,
pub is_precise: bool,
pub refresh_interval: String,
pub container_type: i32,
pub dimensions: Vec<String>,
pub metric_display_name: String,
pub quota_display_name: String,
pub metric_unit: String,
pub quota_increase_eligibility: Option<QuotaIncreaseEligibility>,
pub is_fixed: bool,
pub dimensions_infos: Vec<DimensionsInfo>,
pub is_concurrent: bool,
pub service_request_quota_uri: String,
}
Expand description
QuotaInfo represents information about a particular quota for a given project, folder or organization.
Fields§
§name: String
Resource name of this QuotaInfo.
The ID component following “locations/” must be “global”.
Example:
projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion
quota_id: String
The id of the quota, which is unquie within the service.
Example: CpusPerProjectPerRegion
metric: String
The metric of the quota. It specifies the resources consumption the quota
is defined for.
Example: compute.googleapis.com/cpus
service: String
The name of the service in which the quota is defined.
Example: compute.googleapis.com
is_precise: bool
Whether this is a precise quota. A precise quota is tracked with absolute precision. In contrast, an imprecise quota is not tracked with precision.
refresh_interval: String
The reset time interval for the quota. Refresh interval applies to rate quota only. Example: “minute” for per minute, “day” for per day, or “10 seconds” for every 10 seconds.
container_type: i32
The container type of the QuotaInfo.
dimensions: Vec<String>
The dimensions the quota is defined on.
metric_display_name: String
The display name of the quota metric
quota_display_name: String
The display name of the quota.
metric_unit: String
The unit in which the metric value is reported, e.g., “MByte”.
quota_increase_eligibility: Option<QuotaIncreaseEligibility>
Whether it is eligible to request a higher quota value for this quota.
is_fixed: bool
Whether the quota value is fixed or adjustable
dimensions_infos: Vec<DimensionsInfo>
The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.
is_concurrent: bool
Whether the quota is a concurrent quota. Concurrent quotas are enforced on the total number of concurrent operations in flight at any given time.
service_request_quota_uri: String
URI to the page where users can request more quota for the cloud service—for example, https://console.cloud.google.com/iam-admin/quotas.
Implementations§
source§impl QuotaInfo
impl QuotaInfo
sourcepub fn container_type(&self) -> ContainerType
pub fn container_type(&self) -> ContainerType
Returns the enum value of container_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_container_type(&mut self, value: ContainerType)
pub fn set_container_type(&mut self, value: ContainerType)
Sets container_type
to the provided enum value.
Trait Implementations§
source§impl Message for QuotaInfo
impl Message for QuotaInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for QuotaInfo
impl PartialEq for QuotaInfo
impl StructuralPartialEq for QuotaInfo
Auto Trait Implementations§
impl Freeze for QuotaInfo
impl RefUnwindSafe for QuotaInfo
impl Send for QuotaInfo
impl Sync for QuotaInfo
impl Unpin for QuotaInfo
impl UnwindSafe for QuotaInfo
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<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