Class DiskAttachmentServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.DiskAttachmentServiceImpl
-
- All Implemented Interfaces:
Service
,DiskAttachmentService
public class DiskAttachmentServiceImpl extends ServiceImpl implements DiskAttachmentService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.DiskAttachmentService
DiskAttachmentService.GetRequest, DiskAttachmentService.GetResponse, DiskAttachmentService.RemoveRequest, DiskAttachmentService.RemoveResponse, DiskAttachmentService.UpdateRequest, DiskAttachmentService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description DiskAttachmentServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskAttachmentService.GetRequest
get()
Returns the details of the attachment, including the bootable flag and link to the disk.DiskAttachmentService.RemoveRequest
remove()
Removes the disk attachment.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
DiskAttachmentService.UpdateRequest
update()
Update the disk attachment and the disk properties within it.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
DiskAttachmentServiceImpl
public DiskAttachmentServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public DiskAttachmentService.GetRequest get()
Description copied from interface:DiskAttachmentService
Returns the details of the attachment, including the bootable flag and link to the disk. An example of getting a disk attachment: [source] ---- GET /ovirt-engine/api/vms/123/diskattachments/456 ---- [source,xml] ----true true virtio - Specified by:
get
in interfaceDiskAttachmentService
-
remove
public DiskAttachmentService.RemoveRequest remove()
Description copied from interface:DiskAttachmentService
Removes the disk attachment. This will only detach the disk from the virtual machine, but won't remove it from the system, unless the `detach_only` parameter is `false`. An example of removing a disk attachment: [source] ---- DELETE /ovirt-engine/api/vms/123/diskattachments/456?detach_only=true ----- Specified by:
remove
in interfaceDiskAttachmentService
-
update
public DiskAttachmentService.UpdateRequest update()
Description copied from interface:DiskAttachmentService
Update the disk attachment and the disk properties within it. [source] ---- PUT /vms/{vm:id}/disksattachments/{attachment:id}true ide true mydisk 1024 ...- Specified by:
update
in interfaceDiskAttachmentService
-
service
public Service service(String path)
Description copied from interface:DiskAttachmentService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceDiskAttachmentService
-
-