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);
}
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);
}
Aggregations