listOrganizationAuditLogWithHttpInfo method

Future<Response> listOrganizationAuditLogWithHttpInfo(
  1. String org, {
  2. int? limit,
  3. String? cursor,
})

Read the organization audit log (admin / billing-admin only).

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> listOrganizationAuditLogWithHttpInfo(String org, { int? limit, String? cursor, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/organizations/{org}/audit-log'
    .replaceAll('{org}', org);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (cursor != null) {
    queryParams.addAll(_queryParams('', 'cursor', cursor));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}