pub struct DeleteConsumerOverrideRequest {
pub name: String,
pub force: bool,
pub force_only: Vec<i32>,
}
Expand description
Request message for DeleteConsumerOverride.
Fields§
§name: String
The resource name of the override to delete.
An example name would be:
projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d
force: bool
Whether to force the deletion 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 DeleteConsumerOverrideRequest
impl DeleteConsumerOverrideRequest
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 DeleteConsumerOverrideRequest
impl Clone for DeleteConsumerOverrideRequest
source§fn clone(&self) -> DeleteConsumerOverrideRequest
fn clone(&self) -> DeleteConsumerOverrideRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for DeleteConsumerOverrideRequest
impl Message for DeleteConsumerOverrideRequest
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 DeleteConsumerOverrideRequest
impl PartialEq for DeleteConsumerOverrideRequest
source§fn eq(&self, other: &DeleteConsumerOverrideRequest) -> bool
fn eq(&self, other: &DeleteConsumerOverrideRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeleteConsumerOverrideRequest
Auto Trait Implementations§
impl Freeze for DeleteConsumerOverrideRequest
impl RefUnwindSafe for DeleteConsumerOverrideRequest
impl Send for DeleteConsumerOverrideRequest
impl Sync for DeleteConsumerOverrideRequest
impl Unpin for DeleteConsumerOverrideRequest
impl UnwindSafe for DeleteConsumerOverrideRequest
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