Search in sources :

Example 11 with V3Properties

use of org.ovirt.engine.api.v3.types.V3Properties in project ovirt-engine by oVirt.

the class V3OpenStackVolumeProviderOutAdapter method adapt.

@Override
public V3OpenStackVolumeProvider adapt(OpenStackVolumeProvider from) {
    V3OpenStackVolumeProvider to = new V3OpenStackVolumeProvider();
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptOut(from.getLinks()));
    }
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetAuthenticationUrl()) {
        to.setAuthenticationUrl(from.getAuthenticationUrl());
    }
    if (from.isSetComment()) {
        to.setComment(from.getComment());
    }
    if (from.isSetDataCenter()) {
        to.setDataCenter(adaptOut(from.getDataCenter()));
    }
    if (from.isSetDescription()) {
        to.setDescription(from.getDescription());
    }
    if (from.isSetId()) {
        to.setId(from.getId());
    }
    if (from.isSetHref()) {
        to.setHref(from.getHref());
    }
    if (from.isSetName()) {
        to.setName(from.getName());
    }
    if (from.isSetPassword()) {
        to.setPassword(from.getPassword());
    }
    if (from.isSetProperties()) {
        to.setProperties(new V3Properties());
        to.getProperties().getProperties().addAll(adaptOut(from.getProperties().getProperties()));
    }
    if (from.isSetRequiresAuthentication()) {
        to.setRequiresAuthentication(from.isRequiresAuthentication());
    }
    if (from.isSetTenantName()) {
        to.setTenantName(from.getTenantName());
    }
    if (from.isSetUrl()) {
        to.setUrl(from.getUrl());
    }
    if (from.isSetUsername()) {
        to.setUsername(from.getUsername());
    }
    return to;
}
Also used : V3OpenStackVolumeProvider(org.ovirt.engine.api.v3.types.V3OpenStackVolumeProvider) V3Properties(org.ovirt.engine.api.v3.types.V3Properties)

Aggregations

V3Properties (org.ovirt.engine.api.v3.types.V3Properties)11 V3ExternalHostProvider (org.ovirt.engine.api.v3.types.V3ExternalHostProvider)1 V3ExternalProvider (org.ovirt.engine.api.v3.types.V3ExternalProvider)1 V3HostNIC (org.ovirt.engine.api.v3.types.V3HostNIC)1 V3IpAddressAssignments (org.ovirt.engine.api.v3.types.V3IpAddressAssignments)1 V3Labels (org.ovirt.engine.api.v3.types.V3Labels)1 V3NetworkAttachment (org.ovirt.engine.api.v3.types.V3NetworkAttachment)1 V3OpenStackImageProvider (org.ovirt.engine.api.v3.types.V3OpenStackImageProvider)1 V3OpenStackNetworkProvider (org.ovirt.engine.api.v3.types.V3OpenStackNetworkProvider)1 V3OpenStackProvider (org.ovirt.engine.api.v3.types.V3OpenStackProvider)1 V3OpenStackVolumeProvider (org.ovirt.engine.api.v3.types.V3OpenStackVolumeProvider)1 V3OpenStackVolumeType (org.ovirt.engine.api.v3.types.V3OpenStackVolumeType)1 V3ReportedConfigurations (org.ovirt.engine.api.v3.types.V3ReportedConfigurations)1 V3SchedulingPolicy (org.ovirt.engine.api.v3.types.V3SchedulingPolicy)1 V3SchedulingPolicyUnit (org.ovirt.engine.api.v3.types.V3SchedulingPolicyUnit)1 V3Statistics (org.ovirt.engine.api.v3.types.V3Statistics)1 V3Status (org.ovirt.engine.api.v3.types.V3Status)1