updateDomainName method

Future<UpdateDomainNameResponse> updateDomainName({
  1. required String domainName,
  2. String? description,
})

Updates a custom DomainName object.

May throw AccessDeniedException. May throw BadRequestException. May throw ConcurrentModificationException. May throw InternalFailureException. May throw NotFoundException.

Parameter domainName : The domain name.

Parameter description : A description of the DomainName.

Implementation

Future<UpdateDomainNameResponse> updateDomainName({
  required String domainName,
  String? description,
}) async {
  final $payload = <String, dynamic>{
    if (description != null) 'description': description,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v1/domainnames/${Uri.encodeComponent(domainName)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateDomainNameResponse.fromJson(response);
}