getAuditLogsWithHttpInfo method

Future<Response> getAuditLogsWithHttpInfo(
  1. String tenantId, {
  2. double? limit,
  3. double? skip,
  4. SORTDIR? order,
  5. double? after,
  6. double? before,
})

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,
  );
}