class AutoScalingSpringResource {

    @ApiOperation("Find scaling policies for a job")
    @GetMapping(path = "/scalingPolicies/{jobId}")
    public GetPolicyResult getScalingPolicyForJob(@PathVariable("jobId") String jobId, CallMetadataAuthentication authentication) {
        JobId request = JobId.newBuilder().setId(jobId).build();
        return Responses.fromSingleValueObservable(autoScalingService.getJobScalingPolicies(request, authentication.getCallMetadata()));
    }

    @Inject public  AutoScalingSpringResource(AutoScalingService autoScalingService);

}