class JobManagementSpringResource {

    @ApiOperation("Update an existing job's processes")
    @PutMapping(path = "/jobs/{jobId}/jobprocesses")
    public ResponseEntity<Void> setJobProcesses(@PathVariable("jobId") String jobId,
                                                @RequestBody ServiceJobSpec.ServiceJobProcesses jobProcesses,
                                                CallMetadataAuthentication authentication) {
        JobProcessesUpdate jobProcessesUpdate = JobProcessesUpdate.newBuilder()
                .setJobId(jobId)
                .setServiceJobProcesses(jobProcesses)
                .build();
        return Responses.fromCompletable(
                jobServiceGateway.updateJobProcesses(jobProcessesUpdate, authentication.getCallMetadata()),
                HttpStatus.OK
        );
    }

    @Inject public  JobManagementSpringResource(JobServiceGateway jobServiceGateway, SystemLogService systemLog);

}