# Service Usage V1 API - Class Google::Cloud::ServiceUsage::V1::DisableServiceRequest (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.7.0 0.6.2 0.5.0 0.4.0 0.3.1 0.2.1 0.1.4 Reference documentation and code samples for the Service Usage V1 API class Google::Cloud::ServiceUsage::V1::DisableServiceRequest.

Request message for the `DisableService` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #check_if_service_has_usage

    def check_if_service_has_usage() -> ::Google::Cloud::ServiceUsage::V1::DisableServiceRequest::CheckIfServiceHasUsage

**Returns**

- ([::Google::Cloud::ServiceUsage::V1::DisableServiceRequest::CheckIfServiceHasUsage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Cloud-ServiceUsage-V1-DisableServiceRequest-CheckIfServiceHasUsage)) --- Defines the behavior for checking service usage when disabling a service.

### #check_if_service_has_usage=

    def check_if_service_has_usage=(value) -> ::Google::Cloud::ServiceUsage::V1::DisableServiceRequest::CheckIfServiceHasUsage

**Parameter**

- **value** ([::Google::Cloud::ServiceUsage::V1::DisableServiceRequest::CheckIfServiceHasUsage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Cloud-ServiceUsage-V1-DisableServiceRequest-CheckIfServiceHasUsage)) --- Defines the behavior for checking service usage when disabling a service.
**Returns**

- ([::Google::Cloud::ServiceUsage::V1::DisableServiceRequest::CheckIfServiceHasUsage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Cloud-ServiceUsage-V1-DisableServiceRequest-CheckIfServiceHasUsage)) --- Defines the behavior for checking service usage when disabling a service.

### #disable_dependent_services

    def disable_dependent_services() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #disable_dependent_services=

    def disable_dependent_services=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.
**Returns**

- (::Boolean) --- 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.

### #name

    def name() -> ::String

**Returns**

- (::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.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.