updateMachineWithHttpInfo method
Future<Response>
updateMachineWithHttpInfo(
- String account,
- String machine, {
- UpdateMachineRequest? updateMachineRequest,
Update a machine
Updates the specified machine resource by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
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 updated.
-
UpdateMachineRequest updateMachineRequest:
Implementation
Future<Response> updateMachineWithHttpInfo(String account, String machine, { UpdateMachineRequest? updateMachineRequest, }) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/machines/{machine}'
.replaceAll('{account}', account)
.replaceAll('{machine}', machine);
// ignore: prefer_final_locals
Object? postBody = updateMachineRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/vnd.api+json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}