class LoadBalancerSpringResource {

    @ApiOperation("Add a load balancer")
    @PostMapping
    public ResponseEntity<Void> addLoadBalancer(
            @RequestParam("jobId") String jobId,
            @RequestParam("loadBalancerId") String loadBalancerId,
            CallMetadataAuthentication authentication) {
        return Responses.fromCompletable(
                loadBalancerService.addLoadBalancer(
                        AddLoadBalancerRequest.newBuilder()
                                .setJobId(jobId)
                                .setLoadBalancerId(LoadBalancerId.newBuilder().setId(loadBalancerId).build())
                                .build(),
                        authentication.getCallMetadata()
                ),
                HttpStatus.NO_CONTENT
        );
    }

    @Inject public  LoadBalancerSpringResource(LoadBalancerService loadBalancerService, SystemLogService systemLog);

}