mirror of https://github.com/apache/jclouds.git
openstack-nova: adding EXTENDED_STATUS to ExtensionNamespaces
This commit is contained in:
parent
1797b27ed4
commit
a45d079b8c
|
@ -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/>
|
* <p/>
|
||||||
* NOTE: This field is only present if the Extended Status extension is installed.
|
* 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() {
|
public Optional<ServerExtendedStatus> getExtendedStatus() {
|
||||||
return this.extendedStatus;
|
return this.extendedStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the extended server attributes fields
|
* Retrieves the extended server attributes fields (alias "OS-EXT-SRV-ATTR")
|
||||||
* <p/>
|
* <p/>
|
||||||
* NOTE: This field is only present if the The Extended Server Attributes API extension is installed.
|
* 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() {
|
public Optional<ServerExtendedAttributes> getExtendedAttributes() {
|
||||||
return this.extendedAttributes;
|
return this.extendedAttributes;
|
||||||
|
|
|
@ -23,12 +23,14 @@ import com.google.common.base.Objects.ToStringHelper;
|
||||||
import com.google.gson.annotations.SerializedName;
|
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
|
* @author Adam Lowe
|
||||||
* @see <a href=
|
* @see <a href=
|
||||||
* "http://nova.openstack.org/api/nova.api.openstack.compute.contrib.extended_server_attributes.html"
|
* "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 class ServerExtendedAttributes {
|
||||||
public static final String PREFIX = "OS-EXT-SRV-ATTR:";
|
public static final String PREFIX = "OS-EXT-SRV-ATTR:";
|
||||||
|
|
|
@ -25,12 +25,14 @@ import com.google.common.base.Objects.ToStringHelper;
|
||||||
import com.google.gson.annotations.SerializedName;
|
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
|
* @author Adam Lowe
|
||||||
* @see <a href=
|
* @see <a href=
|
||||||
* "http://nova.openstack.org/api/nova.api.openstack.compute.contrib.extended_status.html"
|
* "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 class ServerExtendedStatus {
|
||||||
public static final String PREFIX = "OS-EXT-STS:";
|
public static final String PREFIX = "OS-EXT-STS:";
|
||||||
|
|
|
@ -89,4 +89,10 @@ public interface ExtensionNamespaces {
|
||||||
* Admin Action extension
|
* Admin Action extension
|
||||||
*/
|
*/
|
||||||
public static final String ADMIN_ACTIONS = "http://docs.openstack.org/ext/admin-actions/api/v1.1";
|
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";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,6 +74,8 @@ public class PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensio
|
||||||
URI.create("http://docs.openstack.org/compute/ext/createserverext/api/v1.1"))
|
URI.create("http://docs.openstack.org/compute/ext/createserverext/api/v1.1"))
|
||||||
.put(URI.create(ExtensionNamespaces.ADMIN_ACTIONS),
|
.put(URI.create(ExtensionNamespaces.ADMIN_ACTIONS),
|
||||||
URI.create("http://docs.openstack.org/compute/ext/admin-actions/api/v1.1"))
|
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();
|
.build();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
|
Loading…
Reference in New Issue