summaryrefslogtreecommitdiffstats
path: root/quantum-model/src
diff options
context:
space:
mode:
Diffstat (limited to 'quantum-model/src')
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java2
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/Router.java10
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java11
-rw-r--r--quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java4
-rw-r--r--quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterTest.java4
5 files changed, 15 insertions, 16 deletions
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java
index 9ef68ff..88fb6a4 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java
@@ -16,8 +16,6 @@
package com.woorea.openstack.quantum.model;
-import java.util.List;
-
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Router.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Router.java
index 722bb0d..d180a12 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Router.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Router.java
@@ -36,7 +36,7 @@ public class Router implements Serializable {
private String name;
@JsonProperty("admin_state_up")
- private String admin_state_up;
+ private String adminStateUp;
@JsonProperty("tenant_id")
private String tenantId;
@@ -59,11 +59,11 @@ public class Router implements Serializable {
public void setRoutes(List<HostRoute> routes) {
this.routes = routes;
}
- public String getAdmin_state_up() {
- return admin_state_up;
+ public String getAdminStateUp() {
+ return adminStateUp;
}
- public void setAdmin_state_up(String admin_state_up) {
- this.admin_state_up = admin_state_up;
+ public void setAdminStateUp(String adminStateUp) {
+ this.adminStateUp = adminStateUp;
}
public String getStatus() {
return status;
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 c524ef5..6f5ddae 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
@@ -32,7 +32,7 @@ public class RouterForCreate implements Serializable {
private List<HostRoute> routes;
@JsonProperty("admin_state_up")
- private String admin_state_up;
+ private String adminStateUp;
@JsonProperty("status")
private String status;
@@ -58,11 +58,12 @@ public class RouterForCreate implements Serializable {
public void setRoutes(List<HostRoute> routes) {
this.routes = routes;
}
- public String getAdmin_state_up() {
- return admin_state_up;
+ public String getAdminStateUp() {
+ return adminStateUp;
}
- public void setAdmin_state_up(String admin_state_up) {
- this.admin_state_up = admin_state_up;
+
+ public void setAdminStateUp(String adminStateUp) {
+ this.adminStateUp = adminStateUp;
}
public String getStatus() {
return status;
diff --git a/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java b/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java
index b84e639..31a0373 100644
--- a/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java
+++ b/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java
@@ -84,9 +84,9 @@ public class RouterForCreateTest {
Assert.assertEquals(2, routes.size());
routerforcreate.setRoutes(routes);
- String admin_state_up = routerforcreate.getAdmin_state_up();
+ String admin_state_up = routerforcreate.getAdminStateUp();
Assert.assertNotNull(admin_state_up);
- routerforcreate.setAdmin_state_up(admin_state_up);
+ routerforcreate.setAdminStateUp(admin_state_up);
String name = routerforcreate.getName();
Assert.assertNotNull(name);
diff --git a/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterTest.java b/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterTest.java
index b75cac8..81573df 100644
--- a/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterTest.java
+++ b/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterTest.java
@@ -84,9 +84,9 @@ public class RouterTest {
Assert.assertEquals(2, routes.size());
router.setRoutes(routes);
- String admin_state_up = router.getAdmin_state_up();
+ String admin_state_up = router.getAdminStateUp();
Assert.assertNotNull(admin_state_up);
- router.setAdmin_state_up(admin_state_up);
+ router.setAdminStateUp(admin_state_up);
String name = router.getName();
Assert.assertNotNull(name);