list method
Lists Tasks from an Execution of a Job.
Request parameters:
parent
- 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}
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/jobs/\[^/\]+/executions/\[^/\]+$
.
pageSize
- Maximum number of Tasks to return in this call.
pageToken
- A page token received from a previous call to ListTasks. All
other parameters must match.
showDeleted
- If true, returns deleted (but unexpired) resources along
with active ones.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudRunV2ListTasksResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleCloudRunV2ListTasksResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.bool? showDeleted,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if (showDeleted != null) 'showDeleted': ['${showDeleted}'],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v2/' + core.Uri.encodeFull('$parent') + '/tasks';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudRunV2ListTasksResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}