package org.openstack.glance.api;

import org.openstack.base.client.HttpMethod;
import org.openstack.base.client.OpenStackClient;
import org.openstack.base.client.OpenStackRequest;
import org.openstack.glance.model.Images;

public class SharedImagesResource {

	private final OpenStackClient CLIENT;
	
	public SharedImagesResource(OpenStackClient client) {
		CLIENT = client;
	}
	
	public List list(String tenantId, boolean detail) {
		return new List(tenantId, detail);
	}

	public class List extends OpenStackRequest<Images> {
		
		public List(String tenantId, boolean detail) {
			super(CLIENT, HttpMethod.GET, new StringBuffer(detail ? "/shared-images/detail" : "/shared-images/").append(tenantId).toString(), null, Images.class);
		}

	}
	
}

@@ -215,16 +215,64 @@
 .Images;
+%0Aimport org.openstack.glance.model.SharedImages;
 %0A%0Apublic
@@ -560,16 +560,22 @@
 Request%3C
+Shared
 Images%3E 
@@ -767,16 +767,22 @@
 , null, 
+Shared
 Images.c

return SharedImages in SharedImagesResource