pub struct CreateConsumerOverrideRequest {
pub parent: String,
pub override: Option<QuotaOverride>,
pub force: bool,
pub force_only: Vec<i32>,
}
Expand description
Request message for CreateConsumerOverride.
Fields§
§parent: String
The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.
An example name would be:
projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion
override: Option<QuotaOverride>
The override to create.
force: bool
Whether to force the creation of the quota override. Setting the force parameter to ‘true’ ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
force_only: Vec<i32>
The list of quota safety checks to ignore before the override mutation. Unlike ‘force’ field that ignores all the quota safety checks, the ‘force_only’ field ignores only the specified checks; other checks are still enforced. The ‘force’ and ‘force_only’ fields cannot both be set.
Implementations§
source§impl CreateConsumerOverrideRequest
impl CreateConsumerOverrideRequest
sourcepub fn force_only(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<QuotaSafetyCheck>>
pub fn force_only( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<QuotaSafetyCheck>>
Returns an iterator which yields the valid enum values contained in force_only
.
sourcepub fn push_force_only(&mut self, value: QuotaSafetyCheck)
pub fn push_force_only(&mut self, value: QuotaSafetyCheck)
Appends the provided enum value to force_only
.
Trait Implementations§
source§impl Clone for CreateConsumerOverrideRequest
impl Clone for CreateConsumerOverrideRequest
source§fn clone(&self) -> CreateConsumerOverrideRequest
fn clone(&self) -> CreateConsumerOverrideRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for CreateConsumerOverrideRequest
impl Message for CreateConsumerOverrideRequest
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 CreateConsumerOverrideRequest
impl PartialEq for CreateConsumerOverrideRequest
source§fn eq(&self, other: &CreateConsumerOverrideRequest) -> bool
fn eq(&self, other: &CreateConsumerOverrideRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateConsumerOverrideRequest
Auto Trait Implementations§
impl Freeze for CreateConsumerOverrideRequest
impl RefUnwindSafe for CreateConsumerOverrideRequest
impl Send for CreateConsumerOverrideRequest
impl Sync for CreateConsumerOverrideRequest
impl Unpin for CreateConsumerOverrideRequest
impl UnwindSafe for CreateConsumerOverrideRequest
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