summaryrefslogtreecommitdiffstats
path: root/nova-model/src/main/java/com
diff options
context:
space:
mode:
authorSmokowski, Steve (ss835w) <ss835w@us.att.com>2020-04-02 16:19:51 -0400
committerSmokowski, Steve (ss835w) <ss835w@us.att.com>2020-04-03 08:05:23 -0400
commit1433d54a4dd40ea06c2fc16cc79f1d6ec08d3405 (patch)
treeca24e61fec6cbd9e6bf1eef0fa796306e791a07d /nova-model/src/main/java/com
parent1389746c1a81aca1b82a5e1e43d25a2d6e8c9229 (diff)
Fix Parsing issue on nova servers
Issue-ID: SO-2663 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com> Change-Id: I6b689ccb0baf6d87980e8439a11ecc5879951fa3
Diffstat (limited to 'nova-model/src/main/java/com')
-rw-r--r--nova-model/src/main/java/com/woorea/openstack/nova/model/IdResourceEntity.java35
-rw-r--r--nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java4
2 files changed, 37 insertions, 2 deletions
diff --git a/nova-model/src/main/java/com/woorea/openstack/nova/model/IdResourceEntity.java b/nova-model/src/main/java/com/woorea/openstack/nova/model/IdResourceEntity.java
new file mode 100644
index 0000000..dff4be8
--- /dev/null
+++ b/nova-model/src/main/java/com/woorea/openstack/nova/model/IdResourceEntity.java
@@ -0,0 +1,35 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+
+package com.woorea.openstack.nova.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class IdResourceEntity {
+
+ @JsonProperty
+ private String id;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+}
diff --git a/nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java b/nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java
index 70b7f88..8a61751 100644
--- a/nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java
+++ b/nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java
@@ -255,7 +255,7 @@ public class Server implements Serializable {
private String terminatedAt;
@JsonProperty("os-extended-volumes:volumes_attached")
- private List<String> osExtendedVolumesAttached;
+ private List<IdResourceEntity> osExtendedVolumesAttached;
private String uuid;
@@ -488,7 +488,7 @@ public class Server implements Serializable {
/**
* @return the osExtendedVolumesAttached
*/
- public List<String> getOsExtendedVolumesAttached() {
+ public List<IdResourceEntity> getOsExtendedVolumesAttached() {
return osExtendedVolumesAttached;
}