summaryrefslogtreecommitdiffstats
path: root/keystone-client/src
diff options
context:
space:
mode:
authorseshukm <seshu.kumar.m@huawei.com>2018-07-25 18:10:37 +0800
committerseshukm <seshu.kumar.m@huawei.com>2018-07-25 18:10:37 +0800
commita9bc456b0de6ad5158665f960e4860269544ce46 (patch)
treec98dd56ea93e6f045550e8ab88826aa110c5cca4 /keystone-client/src
parent7631ccf856ab4e739bd9e9bb5ac6f7985f5a37ec (diff)
fix isues in keystone
Issue-ID: SO-729 Change-Id: I34034515d873fee47ef313fcd33838b220b8705d Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'keystone-client/src')
-rw-r--r--keystone-client/src/main/java/com/woorea/openstack/keystone/api/EndpointsResource.java108
-rw-r--r--keystone-client/src/main/java/com/woorea/openstack/keystone/api/RolesResource.java86
-rw-r--r--keystone-client/src/main/java/com/woorea/openstack/keystone/api/ServicesResource.java108
-rw-r--r--keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/CredentialsResources.java6
-rw-r--r--keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/DomainGroupRolesResource.java6
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<Endpoints> {
-
- public List() {
- super(client, HttpMethod.GET, "/endpoints", null, Endpoints.class);
- }
+ public class List extends OpenStackRequest<Endpoints> {
+
+ public List() {
+ super(client, HttpMethod.GET, "/endpoints", null, Endpoints.class);
+ }
- }
-
- public class Create extends OpenStackRequest<Endpoint> {
+ }
+
+ public class Create extends OpenStackRequest<Endpoint> {
- 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<Endpoint> {
-
- 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<Endpoint> {
+
+ public Show(String id) {
+ super(client, HttpMethod.GET, new StringBuilder("/endpoints/").append(id).toString(), null, Endpoint.class);
+ }
- }
-
- public class Delete extends OpenStackRequest<Void> {
-
- public Delete(String id) {
- super(client, HttpMethod.DELETE, new StringBuilder("/endpoints/").append(id).toString(), null, Void.class);
- }
-
- }
-
+ }
+
+ public class Delete extends OpenStackRequest<Void> {
+
+ 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<Roles> {
-
- public List() {
- super(client, HttpMethod.GET, "/OS-KSADM/roles", null, Roles.class);
- }
+ public class List extends OpenStackRequest<Roles> {
+
+ public List() {
+ super(client, HttpMethod.GET, "/OS-KSADM/roles", null, Roles.class);
+ }
- }
-
- public class Create extends OpenStackRequest<Role> {
+ }
+
+ public class Create extends OpenStackRequest<Role> {
- 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<Void> {
-
- 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<Void> {
+
+ 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<Services> {
-
- public List() {
- super(client, HttpMethod.GET, "/OS-KSADM/services", null, Services.class);
- }
+ public class List extends OpenStackRequest<Services> {
+
+ public List() {
+ super(client, HttpMethod.GET, "/OS-KSADM/services", null, Services.class);
+ }
- }
-
- public class Create extends OpenStackRequest<Service> {
+ }
+
+ public class Create extends OpenStackRequest<Service> {
- 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<Service> {
-
- 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<Service> {
+
+ public Show(String id) {
+ super(client, HttpMethod.GET, new StringBuilder("/OS-KSADM/services/").append(id).toString(), null, Service.class);
+ }
- }
-
- public class Delete extends OpenStackRequest<Void> {
-
- public Delete(String id) {
- super(client, HttpMethod.DELETE, new StringBuilder("/OS-KSADM/services/").append(id).toString(), null, Void.class);
- }
-
- }
-
+ }
+
+ public class Delete extends OpenStackRequest<Void> {
+
+ 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<Credential, Credentials> {
- 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<Role, Roles> {
- 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);
+ }
}