lookupEntryLinks method

Future<GoogleCloudDataplexV1LookupEntryLinksResponse> lookupEntryLinks(
  1. String name, {
  2. String? entry,
  3. List<String>? entryLinkTypes_1,
  4. String? entryMode,
  5. int? pageSize,
  6. String? pageToken,
  7. String? $fields,
})

Looks up Entry Links referencing the specified Entry.

Request parameters:

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

entry - Required. The resource name of the referred Entry. Format: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}. Entry Links which references this entry will be returned in the response.

entryLinkTypes_1 - Entry link types to filter the response by. If empty, all entry link types will be returned. At most 10 entry link types can be specified.

entryMode - Mode of entry reference. Possible string values are:

  • "ENTRY_MODE_UNSPECIFIED" : Unspecified entry mode. Returns both directional and non-directional entry links which references the entry.
  • "SOURCE" : Returns all directed entry links which references the entry as source.
  • "TARGET" : Return all directed entry links which references the entry as target.

pageSize - Maximum number of EntryLinks to return. The service may return fewer than this value. If unspecified, at most 10 EntryLinks will be returned. The maximum value is 10; values above 10 will be coerced to 10.

pageToken - Page token received from a previous LookupEntryLinks call. Provide this to retrieve the subsequent page. When paginating, all other parameters that are provided to the LookupEntryLinks request must match the call that provided the page token.

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

Completes with a GoogleCloudDataplexV1LookupEntryLinksResponse.

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<GoogleCloudDataplexV1LookupEntryLinksResponse> lookupEntryLinks(
  core.String name, {
  core.String? entry,
  core.List<core.String>? entryLinkTypes_1,
  core.String? entryMode,
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    'entry': ?entry == null ? null : [entry],
    'entryLinkTypes': ?entryLinkTypes_1,
    'entryMode': ?entryMode == null ? null : [entryMode],
    'pageSize': ?pageSize == null ? null : ['${pageSize}'],
    'pageToken': ?pageToken == null ? null : [pageToken],
    'fields': ?$fields == null ? null : [$fields],
  };

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

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