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, uri
public Project create(Project project)
ProjectService
create
in interface ProjectService
project
- the project to createpublic Project create(String domainId, String name, String description, boolean enabled)
ProjectService
create
in interface ProjectService
domainId
- 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)
ProjectService
get
in interface ProjectService
projectId
- the project idpublic List<? extends Project> getByName(String projectName)
ProjectService
getByName
in interface ProjectService
projectName
- the project namepublic Project getByName(String projectName, String domainId)
ProjectService
getByName
in interface ProjectService
projectName
- the project namedomainId
- the domain idpublic Project update(Project project)
ProjectService
update
in interface ProjectService
project
- the project set to updatepublic ActionResponse delete(String projectId)
ProjectService
delete
in interface ProjectService
projectId
- the project idpublic List<? extends Project> list()
ProjectService
list
in interface ProjectService
Copyright © 2017. All rights reserved.