Google Cloud Service Usage V1 Client - Class EnableServiceRequest (1.3.4)

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

Request message for the EnableService method.

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

Namespace

Google \ Cloud \ ServiceUsage \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Name of the consumer and service to enable the service on. The EnableService and DisableService methods currently only support projects. Enabling a service requires that the service is public or is shared with the user enabling the service. An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number.

getName

Name of the consumer and service to enable the service on.

The EnableService and DisableService methods currently only support projects. Enabling a service requires that the service is public or is shared with the user enabling the service. An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number.

Returns
Type Description
string

setName

Name of the consumer and service to enable the service on.

The EnableService and DisableService methods currently only support projects. Enabling a service requires that the service is public or is shared with the user enabling the service. An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number.

Parameter
Name Description
var string
Returns
Type Description
$this