Package com.adobe.aio.cloudmanager
Interface Pipeline
-
public interface PipelineA Pipeline definition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPipeline.IdPredicatePredicate to use for retrieving a pipeline based on its id.static classPipeline.NamePredicatePredicate to use for retrieving a pipeline based on its name.static classPipeline.StatusPipeline status values
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete()Delete this pipeline.Optional<PipelineExecution>getCurrentExecution()Get the current execution of this pipeline, if it exists.PipelineExecutiongetExecution(String executionId)Get the execution.StringgetId()The id of this pipeline.StringgetName()The name of this pipeline.StringgetProgramId()The program context of this pipeline.Pipeline.StatusgetStatusState()The current status of the PipelineSet<Variable>getVariables()Retrieve the variables associated with this pipeline.voidinvalidateCache()Invalidate the build cache for this pipeline.Set<Variable>setVariables(Variable... variables)Set the variables on this pipeline.PipelineExecutionstartExecution()Start this pipeline.Pipelineupdate(PipelineUpdate update)Update this pipeline with the specified changes.
-
-
-
Method Detail
-
getId
String getId()
The id of this pipeline.- Returns:
- the id
-
getProgramId
String getProgramId()
The program context of this pipeline.- Returns:
- the program id
-
getName
String getName()
The name of this pipeline.- Returns:
- the name
-
getStatusState
Pipeline.Status getStatusState()
The current status of the Pipeline- Returns:
- the status
-
delete
void delete() throws CloudManagerApiExceptionDelete this pipeline.- Throws:
CloudManagerApiException- when any error occurs
-
update
Pipeline update(PipelineUpdate update) throws CloudManagerApiException
Update this pipeline with the specified changes.- Parameters:
update- the updates to make to this pipeline- Returns:
- the updated Pipeline.
- Throws:
CloudManagerApiException- when any errors occur
-
invalidateCache
void invalidateCache() throws CloudManagerApiExceptionInvalidate the build cache for this pipeline.- Throws:
CloudManagerApiException- when any error occurs
-
getCurrentExecution
Optional<PipelineExecution> getCurrentExecution() throws CloudManagerApiException
Get the current execution of this pipeline, if it exists.- Returns:
- An optional containing the execution details of the pipeline
- Throws:
CloudManagerApiException- when any error occurs
-
startExecution
PipelineExecution startExecution() throws CloudManagerApiException
Start this pipeline.- Returns:
- the new execution.
- Throws:
CloudManagerApiException- when any errors occur.
-
getExecution
PipelineExecution getExecution(String executionId) throws CloudManagerApiException
Get the execution.- Parameters:
executionId- the id of the execution to retrieve- Returns:
- the execution details
- Throws:
CloudManagerApiException- when any error occurs
-
getVariables
Set<Variable> getVariables() throws CloudManagerApiException
Retrieve the variables associated with this pipeline.- Returns:
- the variables in this pipeline
- Throws:
CloudManagerApiException- when any errors occur
-
setVariables
Set<Variable> setVariables(Variable... variables) throws CloudManagerApiException
Set the variables on this pipeline.- Parameters:
variables- the variables to set- Returns:
- the complete list of variables in this pipeline
- Throws:
CloudManagerApiException- when any error occurs
-
-