Struct google_api_proto::google::api::cloudquotas::v1::QuotaPreference
source · pub struct QuotaPreference {
pub name: String,
pub dimensions: BTreeMap<String, String>,
pub quota_config: Option<QuotaConfig>,
pub etag: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub service: String,
pub quota_id: String,
pub reconciling: bool,
pub justification: String,
pub contact_email: String,
}
Expand description
QuotaPreference represents the preferred quota configuration specified for a project, folder or organization. There is only one QuotaPreference resource for a quota value targeting a unique set of dimensions.
Fields§
§name: String
Required except in the CREATE requests.
The resource name of the quota preference.
The ID component following “locations/” must be “global”.
Example:
projects/123/locations/global/quotaPreferences/my-config-for-us-east1
dimensions: BTreeMap<String, String>
Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as “region”, “zone”, “network_id”, and the value of the map entry is the dimension value.
If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.
NOTE: QuotaPreferences can only be applied across all values of “user” and “resource” dimension. Do not set values for “user” or “resource” in the dimension map.
Example: {“provider”, “Foo Inc”} where “provider” is a service specific dimension.
quota_config: Option<QuotaConfig>
Required. Preferred quota configuration.
etag: String
Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server’s etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.
create_time: Option<Timestamp>
Output only. Create time stamp
update_time: Option<Timestamp>
Output only. Update time stamp
service: String
Required. The name of the service to which the quota preference is applied.
quota_id: String
Required. The id of the quota to which the quota preference is applied. A
quota name is unique in the service. Example: CpusPerProjectPerRegion
reconciling: bool
Output only. Is the quota preference pending Google Cloud approval and fulfillment.
justification: String
The reason / justification for this quota preference.
contact_email: String
Input only. An email address that can be used to contact the the user, in case Google Cloud needs more information to make a decision before additional quota can be granted.
When requesting a quota increase, the email address is required.
When requesting a quota decrease, the email address is optional.
For example, the email address is optional when the
QuotaConfig.preferred_value
is smaller than the
QuotaDetails.reset_value
.
Trait Implementations§
source§impl Clone for QuotaPreference
impl Clone for QuotaPreference
source§fn clone(&self) -> QuotaPreference
fn clone(&self) -> QuotaPreference
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QuotaPreference
impl Debug for QuotaPreference
source§impl Default for QuotaPreference
impl Default for QuotaPreference
source§impl Message for QuotaPreference
impl Message for QuotaPreference
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 QuotaPreference
impl PartialEq for QuotaPreference
source§fn eq(&self, other: &QuotaPreference) -> bool
fn eq(&self, other: &QuotaPreference) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QuotaPreference
Auto Trait Implementations§
impl Freeze for QuotaPreference
impl RefUnwindSafe for QuotaPreference
impl Send for QuotaPreference
impl Sync for QuotaPreference
impl Unpin for QuotaPreference
impl UnwindSafe for QuotaPreference
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