public class OpenStackTenants extends AbstractCoreResources<OpenStackTenantParam> implements TopLevelResources<OpenStackTenantParam>
Base URL: "/v2/keystone"
Constructor and Description |
---|
OpenStackTenants(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
OpenStackTenantParam |
get(java.lang.String id)
Gets OpenStack tenant with given ID.
|
java.util.List<OpenStackTenantParam> |
getAll()
Gets all OpenStack tenants.
|
java.util.List<OpenStackTenantParam> |
getAll(ResourceFilter<OpenStackTenantParam> filter)
Gets all resources for this resource type.
|
OSTenantListRestRep |
getOpenStackTenants()
Lists all OpenStack tenants.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all OpenStack tenants.
|
OSTenantListRestRep |
registerOpenStackTenants(OpenStackTenantListParam list)
Creates representation of OpenStack Tenants in CoprHD.
|
void |
synchronizeOpenStackTenants() |
OSTenantListRestRep |
updateOpenStackTenants(OSTenantListRestRep list)
Updates OpenStack tenants.
|
OpenStackTenants |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
OpenStackTenants |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
addTags, get, get, getByIds, getByIds, getByRefs, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags
public OpenStackTenants(ViPRCoreClient parent, RestClient client)
public OpenStackTenants withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<OpenStackTenantParam>
inactive
- whether to include inactive resources.public OpenStackTenants withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<OpenStackTenantParam>
internal
- whether to include internal resources.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /v2/keystone/tenants
list
in interface TopLevelResources<OpenStackTenantParam>
public java.util.List<OpenStackTenantParam> getAll()
getAll
in interface TopLevelResources<OpenStackTenantParam>
TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection)
public OSTenantListRestRep getOpenStackTenants()
API Call: GET /v2/keystone/ostenants
public OSTenantListRestRep updateOpenStackTenants(OSTenantListRestRep list)
API Call: PUT /v2/keystone/ostenants
list
- list of OpenStack tenants to update.public java.util.List<OpenStackTenantParam> getAll(ResourceFilter<OpenStackTenantParam> filter)
TopLevelResources
Gets all resources for this resource type. This is combination of the list() call combined with a bulk query to retrieve the resources. This optionally filters the results by the filter specified.
API Call: GET /RESOURCE_PATH
getAll
in interface TopLevelResources<OpenStackTenantParam>
filter
- the resource filter to apply to the results as they are returned (optional).TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection, ResourceFilter)
public OpenStackTenantParam get(java.lang.String id)
API Call: PUT /v2/keystone/tenants/{id}
id
- the OpenStack tenant ID.public OSTenantListRestRep registerOpenStackTenants(OpenStackTenantListParam list)
API Call: PUT /v2/keystone/tenants
public void synchronizeOpenStackTenants()