Class CodeReferencesApi


  • public class CodeReferencesApi
    extends java.lang.Object
    • Constructor Detail

      • CodeReferencesApi

        public CodeReferencesApi()
      • CodeReferencesApi

        public CodeReferencesApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getHostIndex

        public int getHostIndex()
      • setHostIndex

        public void setHostIndex​(int hostIndex)
      • getCustomBaseUrl

        public java.lang.String getCustomBaseUrl()
      • setCustomBaseUrl

        public void setCustomBaseUrl​(java.lang.String customBaseUrl)
      • deleteBranchesCall

        public okhttp3.Call deleteBranchesCall​(java.lang.String repo,
                                               java.util.List<java.lang.String> requestBody,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for deleteBranches
        Parameters:
        repo - The repository name to delete branches for. (required)
        requestBody - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteBranches

        public void deleteBranches​(java.lang.String repo,
                                   java.util.List<java.lang.String> requestBody)
                            throws ApiException
        Delete branches Asynchronously delete a number of branches.
        Parameters:
        repo - The repository name to delete branches for. (required)
        requestBody - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteBranchesWithHttpInfo

        public ApiResponse<java.lang.Void> deleteBranchesWithHttpInfo​(java.lang.String repo,
                                                                      java.util.List<java.lang.String> requestBody)
                                                               throws ApiException
        Delete branches Asynchronously delete a number of branches.
        Parameters:
        repo - The repository name to delete branches for. (required)
        requestBody - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteBranchesAsync

        public okhttp3.Call deleteBranchesAsync​(java.lang.String repo,
                                                java.util.List<java.lang.String> requestBody,
                                                ApiCallback<java.lang.Void> _callback)
                                         throws ApiException
        Delete branches (asynchronously) Asynchronously delete a number of branches.
        Parameters:
        repo - The repository name to delete branches for. (required)
        requestBody - (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
      • deleteRepositoryCall

        public okhttp3.Call deleteRepositoryCall​(java.lang.String repo,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for deleteRepository
        Parameters:
        repo - The repository name (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteRepository

        public void deleteRepository​(java.lang.String repo)
                              throws ApiException
        Delete repository Delete a repository with the specified name.
        Parameters:
        repo - The repository name (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteRepositoryWithHttpInfo

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

        public okhttp3.Call deleteRepositoryAsync​(java.lang.String repo,
                                                  ApiCallback<java.lang.Void> _callback)
                                           throws ApiException
        Delete repository (asynchronously) Delete a repository with the specified name.
        Parameters:
        repo - The repository 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
      • getBranchCall

        public okhttp3.Call getBranchCall​(java.lang.String repo,
                                          java.lang.String branch,
                                          java.lang.String projKey,
                                          java.lang.String flagKey,
                                          ApiCallback _callback)
                                   throws ApiException
        Build call for getBranch
        Parameters:
        repo - The repository name (required)
        branch - The url-encoded branch name (required)
        projKey - Filter results to a specific project (optional)
        flagKey - Filter results to a specific flag key (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getBranch

        public BranchRep getBranch​(java.lang.String repo,
                                   java.lang.String branch,
                                   java.lang.String projKey,
                                   java.lang.String flagKey)
                            throws ApiException
        Get branch Get a specific branch in a repository.
        Parameters:
        repo - The repository name (required)
        branch - The url-encoded branch name (required)
        projKey - Filter results to a specific project (optional)
        flagKey - Filter results to a specific flag key (optional)
        Returns:
        BranchRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getBranchWithHttpInfo

        public ApiResponse<BranchRep> getBranchWithHttpInfo​(java.lang.String repo,
                                                            java.lang.String branch,
                                                            java.lang.String projKey,
                                                            java.lang.String flagKey)
                                                     throws ApiException
        Get branch Get a specific branch in a repository.
        Parameters:
        repo - The repository name (required)
        branch - The url-encoded branch name (required)
        projKey - Filter results to a specific project (optional)
        flagKey - Filter results to a specific flag key (optional)
        Returns:
        ApiResponse<BranchRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getBranchAsync

        public okhttp3.Call getBranchAsync​(java.lang.String repo,
                                           java.lang.String branch,
                                           java.lang.String projKey,
                                           java.lang.String flagKey,
                                           ApiCallback<BranchRep> _callback)
                                    throws ApiException
        Get branch (asynchronously) Get a specific branch in a repository.
        Parameters:
        repo - The repository name (required)
        branch - The url-encoded branch name (required)
        projKey - Filter results to a specific project (optional)
        flagKey - Filter results to a specific flag key (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
      • getBranchesCall

        public okhttp3.Call getBranchesCall​(java.lang.String repo,
                                            ApiCallback _callback)
                                     throws ApiException
        Build call for getBranches
        Parameters:
        repo - The repository name (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getBranches

        public BranchCollectionRep getBranches​(java.lang.String repo)
                                        throws ApiException
        List branches Get a list of branches.
        Parameters:
        repo - The repository name (required)
        Returns:
        BranchCollectionRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getBranchesWithHttpInfo

        public ApiResponse<BranchCollectionRep> getBranchesWithHttpInfo​(java.lang.String repo)
                                                                 throws ApiException
        List branches Get a list of branches.
        Parameters:
        repo - The repository name (required)
        Returns:
        ApiResponse<BranchCollectionRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getBranchesAsync

        public okhttp3.Call getBranchesAsync​(java.lang.String repo,
                                             ApiCallback<BranchCollectionRep> _callback)
                                      throws ApiException
        List branches (asynchronously) Get a list of branches.
        Parameters:
        repo - The repository 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
      • getExtinctionsCall

        public okhttp3.Call getExtinctionsCall​(java.lang.String repoName,
                                               java.lang.String branchName,
                                               java.lang.String projKey,
                                               java.lang.String flagKey,
                                               java.lang.Long from,
                                               java.lang.Long to,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for getExtinctions
        Parameters:
        repoName - Filter results to a specific repository (optional)
        branchName - Filter results to a specific branch. By default, only the default branch will be queried for extinctions. (optional)
        projKey - Filter results to a specific project (optional)
        flagKey - Filter results to a specific flag key (optional)
        from - Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `to`. (optional)
        to - Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `from`. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getExtinctions

        public ExtinctionCollectionRep getExtinctions​(java.lang.String repoName,
                                                      java.lang.String branchName,
                                                      java.lang.String projKey,
                                                      java.lang.String flagKey,
                                                      java.lang.Long from,
                                                      java.lang.Long to)
                                               throws ApiException
        List extinctions Get a list of all extinctions. LaunchDarkly creates an extinction event after you remove all code references to a flag. To learn more, read [Understanding extinction events](https://docs.launchdarkly.com/home/code/code-references#understanding-extinction-events).
        Parameters:
        repoName - Filter results to a specific repository (optional)
        branchName - Filter results to a specific branch. By default, only the default branch will be queried for extinctions. (optional)
        projKey - Filter results to a specific project (optional)
        flagKey - Filter results to a specific flag key (optional)
        from - Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `to`. (optional)
        to - Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `from`. (optional)
        Returns:
        ExtinctionCollectionRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getExtinctionsWithHttpInfo

        public ApiResponse<ExtinctionCollectionRep> getExtinctionsWithHttpInfo​(java.lang.String repoName,
                                                                               java.lang.String branchName,
                                                                               java.lang.String projKey,
                                                                               java.lang.String flagKey,
                                                                               java.lang.Long from,
                                                                               java.lang.Long to)
                                                                        throws ApiException
        List extinctions Get a list of all extinctions. LaunchDarkly creates an extinction event after you remove all code references to a flag. To learn more, read [Understanding extinction events](https://docs.launchdarkly.com/home/code/code-references#understanding-extinction-events).
        Parameters:
        repoName - Filter results to a specific repository (optional)
        branchName - Filter results to a specific branch. By default, only the default branch will be queried for extinctions. (optional)
        projKey - Filter results to a specific project (optional)
        flagKey - Filter results to a specific flag key (optional)
        from - Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `to`. (optional)
        to - Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `from`. (optional)
        Returns:
        ApiResponse<ExtinctionCollectionRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getExtinctionsAsync

        public okhttp3.Call getExtinctionsAsync​(java.lang.String repoName,
                                                java.lang.String branchName,
                                                java.lang.String projKey,
                                                java.lang.String flagKey,
                                                java.lang.Long from,
                                                java.lang.Long to,
                                                ApiCallback<ExtinctionCollectionRep> _callback)
                                         throws ApiException
        List extinctions (asynchronously) Get a list of all extinctions. LaunchDarkly creates an extinction event after you remove all code references to a flag. To learn more, read [Understanding extinction events](https://docs.launchdarkly.com/home/code/code-references#understanding-extinction-events).
        Parameters:
        repoName - Filter results to a specific repository (optional)
        branchName - Filter results to a specific branch. By default, only the default branch will be queried for extinctions. (optional)
        projKey - Filter results to a specific project (optional)
        flagKey - Filter results to a specific flag key (optional)
        from - Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `to`. (optional)
        to - Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `from`. (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
      • getRepositoriesCall

        public okhttp3.Call getRepositoriesCall​(java.lang.String withBranches,
                                                java.lang.String withReferencesForDefaultBranch,
                                                java.lang.String projKey,
                                                java.lang.String flagKey,
                                                ApiCallback _callback)
                                         throws ApiException
        Build call for getRepositories
        Parameters:
        withBranches - If set to any value, the endpoint returns repositories with associated branch data (optional)
        withReferencesForDefaultBranch - If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch (optional)
        projKey - A LaunchDarkly project key. If provided, this filters code reference results to the specified project. (optional)
        flagKey - If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getRepositories

        public RepositoryCollectionRep getRepositories​(java.lang.String withBranches,
                                                       java.lang.String withReferencesForDefaultBranch,
                                                       java.lang.String projKey,
                                                       java.lang.String flagKey)
                                                throws ApiException
        List repositories Get a list of connected repositories. Optionally, you can include branch metadata with the `withBranches` query parameter. Embed references for the default branch with `ReferencesForDefaultBranch`. You can also filter the list of code references by project key and flag key.
        Parameters:
        withBranches - If set to any value, the endpoint returns repositories with associated branch data (optional)
        withReferencesForDefaultBranch - If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch (optional)
        projKey - A LaunchDarkly project key. If provided, this filters code reference results to the specified project. (optional)
        flagKey - If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch (optional)
        Returns:
        RepositoryCollectionRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getRepositoriesWithHttpInfo

        public ApiResponse<RepositoryCollectionRep> getRepositoriesWithHttpInfo​(java.lang.String withBranches,
                                                                                java.lang.String withReferencesForDefaultBranch,
                                                                                java.lang.String projKey,
                                                                                java.lang.String flagKey)
                                                                         throws ApiException
        List repositories Get a list of connected repositories. Optionally, you can include branch metadata with the `withBranches` query parameter. Embed references for the default branch with `ReferencesForDefaultBranch`. You can also filter the list of code references by project key and flag key.
        Parameters:
        withBranches - If set to any value, the endpoint returns repositories with associated branch data (optional)
        withReferencesForDefaultBranch - If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch (optional)
        projKey - A LaunchDarkly project key. If provided, this filters code reference results to the specified project. (optional)
        flagKey - If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch (optional)
        Returns:
        ApiResponse<RepositoryCollectionRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getRepositoriesAsync

        public okhttp3.Call getRepositoriesAsync​(java.lang.String withBranches,
                                                 java.lang.String withReferencesForDefaultBranch,
                                                 java.lang.String projKey,
                                                 java.lang.String flagKey,
                                                 ApiCallback<RepositoryCollectionRep> _callback)
                                          throws ApiException
        List repositories (asynchronously) Get a list of connected repositories. Optionally, you can include branch metadata with the `withBranches` query parameter. Embed references for the default branch with `ReferencesForDefaultBranch`. You can also filter the list of code references by project key and flag key.
        Parameters:
        withBranches - If set to any value, the endpoint returns repositories with associated branch data (optional)
        withReferencesForDefaultBranch - If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch (optional)
        projKey - A LaunchDarkly project key. If provided, this filters code reference results to the specified project. (optional)
        flagKey - If set to any value, the endpoint returns repositories with associated branch data, as well as code references for the default git branch (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
      • getRepositoryCall

        public okhttp3.Call getRepositoryCall​(java.lang.String repo,
                                              ApiCallback _callback)
                                       throws ApiException
        Build call for getRepository
        Parameters:
        repo - The repository name (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getRepository

        public RepositoryRep getRepository​(java.lang.String repo)
                                    throws ApiException
        Get repository Get a single repository by name.
        Parameters:
        repo - The repository name (required)
        Returns:
        RepositoryRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getRepositoryWithHttpInfo

        public ApiResponse<RepositoryRep> getRepositoryWithHttpInfo​(java.lang.String repo)
                                                             throws ApiException
        Get repository Get a single repository by name.
        Parameters:
        repo - The repository name (required)
        Returns:
        ApiResponse<RepositoryRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getRepositoryAsync

        public okhttp3.Call getRepositoryAsync​(java.lang.String repo,
                                               ApiCallback<RepositoryRep> _callback)
                                        throws ApiException
        Get repository (asynchronously) Get a single repository by name.
        Parameters:
        repo - The repository 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
      • getRootStatisticCall

        public okhttp3.Call getRootStatisticCall​(ApiCallback _callback)
                                          throws ApiException
        Build call for getRootStatistic
        Parameters:
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getRootStatistic

        public StatisticsRoot getRootStatistic()
                                        throws ApiException
        Get links to code reference repositories for each project Get links for all projects that have code references.
        Returns:
        StatisticsRoot
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getRootStatisticWithHttpInfo

        public ApiResponse<StatisticsRoot> getRootStatisticWithHttpInfo()
                                                                 throws ApiException
        Get links to code reference repositories for each project Get links for all projects that have code references.
        Returns:
        ApiResponse<StatisticsRoot>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getRootStatisticAsync

        public okhttp3.Call getRootStatisticAsync​(ApiCallback<StatisticsRoot> _callback)
                                           throws ApiException
        Get links to code reference repositories for each project (asynchronously) Get links for all projects that have code references.
        Parameters:
        _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
      • getStatisticsCall

        public okhttp3.Call getStatisticsCall​(java.lang.String projectKey,
                                              java.lang.String flagKey,
                                              ApiCallback _callback)
                                       throws ApiException
        Build call for getStatistics
        Parameters:
        projectKey - The project key (required)
        flagKey - Filter results to a specific flag key (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getStatistics

        public StatisticCollectionRep getStatistics​(java.lang.String projectKey,
                                                    java.lang.String flagKey)
                                             throws ApiException
        Get code references statistics for flags Get statistics about all the code references across repositories for all flags in your project that have code references in the default branch, for example, `main`. Optionally, you can include the `flagKey` query parameter to limit your request to statistics about code references for a single flag. This endpoint returns the number of references to your flag keys in your repositories, as well as a link to each repository.
        Parameters:
        projectKey - The project key (required)
        flagKey - Filter results to a specific flag key (optional)
        Returns:
        StatisticCollectionRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getStatisticsWithHttpInfo

        public ApiResponse<StatisticCollectionRep> getStatisticsWithHttpInfo​(java.lang.String projectKey,
                                                                             java.lang.String flagKey)
                                                                      throws ApiException
        Get code references statistics for flags Get statistics about all the code references across repositories for all flags in your project that have code references in the default branch, for example, `main`. Optionally, you can include the `flagKey` query parameter to limit your request to statistics about code references for a single flag. This endpoint returns the number of references to your flag keys in your repositories, as well as a link to each repository.
        Parameters:
        projectKey - The project key (required)
        flagKey - Filter results to a specific flag key (optional)
        Returns:
        ApiResponse<StatisticCollectionRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getStatisticsAsync

        public okhttp3.Call getStatisticsAsync​(java.lang.String projectKey,
                                               java.lang.String flagKey,
                                               ApiCallback<StatisticCollectionRep> _callback)
                                        throws ApiException
        Get code references statistics for flags (asynchronously) Get statistics about all the code references across repositories for all flags in your project that have code references in the default branch, for example, `main`. Optionally, you can include the `flagKey` query parameter to limit your request to statistics about code references for a single flag. This endpoint returns the number of references to your flag keys in your repositories, as well as a link to each repository.
        Parameters:
        projectKey - The project key (required)
        flagKey - Filter results to a specific flag key (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
      • patchRepositoryCall

        public okhttp3.Call patchRepositoryCall​(java.lang.String repo,
                                                java.util.List<PatchOperation> patchOperation,
                                                ApiCallback _callback)
                                         throws ApiException
        Build call for patchRepository
        Parameters:
        repo - The repository name (required)
        patchOperation - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchRepository

        public RepositoryRep patchRepository​(java.lang.String repo,
                                             java.util.List<PatchOperation> patchOperation)
                                      throws ApiException
        Update repository Update a repository's settings. The request must be a valid JSON Patch document describing the changes to be made to the repository.
        Parameters:
        repo - The repository name (required)
        patchOperation - (required)
        Returns:
        RepositoryRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchRepositoryWithHttpInfo

        public ApiResponse<RepositoryRep> patchRepositoryWithHttpInfo​(java.lang.String repo,
                                                                      java.util.List<PatchOperation> patchOperation)
                                                               throws ApiException
        Update repository Update a repository's settings. The request must be a valid JSON Patch document describing the changes to be made to the repository.
        Parameters:
        repo - The repository name (required)
        patchOperation - (required)
        Returns:
        ApiResponse<RepositoryRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchRepositoryAsync

        public okhttp3.Call patchRepositoryAsync​(java.lang.String repo,
                                                 java.util.List<PatchOperation> patchOperation,
                                                 ApiCallback<RepositoryRep> _callback)
                                          throws ApiException
        Update repository (asynchronously) Update a repository's settings. The request must be a valid JSON Patch document describing the changes to be made to the repository.
        Parameters:
        repo - The repository name (required)
        patchOperation - (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
      • postExtinctionCall

        public okhttp3.Call postExtinctionCall​(java.lang.String repo,
                                               java.lang.String branch,
                                               java.util.List<Extinction> extinction,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for postExtinction
        Parameters:
        repo - The repository name (required)
        branch - The URL-encoded branch name (required)
        extinction - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postExtinction

        public void postExtinction​(java.lang.String repo,
                                   java.lang.String branch,
                                   java.util.List<Extinction> extinction)
                            throws ApiException
        Create extinction Create a new extinction.
        Parameters:
        repo - The repository name (required)
        branch - The URL-encoded branch name (required)
        extinction - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postExtinctionWithHttpInfo

        public ApiResponse<java.lang.Void> postExtinctionWithHttpInfo​(java.lang.String repo,
                                                                      java.lang.String branch,
                                                                      java.util.List<Extinction> extinction)
                                                               throws ApiException
        Create extinction Create a new extinction.
        Parameters:
        repo - The repository name (required)
        branch - The URL-encoded branch name (required)
        extinction - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postExtinctionAsync

        public okhttp3.Call postExtinctionAsync​(java.lang.String repo,
                                                java.lang.String branch,
                                                java.util.List<Extinction> extinction,
                                                ApiCallback<java.lang.Void> _callback)
                                         throws ApiException
        Create extinction (asynchronously) Create a new extinction.
        Parameters:
        repo - The repository name (required)
        branch - The URL-encoded branch name (required)
        extinction - (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
      • postRepositoryCall

        public okhttp3.Call postRepositoryCall​(RepositoryPost repositoryPost,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for postRepository
        Parameters:
        repositoryPost - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postRepository

        public RepositoryRep postRepository​(RepositoryPost repositoryPost)
                                     throws ApiException
        Create repository Create a repository with the specified name.
        Parameters:
        repositoryPost - (required)
        Returns:
        RepositoryRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postRepositoryWithHttpInfo

        public ApiResponse<RepositoryRep> postRepositoryWithHttpInfo​(RepositoryPost repositoryPost)
                                                              throws ApiException
        Create repository Create a repository with the specified name.
        Parameters:
        repositoryPost - (required)
        Returns:
        ApiResponse<RepositoryRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postRepositoryAsync

        public okhttp3.Call postRepositoryAsync​(RepositoryPost repositoryPost,
                                                ApiCallback<RepositoryRep> _callback)
                                         throws ApiException
        Create repository (asynchronously) Create a repository with the specified name.
        Parameters:
        repositoryPost - (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
      • putBranchCall

        public okhttp3.Call putBranchCall​(java.lang.String repo,
                                          java.lang.String branch,
                                          PutBranch putBranch,
                                          ApiCallback _callback)
                                   throws ApiException
        Build call for putBranch
        Parameters:
        repo - The repository name (required)
        branch - The URL-encoded branch name (required)
        putBranch - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • putBranch

        public void putBranch​(java.lang.String repo,
                              java.lang.String branch,
                              PutBranch putBranch)
                       throws ApiException
        Upsert branch Create a new branch if it doesn't exist, or update the branch if it already exists.
        Parameters:
        repo - The repository name (required)
        branch - The URL-encoded branch name (required)
        putBranch - (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • putBranchWithHttpInfo

        public ApiResponse<java.lang.Void> putBranchWithHttpInfo​(java.lang.String repo,
                                                                 java.lang.String branch,
                                                                 PutBranch putBranch)
                                                          throws ApiException
        Upsert branch Create a new branch if it doesn't exist, or update the branch if it already exists.
        Parameters:
        repo - The repository name (required)
        branch - The URL-encoded branch name (required)
        putBranch - (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • putBranchAsync

        public okhttp3.Call putBranchAsync​(java.lang.String repo,
                                           java.lang.String branch,
                                           PutBranch putBranch,
                                           ApiCallback<java.lang.Void> _callback)
                                    throws ApiException
        Upsert branch (asynchronously) Create a new branch if it doesn't exist, or update the branch if it already exists.
        Parameters:
        repo - The repository name (required)
        branch - The URL-encoded branch name (required)
        putBranch - (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