list method
Lists operations that match the specified filter in the request.
Authorization requires the following
Google IAM permission: *
lifesciences.operations.list
Request parameters:
name
- The name of the operation's parent resource.
Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$
.
filter
- A string for filtering Operations. The following filter fields
are supported: * createTime: The time this job was created * events: The
set of event (names) that have occurred while running the pipeline. The :
operator can be used to determine if a particular event has occurred. *
error: If the pipeline is running, this value is NULL. Once the pipeline
finishes, the value is the standard Google error code. * labels.key or
labels."key with space" where key is a label key. * done: If the pipeline
is running, this value is false. Once the pipeline finishes, the value is
true.
pageSize
- The maximum number of results to return. The maximum value is
256.
pageToken
- The standard list page token.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListOperationsResponse.
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<ListOperationsResponse> list(
core.String name, {
core.String? filter,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final _queryParams = <core.String, core.List<core.String>>{
if (filter != null) 'filter': [filter],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final _url = 'v2beta/' + core.Uri.encodeFull('$name') + '/operations';
final _response = await _requester.request(
_url,
'GET',
queryParams: _queryParams,
);
return ListOperationsResponse.fromJson(
_response as core.Map<core.String, core.dynamic>);
}