Package io.harness.cf.api
Class ClientApi
- java.lang.Object
-
- io.harness.cf.api.ClientApi
-
public class ClientApi extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationResponseauthenticate(AuthenticationRequest authenticationRequest)Authenticate with the admin server.okhttp3.CallauthenticateAsync(AuthenticationRequest authenticationRequest, ApiCallback<AuthenticationResponse> _callback)Authenticate with the admin server.okhttp3.CallauthenticateCall(AuthenticationRequest authenticationRequest, ApiCallback _callback)Build call for authenticateApiResponse<AuthenticationResponse>authenticateWithHttpInfo(AuthenticationRequest authenticationRequest)Authenticate with the admin server.java.util.List<Segment>getAllSegments(java.lang.String environmentUUID, java.lang.String cluster)Retrieve all segments.okhttp3.CallgetAllSegmentsAsync(java.lang.String environmentUUID, java.lang.String cluster, ApiCallback<java.util.List<Segment>> _callback)Retrieve all segments.okhttp3.CallgetAllSegmentsCall(java.lang.String environmentUUID, java.lang.String cluster, ApiCallback _callback)Build call for getAllSegmentsApiResponse<java.util.List<Segment>>getAllSegmentsWithHttpInfo(java.lang.String environmentUUID, java.lang.String cluster)Retrieve all segments.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()EvaluationgetEvaluationByIdentifier(java.lang.String environmentUUID, java.lang.String feature, java.lang.String target, java.lang.String cluster)Get feature evaluations for targetokhttp3.CallgetEvaluationByIdentifierAsync(java.lang.String environmentUUID, java.lang.String feature, java.lang.String target, java.lang.String cluster, ApiCallback<Evaluation> _callback)Get feature evaluations for target (asynchronously)okhttp3.CallgetEvaluationByIdentifierCall(java.lang.String environmentUUID, java.lang.String feature, java.lang.String target, java.lang.String cluster, ApiCallback _callback)Build call for getEvaluationByIdentifierApiResponse<Evaluation>getEvaluationByIdentifierWithHttpInfo(java.lang.String environmentUUID, java.lang.String feature, java.lang.String target, java.lang.String cluster)Get feature evaluations for targetjava.util.ListgetEvaluations(java.lang.String environmentUUID, java.lang.String target, java.lang.String cluster)Get feature evaluations for targetokhttp3.CallgetEvaluationsAsync(java.lang.String environmentUUID, java.lang.String target, java.lang.String cluster, ApiCallback<java.util.List> _callback)Get feature evaluations for target (asynchronously)okhttp3.CallgetEvaluationsCall(java.lang.String environmentUUID, java.lang.String target, java.lang.String cluster, ApiCallback _callback)Build call for getEvaluationsApiResponse<java.util.List>getEvaluationsWithHttpInfo(java.lang.String environmentUUID, java.lang.String target, java.lang.String cluster)Get feature evaluations for targetjava.util.List<FeatureConfig>getFeatureConfig(java.lang.String environmentUUID, java.lang.String cluster)Get all feature flags activations All feature flags with activations in project environmentokhttp3.CallgetFeatureConfigAsync(java.lang.String environmentUUID, java.lang.String cluster, ApiCallback<java.util.List<FeatureConfig>> _callback)Get all feature flags activations (asynchronously) All feature flags with activations in project environmentFeatureConfiggetFeatureConfigByIdentifier(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster)Get feature configokhttp3.CallgetFeatureConfigByIdentifierAsync(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster, ApiCallback<FeatureConfig> _callback)Get feature config (asynchronously)okhttp3.CallgetFeatureConfigByIdentifierCall(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster, ApiCallback _callback)Build call for getFeatureConfigByIdentifierApiResponse<FeatureConfig>getFeatureConfigByIdentifierWithHttpInfo(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster)Get feature configokhttp3.CallgetFeatureConfigCall(java.lang.String environmentUUID, java.lang.String cluster, ApiCallback _callback)Build call for getFeatureConfigApiResponse<java.util.List<FeatureConfig>>getFeatureConfigWithHttpInfo(java.lang.String environmentUUID, java.lang.String cluster)Get all feature flags activations All feature flags with activations in project environmentintgetHostIndex()SegmentgetSegmentByIdentifier(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster)Retrieve a segment by identifier Used to retrieve a segment for a certain account id by identifierokhttp3.CallgetSegmentByIdentifierAsync(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster, ApiCallback<Segment> _callback)Retrieve a segment by identifier (asynchronously) Used to retrieve a segment for a certain account id by identifierokhttp3.CallgetSegmentByIdentifierCall(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster, ApiCallback _callback)Build call for getSegmentByIdentifierApiResponse<Segment>getSegmentByIdentifierWithHttpInfo(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster)Retrieve a segment by identifier Used to retrieve a segment for a certain account id by identifiervoidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)voidstream(java.lang.String apIKey, java.lang.String cluster)Stream endpoint.okhttp3.CallstreamAsync(java.lang.String apIKey, java.lang.String cluster, ApiCallback<java.lang.Void> _callback)Stream endpoint.okhttp3.CallstreamCall(java.lang.String apIKey, java.lang.String cluster, ApiCallback _callback)Build call for streamApiResponse<java.lang.Void>streamWithHttpInfo(java.lang.String apIKey, java.lang.String cluster)Stream endpoint.
-
-
-
Constructor Detail
-
ClientApi
public ClientApi()
-
ClientApi
public ClientApi(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)
-
authenticateCall
public okhttp3.Call authenticateCall(AuthenticationRequest authenticationRequest, ApiCallback _callback) throws ApiException
Build call for authenticate- Parameters:
authenticationRequest- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
authenticate
public AuthenticationResponse authenticate(AuthenticationRequest authenticationRequest) throws ApiException
Authenticate with the admin server. Used to retrieve all target segments for certain account id.- Parameters:
authenticationRequest- (optional)- Returns:
- AuthenticationResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
authenticateWithHttpInfo
public ApiResponse<AuthenticationResponse> authenticateWithHttpInfo(AuthenticationRequest authenticationRequest) throws ApiException
Authenticate with the admin server. Used to retrieve all target segments for certain account id.- Parameters:
authenticationRequest- (optional)- Returns:
- ApiResponse<AuthenticationResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
authenticateAsync
public okhttp3.Call authenticateAsync(AuthenticationRequest authenticationRequest, ApiCallback<AuthenticationResponse> _callback) throws ApiException
Authenticate with the admin server. (asynchronously) Used to retrieve all target segments for certain account id.- Parameters:
authenticationRequest- (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
-
getAllSegmentsCall
public okhttp3.Call getAllSegmentsCall(java.lang.String environmentUUID, java.lang.String cluster, ApiCallback _callback) throws ApiExceptionBuild call for getAllSegments- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getAllSegments
public java.util.List<Segment> getAllSegments(java.lang.String environmentUUID, java.lang.String cluster) throws ApiException
Retrieve all segments. Used to retrieve all segments for certain account id.- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- List<Segment>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAllSegmentsWithHttpInfo
public ApiResponse<java.util.List<Segment>> getAllSegmentsWithHttpInfo(java.lang.String environmentUUID, java.lang.String cluster) throws ApiException
Retrieve all segments. Used to retrieve all segments for certain account id.- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- ApiResponse<List<Segment>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAllSegmentsAsync
public okhttp3.Call getAllSegmentsAsync(java.lang.String environmentUUID, java.lang.String cluster, ApiCallback<java.util.List<Segment>> _callback) throws ApiExceptionRetrieve all segments. (asynchronously) Used to retrieve all segments for certain account id.- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (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
-
getEvaluationByIdentifierCall
public okhttp3.Call getEvaluationByIdentifierCall(java.lang.String environmentUUID, java.lang.String feature, java.lang.String target, java.lang.String cluster, ApiCallback _callback) throws ApiExceptionBuild call for getEvaluationByIdentifier- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)feature- Unique identifier for the flag object in the API. (required)target- Unique identifier for the target object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getEvaluationByIdentifier
public Evaluation getEvaluationByIdentifier(java.lang.String environmentUUID, java.lang.String feature, java.lang.String target, java.lang.String cluster) throws ApiException
Get feature evaluations for target- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)feature- Unique identifier for the flag object in the API. (required)target- Unique identifier for the target object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- Evaluation
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getEvaluationByIdentifierWithHttpInfo
public ApiResponse<Evaluation> getEvaluationByIdentifierWithHttpInfo(java.lang.String environmentUUID, java.lang.String feature, java.lang.String target, java.lang.String cluster) throws ApiException
Get feature evaluations for target- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)feature- Unique identifier for the flag object in the API. (required)target- Unique identifier for the target object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- ApiResponse<Evaluation>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getEvaluationByIdentifierAsync
public okhttp3.Call getEvaluationByIdentifierAsync(java.lang.String environmentUUID, java.lang.String feature, java.lang.String target, java.lang.String cluster, ApiCallback<Evaluation> _callback) throws ApiExceptionGet feature evaluations for target (asynchronously)- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)feature- Unique identifier for the flag object in the API. (required)target- Unique identifier for the target object in the API. (required)cluster- Unique identifier for the cluster for the account (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
-
getEvaluationsCall
public okhttp3.Call getEvaluationsCall(java.lang.String environmentUUID, java.lang.String target, java.lang.String cluster, ApiCallback _callback) throws ApiExceptionBuild call for getEvaluations- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)target- Unique identifier for the target object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getEvaluations
public java.util.List getEvaluations(java.lang.String environmentUUID, java.lang.String target, java.lang.String cluster) throws ApiExceptionGet feature evaluations for target- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)target- Unique identifier for the target object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- List
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getEvaluationsWithHttpInfo
public ApiResponse<java.util.List> getEvaluationsWithHttpInfo(java.lang.String environmentUUID, java.lang.String target, java.lang.String cluster) throws ApiException
Get feature evaluations for target- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)target- Unique identifier for the target object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- ApiResponse<List>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getEvaluationsAsync
public okhttp3.Call getEvaluationsAsync(java.lang.String environmentUUID, java.lang.String target, java.lang.String cluster, ApiCallback<java.util.List> _callback) throws ApiExceptionGet feature evaluations for target (asynchronously)- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)target- Unique identifier for the target object in the API. (required)cluster- Unique identifier for the cluster for the account (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
-
getFeatureConfigCall
public okhttp3.Call getFeatureConfigCall(java.lang.String environmentUUID, java.lang.String cluster, ApiCallback _callback) throws ApiExceptionBuild call for getFeatureConfig- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getFeatureConfig
public java.util.List<FeatureConfig> getFeatureConfig(java.lang.String environmentUUID, java.lang.String cluster) throws ApiException
Get all feature flags activations All feature flags with activations in project environment- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- List<FeatureConfig>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getFeatureConfigWithHttpInfo
public ApiResponse<java.util.List<FeatureConfig>> getFeatureConfigWithHttpInfo(java.lang.String environmentUUID, java.lang.String cluster) throws ApiException
Get all feature flags activations All feature flags with activations in project environment- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- ApiResponse<List<FeatureConfig>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getFeatureConfigAsync
public okhttp3.Call getFeatureConfigAsync(java.lang.String environmentUUID, java.lang.String cluster, ApiCallback<java.util.List<FeatureConfig>> _callback) throws ApiExceptionGet all feature flags activations (asynchronously) All feature flags with activations in project environment- Parameters:
environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (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
-
getFeatureConfigByIdentifierCall
public okhttp3.Call getFeatureConfigByIdentifierCall(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster, ApiCallback _callback) throws ApiExceptionBuild call for getFeatureConfigByIdentifier- Parameters:
identifier- Unique identifier for the flag object in the API. (required)environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getFeatureConfigByIdentifier
public FeatureConfig getFeatureConfigByIdentifier(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster) throws ApiException
Get feature config- Parameters:
identifier- Unique identifier for the flag object in the API. (required)environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- FeatureConfig
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getFeatureConfigByIdentifierWithHttpInfo
public ApiResponse<FeatureConfig> getFeatureConfigByIdentifierWithHttpInfo(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster) throws ApiException
Get feature config- Parameters:
identifier- Unique identifier for the flag object in the API. (required)environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- ApiResponse<FeatureConfig>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getFeatureConfigByIdentifierAsync
public okhttp3.Call getFeatureConfigByIdentifierAsync(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster, ApiCallback<FeatureConfig> _callback) throws ApiExceptionGet feature config (asynchronously)- Parameters:
identifier- Unique identifier for the flag object in the API. (required)environmentUUID- Unique identifier for the environment object in the API. (required)cluster- Unique identifier for the cluster for the account (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
-
getSegmentByIdentifierCall
public okhttp3.Call getSegmentByIdentifierCall(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster, ApiCallback _callback) throws ApiExceptionBuild call for getSegmentByIdentifier- Parameters:
identifier- Unique identifier for the segment object in the API (required)environmentUUID- Unique identifier for the environment object in the API (required)cluster- Unique identifier for the cluster for the account (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getSegmentByIdentifier
public Segment getSegmentByIdentifier(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster) throws ApiException
Retrieve a segment by identifier Used to retrieve a segment for a certain account id by identifier- Parameters:
identifier- Unique identifier for the segment object in the API (required)environmentUUID- Unique identifier for the environment object in the API (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- Segment
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSegmentByIdentifierWithHttpInfo
public ApiResponse<Segment> getSegmentByIdentifierWithHttpInfo(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster) throws ApiException
Retrieve a segment by identifier Used to retrieve a segment for a certain account id by identifier- Parameters:
identifier- Unique identifier for the segment object in the API (required)environmentUUID- Unique identifier for the environment object in the API (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- ApiResponse<Segment>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getSegmentByIdentifierAsync
public okhttp3.Call getSegmentByIdentifierAsync(java.lang.String identifier, java.lang.String environmentUUID, java.lang.String cluster, ApiCallback<Segment> _callback) throws ApiExceptionRetrieve a segment by identifier (asynchronously) Used to retrieve a segment for a certain account id by identifier- Parameters:
identifier- Unique identifier for the segment object in the API (required)environmentUUID- Unique identifier for the environment object in the API (required)cluster- Unique identifier for the cluster for the account (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
-
streamCall
public okhttp3.Call streamCall(java.lang.String apIKey, java.lang.String cluster, ApiCallback _callback) throws ApiExceptionBuild call for stream- Parameters:
apIKey- (required)cluster- Unique identifier for the cluster for the account (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
stream
public void stream(java.lang.String apIKey, java.lang.String cluster) throws ApiExceptionStream endpoint.- Parameters:
apIKey- (required)cluster- Unique identifier for the cluster for the account (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
streamWithHttpInfo
public ApiResponse<java.lang.Void> streamWithHttpInfo(java.lang.String apIKey, java.lang.String cluster) throws ApiException
Stream endpoint.- Parameters:
apIKey- (required)cluster- Unique identifier for the cluster for the account (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
streamAsync
public okhttp3.Call streamAsync(java.lang.String apIKey, java.lang.String cluster, ApiCallback<java.lang.Void> _callback) throws ApiExceptionStream endpoint. (asynchronously)- Parameters:
apIKey- (required)cluster- Unique identifier for the cluster for the account (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
-
-