public class EnvironmentsApi
extends java.lang.Object
| Constructor | Description |
|---|---|
EnvironmentsApi() |
|
EnvironmentsApi(ApiClient apiClient) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
deleteEnvironment(java.lang.String projectKey,
java.lang.String environmentKey) |
Delete an environment in a specific project.
|
com.squareup.okhttp.Call |
deleteEnvironmentAsync(java.lang.String projectKey,
java.lang.String environmentKey,
ApiCallback<java.lang.Void> callback) |
Delete an environment in a specific project.
|
com.squareup.okhttp.Call |
deleteEnvironmentCall(java.lang.String projectKey,
java.lang.String environmentKey,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for deleteEnvironment
|
ApiResponse<java.lang.Void> |
deleteEnvironmentWithHttpInfo(java.lang.String projectKey,
java.lang.String environmentKey) |
Delete an environment in a specific project.
|
ApiClient |
getApiClient() |
|
Environment |
getEnvironment(java.lang.String projectKey,
java.lang.String environmentKey) |
Get an environment given a project and key.
|
com.squareup.okhttp.Call |
getEnvironmentAsync(java.lang.String projectKey,
java.lang.String environmentKey,
ApiCallback<Environment> callback) |
Get an environment given a project and key.
|
com.squareup.okhttp.Call |
getEnvironmentCall(java.lang.String projectKey,
java.lang.String environmentKey,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getEnvironment
|
ApiResponse<Environment> |
getEnvironmentWithHttpInfo(java.lang.String projectKey,
java.lang.String environmentKey) |
Get an environment given a project and key.
|
Environment |
patchEnvironment(java.lang.String projectKey,
java.lang.String environmentKey,
java.util.List<PatchOperation> patchDelta) |
Modify an environment by ID.
|
com.squareup.okhttp.Call |
patchEnvironmentAsync(java.lang.String projectKey,
java.lang.String environmentKey,
java.util.List<PatchOperation> patchDelta,
ApiCallback<Environment> callback) |
Modify an environment by ID.
|
com.squareup.okhttp.Call |
patchEnvironmentCall(java.lang.String projectKey,
java.lang.String environmentKey,
java.util.List<PatchOperation> patchDelta,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for patchEnvironment
|
ApiResponse<Environment> |
patchEnvironmentWithHttpInfo(java.lang.String projectKey,
java.lang.String environmentKey,
java.util.List<PatchOperation> patchDelta) |
Modify an environment by ID.
|
Environment |
postEnvironment(java.lang.String projectKey,
EnvironmentPost environmentBody) |
Create a new environment in a specified project with a given name, key, and swatch color.
|
com.squareup.okhttp.Call |
postEnvironmentAsync(java.lang.String projectKey,
EnvironmentPost environmentBody,
ApiCallback<Environment> callback) |
Create a new environment in a specified project with a given name, key, and swatch color.
|
com.squareup.okhttp.Call |
postEnvironmentCall(java.lang.String projectKey,
EnvironmentPost environmentBody,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for postEnvironment
|
ApiResponse<Environment> |
postEnvironmentWithHttpInfo(java.lang.String projectKey,
EnvironmentPost environmentBody) |
Create a new environment in a specified project with a given name, key, and swatch color.
|
Environment |
resetEnvironmentMobileKey(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry) |
Reset an environment's mobile key.
|
com.squareup.okhttp.Call |
resetEnvironmentMobileKeyAsync(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry,
ApiCallback<Environment> callback) |
Reset an environment's mobile key.
|
com.squareup.okhttp.Call |
resetEnvironmentMobileKeyCall(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for resetEnvironmentMobileKey
|
ApiResponse<Environment> |
resetEnvironmentMobileKeyWithHttpInfo(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry) |
Reset an environment's mobile key.
|
Environment |
resetEnvironmentSDKKey(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry) |
Reset an environment's SDK key with an optional expiry time for the old key.
|
com.squareup.okhttp.Call |
resetEnvironmentSDKKeyAsync(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry,
ApiCallback<Environment> callback) |
Reset an environment's SDK key with an optional expiry time for the old key.
|
com.squareup.okhttp.Call |
resetEnvironmentSDKKeyCall(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for resetEnvironmentSDKKey
|
ApiResponse<Environment> |
resetEnvironmentSDKKeyWithHttpInfo(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry) |
Reset an environment's SDK key with an optional expiry time for the old key.
|
void |
setApiClient(ApiClient apiClient) |
public EnvironmentsApi()
public EnvironmentsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call deleteEnvironmentCall(java.lang.String projectKey,
java.lang.String environmentKey,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteEnvironment(java.lang.String projectKey,
java.lang.String environmentKey)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteEnvironmentWithHttpInfo(java.lang.String projectKey, java.lang.String environmentKey) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteEnvironmentAsync(java.lang.String projectKey,
java.lang.String environmentKey,
ApiCallback<java.lang.Void> callback)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getEnvironmentCall(java.lang.String projectKey,
java.lang.String environmentKey,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Environment getEnvironment(java.lang.String projectKey, java.lang.String environmentKey) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Environment> getEnvironmentWithHttpInfo(java.lang.String projectKey, java.lang.String environmentKey) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getEnvironmentAsync(java.lang.String projectKey,
java.lang.String environmentKey,
ApiCallback<Environment> callback)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call patchEnvironmentCall(java.lang.String projectKey,
java.lang.String environmentKey,
java.util.List<PatchOperation> patchDelta,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Environment patchEnvironment(java.lang.String projectKey, java.lang.String environmentKey, java.util.List<PatchOperation> patchDelta) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Environment> patchEnvironmentWithHttpInfo(java.lang.String projectKey, java.lang.String environmentKey, java.util.List<PatchOperation> patchDelta) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call patchEnvironmentAsync(java.lang.String projectKey,
java.lang.String environmentKey,
java.util.List<PatchOperation> patchDelta,
ApiCallback<Environment> callback)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call postEnvironmentCall(java.lang.String projectKey,
EnvironmentPost environmentBody,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentBody - New environment. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Environment postEnvironment(java.lang.String projectKey, EnvironmentPost environmentBody) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentBody - New environment. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Environment> postEnvironmentWithHttpInfo(java.lang.String projectKey, EnvironmentPost environmentBody) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentBody - New environment. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call postEnvironmentAsync(java.lang.String projectKey,
EnvironmentPost environmentBody,
ApiCallback<Environment> callback)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentBody - New environment. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call resetEnvironmentMobileKeyCall(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)expiry - The expiry parameter is deprecated for this endpoint, so the old mobile key will always expire immediately. This parameter will be removed in an upcoming major API client version. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Environment resetEnvironmentMobileKey(java.lang.String projectKey, java.lang.String environmentKey, java.lang.Long expiry) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)expiry - The expiry parameter is deprecated for this endpoint, so the old mobile key will always expire immediately. This parameter will be removed in an upcoming major API client version. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Environment> resetEnvironmentMobileKeyWithHttpInfo(java.lang.String projectKey, java.lang.String environmentKey, java.lang.Long expiry) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)expiry - The expiry parameter is deprecated for this endpoint, so the old mobile key will always expire immediately. This parameter will be removed in an upcoming major API client version. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call resetEnvironmentMobileKeyAsync(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry,
ApiCallback<Environment> callback)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)expiry - The expiry parameter is deprecated for this endpoint, so the old mobile key will always expire immediately. This parameter will be removed in an upcoming major API client version. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call resetEnvironmentSDKKeyCall(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)expiry - An expiration time for the old environment SDK key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Environment resetEnvironmentSDKKey(java.lang.String projectKey, java.lang.String environmentKey, java.lang.Long expiry) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)expiry - An expiration time for the old environment SDK key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Environment> resetEnvironmentSDKKeyWithHttpInfo(java.lang.String projectKey, java.lang.String environmentKey, java.lang.Long expiry) throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)expiry - An expiration time for the old environment SDK key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call resetEnvironmentSDKKeyAsync(java.lang.String projectKey,
java.lang.String environmentKey,
java.lang.Long expiry,
ApiCallback<Environment> callback)
throws ApiException
projectKey - The project key, used to tie the flags together under one project so they can be managed together. (required)environmentKey - The environment key, used to tie together flag configuration and users under one environment so they can be managed together. (required)expiry - An expiration time for the old environment SDK key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object