searchEntries method

Future<GoogleCloudDataplexV1SearchEntriesResponse> searchEntries(
  1. String name, {
  2. String? orderBy,
  3. int? pageSize,
  4. String? pageToken,
  5. String? query,
  6. String? scope,
  7. String? $fields,
})

Searches for entries matching given query and scope.

Request parameters:

name - Required. The project to which the request should be attributed in the following form: projects/{project}/locations/{location}. Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$.

orderBy - Optional. Ordering of the results. Supported options to be added later.

pageSize - Optional. Pagination.

pageToken - null

query - Required. The query against which entries in scope should be matched.

scope - Optional. The scope under which the search should be operating. Should either be organizations/ or projects/. If left unspecified, it will default to the organization where the project provided in name is located.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleCloudDataplexV1SearchEntriesResponse.

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<GoogleCloudDataplexV1SearchEntriesResponse> searchEntries(
  core.String name, {
  core.String? orderBy,
  core.int? pageSize,
  core.String? pageToken,
  core.String? query,
  core.String? scope,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (orderBy != null) 'orderBy': [orderBy],
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if (query != null) 'query': [query],
    if (scope != null) 'scope': [scope],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':searchEntries';

  final response_ = await _requester.request(
    url_,
    'POST',
    queryParams: queryParams_,
  );
  return GoogleCloudDataplexV1SearchEntriesResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}