Class SaharaImageServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.sahara.internal.BaseSaharaServices
-
- org.openstack4j.openstack.sahara.internal.SaharaImageServiceImpl
-
- All Implemented Interfaces:
SaharaImageService,RestService
public class SaharaImageServiceImpl extends BaseSaharaServices implements SaharaImageService
Sahara Data Processing Operations- Author:
- ekasit.kijsipongse@nectec.or.th
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSaharaImageServiceImpl.RegisterImageRequestclassSaharaImageServiceImpl.UpdateTagsRequest-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description SaharaImageServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Imageget(String imageId)Get an image by IDList<? extends Image>list()List all imagesList<? extends Image>list(String... tags)List images with specified tag(s)Imageregister(String imageId, String username, String description)Register a new image into Sahara image registryImagetag(String imageId, String... tags)Add Tag(s) to imageActionResponseunregister(String imageId)Unregister the specified image from Sahara image registryImageuntag(String imageId, String... tags)Remove Tag(s) from image-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends Image> list()
List all images- Specified by:
listin interfaceSaharaImageService- Returns:
- list of images or empty
-
list
public List<? extends Image> list(String... tags)
List images with specified tag(s)- Specified by:
listin interfaceSaharaImageService- Parameters:
tags- one or more tags- Returns:
- list of images or empty
-
get
public Image get(String imageId)
Get an image by ID- Specified by:
getin interfaceSaharaImageService- Parameters:
imageId- the image identifier- Returns:
- the image or null if not found
-
register
public Image register(String imageId, String username, String description)
Register a new image into Sahara image registry- Specified by:
registerin interfaceSaharaImageService- Parameters:
imageId- the image to registerusername- the usernamedescription- the description- Returns:
- the registered image
-
unregister
public ActionResponse unregister(String imageId)
Unregister the specified image from Sahara image registry- Specified by:
unregisterin interfaceSaharaImageService- Parameters:
imageId- the image identifier- Returns:
- the action response
-
tag
public Image tag(String imageId, String... tags)
Add Tag(s) to image- Specified by:
tagin interfaceSaharaImageServicetags- one or more tags to add- Returns:
- the image
-
untag
public Image untag(String imageId, String... tags)
Remove Tag(s) from image- Specified by:
untagin interfaceSaharaImageServicetags- one or more tags to remove- Returns:
- the image
-
-