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​(@Nonnull
                                               java.lang.String repo,
                                               @Nonnull
                                               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​(@Nonnull
                                   java.lang.String repo,
                                   @Nonnull
                                   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​(@Nonnull
                                                                      java.lang.String repo,
                                                                      @Nonnull
                                                                      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​(@Nonnull
                                                java.lang.String repo,
                                                @Nonnull
                                                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​(@Nonnull
                                                 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​(@Nonnull
                                     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​(@Nonnull
                                                                        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​(@Nonnull
                                                  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​(@Nonnull
                                          java.lang.String repo,
                                          @Nonnull
                                          java.lang.String branch,
                                          @Nullable
                                          java.lang.String projKey,
                                          @Nullable
                                          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​(@Nonnull
                                   java.lang.String repo,
                                   @Nonnull
                                   java.lang.String branch,
                                   @Nullable
                                   java.lang.String projKey,
                                   @Nullable
                                   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​(@Nonnull
                                                            java.lang.String repo,
                                                            @Nonnull
                                                            java.lang.String branch,
                                                            @Nullable
                                                            java.lang.String projKey,
                                                            @Nullable
                                                            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​(@Nonnull
                                           java.lang.String repo,
                                           @Nonnull
                                           java.lang.String branch,
                                           @Nullable
                                           java.lang.String projKey,
                                           @Nullable
                                           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​(@Nonnull
                                            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​(@Nonnull
                                               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​(@Nonnull
                                                                        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​(@Nonnull
                                             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​(@Nullable
                                               java.lang.String repoName,
                                               @Nullable
                                               java.lang.String branchName,
                                               @Nullable
                                               java.lang.String projKey,
                                               @Nullable
                                               java.lang.String flagKey,
                                               @Nullable
                                               java.lang.Long from,
                                               @Nullable
                                               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​(@Nullable
                                                      java.lang.String repoName,
                                                      @Nullable
                                                      java.lang.String branchName,
                                                      @Nullable
                                                      java.lang.String projKey,
                                                      @Nullable
                                                      java.lang.String flagKey,
                                                      @Nullable
                                                      java.lang.Long from,
                                                      @Nullable
                                                      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 [About extinction events](https://launchdarkly.com/docs/home/observability/code-references#about-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​(@Nullable
                                                                               java.lang.String repoName,
                                                                               @Nullable
                                                                               java.lang.String branchName,
                                                                               @Nullable
                                                                               java.lang.String projKey,
                                                                               @Nullable
                                                                               java.lang.String flagKey,
                                                                               @Nullable
                                                                               java.lang.Long from,
                                                                               @Nullable
                                                                               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 [About extinction events](https://launchdarkly.com/docs/home/observability/code-references#about-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​(@Nullable
                                                java.lang.String repoName,
                                                @Nullable
                                                java.lang.String branchName,
                                                @Nullable
                                                java.lang.String projKey,
                                                @Nullable
                                                java.lang.String flagKey,
                                                @Nullable
                                                java.lang.Long from,
                                                @Nullable
                                                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 [About extinction events](https://launchdarkly.com/docs/home/observability/code-references#about-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​(@Nullable
                                                java.lang.String withBranches,
                                                @Nullable
                                                java.lang.String withReferencesForDefaultBranch,
                                                @Nullable
                                                java.lang.String projKey,
                                                @Nullable
                                                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​(@Nullable
                                                       java.lang.String withBranches,
                                                       @Nullable
                                                       java.lang.String withReferencesForDefaultBranch,
                                                       @Nullable
                                                       java.lang.String projKey,
                                                       @Nullable
                                                       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​(@Nullable
                                                                                java.lang.String withBranches,
                                                                                @Nullable
                                                                                java.lang.String withReferencesForDefaultBranch,
                                                                                @Nullable
                                                                                java.lang.String projKey,
                                                                                @Nullable
                                                                                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​(@Nullable
                                                 java.lang.String withBranches,
                                                 @Nullable
                                                 java.lang.String withReferencesForDefaultBranch,
                                                 @Nullable
                                                 java.lang.String projKey,
                                                 @Nullable
                                                 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​(@Nonnull
                                              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​(@Nonnull
                                           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​(@Nonnull
                                                                    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​(@Nonnull
                                               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​(@Nonnull
                                              java.lang.String projectKey,
                                              @Nullable
                                              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​(@Nonnull
                                                    java.lang.String projectKey,
                                                    @Nullable
                                                    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​(@Nonnull
                                                                             java.lang.String projectKey,
                                                                             @Nullable
                                                                             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​(@Nonnull
                                               java.lang.String projectKey,
                                               @Nullable
                                               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​(@Nonnull
                                                java.lang.String repo,
                                                @Nonnull
                                                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​(@Nonnull
                                             java.lang.String repo,
                                             @Nonnull
                                             java.util.List<PatchOperation> patchOperation)
                                      throws ApiException
        Update repository Update a repository's settings. Updating repository settings uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) or [JSON merge patch](https://datatracker.ietf.org/doc/html/rfc7386) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).
        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​(@Nonnull
                                                                      java.lang.String repo,
                                                                      @Nonnull
                                                                      java.util.List<PatchOperation> patchOperation)
                                                               throws ApiException
        Update repository Update a repository's settings. Updating repository settings uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) or [JSON merge patch](https://datatracker.ietf.org/doc/html/rfc7386) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).
        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​(@Nonnull
                                                 java.lang.String repo,
                                                 @Nonnull
                                                 java.util.List<PatchOperation> patchOperation,
                                                 ApiCallback<RepositoryRep> _callback)
                                          throws ApiException
        Update repository (asynchronously) Update a repository's settings. Updating repository settings uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) or [JSON merge patch](https://datatracker.ietf.org/doc/html/rfc7386) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).
        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​(@Nonnull
                                               java.lang.String repo,
                                               @Nonnull
                                               java.lang.String branch,
                                               @Nonnull
                                               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​(@Nonnull
                                   java.lang.String repo,
                                   @Nonnull
                                   java.lang.String branch,
                                   @Nonnull
                                   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​(@Nonnull
                                                                      java.lang.String repo,
                                                                      @Nonnull
                                                                      java.lang.String branch,
                                                                      @Nonnull
                                                                      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​(@Nonnull
                                                java.lang.String repo,
                                                @Nonnull
                                                java.lang.String branch,
                                                @Nonnull
                                                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​(@Nonnull
                                               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​(@Nonnull
                                            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​(@Nonnull
                                                                     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​(@Nonnull
                                                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​(@Nonnull
                                          java.lang.String repo,
                                          @Nonnull
                                          java.lang.String branch,
                                          @Nonnull
                                          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​(@Nonnull
                              java.lang.String repo,
                              @Nonnull
                              java.lang.String branch,
                              @Nonnull
                              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​(@Nonnull
                                                                 java.lang.String repo,
                                                                 @Nonnull
                                                                 java.lang.String branch,
                                                                 @Nonnull
                                                                 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​(@Nonnull
                                           java.lang.String repo,
                                           @Nonnull
                                           java.lang.String branch,
                                           @Nonnull
                                           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