deactivateMachineWithHttpInfo method

Future<Response> deactivateMachineWithHttpInfo(
  1. String account,
  2. String machine
)

Deactivate a machine

Permanently deletes, or deactivates, a machine. It cannot be undone. This will immediately delete all processes associated with the machine.

Note: This method returns the HTTP Response.

Parameters:

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

  • String machine (required): The identifier (UUID) or URL-safe fingerprint of the machine to be deleted.

Implementation

Future<Response> deactivateMachineWithHttpInfo(String account, String machine,) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/machines/{machine}'
    .replaceAll('{account}', account)
    .replaceAll('{machine}', machine);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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