updateDomainName method
Changes information about the DomainName resource.
May throw BadRequestException.
May throw ConflictException.
May throw LimitExceededException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter domainName :
The name of the DomainName resource to be changed.
Parameter domainNameId :
The identifier for the domain name resource. Supported only for private
custom domain names.
Parameter patchOperations :
For more information about supported patch operations, see Patch
Operations.
Implementation
Future<DomainName> updateDomainName({
required String domainName,
String? domainNameId,
List<PatchOperation>? patchOperations,
}) async {
final $query = <String, List<String>>{
if (domainNameId != null) 'domainNameId': [domainNameId],
};
final $payload = <String, dynamic>{
if (patchOperations != null) 'patchOperations': patchOperations,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/domainnames/${Uri.encodeComponent(domainName)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DomainName.fromJson(response);
}