Struct gapi_grpc::google::api::serviceusage::v1::DisableServiceRequest[][src]

pub struct DisableServiceRequest {
    pub name: String,
    pub disable_dependent_services: bool,
    pub check_if_service_has_usage: i32,
}

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

impl DisableServiceRequest[src]

pub fn check_if_service_has_usage(&self) -> CheckIfServiceHasUsage[src]

Returns the enum value of check_if_service_has_usage, or the default if the field is set to an invalid enum value.

pub fn set_check_if_service_has_usage(&mut self, value: CheckIfServiceHasUsage)[src]

Sets check_if_service_has_usage to the provided enum value.

Trait Implementations

impl Clone for DisableServiceRequest[src]

impl Debug for DisableServiceRequest[src]

impl Default for DisableServiceRequest[src]

impl Message for DisableServiceRequest[src]

impl PartialEq<DisableServiceRequest> for DisableServiceRequest[src]

impl StructuralPartialEq for DisableServiceRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for DisableServiceRequest

impl Send for DisableServiceRequest

impl Sync for DisableServiceRequest

impl Unpin for DisableServiceRequest

impl UnwindSafe for DisableServiceRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]