class JobManagementSpringResource {

    @ApiOperation("Update an existing job's status")
    @PostMapping(path = "/jobs/{jobId}/disable")
    public ResponseEntity<Void> disableJob(@PathVariable("jobId") String jobId, CallMetadataAuthentication authentication) {
        JobStatusUpdate jobStatusUpdate = JobStatusUpdate.newBuilder()
                .setId(jobId)
                .setEnableStatus(false)
                .build();
        return Responses.fromCompletable(
                jobServiceGateway.updateJobStatus(jobStatusUpdate, authentication.getCallMetadata()),
                HttpStatus.OK
        );
    }

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

}