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 \ V1Methods
__construct
Constructor.
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
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
string
setName
The resource name of the consumer and service.
A valid name would be:
- projects/123/services/serviceusage.googleapis.com
var
string
$this
getParent
The resource name of the consumer.
A valid name would be:
- projects/123
string
setParent
The resource name of the consumer.
A valid name would be:
- projects/123
var
string
$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.
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.
$this
getState
Whether or not the service has been enabled for use by the consumer.
int
setState
Whether or not the service has been enabled for use by the consumer.
var
int
$this