summaryrefslogtreecommitdiffstats
path: root/quantum-model
diff options
context:
space:
mode:
authorseshukm <seshu.kumar.m@huawei.com>2018-07-25 19:53:13 +0800
committerseshukm <seshu.kumar.m@huawei.com>2018-07-25 19:53:13 +0800
commit0bf2ba5a56322d1a7e238716832cca71c8980880 (patch)
tree94cade979b9fc548c783b4e465e0b9354b91d06d /quantum-model
parentbb99f9c5dab5d391e19bd8bac68b278b13efaab2 (diff)
code refactoring of remaining quantum files
Issue-ID: SO-729 Change-Id: Ifde5cf9e761fe59b10f09b0e32064630af83901b Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'quantum-model')
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java112
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterInterface.java16
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java58
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java50
4 files changed, 118 insertions, 118 deletions
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java
index df6cbc7..d717658 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java
@@ -25,67 +25,67 @@ import org.codehaus.jackson.map.annotate.JsonRootName;
@JsonRootName("router")
public class RouterForCreate implements Serializable {
- @JsonProperty("name")
- private String name;
+ @JsonProperty("name")
+ private String name;
- private List<HostRoute> routes;
+ private List<HostRoute> routes;
- @JsonProperty("admin_state_up")
- private String admin_state_up;
+ @JsonProperty("admin_state_up")
+ private String admin_state_up;
- @JsonProperty("status")
- private String status;
+ @JsonProperty("status")
+ private String status;
- @JsonProperty("external_gateway_info")
- private GatewayInfo externalGatewayInfo;
+ @JsonProperty("external_gateway_info")
+ private GatewayInfo externalGatewayInfo;
- @JsonProperty("tenant_id")
- private String tenantId;
+ @JsonProperty("tenant_id")
+ private String tenantId;
- @JsonProperty("id")
- private String id;
+ @JsonProperty("id")
+ private String id;
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public List<HostRoute> getRoutes() {
- return routes;
- }
- public void setRoutes(List<HostRoute> routes) {
- this.routes = routes;
- }
- public String getAdmin_state_up() {
- return admin_state_up;
- }
- public void setAdmin_state_up(String admin_state_up) {
- this.admin_state_up = admin_state_up;
- }
- public String getStatus() {
- return status;
- }
- public void setStatus(String status) {
- this.status = status;
- }
- public GatewayInfo getExternalGatewayInfo() {
- return externalGatewayInfo;
- }
- public void setExternalGatewayInfo(GatewayInfo externalGatewayInfo) {
- this.externalGatewayInfo = externalGatewayInfo;
- }
- public String getTenantId() {
- return tenantId;
- }
- public void setTenantId(String tenantId) {
- this.tenantId = tenantId;
- }
- public String getId() {
- return id;
- }
- public void setId(String id) {
- this.id = id;
- }
-
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public List<HostRoute> getRoutes() {
+ return routes;
+ }
+ public void setRoutes(List<HostRoute> routes) {
+ this.routes = routes;
+ }
+ public String getAdmin_state_up() {
+ return admin_state_up;
+ }
+ public void setAdmin_state_up(String admin_state_up) {
+ this.admin_state_up = admin_state_up;
+ }
+ public String getStatus() {
+ return status;
+ }
+ public void setStatus(String status) {
+ this.status = status;
+ }
+ public GatewayInfo getExternalGatewayInfo() {
+ return externalGatewayInfo;
+ }
+ public void setExternalGatewayInfo(GatewayInfo externalGatewayInfo) {
+ this.externalGatewayInfo = externalGatewayInfo;
+ }
+ public String getTenantId() {
+ return tenantId;
+ }
+ public void setTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ }
+ public String getId() {
+ return id;
+ }
+ public void setId(String id) {
+ this.id = id;
+ }
+
}
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterInterface.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterInterface.java
index ac4aab5..e668cf9 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterInterface.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterInterface.java
@@ -23,13 +23,13 @@ import org.codehaus.jackson.map.annotate.JsonRootName;
public class RouterInterface implements Serializable {
- @JsonProperty("subnet_id")
- String subnetId;
- @JsonProperty("port_id")
- String portId;
- @JsonProperty("tenant_id")
- String tenantId;
- @JsonProperty("id")
- String id;
+ @JsonProperty("subnet_id")
+ String subnetId;
+ @JsonProperty("port_id")
+ String portId;
+ @JsonProperty("tenant_id")
+ String tenantId;
+ @JsonProperty("id")
+ String id;
}
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java
index 038bdb4..aefd735 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java
@@ -22,33 +22,33 @@ import java.util.List;
import org.codehaus.jackson.annotate.JsonProperty;
public class Routers implements Iterable<Router>, Serializable{
-
- @JsonProperty("routers")
- private List<Router> list;
-
- /**
- * @return the list
- */
- public List<Router> getList() {
- return list;
- }
-
-
- /**
- * @param list the list to set
- */
- public void setList(List<Router> list) {
- this.list = list;
- }
-
- @Override
- public String toString() {
- return "Routers [list=" + list + "]";
- }
-
- @Override
- public Iterator<Router> iterator() {
- return list.iterator();
- }
-
+
+ @JsonProperty("routers")
+ private List<Router> list;
+
+ /**
+ * @return the list
+ */
+ public List<Router> getList() {
+ return list;
+ }
+
+
+ /**
+ * @param list the list to set
+ */
+ public void setList(List<Router> list) {
+ this.list = list;
+ }
+
+ @Override
+ public String toString() {
+ return "Routers [list=" + list + "]";
+ }
+
+ @Override
+ public Iterator<Router> iterator() {
+ return list.iterator();
+ }
+
}
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java
index 0796d99..8e9778f 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java
@@ -23,32 +23,32 @@ import java.util.List;
import org.codehaus.jackson.annotate.JsonProperty;
public class Subnets implements Serializable, Iterable<Subnet> {
-
- @JsonProperty("subnets")
- private List<Subnet> list;
-
- /**
- * @return the list
- */
- public List<Subnet> getList() {
- return list;
- }
+
+ @JsonProperty("subnets")
+ private List<Subnet> list;
+
+ /**
+ * @return the list
+ */
+ public List<Subnet> getList() {
+ return list;
+ }
- /**
- * @param list the list to set
- */
- public void setList(List<Subnet> list) {
- this.list = list;
- }
+ /**
+ * @param list the list to set
+ */
+ public void setList(List<Subnet> list) {
+ this.list = list;
+ }
- @Override
- public String toString() {
- return "Subnets [list=" + list + "]";
- }
-
- @Override
- public Iterator<Subnet> iterator() {
- return list.iterator();
- }
+ @Override
+ public String toString() {
+ return "Subnets [list=" + list + "]";
+ }
+
+ @Override
+ public Iterator<Subnet> iterator() {
+ return list.iterator();
+ }
}