Struct google_api_proto::google::api::serviceusage::v1beta1::UpdateAdminOverrideRequest
source · pub struct UpdateAdminOverrideRequest {
pub name: String,
pub override: Option<QuotaOverride>,
pub force: bool,
pub update_mask: Option<FieldMask>,
pub force_only: Vec<i32>,
}
Expand description
Request message for UpdateAdminOverride.
Fields§
§name: String
The resource name of the override to update.
An example name would be:
projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d
override: Option<QuotaOverride>
The new override. Only the override_value is updated; all other fields are ignored.
force: bool
Whether to force the update 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.
update_mask: Option<FieldMask>
Update only the specified fields of the override. If unset, all fields will be updated.
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 UpdateAdminOverrideRequest
impl UpdateAdminOverrideRequest
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 UpdateAdminOverrideRequest
impl Clone for UpdateAdminOverrideRequest
source§fn clone(&self) -> UpdateAdminOverrideRequest
fn clone(&self) -> UpdateAdminOverrideRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateAdminOverrideRequest
impl Debug for UpdateAdminOverrideRequest
source§impl Default for UpdateAdminOverrideRequest
impl Default for UpdateAdminOverrideRequest
source§impl Message for UpdateAdminOverrideRequest
impl Message for UpdateAdminOverrideRequest
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 UpdateAdminOverrideRequest
impl PartialEq for UpdateAdminOverrideRequest
source§fn eq(&self, other: &UpdateAdminOverrideRequest) -> bool
fn eq(&self, other: &UpdateAdminOverrideRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateAdminOverrideRequest
Auto Trait Implementations§
impl Freeze for UpdateAdminOverrideRequest
impl RefUnwindSafe for UpdateAdminOverrideRequest
impl Send for UpdateAdminOverrideRequest
impl Sync for UpdateAdminOverrideRequest
impl Unpin for UpdateAdminOverrideRequest
impl UnwindSafe for UpdateAdminOverrideRequest
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