Class ImageServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.ImageServiceImpl
-
- All Implemented Interfaces:
Service
,ImageService
public class ImageServiceImpl extends ServiceImpl implements ImageService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.ImageService
ImageService.GetRequest, ImageService.GetResponse, ImageService.ImportRequest, ImageService.ImportResponse
-
-
Constructor Summary
Constructors Constructor Description ImageServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageService.GetRequest
get()
ImageService.ImportRequest
import_()
Imports an image.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
ImageServiceImpl
public ImageServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public ImageService.GetRequest get()
- Specified by:
get
in interfaceImageService
-
import_
public ImageService.ImportRequest import_()
Description copied from interface:ImageService
Imports an image. If the `import_as_template` parameter is `true` then the image will be imported as a template, otherwise it will be imported as a disk. When imported as a template, the name of the template can be specified by the optional `template.name` parameter. If that parameter is not specified, then the name of the template will be automatically assigned by the engine as `GlanceTemplate-x` (where `x` will be seven random hexadecimal characters). When imported as a disk, the name of the disk can be specified by the optional `disk.name` parameter. If that parameter is not specified, then the name of the disk will be automatically assigned by the engine as `GlanceDisk-x` (where `x` will be the seven hexadecimal characters of the image identifier). It is recommended to always explicitly specify the template or disk name, to avoid these automatic names generated by the engine.- Specified by:
import_
in interfaceImageService
-
service
public Service service(String path)
Description copied from interface:ImageService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceImageService
-
-