batchGet method

Gets information about multiple users' links to an account or property.

Request parameters:

parent - Required. The account or property that all user links in the request are for. The parent of all provided values for the 'names' field must match this field. Example format: accounts/1234 Value must have pattern ^accounts/\[^/\]+$.

names - Required. The names of the user links to retrieve. A maximum of 1000 user links can be retrieved in a batch. Format: accounts/{accountId}/userLinks/{userLinkId}

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

Completes with a GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse.

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

  final _url =
      'v1alpha/' + core.Uri.encodeFull('$parent') + '/userLinks:batchGet';

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