Permalink
Browse files

Update ServerForCreate.java

Add fields of "userData" and "availabilityZone"
  • Loading branch information...
1 parent 5e374c8 commit f3e5e1d43f7c6628d0da197156bf899ebd666c3a @seaman25 seaman25 committed Mar 29, 2013
Showing with 34 additions and 0 deletions.
  1. +34 −0 nova-model/src/main/java/org/openstack/nova/model/ServerForCreate.java
@@ -66,6 +66,12 @@ public void setName(String name) {
@JsonProperty("security_groups")
private List<SecurityGroup> securityGroups;
+
+ @JsonProperty("user_data")
+ private String userData;
+
+ @JsonProperty("availability_zone")
+ private String availabilityZone;
/**
* @return the name
@@ -245,4 +251,32 @@ public void setMetadata(Map<String, String> metadata) {
return securityGroups;
}
+ /**
+ * @return the userData
+ */
+ public String getUserData() {
+ return userData;
+ }
+
+ /**
+ * @param userData the userData to set
+ */
+ public void setUserData(String userData) {
+ this.userData = userData;
+ }
+
+ /**
+ * @return the availabilityZone
+ */
+ public String getAvailabilityZone() {
+ return availabilityZone;
+ }
+
+ /**
+ * @param availabilityZone the availabilityZone to set
+ */
+ public void setAvailabilityZone(String availabilityZone) {
+ this.availabilityZone = availabilityZone;
+ }
+
}

0 comments on commit f3e5e1d

Please sign in to comment.