Package com.launchdarkly.api.api
Class ProjectsApi
- java.lang.Object
-
- com.launchdarkly.api.api.ProjectsApi
-
public class ProjectsApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProjectsApi()
ProjectsApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteProject(java.lang.String projectKey)
Delete project Delete a project by key.okhttp3.Call
deleteProjectAsync(java.lang.String projectKey, ApiCallback<java.lang.Void> _callback)
Delete project (asynchronously) Delete a project by key.okhttp3.Call
deleteProjectCall(java.lang.String projectKey, ApiCallback _callback)
Build call for deleteProjectApiResponse<java.lang.Void>
deleteProjectWithHttpInfo(java.lang.String projectKey)
Delete project Delete a project by key.ApiClient
getApiClient()
Project
getProject(java.lang.String projectKey)
Get project Get a single project by key.okhttp3.Call
getProjectAsync(java.lang.String projectKey, ApiCallback<Project> _callback)
Get project (asynchronously) Get a single project by key.okhttp3.Call
getProjectCall(java.lang.String projectKey, ApiCallback _callback)
Build call for getProjectProjects
getProjects()
List projects Get a list of all projects in the account.okhttp3.Call
getProjectsAsync(ApiCallback<Projects> _callback)
List projects (asynchronously) Get a list of all projects in the account.okhttp3.Call
getProjectsCall(ApiCallback _callback)
Build call for getProjectsApiResponse<Projects>
getProjectsWithHttpInfo()
List projects Get a list of all projects in the account.ApiResponse<Project>
getProjectWithHttpInfo(java.lang.String projectKey)
Get project Get a single project by key.Project
patchProject(java.lang.String projectKey, java.util.List<PatchOperation> patchOperation)
Update project Update a project.okhttp3.Call
patchProjectAsync(java.lang.String projectKey, java.util.List<PatchOperation> patchOperation, ApiCallback<Project> _callback)
Update project (asynchronously) Update a project.okhttp3.Call
patchProjectCall(java.lang.String projectKey, java.util.List<PatchOperation> patchOperation, ApiCallback _callback)
Build call for patchProjectApiResponse<Project>
patchProjectWithHttpInfo(java.lang.String projectKey, java.util.List<PatchOperation> patchOperation)
Update project Update a project.Project
postProject(ProjectPost projectPost)
Create project Create a new project with the given key and name.okhttp3.Call
postProjectAsync(ProjectPost projectPost, ApiCallback<Project> _callback)
Create project (asynchronously) Create a new project with the given key and name.okhttp3.Call
postProjectCall(ProjectPost projectPost, ApiCallback _callback)
Build call for postProjectApiResponse<Project>
postProjectWithHttpInfo(ProjectPost projectPost)
Create project Create a new project with the given key and name.void
setApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
ProjectsApi
public ProjectsApi()
-
ProjectsApi
public ProjectsApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
deleteProjectCall
public okhttp3.Call deleteProjectCall(java.lang.String projectKey, ApiCallback _callback) throws ApiException
Build call for deleteProject- Parameters:
projectKey
- The project key (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
deleteProject
public void deleteProject(java.lang.String projectKey) throws ApiException
Delete project Delete a project by key. Caution: deleting a project will delete all associated environments and feature flags. You cannot delete the last project in an account.- Parameters:
projectKey
- The project key (required)- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteProjectWithHttpInfo
public ApiResponse<java.lang.Void> deleteProjectWithHttpInfo(java.lang.String projectKey) throws ApiException
Delete project Delete a project by key. Caution: deleting a project will delete all associated environments and feature flags. You cannot delete the last project in an account.- Parameters:
projectKey
- The project key (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteProjectAsync
public okhttp3.Call deleteProjectAsync(java.lang.String projectKey, ApiCallback<java.lang.Void> _callback) throws ApiException
Delete project (asynchronously) Delete a project by key. Caution: deleting a project will delete all associated environments and feature flags. You cannot delete the last project in an account.- Parameters:
projectKey
- The project key (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
-
getProjectCall
public okhttp3.Call getProjectCall(java.lang.String projectKey, ApiCallback _callback) throws ApiException
Build call for getProject- Parameters:
projectKey
- The project key (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getProject
public Project getProject(java.lang.String projectKey) throws ApiException
Get project Get a single project by key.- Parameters:
projectKey
- The project key (required)- Returns:
- Project
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getProjectWithHttpInfo
public ApiResponse<Project> getProjectWithHttpInfo(java.lang.String projectKey) throws ApiException
Get project Get a single project by key.- Parameters:
projectKey
- The project key (required)- Returns:
- ApiResponse<Project>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getProjectAsync
public okhttp3.Call getProjectAsync(java.lang.String projectKey, ApiCallback<Project> _callback) throws ApiException
Get project (asynchronously) Get a single project by key.- Parameters:
projectKey
- The project key (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
-
getProjectsCall
public okhttp3.Call getProjectsCall(ApiCallback _callback) throws ApiException
Build call for getProjects- Parameters:
_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getProjects
public Projects getProjects() throws ApiException
List projects Get a list of all projects in the account.- Returns:
- Projects
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getProjectsWithHttpInfo
public ApiResponse<Projects> getProjectsWithHttpInfo() throws ApiException
List projects Get a list of all projects in the account.- Returns:
- ApiResponse<Projects>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getProjectsAsync
public okhttp3.Call getProjectsAsync(ApiCallback<Projects> _callback) throws ApiException
List projects (asynchronously) Get a list of all projects in the account.- 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
-
patchProjectCall
public okhttp3.Call patchProjectCall(java.lang.String projectKey, java.util.List<PatchOperation> patchOperation, ApiCallback _callback) throws ApiException
Build call for patchProject- Parameters:
projectKey
- The project key (required)patchOperation
- (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
patchProject
public Project patchProject(java.lang.String projectKey, java.util.List<PatchOperation> patchOperation) throws ApiException
Update project Update a project. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the project.- Parameters:
projectKey
- The project key (required)patchOperation
- (required)- Returns:
- Project
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchProjectWithHttpInfo
public ApiResponse<Project> patchProjectWithHttpInfo(java.lang.String projectKey, java.util.List<PatchOperation> patchOperation) throws ApiException
Update project Update a project. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the project.- Parameters:
projectKey
- The project key (required)patchOperation
- (required)- Returns:
- ApiResponse<Project>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchProjectAsync
public okhttp3.Call patchProjectAsync(java.lang.String projectKey, java.util.List<PatchOperation> patchOperation, ApiCallback<Project> _callback) throws ApiException
Update project (asynchronously) Update a project. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the project.- Parameters:
projectKey
- The project key (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
-
postProjectCall
public okhttp3.Call postProjectCall(ProjectPost projectPost, ApiCallback _callback) throws ApiException
Build call for postProject- Parameters:
projectPost
- (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
postProject
public Project postProject(ProjectPost projectPost) throws ApiException
Create project Create a new project with the given key and name. Project keys must be unique within an account.- Parameters:
projectPost
- (required)- Returns:
- Project
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postProjectWithHttpInfo
public ApiResponse<Project> postProjectWithHttpInfo(ProjectPost projectPost) throws ApiException
Create project Create a new project with the given key and name. Project keys must be unique within an account.- Parameters:
projectPost
- (required)- Returns:
- ApiResponse<Project>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postProjectAsync
public okhttp3.Call postProjectAsync(ProjectPost projectPost, ApiCallback<Project> _callback) throws ApiException
Create project (asynchronously) Create a new project with the given key and name. Project keys must be unique within an account.- Parameters:
projectPost
- (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
-
-