public class StorageProviders extends AbstractCoreBulkResources<StorageProviderRestRep> implements TopLevelResources<StorageProviderRestRep>, TaskResources<StorageProviderRestRep>
Base URL: /vdc/storage-providers
Constructor and Description |
---|
StorageProviders(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
Task<StorageProviderRestRep> |
create(StorageProviderCreateParam input)
Begins creating a new storage provider.
|
void |
deactivate(java.net.URI id)
Deactivates the given storage provider by ID.
|
java.util.List<StorageProviderRestRep> |
getAll()
Gets a list of all SMI-S providers.
|
java.util.List<StorageProviderRestRep> |
getAll(ResourceFilter<StorageProviderRestRep> filter)
Gets a list of all SMI-S providers, optionally filtering the results.
|
Task<StorageProviderRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<StorageProviderRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all Storage providers.
|
java.util.List<DecommissionedResourceRep> |
listDeactivatedSystems()
Gets all deactivated systems.
|
Tasks<StorageProviderRestRep> |
scanAll()
Scans all storage providers.
|
StorageProviderRestRep |
update(java.net.URI id,
StorageProviderUpdateParam input)
Updates the given storage provider by ID.
|
StorageProviders |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
StorageProviders |
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 StorageProviders(ViPRCoreClient parent, RestClient client)
public StorageProviders withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<StorageProviderRestRep>
inactive
- whether to include inactive resources.public StorageProviders withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<StorageProviderRestRep>
internal
- whether to include internal resources.public Tasks<StorageProviderRestRep> getTasks(java.net.URI id)
TaskResources
API Call: GET baseUrl/{id}/tasks
getTasks
in interface TaskResources<StorageProviderRestRep>
id
- the resource ID.public Task<StorageProviderRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResources
API Call: GET baseUrl/{id}/tasks/{taskId}
getTask
in interface TaskResources<StorageProviderRestRep>
id
- the resource ID.taskId
- the task ID.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /vdc/storage-providers
list
in interface TopLevelResources<StorageProviderRestRep>
public java.util.List<StorageProviderRestRep> getAll()
getAll
in interface TopLevelResources<StorageProviderRestRep>
TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection)
public java.util.List<StorageProviderRestRep> getAll(ResourceFilter<StorageProviderRestRep> filter)
getAll
in interface TopLevelResources<StorageProviderRestRep>
filter
- the resource filter to apply to the results as they are returned (optional).TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection, ResourceFilter)
public Task<StorageProviderRestRep> create(StorageProviderCreateParam input)
API Call: POST /vdc/storage-providers
input
- the create configuration.public StorageProviderRestRep update(java.net.URI id, StorageProviderUpdateParam input)
API Call: PUT /vdc/storage-providers/{id}
id
- the ID of the SMI-S provider.input
- the update configuration.public void deactivate(java.net.URI id)
API Call: POST /vdc/storage-providers/{id}/deactivate
id
- the ID of the SMI-S provider.public Tasks<StorageProviderRestRep> scanAll()
API Call: POST /vdc/storage-providers/scan
public java.util.List<DecommissionedResourceRep> listDeactivatedSystems()
API Call: GET /vdc/storage-providers/deactivated-systems