Package org.ovirt.engine.sdk4.services
Interface ImageService.ImportRequest
-
- All Superinterfaces:
Request<ImageService.ImportRequest,ImageService.ImportResponse>
- Enclosing interface:
- ImageService
public static interface ImageService.ImportRequest extends Request<ImageService.ImportRequest,ImageService.ImportResponse>
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImageService.ImportRequest
async(Boolean async)
Indicates if the import should be performed asynchronously.ImageService.ImportRequest
cluster(ClusterBuilder cluster)
The cluster to which the image should be imported if the `import_as_template` parameter is set to `true`.ImageService.ImportRequest
cluster(Cluster cluster)
ImageService.ImportRequest
disk(DiskBuilder disk)
The disk to import.ImageService.ImportRequest
disk(Disk disk)
ImageService.ImportRequest
importAsTemplate(Boolean importAsTemplate)
Specifies if a template should be created from the imported disk.ImageService.ImportRequest
storageDomain(StorageDomainBuilder storageDomain)
The storage domain to which the disk should be imported.ImageService.ImportRequest
storageDomain(StorageDomain storageDomain)
ImageService.ImportRequest
template(TemplateBuilder template)
The name of the template being created if the `import_as_template` parameter is set to `true`.ImageService.ImportRequest
template(Template template)
-
-
-
Method Detail
-
async
ImageService.ImportRequest async(Boolean async)
Indicates if the import should be performed asynchronously.
-
cluster
ImageService.ImportRequest cluster(Cluster cluster)
-
cluster
ImageService.ImportRequest cluster(ClusterBuilder cluster)
The cluster to which the image should be imported if the `import_as_template` parameter is set to `true`.
-
disk
ImageService.ImportRequest disk(Disk disk)
-
disk
ImageService.ImportRequest disk(DiskBuilder disk)
The disk to import.
-
importAsTemplate
ImageService.ImportRequest importAsTemplate(Boolean importAsTemplate)
Specifies if a template should be created from the imported disk.
-
storageDomain
ImageService.ImportRequest storageDomain(StorageDomain storageDomain)
-
storageDomain
ImageService.ImportRequest storageDomain(StorageDomainBuilder storageDomain)
The storage domain to which the disk should be imported.
-
template
ImageService.ImportRequest template(Template template)
-
template
ImageService.ImportRequest template(TemplateBuilder template)
The name of the template being created if the `import_as_template` parameter is set to `true`.
-
-