Package com.launchdarkly.api.api
Class CodeReferencesApi
- java.lang.Object
-
- com.launchdarkly.api.api.CodeReferencesApi
-
public class CodeReferencesApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CodeReferencesApi()CodeReferencesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteBranches(java.lang.String repo, java.util.List<java.lang.String> requestBody)Delete branches Asynchronously delete a number of branches.okhttp3.CalldeleteBranchesAsync(java.lang.String repo, java.util.List<java.lang.String> requestBody, ApiCallback<java.lang.Void> _callback)Delete branches (asynchronously) Asynchronously delete a number of branches.okhttp3.CalldeleteBranchesCall(java.lang.String repo, java.util.List<java.lang.String> requestBody, ApiCallback _callback)Build call for deleteBranchesApiResponse<java.lang.Void>deleteBranchesWithHttpInfo(java.lang.String repo, java.util.List<java.lang.String> requestBody)Delete branches Asynchronously delete a number of branches.voiddeleteRepository(java.lang.String repo)Delete repository Delete a repository with the specified name.okhttp3.CalldeleteRepositoryAsync(java.lang.String repo, ApiCallback<java.lang.Void> _callback)Delete repository (asynchronously) Delete a repository with the specified name.okhttp3.CalldeleteRepositoryCall(java.lang.String repo, ApiCallback _callback)Build call for deleteRepositoryApiResponse<java.lang.Void>deleteRepositoryWithHttpInfo(java.lang.String repo)Delete repository Delete a repository with the specified name.ApiClientgetApiClient()BranchRepgetBranch(java.lang.String repo, java.lang.String branch, java.lang.String projKey, java.lang.String flagKey)Get branch Get a specific branch in a repository.okhttp3.CallgetBranchAsync(java.lang.String repo, java.lang.String branch, java.lang.String projKey, java.lang.String flagKey, ApiCallback<BranchRep> _callback)Get branch (asynchronously) Get a specific branch in a repository.okhttp3.CallgetBranchCall(java.lang.String repo, java.lang.String branch, java.lang.String projKey, java.lang.String flagKey, ApiCallback _callback)Build call for getBranchBranchCollectionRepgetBranches(java.lang.String repo)List branches Get a list of branches.okhttp3.CallgetBranchesAsync(java.lang.String repo, ApiCallback<BranchCollectionRep> _callback)List branches (asynchronously) Get a list of branches.okhttp3.CallgetBranchesCall(java.lang.String repo, ApiCallback _callback)Build call for getBranchesApiResponse<BranchCollectionRep>getBranchesWithHttpInfo(java.lang.String repo)List branches Get a list of branches.ApiResponse<BranchRep>getBranchWithHttpInfo(java.lang.String repo, java.lang.String branch, java.lang.String projKey, java.lang.String flagKey)Get branch Get a specific branch in a repository.java.lang.StringgetCustomBaseUrl()ExtinctionCollectionRepgetExtinctions(java.lang.String repoName, java.lang.String branchName, java.lang.String projKey, java.lang.String flagKey, java.lang.Long from, java.lang.Long to)List extinctions Get a list of all extinctions.okhttp3.CallgetExtinctionsAsync(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)List extinctions (asynchronously) Get a list of all extinctions.okhttp3.CallgetExtinctionsCall(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)Build call for getExtinctionsApiResponse<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)List extinctions Get a list of all extinctions.intgetHostIndex()RepositoryCollectionRepgetRepositories(java.lang.String withBranches, java.lang.String withReferencesForDefaultBranch, java.lang.String projKey, java.lang.String flagKey)List repositories Get a list of connected repositories.okhttp3.CallgetRepositoriesAsync(java.lang.String withBranches, java.lang.String withReferencesForDefaultBranch, java.lang.String projKey, java.lang.String flagKey, ApiCallback<RepositoryCollectionRep> _callback)List repositories (asynchronously) Get a list of connected repositories.okhttp3.CallgetRepositoriesCall(java.lang.String withBranches, java.lang.String withReferencesForDefaultBranch, java.lang.String projKey, java.lang.String flagKey, ApiCallback _callback)Build call for getRepositoriesApiResponse<RepositoryCollectionRep>getRepositoriesWithHttpInfo(java.lang.String withBranches, java.lang.String withReferencesForDefaultBranch, java.lang.String projKey, java.lang.String flagKey)List repositories Get a list of connected repositories.RepositoryRepgetRepository(java.lang.String repo)Get repository Get a single repository by name.okhttp3.CallgetRepositoryAsync(java.lang.String repo, ApiCallback<RepositoryRep> _callback)Get repository (asynchronously) Get a single repository by name.okhttp3.CallgetRepositoryCall(java.lang.String repo, ApiCallback _callback)Build call for getRepositoryApiResponse<RepositoryRep>getRepositoryWithHttpInfo(java.lang.String repo)Get repository Get a single repository by name.StatisticsRootgetRootStatistic()Get links to code reference repositories for each project Get links for all projects that have code references.okhttp3.CallgetRootStatisticAsync(ApiCallback<StatisticsRoot> _callback)Get links to code reference repositories for each project (asynchronously) Get links for all projects that have code references.okhttp3.CallgetRootStatisticCall(ApiCallback _callback)Build call for getRootStatisticApiResponse<StatisticsRoot>getRootStatisticWithHttpInfo()Get links to code reference repositories for each project Get links for all projects that have code references.StatisticCollectionRepgetStatistics(java.lang.String projectKey, java.lang.String flagKey)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`.okhttp3.CallgetStatisticsAsync(java.lang.String projectKey, java.lang.String flagKey, ApiCallback<StatisticCollectionRep> _callback)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`.okhttp3.CallgetStatisticsCall(java.lang.String projectKey, java.lang.String flagKey, ApiCallback _callback)Build call for getStatisticsApiResponse<StatisticCollectionRep>getStatisticsWithHttpInfo(java.lang.String projectKey, java.lang.String flagKey)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`.RepositoryReppatchRepository(java.lang.String repo, java.util.List<PatchOperation> patchOperation)Update repository Update a repository's settings.okhttp3.CallpatchRepositoryAsync(java.lang.String repo, java.util.List<PatchOperation> patchOperation, ApiCallback<RepositoryRep> _callback)Update repository (asynchronously) Update a repository's settings.okhttp3.CallpatchRepositoryCall(java.lang.String repo, java.util.List<PatchOperation> patchOperation, ApiCallback _callback)Build call for patchRepositoryApiResponse<RepositoryRep>patchRepositoryWithHttpInfo(java.lang.String repo, java.util.List<PatchOperation> patchOperation)Update repository Update a repository's settings.voidpostExtinction(java.lang.String repo, java.lang.String branch, java.util.List<Extinction> extinction)Create extinction Create a new extinction.okhttp3.CallpostExtinctionAsync(java.lang.String repo, java.lang.String branch, java.util.List<Extinction> extinction, ApiCallback<java.lang.Void> _callback)Create extinction (asynchronously) Create a new extinction.okhttp3.CallpostExtinctionCall(java.lang.String repo, java.lang.String branch, java.util.List<Extinction> extinction, ApiCallback _callback)Build call for postExtinctionApiResponse<java.lang.Void>postExtinctionWithHttpInfo(java.lang.String repo, java.lang.String branch, java.util.List<Extinction> extinction)Create extinction Create a new extinction.RepositoryReppostRepository(RepositoryPost repositoryPost)Create repository Create a repository with the specified name.okhttp3.CallpostRepositoryAsync(RepositoryPost repositoryPost, ApiCallback<RepositoryRep> _callback)Create repository (asynchronously) Create a repository with the specified name.okhttp3.CallpostRepositoryCall(RepositoryPost repositoryPost, ApiCallback _callback)Build call for postRepositoryApiResponse<RepositoryRep>postRepositoryWithHttpInfo(RepositoryPost repositoryPost)Create repository Create a repository with the specified name.voidputBranch(java.lang.String repo, java.lang.String branch, PutBranch putBranch)Upsert branch Create a new branch if it doesn't exist, or update the branch if it already exists.okhttp3.CallputBranchAsync(java.lang.String repo, java.lang.String branch, PutBranch putBranch, ApiCallback<java.lang.Void> _callback)Upsert branch (asynchronously) Create a new branch if it doesn't exist, or update the branch if it already exists.okhttp3.CallputBranchCall(java.lang.String repo, java.lang.String branch, PutBranch putBranch, ApiCallback _callback)Build call for putBranchApiResponse<java.lang.Void>putBranchWithHttpInfo(java.lang.String repo, java.lang.String branch, PutBranch putBranch)Upsert branch Create a new branch if it doesn't exist, or update the branch if it already exists.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
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 ApiExceptionBuild 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 ApiExceptionDelete 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 ApiExceptionDelete 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 ApiExceptionBuild 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 ApiExceptionDelete 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 ApiExceptionDelete 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionUpdate 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 ApiExceptionBuild 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 ApiExceptionCreate 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 ApiExceptionCreate 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 ApiExceptionBuild 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 ApiExceptionCreate 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 ApiExceptionBuild 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 ApiExceptionUpsert 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 ApiExceptionUpsert 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
-
-