updateApplication method
Updates an application.
May throw BadRequestException.
May throw InternalServerException.
May throw ResourceNotFoundException.
Parameter applicationId :
The application ID.
Parameter description :
A description of the application.
Parameter name :
The name of the application.
Implementation
Future<Application> updateApplication({
required String applicationId,
String? description,
String? name,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/applications/${Uri.encodeComponent(applicationId)}',
exceptionFnMap: _exceptionFns,
);
return Application.fromJson(response);
}