Package org.azd.git.pullrequest
Class PullRequestWorkItemsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.git.pullrequest.PullRequestWorkItemsRequestBuilder
Request builder to manage the work items associated with a pull request.
-
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
ConstructorDescriptionPullRequestWorkItemsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a list of work items associated with a pull request.Retrieve a list of work items associated with a pull request.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
PullRequestWorkItemsRequestBuilder
public PullRequestWorkItemsRequestBuilder(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
-
listAsync
public CompletableFuture<ResourceRefs> listAsync(int pullRequestId, String repositoryName) throws AzDException Retrieve a list of work items associated with a pull request.- Parameters:
pullRequestId
- ID of the pull request.repositoryName
- ID or name of the repository.- Returns:
- ResourceRefs
ResourceRefs
- Throws:
AzDException
- Default Api Exception handler.
-
list
Retrieve a list of work items associated with a pull request.- Parameters:
pullRequestId
- ID of the pull request.repositoryName
- ID or name of the repository.- Returns:
- ResourceRefs
ResourceRefs
- Throws:
AzDException
- Default Api Exception handler.
-