Package com.signadot.client.api
Class RoutesApi
- java.lang.Object
-
- com.signadot.client.api.RoutesApi
-
public class RoutesApi extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()java.util.List<RoutesRule>getRoute(java.lang.String namespace, java.lang.String name)Get routing rule Fetches the routing rule associated with a namespace / service-namecom.squareup.okhttp.CallgetRouteAsync(java.lang.String namespace, java.lang.String name, ApiCallback<java.util.List<RoutesRule>> callback)Get routing rule (asynchronously) Fetches the routing rule associated with a namespace / service-namecom.squareup.okhttp.CallgetRouteCall(java.lang.String namespace, java.lang.String name, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getRouteApiResponse<java.util.List<RoutesRule>>getRouteWithHttpInfo(java.lang.String namespace, java.lang.String name)Get routing rule Fetches the routing rule associated with a namespace / service-namejava.lang.StringisHealthy()Health check API Tells if the APIs are working or not.com.squareup.okhttp.CallisHealthyAsync(ApiCallback<java.lang.String> callback)Health check API (asynchronously) Tells if the APIs are working or not.com.squareup.okhttp.CallisHealthyCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for isHealthyApiResponse<java.lang.String>isHealthyWithHttpInfo()Health check API Tells if the APIs are working or not.voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
RoutesApi
public RoutesApi()
-
RoutesApi
public RoutesApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getRouteCall
public com.squareup.okhttp.Call getRouteCall(java.lang.String namespace, java.lang.String name, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionBuild call for getRoute- Parameters:
namespace- Namespace (required)name- Name (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getRoute
public java.util.List<RoutesRule> getRoute(java.lang.String namespace, java.lang.String name) throws ApiException
Get routing rule Fetches the routing rule associated with a namespace / service-name- Parameters:
namespace- Namespace (required)name- Name (required)- Returns:
- List<RoutesRule>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getRouteWithHttpInfo
public ApiResponse<java.util.List<RoutesRule>> getRouteWithHttpInfo(java.lang.String namespace, java.lang.String name) throws ApiException
Get routing rule Fetches the routing rule associated with a namespace / service-name- Parameters:
namespace- Namespace (required)name- Name (required)- Returns:
- ApiResponse<List<RoutesRule>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getRouteAsync
public com.squareup.okhttp.Call getRouteAsync(java.lang.String namespace, java.lang.String name, ApiCallback<java.util.List<RoutesRule>> callback) throws ApiExceptionGet routing rule (asynchronously) Fetches the routing rule associated with a namespace / service-name- Parameters:
namespace- Namespace (required)name- 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
-
isHealthyCall
public com.squareup.okhttp.Call isHealthyCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for isHealthy- Parameters:
progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
isHealthy
public java.lang.String isHealthy() throws ApiExceptionHealth check API Tells if the APIs are working or not.- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
isHealthyWithHttpInfo
public ApiResponse<java.lang.String> isHealthyWithHttpInfo() throws ApiException
Health check API Tells if the APIs are working or not.- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
isHealthyAsync
public com.squareup.okhttp.Call isHealthyAsync(ApiCallback<java.lang.String> callback) throws ApiException
Health check API (asynchronously) Tells if the APIs are working or not.- 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
-
-