lookup method

Future<GoogleCloudDatacatalogV1beta1Entry> lookup({
  1. String? linkedResource,
  2. String? sqlResource,
  3. String? $fields,
})

Get an entry by target resource name.

This method allows clients to use the resource name from the source Google Cloud Platform service to get the Data Catalog Entry.

Request parameters:

linkedResource - The full name of the Google Cloud Platform resource the Data Catalog entry represents. See: https://cloud.google.com/apis/design/resource_names#full_resource_name. Full names are case-sensitive. Examples: * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId

  • //pubsub.googleapis.com/projects/projectId/topics/topicId

sqlResource - The SQL name of the entry. SQL names are case-sensitive. Examples: * pubsub.project_id.topic_id * pubsub.project_id.`topic.id.with.dots` * bigquery.table.project_id.dataset_id.table_id * bigquery.dataset.project_id.dataset_id * datacatalog.entry.project_id.location_id.entry_group_id.entry_id *_ids shoud satisfy the standard SQL rules for identifiers. https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.

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

Completes with a GoogleCloudDatacatalogV1beta1Entry.

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<GoogleCloudDatacatalogV1beta1Entry> lookup({
  core.String? linkedResource,
  core.String? sqlResource,
  core.String? $fields,
}) async {
  final _queryParams = <core.String, core.List<core.String>>{
    if (linkedResource != null) 'linkedResource': [linkedResource],
    if (sqlResource != null) 'sqlResource': [sqlResource],
    if ($fields != null) 'fields': [$fields],
  };

  const _url = 'v1beta1/entries:lookup';

  final _response = await _requester.request(
    _url,
    'GET',
    queryParams: _queryParams,
  );
  return GoogleCloudDatacatalogV1beta1Entry.fromJson(
      _response as core.Map<core.String, core.dynamic>);
}