Struct google_api_proto::google::api::serviceusage::v1beta1::CreateAdminOverrideRequest
source · pub struct CreateAdminOverrideRequest {
pub parent: String,
pub override: Option<QuotaOverride>,
pub force: bool,
pub force_only: Vec<i32>,
}
Expand description
Request message for CreateAdminOverride.
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 admin 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 CreateAdminOverrideRequest
impl CreateAdminOverrideRequest
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 CreateAdminOverrideRequest
impl Clone for CreateAdminOverrideRequest
source§fn clone(&self) -> CreateAdminOverrideRequest
fn clone(&self) -> CreateAdminOverrideRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateAdminOverrideRequest
impl Debug for CreateAdminOverrideRequest
source§impl Default for CreateAdminOverrideRequest
impl Default for CreateAdminOverrideRequest
source§impl Message for CreateAdminOverrideRequest
impl Message for CreateAdminOverrideRequest
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 CreateAdminOverrideRequest
impl PartialEq for CreateAdminOverrideRequest
source§fn eq(&self, other: &CreateAdminOverrideRequest) -> bool
fn eq(&self, other: &CreateAdminOverrideRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateAdminOverrideRequest
Auto Trait Implementations§
impl Freeze for CreateAdminOverrideRequest
impl RefUnwindSafe for CreateAdminOverrideRequest
impl Send for CreateAdminOverrideRequest
impl Sync for CreateAdminOverrideRequest
impl Unpin for CreateAdminOverrideRequest
impl UnwindSafe for CreateAdminOverrideRequest
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