use of com.emc.storageos.model.project.ProjectParam in project coprhd-controller by CoprHD.
the class OpenStackSynchronizationTask method createProject.
/**
* Creates a CoprHD Project for given Tenant.
* Sends internal POST API call to InternalTenantsService in order to create Project.
*
* @param tenantOrgId ID of the Project owner.
* @param tenant OpenStack Tenant.
*
* @return URI of newly created Project.
*/
public URI createProject(URI tenantOrgId, KeystoneTenant tenant) {
ProjectParam projectParam = new ProjectParam(tenant.getName() + CinderConstants.PROJECT_NAME_SUFFIX);
ProjectElement projectResp = _internalTenantServiceClient.createProject(tenantOrgId, projectParam);
return projectResp.getId();
}
Aggregations