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

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

setServiceName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this