Package com.launchdarkly.api.api
Class ReleasePoliciesBetaApi
- java.lang.Object
-
- com.launchdarkly.api.api.ReleasePoliciesBetaApi
-
public class ReleasePoliciesBetaApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReleasePoliciesBetaApi()ReleasePoliciesBetaApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteReleasePolicy(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey)Delete a release policy Delete an existing release policy for the specified project.okhttp3.CalldeleteReleasePolicyAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey, ApiCallback<java.lang.Void> _callback)Delete a release policy (asynchronously) Delete an existing release policy for the specified project.okhttp3.CalldeleteReleasePolicyCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey, ApiCallback _callback)Build call for deleteReleasePolicyApiResponse<java.lang.Void>deleteReleasePolicyWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey)Delete a release policy Delete an existing release policy for the specified project.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()ReleasePoliciesResponsegetReleasePolicies(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Boolean excludeDefault)List release policies Get a list of release policies for the specified project with optional filtering.okhttp3.CallgetReleasePoliciesAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Boolean excludeDefault, ApiCallback<ReleasePoliciesResponse> _callback)List release policies (asynchronously) Get a list of release policies for the specified project with optional filtering.okhttp3.CallgetReleasePoliciesCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Boolean excludeDefault, ApiCallback _callback)Build call for getReleasePoliciesApiResponse<ReleasePoliciesResponse>getReleasePoliciesWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.Boolean excludeDefault)List release policies Get a list of release policies for the specified project with optional filtering.ReleasePolicygetReleasePolicy(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey)Get a release policy by key Retrieve a single release policy by its key for the specified project.okhttp3.CallgetReleasePolicyAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey, ApiCallback<ReleasePolicy> _callback)Get a release policy by key (asynchronously) Retrieve a single release policy by its key for the specified project.okhttp3.CallgetReleasePolicyCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey, ApiCallback _callback)Build call for getReleasePolicyApiResponse<ReleasePolicy>getReleasePolicyWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey)Get a release policy by key Retrieve a single release policy by its key for the specified project.java.util.List<ReleasePolicy>postReleasePoliciesOrder(java.lang.String ldAPIVersion, java.lang.String projectKey, java.util.List<java.lang.String> requestBody)Update the order of existing release policies Update the order of existing release policies for the specified project.okhttp3.CallpostReleasePoliciesOrderAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.util.List<java.lang.String> requestBody, ApiCallback<java.util.List<ReleasePolicy>> _callback)Update the order of existing release policies (asynchronously) Update the order of existing release policies for the specified project.okhttp3.CallpostReleasePoliciesOrderCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.util.List<java.lang.String> requestBody, ApiCallback _callback)Build call for postReleasePoliciesOrderApiResponse<java.util.List<ReleasePolicy>>postReleasePoliciesOrderWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.util.List<java.lang.String> requestBody)Update the order of existing release policies Update the order of existing release policies for the specified project.ReleasePolicypostReleasePolicy(java.lang.String ldAPIVersion, java.lang.String projectKey, PostReleasePolicyRequest postReleasePolicyRequest)Create a release policy Create a new release policy for the specified project.okhttp3.CallpostReleasePolicyAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, PostReleasePolicyRequest postReleasePolicyRequest, ApiCallback<ReleasePolicy> _callback)Create a release policy (asynchronously) Create a new release policy for the specified project.okhttp3.CallpostReleasePolicyCall(java.lang.String ldAPIVersion, java.lang.String projectKey, PostReleasePolicyRequest postReleasePolicyRequest, ApiCallback _callback)Build call for postReleasePolicyApiResponse<ReleasePolicy>postReleasePolicyWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, PostReleasePolicyRequest postReleasePolicyRequest)Create a release policy Create a new release policy for the specified project.ReleasePolicyputReleasePolicy(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey, PutReleasePolicyRequest putReleasePolicyRequest)Update a release policy Update an existing release policy for the specified project.okhttp3.CallputReleasePolicyAsync(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey, PutReleasePolicyRequest putReleasePolicyRequest, ApiCallback<ReleasePolicy> _callback)Update a release policy (asynchronously) Update an existing release policy for the specified project.okhttp3.CallputReleasePolicyCall(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey, PutReleasePolicyRequest putReleasePolicyRequest, ApiCallback _callback)Build call for putReleasePolicyApiResponse<ReleasePolicy>putReleasePolicyWithHttpInfo(java.lang.String ldAPIVersion, java.lang.String projectKey, java.lang.String policyKey, PutReleasePolicyRequest putReleasePolicyRequest)Update a release policy Update an existing release policy for the specified project.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
ReleasePoliciesBetaApi
public ReleasePoliciesBetaApi()
-
ReleasePoliciesBetaApi
public ReleasePoliciesBetaApi(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)
-
deleteReleasePolicyCall
public okhttp3.Call deleteReleasePolicyCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey, ApiCallback _callback) throws ApiExceptionBuild call for deleteReleasePolicy- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The human-readable key of the release policy (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteReleasePolicy
public void deleteReleasePolicy(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey) throws ApiExceptionDelete a release policy Delete an existing release policy for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The human-readable key of the release policy (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteReleasePolicyWithHttpInfo
public ApiResponse<java.lang.Void> deleteReleasePolicyWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey) throws ApiException
Delete a release policy Delete an existing release policy for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The human-readable key of the release policy (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteReleasePolicyAsync
public okhttp3.Call deleteReleasePolicyAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete a release policy (asynchronously) Delete an existing release policy for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The human-readable key of the release policy (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
-
getReleasePoliciesCall
public okhttp3.Call getReleasePoliciesCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nullable java.lang.Boolean excludeDefault, ApiCallback _callback) throws ApiExceptionBuild call for getReleasePolicies- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)excludeDefault- When true, exclude the default release policy from the response. When false or omitted, include the default policy if an environment filter is present. (optional, default to false)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getReleasePolicies
public ReleasePoliciesResponse getReleasePolicies(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nullable java.lang.Boolean excludeDefault) throws ApiException
List release policies Get a list of release policies for the specified project with optional filtering.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)excludeDefault- When true, exclude the default release policy from the response. When false or omitted, include the default policy if an environment filter is present. (optional, default to false)- Returns:
- ReleasePoliciesResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getReleasePoliciesWithHttpInfo
public ApiResponse<ReleasePoliciesResponse> getReleasePoliciesWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nullable java.lang.Boolean excludeDefault) throws ApiException
List release policies Get a list of release policies for the specified project with optional filtering.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)excludeDefault- When true, exclude the default release policy from the response. When false or omitted, include the default policy if an environment filter is present. (optional, default to false)- Returns:
- ApiResponse<ReleasePoliciesResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getReleasePoliciesAsync
public okhttp3.Call getReleasePoliciesAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nullable java.lang.Boolean excludeDefault, ApiCallback<ReleasePoliciesResponse> _callback) throws ApiExceptionList release policies (asynchronously) Get a list of release policies for the specified project with optional filtering.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)excludeDefault- When true, exclude the default release policy from the response. When false or omitted, include the default policy if an environment filter is present. (optional, default to false)_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
-
getReleasePolicyCall
public okhttp3.Call getReleasePolicyCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey, ApiCallback _callback) throws ApiExceptionBuild call for getReleasePolicy- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The release policy key (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getReleasePolicy
public ReleasePolicy getReleasePolicy(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey) throws ApiException
Get a release policy by key Retrieve a single release policy by its key for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The release policy key (required)- Returns:
- ReleasePolicy
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getReleasePolicyWithHttpInfo
public ApiResponse<ReleasePolicy> getReleasePolicyWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey) throws ApiException
Get a release policy by key Retrieve a single release policy by its key for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The release policy key (required)- Returns:
- ApiResponse<ReleasePolicy>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getReleasePolicyAsync
public okhttp3.Call getReleasePolicyAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey, ApiCallback<ReleasePolicy> _callback) throws ApiExceptionGet a release policy by key (asynchronously) Retrieve a single release policy by its key for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The release policy 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
-
postReleasePoliciesOrderCall
public okhttp3.Call postReleasePoliciesOrderCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.util.List<java.lang.String> requestBody, ApiCallback _callback) throws ApiExceptionBuild call for postReleasePoliciesOrder- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)requestBody- Array of release policy keys in the desired rank order (scoped policies only). These keys must include _all_ of the scoped release policies for the project. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postReleasePoliciesOrder
public java.util.List<ReleasePolicy> postReleasePoliciesOrder(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.util.List<java.lang.String> requestBody) throws ApiException
Update the order of existing release policies Update the order of existing release policies for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)requestBody- Array of release policy keys in the desired rank order (scoped policies only). These keys must include _all_ of the scoped release policies for the project. (required)- Returns:
- List<ReleasePolicy>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postReleasePoliciesOrderWithHttpInfo
public ApiResponse<java.util.List<ReleasePolicy>> postReleasePoliciesOrderWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.util.List<java.lang.String> requestBody) throws ApiException
Update the order of existing release policies Update the order of existing release policies for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)requestBody- Array of release policy keys in the desired rank order (scoped policies only). These keys must include _all_ of the scoped release policies for the project. (required)- Returns:
- ApiResponse<List<ReleasePolicy>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postReleasePoliciesOrderAsync
public okhttp3.Call postReleasePoliciesOrderAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.util.List<java.lang.String> requestBody, ApiCallback<java.util.List<ReleasePolicy>> _callback) throws ApiExceptionUpdate the order of existing release policies (asynchronously) Update the order of existing release policies for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)requestBody- Array of release policy keys in the desired rank order (scoped policies only). These keys must include _all_ of the scoped release policies for the project. (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
-
postReleasePolicyCall
public okhttp3.Call postReleasePolicyCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull PostReleasePolicyRequest postReleasePolicyRequest, ApiCallback _callback) throws ApiExceptionBuild call for postReleasePolicy- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)postReleasePolicyRequest- Release policy to create (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postReleasePolicy
public ReleasePolicy postReleasePolicy(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull PostReleasePolicyRequest postReleasePolicyRequest) throws ApiException
Create a release policy Create a new release policy for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)postReleasePolicyRequest- Release policy to create (required)- Returns:
- ReleasePolicy
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postReleasePolicyWithHttpInfo
public ApiResponse<ReleasePolicy> postReleasePolicyWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull PostReleasePolicyRequest postReleasePolicyRequest) throws ApiException
Create a release policy Create a new release policy for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)postReleasePolicyRequest- Release policy to create (required)- Returns:
- ApiResponse<ReleasePolicy>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postReleasePolicyAsync
public okhttp3.Call postReleasePolicyAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull PostReleasePolicyRequest postReleasePolicyRequest, ApiCallback<ReleasePolicy> _callback) throws ApiExceptionCreate a release policy (asynchronously) Create a new release policy for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)postReleasePolicyRequest- Release policy to create (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
-
putReleasePolicyCall
public okhttp3.Call putReleasePolicyCall(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey, @Nonnull PutReleasePolicyRequest putReleasePolicyRequest, ApiCallback _callback) throws ApiExceptionBuild call for putReleasePolicy- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The human-readable key of the release policy (required)putReleasePolicyRequest- Release policy data to update (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
putReleasePolicy
public ReleasePolicy putReleasePolicy(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey, @Nonnull PutReleasePolicyRequest putReleasePolicyRequest) throws ApiException
Update a release policy Update an existing release policy for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The human-readable key of the release policy (required)putReleasePolicyRequest- Release policy data to update (required)- Returns:
- ReleasePolicy
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
putReleasePolicyWithHttpInfo
public ApiResponse<ReleasePolicy> putReleasePolicyWithHttpInfo(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey, @Nonnull PutReleasePolicyRequest putReleasePolicyRequest) throws ApiException
Update a release policy Update an existing release policy for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The human-readable key of the release policy (required)putReleasePolicyRequest- Release policy data to update (required)- Returns:
- ApiResponse<ReleasePolicy>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
putReleasePolicyAsync
public okhttp3.Call putReleasePolicyAsync(@Nonnull java.lang.String ldAPIVersion, @Nonnull java.lang.String projectKey, @Nonnull java.lang.String policyKey, @Nonnull PutReleasePolicyRequest putReleasePolicyRequest, ApiCallback<ReleasePolicy> _callback) throws ApiExceptionUpdate a release policy (asynchronously) Update an existing release policy for the specified project.- Parameters:
ldAPIVersion- Version of the endpoint. (required)projectKey- The project key (required)policyKey- The human-readable key of the release policy (required)putReleasePolicyRequest- Release policy data to update (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
-
-