list method
Lists the results of all the integration executions.
The response includes the same information as the execution log in the Integration UI.
Request parameters:
parent - Required. parent resource name of integration execution.
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/integrations/\[^/\]+$.
filter - Optional. Standard filter field, we support filtering on
following fields: integration_name: the name of the integration.
create_time: the execution created time. update_time: the execution last
update time. state: the state of the executions. execution_id: the id of
the execution. trigger_id: the id of the trigger. All fields support for
EQUALS, in additional: create_time and update_time support for LESS_THAN,
GREATER_THAN Also supports operators like AND, OR, NOT For example:
trigger_id="id1" AND integration_name="testIntegration"
pageSize - Optional. The size of entries in the response.
pageToken - Optional. The token returned in the previous response.
readMask - Optional. View mask for the response data. If set, only the
field specified will be returned as part of the result. If not set, all
fields in execution info will be filled and returned.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudIntegrationsV2ListExecutionsResponse.
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<GoogleCloudIntegrationsV2ListExecutionsResponse> list(
core.String parent, {
core.String? filter,
core.int? pageSize,
core.String? pageToken,
core.String? readMask,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'filter': ?filter == null ? null : [filter],
'pageSize': ?pageSize == null ? null : ['${pageSize}'],
'pageToken': ?pageToken == null ? null : [pageToken],
'readMask': ?readMask == null ? null : [readMask],
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v2/' + core.Uri.encodeFull('$parent') + '/executions';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudIntegrationsV2ListExecutionsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}