/*******************************************************************************
 * Copyright 2015 InfinitiesSoft Solutions Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License. You may obtain
 * a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 *******************************************************************************/
package com.infinities.nova.resource;

import javax.inject.Singleton;
import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Singleton
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public class ProjectMapperResource {

	@Path("limits")
	public Class<LimitsResource> getLimitsResource() {
		return LimitsResource.class;
	}

	@Path("flavors")
	public Class<FlavorsResource> getFlavorsResource() {
		return FlavorsResource.class;
	}

	@Path("images")
	public Class<ImagesResource> getImagesResource() {
		return ImagesResource.class;
	}

	@Path("servers")
	public Class<ServersResource> getServersResource() {
		return ServersResource.class;
	}

	@Path("os-keypairs")
	public Class<KeyPairsResource> getKeyPairsResource() {
		return KeyPairsResource.class;
	}

	@Path("os-availability-zone")
	public Class<AvailabilityZoneResource> getAvailabilityZoneResource() {
		return AvailabilityZoneResource.class;
	}

	@Path("os-volumes")
	public Class<VolumesResource> getVolumesResource() {
		return VolumesResource.class;
	}

	@Path("os-snapshots")
	public Class<SnapshotsResource> getSnapshotsResource() {
		return SnapshotsResource.class;
	}

	@Path("os-security-groups")
	public Class<SecurityGroupsResource> getSecurityGroupsResource() {
		return SecurityGroupsResource.class;
	}

	@Path("os-security-group-rules")
	public Class<SecurityGroupRulesResource> getSecurityGroupRulesResource() {
		return SecurityGroupRulesResource.class;
	}

	@Path("os-networks")
	public Class<NetworksResource> getNetworksResource() {
		return NetworksResource.class;
	}
}

@@ -952,16 +952,126 @@
 aType;%0A%0A
+import com.infinities.neutron.resource.PortsResource;%0Aimport com.infinities.swift.resource.StoragesResource;%0A%0A
 @Singlet
@@ -2515,10 +2515,587 @@
 ass;%0A%09%7D%0A
+%09%0A%09@Path(%22networks%22)%0A%09public Class%3Ccom.infinities.neutron.resource.NetworksResource%3E getNeutronNetworksResource() %7B%0A%09%09return com.infinities.neutron.resource.NetworksResource.class;%0A%09%7D%0A%09%0A%09@Path(%22subnets%22)%0A%09public Class%3Ccom.infinities.neutron.resource.SubnetsResource%3E getNeutronSubnetsResource() %7B%0A%09%09return com.infinities.neutron.resource.SubnetsResource.class;%0A%09%7D%0A%09%0A%09@Path(%22ports%22)%0A%09public Class%3CPortsResource%3E getNeutronPortsResource() %7B%0A%09%09return PortsResource.class;%0A%09%7D%0A%09%0A%09@Path(%22%22)%0A%09public Class%3CStoragesResource%3E getStoragesResource() %7B%0A%09%09return StoragesResource.class;%0A%09%7D%0A
 %7D%0A

add storage resource map