list method
Returns a list of active callbacks that belong to the execution with the given name.
The returned callbacks are ordered by callback ID.
Request parameters:
parent
- Required. Name of the execution for which the callbacks should
be listed. Format:
projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/workflows/\[^/\]+/executions/\[^/\]+$
.
pageSize
- Maximum number of callbacks to return per call. The default
value is 100 and is also the maximum value.
pageToken
- A page token, received from a previous ListCallbacks
call.
Provide this to retrieve the subsequent page. Note that pagination is
applied to dynamic data. The list of callbacks returned can change between
page requests if callbacks are created or deleted.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListCallbacksResponse.
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<ListCallbacksResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/callbacks';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListCallbacksResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}