Google Cloud Service Usage V1 Client - Class DisableServiceRequest (1.0.5)

Reference documentation and code samples for the Google Cloud Service Usage V1 Client class DisableServiceRequest.

Request message for the DisableService method.

Generated from protobuf message google.api.serviceusage.v1.DisableServiceRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ 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 int

Defines the behavior for checking service usage when disabling a service.

getName

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
TypeDescription
string

setName

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisableDependentServices

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
TypeDescription
bool

setDisableDependentServices

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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCheckIfServiceHasUsage

Defines the behavior for checking service usage when disabling a service.

Returns
TypeDescription
int

setCheckIfServiceHasUsage

Defines the behavior for checking service usage when disabling a service.

Parameter
NameDescription
var int
Returns
TypeDescription
$this