updateDomainName method
Updates a domain name.
May throw BadRequestException.
May throw ConflictException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter domainName :
The domain name.
Parameter domainNameConfigurations :
The domain name configurations.
Parameter mutualTlsAuthentication :
The mutual TLS authentication configuration for a custom domain name.
Parameter routingMode :
The routing mode.
Implementation
Future<UpdateDomainNameResponse> updateDomainName({
required String domainName,
List<DomainNameConfiguration>? domainNameConfigurations,
MutualTlsAuthenticationInput? mutualTlsAuthentication,
RoutingMode? routingMode,
}) async {
final $payload = <String, dynamic>{
if (domainNameConfigurations != null)
'domainNameConfigurations': domainNameConfigurations,
if (mutualTlsAuthentication != null)
'mutualTlsAuthentication': mutualTlsAuthentication,
if (routingMode != null) 'routingMode': routingMode.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/v2/domainnames/${Uri.encodeComponent(domainName)}',
exceptionFnMap: _exceptionFns,
);
return UpdateDomainNameResponse.fromJson(response);
}