Search in sources :

Example 1 with StorageDomainLease

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

the class StorageDomainLeaseMapper method map.

public static StorageDomainLease map(Guid storageDomainId) {
    if (storageDomainId != null) {
        StorageDomain storageDomain = new StorageDomain();
        storageDomain.setId(storageDomainId.toString());
        StorageDomainLease lease = new StorageDomainLease();
        lease.setStorageDomain(storageDomain);
        return lease;
    }
    return null;
}
Also used : StorageDomain(org.ovirt.engine.api.model.StorageDomain) StorageDomainLease(org.ovirt.engine.api.model.StorageDomainLease)

Aggregations

StorageDomain (org.ovirt.engine.api.model.StorageDomain)1 StorageDomainLease (org.ovirt.engine.api.model.StorageDomainLease)1