Skip to content

Commit 92d8173

Browse files
committed
Merge pull request woorea#103 from mszpiler/master
Issue woorea#101 Openstack-java-sdk 3.2.2-SNAPSHOT incompatible with OpenStack 2013.2 (Havana)
2 parents d3c88c1 + a241a01 commit 92d8173

File tree

1 file changed

+35
-2
lines changed
  • nova-model/src/main/java/com/woorea/openstack/nova/model

1 file changed

+35
-2
lines changed

nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.util.Map;
88

99
import org.codehaus.jackson.annotate.JsonAnySetter;
10+
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
1011
import org.codehaus.jackson.annotate.JsonProperty;
1112
import org.codehaus.jackson.map.annotate.JsonRootName;
1213

@@ -227,6 +228,15 @@ public String toString() {
227228

228229
@JsonProperty("OS-EXT-AZ:availability_zone")
229230
private String availabilityZone;
231+
232+
@JsonProperty("OS-SRV-USG:launched_at")
233+
private String launchedAt;
234+
235+
@JsonProperty("OS-SRV-USG:terminated_at")
236+
private String terminatedAt;
237+
238+
@JsonProperty("os-extended-volumes:volumes_attached")
239+
private List<String> osExtendedVolumesAttached;
230240

231241
private String uuid;
232242

@@ -442,7 +452,28 @@ public String getAvailabilityZone() {
442452
return availabilityZone;
443453
}
444454

445-
/**
455+
/**
456+
* @return the launchedAt
457+
*/
458+
public String getLaunchedAt() {
459+
return launchedAt;
460+
}
461+
462+
/**
463+
* @return the terminatedAt
464+
*/
465+
public String getTerminatedAt() {
466+
return terminatedAt;
467+
}
468+
469+
/**
470+
* @return the osExtendedVolumesAttached
471+
*/
472+
public List<String> getOsExtendedVolumesAttached() {
473+
return osExtendedVolumesAttached;
474+
}
475+
476+
/**
446477
* @return the uuid
447478
*/
448479
public String getUuid() {
@@ -474,7 +505,9 @@ public String toString() {
474505
+ vmState + ", host=" + host + ", instanceName=" + instanceName
475506
+ ", hypervisorHostname=" + hypervisorHostname
476507
+ ", diskConfig=" + diskConfig + ", availabilityZone="
477-
+ availabilityZone + ", uuid=" + uuid + ", adminPass="
508+
+ availabilityZone + ", launchedAt=" + launchedAt + ", terminatedAt="
509+
+ ", " + "osExtendedVolumesAttached=" + osExtendedVolumesAttached
510+
+ ", uuid=" + uuid + ", adminPass="
478511
+ adminPass + "]";
479512
}
480513

0 commit comments

Comments
 (0)