summaryrefslogtreecommitdiffstats
path: root/keystone-client
diff options
context:
space:
mode:
authorseshukm <seshu.kumar.m@huawei.com>2018-07-25 18:15:00 +0800
committerseshukm <seshu.kumar.m@huawei.com>2018-07-25 18:15:00 +0800
commit04cb212b3a38879b0013a62bca9fb56337ef839e (patch)
treee66b396d9ffa1a5088e0c0a7f3ded069ed41839c /keystone-client
parent4f27ba159b9786fd440c7b07f19da26b5a65786c (diff)
code cleanup keystone
Issue-ID: SO-729 Change-Id: I30977cf33b25d25a6f95120ba961fe890ee4ab93 Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'keystone-client')
-rw-r--r--keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/PoliciesResource.java6
-rw-r--r--keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectGroupRolesResource.java46
-rw-r--r--keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectRolesResource.java32
-rw-r--r--keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectUserRolesResource.java22
4 files changed, 53 insertions, 53 deletions
diff --git a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/PoliciesResource.java b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/PoliciesResource.java
index 97eb70d..594974d 100644
--- a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/PoliciesResource.java
+++ b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/PoliciesResource.java
@@ -24,8 +24,8 @@ import com.woorea.openstack.keystone.v3.model.Policy;
public class PoliciesResource extends GenericResource<Policy, Policies> {
- public PoliciesResource(OpenStackClient client) {
- super(client, "/policies", Policy.class, Policies.class);
- }
+ public PoliciesResource(OpenStackClient client) {
+ super(client, "/policies", Policy.class, Policies.class);
+ }
}
diff --git a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectGroupRolesResource.java b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectGroupRolesResource.java
index bcdedd8..94c7680 100644
--- a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectGroupRolesResource.java
+++ b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectGroupRolesResource.java
@@ -23,28 +23,28 @@ import com.woorea.openstack.keystone.model.Roles;
public class ProjectGroupRolesResource extends GenericResource<Role, Roles> {
- public ProjectGroupRolesResource(OpenStackClient client, String path) {
- super(client, path, Role.class, Roles.class);
- }
-
- @Override
- public OpenStackRequest<Role> create(Role one) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public OpenStackRequest<Role> show(String id) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public OpenStackRequest<Role> update(String id, Role one) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public OpenStackRequest<Role> delete(String id) {
- throw new UnsupportedOperationException();
- }
+ public ProjectGroupRolesResource(OpenStackClient client, String path) {
+ super(client, path, Role.class, Roles.class);
+ }
+
+ @Override
+ public OpenStackRequest<Role> create(Role one) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public OpenStackRequest<Role> show(String id) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public OpenStackRequest<Role> update(String id, Role one) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public OpenStackRequest<Role> delete(String id) {
+ throw new UnsupportedOperationException();
+ }
}
diff --git a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectRolesResource.java b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectRolesResource.java
index 9902826..a2cd01c 100644
--- a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectRolesResource.java
+++ b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectRolesResource.java
@@ -22,22 +22,22 @@ import com.woorea.openstack.base.client.OpenStackClient;
import com.woorea.openstack.base.client.OpenStackRequest;
public class ProjectRolesResource {
-
- private final OpenStackClient CLIENT;
-
- private final String PATH;
+
+ private final OpenStackClient CLIENT;
+
+ private final String PATH;
- public ProjectRolesResource(OpenStackClient client, String path) {
- this.CLIENT = client;
- this.PATH = path;
- }
-
- public OpenStackRequest<Void> add(String roleId) {
- return new OpenStackRequest<>(CLIENT, HttpMethod.PUT, new StringBuilder(PATH).append("/").append(roleId).toString(), Entity.json(""), Void.class);
- }
-
- public OpenStackRequest<Void> remove(String roleId) {
- return new OpenStackRequest<>(CLIENT, HttpMethod.DELETE, new StringBuilder(PATH).append("/").append(roleId).toString(), null, Void.class);
- }
+ public ProjectRolesResource(OpenStackClient client, String path) {
+ this.CLIENT = client;
+ this.PATH = path;
+ }
+
+ public OpenStackRequest<Void> add(String roleId) {
+ return new OpenStackRequest<>(CLIENT, HttpMethod.PUT, new StringBuilder(PATH).append("/").append(roleId).toString(), Entity.json(""), Void.class);
+ }
+
+ public OpenStackRequest<Void> remove(String roleId) {
+ return new OpenStackRequest<>(CLIENT, HttpMethod.DELETE, new StringBuilder(PATH).append("/").append(roleId).toString(), null, Void.class);
+ }
}
diff --git a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectUserRolesResource.java b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectUserRolesResource.java
index 255dfc1..95f5d0c 100644
--- a/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectUserRolesResource.java
+++ b/keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectUserRolesResource.java
@@ -25,16 +25,16 @@ import com.woorea.openstack.keystone.model.Roles;
public class ProjectUserRolesResource extends GenericResource<Role, Roles> {
- public ProjectUserRolesResource(OpenStackClient client, String path) {
- super(client, path, Role.class, Roles.class);
- }
-
- public OpenStackRequest<Void> add(String roleId) {
- return new OpenStackRequest<>(CLIENT, HttpMethod.PUT, new StringBuilder(path).append("/").append(roleId).toString(), Entity.json(""), Void.class);
- }
-
- public OpenStackRequest<Void> remove(String roleId) {
- return new OpenStackRequest<>(CLIENT, HttpMethod.DELETE, new StringBuilder(path).append("/").append(roleId).toString(), null, Void.class);
- }
+ public ProjectUserRolesResource(OpenStackClient client, String path) {
+ super(client, path, Role.class, Roles.class);
+ }
+
+ public OpenStackRequest<Void> add(String roleId) {
+ return new OpenStackRequest<>(CLIENT, HttpMethod.PUT, new StringBuilder(path).append("/").append(roleId).toString(), Entity.json(""), Void.class);
+ }
+
+ public OpenStackRequest<Void> remove(String roleId) {
+ return new OpenStackRequest<>(CLIENT, HttpMethod.DELETE, new StringBuilder(path).append("/").append(roleId).toString(), null, Void.class);
+ }
}