Class RepositoriesApi


  • public class RepositoriesApi
    extends Object
    • Constructor Detail

      • RepositoriesApi

        public RepositoriesApi()
      • RepositoriesApi

        public RepositoriesApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • createBranchProtectionRuleCall

        public okhttp3.Call createBranchProtectionRuleCall​(String repository,
                                                           BranchProtectionRule branchProtectionRule,
                                                           ApiCallback _callback)
                                                    throws ApiException
        Build call for createBranchProtectionRule
        Parameters:
        repository - (required)
        branchProtectionRule - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        204 branch protection rule created successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • createBranchProtectionRule

        public void createBranchProtectionRule​(String repository,
                                               BranchProtectionRule branchProtectionRule)
                                        throws ApiException
        Parameters:
        repository - (required)
        branchProtectionRule - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 branch protection rule created successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • createBranchProtectionRuleWithHttpInfo

        public ApiResponse<Void> createBranchProtectionRuleWithHttpInfo​(String repository,
                                                                        BranchProtectionRule branchProtectionRule)
                                                                 throws ApiException
        Parameters:
        repository - (required)
        branchProtectionRule - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 branch protection rule created successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • createBranchProtectionRuleAsync

        public okhttp3.Call createBranchProtectionRuleAsync​(String repository,
                                                            BranchProtectionRule branchProtectionRule,
                                                            ApiCallback<Void> _callback)
                                                     throws ApiException
        (asynchronously)
        Parameters:
        repository - (required)
        branchProtectionRule - (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
        Http Response Details:
        Status Code Description Response Headers
        204 branch protection rule created successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • createBranchProtectionRulePreflightCall

        public okhttp3.Call createBranchProtectionRulePreflightCall​(String repository,
                                                                    ApiCallback _callback)
                                                             throws ApiException
        Build call for createBranchProtectionRulePreflight
        Parameters:
        repository - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        204 User has permissions to create a branch protection rule in this repository -
        401 Unauthorized -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • createBranchProtectionRulePreflight

        public void createBranchProtectionRulePreflight​(String repository)
                                                 throws ApiException
        Parameters:
        repository - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 User has permissions to create a branch protection rule in this repository -
        401 Unauthorized -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • createBranchProtectionRulePreflightWithHttpInfo

        public ApiResponse<Void> createBranchProtectionRulePreflightWithHttpInfo​(String repository)
                                                                          throws ApiException
        Parameters:
        repository - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 User has permissions to create a branch protection rule in this repository -
        401 Unauthorized -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • createBranchProtectionRulePreflightAsync

        public okhttp3.Call createBranchProtectionRulePreflightAsync​(String repository,
                                                                     ApiCallback<Void> _callback)
                                                              throws ApiException
        (asynchronously)
        Parameters:
        repository - (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
        Http Response Details:
        Status Code Description Response Headers
        204 User has permissions to create a branch protection rule in this repository -
        401 Unauthorized -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • createRepositoryCall

        public okhttp3.Call createRepositoryCall​(RepositoryCreation repositoryCreation,
                                                 Boolean bare,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for createRepository
        Parameters:
        repositoryCreation - (required)
        bare - If true, create a bare repository with no initial commit and branch (optional, default to false)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        201 repository -
        400 Validation Error -
        401 Unauthorized -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • createRepository

        public Repository createRepository​(RepositoryCreation repositoryCreation,
                                           Boolean bare)
                                    throws ApiException
        create repository
        Parameters:
        repositoryCreation - (required)
        bare - If true, create a bare repository with no initial commit and branch (optional, default to false)
        Returns:
        Repository
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        201 repository -
        400 Validation Error -
        401 Unauthorized -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • createRepositoryWithHttpInfo

        public ApiResponse<Repository> createRepositoryWithHttpInfo​(RepositoryCreation repositoryCreation,
                                                                    Boolean bare)
                                                             throws ApiException
        create repository
        Parameters:
        repositoryCreation - (required)
        bare - If true, create a bare repository with no initial commit and branch (optional, default to false)
        Returns:
        ApiResponse<Repository>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        201 repository -
        400 Validation Error -
        401 Unauthorized -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • createRepositoryAsync

        public okhttp3.Call createRepositoryAsync​(RepositoryCreation repositoryCreation,
                                                  Boolean bare,
                                                  ApiCallback<Repository> _callback)
                                           throws ApiException
        create repository (asynchronously)
        Parameters:
        repositoryCreation - (required)
        bare - If true, create a bare repository with no initial commit and branch (optional, default to false)
        _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
        Http Response Details:
        Status Code Description Response Headers
        201 repository -
        400 Validation Error -
        401 Unauthorized -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • deleteBranchProtectionRuleCall

        public okhttp3.Call deleteBranchProtectionRuleCall​(String repository,
                                                           InlineObject1 inlineObject1,
                                                           ApiCallback _callback)
                                                    throws ApiException
        Build call for deleteBranchProtectionRule
        Parameters:
        repository - (required)
        inlineObject1 - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        204 branch protection rule deleted successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteBranchProtectionRule

        public void deleteBranchProtectionRule​(String repository,
                                               InlineObject1 inlineObject1)
                                        throws ApiException
        Parameters:
        repository - (required)
        inlineObject1 - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 branch protection rule deleted successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteBranchProtectionRuleWithHttpInfo

        public ApiResponse<Void> deleteBranchProtectionRuleWithHttpInfo​(String repository,
                                                                        InlineObject1 inlineObject1)
                                                                 throws ApiException
        Parameters:
        repository - (required)
        inlineObject1 - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 branch protection rule deleted successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteBranchProtectionRuleAsync

        public okhttp3.Call deleteBranchProtectionRuleAsync​(String repository,
                                                            InlineObject1 inlineObject1,
                                                            ApiCallback<Void> _callback)
                                                     throws ApiException
        (asynchronously)
        Parameters:
        repository - (required)
        inlineObject1 - (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
        Http Response Details:
        Status Code Description Response Headers
        204 branch protection rule deleted successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteRepositoryCall

        public okhttp3.Call deleteRepositoryCall​(String repository,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for deleteRepository
        Parameters:
        repository - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        204 repository deleted successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteRepository

        public void deleteRepository​(String repository)
                              throws ApiException
        delete repository
        Parameters:
        repository - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 repository deleted successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteRepositoryWithHttpInfo

        public ApiResponse<Void> deleteRepositoryWithHttpInfo​(String repository)
                                                       throws ApiException
        delete repository
        Parameters:
        repository - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 repository deleted successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteRepositoryAsync

        public okhttp3.Call deleteRepositoryAsync​(String repository,
                                                  ApiCallback<Void> _callback)
                                           throws ApiException
        delete repository (asynchronously)
        Parameters:
        repository - (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
        Http Response Details:
        Status Code Description Response Headers
        204 repository deleted successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getBranchProtectionRulesCall

        public okhttp3.Call getBranchProtectionRulesCall​(String repository,
                                                         ApiCallback _callback)
                                                  throws ApiException
        Build call for getBranchProtectionRules
        Parameters:
        repository - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 branch protection rules -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getBranchProtectionRules

        public List<BranchProtectionRule> getBranchProtectionRules​(String repository)
                                                            throws ApiException
        get branch protection rules
        Parameters:
        repository - (required)
        Returns:
        List<BranchProtectionRule>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 branch protection rules -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getBranchProtectionRulesWithHttpInfo

        public ApiResponse<List<BranchProtectionRule>> getBranchProtectionRulesWithHttpInfo​(String repository)
                                                                                     throws ApiException
        get branch protection rules
        Parameters:
        repository - (required)
        Returns:
        ApiResponse<List<BranchProtectionRule>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 branch protection rules -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getBranchProtectionRulesAsync

        public okhttp3.Call getBranchProtectionRulesAsync​(String repository,
                                                          ApiCallback<List<BranchProtectionRule>> _callback)
                                                   throws ApiException
        get branch protection rules (asynchronously)
        Parameters:
        repository - (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
        Http Response Details:
        Status Code Description Response Headers
        200 branch protection rules -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRepositoryCall

        public okhttp3.Call getRepositoryCall​(String repository,
                                              ApiCallback _callback)
                                       throws ApiException
        Build call for getRepository
        Parameters:
        repository - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 repository -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRepository

        public Repository getRepository​(String repository)
                                 throws ApiException
        get repository
        Parameters:
        repository - (required)
        Returns:
        Repository
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 repository -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRepositoryWithHttpInfo

        public ApiResponse<Repository> getRepositoryWithHttpInfo​(String repository)
                                                          throws ApiException
        get repository
        Parameters:
        repository - (required)
        Returns:
        ApiResponse<Repository>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 repository -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRepositoryAsync

        public okhttp3.Call getRepositoryAsync​(String repository,
                                               ApiCallback<Repository> _callback)
                                        throws ApiException
        get repository (asynchronously)
        Parameters:
        repository - (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
        Http Response Details:
        Status Code Description Response Headers
        200 repository -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRepositoryMetadataCall

        public okhttp3.Call getRepositoryMetadataCall​(String repository,
                                                      ApiCallback _callback)
                                               throws ApiException
        Build call for getRepositoryMetadata
        Parameters:
        repository - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 repository metadata -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRepositoryMetadata

        public Map<String,​String> getRepositoryMetadata​(String repository)
                                                       throws ApiException
        get repository metadata
        Parameters:
        repository - (required)
        Returns:
        Map<String, String>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 repository metadata -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRepositoryMetadataWithHttpInfo

        public ApiResponse<Map<String,​String>> getRepositoryMetadataWithHttpInfo​(String repository)
                                                                                throws ApiException
        get repository metadata
        Parameters:
        repository - (required)
        Returns:
        ApiResponse<Map<String, String>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 repository metadata -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRepositoryMetadataAsync

        public okhttp3.Call getRepositoryMetadataAsync​(String repository,
                                                       ApiCallback<Map<String,​String>> _callback)
                                                throws ApiException
        get repository metadata (asynchronously)
        Parameters:
        repository - (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
        Http Response Details:
        Status Code Description Response Headers
        200 repository metadata -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • listRepositoriesCall

        public okhttp3.Call listRepositoriesCall​(String prefix,
                                                 String after,
                                                 Integer amount,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for listRepositories
        Parameters:
        prefix - return items prefixed with this value (optional)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 repository list -
        401 Unauthorized -
        0 Internal Server Error -
      • listRepositories

        public RepositoryList listRepositories​(String prefix,
                                               String after,
                                               Integer amount)
                                        throws ApiException
        list repositories
        Parameters:
        prefix - return items prefixed with this value (optional)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        Returns:
        RepositoryList
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 repository list -
        401 Unauthorized -
        0 Internal Server Error -
      • listRepositoriesWithHttpInfo

        public ApiResponse<RepositoryList> listRepositoriesWithHttpInfo​(String prefix,
                                                                        String after,
                                                                        Integer amount)
                                                                 throws ApiException
        list repositories
        Parameters:
        prefix - return items prefixed with this value (optional)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        Returns:
        ApiResponse<RepositoryList>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 repository list -
        401 Unauthorized -
        0 Internal Server Error -
      • listRepositoriesAsync

        public okhttp3.Call listRepositoriesAsync​(String prefix,
                                                  String after,
                                                  Integer amount,
                                                  ApiCallback<RepositoryList> _callback)
                                           throws ApiException
        list repositories (asynchronously)
        Parameters:
        prefix - return items prefixed with this value (optional)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        _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
        Http Response Details:
        Status Code Description Response Headers
        200 repository list -
        401 Unauthorized -
        0 Internal Server Error -