Package org.azd.build.builds
Class BuildWorkItemsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.builds.BuildWorkItemsRequestBuilder
Provides functionality to manage Build work items Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Request configuration object for the query parameters.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
ConstructorDescriptionBuildWorkItemsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget
(int buildId) Gets the work items associated with a build.get
(int buildId, int top) Gets the work items associated with a build.get
(Consumer<BuildWorkItemsRequestBuilder.RequestConfiguration> requestConfiguration) Gets all the work items between two builds.getAsync
(int buildId) Gets the work items associated with a build.getAsync
(int buildId, int top) Gets the work items associated with a build.getAsync
(Consumer<BuildWorkItemsRequestBuilder.RequestConfiguration> requestConfiguration) Gets all the work items between two builds.getFromCommits
(int buildId, List<String> commitId, int top) Gets the work items associated with a build, filtered to specific commits.getFromCommitsAsync
(int buildId, List<String> commitId, int top) Gets the work items associated with a build, filtered to specific commits.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
BuildWorkItemsRequestBuilder
public BuildWorkItemsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) 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 the work items associated with a build. Only work items in the same project are returned.- Parameters:
buildId
- ID of the build.- Returns:
- Future object of BuildWorkItems
BuildWorkItems
- Throws:
AzDException
- Default Api exception handler.
-
getAsync
Gets the work items associated with a build. Only work items in the same project are returned.- Parameters:
buildId
- ID of the build.top
- The maximum number of work items to return.- Returns:
- Future object of BuildWorkItems
BuildWorkItems
- Throws:
AzDException
- Default Api exception handler.
-
getFromCommitsAsync
public CompletableFuture<BuildWorkItems> getFromCommitsAsync(int buildId, List<String> commitId, int top) throws AzDException Gets the work items associated with a build, filtered to specific commits.- Parameters:
buildId
- ID of the build.commitId
- List of commit ids to get the work items.top
- The maximum number of work items to return, or the number of commits to consider if no commit IDs are specified.- Returns:
- Future object of BuildWorkItems
BuildWorkItems
- Throws:
AzDException
- Default Api exception handler.
-
getAsync
public CompletableFuture<BuildWorkItems> getAsync(Consumer<BuildWorkItemsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets all the work items between two builds.- Parameters:
requestConfiguration
- Consumer of Request configuration query parameters.- Returns:
- Future object of BuildWorkItems
BuildWorkItems
- Throws:
AzDException
- Default Api exception handler.
-
get
Gets the work items associated with a build. Only work items in the same project are returned.- Parameters:
buildId
- ID of the build.- Returns:
- Future object of BuildWorkItems
BuildWorkItems
- Throws:
AzDException
- Default Api exception handler.
-
get
Gets the work items associated with a build. Only work items in the same project are returned.- Parameters:
buildId
- ID of the build.top
- The maximum number of work items to return.- Returns:
- Future object of BuildWorkItems
BuildWorkItems
- Throws:
AzDException
- Default Api exception handler.
-
getFromCommits
public BuildWorkItems getFromCommits(int buildId, List<String> commitId, int top) throws AzDException Gets the work items associated with a build, filtered to specific commits.- Parameters:
buildId
- ID of the build.commitId
- List of commit ids to get the work items.top
- The maximum number of work items to return, or the number of commits to consider if no commit IDs are specified.- Returns:
- Future object of BuildWorkItems
BuildWorkItems
- Throws:
AzDException
- Default Api exception handler.
-
get
public BuildWorkItems get(Consumer<BuildWorkItemsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets all the work items between two builds.- Parameters:
requestConfiguration
- Consumer of Request configuration query parameters.- Returns:
- Future object of BuildWorkItems
BuildWorkItems
- Throws:
AzDException
- Default Api exception handler.
-