From 0d4bde1f33803d48c40345ae7b3dfe626752becb Mon Sep 17 00:00:00 2001 From: seshukm Date: Wed, 25 Jul 2018 18:27:32 +0800 Subject: basic code Issues of nova model Issue-ID: SO-729 Change-Id: Ib2081aedf0fd9686977f44be9a94af5215e3394f Signed-off-by: seshukm --- .../openstack/nova/model/ServerForCreate.java | 604 ++++++++++----------- 1 file changed, 302 insertions(+), 302 deletions(-) (limited to 'nova-model/src/main/java/com/woorea/openstack/nova/model/ServerForCreate.java') diff --git a/nova-model/src/main/java/com/woorea/openstack/nova/model/ServerForCreate.java b/nova-model/src/main/java/com/woorea/openstack/nova/model/ServerForCreate.java index ce981f7..4858e01 100644 --- a/nova-model/src/main/java/com/woorea/openstack/nova/model/ServerForCreate.java +++ b/nova-model/src/main/java/com/woorea/openstack/nova/model/ServerForCreate.java @@ -28,315 +28,315 @@ import org.codehaus.jackson.map.annotate.JsonRootName; @JsonRootName("server") public class ServerForCreate implements Serializable { - public static final class SecurityGroup implements Serializable { + public static final class SecurityGroup implements Serializable { - private String name; + private String name; - public SecurityGroup() { - } + public SecurityGroup() { + } - public SecurityGroup(String name) { - this.name = name; - } + public SecurityGroup(String name) { + this.name = name; + } - /** - * @return the name - */ - public String getName() { - return name; - } + /** + * @return the name + */ + public String getName() { + return name; + } - /** - * @param name - * the name to set - */ - public void setName(String name) { - this.name = name; - } + /** + * @param name + * the name to set + */ + public void setName(String name) { + this.name = name; + } - } + } - private String name; + private String name; - private String adminPass; - - private String imageRef; - - private String flavorRef; - - private String accessIPv4; - - private String accessIPv6; - - private Integer min; - - private Integer max; - - private String diskConfig; - - @JsonProperty("key_name") - private String keyName; - - private List personality = new ArrayList(); - - private Map metadata = new HashMap(); - - @JsonProperty("security_groups") - private List securityGroups; - - @JsonProperty("user_data") - private String userData; - - @JsonProperty("availability_zone") - private String availabilityZone; - - @JsonProperty("config_drive") - private boolean configDrive; - - @JsonProperty("networks") - private List networks = new ArrayList(); - - /** - * @return the name - */ - public String getName() { - return name; - } - - /** - * @param name - * the name to set - */ - public void setName(String name) { - this.name = name; - } - - /** - * @return the adminPass - */ - public String getAdminPass() { - return adminPass; - } - - /** - * @param adminPass - * the adminPass to set - */ - public void setAdminPass(String adminPass) { - this.adminPass = adminPass; - } - - /** - * @return the imageRef - */ - public String getImageRef() { - return imageRef; - } - - /** - * @param imageRef - * the imageRef to set - */ - public void setImageRef(String imageRef) { - this.imageRef = imageRef; - } - - /** - * @return the flavorRef - */ - public String getFlavorRef() { - return flavorRef; - } - - /** - * @param flavorRef - * the flavorRef to set - */ - public void setFlavorRef(String flavorRef) { - this.flavorRef = flavorRef; - } - - /** - * @return the accessIPv4 - */ - public String getAccessIPv4() { - return accessIPv4; - } - - /** - * @param accessIPv4 - * the accessIPv4 to set - */ - public void setAccessIPv4(String accessIPv4) { - this.accessIPv4 = accessIPv4; - } - - /** - * @return the accessIPv6 - */ - public String getAccessIPv6() { - return accessIPv6; - } - - /** - * @param accessIPv6 - * the accessIPv6 to set - */ - public void setAccessIPv6(String accessIPv6) { - this.accessIPv6 = accessIPv6; - } - - /** - * @return the min - */ - public Integer getMin() { - return min; - } - - /** - * @param min - * the min to set - */ - public void setMin(Integer min) { - this.min = min; - } - - /** - * @return the max - */ - public Integer getMax() { - return max; - } - - /** - * @param max - * the max to set - */ - public void setMax(Integer max) { - this.max = max; - } - - /** - * @return the diskConfig - */ - public String getDiskConfig() { - return diskConfig; - } - - /** - * @param diskConfig - * the diskConfig to set - */ - public void setDiskConfig(String diskConfig) { - this.diskConfig = diskConfig; - } - - /** - * @return the keyName - */ - public String getKeyName() { - return keyName; - } - - /** - * @param keyName - * the keyName to set - */ - public void setKeyName(String keyName) { - this.keyName = keyName; - } - - /** - * @return the personality - */ - public List getPersonality() { - return personality; - } - - /** - * @param personality - * the personality to set - */ - public void setPersonality(List personality) { - this.personality = personality; - } - - /** - * @return the metadata - */ - public Map getMetadata() { - return metadata; - } - - /** - * @param metadata - * the metadata to set - */ - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - /** - * @return the securityGroups - */ - public List getSecurityGroups() { - if (securityGroups == null) { - securityGroups = new ArrayList(); - } - 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; - } - - public boolean isConfigDrive() { - return configDrive; - } - - public void setConfigDrive(boolean configDrive) { - this.configDrive = configDrive; - } - - public List getNetworks() { - return networks; - } - - public void setNetworks(List networks) { - this.networks = networks; - } - - public void addNetworks(String id, String fixedIp) { - NetworkForCreate net = new NetworkForCreate(); - net.setId(id); - net.setFixedIp(fixedIp); - this.networks.add(net); - } + private String adminPass; + + private String imageRef; + + private String flavorRef; + + private String accessIPv4; + + private String accessIPv6; + + private Integer min; + + private Integer max; + + private String diskConfig; + + @JsonProperty("key_name") + private String keyName; + + private List personality = new ArrayList(); + + private Map metadata = new HashMap(); + + @JsonProperty("security_groups") + private List securityGroups; + + @JsonProperty("user_data") + private String userData; + + @JsonProperty("availability_zone") + private String availabilityZone; + + @JsonProperty("config_drive") + private boolean configDrive; + + @JsonProperty("networks") + private List networks = new ArrayList(); + + /** + * @return the name + */ + public String getName() { + return name; + } + + /** + * @param name + * the name to set + */ + public void setName(String name) { + this.name = name; + } + + /** + * @return the adminPass + */ + public String getAdminPass() { + return adminPass; + } + + /** + * @param adminPass + * the adminPass to set + */ + public void setAdminPass(String adminPass) { + this.adminPass = adminPass; + } + + /** + * @return the imageRef + */ + public String getImageRef() { + return imageRef; + } + + /** + * @param imageRef + * the imageRef to set + */ + public void setImageRef(String imageRef) { + this.imageRef = imageRef; + } + + /** + * @return the flavorRef + */ + public String getFlavorRef() { + return flavorRef; + } + + /** + * @param flavorRef + * the flavorRef to set + */ + public void setFlavorRef(String flavorRef) { + this.flavorRef = flavorRef; + } + + /** + * @return the accessIPv4 + */ + public String getAccessIPv4() { + return accessIPv4; + } + + /** + * @param accessIPv4 + * the accessIPv4 to set + */ + public void setAccessIPv4(String accessIPv4) { + this.accessIPv4 = accessIPv4; + } + + /** + * @return the accessIPv6 + */ + public String getAccessIPv6() { + return accessIPv6; + } + + /** + * @param accessIPv6 + * the accessIPv6 to set + */ + public void setAccessIPv6(String accessIPv6) { + this.accessIPv6 = accessIPv6; + } + + /** + * @return the min + */ + public Integer getMin() { + return min; + } + + /** + * @param min + * the min to set + */ + public void setMin(Integer min) { + this.min = min; + } + + /** + * @return the max + */ + public Integer getMax() { + return max; + } + + /** + * @param max + * the max to set + */ + public void setMax(Integer max) { + this.max = max; + } + + /** + * @return the diskConfig + */ + public String getDiskConfig() { + return diskConfig; + } + + /** + * @param diskConfig + * the diskConfig to set + */ + public void setDiskConfig(String diskConfig) { + this.diskConfig = diskConfig; + } + + /** + * @return the keyName + */ + public String getKeyName() { + return keyName; + } + + /** + * @param keyName + * the keyName to set + */ + public void setKeyName(String keyName) { + this.keyName = keyName; + } + + /** + * @return the personality + */ + public List getPersonality() { + return personality; + } + + /** + * @param personality + * the personality to set + */ + public void setPersonality(List personality) { + this.personality = personality; + } + + /** + * @return the metadata + */ + public Map getMetadata() { + return metadata; + } + + /** + * @param metadata + * the metadata to set + */ + public void setMetadata(Map metadata) { + this.metadata = metadata; + } + + /** + * @return the securityGroups + */ + public List getSecurityGroups() { + if (securityGroups == null) { + securityGroups = new ArrayList(); + } + 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; + } + + public boolean isConfigDrive() { + return configDrive; + } + + public void setConfigDrive(boolean configDrive) { + this.configDrive = configDrive; + } + + public List getNetworks() { + return networks; + } + + public void setNetworks(List networks) { + this.networks = networks; + } + + public void addNetworks(String id, String fixedIp) { + NetworkForCreate net = new NetworkForCreate(); + net.setId(id); + net.setFixedIp(fixedIp); + this.networks.add(net); + } } -- cgit 1.2.3-korg