retrieveGoogleDomainsDnsRecords method

Future<RetrieveGoogleDomainsDnsRecordsResponse> retrieveGoogleDomainsDnsRecords(
  1. String registration, {
  2. int? pageSize,
  3. String? pageToken,
  4. String? $fields,
})

Lists the DNS records from the Google Domains DNS zone for domains that use the deprecated google_domains_dns in the Registration's dns_settings.

Request parameters:

registration - Required. The name of the Registration whose Google Domains DNS records details you are retrieving, in the format `projects /

  • /locations / * /registrations / * . Value must have pattern ^projects/[^/]+/locations/[^/]+/registrations/[^/]+$`.

pageSize - Optional. Maximum number of results to return.

pageToken - Optional. When set to the next_page_token from a prior response, provides the next page of results.

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

Completes with a RetrieveGoogleDomainsDnsRecordsResponse.

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<RetrieveGoogleDomainsDnsRecordsResponse>
    retrieveGoogleDomainsDnsRecords(
  core.String registration, {
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if ($fields != null) 'fields': [$fields],
  };

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

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