Package io.gitea.api

Class RepositoryApi

java.lang.Object
io.gitea.api.RepositoryApi

public class RepositoryApi
extends java.lang.Object
  • Constructor Details

  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient​(ApiClient apiClient)
    • createCurrentUserRepoCall

      public com.squareup.okhttp.Call createCurrentUserRepoCall​(CreateRepoOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for createCurrentUserRepo
      Parameters:
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • createCurrentUserRepo

      public Repository createCurrentUserRepo​(CreateRepoOption body) throws ApiException
      Create a repository
      Parameters:
      body - (optional)
      Returns:
      Repository
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createCurrentUserRepoWithHttpInfo

      public ApiResponse<Repository> createCurrentUserRepoWithHttpInfo​(CreateRepoOption body) throws ApiException
      Create a repository
      Parameters:
      body - (optional)
      Returns:
      ApiResponse<Repository>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createCurrentUserRepoAsync

      public com.squareup.okhttp.Call createCurrentUserRepoAsync​(CreateRepoOption body, ApiCallback<Repository> callback) throws ApiException
      Create a repository (asynchronously)
      Parameters:
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • createForkCall

      public com.squareup.okhttp.Call createForkCall​(java.lang.String owner, java.lang.String repo, CreateForkOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for createFork
      Parameters:
      owner - owner of the repo to fork (required)
      repo - name of the repo to fork (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • createFork

      public Repository createFork​(java.lang.String owner, java.lang.String repo, CreateForkOption body) throws ApiException
      Fork a repository
      Parameters:
      owner - owner of the repo to fork (required)
      repo - name of the repo to fork (required)
      body - (optional)
      Returns:
      Repository
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createForkWithHttpInfo

      public ApiResponse<Repository> createForkWithHttpInfo​(java.lang.String owner, java.lang.String repo, CreateForkOption body) throws ApiException
      Fork a repository
      Parameters:
      owner - owner of the repo to fork (required)
      repo - name of the repo to fork (required)
      body - (optional)
      Returns:
      ApiResponse<Repository>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createForkAsync

      public com.squareup.okhttp.Call createForkAsync​(java.lang.String owner, java.lang.String repo, CreateForkOption body, ApiCallback<Repository> callback) throws ApiException
      Fork a repository (asynchronously)
      Parameters:
      owner - owner of the repo to fork (required)
      repo - name of the repo to fork (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • generateRepoCall

      public com.squareup.okhttp.Call generateRepoCall​(java.lang.String templateOwner, java.lang.String templateRepo, GenerateRepoOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for generateRepo
      Parameters:
      templateOwner - name of the template repository owner (required)
      templateRepo - name of the template repository (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • generateRepo

      public Repository generateRepo​(java.lang.String templateOwner, java.lang.String templateRepo, GenerateRepoOption body) throws ApiException
      Create a repository using a template
      Parameters:
      templateOwner - name of the template repository owner (required)
      templateRepo - name of the template repository (required)
      body - (optional)
      Returns:
      Repository
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • generateRepoWithHttpInfo

      public ApiResponse<Repository> generateRepoWithHttpInfo​(java.lang.String templateOwner, java.lang.String templateRepo, GenerateRepoOption body) throws ApiException
      Create a repository using a template
      Parameters:
      templateOwner - name of the template repository owner (required)
      templateRepo - name of the template repository (required)
      body - (optional)
      Returns:
      ApiResponse<Repository>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • generateRepoAsync

      public com.squareup.okhttp.Call generateRepoAsync​(java.lang.String templateOwner, java.lang.String templateRepo, GenerateRepoOption body, ApiCallback<Repository> callback) throws ApiException
      Create a repository using a template (asynchronously)
      Parameters:
      templateOwner - name of the template repository owner (required)
      templateRepo - name of the template repository (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getAnnotatedTagCall

      public com.squareup.okhttp.Call getAnnotatedTagCall​(java.lang.String owner, java.lang.String repo, java.lang.String sha, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for getAnnotatedTag
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getAnnotatedTag

      public AnnotatedTag getAnnotatedTag​(java.lang.String owner, java.lang.String repo, java.lang.String sha) throws ApiException
      Gets the tag object of an annotated tag (not lightweight tags)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. (required)
      Returns:
      AnnotatedTag
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getAnnotatedTagWithHttpInfo

      public ApiResponse<AnnotatedTag> getAnnotatedTagWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String sha) throws ApiException
      Gets the tag object of an annotated tag (not lightweight tags)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. (required)
      Returns:
      ApiResponse<AnnotatedTag>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getAnnotatedTagAsync

      public com.squareup.okhttp.Call getAnnotatedTagAsync​(java.lang.String owner, java.lang.String repo, java.lang.String sha, ApiCallback<AnnotatedTag> callback) throws ApiException
      Gets the tag object of an annotated tag (not lightweight tags) (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getBlobCall

      public com.squareup.okhttp.Call getBlobCall​(java.lang.String owner, java.lang.String repo, java.lang.String sha, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for getBlob
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getBlob

      public GitBlobResponse getBlob​(java.lang.String owner, java.lang.String repo, java.lang.String sha) throws ApiException
      Gets the blob of a repository.
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      Returns:
      GitBlobResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getBlobWithHttpInfo

      public ApiResponse<GitBlobResponse> getBlobWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String sha) throws ApiException
      Gets the blob of a repository.
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      Returns:
      ApiResponse<GitBlobResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getBlobAsync

      public com.squareup.okhttp.Call getBlobAsync​(java.lang.String owner, java.lang.String repo, java.lang.String sha, ApiCallback<GitBlobResponse> callback) throws ApiException
      Gets the blob of a repository. (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getTreeCall

      public com.squareup.okhttp.Call getTreeCall​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.Boolean recursive, java.lang.Integer page, java.lang.Integer perPage, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for getTree
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      recursive - show all directories and files (optional)
      page - page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page (optional)
      perPage - number of items per page (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getTree

      public GitTreeResponse getTree​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.Boolean recursive, java.lang.Integer page, java.lang.Integer perPage) throws ApiException
      Gets the tree of a repository.
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      recursive - show all directories and files (optional)
      page - page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page (optional)
      perPage - number of items per page (optional)
      Returns:
      GitTreeResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getTreeWithHttpInfo

      public ApiResponse<GitTreeResponse> getTreeWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.Boolean recursive, java.lang.Integer page, java.lang.Integer perPage) throws ApiException
      Gets the tree of a repository.
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      recursive - show all directories and files (optional)
      page - page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page (optional)
      perPage - number of items per page (optional)
      Returns:
      ApiResponse<GitTreeResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getTreeAsync

      public com.squareup.okhttp.Call getTreeAsync​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.Boolean recursive, java.lang.Integer page, java.lang.Integer perPage, ApiCallback<GitTreeResponse> callback) throws ApiException
      Gets the tree of a repository. (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      recursive - show all directories and files (optional)
      page - page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page (optional)
      perPage - number of items per page (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • listForksCall

      public com.squareup.okhttp.Call listForksCall​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for listForks
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • listForks

      public java.util.List<Repository> listForks​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's forks
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<Repository>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • listForksWithHttpInfo

      public ApiResponse<java.util.List<Repository>> listForksWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's forks
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<Repository>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • listForksAsync

      public com.squareup.okhttp.Call listForksAsync​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Repository>> callback) throws ApiException
      List a repository's forks (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoAddCollaboratorCall

      public com.squareup.okhttp.Call repoAddCollaboratorCall​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator, AddCollaboratorOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoAddCollaborator
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator to add (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoAddCollaborator

      public void repoAddCollaborator​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator, AddCollaboratorOption body) throws ApiException
      Add a collaborator to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator to add (required)
      body - (optional)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoAddCollaboratorWithHttpInfo

      public ApiResponse<java.lang.Void> repoAddCollaboratorWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator, AddCollaboratorOption body) throws ApiException
      Add a collaborator to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator to add (required)
      body - (optional)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoAddCollaboratorAsync

      public com.squareup.okhttp.Call repoAddCollaboratorAsync​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator, AddCollaboratorOption body, ApiCallback<java.lang.Void> callback) throws ApiException
      Add a collaborator to a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator to add (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoAddTeamCall

      public com.squareup.okhttp.Call repoAddTeamCall​(java.lang.String owner, java.lang.String repo, java.lang.String team, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoAddTeam
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoAddTeam

      public void repoAddTeam​(java.lang.String owner, java.lang.String repo, java.lang.String team) throws ApiException
      Add a team to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoAddTeamWithHttpInfo

      public ApiResponse<java.lang.Void> repoAddTeamWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String team) throws ApiException
      Add a team to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoAddTeamAsync

      public com.squareup.okhttp.Call repoAddTeamAsync​(java.lang.String owner, java.lang.String repo, java.lang.String team, ApiCallback<java.lang.Void> callback) throws ApiException
      Add a team to a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoAddTopcCall

      public com.squareup.okhttp.Call repoAddTopcCall​(java.lang.String owner, java.lang.String repo, java.lang.String topic, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoAddTopc
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      topic - name of the topic to add (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoAddTopc

      public void repoAddTopc​(java.lang.String owner, java.lang.String repo, java.lang.String topic) throws ApiException
      Add a topic to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      topic - name of the topic to add (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoAddTopcWithHttpInfo

      public ApiResponse<java.lang.Void> repoAddTopcWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String topic) throws ApiException
      Add a topic to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      topic - name of the topic to add (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoAddTopcAsync

      public com.squareup.okhttp.Call repoAddTopcAsync​(java.lang.String owner, java.lang.String repo, java.lang.String topic, ApiCallback<java.lang.Void> callback) throws ApiException
      Add a topic to a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      topic - name of the topic to add (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCheckCollaboratorCall

      public com.squareup.okhttp.Call repoCheckCollaboratorCall​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCheckCollaborator
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCheckCollaborator

      public void repoCheckCollaborator​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator) throws ApiException
      Check if a user is a collaborator of a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCheckCollaboratorWithHttpInfo

      public ApiResponse<java.lang.Void> repoCheckCollaboratorWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator) throws ApiException
      Check if a user is a collaborator of a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCheckCollaboratorAsync

      public com.squareup.okhttp.Call repoCheckCollaboratorAsync​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator, ApiCallback<java.lang.Void> callback) throws ApiException
      Check if a user is a collaborator of a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCheckTeamCall

      public com.squareup.okhttp.Call repoCheckTeamCall​(java.lang.String owner, java.lang.String repo, java.lang.String team, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCheckTeam
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCheckTeam

      public Team repoCheckTeam​(java.lang.String owner, java.lang.String repo, java.lang.String team) throws ApiException
      Check if a team is assigned to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      Returns:
      Team
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCheckTeamWithHttpInfo

      public ApiResponse<Team> repoCheckTeamWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String team) throws ApiException
      Check if a team is assigned to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      Returns:
      ApiResponse<Team>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCheckTeamAsync

      public com.squareup.okhttp.Call repoCheckTeamAsync​(java.lang.String owner, java.lang.String repo, java.lang.String team, ApiCallback<Team> callback) throws ApiException
      Check if a team is assigned to a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreateBranchCall

      public com.squareup.okhttp.Call repoCreateBranchCall​(java.lang.String owner, java.lang.String repo, CreateBranchRepoOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreateBranch
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreateBranch

      public Branch repoCreateBranch​(java.lang.String owner, java.lang.String repo, CreateBranchRepoOption body) throws ApiException
      Create a branch
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      Branch
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateBranchWithHttpInfo

      public ApiResponse<Branch> repoCreateBranchWithHttpInfo​(java.lang.String owner, java.lang.String repo, CreateBranchRepoOption body) throws ApiException
      Create a branch
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      ApiResponse<Branch>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateBranchAsync

      public com.squareup.okhttp.Call repoCreateBranchAsync​(java.lang.String owner, java.lang.String repo, CreateBranchRepoOption body, ApiCallback<Branch> callback) throws ApiException
      Create a branch (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreateBranchProtectionCall

      public com.squareup.okhttp.Call repoCreateBranchProtectionCall​(java.lang.String owner, java.lang.String repo, CreateBranchProtectionOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreateBranchProtection
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreateBranchProtection

      public BranchProtection repoCreateBranchProtection​(java.lang.String owner, java.lang.String repo, CreateBranchProtectionOption body) throws ApiException
      Create a branch protections for a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      BranchProtection
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateBranchProtectionWithHttpInfo

      public ApiResponse<BranchProtection> repoCreateBranchProtectionWithHttpInfo​(java.lang.String owner, java.lang.String repo, CreateBranchProtectionOption body) throws ApiException
      Create a branch protections for a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      ApiResponse<BranchProtection>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateBranchProtectionAsync

      public com.squareup.okhttp.Call repoCreateBranchProtectionAsync​(java.lang.String owner, java.lang.String repo, CreateBranchProtectionOption body, ApiCallback<BranchProtection> callback) throws ApiException
      Create a branch protections for a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreateFileCall

      public com.squareup.okhttp.Call repoCreateFileCall​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, CreateFileOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreateFile
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to create (required)
      body - (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreateFile

      public FileResponse repoCreateFile​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, CreateFileOptions body) throws ApiException
      Create a file in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to create (required)
      body - (required)
      Returns:
      FileResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateFileWithHttpInfo

      public ApiResponse<FileResponse> repoCreateFileWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, CreateFileOptions body) throws ApiException
      Create a file in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to create (required)
      body - (required)
      Returns:
      ApiResponse<FileResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateFileAsync

      public com.squareup.okhttp.Call repoCreateFileAsync​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, CreateFileOptions body, ApiCallback<FileResponse> callback) throws ApiException
      Create a file in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to create (required)
      body - (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreateHookCall

      public com.squareup.okhttp.Call repoCreateHookCall​(java.lang.String owner, java.lang.String repo, CreateHookOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreateHook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreateHook

      public Hook repoCreateHook​(java.lang.String owner, java.lang.String repo, CreateHookOption body) throws ApiException
      Create a hook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      Hook
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateHookWithHttpInfo

      public ApiResponse<Hook> repoCreateHookWithHttpInfo​(java.lang.String owner, java.lang.String repo, CreateHookOption body) throws ApiException
      Create a hook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      ApiResponse<Hook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateHookAsync

      public com.squareup.okhttp.Call repoCreateHookAsync​(java.lang.String owner, java.lang.String repo, CreateHookOption body, ApiCallback<Hook> callback) throws ApiException
      Create a hook (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreateKeyCall

      public com.squareup.okhttp.Call repoCreateKeyCall​(java.lang.String owner, java.lang.String repo, CreateKeyOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreateKey
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreateKey

      public DeployKey repoCreateKey​(java.lang.String owner, java.lang.String repo, CreateKeyOption body) throws ApiException
      Add a key to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      DeployKey
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateKeyWithHttpInfo

      public ApiResponse<DeployKey> repoCreateKeyWithHttpInfo​(java.lang.String owner, java.lang.String repo, CreateKeyOption body) throws ApiException
      Add a key to a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      ApiResponse<DeployKey>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateKeyAsync

      public com.squareup.okhttp.Call repoCreateKeyAsync​(java.lang.String owner, java.lang.String repo, CreateKeyOption body, ApiCallback<DeployKey> callback) throws ApiException
      Add a key to a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreatePullRequestCall

      public com.squareup.okhttp.Call repoCreatePullRequestCall​(java.lang.String owner, java.lang.String repo, CreatePullRequestOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreatePullRequest
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreatePullRequest

      public PullRequest repoCreatePullRequest​(java.lang.String owner, java.lang.String repo, CreatePullRequestOption body) throws ApiException
      Create a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      PullRequest
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreatePullRequestWithHttpInfo

      public ApiResponse<PullRequest> repoCreatePullRequestWithHttpInfo​(java.lang.String owner, java.lang.String repo, CreatePullRequestOption body) throws ApiException
      Create a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      ApiResponse<PullRequest>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreatePullRequestAsync

      public com.squareup.okhttp.Call repoCreatePullRequestAsync​(java.lang.String owner, java.lang.String repo, CreatePullRequestOption body, ApiCallback<PullRequest> callback) throws ApiException
      Create a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreatePullReviewCall

      public com.squareup.okhttp.Call repoCreatePullReviewCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, CreatePullReviewOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreatePullReview
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreatePullReview

      public PullReview repoCreatePullReview​(java.lang.String owner, java.lang.String repo, java.lang.Long index, CreatePullReviewOptions body) throws ApiException
      Create a review to an pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      Returns:
      PullReview
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreatePullReviewWithHttpInfo

      public ApiResponse<PullReview> repoCreatePullReviewWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, CreatePullReviewOptions body) throws ApiException
      Create a review to an pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      Returns:
      ApiResponse<PullReview>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreatePullReviewAsync

      public com.squareup.okhttp.Call repoCreatePullReviewAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, CreatePullReviewOptions body, ApiCallback<PullReview> callback) throws ApiException
      Create a review to an pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreatePullReviewRequestsCall

      public com.squareup.okhttp.Call repoCreatePullReviewRequestsCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, PullReviewRequestOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreatePullReviewRequests
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreatePullReviewRequests

      public java.util.List<PullReview> repoCreatePullReviewRequests​(java.lang.String owner, java.lang.String repo, java.lang.Long index, PullReviewRequestOptions body) throws ApiException
      create review requests for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      Returns:
      List<PullReview>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreatePullReviewRequestsWithHttpInfo

      public ApiResponse<java.util.List<PullReview>> repoCreatePullReviewRequestsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, PullReviewRequestOptions body) throws ApiException
      create review requests for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      Returns:
      ApiResponse<List<PullReview>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreatePullReviewRequestsAsync

      public com.squareup.okhttp.Call repoCreatePullReviewRequestsAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, PullReviewRequestOptions body, ApiCallback<java.util.List<PullReview>> callback) throws ApiException
      create review requests for a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreateReleaseCall

      public com.squareup.okhttp.Call repoCreateReleaseCall​(java.lang.String owner, java.lang.String repo, CreateReleaseOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreateRelease
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreateRelease

      public Release repoCreateRelease​(java.lang.String owner, java.lang.String repo, CreateReleaseOption body) throws ApiException
      Create a release
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      Release
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateReleaseWithHttpInfo

      public ApiResponse<Release> repoCreateReleaseWithHttpInfo​(java.lang.String owner, java.lang.String repo, CreateReleaseOption body) throws ApiException
      Create a release
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      ApiResponse<Release>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateReleaseAsync

      public com.squareup.okhttp.Call repoCreateReleaseAsync​(java.lang.String owner, java.lang.String repo, CreateReleaseOption body, ApiCallback<Release> callback) throws ApiException
      Create a release (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreateReleaseAttachmentCall

      public com.squareup.okhttp.Call repoCreateReleaseAttachmentCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.io.File attachment, java.lang.String name, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreateReleaseAttachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachment - attachment to upload (required)
      name - name of the attachment (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreateReleaseAttachment

      public Attachment repoCreateReleaseAttachment​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.io.File attachment, java.lang.String name) throws ApiException
      Create a release attachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachment - attachment to upload (required)
      name - name of the attachment (optional)
      Returns:
      Attachment
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateReleaseAttachmentWithHttpInfo

      public ApiResponse<Attachment> repoCreateReleaseAttachmentWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.io.File attachment, java.lang.String name) throws ApiException
      Create a release attachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachment - attachment to upload (required)
      name - name of the attachment (optional)
      Returns:
      ApiResponse<Attachment>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateReleaseAttachmentAsync

      public com.squareup.okhttp.Call repoCreateReleaseAttachmentAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.io.File attachment, java.lang.String name, ApiCallback<Attachment> callback) throws ApiException
      Create a release attachment (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachment - attachment to upload (required)
      name - name of the attachment (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreateStatusCall

      public com.squareup.okhttp.Call repoCreateStatusCall​(java.lang.String owner, java.lang.String repo, java.lang.String sha, CreateStatusOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreateStatus
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreateStatus

      public CommitStatus repoCreateStatus​(java.lang.String owner, java.lang.String repo, java.lang.String sha, CreateStatusOption body) throws ApiException
      Create a commit status
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      body - (optional)
      Returns:
      CommitStatus
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateStatusWithHttpInfo

      public ApiResponse<CommitStatus> repoCreateStatusWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String sha, CreateStatusOption body) throws ApiException
      Create a commit status
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      body - (optional)
      Returns:
      ApiResponse<CommitStatus>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateStatusAsync

      public com.squareup.okhttp.Call repoCreateStatusAsync​(java.lang.String owner, java.lang.String repo, java.lang.String sha, CreateStatusOption body, ApiCallback<CommitStatus> callback) throws ApiException
      Create a commit status (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoCreateTagCall

      public com.squareup.okhttp.Call repoCreateTagCall​(java.lang.String owner, java.lang.String repo, CreateTagOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoCreateTag
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoCreateTag

      public Tag repoCreateTag​(java.lang.String owner, java.lang.String repo, CreateTagOption body) throws ApiException
      Create a new git tag in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      Tag
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateTagWithHttpInfo

      public ApiResponse<Tag> repoCreateTagWithHttpInfo​(java.lang.String owner, java.lang.String repo, CreateTagOption body) throws ApiException
      Create a new git tag in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      ApiResponse<Tag>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoCreateTagAsync

      public com.squareup.okhttp.Call repoCreateTagAsync​(java.lang.String owner, java.lang.String repo, CreateTagOption body, ApiCallback<Tag> callback) throws ApiException
      Create a new git tag in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteCall

      public com.squareup.okhttp.Call repoDeleteCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDelete
      Parameters:
      owner - owner of the repo to delete (required)
      repo - name of the repo to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDelete

      public void repoDelete​(java.lang.String owner, java.lang.String repo) throws ApiException
      Delete a repository
      Parameters:
      owner - owner of the repo to delete (required)
      repo - name of the repo to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Delete a repository
      Parameters:
      owner - owner of the repo to delete (required)
      repo - name of the repo to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteAsync

      public com.squareup.okhttp.Call repoDeleteAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a repository (asynchronously)
      Parameters:
      owner - owner of the repo to delete (required)
      repo - name of the repo to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteBranchCall

      public com.squareup.okhttp.Call repoDeleteBranchCall​(java.lang.String owner, java.lang.String repo, java.lang.String branch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteBranch
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      branch - branch to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteBranch

      public void repoDeleteBranch​(java.lang.String owner, java.lang.String repo, java.lang.String branch) throws ApiException
      Delete a specific branch from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      branch - branch to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteBranchWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteBranchWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String branch) throws ApiException
      Delete a specific branch from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      branch - branch to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteBranchAsync

      public com.squareup.okhttp.Call repoDeleteBranchAsync​(java.lang.String owner, java.lang.String repo, java.lang.String branch, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a specific branch from a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      branch - branch to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteBranchProtectionCall

      public com.squareup.okhttp.Call repoDeleteBranchProtectionCall​(java.lang.String owner, java.lang.String repo, java.lang.String name, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteBranchProtection
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteBranchProtection

      public void repoDeleteBranchProtection​(java.lang.String owner, java.lang.String repo, java.lang.String name) throws ApiException
      Delete a specific branch protection for the repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteBranchProtectionWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteBranchProtectionWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String name) throws ApiException
      Delete a specific branch protection for the repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteBranchProtectionAsync

      public com.squareup.okhttp.Call repoDeleteBranchProtectionAsync​(java.lang.String owner, java.lang.String repo, java.lang.String name, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a specific branch protection for the repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteCollaboratorCall

      public com.squareup.okhttp.Call repoDeleteCollaboratorCall​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteCollaborator
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteCollaborator

      public void repoDeleteCollaborator​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator) throws ApiException
      Delete a collaborator from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteCollaboratorWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteCollaboratorWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator) throws ApiException
      Delete a collaborator from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteCollaboratorAsync

      public com.squareup.okhttp.Call repoDeleteCollaboratorAsync​(java.lang.String owner, java.lang.String repo, java.lang.String collaborator, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a collaborator from a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      collaborator - username of the collaborator to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteFileCall

      public com.squareup.okhttp.Call repoDeleteFileCall​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, DeleteFileOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteFile
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to delete (required)
      body - (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteFile

      public FileDeleteResponse repoDeleteFile​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, DeleteFileOptions body) throws ApiException
      Delete a file in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to delete (required)
      body - (required)
      Returns:
      FileDeleteResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteFileWithHttpInfo

      public ApiResponse<FileDeleteResponse> repoDeleteFileWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, DeleteFileOptions body) throws ApiException
      Delete a file in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to delete (required)
      body - (required)
      Returns:
      ApiResponse<FileDeleteResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteFileAsync

      public com.squareup.okhttp.Call repoDeleteFileAsync​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, DeleteFileOptions body, ApiCallback<FileDeleteResponse> callback) throws ApiException
      Delete a file in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to delete (required)
      body - (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteGitHookCall

      public com.squareup.okhttp.Call repoDeleteGitHookCall​(java.lang.String owner, java.lang.String repo, java.lang.String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteGitHook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteGitHook

      public void repoDeleteGitHook​(java.lang.String owner, java.lang.String repo, java.lang.String id) throws ApiException
      Delete a Git hook in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteGitHookWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteGitHookWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String id) throws ApiException
      Delete a Git hook in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteGitHookAsync

      public com.squareup.okhttp.Call repoDeleteGitHookAsync​(java.lang.String owner, java.lang.String repo, java.lang.String id, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a Git hook in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteHookCall

      public com.squareup.okhttp.Call repoDeleteHookCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteHook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteHook

      public void repoDeleteHook​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Delete a hook in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteHookWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteHookWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Delete a hook in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteHookAsync

      public com.squareup.okhttp.Call repoDeleteHookAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a hook in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteKeyCall

      public com.squareup.okhttp.Call repoDeleteKeyCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteKey
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the key to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteKey

      public void repoDeleteKey​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Delete a key from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the key to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteKeyWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteKeyWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Delete a key from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the key to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteKeyAsync

      public com.squareup.okhttp.Call repoDeleteKeyAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a key from a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the key to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeletePullReviewCall

      public com.squareup.okhttp.Call repoDeletePullReviewCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeletePullReview
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeletePullReview

      public void repoDeletePullReview​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id) throws ApiException
      Delete a specific review from a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeletePullReviewWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeletePullReviewWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id) throws ApiException
      Delete a specific review from a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeletePullReviewAsync

      public com.squareup.okhttp.Call repoDeletePullReviewAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a specific review from a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeletePullReviewRequestsCall

      public com.squareup.okhttp.Call repoDeletePullReviewRequestsCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, PullReviewRequestOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeletePullReviewRequests
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeletePullReviewRequests

      public void repoDeletePullReviewRequests​(java.lang.String owner, java.lang.String repo, java.lang.Long index, PullReviewRequestOptions body) throws ApiException
      cancel review requests for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeletePullReviewRequestsWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeletePullReviewRequestsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, PullReviewRequestOptions body) throws ApiException
      cancel review requests for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeletePullReviewRequestsAsync

      public com.squareup.okhttp.Call repoDeletePullReviewRequestsAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, PullReviewRequestOptions body, ApiCallback<java.lang.Void> callback) throws ApiException
      cancel review requests for a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      body - (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteReleaseCall

      public com.squareup.okhttp.Call repoDeleteReleaseCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteRelease
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteRelease

      public void repoDeleteRelease​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Delete a release
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteReleaseWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteReleaseWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Delete a release
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteReleaseAsync

      public com.squareup.okhttp.Call repoDeleteReleaseAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a release (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteReleaseAttachmentCall

      public com.squareup.okhttp.Call repoDeleteReleaseAttachmentCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteReleaseAttachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteReleaseAttachment

      public void repoDeleteReleaseAttachment​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId) throws ApiException
      Delete a release attachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteReleaseAttachmentWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteReleaseAttachmentWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId) throws ApiException
      Delete a release attachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteReleaseAttachmentAsync

      public com.squareup.okhttp.Call repoDeleteReleaseAttachmentAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a release attachment (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteReleaseByTagCall

      public com.squareup.okhttp.Call repoDeleteReleaseByTagCall​(java.lang.String owner, java.lang.String repo, java.lang.String tag, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteReleaseByTag
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - tag name of the release to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteReleaseByTag

      public void repoDeleteReleaseByTag​(java.lang.String owner, java.lang.String repo, java.lang.String tag) throws ApiException
      Delete a release by tag name
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - tag name of the release to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteReleaseByTagWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteReleaseByTagWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String tag) throws ApiException
      Delete a release by tag name
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - tag name of the release to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteReleaseByTagAsync

      public com.squareup.okhttp.Call repoDeleteReleaseByTagAsync​(java.lang.String owner, java.lang.String repo, java.lang.String tag, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a release by tag name (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - tag name of the release to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteTagCall

      public com.squareup.okhttp.Call repoDeleteTagCall​(java.lang.String owner, java.lang.String repo, java.lang.String tag, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteTag
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - name of tag to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteTag

      public void repoDeleteTag​(java.lang.String owner, java.lang.String repo, java.lang.String tag) throws ApiException
      Delete a repository's tag by name
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - name of tag to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteTagWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteTagWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String tag) throws ApiException
      Delete a repository's tag by name
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - name of tag to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteTagAsync

      public com.squareup.okhttp.Call repoDeleteTagAsync​(java.lang.String owner, java.lang.String repo, java.lang.String tag, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a repository's tag by name (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - name of tag to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteTeamCall

      public com.squareup.okhttp.Call repoDeleteTeamCall​(java.lang.String owner, java.lang.String repo, java.lang.String team, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteTeam
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteTeam

      public void repoDeleteTeam​(java.lang.String owner, java.lang.String repo, java.lang.String team) throws ApiException
      Delete a team from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteTeamWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteTeamWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String team) throws ApiException
      Delete a team from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteTeamAsync

      public com.squareup.okhttp.Call repoDeleteTeamAsync​(java.lang.String owner, java.lang.String repo, java.lang.String team, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a team from a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      team - team name (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDeleteTopicCall

      public com.squareup.okhttp.Call repoDeleteTopicCall​(java.lang.String owner, java.lang.String repo, java.lang.String topic, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDeleteTopic
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      topic - name of the topic to delete (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDeleteTopic

      public void repoDeleteTopic​(java.lang.String owner, java.lang.String repo, java.lang.String topic) throws ApiException
      Delete a topic from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      topic - name of the topic to delete (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteTopicWithHttpInfo

      public ApiResponse<java.lang.Void> repoDeleteTopicWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String topic) throws ApiException
      Delete a topic from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      topic - name of the topic to delete (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDeleteTopicAsync

      public com.squareup.okhttp.Call repoDeleteTopicAsync​(java.lang.String owner, java.lang.String repo, java.lang.String topic, ApiCallback<java.lang.Void> callback) throws ApiException
      Delete a topic from a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      topic - name of the topic to delete (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDismissPullReviewCall

      public com.squareup.okhttp.Call repoDismissPullReviewCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, DismissPullReviewOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDismissPullReview
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      body - (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDismissPullReview

      public PullReview repoDismissPullReview​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, DismissPullReviewOptions body) throws ApiException
      Dismiss a review for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      body - (required)
      Returns:
      PullReview
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDismissPullReviewWithHttpInfo

      public ApiResponse<PullReview> repoDismissPullReviewWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, DismissPullReviewOptions body) throws ApiException
      Dismiss a review for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      body - (required)
      Returns:
      ApiResponse<PullReview>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDismissPullReviewAsync

      public com.squareup.okhttp.Call repoDismissPullReviewAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, DismissPullReviewOptions body, ApiCallback<PullReview> callback) throws ApiException
      Dismiss a review for a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      body - (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDownloadPullDiffCall

      public com.squareup.okhttp.Call repoDownloadPullDiffCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDownloadPullDiff
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDownloadPullDiff

      public java.lang.String repoDownloadPullDiff​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Get a pull request diff
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      Returns:
      String
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDownloadPullDiffWithHttpInfo

      public ApiResponse<java.lang.String> repoDownloadPullDiffWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Get a pull request diff
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      Returns:
      ApiResponse<String>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDownloadPullDiffAsync

      public com.squareup.okhttp.Call repoDownloadPullDiffAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ApiCallback<java.lang.String> callback) throws ApiException
      Get a pull request diff (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoDownloadPullPatchCall

      public com.squareup.okhttp.Call repoDownloadPullPatchCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoDownloadPullPatch
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoDownloadPullPatch

      public java.lang.String repoDownloadPullPatch​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Get a pull request patch file
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      Returns:
      String
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDownloadPullPatchWithHttpInfo

      public ApiResponse<java.lang.String> repoDownloadPullPatchWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Get a pull request patch file
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      Returns:
      ApiResponse<String>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoDownloadPullPatchAsync

      public com.squareup.okhttp.Call repoDownloadPullPatchAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ApiCallback<java.lang.String> callback) throws ApiException
      Get a pull request patch file (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoEditCall

      public com.squareup.okhttp.Call repoEditCall​(java.lang.String owner, java.lang.String repo, EditRepoOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoEdit
      Parameters:
      owner - owner of the repo to edit (required)
      repo - name of the repo to edit (required)
      body - Properties of a repo that you can edit (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoEdit

      public Repository repoEdit​(java.lang.String owner, java.lang.String repo, EditRepoOption body) throws ApiException
      Edit a repository's properties. Only fields that are set will be changed.
      Parameters:
      owner - owner of the repo to edit (required)
      repo - name of the repo to edit (required)
      body - Properties of a repo that you can edit (optional)
      Returns:
      Repository
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditWithHttpInfo

      public ApiResponse<Repository> repoEditWithHttpInfo​(java.lang.String owner, java.lang.String repo, EditRepoOption body) throws ApiException
      Edit a repository's properties. Only fields that are set will be changed.
      Parameters:
      owner - owner of the repo to edit (required)
      repo - name of the repo to edit (required)
      body - Properties of a repo that you can edit (optional)
      Returns:
      ApiResponse<Repository>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditAsync

      public com.squareup.okhttp.Call repoEditAsync​(java.lang.String owner, java.lang.String repo, EditRepoOption body, ApiCallback<Repository> callback) throws ApiException
      Edit a repository's properties. Only fields that are set will be changed. (asynchronously)
      Parameters:
      owner - owner of the repo to edit (required)
      repo - name of the repo to edit (required)
      body - Properties of a repo that you can edit (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoEditBranchProtectionCall

      public com.squareup.okhttp.Call repoEditBranchProtectionCall​(java.lang.String owner, java.lang.String repo, java.lang.String name, EditBranchProtectionOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoEditBranchProtection
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoEditBranchProtection

      public BranchProtection repoEditBranchProtection​(java.lang.String owner, java.lang.String repo, java.lang.String name, EditBranchProtectionOption body) throws ApiException
      Edit a branch protections for a repository. Only fields that are set will be changed
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      body - (optional)
      Returns:
      BranchProtection
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditBranchProtectionWithHttpInfo

      public ApiResponse<BranchProtection> repoEditBranchProtectionWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String name, EditBranchProtectionOption body) throws ApiException
      Edit a branch protections for a repository. Only fields that are set will be changed
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      body - (optional)
      Returns:
      ApiResponse<BranchProtection>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditBranchProtectionAsync

      public com.squareup.okhttp.Call repoEditBranchProtectionAsync​(java.lang.String owner, java.lang.String repo, java.lang.String name, EditBranchProtectionOption body, ApiCallback<BranchProtection> callback) throws ApiException
      Edit a branch protections for a repository. Only fields that are set will be changed (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoEditGitHookCall

      public com.squareup.okhttp.Call repoEditGitHookCall​(java.lang.String owner, java.lang.String repo, java.lang.String id, EditGitHookOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoEditGitHook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoEditGitHook

      public GitHook repoEditGitHook​(java.lang.String owner, java.lang.String repo, java.lang.String id, EditGitHookOption body) throws ApiException
      Edit a Git hook in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      body - (optional)
      Returns:
      GitHook
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditGitHookWithHttpInfo

      public ApiResponse<GitHook> repoEditGitHookWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String id, EditGitHookOption body) throws ApiException
      Edit a Git hook in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      body - (optional)
      Returns:
      ApiResponse<GitHook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditGitHookAsync

      public com.squareup.okhttp.Call repoEditGitHookAsync​(java.lang.String owner, java.lang.String repo, java.lang.String id, EditGitHookOption body, ApiCallback<GitHook> callback) throws ApiException
      Edit a Git hook in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoEditHookCall

      public com.squareup.okhttp.Call repoEditHookCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, EditHookOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoEditHook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - index of the hook (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoEditHook

      public Hook repoEditHook​(java.lang.String owner, java.lang.String repo, java.lang.Long id, EditHookOption body) throws ApiException
      Edit a hook in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - index of the hook (required)
      body - (optional)
      Returns:
      Hook
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditHookWithHttpInfo

      public ApiResponse<Hook> repoEditHookWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id, EditHookOption body) throws ApiException
      Edit a hook in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - index of the hook (required)
      body - (optional)
      Returns:
      ApiResponse<Hook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditHookAsync

      public com.squareup.okhttp.Call repoEditHookAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, EditHookOption body, ApiCallback<Hook> callback) throws ApiException
      Edit a hook in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - index of the hook (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoEditPullRequestCall

      public com.squareup.okhttp.Call repoEditPullRequestCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, EditPullRequestOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoEditPullRequest
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to edit (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoEditPullRequest

      public PullRequest repoEditPullRequest​(java.lang.String owner, java.lang.String repo, java.lang.Long index, EditPullRequestOption body) throws ApiException
      Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to edit (required)
      body - (optional)
      Returns:
      PullRequest
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditPullRequestWithHttpInfo

      public ApiResponse<PullRequest> repoEditPullRequestWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, EditPullRequestOption body) throws ApiException
      Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to edit (required)
      body - (optional)
      Returns:
      ApiResponse<PullRequest>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditPullRequestAsync

      public com.squareup.okhttp.Call repoEditPullRequestAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, EditPullRequestOption body, ApiCallback<PullRequest> callback) throws ApiException
      Update a pull request. If using deadline only the date will be taken into account, and time of day ignored. (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to edit (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoEditReleaseCall

      public com.squareup.okhttp.Call repoEditReleaseCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, EditReleaseOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoEditRelease
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to edit (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoEditRelease

      public Release repoEditRelease​(java.lang.String owner, java.lang.String repo, java.lang.Long id, EditReleaseOption body) throws ApiException
      Update a release
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to edit (required)
      body - (optional)
      Returns:
      Release
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditReleaseWithHttpInfo

      public ApiResponse<Release> repoEditReleaseWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id, EditReleaseOption body) throws ApiException
      Update a release
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to edit (required)
      body - (optional)
      Returns:
      ApiResponse<Release>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditReleaseAsync

      public com.squareup.okhttp.Call repoEditReleaseAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, EditReleaseOption body, ApiCallback<Release> callback) throws ApiException
      Update a release (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to edit (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoEditReleaseAttachmentCall

      public com.squareup.okhttp.Call repoEditReleaseAttachmentCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId, EditAttachmentOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoEditReleaseAttachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to edit (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoEditReleaseAttachment

      public Attachment repoEditReleaseAttachment​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId, EditAttachmentOptions body) throws ApiException
      Edit a release attachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to edit (required)
      body - (optional)
      Returns:
      Attachment
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditReleaseAttachmentWithHttpInfo

      public ApiResponse<Attachment> repoEditReleaseAttachmentWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId, EditAttachmentOptions body) throws ApiException
      Edit a release attachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to edit (required)
      body - (optional)
      Returns:
      ApiResponse<Attachment>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoEditReleaseAttachmentAsync

      public com.squareup.okhttp.Call repoEditReleaseAttachmentAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId, EditAttachmentOptions body, ApiCallback<Attachment> callback) throws ApiException
      Edit a release attachment (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to edit (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetCall

      public com.squareup.okhttp.Call repoGetCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGet
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGet

      public Repository repoGet​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      Repository
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetWithHttpInfo

      public ApiResponse<Repository> repoGetWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<Repository>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetAsync

      public com.squareup.okhttp.Call repoGetAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<Repository> callback) throws ApiException
      Get a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetAllCommitsCall

      public com.squareup.okhttp.Call repoGetAllCommitsCall​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetAllCommits
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - SHA or branch to start listing commits from (usually 'master') (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetAllCommits

      public java.util.List<Commit> repoGetAllCommits​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get a list of all commits from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - SHA or branch to start listing commits from (usually 'master') (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<Commit>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetAllCommitsWithHttpInfo

      public ApiResponse<java.util.List<Commit>> repoGetAllCommitsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get a list of all commits from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - SHA or branch to start listing commits from (usually 'master') (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<Commit>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetAllCommitsAsync

      public com.squareup.okhttp.Call repoGetAllCommitsAsync​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Commit>> callback) throws ApiException
      Get a list of all commits from a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - SHA or branch to start listing commits from (usually 'master') (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetArchiveCall

      public com.squareup.okhttp.Call repoGetArchiveCall​(java.lang.String owner, java.lang.String repo, java.lang.String archive, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetArchive
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      archive - the git reference for download with attached archive format (e.g. master.zip) (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetArchive

      public void repoGetArchive​(java.lang.String owner, java.lang.String repo, java.lang.String archive) throws ApiException
      Get an archive of a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      archive - the git reference for download with attached archive format (e.g. master.zip) (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetArchiveWithHttpInfo

      public ApiResponse<java.lang.Void> repoGetArchiveWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String archive) throws ApiException
      Get an archive of a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      archive - the git reference for download with attached archive format (e.g. master.zip) (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetArchiveAsync

      public com.squareup.okhttp.Call repoGetArchiveAsync​(java.lang.String owner, java.lang.String repo, java.lang.String archive, ApiCallback<java.lang.Void> callback) throws ApiException
      Get an archive of a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      archive - the git reference for download with attached archive format (e.g. master.zip) (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetAssigneesCall

      public com.squareup.okhttp.Call repoGetAssigneesCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetAssignees
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetAssignees

      public java.util.List<User> repoGetAssignees​(java.lang.String owner, java.lang.String repo) throws ApiException
      Return all users that have write access and can be assigned to issues
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      List<User>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetAssigneesWithHttpInfo

      public ApiResponse<java.util.List<User>> repoGetAssigneesWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Return all users that have write access and can be assigned to issues
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<List<User>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetAssigneesAsync

      public com.squareup.okhttp.Call repoGetAssigneesAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.util.List<User>> callback) throws ApiException
      Return all users that have write access and can be assigned to issues (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetBranchCall

      public com.squareup.okhttp.Call repoGetBranchCall​(java.lang.String owner, java.lang.String repo, java.lang.String branch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetBranch
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      branch - branch to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetBranch

      public Branch repoGetBranch​(java.lang.String owner, java.lang.String repo, java.lang.String branch) throws ApiException
      Retrieve a specific branch from a repository, including its effective branch protection
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      branch - branch to get (required)
      Returns:
      Branch
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetBranchWithHttpInfo

      public ApiResponse<Branch> repoGetBranchWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String branch) throws ApiException
      Retrieve a specific branch from a repository, including its effective branch protection
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      branch - branch to get (required)
      Returns:
      ApiResponse<Branch>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetBranchAsync

      public com.squareup.okhttp.Call repoGetBranchAsync​(java.lang.String owner, java.lang.String repo, java.lang.String branch, ApiCallback<Branch> callback) throws ApiException
      Retrieve a specific branch from a repository, including its effective branch protection (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      branch - branch to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetBranchProtectionCall

      public com.squareup.okhttp.Call repoGetBranchProtectionCall​(java.lang.String owner, java.lang.String repo, java.lang.String name, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetBranchProtection
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetBranchProtection

      public BranchProtection repoGetBranchProtection​(java.lang.String owner, java.lang.String repo, java.lang.String name) throws ApiException
      Get a specific branch protection for the repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      Returns:
      BranchProtection
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetBranchProtectionWithHttpInfo

      public ApiResponse<BranchProtection> repoGetBranchProtectionWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String name) throws ApiException
      Get a specific branch protection for the repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      Returns:
      ApiResponse<BranchProtection>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetBranchProtectionAsync

      public com.squareup.okhttp.Call repoGetBranchProtectionAsync​(java.lang.String owner, java.lang.String repo, java.lang.String name, ApiCallback<BranchProtection> callback) throws ApiException
      Get a specific branch protection for the repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      name - name of protected branch (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetByIDCall

      public com.squareup.okhttp.Call repoGetByIDCall​(java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetByID
      Parameters:
      id - id of the repo to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetByID

      public Repository repoGetByID​(java.lang.Long id) throws ApiException
      Get a repository by id
      Parameters:
      id - id of the repo to get (required)
      Returns:
      Repository
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetByIDWithHttpInfo

      public ApiResponse<Repository> repoGetByIDWithHttpInfo​(java.lang.Long id) throws ApiException
      Get a repository by id
      Parameters:
      id - id of the repo to get (required)
      Returns:
      ApiResponse<Repository>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetByIDAsync

      public com.squareup.okhttp.Call repoGetByIDAsync​(java.lang.Long id, ApiCallback<Repository> callback) throws ApiException
      Get a repository by id (asynchronously)
      Parameters:
      id - id of the repo to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetCombinedStatusByRefCall

      public com.squareup.okhttp.Call repoGetCombinedStatusByRefCall​(java.lang.String owner, java.lang.String repo, java.lang.String ref, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetCombinedStatusByRef
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - name of branch/tag/commit (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetCombinedStatusByRef

      public CombinedStatus repoGetCombinedStatusByRef​(java.lang.String owner, java.lang.String repo, java.lang.String ref, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get a commit's combined status, by branch/tag/commit reference
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - name of branch/tag/commit (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      CombinedStatus
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetCombinedStatusByRefWithHttpInfo

      public ApiResponse<CombinedStatus> repoGetCombinedStatusByRefWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String ref, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get a commit's combined status, by branch/tag/commit reference
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - name of branch/tag/commit (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<CombinedStatus>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetCombinedStatusByRefAsync

      public com.squareup.okhttp.Call repoGetCombinedStatusByRefAsync​(java.lang.String owner, java.lang.String repo, java.lang.String ref, java.lang.Integer page, java.lang.Integer limit, ApiCallback<CombinedStatus> callback) throws ApiException
      Get a commit's combined status, by branch/tag/commit reference (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - name of branch/tag/commit (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetContentsCall

      public com.squareup.okhttp.Call repoGetContentsCall​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, java.lang.String ref, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetContents
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the dir, file, symlink or submodule in the repo (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetContents

      public ContentsResponse repoGetContents​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, java.lang.String ref) throws ApiException
      Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the dir, file, symlink or submodule in the repo (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      Returns:
      ContentsResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetContentsWithHttpInfo

      public ApiResponse<ContentsResponse> repoGetContentsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, java.lang.String ref) throws ApiException
      Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the dir, file, symlink or submodule in the repo (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      Returns:
      ApiResponse<ContentsResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetContentsAsync

      public com.squareup.okhttp.Call repoGetContentsAsync​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, java.lang.String ref, ApiCallback<ContentsResponse> callback) throws ApiException
      Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the dir, file, symlink or submodule in the repo (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetContentsListCall

      public com.squareup.okhttp.Call repoGetContentsListCall​(java.lang.String owner, java.lang.String repo, java.lang.String ref, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetContentsList
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetContentsList

      public java.util.List<ContentsResponse> repoGetContentsList​(java.lang.String owner, java.lang.String repo, java.lang.String ref) throws ApiException
      Gets the metadata of all the entries of the root dir
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      Returns:
      List<ContentsResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetContentsListWithHttpInfo

      public ApiResponse<java.util.List<ContentsResponse>> repoGetContentsListWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String ref) throws ApiException
      Gets the metadata of all the entries of the root dir
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      Returns:
      ApiResponse<List<ContentsResponse>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetContentsListAsync

      public com.squareup.okhttp.Call repoGetContentsListAsync​(java.lang.String owner, java.lang.String repo, java.lang.String ref, ApiCallback<java.util.List<ContentsResponse>> callback) throws ApiException
      Gets the metadata of all the entries of the root dir (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetEditorConfigCall

      public com.squareup.okhttp.Call repoGetEditorConfigCall​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetEditorConfig
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - filepath of file to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetEditorConfig

      public void repoGetEditorConfig​(java.lang.String owner, java.lang.String repo, java.lang.String filepath) throws ApiException
      Get the EditorConfig definitions of a file in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - filepath of file to get (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetEditorConfigWithHttpInfo

      public ApiResponse<java.lang.Void> repoGetEditorConfigWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String filepath) throws ApiException
      Get the EditorConfig definitions of a file in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - filepath of file to get (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetEditorConfigAsync

      public com.squareup.okhttp.Call repoGetEditorConfigAsync​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, ApiCallback<java.lang.Void> callback) throws ApiException
      Get the EditorConfig definitions of a file in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - filepath of file to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetGitHookCall

      public com.squareup.okhttp.Call repoGetGitHookCall​(java.lang.String owner, java.lang.String repo, java.lang.String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetGitHook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetGitHook

      public GitHook repoGetGitHook​(java.lang.String owner, java.lang.String repo, java.lang.String id) throws ApiException
      Get a Git hook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      Returns:
      GitHook
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetGitHookWithHttpInfo

      public ApiResponse<GitHook> repoGetGitHookWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String id) throws ApiException
      Get a Git hook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      Returns:
      ApiResponse<GitHook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetGitHookAsync

      public com.squareup.okhttp.Call repoGetGitHookAsync​(java.lang.String owner, java.lang.String repo, java.lang.String id, ApiCallback<GitHook> callback) throws ApiException
      Get a Git hook (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetHookCall

      public com.squareup.okhttp.Call repoGetHookCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetHook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetHook

      public Hook repoGetHook​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Get a hook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      Returns:
      Hook
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetHookWithHttpInfo

      public ApiResponse<Hook> repoGetHookWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Get a hook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      Returns:
      ApiResponse<Hook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetHookAsync

      public com.squareup.okhttp.Call repoGetHookAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ApiCallback<Hook> callback) throws ApiException
      Get a hook (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetIssueTemplatesCall

      public com.squareup.okhttp.Call repoGetIssueTemplatesCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetIssueTemplates
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetIssueTemplates

      public java.util.List<IssueTemplate> repoGetIssueTemplates​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get available issue templates for a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      List<IssueTemplate>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetIssueTemplatesWithHttpInfo

      public ApiResponse<java.util.List<IssueTemplate>> repoGetIssueTemplatesWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get available issue templates for a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<List<IssueTemplate>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetIssueTemplatesAsync

      public com.squareup.okhttp.Call repoGetIssueTemplatesAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.util.List<IssueTemplate>> callback) throws ApiException
      Get available issue templates for a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetKeyCall

      public com.squareup.okhttp.Call repoGetKeyCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetKey
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the key to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetKey

      public DeployKey repoGetKey​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Get a repository's key by id
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the key to get (required)
      Returns:
      DeployKey
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetKeyWithHttpInfo

      public ApiResponse<DeployKey> repoGetKeyWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Get a repository's key by id
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the key to get (required)
      Returns:
      ApiResponse<DeployKey>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetKeyAsync

      public com.squareup.okhttp.Call repoGetKeyAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ApiCallback<DeployKey> callback) throws ApiException
      Get a repository's key by id (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the key to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetLanguagesCall

      public com.squareup.okhttp.Call repoGetLanguagesCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetLanguages
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetLanguages

      public java.util.Map<java.lang.String,​java.lang.Long> repoGetLanguages​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get languages and number of bytes of code written
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      Map<String, Long>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetLanguagesWithHttpInfo

      public ApiResponse<java.util.Map<java.lang.String,​java.lang.Long>> repoGetLanguagesWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get languages and number of bytes of code written
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<Map<String, Long>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetLanguagesAsync

      public com.squareup.okhttp.Call repoGetLanguagesAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.util.Map<java.lang.String,​java.lang.Long>> callback) throws ApiException
      Get languages and number of bytes of code written (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetPullRequestCall

      public com.squareup.okhttp.Call repoGetPullRequestCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetPullRequest
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetPullRequest

      public PullRequest repoGetPullRequest​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Get a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      Returns:
      PullRequest
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetPullRequestWithHttpInfo

      public ApiResponse<PullRequest> repoGetPullRequestWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Get a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      Returns:
      ApiResponse<PullRequest>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetPullRequestAsync

      public com.squareup.okhttp.Call repoGetPullRequestAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ApiCallback<PullRequest> callback) throws ApiException
      Get a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetPullRequestCommitsCall

      public com.squareup.okhttp.Call repoGetPullRequestCommitsCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetPullRequestCommits
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetPullRequestCommits

      public java.util.List<Commit> repoGetPullRequestCommits​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get commits for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<Commit>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetPullRequestCommitsWithHttpInfo

      public ApiResponse<java.util.List<Commit>> repoGetPullRequestCommitsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get commits for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<Commit>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetPullRequestCommitsAsync

      public com.squareup.okhttp.Call repoGetPullRequestCommitsAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Commit>> callback) throws ApiException
      Get commits for a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetPullReviewCall

      public com.squareup.okhttp.Call repoGetPullReviewCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetPullReview
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetPullReview

      public PullReview repoGetPullReview​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id) throws ApiException
      Get a specific review for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      Returns:
      PullReview
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetPullReviewWithHttpInfo

      public ApiResponse<PullReview> repoGetPullReviewWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id) throws ApiException
      Get a specific review for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      Returns:
      ApiResponse<PullReview>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetPullReviewAsync

      public com.squareup.okhttp.Call repoGetPullReviewAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, ApiCallback<PullReview> callback) throws ApiException
      Get a specific review for a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetPullReviewCommentsCall

      public com.squareup.okhttp.Call repoGetPullReviewCommentsCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetPullReviewComments
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetPullReviewComments

      public java.util.List<PullReviewComment> repoGetPullReviewComments​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id) throws ApiException
      Get a specific review for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      Returns:
      List<PullReviewComment>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetPullReviewCommentsWithHttpInfo

      public ApiResponse<java.util.List<PullReviewComment>> repoGetPullReviewCommentsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id) throws ApiException
      Get a specific review for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      Returns:
      ApiResponse<List<PullReviewComment>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetPullReviewCommentsAsync

      public com.squareup.okhttp.Call repoGetPullReviewCommentsAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, ApiCallback<java.util.List<PullReviewComment>> callback) throws ApiException
      Get a specific review for a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetRawFileCall

      public com.squareup.okhttp.Call repoGetRawFileCall​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, java.lang.String ref, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetRawFile
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - filepath of the file to get (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetRawFile

      public void repoGetRawFile​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, java.lang.String ref) throws ApiException
      Get a file from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - filepath of the file to get (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetRawFileWithHttpInfo

      public ApiResponse<java.lang.Void> repoGetRawFileWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, java.lang.String ref) throws ApiException
      Get a file from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - filepath of the file to get (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetRawFileAsync

      public com.squareup.okhttp.Call repoGetRawFileAsync​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, java.lang.String ref, ApiCallback<java.lang.Void> callback) throws ApiException
      Get a file from a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - filepath of the file to get (required)
      ref - The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetReleaseCall

      public com.squareup.okhttp.Call repoGetReleaseCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetRelease
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetRelease

      public Release repoGetRelease​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Get a release
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to get (required)
      Returns:
      Release
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetReleaseWithHttpInfo

      public ApiResponse<Release> repoGetReleaseWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Get a release
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to get (required)
      Returns:
      ApiResponse<Release>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetReleaseAsync

      public com.squareup.okhttp.Call repoGetReleaseAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ApiCallback<Release> callback) throws ApiException
      Get a release (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetReleaseAttachmentCall

      public com.squareup.okhttp.Call repoGetReleaseAttachmentCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetReleaseAttachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetReleaseAttachment

      public Attachment repoGetReleaseAttachment​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId) throws ApiException
      Get a release attachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to get (required)
      Returns:
      Attachment
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetReleaseAttachmentWithHttpInfo

      public ApiResponse<Attachment> repoGetReleaseAttachmentWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId) throws ApiException
      Get a release attachment
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to get (required)
      Returns:
      ApiResponse<Attachment>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetReleaseAttachmentAsync

      public com.squareup.okhttp.Call repoGetReleaseAttachmentAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, java.lang.Long attachmentId, ApiCallback<Attachment> callback) throws ApiException
      Get a release attachment (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      attachmentId - id of the attachment to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetReleaseByTagCall

      public com.squareup.okhttp.Call repoGetReleaseByTagCall​(java.lang.String owner, java.lang.String repo, java.lang.String tag, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetReleaseByTag
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - tag name of the release to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetReleaseByTag

      public Release repoGetReleaseByTag​(java.lang.String owner, java.lang.String repo, java.lang.String tag) throws ApiException
      Get a release by tag name
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - tag name of the release to get (required)
      Returns:
      Release
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetReleaseByTagWithHttpInfo

      public ApiResponse<Release> repoGetReleaseByTagWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String tag) throws ApiException
      Get a release by tag name
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - tag name of the release to get (required)
      Returns:
      ApiResponse<Release>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetReleaseByTagAsync

      public com.squareup.okhttp.Call repoGetReleaseByTagAsync​(java.lang.String owner, java.lang.String repo, java.lang.String tag, ApiCallback<Release> callback) throws ApiException
      Get a release by tag name (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - tag name of the release to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetReviewersCall

      public com.squareup.okhttp.Call repoGetReviewersCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetReviewers
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetReviewers

      public java.util.List<User> repoGetReviewers​(java.lang.String owner, java.lang.String repo) throws ApiException
      Return all users that can be requested to review in this repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      List<User>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetReviewersWithHttpInfo

      public ApiResponse<java.util.List<User>> repoGetReviewersWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Return all users that can be requested to review in this repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<List<User>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetReviewersAsync

      public com.squareup.okhttp.Call repoGetReviewersAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.util.List<User>> callback) throws ApiException
      Return all users that can be requested to review in this repo (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetSingleCommitCall

      public com.squareup.okhttp.Call repoGetSingleCommitCall​(java.lang.String owner, java.lang.String repo, java.lang.String sha, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetSingleCommit
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - a git ref or commit sha (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetSingleCommit

      public Commit repoGetSingleCommit​(java.lang.String owner, java.lang.String repo, java.lang.String sha) throws ApiException
      Get a single commit from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - a git ref or commit sha (required)
      Returns:
      Commit
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetSingleCommitWithHttpInfo

      public ApiResponse<Commit> repoGetSingleCommitWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String sha) throws ApiException
      Get a single commit from a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - a git ref or commit sha (required)
      Returns:
      ApiResponse<Commit>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetSingleCommitAsync

      public com.squareup.okhttp.Call repoGetSingleCommitAsync​(java.lang.String owner, java.lang.String repo, java.lang.String sha, ApiCallback<Commit> callback) throws ApiException
      Get a single commit from a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - a git ref or commit sha (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoGetTagCall

      public com.squareup.okhttp.Call repoGetTagCall​(java.lang.String owner, java.lang.String repo, java.lang.String tag, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoGetTag
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - name of tag (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoGetTag

      public Tag repoGetTag​(java.lang.String owner, java.lang.String repo, java.lang.String tag) throws ApiException
      Get the tag of a repository by tag name
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - name of tag (required)
      Returns:
      Tag
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetTagWithHttpInfo

      public ApiResponse<Tag> repoGetTagWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String tag) throws ApiException
      Get the tag of a repository by tag name
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - name of tag (required)
      Returns:
      ApiResponse<Tag>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoGetTagAsync

      public com.squareup.okhttp.Call repoGetTagAsync​(java.lang.String owner, java.lang.String repo, java.lang.String tag, ApiCallback<Tag> callback) throws ApiException
      Get the tag of a repository by tag name (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      tag - name of tag (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListAllGitRefsCall

      public com.squareup.okhttp.Call repoListAllGitRefsCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListAllGitRefs
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListAllGitRefs

      public java.util.List<Reference> repoListAllGitRefs​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get specified ref or filtered repository's refs
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      List<Reference>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListAllGitRefsWithHttpInfo

      public ApiResponse<java.util.List<Reference>> repoListAllGitRefsWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get specified ref or filtered repository's refs
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<List<Reference>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListAllGitRefsAsync

      public com.squareup.okhttp.Call repoListAllGitRefsAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.util.List<Reference>> callback) throws ApiException
      Get specified ref or filtered repository's refs (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListBranchProtectionCall

      public com.squareup.okhttp.Call repoListBranchProtectionCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListBranchProtection
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListBranchProtection

      public java.util.List<BranchProtection> repoListBranchProtection​(java.lang.String owner, java.lang.String repo) throws ApiException
      List branch protections for a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      List<BranchProtection>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListBranchProtectionWithHttpInfo

      public ApiResponse<java.util.List<BranchProtection>> repoListBranchProtectionWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      List branch protections for a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<List<BranchProtection>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListBranchProtectionAsync

      public com.squareup.okhttp.Call repoListBranchProtectionAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.util.List<BranchProtection>> callback) throws ApiException
      List branch protections for a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListBranchesCall

      public com.squareup.okhttp.Call repoListBranchesCall​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListBranches
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListBranches

      public java.util.List<Branch> repoListBranches​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's branches
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<Branch>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListBranchesWithHttpInfo

      public ApiResponse<java.util.List<Branch>> repoListBranchesWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's branches
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<Branch>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListBranchesAsync

      public com.squareup.okhttp.Call repoListBranchesAsync​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Branch>> callback) throws ApiException
      List a repository's branches (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListCollaboratorsCall

      public com.squareup.okhttp.Call repoListCollaboratorsCall​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListCollaborators
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListCollaborators

      public java.util.List<User> repoListCollaborators​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's collaborators
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<User>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListCollaboratorsWithHttpInfo

      public ApiResponse<java.util.List<User>> repoListCollaboratorsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's collaborators
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<User>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListCollaboratorsAsync

      public com.squareup.okhttp.Call repoListCollaboratorsAsync​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<User>> callback) throws ApiException
      List a repository's collaborators (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListGitHooksCall

      public com.squareup.okhttp.Call repoListGitHooksCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListGitHooks
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListGitHooks

      public java.util.List<GitHook> repoListGitHooks​(java.lang.String owner, java.lang.String repo) throws ApiException
      List the Git hooks in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      List<GitHook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListGitHooksWithHttpInfo

      public ApiResponse<java.util.List<GitHook>> repoListGitHooksWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      List the Git hooks in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<List<GitHook>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListGitHooksAsync

      public com.squareup.okhttp.Call repoListGitHooksAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.util.List<GitHook>> callback) throws ApiException
      List the Git hooks in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListGitRefsCall

      public com.squareup.okhttp.Call repoListGitRefsCall​(java.lang.String owner, java.lang.String repo, java.lang.String ref, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListGitRefs
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - part or full name of the ref (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListGitRefs

      public java.util.List<Reference> repoListGitRefs​(java.lang.String owner, java.lang.String repo, java.lang.String ref) throws ApiException
      Get specified ref or filtered repository's refs
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - part or full name of the ref (required)
      Returns:
      List<Reference>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListGitRefsWithHttpInfo

      public ApiResponse<java.util.List<Reference>> repoListGitRefsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String ref) throws ApiException
      Get specified ref or filtered repository's refs
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - part or full name of the ref (required)
      Returns:
      ApiResponse<List<Reference>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListGitRefsAsync

      public com.squareup.okhttp.Call repoListGitRefsAsync​(java.lang.String owner, java.lang.String repo, java.lang.String ref, ApiCallback<java.util.List<Reference>> callback) throws ApiException
      Get specified ref or filtered repository's refs (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - part or full name of the ref (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListHooksCall

      public com.squareup.okhttp.Call repoListHooksCall​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListHooks
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListHooks

      public java.util.List<Hook> repoListHooks​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List the hooks in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<Hook>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListHooksWithHttpInfo

      public ApiResponse<java.util.List<Hook>> repoListHooksWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List the hooks in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<Hook>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListHooksAsync

      public com.squareup.okhttp.Call repoListHooksAsync​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Hook>> callback) throws ApiException
      List the hooks in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListKeysCall

      public com.squareup.okhttp.Call repoListKeysCall​(java.lang.String owner, java.lang.String repo, java.lang.Integer keyId, java.lang.String fingerprint, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListKeys
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      keyId - the key_id to search for (optional)
      fingerprint - fingerprint of the key (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListKeys

      public java.util.List<DeployKey> repoListKeys​(java.lang.String owner, java.lang.String repo, java.lang.Integer keyId, java.lang.String fingerprint, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's keys
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      keyId - the key_id to search for (optional)
      fingerprint - fingerprint of the key (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<DeployKey>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListKeysWithHttpInfo

      public ApiResponse<java.util.List<DeployKey>> repoListKeysWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Integer keyId, java.lang.String fingerprint, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's keys
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      keyId - the key_id to search for (optional)
      fingerprint - fingerprint of the key (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<DeployKey>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListKeysAsync

      public com.squareup.okhttp.Call repoListKeysAsync​(java.lang.String owner, java.lang.String repo, java.lang.Integer keyId, java.lang.String fingerprint, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<DeployKey>> callback) throws ApiException
      List a repository's keys (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      keyId - the key_id to search for (optional)
      fingerprint - fingerprint of the key (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListPullRequestsCall

      public com.squareup.okhttp.Call repoListPullRequestsCall​(java.lang.String owner, java.lang.String repo, java.lang.String state, java.lang.String sort, java.lang.Long milestone, java.util.List<java.lang.Long> labels, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListPullRequests
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      state - State of pull request: open or closed (optional) (optional)
      sort - Type of sort (optional)
      milestone - ID of the milestone (optional)
      labels - Label IDs (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListPullRequests

      public java.util.List<PullRequest> repoListPullRequests​(java.lang.String owner, java.lang.String repo, java.lang.String state, java.lang.String sort, java.lang.Long milestone, java.util.List<java.lang.Long> labels, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's pull requests
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      state - State of pull request: open or closed (optional) (optional)
      sort - Type of sort (optional)
      milestone - ID of the milestone (optional)
      labels - Label IDs (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<PullRequest>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListPullRequestsWithHttpInfo

      public ApiResponse<java.util.List<PullRequest>> repoListPullRequestsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String state, java.lang.String sort, java.lang.Long milestone, java.util.List<java.lang.Long> labels, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's pull requests
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      state - State of pull request: open or closed (optional) (optional)
      sort - Type of sort (optional)
      milestone - ID of the milestone (optional)
      labels - Label IDs (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<PullRequest>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListPullRequestsAsync

      public com.squareup.okhttp.Call repoListPullRequestsAsync​(java.lang.String owner, java.lang.String repo, java.lang.String state, java.lang.String sort, java.lang.Long milestone, java.util.List<java.lang.Long> labels, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<PullRequest>> callback) throws ApiException
      List a repo's pull requests (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      state - State of pull request: open or closed (optional) (optional)
      sort - Type of sort (optional)
      milestone - ID of the milestone (optional)
      labels - Label IDs (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListPullReviewsCall

      public com.squareup.okhttp.Call repoListPullReviewsCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListPullReviews
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListPullReviews

      public java.util.List<PullReview> repoListPullReviews​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List all reviews for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<PullReview>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListPullReviewsWithHttpInfo

      public ApiResponse<java.util.List<PullReview>> repoListPullReviewsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List all reviews for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<PullReview>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListPullReviewsAsync

      public com.squareup.okhttp.Call repoListPullReviewsAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<PullReview>> callback) throws ApiException
      List all reviews for a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListReleaseAttachmentsCall

      public com.squareup.okhttp.Call repoListReleaseAttachmentsCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListReleaseAttachments
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListReleaseAttachments

      public java.util.List<Attachment> repoListReleaseAttachments​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      List release's attachments
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      Returns:
      List<Attachment>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListReleaseAttachmentsWithHttpInfo

      public ApiResponse<java.util.List<Attachment>> repoListReleaseAttachmentsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      List release's attachments
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      Returns:
      ApiResponse<List<Attachment>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListReleaseAttachmentsAsync

      public com.squareup.okhttp.Call repoListReleaseAttachmentsAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ApiCallback<java.util.List<Attachment>> callback) throws ApiException
      List release's attachments (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the release (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListReleasesCall

      public com.squareup.okhttp.Call repoListReleasesCall​(java.lang.String owner, java.lang.String repo, java.lang.Boolean draft, java.lang.Boolean preRelease, java.lang.Integer perPage, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListReleases
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      draft - filter (exclude / include) drafts, if you dont have repo write access none will show (optional)
      preRelease - filter (exclude / include) pre-releases (optional)
      perPage - page size of results, deprecated - use limit (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListReleases

      public java.util.List<Release> repoListReleases​(java.lang.String owner, java.lang.String repo, java.lang.Boolean draft, java.lang.Boolean preRelease, java.lang.Integer perPage, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's releases
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      draft - filter (exclude / include) drafts, if you dont have repo write access none will show (optional)
      preRelease - filter (exclude / include) pre-releases (optional)
      perPage - page size of results, deprecated - use limit (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<Release>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListReleasesWithHttpInfo

      public ApiResponse<java.util.List<Release>> repoListReleasesWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Boolean draft, java.lang.Boolean preRelease, java.lang.Integer perPage, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's releases
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      draft - filter (exclude / include) drafts, if you dont have repo write access none will show (optional)
      preRelease - filter (exclude / include) pre-releases (optional)
      perPage - page size of results, deprecated - use limit (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<Release>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListReleasesAsync

      public com.squareup.okhttp.Call repoListReleasesAsync​(java.lang.String owner, java.lang.String repo, java.lang.Boolean draft, java.lang.Boolean preRelease, java.lang.Integer perPage, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Release>> callback) throws ApiException
      List a repo's releases (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      draft - filter (exclude / include) drafts, if you dont have repo write access none will show (optional)
      preRelease - filter (exclude / include) pre-releases (optional)
      perPage - page size of results, deprecated - use limit (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListStargazersCall

      public com.squareup.okhttp.Call repoListStargazersCall​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListStargazers
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListStargazers

      public java.util.List<User> repoListStargazers​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's stargazers
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<User>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListStargazersWithHttpInfo

      public ApiResponse<java.util.List<User>> repoListStargazersWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's stargazers
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<User>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListStargazersAsync

      public com.squareup.okhttp.Call repoListStargazersAsync​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<User>> callback) throws ApiException
      List a repo's stargazers (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListStatusesCall

      public com.squareup.okhttp.Call repoListStatusesCall​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.String sort, java.lang.String state, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListStatuses
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      sort - type of sort (optional)
      state - type of state (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListStatuses

      public java.util.List<CommitStatus> repoListStatuses​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.String sort, java.lang.String state, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get a commit's statuses
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      sort - type of sort (optional)
      state - type of state (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<CommitStatus>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListStatusesWithHttpInfo

      public ApiResponse<java.util.List<CommitStatus>> repoListStatusesWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.String sort, java.lang.String state, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get a commit's statuses
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      sort - type of sort (optional)
      state - type of state (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<CommitStatus>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListStatusesAsync

      public com.squareup.okhttp.Call repoListStatusesAsync​(java.lang.String owner, java.lang.String repo, java.lang.String sha, java.lang.String sort, java.lang.String state, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<CommitStatus>> callback) throws ApiException
      Get a commit's statuses (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      sha - sha of the commit (required)
      sort - type of sort (optional)
      state - type of state (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListStatusesByRefCall

      public com.squareup.okhttp.Call repoListStatusesByRefCall​(java.lang.String owner, java.lang.String repo, java.lang.String ref, java.lang.String sort, java.lang.String state, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListStatusesByRef
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - name of branch/tag/commit (required)
      sort - type of sort (optional)
      state - type of state (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListStatusesByRef

      public java.util.List<CommitStatus> repoListStatusesByRef​(java.lang.String owner, java.lang.String repo, java.lang.String ref, java.lang.String sort, java.lang.String state, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get a commit's statuses, by branch/tag/commit reference
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - name of branch/tag/commit (required)
      sort - type of sort (optional)
      state - type of state (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<CommitStatus>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListStatusesByRefWithHttpInfo

      public ApiResponse<java.util.List<CommitStatus>> repoListStatusesByRefWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String ref, java.lang.String sort, java.lang.String state, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get a commit's statuses, by branch/tag/commit reference
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - name of branch/tag/commit (required)
      sort - type of sort (optional)
      state - type of state (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<CommitStatus>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListStatusesByRefAsync

      public com.squareup.okhttp.Call repoListStatusesByRefAsync​(java.lang.String owner, java.lang.String repo, java.lang.String ref, java.lang.String sort, java.lang.String state, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<CommitStatus>> callback) throws ApiException
      Get a commit's statuses, by branch/tag/commit reference (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      ref - name of branch/tag/commit (required)
      sort - type of sort (optional)
      state - type of state (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListSubscribersCall

      public com.squareup.okhttp.Call repoListSubscribersCall​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListSubscribers
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListSubscribers

      public java.util.List<User> repoListSubscribers​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's watchers
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<User>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListSubscribersWithHttpInfo

      public ApiResponse<java.util.List<User>> repoListSubscribersWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's watchers
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<User>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListSubscribersAsync

      public com.squareup.okhttp.Call repoListSubscribersAsync​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<User>> callback) throws ApiException
      List a repo's watchers (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListTagsCall

      public com.squareup.okhttp.Call repoListTagsCall​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListTags
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results, default maximum page size is 50 (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListTags

      public java.util.List<Tag> repoListTags​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's tags
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results, default maximum page size is 50 (optional)
      Returns:
      List<Tag>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListTagsWithHttpInfo

      public ApiResponse<java.util.List<Tag>> repoListTagsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repository's tags
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results, default maximum page size is 50 (optional)
      Returns:
      ApiResponse<List<Tag>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListTagsAsync

      public com.squareup.okhttp.Call repoListTagsAsync​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<Tag>> callback) throws ApiException
      List a repository's tags (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results, default maximum page size is 50 (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListTeamsCall

      public com.squareup.okhttp.Call repoListTeamsCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListTeams
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListTeams

      public java.util.List<Team> repoListTeams​(java.lang.String owner, java.lang.String repo) throws ApiException
      List a repository's teams
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      List<Team>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListTeamsWithHttpInfo

      public ApiResponse<java.util.List<Team>> repoListTeamsWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      List a repository's teams
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<List<Team>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListTeamsAsync

      public com.squareup.okhttp.Call repoListTeamsAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.util.List<Team>> callback) throws ApiException
      List a repository's teams (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoListTopicsCall

      public com.squareup.okhttp.Call repoListTopicsCall​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoListTopics
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoListTopics

      public TopicName repoListTopics​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get list of topics that a repository has
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      TopicName
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListTopicsWithHttpInfo

      public ApiResponse<TopicName> repoListTopicsWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Get list of topics that a repository has
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<TopicName>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoListTopicsAsync

      public com.squareup.okhttp.Call repoListTopicsAsync​(java.lang.String owner, java.lang.String repo, java.lang.Integer page, java.lang.Integer limit, ApiCallback<TopicName> callback) throws ApiException
      Get list of topics that a repository has (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoMergePullRequestCall

      public com.squareup.okhttp.Call repoMergePullRequestCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, MergePullRequestOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoMergePullRequest
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to merge (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoMergePullRequest

      public void repoMergePullRequest​(java.lang.String owner, java.lang.String repo, java.lang.Long index, MergePullRequestOption body) throws ApiException
      Merge a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to merge (required)
      body - (optional)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoMergePullRequestWithHttpInfo

      public ApiResponse<java.lang.Void> repoMergePullRequestWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, MergePullRequestOption body) throws ApiException
      Merge a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to merge (required)
      body - (optional)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoMergePullRequestAsync

      public com.squareup.okhttp.Call repoMergePullRequestAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, MergePullRequestOption body, ApiCallback<java.lang.Void> callback) throws ApiException
      Merge a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to merge (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoMigrateCall

      public com.squareup.okhttp.Call repoMigrateCall​(MigrateRepoOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoMigrate
      Parameters:
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoMigrate

      public Repository repoMigrate​(MigrateRepoOptions body) throws ApiException
      Migrate a remote git repository
      Parameters:
      body - (optional)
      Returns:
      Repository
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoMigrateWithHttpInfo

      public ApiResponse<Repository> repoMigrateWithHttpInfo​(MigrateRepoOptions body) throws ApiException
      Migrate a remote git repository
      Parameters:
      body - (optional)
      Returns:
      ApiResponse<Repository>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoMigrateAsync

      public com.squareup.okhttp.Call repoMigrateAsync​(MigrateRepoOptions body, ApiCallback<Repository> callback) throws ApiException
      Migrate a remote git repository (asynchronously)
      Parameters:
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoMirrorSyncCall

      public com.squareup.okhttp.Call repoMirrorSyncCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoMirrorSync
      Parameters:
      owner - owner of the repo to sync (required)
      repo - name of the repo to sync (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoMirrorSync

      public void repoMirrorSync​(java.lang.String owner, java.lang.String repo) throws ApiException
      Sync a mirrored repository
      Parameters:
      owner - owner of the repo to sync (required)
      repo - name of the repo to sync (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoMirrorSyncWithHttpInfo

      public ApiResponse<java.lang.Void> repoMirrorSyncWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Sync a mirrored repository
      Parameters:
      owner - owner of the repo to sync (required)
      repo - name of the repo to sync (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoMirrorSyncAsync

      public com.squareup.okhttp.Call repoMirrorSyncAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.lang.Void> callback) throws ApiException
      Sync a mirrored repository (asynchronously)
      Parameters:
      owner - owner of the repo to sync (required)
      repo - name of the repo to sync (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoPullRequestIsMergedCall

      public com.squareup.okhttp.Call repoPullRequestIsMergedCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoPullRequestIsMerged
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoPullRequestIsMerged

      public void repoPullRequestIsMerged​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Check if a pull request has been merged
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoPullRequestIsMergedWithHttpInfo

      public ApiResponse<java.lang.Void> repoPullRequestIsMergedWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Check if a pull request has been merged
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoPullRequestIsMergedAsync

      public com.squareup.okhttp.Call repoPullRequestIsMergedAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ApiCallback<java.lang.Void> callback) throws ApiException
      Check if a pull request has been merged (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoSearchCall

      public com.squareup.okhttp.Call repoSearchCall​(java.lang.String q, java.lang.Boolean topic, java.lang.Boolean includeDesc, java.lang.Long uid, java.lang.Long priorityOwnerId, java.lang.Long teamId, java.lang.Long starredBy, java.lang.Boolean _private, java.lang.Boolean isPrivate, java.lang.Boolean template, java.lang.Boolean archived, java.lang.String mode, java.lang.Boolean exclusive, java.lang.String sort, java.lang.String order, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoSearch
      Parameters:
      q - keyword (optional)
      topic - Limit search to repositories with keyword as topic (optional)
      includeDesc - include search of keyword within repository description (optional)
      uid - search only for repos that the user with the given id owns or contributes to (optional)
      priorityOwnerId - repo owner to prioritize in the results (optional)
      teamId - search only for repos that belong to the given team id (optional)
      starredBy - search only for repos that the user with the given id has starred (optional)
      _private - include private repositories this user has access to (defaults to true) (optional)
      isPrivate - show only pubic, private or all repositories (defaults to all) (optional)
      template - include template repositories this user has access to (defaults to true) (optional)
      archived - show only archived, non-archived or all repositories (defaults to all) (optional)
      mode - type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\" (optional)
      exclusive - if `uid` is given, search only for repos that the user owns (optional)
      sort - sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\" (optional)
      order - sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified. (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoSearch

      public SearchResults repoSearch​(java.lang.String q, java.lang.Boolean topic, java.lang.Boolean includeDesc, java.lang.Long uid, java.lang.Long priorityOwnerId, java.lang.Long teamId, java.lang.Long starredBy, java.lang.Boolean _private, java.lang.Boolean isPrivate, java.lang.Boolean template, java.lang.Boolean archived, java.lang.String mode, java.lang.Boolean exclusive, java.lang.String sort, java.lang.String order, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Search for repositories
      Parameters:
      q - keyword (optional)
      topic - Limit search to repositories with keyword as topic (optional)
      includeDesc - include search of keyword within repository description (optional)
      uid - search only for repos that the user with the given id owns or contributes to (optional)
      priorityOwnerId - repo owner to prioritize in the results (optional)
      teamId - search only for repos that belong to the given team id (optional)
      starredBy - search only for repos that the user with the given id has starred (optional)
      _private - include private repositories this user has access to (defaults to true) (optional)
      isPrivate - show only pubic, private or all repositories (defaults to all) (optional)
      template - include template repositories this user has access to (defaults to true) (optional)
      archived - show only archived, non-archived or all repositories (defaults to all) (optional)
      mode - type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\" (optional)
      exclusive - if `uid` is given, search only for repos that the user owns (optional)
      sort - sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\" (optional)
      order - sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified. (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      SearchResults
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoSearchWithHttpInfo

      public ApiResponse<SearchResults> repoSearchWithHttpInfo​(java.lang.String q, java.lang.Boolean topic, java.lang.Boolean includeDesc, java.lang.Long uid, java.lang.Long priorityOwnerId, java.lang.Long teamId, java.lang.Long starredBy, java.lang.Boolean _private, java.lang.Boolean isPrivate, java.lang.Boolean template, java.lang.Boolean archived, java.lang.String mode, java.lang.Boolean exclusive, java.lang.String sort, java.lang.String order, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      Search for repositories
      Parameters:
      q - keyword (optional)
      topic - Limit search to repositories with keyword as topic (optional)
      includeDesc - include search of keyword within repository description (optional)
      uid - search only for repos that the user with the given id owns or contributes to (optional)
      priorityOwnerId - repo owner to prioritize in the results (optional)
      teamId - search only for repos that belong to the given team id (optional)
      starredBy - search only for repos that the user with the given id has starred (optional)
      _private - include private repositories this user has access to (defaults to true) (optional)
      isPrivate - show only pubic, private or all repositories (defaults to all) (optional)
      template - include template repositories this user has access to (defaults to true) (optional)
      archived - show only archived, non-archived or all repositories (defaults to all) (optional)
      mode - type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\" (optional)
      exclusive - if `uid` is given, search only for repos that the user owns (optional)
      sort - sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\" (optional)
      order - sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified. (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<SearchResults>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoSearchAsync

      public com.squareup.okhttp.Call repoSearchAsync​(java.lang.String q, java.lang.Boolean topic, java.lang.Boolean includeDesc, java.lang.Long uid, java.lang.Long priorityOwnerId, java.lang.Long teamId, java.lang.Long starredBy, java.lang.Boolean _private, java.lang.Boolean isPrivate, java.lang.Boolean template, java.lang.Boolean archived, java.lang.String mode, java.lang.Boolean exclusive, java.lang.String sort, java.lang.String order, java.lang.Integer page, java.lang.Integer limit, ApiCallback<SearchResults> callback) throws ApiException
      Search for repositories (asynchronously)
      Parameters:
      q - keyword (optional)
      topic - Limit search to repositories with keyword as topic (optional)
      includeDesc - include search of keyword within repository description (optional)
      uid - search only for repos that the user with the given id owns or contributes to (optional)
      priorityOwnerId - repo owner to prioritize in the results (optional)
      teamId - search only for repos that belong to the given team id (optional)
      starredBy - search only for repos that the user with the given id has starred (optional)
      _private - include private repositories this user has access to (defaults to true) (optional)
      isPrivate - show only pubic, private or all repositories (defaults to all) (optional)
      template - include template repositories this user has access to (defaults to true) (optional)
      archived - show only archived, non-archived or all repositories (defaults to all) (optional)
      mode - type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\" (optional)
      exclusive - if `uid` is given, search only for repos that the user owns (optional)
      sort - sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\" (optional)
      order - sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified. (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoSigningKeyCall

      public com.squareup.okhttp.Call repoSigningKeyCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoSigningKey
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoSigningKey

      public java.lang.String repoSigningKey​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get signing-key.gpg for given repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      String
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoSigningKeyWithHttpInfo

      public ApiResponse<java.lang.String> repoSigningKeyWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Get signing-key.gpg for given repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<String>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoSigningKeyAsync

      public com.squareup.okhttp.Call repoSigningKeyAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.lang.String> callback) throws ApiException
      Get signing-key.gpg for given repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoSubmitPullReviewCall

      public com.squareup.okhttp.Call repoSubmitPullReviewCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, SubmitPullReviewOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoSubmitPullReview
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      body - (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoSubmitPullReview

      public PullReview repoSubmitPullReview​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, SubmitPullReviewOptions body) throws ApiException
      Submit a pending review to an pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      body - (required)
      Returns:
      PullReview
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoSubmitPullReviewWithHttpInfo

      public ApiResponse<PullReview> repoSubmitPullReviewWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, SubmitPullReviewOptions body) throws ApiException
      Submit a pending review to an pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      body - (required)
      Returns:
      ApiResponse<PullReview>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoSubmitPullReviewAsync

      public com.squareup.okhttp.Call repoSubmitPullReviewAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, SubmitPullReviewOptions body, ApiCallback<PullReview> callback) throws ApiException
      Submit a pending review to an pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      body - (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoTestHookCall

      public com.squareup.okhttp.Call repoTestHookCall​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoTestHook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to test (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoTestHook

      public void repoTestHook​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Test a push webhook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to test (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoTestHookWithHttpInfo

      public ApiResponse<java.lang.Void> repoTestHookWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long id) throws ApiException
      Test a push webhook
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to test (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoTestHookAsync

      public com.squareup.okhttp.Call repoTestHookAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long id, ApiCallback<java.lang.Void> callback) throws ApiException
      Test a push webhook (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      id - id of the hook to test (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoTrackedTimesCall

      public com.squareup.okhttp.Call repoTrackedTimesCall​(java.lang.String owner, java.lang.String repo, java.lang.String user, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoTrackedTimes
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      user - optional filter by user (available for issue managers) (optional)
      since - Only show times updated after the given time. This is a timestamp in RFC 3339 format (optional)
      before - Only show times updated before the given time. This is a timestamp in RFC 3339 format (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoTrackedTimes

      public java.util.List<TrackedTime> repoTrackedTimes​(java.lang.String owner, java.lang.String repo, java.lang.String user, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's tracked times
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      user - optional filter by user (available for issue managers) (optional)
      since - Only show times updated after the given time. This is a timestamp in RFC 3339 format (optional)
      before - Only show times updated before the given time. This is a timestamp in RFC 3339 format (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<TrackedTime>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoTrackedTimesWithHttpInfo

      public ApiResponse<java.util.List<TrackedTime>> repoTrackedTimesWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String user, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      List a repo's tracked times
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      user - optional filter by user (available for issue managers) (optional)
      since - Only show times updated after the given time. This is a timestamp in RFC 3339 format (optional)
      before - Only show times updated before the given time. This is a timestamp in RFC 3339 format (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<TrackedTime>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoTrackedTimesAsync

      public com.squareup.okhttp.Call repoTrackedTimesAsync​(java.lang.String owner, java.lang.String repo, java.lang.String user, org.threeten.bp.OffsetDateTime since, org.threeten.bp.OffsetDateTime before, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<TrackedTime>> callback) throws ApiException
      List a repo's tracked times (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      user - optional filter by user (available for issue managers) (optional)
      since - Only show times updated after the given time. This is a timestamp in RFC 3339 format (optional)
      before - Only show times updated before the given time. This is a timestamp in RFC 3339 format (optional)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoTransferCall

      public com.squareup.okhttp.Call repoTransferCall​(java.lang.String owner, java.lang.String repo, TransferRepoOption body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoTransfer
      Parameters:
      owner - owner of the repo to transfer (required)
      repo - name of the repo to transfer (required)
      body - Transfer Options (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoTransfer

      public Repository repoTransfer​(java.lang.String owner, java.lang.String repo, TransferRepoOption body) throws ApiException
      Transfer a repo ownership
      Parameters:
      owner - owner of the repo to transfer (required)
      repo - name of the repo to transfer (required)
      body - Transfer Options (required)
      Returns:
      Repository
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoTransferWithHttpInfo

      public ApiResponse<Repository> repoTransferWithHttpInfo​(java.lang.String owner, java.lang.String repo, TransferRepoOption body) throws ApiException
      Transfer a repo ownership
      Parameters:
      owner - owner of the repo to transfer (required)
      repo - name of the repo to transfer (required)
      body - Transfer Options (required)
      Returns:
      ApiResponse<Repository>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoTransferAsync

      public com.squareup.okhttp.Call repoTransferAsync​(java.lang.String owner, java.lang.String repo, TransferRepoOption body, ApiCallback<Repository> callback) throws ApiException
      Transfer a repo ownership (asynchronously)
      Parameters:
      owner - owner of the repo to transfer (required)
      repo - name of the repo to transfer (required)
      body - Transfer Options (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoUnDismissPullReviewCall

      public com.squareup.okhttp.Call repoUnDismissPullReviewCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoUnDismissPullReview
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoUnDismissPullReview

      public PullReview repoUnDismissPullReview​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id) throws ApiException
      Cancel to dismiss a review for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      Returns:
      PullReview
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoUnDismissPullReviewWithHttpInfo

      public ApiResponse<PullReview> repoUnDismissPullReviewWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id) throws ApiException
      Cancel to dismiss a review for a pull request
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      Returns:
      ApiResponse<PullReview>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoUnDismissPullReviewAsync

      public com.squareup.okhttp.Call repoUnDismissPullReviewAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, java.lang.Long id, ApiCallback<PullReview> callback) throws ApiException
      Cancel to dismiss a review for a pull request (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request (required)
      id - id of the review (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoUpdateFileCall

      public com.squareup.okhttp.Call repoUpdateFileCall​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, UpdateFileOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoUpdateFile
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to update (required)
      body - (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoUpdateFile

      public FileResponse repoUpdateFile​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, UpdateFileOptions body) throws ApiException
      Update a file in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to update (required)
      body - (required)
      Returns:
      FileResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoUpdateFileWithHttpInfo

      public ApiResponse<FileResponse> repoUpdateFileWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, UpdateFileOptions body) throws ApiException
      Update a file in a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to update (required)
      body - (required)
      Returns:
      ApiResponse<FileResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoUpdateFileAsync

      public com.squareup.okhttp.Call repoUpdateFileAsync​(java.lang.String owner, java.lang.String repo, java.lang.String filepath, UpdateFileOptions body, ApiCallback<FileResponse> callback) throws ApiException
      Update a file in a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      filepath - path of the file to update (required)
      body - (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoUpdatePullRequestCall

      public com.squareup.okhttp.Call repoUpdatePullRequestCall​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoUpdatePullRequest
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoUpdatePullRequest

      public void repoUpdatePullRequest​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Merge PR's baseBranch into headBranch
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoUpdatePullRequestWithHttpInfo

      public ApiResponse<java.lang.Void> repoUpdatePullRequestWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.Long index) throws ApiException
      Merge PR's baseBranch into headBranch
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoUpdatePullRequestAsync

      public com.squareup.okhttp.Call repoUpdatePullRequestAsync​(java.lang.String owner, java.lang.String repo, java.lang.Long index, ApiCallback<java.lang.Void> callback) throws ApiException
      Merge PR's baseBranch into headBranch (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      index - index of the pull request to get (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • repoUpdateTopicsCall

      public com.squareup.okhttp.Call repoUpdateTopicsCall​(java.lang.String owner, java.lang.String repo, RepoTopicOptions body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for repoUpdateTopics
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • repoUpdateTopics

      public void repoUpdateTopics​(java.lang.String owner, java.lang.String repo, RepoTopicOptions body) throws ApiException
      Replace list of topics for a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoUpdateTopicsWithHttpInfo

      public ApiResponse<java.lang.Void> repoUpdateTopicsWithHttpInfo​(java.lang.String owner, java.lang.String repo, RepoTopicOptions body) throws ApiException
      Replace list of topics for a repository
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • repoUpdateTopicsAsync

      public com.squareup.okhttp.Call repoUpdateTopicsAsync​(java.lang.String owner, java.lang.String repo, RepoTopicOptions body, ApiCallback<java.lang.Void> callback) throws ApiException
      Replace list of topics for a repository (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      body - (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • topicSearchCall

      public com.squareup.okhttp.Call topicSearchCall​(java.lang.String q, java.lang.Integer page, java.lang.Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for topicSearch
      Parameters:
      q - keywords to search (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • topicSearch

      public java.util.List<TopicResponse> topicSearch​(java.lang.String q, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      search topics via keyword
      Parameters:
      q - keywords to search (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      List<TopicResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • topicSearchWithHttpInfo

      public ApiResponse<java.util.List<TopicResponse>> topicSearchWithHttpInfo​(java.lang.String q, java.lang.Integer page, java.lang.Integer limit) throws ApiException
      search topics via keyword
      Parameters:
      q - keywords to search (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      Returns:
      ApiResponse<List<TopicResponse>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • topicSearchAsync

      public com.squareup.okhttp.Call topicSearchAsync​(java.lang.String q, java.lang.Integer page, java.lang.Integer limit, ApiCallback<java.util.List<TopicResponse>> callback) throws ApiException
      search topics via keyword (asynchronously)
      Parameters:
      q - keywords to search (required)
      page - page number of results to return (1-based) (optional)
      limit - page size of results (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • userCurrentCheckSubscriptionCall

      public com.squareup.okhttp.Call userCurrentCheckSubscriptionCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for userCurrentCheckSubscription
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • userCurrentCheckSubscription

      public WatchInfo userCurrentCheckSubscription​(java.lang.String owner, java.lang.String repo) throws ApiException
      Check if the current user is watching a repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      WatchInfo
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • userCurrentCheckSubscriptionWithHttpInfo

      public ApiResponse<WatchInfo> userCurrentCheckSubscriptionWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Check if the current user is watching a repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<WatchInfo>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • userCurrentCheckSubscriptionAsync

      public com.squareup.okhttp.Call userCurrentCheckSubscriptionAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<WatchInfo> callback) throws ApiException
      Check if the current user is watching a repo (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • userCurrentDeleteSubscriptionCall

      public com.squareup.okhttp.Call userCurrentDeleteSubscriptionCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for userCurrentDeleteSubscription
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • userCurrentDeleteSubscription

      public void userCurrentDeleteSubscription​(java.lang.String owner, java.lang.String repo) throws ApiException
      Unwatch a repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • userCurrentDeleteSubscriptionWithHttpInfo

      public ApiResponse<java.lang.Void> userCurrentDeleteSubscriptionWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Unwatch a repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • userCurrentDeleteSubscriptionAsync

      public com.squareup.okhttp.Call userCurrentDeleteSubscriptionAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<java.lang.Void> callback) throws ApiException
      Unwatch a repo (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • userCurrentPutSubscriptionCall

      public com.squareup.okhttp.Call userCurrentPutSubscriptionCall​(java.lang.String owner, java.lang.String repo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for userCurrentPutSubscription
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • userCurrentPutSubscription

      public WatchInfo userCurrentPutSubscription​(java.lang.String owner, java.lang.String repo) throws ApiException
      Watch a repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      WatchInfo
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • userCurrentPutSubscriptionWithHttpInfo

      public ApiResponse<WatchInfo> userCurrentPutSubscriptionWithHttpInfo​(java.lang.String owner, java.lang.String repo) throws ApiException
      Watch a repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      Returns:
      ApiResponse<WatchInfo>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • userCurrentPutSubscriptionAsync

      public com.squareup.okhttp.Call userCurrentPutSubscriptionAsync​(java.lang.String owner, java.lang.String repo, ApiCallback<WatchInfo> callback) throws ApiException
      Watch a repo (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • userTrackedTimesCall

      @Deprecated public com.squareup.okhttp.Call userTrackedTimesCall​(java.lang.String owner, java.lang.String repo, java.lang.String user, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for userTrackedTimes
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      user - username of user (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • userTrackedTimes

      @Deprecated public java.util.List<TrackedTime> userTrackedTimes​(java.lang.String owner, java.lang.String repo, java.lang.String user) throws ApiException
      Deprecated.
      List a user's tracked times in a repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      user - username of user (required)
      Returns:
      List<TrackedTime>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • userTrackedTimesWithHttpInfo

      @Deprecated public ApiResponse<java.util.List<TrackedTime>> userTrackedTimesWithHttpInfo​(java.lang.String owner, java.lang.String repo, java.lang.String user) throws ApiException
      Deprecated.
      List a user's tracked times in a repo
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      user - username of user (required)
      Returns:
      ApiResponse<List<TrackedTime>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • userTrackedTimesAsync

      @Deprecated public com.squareup.okhttp.Call userTrackedTimesAsync​(java.lang.String owner, java.lang.String repo, java.lang.String user, ApiCallback<java.util.List<TrackedTime>> callback) throws ApiException
      Deprecated.
      List a user's tracked times in a repo (asynchronously)
      Parameters:
      owner - owner of the repo (required)
      repo - name of the repo (required)
      user - username of user (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object