Google Cloud Service Usage V1 Client - Class BatchGetServicesRequest (1.2.3)

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

Request message for the BatchGetServices method.

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

Namespace

Google \ Cloud \ ServiceUsage \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Parent to retrieve services from. If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The BatchGetServices method currently only supports projects.

↳ names array

Names of the services to retrieve. An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

getParent

Parent to retrieve services from.

If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The BatchGetServices method currently only supports projects.

Returns
TypeDescription
string

setParent

Parent to retrieve services from.

If this is set, the parent of all of the services specified in names must match this field. An example name would be: projects/123 where 123 is the project number. The BatchGetServices method currently only supports projects.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNames

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNames

Names of the services to retrieve.

An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number. A single request can get a maximum of 30 services at a time.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this