package org.openstack.api.compute.ext;


import java.util.HashMap;

import javax.ws.rs.client.Target;
import javax.ws.rs.core.MediaType;

import org.openstack.api.common.Resource;
import org.openstack.model.compute.NovaSecurityGroup;
import org.openstack.model.compute.NovaServer;

public class SecurityGroupResource extends Resource  {
	
	public SecurityGroupResource(Target target) {
		super(target);
	}

	public NovaSecurityGroup get() {
		return get(new HashMap<String, Object>());
	}

	public NovaSecurityGroup get(HashMap<String, Object> properties) {
		return target.request(MediaType.APPLICATION_JSON).get(NovaSecurityGroup.class);
	}

	public void delete(HashMap<String, Object> properties) {
		target.request().delete();
	}

	
}
