Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/src/main/java/org/openstack4j/model/compute/Action.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ public enum Action {
/** Remove a shelved instance from the compute node */
SHELVE_OFFLOAD,
/** Unshelve the server */
UNSHELVE
UNSHELVE,
/** Force delete the server */
FORCEDELETE
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public static class RevertResize implements ServerAction { }

@JsonRootName("migrate")
public static class Migrate implements ServerAction { }

@JsonRootName("forceDelete")
public static class ForceDelete implements ServerAction { }

@JsonRootName("reboot")
public static class Reboot implements ServerAction {
Expand Down Expand Up @@ -119,6 +122,7 @@ public static ServerAction actionInstanceFor(Action action)
case SHELVE_OFFLOAD: return instanceFor(ShelveOffload.class);
case UNSHELVE: return instanceFor(UnShelve.class);
case SUSPEND: return instanceFor(Suspend.class);
case FORCEDELETE: return instanceFor(ForceDelete.class);
default:
return null;
}
Expand Down