# Class DisableServiceRequest (1.17.0)

1.17.0 (latest) 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.1 1.10.5 1.9.0 1.7.2 1.6.1 1.5.0 1.4.3 1.3.2 1.2.1 1.1.0 1.0.1 0.2.2 0.1.0

    DisableServiceRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for the `DisableService` method.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` 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` | `https://docs.cloud.google.com/python/docs/reference/serviceusage/latest/google.cloud.service_usage_v1.types.DisableServiceRequest.CheckIfServiceHasUsage` Defines the behavior for checking service usage when disabling a service. |

## Classes

### CheckIfServiceHasUsage

    CheckIfServiceHasUsage(value)

Enum to determine if service usage should be checked when
disabling a service.