updateRegistry method
Updates a registry.
May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException.
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 {
ArgumentError.checkNotNull(registryName, 'registryName');
_s.validateStringLength(
'description',
description,
0,
256,
);
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);
}