Search in sources :

Example 1 with ApiClient

use of com.linbit.linstor.api.ApiClient in project cloudstack by apache.

the class LinstorStorageAdaptor method getLinstorAPI.

private DevelopersApi getLinstorAPI(KVMStoragePool pool) {
    ApiClient client = Configuration.getDefaultApiClient();
    client.setBasePath(pool.getSourceHost());
    return new DevelopersApi(client);
}
Also used : DevelopersApi(com.linbit.linstor.api.DevelopersApi) ApiClient(com.linbit.linstor.api.ApiClient)

Example 2 with ApiClient

use of com.linbit.linstor.api.ApiClient in project cloudstack by apache.

the class LinstorUtil method getLinstorAPI.

public static DevelopersApi getLinstorAPI(String linstorUrl) {
    ApiClient client = Configuration.getDefaultApiClient();
    client.setBasePath(linstorUrl);
    return new DevelopersApi(client);
}
Also used : DevelopersApi(com.linbit.linstor.api.DevelopersApi) ApiClient(com.linbit.linstor.api.ApiClient)

Aggregations

ApiClient (com.linbit.linstor.api.ApiClient)2 DevelopersApi (com.linbit.linstor.api.DevelopersApi)2