summaryrefslogtreecommitdiffstats
path: root/cinder-client/src/main/java/com/woorea/openstack/cinder/SnapshotsExtension.java
diff options
context:
space:
mode:
authorSmokowski, Steve (ss835w) <ss835w@us.att.com>2019-05-02 09:42:55 -0400
committerSmokowski, Steve (ss835w) <ss835w@us.att.com>2019-05-07 10:02:17 -0400
commit3f9a0c3183480d150089c0d5a6e507c877f7d121 (patch)
treeb3db04cbe2cef23f81503177a50edc5360ffa486 /cinder-client/src/main/java/com/woorea/openstack/cinder/SnapshotsExtension.java
parente153f0adfbed711ce1e215748594a4d04fd1edaf (diff)
Enhance Openstack Client
Update Openstack Client to support additional fields Updat all formatting issues Issue-ID: SO-1844 Change-Id: I1369e0c18cc25274db8df7e12855a020b8da38da Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
Diffstat (limited to 'cinder-client/src/main/java/com/woorea/openstack/cinder/SnapshotsExtension.java')
-rwxr-xr-xcinder-client/src/main/java/com/woorea/openstack/cinder/SnapshotsExtension.java21
1 files changed, 10 insertions, 11 deletions
diff --git a/cinder-client/src/main/java/com/woorea/openstack/cinder/SnapshotsExtension.java b/cinder-client/src/main/java/com/woorea/openstack/cinder/SnapshotsExtension.java
index d01bdc9..a7b0cb8 100755
--- a/cinder-client/src/main/java/com/woorea/openstack/cinder/SnapshotsExtension.java
+++ b/cinder-client/src/main/java/com/woorea/openstack/cinder/SnapshotsExtension.java
@@ -1,4 +1,5 @@
-/* ============LICENSE_START=======================================================
+/*-
+ * ============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
@@ -12,6 +13,7 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
+
package com.woorea.openstack.cinder;
import com.woorea.openstack.base.client.Entity;
@@ -95,8 +97,8 @@ public class SnapshotsExtension {
public class Update extends OpenStackRequest<Void> {
public Update(String id, SnapshotForUpdate snapshot) {
- super(CLIENT, HttpMethod.PUT, new StringBuilder("/snapshots/").append(id).toString(),
- Entity.json(snapshot), Void.class);
+ super(CLIENT, HttpMethod.PUT, new StringBuilder("/snapshots/").append(id).toString(), Entity.json(snapshot),
+ Void.class);
}
}
@@ -104,11 +106,8 @@ public class SnapshotsExtension {
public class ShowMetadata extends OpenStackRequest<Metadata> {
public ShowMetadata(String id) {
- super(CLIENT,
- HttpMethod.GET,
- new StringBuilder("/snapshots/").append(id).append("/metadata").toString(),
- null,
- Metadata.class);
+ super(CLIENT, HttpMethod.GET, new StringBuilder("/snapshots/").append(id).append("/metadata").toString(),
+ null, Metadata.class);
}
}
@@ -116,9 +115,9 @@ public class SnapshotsExtension {
public class UpdateMetadata extends OpenStackRequest<Void> {
public UpdateMetadata(String snapshotId, Metadata metadata) {
- super(CLIENT, HttpMethod.PUT, new StringBuilder("/snapshots/").append(snapshotId)
- .append("/metadata")
- .toString(), Entity.json(metadata), Void.class);
+ super(CLIENT, HttpMethod.PUT,
+ new StringBuilder("/snapshots/").append(snapshotId).append("/metadata").toString(),
+ Entity.json(metadata), Void.class);
}
}