public class ProjectServiceImpl extends BaseOpenStackService implements ProjectService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
ProjectServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Project |
create(Project project)
Creates a new Project
|
Project |
create(String domainId,
String name,
String description,
boolean enabled)
Creates a new Project
|
ActionResponse |
delete(String projectId)
delete a project by id
|
Project |
get(String projectId)
get detailed information on a project
|
List<? extends Project> |
getByName(String projectName)
get detailed information about projects machting specified name across all domains
|
Project |
getByName(String projectName,
String domainId)
get detailed information about a project specified by project name and domain id
|
List<? extends Project> |
list()
list all projects the current token has access to
|
Project |
update(Project project)
updates an existing project
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic Project create(Project project)
ProjectServicecreate in interface ProjectServiceproject - the project to createpublic Project create(String domainId, String name, String description, boolean enabled)
ProjectServicecreate in interface ProjectServicedomainId - the domain idname - the name of the new projectdescription - the description of the new projectenabled - the enabled status of the new projectpublic Project get(String projectId)
ProjectServiceget in interface ProjectServiceprojectId - the project idpublic List<? extends Project> getByName(String projectName)
ProjectServicegetByName in interface ProjectServiceprojectName - the project namepublic Project getByName(String projectName, String domainId)
ProjectServicegetByName in interface ProjectServiceprojectName - the project namedomainId - the domain idpublic Project update(Project project)
ProjectServiceupdate in interface ProjectServiceproject - the project set to updatepublic ActionResponse delete(String projectId)
ProjectServicedelete in interface ProjectServiceprojectId - the project idpublic List<? extends Project> list()
ProjectServicelist in interface ProjectServiceCopyright © 2017. All rights reserved.