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

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

Request message for EnableService method.

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

Namespace

Google \ Cloud \ ServiceManagement \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ service_name string

Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.

↳ consumer_id string

Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms: - "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.

getServiceName

Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.

Returns
Type Description
string

setServiceName

Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.

Parameter
Name Description
var string
Returns
Type Description
$this

getConsumerId

Required. The identity of consumer resource which service enablement will be applied to.

The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.
Returns
Type Description
string

setConsumerId

Required. The identity of consumer resource which service enablement will be applied to.

The Google Service Management implementation accepts the following forms:

  • "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.
Parameter
Name Description
var string
Returns
Type Description
$this