updateDomainName method

Future<DomainName> updateDomainName({
  1. required String domainName,
  2. List<PatchOperation>? patchOperations,
})

Changes information about the DomainName resource.

May throw UnauthorizedException. May throw NotFoundException. May throw BadRequestException. May throw ConflictException. May throw TooManyRequestsException.

Parameter domainName : Required The name of the DomainName resource to be changed.

Parameter patchOperations : A list of update operations to be applied to the specified resource and in the order specified in this list.

Implementation

Future<DomainName> updateDomainName({
  required String domainName,
  List<PatchOperation>? patchOperations,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  final $payload = <String, dynamic>{
    if (patchOperations != null) 'patchOperations': patchOperations,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri: '/domainnames/${Uri.encodeComponent(domainName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DomainName.fromJson(response);
}