blob: 741fe80a2e7c43364b52b081c924b91f9b319b2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package com.woorea.openstack.glance;
import com.woorea.openstack.base.client.HttpMethod;
import com.woorea.openstack.base.client.OpenStackClient;
import com.woorea.openstack.base.client.OpenStackRequest;
import com.woorea.openstack.glance.model.SharedImages;
public class SharedImagesResource {
private final OpenStackClient client;
public SharedImagesResource(OpenStackClient client) {
this.client = client;
}
public List list(String tenantId, boolean detail) {
return new List(tenantId, detail);
}
public class List extends OpenStackRequest<SharedImages> {
public List(String tenantId, boolean detail) {
super(client, HttpMethod.GET,
new StringBuffer(detail ? "/shared-images/detail" : "/shared-images/").append(tenantId).toString(),
null, SharedImages.class);
}
}
}
|