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;
import com.woorea.openstack.nova.api.extensions.ServerGroupsExtension;

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 ServerGroupsExtension SERVER_GROUPS;
	
	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);
		SERVER_GROUPS = new ServerGroupsExtension(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 ServerGroupsExtension serverGroups() {
		return SERVER_GROUPS;
	}
	
	public ServicesResource services() {
		return SERVICES;
	}
	
	public HypervisorsResource hypervisors() {
		return HYPERVISORS;
	}
	
}

@@ -1020,79 +1020,8 @@
 ion;
-%0Aimport com.woorea.openstack.nova.api.extensions.ServerGroupsExtension;
 %0A%0Apu
@@ -1619,62 +1619,8 @@
 S;%0A%0A
-%09private final ServerGroupsExtension SERVER_GROUPS;%0A%09%0A
 %09pri
@@ -3305,84 +3305,8 @@
 %09%7D%0A%0A
-%09public ServerGroupsExtension serverGroups() %7B%0A%09%09return SERVER_GROUPS;%0A%09%7D%0A%09%0A
 %09pub

Remove the server group part in Nova.java