Class PullRequestWorkItemsRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.git.pullrequest.PullRequestWorkItemsRequestBuilder

public class PullRequestWorkItemsRequestBuilder extends BaseRequestBuilder
Request builder to manage the work items associated with a pull request.
  • 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

      public ResourceRefs list(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.