list method
Lists DataScanJobs under the given DataScan.
Request parameters:
parent
- Required. The resource name of the parent environment:
projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where
project refers to a project_id or project_number and location_id refers to
a GCP region.
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/dataScans/\[^/\]+$
.
filter
- Optional. An expression for filtering the results of the
ListDataScanJobs request.If unspecified, all datascan jobs will be
returned. Multiple filters can be applied (with AND, OR logical
operators). Filters are case-sensitive.Allowed fields are: start_time
end_timestart_time and end_time expect RFC-3339 formatted strings (e.g.
2018-10-08T18:30:00-07:00).For instance, 'start_time >
2018-10-08T00:00:00.123456789Z AND end_time <
2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between
specified start and end times.
pageSize
- Optional. Maximum number of DataScanJobs to return. The
service may return fewer than this value. If unspecified, at most 10
DataScanJobs will be returned. The maximum value is 1000; values above
1000 will be coerced to 1000.
pageToken
- Optional. Page token received from a previous
ListDataScanJobs call. Provide this to retrieve the subsequent page. When
paginating, all other parameters provided to ListDataScanJobs must match
the call that provided the page token.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudDataplexV1ListDataScanJobsResponse.
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<GoogleCloudDataplexV1ListDataScanJobsResponse> list(
core.String parent, {
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_ = 'v1/' + core.Uri.encodeFull('$parent') + '/jobs';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudDataplexV1ListDataScanJobsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}