getDomainName method

Future<DomainName> getDomainName({
  1. required String domainName,
})

Represents a domain name that is contained in a simpler, more intuitive URL that can be called.

May throw UnauthorizedException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.

Parameter domainName : Required The name of the DomainName resource.

Implementation

Future<DomainName> getDomainName({
  required String domainName,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/domainnames/${Uri.encodeComponent(domainName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DomainName.fromJson(response);
}