public class BlockMigrations extends AbstractCoreBulkResources<MigrationRestRep> implements TopLevelResources<MigrationRestRep>, TaskResources<MigrationRestRep>
Base URL: /block/migrations
MigrationRestRep
Constructor and Description |
---|
BlockMigrations(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
Task<MigrationRestRep> |
cancel(java.net.URI id)
Begins canceling a block volume migration.
|
Task<MigrationRestRep> |
commit(java.net.URI id)
Begins committing a block volume migration.
|
java.util.List<MigrationRestRep> |
getAll()
Gets all resources for this resource type.
|
java.util.List<MigrationRestRep> |
getAll(ResourceFilter<MigrationRestRep> filter)
Gets all resources for this resource type.
|
Task<MigrationRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<MigrationRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all block volume migrations.
|
Task<MigrationRestRep> |
pause(java.net.URI id)
Begins pausing a block volume migration.
|
Task<MigrationRestRep> |
resume(java.net.URI id)
Begins resuming a block volume migration.
|
BlockMigrations |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
BlockMigrations |
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 BlockMigrations(ViPRCoreClient parent, RestClient client)
public BlockMigrations withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<MigrationRestRep>
inactive
- whether to include inactive resources.public BlockMigrations withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<MigrationRestRep>
internal
- whether to include internal resources.public Tasks<MigrationRestRep> getTasks(java.net.URI id)
TaskResources
API Call: GET baseUrl/{id}/tasks
getTasks
in interface TaskResources<MigrationRestRep>
id
- the resource ID.public Task<MigrationRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResources
API Call: GET baseUrl/{id}/tasks/{taskId}
getTask
in interface TaskResources<MigrationRestRep>
id
- the resource ID.taskId
- the task ID.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /block/migrations
list
in interface TopLevelResources<MigrationRestRep>
public java.util.List<MigrationRestRep> getAll()
TopLevelResources
Gets all resources for this resource type. This is combination of the list() call combined with a bulk query to retrieve the resources.
API Call: GET /RESOURCE_PATH
getAll
in interface TopLevelResources<MigrationRestRep>
TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection)
public java.util.List<MigrationRestRep> getAll(ResourceFilter<MigrationRestRep> 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<MigrationRestRep>
filter
- the resource filter to apply to the results as they are returned (optional).TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection, ResourceFilter)
public Task<MigrationRestRep> pause(java.net.URI id)
API Call: POST /block/migrations/{id}/pause
id
- the ID of the block volume migration.public Task<MigrationRestRep> resume(java.net.URI id)
API Call: POST /block/migrations/{id}/resume
id
- the ID of the block volume migration.public Task<MigrationRestRep> commit(java.net.URI id)
API Call: POST /block/migrations/{id}/commit
id
- the ID of the block volume migration.public Task<MigrationRestRep> cancel(java.net.URI id)
API Call: POST /block/migrations/{id}/cancel
id
- the ID of the block volume migration.