From a9bc456b0de6ad5158665f960e4860269544ce46 Mon Sep 17 00:00:00 2001 From: seshukm Date: Wed, 25 Jul 2018 18:10:37 +0800 Subject: fix isues in keystone Issue-ID: SO-729 Change-Id: I34034515d873fee47ef313fcd33838b220b8705d Signed-off-by: seshukm --- .../openstack/keystone/api/EndpointsResource.java | 108 ++++++++++----------- .../openstack/keystone/api/RolesResource.java | 86 ++++++++-------- .../openstack/keystone/api/ServicesResource.java | 108 ++++++++++----------- .../keystone/v3/api/CredentialsResources.java | 6 +- .../keystone/v3/api/DomainGroupRolesResource.java | 6 +- 5 files changed, 157 insertions(+), 157 deletions(-) diff --git a/keystone-client/src/main/java/com/woorea/openstack/keystone/api/EndpointsResource.java b/keystone-client/src/main/java/com/woorea/openstack/keystone/api/EndpointsResource.java index 9b1580c..db970a5 100644 --- a/keystone-client/src/main/java/com/woorea/openstack/keystone/api/EndpointsResource.java +++ b/keystone-client/src/main/java/com/woorea/openstack/keystone/api/EndpointsResource.java @@ -25,63 +25,63 @@ import com.woorea.openstack.keystone.model.Endpoint; import com.woorea.openstack.keystone.model.Endpoints; public class EndpointsResource { - - private OpenStackClient client; - - public EndpointsResource(OpenStackClient client) { - this.client = client; - } - - public List list() { - return new List(); - } - - public Create create(Endpoint endpoint) { - return new Create(endpoint); - } - - public Show show(String id) { - return new Show(id); - } + + private OpenStackClient client; + + public EndpointsResource(OpenStackClient client) { + this.client = client; + } + + public List list() { + return new List(); + } + + public Create create(Endpoint endpoint) { + return new Create(endpoint); + } + + public Show show(String id) { + return new Show(id); + } - - public Delete delete(String id) { - return new Delete(id); - } + + public Delete delete(String id) { + return new Delete(id); + } - public class List extends OpenStackRequest { - - public List() { - super(client, HttpMethod.GET, "/endpoints", null, Endpoints.class); - } + public class List extends OpenStackRequest { + + public List() { + super(client, HttpMethod.GET, "/endpoints", null, Endpoints.class); + } - } - - public class Create extends OpenStackRequest { + } + + public class Create extends OpenStackRequest { - private Endpoint endpoint; - - public Create(Endpoint endpoint) { - super(client, HttpMethod.POST, "/endpoints", Entity.json(endpoint), Endpoint.class); - this.endpoint = endpoint; - } - - } - - public class Show extends OpenStackRequest { - - public Show(String id) { - super(client, HttpMethod.GET, new StringBuilder("/endpoints/").append(id).toString(), null, Endpoint.class); - } + private Endpoint endpoint; + + public Create(Endpoint endpoint) { + super(client, HttpMethod.POST, "/endpoints", Entity.json(endpoint), Endpoint.class); + this.endpoint = endpoint; + } + + } + + public class Show extends OpenStackRequest { + + public Show(String id) { + super(client, HttpMethod.GET, new StringBuilder("/endpoints/").append(id).toString(), null, Endpoint.class); + } - } - - public class Delete extends OpenStackRequest { - - public Delete(String id) { - super(client, HttpMethod.DELETE, new StringBuilder("/endpoints/").append(id).toString(), null, Void.class); - } - - } - + } + + public class Delete extends OpenStackRequest { + + public Delete(String id) { + super(client, HttpMethod.DELETE, new StringBuilder("/endpoints/").append(id).toString(), null, Void.class); + } + + } + } diff --git a/keystone-client/src/main/java/com/woorea/openstack/keystone/api/RolesResource.java b/keystone-client/src/main/java/com/woorea/openstack/keystone/api/RolesResource.java index d4dd6d3..71641fb 100644 --- a/keystone-client/src/main/java/com/woorea/openstack/keystone/api/RolesResource.java +++ b/keystone-client/src/main/java/com/woorea/openstack/keystone/api/RolesResource.java @@ -25,50 +25,50 @@ import com.woorea.openstack.keystone.model.Role; import com.woorea.openstack.keystone.model.Roles; public class RolesResource { - - private OpenStackClient client; - - public RolesResource(OpenStackClient client) { - this.client = client; - } - - public List list() { - return new List(); - } - - public Create create(Role role) { - return new Create(role); - } - - public Delete delete(String id) { - return new Delete(id); - } + + private OpenStackClient client; + + public RolesResource(OpenStackClient client) { + this.client = client; + } + + public List list() { + return new List(); + } + + public Create create(Role role) { + return new Create(role); + } + + public Delete delete(String id) { + return new Delete(id); + } - public class List extends OpenStackRequest { - - public List() { - super(client, HttpMethod.GET, "/OS-KSADM/roles", null, Roles.class); - } + public class List extends OpenStackRequest { + + public List() { + super(client, HttpMethod.GET, "/OS-KSADM/roles", null, Roles.class); + } - } - - public class Create extends OpenStackRequest { + } + + public class Create extends OpenStackRequest { - private Role role; - - public Create(Role role) { - super(client, HttpMethod.POST, "/OS-KSADM/roles", Entity.json(role), Role.class); - this.role = role; - } - - } - - public class Delete extends OpenStackRequest { - - public Delete(String id) { - super(client, HttpMethod.DELETE, new StringBuilder("/OS-KSADM/roles/").append(id).toString(), null, Void.class); - } - - } - + private Role role; + + public Create(Role role) { + super(client, HttpMethod.POST, "/OS-KSADM/roles", Entity.json(role), Role.class); + this.role = role; + } + + } + + public class Delete extends OpenStackRequest { + + public Delete(String id) { + super(client, HttpMethod.DELETE, new StringBuilder("/OS-KSADM/roles/").append(id).toString(), null, Void.class); + } + + } + } diff --git a/keystone-client/src/main/java/com/woorea/openstack/keystone/api/ServicesResource.java b/keystone-client/src/main/java/com/woorea/openstack/keystone/api/ServicesResource.java index bf0a439..315d2be 100644 --- a/keystone-client/src/main/java/com/woorea/openstack/keystone/api/ServicesResource.java +++ b/keystone-client/src/main/java/com/woorea/openstack/keystone/api/ServicesResource.java @@ -25,62 +25,62 @@ import com.woorea.openstack.keystone.model.Service; import com.woorea.openstack.keystone.model.Services; public class ServicesResource { - - private OpenStackClient client; - - public ServicesResource(OpenStackClient client) { - this.client = client; - } - - public List list() { - return new List(); - } - - public Create create(Service service) { - return new Create(service); - } - - public Show show(String id) { - return new Show(id); - } - - public Delete delete(String id) { - return new Delete(id); - } + + private OpenStackClient client; + + public ServicesResource(OpenStackClient client) { + this.client = client; + } + + public List list() { + return new List(); + } + + public Create create(Service service) { + return new Create(service); + } + + public Show show(String id) { + return new Show(id); + } + + public Delete delete(String id) { + return new Delete(id); + } - public class List extends OpenStackRequest { - - public List() { - super(client, HttpMethod.GET, "/OS-KSADM/services", null, Services.class); - } + public class List extends OpenStackRequest { + + public List() { + super(client, HttpMethod.GET, "/OS-KSADM/services", null, Services.class); + } - } - - public class Create extends OpenStackRequest { + } + + public class Create extends OpenStackRequest { - private Service service; - - public Create(Service service) { - super(client, HttpMethod.POST, "/OS-KSADM/services", Entity.json(service), Service.class); - this.service = service; - } - - } - - public class Show extends OpenStackRequest { - - public Show(String id) { - super(client, HttpMethod.GET, new StringBuilder("/OS-KSADM/services/").append(id).toString(), null, Service.class); - } + private Service service; + + public Create(Service service) { + super(client, HttpMethod.POST, "/OS-KSADM/services", Entity.json(service), Service.class); + this.service = service; + } + + } + + public class Show extends OpenStackRequest { + + public Show(String id) { + super(client, HttpMethod.GET, new StringBuilder("/OS-KSADM/services/").append(id).toString(), null, Service.class); + } - } - - public class Delete extends OpenStackRequest { - - public Delete(String id) { - super(client, HttpMethod.DELETE, new StringBuilder("/OS-KSADM/services/").append(id).toString(), null, Void.class); - } - - } - + } + + public class Delete extends OpenStackRequest { + + public Delete(String id) { + super(client, HttpMethod.DELETE, new StringBuilder("/OS-KSADM/services/").append(id).toString(), null, Void.class); + } + + } + } diff --git a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/CredentialsResources.java b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/CredentialsResources.java index 19d9a10..4f67f6c 100644 --- a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/CredentialsResources.java +++ b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/CredentialsResources.java @@ -22,8 +22,8 @@ import com.woorea.openstack.keystone.v3.model.Credentials; public class CredentialsResources extends GenericResource { - public CredentialsResources(OpenStackClient client) { - super(client, "/credentials", Credential.class, Credentials.class); - } + public CredentialsResources(OpenStackClient client) { + super(client, "/credentials", Credential.class, Credentials.class); + } } diff --git a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/DomainGroupRolesResource.java b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/DomainGroupRolesResource.java index bb3e0f8..506b911 100644 --- a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/DomainGroupRolesResource.java +++ b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/DomainGroupRolesResource.java @@ -22,8 +22,8 @@ import com.woorea.openstack.keystone.v3.model.Roles; public class DomainGroupRolesResource extends GenericResource { - public DomainGroupRolesResource(OpenStackClient client, String path) { - super(client, path, Role.class, Roles.class); - } + public DomainGroupRolesResource(OpenStackClient client, String path) { + super(client, path, Role.class, Roles.class); + } } -- cgit 1.2.3-korg