retrieveGoogleDomainsForwardingConfig method

Future<RetrieveGoogleDomainsForwardingConfigResponse> retrieveGoogleDomainsForwardingConfig(
  1. String registration, {
  2. String? $fields,
})

Lists the deprecated domain and email forwarding configurations you set up in the deprecated Google Domains UI.

The configuration is present only for domains with the google_domains_redirects_data_available set to true in the Registration's dns_settings. A forwarding configuration might not work correctly if required DNS records are not present in the domain's authoritative DNS Zone.

Request parameters:

registration - Required. The name of the Registration whose Google Domains forwarding configuration details are being retrieved, in the format projects / * /locations / * /registrations / * . Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+/registrations/\[^/\]+$.

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

Completes with a RetrieveGoogleDomainsForwardingConfigResponse.

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

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

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