pub struct ImportConsumerOverridesRequest {
pub parent: String,
pub force: bool,
pub force_only: Vec<i32>,
pub source: Option<Source>,
}
Expand description
Request message for ImportConsumerOverrides
Fields§
§parent: String
The resource name of the consumer.
An example name would be:
projects/123/services/compute.googleapis.com
force: bool
Whether to force the creation of the quota overrides. 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.
source: Option<Source>
Source of import data
Implementations§
source§impl ImportConsumerOverridesRequest
impl ImportConsumerOverridesRequest
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 ImportConsumerOverridesRequest
impl Clone for ImportConsumerOverridesRequest
source§fn clone(&self) -> ImportConsumerOverridesRequest
fn clone(&self) -> ImportConsumerOverridesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for ImportConsumerOverridesRequest
impl Message for ImportConsumerOverridesRequest
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 ImportConsumerOverridesRequest
impl PartialEq for ImportConsumerOverridesRequest
source§fn eq(&self, other: &ImportConsumerOverridesRequest) -> bool
fn eq(&self, other: &ImportConsumerOverridesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportConsumerOverridesRequest
Auto Trait Implementations§
impl Freeze for ImportConsumerOverridesRequest
impl RefUnwindSafe for ImportConsumerOverridesRequest
impl Send for ImportConsumerOverridesRequest
impl Sync for ImportConsumerOverridesRequest
impl Unpin for ImportConsumerOverridesRequest
impl UnwindSafe for ImportConsumerOverridesRequest
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