class AutoScalingSpringResource {

    @ApiOperation("Delete scaling policy")
    @DeleteMapping(path = "scalingPolicy/{policyId}")
    public ResponseEntity<Void> removePolicy(@PathVariable("policyId") String policyId, CallMetadataAuthentication authentication) {
        ScalingPolicyID scalingPolicyId = ScalingPolicyID.newBuilder().setId(policyId).build();
        DeletePolicyRequest deletePolicyRequest = DeletePolicyRequest.newBuilder().setId(scalingPolicyId).build();
        return Responses.fromCompletable(autoScalingService.deleteAutoScalingPolicy(deletePolicyRequest, authentication.getCallMetadata()), HttpStatus.OK);
    }

    @Inject public  AutoScalingSpringResource(AutoScalingService autoScalingService);

}