Package org.azd.pipelines.runs
Class RunsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.pipelines.runs.RunsRequestBuilder
Provides functionality to work with Pipelines runs Api.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionRunsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget
(int pipelineId, int runId) Gets a run for a particular pipeline.getAsync
(int pipelineId, int runId) Gets a run for a particular pipeline.list
(int pipelineId) Gets top 10000 runs for a particular pipeline.listAsync
(int pipelineId) Gets top 10000 runs for a particular pipeline.run
(int pipelineId, RunPipelineParameters runPipelineParameters) Runs a pipeline.run
(int pipelineId, RunPipelineParameters runPipelineParameters, int pipelineVersion) Runs a pipeline.runAsync
(int pipelineId, RunPipelineParameters runPipelineParameters) Runs a pipeline.runAsync
(int pipelineId, RunPipelineParameters runPipelineParameters, int pipelineVersion) Runs a pipeline.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
RunsRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
getAsync
Gets a run for a particular pipeline.- Parameters:
pipelineId
- The pipeline idrunId
- The run id- Returns:
- Pipeline run object
PipelineRun
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Gets top 10000 runs for a particular pipeline.- Parameters:
pipelineId
- The pipeline id- Returns:
- a list of pipeline run object
PipelineRuns
- Throws:
AzDException
- Default Api Exception handler.
-
runAsync
public CompletableFuture<PipelineRun> runAsync(int pipelineId, RunPipelineParameters runPipelineParameters) throws AzDException Runs a pipeline.- Parameters:
pipelineId
- The pipeline idrunPipelineParameters
- Request parameters to run pipeline.- Returns:
- a pipeline run object
PipelineRun
- Throws:
AzDException
- Default Api Exception handler.
-
runAsync
public CompletableFuture<PipelineRun> runAsync(int pipelineId, RunPipelineParameters runPipelineParameters, int pipelineVersion) throws AzDException Runs a pipeline.- Parameters:
pipelineId
- The pipeline idrunPipelineParameters
- Request parameters to run pipeline.pipelineVersion
- The pipeline version.- Returns:
- a pipeline run object
PipelineRun
- Throws:
AzDException
- Default Api Exception handler.
-
get
Gets a run for a particular pipeline.- Parameters:
pipelineId
- The pipeline idrunId
- The run id- Returns:
- Pipeline run object
PipelineRun
- Throws:
AzDException
- Default Api Exception handler.
-
list
Gets top 10000 runs for a particular pipeline.- Parameters:
pipelineId
- The pipeline id- Returns:
- a list of pipeline run object
PipelineRuns
- Throws:
AzDException
- Default Api Exception handler.
-
run
public PipelineRun run(int pipelineId, RunPipelineParameters runPipelineParameters) throws AzDException Runs a pipeline.- Parameters:
pipelineId
- The pipeline idrunPipelineParameters
- Request parameters to run pipeline.- Returns:
- a pipeline run object
PipelineRun
- Throws:
AzDException
- Default Api Exception handler.
-
run
public PipelineRun run(int pipelineId, RunPipelineParameters runPipelineParameters, int pipelineVersion) throws AzDException Runs a pipeline.- Parameters:
pipelineId
- The pipeline idrunPipelineParameters
- Request parameters to run pipeline.pipelineVersion
- The pipeline version.- Returns:
- a pipeline run object
PipelineRun
- Throws:
AzDException
- Default Api Exception handler.
-