Struct google_api_proto::google::api::serviceusage::v1beta1::QuotaOverride
source · pub struct QuotaOverride {
pub name: String,
pub override_value: i64,
pub dimensions: BTreeMap<String, String>,
pub metric: String,
pub unit: String,
pub admin_override_ancestor: String,
}
Expand description
A quota override
Fields§
§name: String
The resource name of the override. This name is generated by the server when the override is created.
Example names would be:
projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d
projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d
The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
override_value: i64
The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).
dimensions: BTreeMap<String, String>
If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit.
For example, an override on a limit with the unit 1/{project}/{region}
could contain an entry with the key region
and the value us-east-1
;
the override is only applied to quota consumed in that region.
This map has the following restrictions:
- Keys that are not defined in the limit’s unit are not valid keys.
Any string appearing in
{brackets}
in the unit (besides{project}
or{user}
) is a defined key. project
is not a valid key; the project is already specified in the parent resource name.user
is not a valid key; the API does not support quota overrides that apply only to a specific user.- If
region
appears as a key, its value must be a valid Cloud region. - If
zone
appears as a key, its value must be a valid Cloud zone. - If any valid key other than
region
orzone
appears in the map, then all valid keys other thanregion
orzone
must also appear in the map.
metric: String
The name of the metric to which this override applies.
An example name would be:
compute.googleapis.com/cpus
unit: String
The limit unit of the limit to which this override applies.
An example unit would be:
1/{project}/{region}
Note that {project}
and {region}
are not placeholders in this example;
the literal characters {
and }
occur in the string.
admin_override_ancestor: String
The resource name of the ancestor that requested the override. For example:
organizations/12345
or folders/67890
.
Used by admin overrides only.
Trait Implementations§
source§impl Clone for QuotaOverride
impl Clone for QuotaOverride
source§fn clone(&self) -> QuotaOverride
fn clone(&self) -> QuotaOverride
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QuotaOverride
impl Debug for QuotaOverride
source§impl Default for QuotaOverride
impl Default for QuotaOverride
source§impl Message for QuotaOverride
impl Message for QuotaOverride
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 QuotaOverride
impl PartialEq for QuotaOverride
source§fn eq(&self, other: &QuotaOverride) -> bool
fn eq(&self, other: &QuotaOverride) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QuotaOverride
Auto Trait Implementations§
impl Freeze for QuotaOverride
impl RefUnwindSafe for QuotaOverride
impl Send for QuotaOverride
impl Sync for QuotaOverride
impl Unpin for QuotaOverride
impl UnwindSafe for QuotaOverride
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