client-java

June 23, 2018 ยท View on GitHub

Requirements

Building the API client library requires Maven to be installed.

Installation

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>com.appscode.searchlight</groupId>
    <artifactId>client-java</artifactId>
    <version>0.1.0</version>
    <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.appscode.searchlight:client-java:0.1.0"

Others

At first generate the JAR by executing:

mvn package

Then manually install the following JARs:

  • target/client-java-0.1.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:


import com.appscode.searchlight.client.*;
import com.appscode.searchlight.client.auth.*;
import com.appscode.searchlight.client.models.*;
import com.appscode.searchlight.client.apis.ApisApi;

import java.io.File;
import java.util.*;

public class ApisApiExample {

    public static void main(String[] args) {
        
        ApisApi apiInstance = new ApisApi();
        try {
            V1APIGroupList result = apiInstance.getAPIVersions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApisApi#getAPIVersions");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://localhost

ClassMethodHTTP requestDescription
ApisApigetAPIVersionsGET /apis/
IncidentsMonitoringAppscodeComApigetAPIGroupGET /apis/incidents.monitoring.appscode.com/
IncidentsMonitoringAppscodeComV1alpha1ApicreateNamespacedAcknowledgementPOST /apis/incidents.monitoring.appscode.com/v1alpha1/namespaces/{namespace}/acknowledgements
IncidentsMonitoringAppscodeComV1alpha1ApideleteNamespacedAcknowledgementDELETE /apis/incidents.monitoring.appscode.com/v1alpha1/namespaces/{namespace}/acknowledgements/{name}
IncidentsMonitoringAppscodeComV1alpha1ApigetAPIResourcesGET /apis/incidents.monitoring.appscode.com/v1alpha1/
MonitoringAppscodeComApigetAPIGroupGET /apis/monitoring.appscode.com/
MonitoringAppscodeComV1alpha1ApicreateNamespacedClusterAlertPOST /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/clusteralerts
MonitoringAppscodeComV1alpha1ApicreateNamespacedIncidentPOST /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/incidents
MonitoringAppscodeComV1alpha1ApicreateNamespacedNodeAlertPOST /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/nodealerts
MonitoringAppscodeComV1alpha1ApicreateNamespacedPodAlertPOST /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/podalerts
MonitoringAppscodeComV1alpha1ApicreateNamespacedSearchlightPluginPOST /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/searchlightplugins
MonitoringAppscodeComV1alpha1ApideleteCollectionNamespacedClusterAlertDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/clusteralerts
MonitoringAppscodeComV1alpha1ApideleteCollectionNamespacedIncidentDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/incidents
MonitoringAppscodeComV1alpha1ApideleteCollectionNamespacedNodeAlertDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/nodealerts
MonitoringAppscodeComV1alpha1ApideleteCollectionNamespacedPodAlertDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/podalerts
MonitoringAppscodeComV1alpha1ApideleteCollectionNamespacedSearchlightPluginDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/searchlightplugins
MonitoringAppscodeComV1alpha1ApideleteNamespacedClusterAlertDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/clusteralerts/{name}
MonitoringAppscodeComV1alpha1ApideleteNamespacedIncidentDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/incidents/{name}
MonitoringAppscodeComV1alpha1ApideleteNamespacedNodeAlertDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/nodealerts/{name}
MonitoringAppscodeComV1alpha1ApideleteNamespacedPodAlertDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/podalerts/{name}
MonitoringAppscodeComV1alpha1ApideleteNamespacedSearchlightPluginDELETE /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/searchlightplugins/{name}
MonitoringAppscodeComV1alpha1ApigetAPIResourcesGET /apis/monitoring.appscode.com/v1alpha1/
MonitoringAppscodeComV1alpha1ApilistClusterAlertForAllNamespacesGET /apis/monitoring.appscode.com/v1alpha1/clusteralerts
MonitoringAppscodeComV1alpha1ApilistIncidentForAllNamespacesGET /apis/monitoring.appscode.com/v1alpha1/incidents
MonitoringAppscodeComV1alpha1ApilistNamespacedClusterAlertGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/clusteralerts
MonitoringAppscodeComV1alpha1ApilistNamespacedIncidentGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/incidents
MonitoringAppscodeComV1alpha1ApilistNamespacedNodeAlertGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/nodealerts
MonitoringAppscodeComV1alpha1ApilistNamespacedPodAlertGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/podalerts
MonitoringAppscodeComV1alpha1ApilistNamespacedSearchlightPluginGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/searchlightplugins
MonitoringAppscodeComV1alpha1ApilistNodeAlertForAllNamespacesGET /apis/monitoring.appscode.com/v1alpha1/nodealerts
MonitoringAppscodeComV1alpha1ApilistPodAlertForAllNamespacesGET /apis/monitoring.appscode.com/v1alpha1/podalerts
MonitoringAppscodeComV1alpha1ApilistSearchlightPluginForAllNamespacesGET /apis/monitoring.appscode.com/v1alpha1/searchlightplugins
MonitoringAppscodeComV1alpha1ApipatchNamespacedClusterAlertPATCH /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/clusteralerts/{name}
MonitoringAppscodeComV1alpha1ApipatchNamespacedIncidentPATCH /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/incidents/{name}
MonitoringAppscodeComV1alpha1ApipatchNamespacedNodeAlertPATCH /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/nodealerts/{name}
MonitoringAppscodeComV1alpha1ApipatchNamespacedPodAlertPATCH /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/podalerts/{name}
MonitoringAppscodeComV1alpha1ApipatchNamespacedSearchlightPluginPATCH /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/searchlightplugins/{name}
MonitoringAppscodeComV1alpha1ApireadNamespacedClusterAlertGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/clusteralerts/{name}
MonitoringAppscodeComV1alpha1ApireadNamespacedIncidentGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/incidents/{name}
MonitoringAppscodeComV1alpha1ApireadNamespacedNodeAlertGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/nodealerts/{name}
MonitoringAppscodeComV1alpha1ApireadNamespacedPodAlertGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/podalerts/{name}
MonitoringAppscodeComV1alpha1ApireadNamespacedSearchlightPluginGET /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/searchlightplugins/{name}
MonitoringAppscodeComV1alpha1ApireplaceNamespacedClusterAlertPUT /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/clusteralerts/{name}
MonitoringAppscodeComV1alpha1ApireplaceNamespacedIncidentPUT /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/incidents/{name}
MonitoringAppscodeComV1alpha1ApireplaceNamespacedNodeAlertPUT /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/nodealerts/{name}
MonitoringAppscodeComV1alpha1ApireplaceNamespacedPodAlertPUT /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/podalerts/{name}
MonitoringAppscodeComV1alpha1ApireplaceNamespacedSearchlightPluginPUT /apis/monitoring.appscode.com/v1alpha1/namespaces/{namespace}/searchlightplugins/{name}

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

hello@appscode.com