public Create(Network network) { super(CLIENT, HttpMethod.POST, "/os-networks", Entity.json(network), Network.class); this.network = network; } }
public static <T> Entity<T> stream(T entity) { return new Entity<T>(entity, "application/octet-stream"); }
/** * Construct the request to evacuate the server * * @param uuid * The instance to be evacuated * @param entity * The request entity */ public EvacuateAction(String uuid, ServerAction.Evacuate entity) { super(uuid, Entity.json(entity), Void.class); } }
public static <T> Entity<T> stream(T entity) { return new Entity<T>(entity, "application/octet-stream"); }
public Create(VolumeForCreate volume) { super(CLIENT, HttpMethod.POST, "/os-volumes", Entity.json(volume), Volume.class); // this.volume = volume; }
public static <T> Entity<T> stream(T entity) { return new Entity<T>(entity, "application/octet-stream"); }
public Create(Tenant tenant) { super(client, HttpMethod.POST, "/tenants", Entity.json(tenant), Tenant.class); this.tenant = tenant; }
public static <T> Entity<T> json(T entity) { return new Entity<T>(entity, "application/json"); }
public UpdateStack(String name, UpdateStackParam params) { super(client, HttpMethod.PUT, STACKS + name, Entity.json(params), Void.class); } }
public static <T> Entity<T> json(T entity) { return new Entity<T>(entity, "application/json"); }
public Create(Network net) { super(CLIENT, HttpMethod.POST, "networks", Entity.json(net), Network.class); } }
public static <T> Entity<T> json(T entity) { return new Entity<T>(entity, "application/json"); }
public Create(LoadBalancerPool pool) { super(CLIENT, HttpMethod.POST, "lb/pools", Entity.json(pool), LoadBalancerPool.class); } }
public static <T> Entity<T> stream(T entity) { return new Entity<T>(entity, "application/octet-stream"); }
public Create(SecurityGroupForCreate securityGroupForCreate) { super(CLIENT, HttpMethod.POST, "/os-security-groups", Entity.json(securityGroupForCreate), SecurityGroup.class); this.securityGroupForCreate = securityGroupForCreate; }
public <T> Entity<T> entity(T entity, String contentType) { return new Entity<>(entity, contentType); }
public Create(Cloudpipe cloudpipe) { super(CLIENT, HttpMethod.POST, "/os-cloudpipes", Entity.json(cloudpipe), Cloudpipe.class); this.cloudpipe = cloudpipe; }
public static <T> Entity<T> json(T entity) { return new Entity<T>(entity, "application/json"); }
public Create(User user) { super(client, HttpMethod.POST, "/users", Entity.json(user), User.class); this.user = user; }
public static <T> Entity<T> stream(T entity) { return new Entity<T>(entity, "application/octet-stream"); }