updateRootDomainUnitOwner method
Updates the owner of the root domain unit.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter currentOwner :
The current owner of the root domain unit.
Parameter domainIdentifier :
The ID of the domain where the root domain unit owner is to be updated.
Parameter newOwner :
The new owner of the root domain unit.
Parameter clientToken :
A unique, case-sensitive identifier to ensure idempotency of the request.
This field is automatically populated if not provided.
Implementation
Future<void> updateRootDomainUnitOwner({
required String currentOwner,
required String domainIdentifier,
required String newOwner,
String? clientToken,
}) async {
final $payload = <String, dynamic>{
'currentOwner': currentOwner,
'newOwner': newOwner,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/v2/domains/${Uri.encodeComponent(domainIdentifier)}/root-domain-unit-owner',
exceptionFnMap: _exceptionFns,
);
}