getAuditLogsWithHttpInfo method
Performs an HTTP 'GET /api/v1/audit-logs' operation and returns the Response.
Parameters:
Implementation
Future<Response> getAuditLogsWithHttpInfo(String tenantId, { double? limit, double? skip, SORTDIR? order, double? after, double? before, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/audit-logs';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'tenantId', tenantId));
if (limit != null) {
queryParams.addAll(_queryParams('', 'limit', limit));
}
if (skip != null) {
queryParams.addAll(_queryParams('', 'skip', skip));
}
if (order != null) {
queryParams.addAll(_queryParams('', 'order', order));
}
if (after != null) {
queryParams.addAll(_queryParams('', 'after', after));
}
if (before != null) {
queryParams.addAll(_queryParams('', 'before', before));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}