org.openstack4j.openstack.compute.domain.NovaHost Maven / Gradle / Ivy
package org.openstack4j.openstack.compute.domain;
import java.util.ArrayList;
import java.util.List;
import org.openstack4j.openstack.common.ListResult;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Nova OS Host contains a list of Nova Host Resources
*
* @author Qin An
*/
public class NovaHost extends ListResult {
public static final long serialVersionUID = 1L;
@JsonProperty("host")
List hostItems;
@Override
protected List value() {
List hostResources = new ArrayList();
for (NovaHostResourceBody body : hostItems) {
hostResources.add((NovaHostResource) body.getHostResource());
}
return hostResources;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy