Class GHMarketplaceListAccountBuilder

java.lang.Object
org.kohsuke.github.GHMarketplaceListAccountBuilder

public class GHMarketplaceListAccountBuilder extends Object
Returns any accounts associated with a plan, including free plans.
Author:
Paulo Miguel Almeida
See Also:
  • Method Details

    • sort

      Sorts the GitHub accounts by the date they were created or last updated. Can be one of created or updated.

      If omitted, the default sorting strategy will be "CREATED"

      Parameters:
      sort - the sort strategy
      Returns:
      a GHMarketplaceListAccountBuilder
    • direction

      public GHMarketplaceListAccountBuilder direction(GHDirection direction)
      Orders the GitHub accounts results, Can be one of asc or desc. Ignored without the sort parameter.
      Parameters:
      direction - the order strategy
      Returns:
      a GHMarketplaceListAccountBuilder
    • createRequest

      public PagedIterable<GHMarketplaceAccountPlan> createRequest() throws IOException
      List any accounts associated with the plan specified on construction with all the order/sort parameters set.

      GitHub Apps must use a JWT to access this endpoint.

      OAuth Apps must use basic authentication with their client ID and client secret to access this endpoint.

      Returns:
      a paged iterable instance of GHMarketplaceAccountPlan
      Throws:
      IOException - on error
    • getRoot

      @Deprecated public GitHub getRoot()
      Deprecated.
      For access to the GitHub instance, use a local copy instead of pulling it out of objects.
      Get the root GitHub instance for this object.
      Returns:
      the root GitHub instance