Class RoutesApi


  • public class RoutesApi
    extends java.lang.Object
    • 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 ApiException
        Build call for getRoute
        Parameters:
        namespace - Namespace (required)
        name - Name (required)
        progressListener - Progress listener
        progressRequestListener - 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 ApiException
        Get 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
      • isHealthy

        public java.lang.String isHealthy()
                                   throws ApiException
        Health 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