public class StorageTiers extends AbstractCoreBulkResources<StorageTierRestRep> implements TopLevelResources<StorageTierRestRep>
Base URL: /vdc/storage-tiers
Constructor and Description |
---|
StorageTiers(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
java.util.List<StorageTierRestRep> |
getAll()
Gets the list of all storage tiers.
|
java.util.List<StorageTierRestRep> |
getAll(ResourceFilter<StorageTierRestRep> filter)
Gets the list of all storage tiers, optionally filtering the results.
|
java.util.List<StorageTierRestRep> |
getByAutoTieringPolicy(java.net.URI id)
Gets the list of storage pools for the given auto tier policy by ID.
|
java.util.List<StorageTierRestRep> |
getByStoragePool(java.net.URI id)
Gets the list of storage pools for the given storage pool by ID.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all storage tiers.
|
java.util.List<NamedRelatedResourceRep> |
listByAutoTieringPolicy(java.net.URI autoTierPolicyId)
Lists the storage pools for the given auto tier policy by ID.
|
java.util.List<NamedRelatedResourceRep> |
listByStoragePool(java.net.URI storagePoolId)
Lists the storage tiers for the given storage pool by ID.
|
StorageTiers |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
StorageTiers |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
getByIds, getByRefs, listBulkIds
addTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByIds, getByRefs
addTags, get, get, getTags, removeTags, search, updateTags
public StorageTiers(ViPRCoreClient parent, RestClient client)
public StorageTiers withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<StorageTierRestRep>
inactive
- whether to include inactive resources.public StorageTiers withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<StorageTierRestRep>
internal
- whether to include internal resources.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /vdc/storage-tiers
list
in interface TopLevelResources<StorageTierRestRep>
public java.util.List<StorageTierRestRep> getAll()
getAll
in interface TopLevelResources<StorageTierRestRep>
TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection)
public java.util.List<StorageTierRestRep> getAll(ResourceFilter<StorageTierRestRep> filter)
getAll
in interface TopLevelResources<StorageTierRestRep>
filter
- the resource filter to apply to the results as they are returned (optional).TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection, ResourceFilter)
public java.util.List<NamedRelatedResourceRep> listByStoragePool(java.net.URI storagePoolId)
API Call: GET /vdc/storage-pools/{storagePoolId}/storage-tiers
storagePoolId
- the ID of the storage pool.public java.util.List<StorageTierRestRep> getByStoragePool(java.net.URI id)
id
- the ID of the storage pool.public java.util.List<NamedRelatedResourceRep> listByAutoTieringPolicy(java.net.URI autoTierPolicyId)
API Call: GET /vdc/auto-tier-policy/{autoTierPolicyId}/storage-tiers
autoTierPolicyId
- the ID of the auto tier policy.public java.util.List<StorageTierRestRep> getByAutoTieringPolicy(java.net.URI id)
id
- the ID of the auto tier policy.