updateRegistry method
Updates a registry.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw UnauthorizedException.
Parameter registryName :
The name of the registry.
Parameter description :
The description of the registry to update.
Implementation
Future<UpdateRegistryResponse> updateRegistry({
required String registryName,
String? description,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/v1/registries/name/${Uri.encodeComponent(registryName)}',
exceptionFnMap: _exceptionFns,
);
return UpdateRegistryResponse.fromJson(response);
}