diff options
author | 2018-07-25 18:26:18 +0800 | |
---|---|---|
committer | 2018-07-25 18:26:18 +0800 | |
commit | 740b4d010990734eced5ca97938bc6b6d5124721 (patch) | |
tree | f51bc977d9a3753d3a45e130ee2fe77e946c801b /nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java | |
parent | ce3d8addd91c0828fefbcd13544b148351cbb59d (diff) |
Issues of nova CLIENT
Issue-ID: SO-729
Change-Id: I3e3c79cf8431605755472b4ece51430c3d772814
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java')
-rw-r--r-- | nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java index 8c8908c..f5a0693 100644 --- a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java +++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java @@ -24,37 +24,37 @@ import com.woorea.openstack.nova.model.Host; import com.woorea.openstack.nova.model.Hosts; public class HostsExtension { - - private final OpenStackClient CLIENT; - - public HostsExtension(OpenStackClient client) { - CLIENT = client; - } - - public List list() { - return new List(); - } - - public Show show(String id) { - return new Show(id); - } - - public class List extends OpenStackRequest<Hosts> { - - public List() { - super(CLIENT, HttpMethod.GET, "/os-hosts", null, Hosts.class); - } - - } - - public class Show extends OpenStackRequest<Host> { - - public Show(String id) { - super(CLIENT, HttpMethod.GET, new StringBuffer("/os-hosts/").append(id).toString(), null, Host.class); - } - - } - - - + + private final OpenStackClient CLIENT; + + public HostsExtension(OpenStackClient client) { + CLIENT = client; + } + + public List list() { + return new List(); + } + + public Show show(String id) { + return new Show(id); + } + + public class List extends OpenStackRequest<Hosts> { + + public List() { + super(CLIENT, HttpMethod.GET, "/os-hosts", null, Hosts.class); + } + + } + + public class Show extends OpenStackRequest<Host> { + + public Show(String id) { + super(CLIENT, HttpMethod.GET, new StringBuffer("/os-hosts/").append(id).toString(), null, Host.class); + } + + } + + + } |