Struct google_api_proto::google::api::serviceusage::v1::DisableServiceRequest
source · pub struct DisableServiceRequest {
pub name: String,
pub disable_dependent_services: bool,
pub check_if_service_has_usage: i32,
}
Expand description
Request message for the DisableService
method.
Fields§
§name: String
Name of the consumer and service to disable the service on.
The enable and disable methods currently only support projects.
An example name would be:
projects/123/services/serviceusage.googleapis.com
where 123
is the
project number.
disable_dependent_services: bool
Indicates if services that are enabled and which depend on this service should also be disabled. If not set, an error will be generated if any enabled services depend on the service to be disabled. When set, the service, and any enabled services that depend on it, will be disabled together.
check_if_service_has_usage: i32
Defines the behavior for checking service usage when disabling a service.
Implementations§
source§impl DisableServiceRequest
impl DisableServiceRequest
sourcepub fn check_if_service_has_usage(&self) -> CheckIfServiceHasUsage
pub fn check_if_service_has_usage(&self) -> CheckIfServiceHasUsage
Returns the enum value of check_if_service_has_usage
, or the default if the field is set to an invalid enum value.
sourcepub fn set_check_if_service_has_usage(&mut self, value: CheckIfServiceHasUsage)
pub fn set_check_if_service_has_usage(&mut self, value: CheckIfServiceHasUsage)
Sets check_if_service_has_usage
to the provided enum value.
Trait Implementations§
source§impl Clone for DisableServiceRequest
impl Clone for DisableServiceRequest
source§fn clone(&self) -> DisableServiceRequest
fn clone(&self) -> DisableServiceRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DisableServiceRequest
impl Debug for DisableServiceRequest
source§impl Default for DisableServiceRequest
impl Default for DisableServiceRequest
source§impl Message for DisableServiceRequest
impl Message for DisableServiceRequest
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 DisableServiceRequest
impl PartialEq for DisableServiceRequest
source§fn eq(&self, other: &DisableServiceRequest) -> bool
fn eq(&self, other: &DisableServiceRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DisableServiceRequest
Auto Trait Implementations§
impl Freeze for DisableServiceRequest
impl RefUnwindSafe for DisableServiceRequest
impl Send for DisableServiceRequest
impl Sync for DisableServiceRequest
impl Unpin for DisableServiceRequest
impl UnwindSafe for DisableServiceRequest
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