spawnProcessWithHttpInfo method
Future<Response>
spawnProcessWithHttpInfo(
- String account,
- SpawnProcessRequest spawnProcessRequest
Spawn a process
Spawns (creates) a new process resource for a machine.
Note: This method returns the HTTP Response
.
Parameters:
-
String account (required): The identifier (UUID) or slug of your Keygen account.
-
SpawnProcessRequest spawnProcessRequest (required):
Implementation
Future<Response> spawnProcessWithHttpInfo(String account, SpawnProcessRequest spawnProcessRequest,) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/processes'
.replaceAll('{account}', account);
// ignore: prefer_final_locals
Object? postBody = spawnProcessRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/vnd.api+json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}