class AutoScalingSpringResource {

    @ApiOperation("Find scaling policy for a policy Id")
    @GetMapping(path = "scalingPolicy/{policyId}")
    public GetPolicyResult getScalingPolicy(@PathVariable("policyId") String policyId, CallMetadataAuthentication authentication) {
        ScalingPolicyID scalingPolicyId = ScalingPolicyID.newBuilder().setId(policyId).build();
        return Responses.fromSingleValueObservable(autoScalingService.getScalingPolicy(scalingPolicyId, authentication.getCallMetadata()));
    }

    @Inject public  AutoScalingSpringResource(AutoScalingService autoScalingService);

}