getAuditLogsWithHttpInfo method

Future<Response> getAuditLogsWithHttpInfo(
  1. String tenantId, [
  2. GetAuditLogsOptions? options
])

Performs an HTTP 'GET /api/v1/audit-logs' operation and returns the Response. Parameters:

Implementation

Future<Response> getAuditLogsWithHttpInfo(String tenantId, [ GetAuditLogsOptions? options ]) async {
  final limit = options?.limit;
  final skip = options?.skip;
  final order = options?.order;
  final after = options?.after;
  final before = options?.before;
  // 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,
  );
}