public AttachVolume(String serverId, final VolumeAttachment volumeAttachment) {
   super(
       CLIENT,
       HttpMethod.POST,
       new StringBuilder("/servers/").append(serverId).append("/os-volume_attachments"),
       Entity.json(volumeAttachment),
       Void.class);
 }
 public UnrescueServer(String id) {
   super(
       CLIENT,
       HttpMethod.POST,
       new StringBuilder("/servers/").append(id).append("/action"),
       Entity.json(new Unrescue()),
       Void.class);
 }
 public GetConsoleOutputServer(String id, GetConsoleOutput action) {
   super(
       CLIENT,
       HttpMethod.POST,
       new StringBuilder("/servers/").append(id).append("/action"),
       Entity.json(action),
       ConsoleOutput.class);
 }
 public CreateBackupServer(String id, CreateBackup action) {
   super(
       CLIENT,
       HttpMethod.POST,
       new StringBuilder("/servers/").append(id).append("/action"),
       Entity.json(action),
       Void.class);
 }
 public ReplaceMetadata(String id, Metadata metadata) {
   super(
       CLIENT,
       HttpMethod.PUT,
       new StringBuilder("/servers/").append(id).append("/metadata"),
       Entity.json(metadata),
       Metadata.class);
 }
 public DisassociateFloatingIp(
     String id, com.woorea.openstack.nova.model.ServerAction.DisassociateFloatingIp action) {
   super(
       CLIENT,
       HttpMethod.POST,
       new StringBuilder("/servers/").append(id).append("/action"),
       Entity.json(action),
       Void.class);
 }
 public UpdateServer(String id, Server server) {
   super(
       CLIENT,
       HttpMethod.PUT,
       new StringBuilder("/servers/").append(id),
       Entity.json(server),
       Server.class);
   this.server = server;
 }
 public Boot(ServerForCreate server) {
   super(CLIENT, HttpMethod.POST, "/servers", Entity.json(server), Server.class);
   this.server = server;
 }
 public CreateImageAction(String id) {
   super(id, Entity.json(new CreateImage()), Server.class);
 }
Ejemplo n.º 10
0
 public ReverResizeAction(String id) {
   super(id, Entity.json(new RevertResize()), Server.class);
 }
Ejemplo n.º 11
0
 public ConfirmResizeAction(String id) {
   super(id, Entity.json(new ConfirmResize()), Server.class);
 }
Ejemplo n.º 12
0
 public ResizeAction(String id, Resize action) {
   super(id, Entity.json(action), Server.class);
 }
Ejemplo n.º 13
0
 public RebuildAction(String id, Rebuild action) {
   super(id, Entity.json(action), Server.class);
 }
Ejemplo n.º 14
0
 public RebootAction(String id, Reboot action) {
   super(id, Entity.json(action), Void.class);
 }
Ejemplo n.º 15
0
 public ChangePasswordAction(String id, ChangePassword action) {
   super(id, Entity.json(action), Server.class);
 }