list method
Lists entries within an entry group.
Request parameters:
parent
- Required. The resource name of the parent Entry Group:
projects/{project}/locations/{location}/entryGroups/{entry_group}.
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/entryGroups/\[^/\]+$
.
filter
- Optional. A filter on the entries to return. Filters are
case-sensitive. The request can be filtered by the following fields:
entry_type, entry_source.display_name. The comparison operators are =, !=,
<, >, <=, >= (strings are compared according to lexical order) The
logical operators AND, OR, NOT can be used in the filter. Wildcard "" can
be used, but for entry_type the full project id or number needs to be
provided. Example filter expressions:
"entry_source.display_name=AnExampleDisplayName"
"entry_type=projects/example-project/locations/global/entryTypes/example-entry_type"
"entry_type=projects/example-project/locations/us/entryTypes/a OR
entry_type=projects/another-project/locations / * " "NOT
entry_source.display_name=AnotherExampleDisplayName"
pageSize
- null
pageToken
- Optional. The pagination token returned by a previous
request.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudDataplexV1ListEntriesResponse.
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<GoogleCloudDataplexV1ListEntriesResponse> 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') + '/entries';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudDataplexV1ListEntriesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}