Google Cloud Build V1 Client - Class ListWorkerPoolsRequest (0.14.0)

Reference documentation and code samples for the Google Cloud Build V1 Client class ListWorkerPoolsRequest.

Request to list WorkerPools.

Generated from protobuf message google.devtools.cloudbuild.v1.ListWorkerPoolsRequest

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent of the collection of WorkerPools. Format: projects/{project}/locations/{location}.

↳ page_size int

The maximum number of WorkerPools to return. The service may return fewer than this value. If omitted, the server will use a sensible default.

↳ page_token string

A page token, received from a previous ListWorkerPools call. Provide this to retrieve the subsequent page.

getParent

Required. The parent of the collection of WorkerPools.

Format: projects/{project}/locations/{location}.

Returns
TypeDescription
string

setParent

Required. The parent of the collection of WorkerPools.

Format: projects/{project}/locations/{location}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

The maximum number of WorkerPools to return. The service may return fewer than this value. If omitted, the server will use a sensible default.

Returns
TypeDescription
int

setPageSize

The maximum number of WorkerPools to return. The service may return fewer than this value. If omitted, the server will use a sensible default.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

A page token, received from a previous ListWorkerPools call. Provide this to retrieve the subsequent page.

Returns
TypeDescription
string

setPageToken

A page token, received from a previous ListWorkerPools call. Provide this to retrieve the subsequent page.

Parameter
NameDescription
var string
Returns
TypeDescription
$this