listProcessesWithHttpInfo method

Future<Response> listProcessesWithHttpInfo(
  1. String account, {
  2. Object? page,
  3. int? limit,
  4. String? machine,
  5. String? license,
  6. String? user,
  7. String? product,
})

List all processes

Returns a list of processes. The processes are returned sorted by creation date, with the most recent processes appearing first. Resources are automatically scoped to the authenticated bearer e.g. when authenticated as a user, only processes for that specific user will be listed.

Note: This method returns the HTTP Response.

Parameters:

  • String account (required): The identifier (UUID) or slug of your Keygen account.

  • Object page: Object containing page size and page number.

  • int limit:

  • String machine: The identifier (UUID) of the machine to filter by.

  • String license: The identifier (UUID) of the license to filter by.

  • String user: The identifier (UUID) of the user to filter by.

  • String product: The identifier (UUID) of the product to filter by.

Implementation

Future<Response> listProcessesWithHttpInfo(String account, { Object? page, int? limit, String? machine, String? license, String? user, String? product, }) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/processes'
    .replaceAll('{account}', account);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (machine != null) {
    queryParams.addAll(_queryParams('', 'machine', machine));
  }
  if (license != null) {
    queryParams.addAll(_queryParams('', 'license', license));
  }
  if (user != null) {
    queryParams.addAll(_queryParams('', 'user', user));
  }
  if (product != null) {
    queryParams.addAll(_queryParams('', 'product', product));
  }

  const contentTypes = <String>[];


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