Class SubjectQueryRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.graph.subjectquery.SubjectQueryRequestBuilder

public class SubjectQueryRequestBuilder extends BaseRequestBuilder
Provides functionality to work with Graph Subject Query Api.
  • Constructor Details

    • SubjectQueryRequestBuilder

      public SubjectQueryRequestBuilder(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

    • queryAsync

      Search for Azure Devops users, or/and groups. Results will be returned in a batch with no more than 100 graph subjects.
      Parameters:
      query - Graph subject query object to query for.
      Returns:
      Collection of graph entity Object GraphEntities
      Throws:
      AzDException - Default Api Exception handler.
    • query

      public GraphEntities query(GraphSubjectQuery query) throws AzDException
      Search for Azure Devops users, or/and groups. Results will be returned in a batch with no more than 100 graph subjects.
      Parameters:
      query - Graph subject query object to query for.
      Returns:
      Collection of graph entity Object GraphEntities
      Throws:
      AzDException - Default Api Exception handler.