All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.woorea.openstack.nova.Nova Maven / Gradle / Ivy

package com.woorea.openstack.nova;


import com.woorea.openstack.base.client.OpenStackClient;
import com.woorea.openstack.base.client.OpenStackClientConnector;
import com.woorea.openstack.nova.api.ExtensionsResource;
import com.woorea.openstack.nova.api.FlavorsResource;
import com.woorea.openstack.nova.api.ImagesResource;
import com.woorea.openstack.nova.api.QuotaSetsResource;
import com.woorea.openstack.nova.api.ServersResource;
import com.woorea.openstack.nova.api.ServicesResource;
import com.woorea.openstack.nova.api.HypervisorsResource;
import com.woorea.openstack.nova.api.extensions.AggregatesExtension;
import com.woorea.openstack.nova.api.extensions.FloatingIpsExtension;
import com.woorea.openstack.nova.api.extensions.KeyPairsExtension;
import com.woorea.openstack.nova.api.extensions.SecurityGroupsExtension;
import com.woorea.openstack.nova.api.extensions.SnapshotsExtension;
import com.woorea.openstack.nova.api.extensions.VolumesExtension;
import com.woorea.openstack.nova.api.extensions.HostsExtension;

public class Nova extends OpenStackClient {
	
	private final ExtensionsResource EXTENSIONS;
	
	private final ServersResource SERVERS;
	
	private final ImagesResource IMAGES;
	
	private final FlavorsResource FLAVORS;
	
	private final KeyPairsExtension KEY_PAIRS;
	
	private final FloatingIpsExtension FLOATING_IPS;
	
	private final SecurityGroupsExtension SECURITY_GROUPS;
	
	private final SnapshotsExtension SNAPSHOTS;
	
	private final VolumesExtension VOLUMES;
	
	private final AggregatesExtension AGGREGATES;

	private final QuotaSetsResource QUOTA_SETS;
	
	private final HostsExtension HOSTS;

	private final ServicesResource SERVICES;
	
	private final HypervisorsResource HYPERVISORS;
	
	public Nova(String endpoint, OpenStackClientConnector connector) {
		super(endpoint, connector);
		EXTENSIONS = new ExtensionsResource(this);
		SERVERS = new ServersResource(this);
		IMAGES = new ImagesResource(this);
		FLAVORS = new FlavorsResource(this);
		KEY_PAIRS = new KeyPairsExtension(this);
		FLOATING_IPS = new FloatingIpsExtension(this);
		SECURITY_GROUPS = new SecurityGroupsExtension(this);
		SNAPSHOTS = new SnapshotsExtension(this);
		VOLUMES = new VolumesExtension(this);
		AGGREGATES = new AggregatesExtension(this);
		QUOTA_SETS = new QuotaSetsResource(this);
		HOSTS = new HostsExtension(this);
		SERVICES = new ServicesResource(this);
		HYPERVISORS = new HypervisorsResource(this);
	}
	
	public Nova(String endpoint) {
		this(endpoint, null);
	}
	
	public ExtensionsResource extensions() {
		return EXTENSIONS;
	}
	
	public ServersResource servers() {
		return SERVERS;
	}
	
	public ImagesResource images() {
		return IMAGES;
	}
	
	public FlavorsResource flavors() {
		return FLAVORS;
	}
	
	public KeyPairsExtension keyPairs() {
		return KEY_PAIRS;
	}
	
	public FloatingIpsExtension floatingIps() {
		return FLOATING_IPS;
	}
	
	public SecurityGroupsExtension securityGroups() {
		return SECURITY_GROUPS;
	}
	
	public SnapshotsExtension snapshots() {
		return SNAPSHOTS;
	}
	
	public VolumesExtension volumes() {
		return VOLUMES;
	}

	public AggregatesExtension aggregates() {
		return AGGREGATES;
	}

	public QuotaSetsResource quotaSets() {
		return QUOTA_SETS;
	}

	public HostsExtension hosts() {
		return HOSTS;
	}

	public ServicesResource services() {
		return SERVICES;
	}
	
	public HypervisorsResource hypervisors() {
		return HYPERVISORS;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy