public class BlockFullCopies extends ProjectResources<VolumeRestRep> implements TaskResources<VolumeRestRep>
Constructor and Description |
---|
BlockFullCopies(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
Tasks<VolumeRestRep> |
activateFullCopy(java.net.URI copyId)
Begins activating a full copy of the given block volume.
|
VolumeRestRep |
checkFullCopyProgress(java.net.URI copyId)
Gets the full copy volume with an updated value of the progress of the operation.
|
Tasks<VolumeRestRep> |
detachFullCopy(java.net.URI copyId)
Begins detach a full copy of the given block volume.
|
Task<VolumeRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<VolumeRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
Tasks<VolumeRestRep> |
restoreFromFullCopy(java.net.URI copyId)
Begins restore from a full copy of the given block volume.
|
Tasks<VolumeRestRep> |
resynchronizeFullCopy(java.net.URI copyId)
Begins resynchronizing a full copy of the given block volume.
|
Tasks<VolumeRestRep> |
startFullCopy(java.net.URI copyId)
Begins creating group synchronization between
volume group and full copy group.
|
BlockFullCopies |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
BlockFullCopies |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
findByProject, findByProject, findByProject, findByProject, search
getByIds, getByRefs, listBulkIds
addTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, updateTags
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByIds, getByRefs
addTags, get, get, getTags, removeTags, updateTags
public BlockFullCopies(ViPRCoreClient parent, RestClient client)
public BlockFullCopies withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<VolumeRestRep>
inactive
- whether to include inactive resources.public BlockFullCopies withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<VolumeRestRep>
internal
- whether to include internal resources.public Tasks<VolumeRestRep> getTasks(java.net.URI id)
TaskResources
API Call: GET baseUrl/{id}/tasks
getTasks
in interface TaskResources<VolumeRestRep>
id
- the resource ID.public Task<VolumeRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResources
API Call: GET baseUrl/{id}/tasks/{taskId}
getTask
in interface TaskResources<VolumeRestRep>
id
- the resource ID.taskId
- the task ID.public Tasks<VolumeRestRep> activateFullCopy(java.net.URI copyId)
API Call: POST /block/full-copies/{id}/activate
copyId
- the ID of the full copy to activate.public Tasks<VolumeRestRep> restoreFromFullCopy(java.net.URI copyId)
API Call: POST /block/full-copies/{id}/restore
copyId
- the ID of the full copy to restore from.public Tasks<VolumeRestRep> resynchronizeFullCopy(java.net.URI copyId)
API Call: POST /block/full-copies/{id}/resynchronize
copyId
- the ID of the full copy to resynchronize.public Tasks<VolumeRestRep> detachFullCopy(java.net.URI copyId)
API Call: POST /block/full-copies/{id}/detach
copyId
- the ID of the full copy to detach.public Tasks<VolumeRestRep> startFullCopy(java.net.URI copyId)
API Call: POST /block/full-copies/{id}/start
copyId
- the ID of the full copy.public VolumeRestRep checkFullCopyProgress(java.net.URI copyId)
API Call: POST /block/full-copies/{id}/check-progress
copyId
- the ID of the full copy.VolumeRestRep.FullCopyRestRep#getPercentSynced()