diff options
Diffstat (limited to 'keystone-client/src/main/java')
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); + } } |