public class ImageServiceImpl extends BaseImageServices implements ImageService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
ImageServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Image |
create(Image image)
Creates a catalog record for an operating system disk image.
|
Member |
createMember(String imageId,
String memberId)
The image must exist, be private, and be owned by the author of the request.
|
ActionResponse |
deactivate(String imageId)
Deactivate an image
If you try to download a deactivated image, you will receive a 403 (Forbidden) response code.
|
ActionResponse |
delete(String imageId)
Deletes an image.
|
ActionResponse |
deleteMember(String imageId,
String memberId)
You must be the owner of the image to delete the member
|
ActionResponse |
deleteTag(String imageId,
String tag)
Delete tag from image.
|
ActionResponse |
download(String imageId,
File filename)
Downloads binary image data
|
Image |
get(String imageId)
Show details for an image by imageid.
|
Member |
getMember(String imageId,
String memberId)
Get details about a member
|
List<? extends Image> |
list()
List all available operating system images
|
List<? extends Image> |
list(Map<String,String> filteringParams)
Returns list of images filtered by parameters.
|
List<? extends Member> |
listMembers(String imageId)
List members of a particular image.
|
List<? extends Member> |
listMembers(String imageId,
Map<String,String> filteringParams)
List members of a particular image.
|
ActionResponse |
reactivate(String imageId)
Reactivate an image
|
TaskService |
tasks() |
Image |
update(Image image)
Update image by providing the changed image object.
|
Image |
update(String imageId,
ImageUpdate imageUpdate)
Update an image by building the string of json operations
that represent the json transformation
instead of the building the whole image
|
Member |
updateMember(String imageId,
String memberId,
Member.MemberStatus memberStatus)
Change status of an image member
For more details see http://specs.openstack.org/openstack/glance-specs/specs/api/v2/sharing-image-api-v2.html
|
ActionResponse |
updateTag(String imageId,
String tag)
Add tag to image.
|
ActionResponse |
upload(String imageId,
Payload<?> payload,
Image image)
Uploads binary image data
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Image> list()
list
in interface ImageService
public List<? extends Image> list(Map<String,String> filteringParams)
list
in interface ImageService
filteringParams
- map (name, value) of filtering parameterspublic Image get(String imageId)
get
in interface ImageService
public Image create(Image image)
create
in interface ImageService
public Image update(Image image)
update
in interface ImageService
public Image update(String imageId, ImageUpdate imageUpdate)
update
in interface ImageService
public ActionResponse delete(String imageId)
delete
in interface ImageService
public ActionResponse deactivate(String imageId)
deactivate
in interface ImageService
public ActionResponse reactivate(String imageId)
reactivate
in interface ImageService
public ActionResponse upload(String imageId, Payload<?> payload, @Nullable Image image)
upload
in interface ImageService
public ActionResponse download(String imageId, File filename)
download
in interface ImageService
public ActionResponse updateTag(String imageId, String tag)
updateTag
in interface ImageService
public ActionResponse deleteTag(String imageId, String tag)
deleteTag
in interface ImageService
public List<? extends Member> listMembers(String imageId)
listMembers
in interface ImageService
public List<? extends Member> listMembers(String imageId, Map<String,String> filteringParams)
listMembers
in interface ImageService
public Member getMember(String imageId, String memberId)
getMember
in interface ImageService
public Member createMember(String imageId, String memberId)
createMember
in interface ImageService
imageId
- the image to sharepublic Member updateMember(String imageId, String memberId, Member.MemberStatus memberStatus)
updateMember
in interface ImageService
public ActionResponse deleteMember(String imageId, String memberId)
deleteMember
in interface ImageService
public TaskService tasks()
tasks
in interface ImageService
Copyright © 2017. All rights reserved.