Google Cloud Run V2 Client - Class ListTasksRequest (1.6.0)

Reference documentation and code samples for the Google Cloud Run V2 Client class ListTasksRequest.

Request message for retrieving a list of Tasks.

Generated from protobuf message google.cloud.run.v2.ListTasksRequest

Namespace

Google \ Cloud \ Run \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}

↳ page_sizeint

Maximum number of Tasks to return in this call.

↳ page_tokenstring

A page token received from a previous call to ListTasks. All other parameters must match.

↳ show_deletedbool

If true, returns deleted (but unexpired) resources along with active ones.

getParent

Required. The Execution from which the Tasks should be listed.

To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}

Returns
TypeDescription
string

setParent

Required. The Execution from which the Tasks should be listed.

To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPageSize

Maximum number of Tasks to return in this call.

Returns
TypeDescription
int

setPageSize

Maximum number of Tasks to return in this call.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getPageToken

A page token received from a previous call to ListTasks.

All other parameters must match.

Returns
TypeDescription
string

setPageToken

A page token received from a previous call to ListTasks.

All other parameters must match.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getShowDeleted

If true, returns deleted (but unexpired) resources along with active ones.

Returns
TypeDescription
bool

setShowDeleted

If true, returns deleted (but unexpired) resources along with active ones.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parentstring

Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution} Please see TasksClient::executionName() for help formatting this field.

Returns
TypeDescription
ListTasksRequest