use of org.ovirt.engine.api.model.AuthorizedKeys in project ovirt-engine by oVirt.
the class V3AuthorizedKeysInAdapter method adapt.
@Override
public AuthorizedKeys adapt(V3AuthorizedKeys from) {
AuthorizedKeys to = new AuthorizedKeys();
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getAuthorizedKeys().addAll(adaptIn(from.getAuthorizedKeys()));
return to;
}
use of org.ovirt.engine.api.model.AuthorizedKeys in project ovirt-engine by oVirt.
the class V3CloudInitInAdapter method adapt.
@Override
public CloudInit adapt(V3CloudInit from) {
CloudInit to = new CloudInit();
if (from.isSetAuthorizedKeys()) {
to.setAuthorizedKeys(new AuthorizedKeys());
to.getAuthorizedKeys().getAuthorizedKeys().addAll(adaptIn(from.getAuthorizedKeys().getAuthorizedKeys()));
}
if (from.isSetFiles()) {
to.setFiles(new Files());
to.getFiles().getFiles().addAll(adaptIn(from.getFiles().getFiles()));
}
if (from.isSetHost()) {
to.setHost(adaptIn(from.getHost()));
}
if (from.isSetNetworkConfiguration()) {
to.setNetworkConfiguration(adaptIn(from.getNetworkConfiguration()));
}
if (from.isSetRegenerateSshKeys()) {
to.setRegenerateSshKeys(from.isRegenerateSshKeys());
}
if (from.isSetTimezone()) {
to.setTimezone(from.getTimezone());
}
if (from.isSetUsers()) {
to.setUsers(new Users());
to.getUsers().getUsers().addAll(adaptIn(from.getUsers().getUsers()));
}
return to;
}
Aggregations