Search in sources :

Example 6 with OpenStackImageProvider

use of org.ovirt.engine.api.model.OpenStackImageProvider in project ovirt-engine by oVirt.

the class BackendOpenStackImagesResource method addParents.

@Override
protected OpenStackImage addParents(OpenStackImage image) {
    OpenStackImageProvider provider = new OpenStackImageProvider();
    provider.setId(providerId);
    image.setOpenstackImageProvider(provider);
    return super.addParents(image);
}
Also used : OpenStackImageProvider(org.ovirt.engine.api.model.OpenStackImageProvider)

Aggregations

OpenStackImageProvider (org.ovirt.engine.api.model.OpenStackImageProvider)6 Properties (org.ovirt.engine.api.model.Properties)2 HashMap (java.util.HashMap)1 Map (java.util.Map)1 WebApplicationException (javax.ws.rs.WebApplicationException)1 Test (org.junit.Test)1 Property (org.ovirt.engine.api.model.Property)1 AbstractBackendSubResourceTest (org.ovirt.engine.api.restapi.resource.AbstractBackendSubResourceTest)1 Mapping (org.ovirt.engine.api.restapi.types.Mapping)1 V3OpenStackImageProvider (org.ovirt.engine.api.v3.types.V3OpenStackImageProvider)1 OpenStackImageProviderProperties (org.ovirt.engine.core.common.businessentities.OpenStackImageProviderProperties)1