public class ComputeImageServiceImpl extends BaseComputeServices implements ComputeImageService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
ComputeImageServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ActionResponse |
delete(String imageId)
Deletes an Image based on it's identifiers.
|
ActionResponse |
deleteMetaData(String imageId,
String... keys)
Delete a metadata item from an image
|
Image |
get(String imageId)
Finds an Image by the given
imageId . |
Map<String,String> |
getMetaData(String imageId)
Gets the metadata for an image
|
List<? extends Image> |
list()
Lists Images on an OpenStack Compute EndPoint.
|
List<? extends Image> |
list(boolean detailed)
Lists Images on an OpenStack Compute EndPoint.
|
Map<String,String> |
setMetaData(String imageId,
Map<String,String> metadata)
Sets the metadata for an image
|
invokeAction, invokeActionWithResponse
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Image> list()
ComputeImageService.list(boolean)
with {code}true{code}list
in interface ComputeImageService
public List<? extends Image> list(boolean detailed)
detailed
is false then only Image.getId()
, Image.getName()
andlist
in interface ComputeImageService
detailed
- true to populate all properties within each Image, false to include Id, Name and Links only (all other properties will be null)Image.getLinks()
will be populated. True will populate all fieldspublic Image get(String imageId)
imageId
.get
in interface ComputeImageService
imageId
- the image identifierpublic ActionResponse delete(String imageId)
delete
in interface ComputeImageService
imageId
- the image identifierpublic Map<String,String> setMetaData(String imageId, Map<String,String> metadata)
setMetaData
in interface ComputeImageService
imageId
- the image identifiermetadata
- a Map containing the metadatapublic ActionResponse deleteMetaData(String imageId, String... keys)
deleteMetaData
in interface ComputeImageService
imageId
- the image identifierkeys
- one or more keys/metadata names to removepublic Map<String,String> getMetaData(String imageId)
getMetaData
in interface ComputeImageService
imageId
- the image identifierCopyright © 2017. All rights reserved.