Google Cloud Service Usage V1 Client - Class Service (1.1.1)

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

A service that is available for use by the consumer.

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

Namespace

Google \ Cloud \ ServiceUsage \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com

↳ parent string

The resource name of the consumer. A valid name would be: - projects/123

↳ config Google\Cloud\ServiceUsage\V1\ServiceConfig

The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the ListServices method. These fields are present only in responses to the GetService method.

↳ state int

Whether or not the service has been enabled for use by the consumer.

getName

The resource name of the consumer and service.

A valid name would be:

  • projects/123/services/serviceusage.googleapis.com
Returns
TypeDescription
string

setName

The resource name of the consumer and service.

A valid name would be:

  • projects/123/services/serviceusage.googleapis.com
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getParent

The resource name of the consumer.

A valid name would be:

  • projects/123
Returns
TypeDescription
string

setParent

The resource name of the consumer.

A valid name would be:

  • projects/123
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConfig

The service configuration of the available service.

Some fields may be filtered out of the configuration in responses to the ListServices method. These fields are present only in responses to the GetService method.

Returns
TypeDescription
Google\Cloud\ServiceUsage\V1\ServiceConfig|null

hasConfig

clearConfig

setConfig

The service configuration of the available service.

Some fields may be filtered out of the configuration in responses to the ListServices method. These fields are present only in responses to the GetService method.

Parameter
NameDescription
var Google\Cloud\ServiceUsage\V1\ServiceConfig
Returns
TypeDescription
$this

getState

Whether or not the service has been enabled for use by the consumer.

Returns
TypeDescription
int

setState

Whether or not the service has been enabled for use by the consumer.

Parameter
NameDescription
var int
Returns
TypeDescription
$this