code cleanup keystone 63/57463/1
authorseshukm <seshu.kumar.m@huawei.com>
Wed, 25 Jul 2018 10:15:00 +0000 (18:15 +0800)
committerseshukm <seshu.kumar.m@huawei.com>
Wed, 25 Jul 2018 10:15:00 +0000 (18:15 +0800)
Issue-ID: SO-729

Change-Id: I30977cf33b25d25a6f95120ba961fe890ee4ab93
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/PoliciesResource.java
keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectGroupRolesResource.java
keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectRolesResource.java
keystone-client/src/main/java/com/woorea/openstack/keystone/v3/api/ProjectUserRolesResource.java

index 97eb70d..594974d 100644 (file)
@@ -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);
+    }
 
 }
index bcdedd8..94c7680 100644 (file)
@@ -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();
+    }
 
 }
index 9902826..a2cd01c 100644 (file)
@@ -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);
+    }
 
 }
index 255dfc1..95f5d0c 100644 (file)
@@ -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);
+    }
 
 }