updateCoreNetwork method
Updates the description of a core network.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter coreNetworkId :
The ID of a core network.
Parameter description :
The description of the update.
Implementation
Future<UpdateCoreNetworkResponse> updateCoreNetwork({
required String coreNetworkId,
String? description,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/core-networks/${Uri.encodeComponent(coreNetworkId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateCoreNetworkResponse.fromJson(response);
}