createApplication method
Create application.
May throw ConflictException.
May throw ServiceQuotaExceededException.
May throw UninitializedAccountException.
Parameter name :
Application name.
Parameter accountID :
Account ID.
Parameter description :
Application description.
Parameter tags :
Application tags.
Implementation
Future<Application> createApplication({
required String name,
String? accountID,
String? description,
Map<String, String>? tags,
}) async {
final $payload = <String, dynamic>{
'name': name,
if (accountID != null) 'accountID': accountID,
if (description != null) 'description': description,
if (tags != null) 'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/CreateApplication',
exceptionFnMap: _exceptionFns,
);
return Application.fromJson(response);
}