public class Workflows extends AbstractCoreResources<WorkflowRestRep>
Base URL: /vdc/workflows
Constructor and Description |
---|
Workflows(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
java.util.List<WorkflowRestRep> |
getActive()
Gets the list of active workflows.
|
java.util.List<WorkflowRestRep> |
getAll()
Gets the list of all workflows.
|
java.util.List<WorkflowRestRep> |
getCompleted()
Gets the list of completed workflows.
|
java.util.List<WorkflowRestRep> |
getRecent()
Gets the list of recent workflows.
|
WorkflowStepRestRep |
getStep(java.net.URI id)
Gets a single workflow step by ID.
|
java.util.List<WorkflowStepRestRep> |
getSteps(java.net.URI id)
Gets the list of steps for the given workflow by ID.
|
Workflows |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
Workflows |
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 Workflows(ViPRCoreClient parent, RestClient client)
public Workflows withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<WorkflowRestRep>
inactive
- whether to include inactive resources.public Workflows withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<WorkflowRestRep>
internal
- whether to include internal resources.public java.util.List<WorkflowRestRep> getAll()
API Call: GET /vdc/workflows
public java.util.List<WorkflowRestRep> getActive()
API Call: GET /vdc/workflows/active
public java.util.List<WorkflowRestRep> getCompleted()
API Call: GET /vdc/workflows/completed
public java.util.List<WorkflowRestRep> getRecent()
API Call: GET /vdc/workflows/recent
public java.util.List<WorkflowStepRestRep> getSteps(java.net.URI id)
API Call: GET /vdc/workflows/{id}/steps
id
- the ID of the workflow.public WorkflowStepRestRep getStep(java.net.URI id)
API Call: GET /vdc/workflows/steps/{id}
id
- the ID of the workflow step.