openstack-nova: adding EXTENDED_STATUS to ExtensionNamespaces

This commit is contained in:
Adam Lowe 2012-05-08 19:07:44 +01:00 committed by Adrian Cole
parent 1797b27ed4
commit a45d079b8c
5 changed files with 22 additions and 4 deletions

View File

@ -463,18 +463,24 @@ public class Server extends Resource {
/**
* Retrieves the extended server status fields
* Retrieves the extended server status fields (alias "OS-EXT-STS")
* <p/>
* NOTE: This field is only present if the Extended Status extension is installed.
*
* @see org.jclouds.openstack.nova.v1_1.features.ExtensionClient#getExtensionByAlias
* @see org.jclouds.openstack.nova.v1_1.extensions.ExtensionNamespaces#EXTENDED_STATUS (extended status?)
*/
public Optional<ServerExtendedStatus> getExtendedStatus() {
return this.extendedStatus;
}
/**
* Retrieves the extended server attributes fields
* Retrieves the extended server attributes fields (alias "OS-EXT-SRV-ATTR")
* <p/>
* NOTE: This field is only present if the The Extended Server Attributes API extension is installed.
*
* @see org.jclouds.openstack.nova.v1_1.features.ExtensionClient#getExtensionByAlias
* @see org.jclouds.openstack.nova.v1_1.extensions.ExtensionNamespaces#EXTENDED_STATUS (extended status?)
*/
public Optional<ServerExtendedAttributes> getExtendedAttributes() {
return this.extendedAttributes;

View File

@ -23,12 +23,14 @@ import com.google.common.base.Objects.ToStringHelper;
import com.google.gson.annotations.SerializedName;
/**
* Additional attributes delivered by Extended Server Attributes extension
* Additional attributes delivered by Extended Server Attributes extension (alias "OS-EXT-SRV-ATTR")
*
* @author Adam Lowe
* @see <a href=
* "http://nova.openstack.org/api/nova.api.openstack.compute.contrib.extended_server_attributes.html"
* />
* @see org.jclouds.openstack.nova.v1_1.features.ExtensionClient#getExtensionByAlias
* @see org.jclouds.openstack.nova.v1_1.extensions.ExtensionNamespaces#EXTENDED_STATUS (extended status?)
*/
public class ServerExtendedAttributes {
public static final String PREFIX = "OS-EXT-SRV-ATTR:";

View File

@ -25,12 +25,14 @@ import com.google.common.base.Objects.ToStringHelper;
import com.google.gson.annotations.SerializedName;
/**
* Additional attributes delivered by Extended Server Status extension
* Additional attributes delivered by Extended Server Status extension (alias "OS-EXT-STS")
*
* @author Adam Lowe
* @see <a href=
* "http://nova.openstack.org/api/nova.api.openstack.compute.contrib.extended_status.html"
* />
* @see org.jclouds.openstack.nova.v1_1.features.ExtensionClient#getExtensionByAlias
* @see org.jclouds.openstack.nova.v1_1.extensions.ExtensionNamespaces#EXTENDED_STATUS (extended status?)
*/
public class ServerExtendedStatus {
public static final String PREFIX = "OS-EXT-STS:";

View File

@ -89,4 +89,10 @@ public interface ExtensionNamespaces {
* Admin Action extension
*/
public static final String ADMIN_ACTIONS = "http://docs.openstack.org/ext/admin-actions/api/v1.1";
/**
* Extended Server Status extension
*/
public static final String EXTENDED_STATUS = "http://docs.openstack.org/ext/extended_status/api/v1.1";
}

View File

@ -74,6 +74,8 @@ public class PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensio
URI.create("http://docs.openstack.org/compute/ext/createserverext/api/v1.1"))
.put(URI.create(ExtensionNamespaces.ADMIN_ACTIONS),
URI.create("http://docs.openstack.org/compute/ext/admin-actions/api/v1.1"))
.put(URI.create(ExtensionNamespaces.EXTENDED_STATUS),
URI.create("http://docs.openstack.org/compute/ext/extended_status/api/v1.1"))
.build();
@Inject