stopJobRun method
Stops a particular run of a job.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter name :
The name of the job to be stopped.
Parameter runId :
The ID of the job run to be stopped.
Implementation
Future<StopJobRunResponse> stopJobRun({
required String name,
required String runId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/jobs/${Uri.encodeComponent(name)}/jobRun/${Uri.encodeComponent(runId)}/stopJobRun',
exceptionFnMap: _exceptionFns,
);
return StopJobRunResponse.fromJson(response);
}