use of org.ovirt.engine.core.common.action.ProviderParameters in project ovirt-engine by oVirt.
the class ProviderModel method testProviderConnectivity.
private void testProviderConnectivity() {
Frontend.getInstance().runAction(ActionType.TestProviderConnectivity, new ProviderParameters(provider), result -> {
ActionReturnValue res = result.getReturnValue();
// If the connection failed on SSL issues, we try to fetch the provider
// certificate chain, and import it to the engine
stopProgress();
setTestResultValue(res);
}, null, false);
}
use of org.ovirt.engine.core.common.action.ProviderParameters in project ovirt-engine by oVirt.
the class AbstractBackendExternalProviderResource method testConnectivity.
@Override
public Response testConnectivity(Action action) {
Provider provider = BackendExternalProviderHelper.getProvider(this, id);
ProviderParameters parameters = new ProviderParameters(provider);
return performAction(ActionType.TestProviderConnectivity, parameters);
}
use of org.ovirt.engine.core.common.action.ProviderParameters in project ovirt-engine by oVirt.
the class BackendOpenStackImageProviderResource method remove.
@Override
public Response remove() {
Provider provider = BackendExternalProviderHelper.getProvider(this, id);
ProviderParameters parameters = new ProviderParameters(provider);
return performAction(ActionType.RemoveProvider, parameters);
}
use of org.ovirt.engine.core.common.action.ProviderParameters in project ovirt-engine by oVirt.
the class BackendOpenStackVolumeProvidersResource method add.
@Override
public Response add(OpenStackVolumeProvider provider) {
validateParameters(provider, "name");
if (provider.isSetDataCenter()) {
StoragePool storagePool = getStoragePool(provider.getDataCenter());
provider.setDataCenter(DataCenterMapper.map(storagePool, null));
}
return performCreate(ActionType.AddProvider, new ProviderParameters(map(provider)), new QueryIdResolver<Guid>(QueryType.GetProviderById, IdQueryParameters.class));
}
use of org.ovirt.engine.core.common.action.ProviderParameters in project ovirt-engine by oVirt.
the class BackendOpenStackNetworkProviderResource method remove.
@Override
public Response remove() {
Provider provider = BackendExternalProviderHelper.getProvider(this, id);
ProviderParameters parameters = new ProviderParameters(provider);
return performAction(ActionType.RemoveProvider, parameters);
}
Aggregations