Class VmHostDevicesServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.VmHostDevicesServiceImpl
-
- All Implemented Interfaces:
Service
,VmHostDevicesService
public class VmHostDevicesServiceImpl extends ServiceImpl implements VmHostDevicesService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.VmHostDevicesService
VmHostDevicesService.AddRequest, VmHostDevicesService.AddResponse, VmHostDevicesService.ListRequest, VmHostDevicesService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description VmHostDevicesServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmHostDevicesService.AddRequest
add()
Attach target device to given virtual machine.VmHostDeviceService
deviceService(String id)
Returns a reference to the service that manages a specific host device attached to given virtual machine.VmHostDevicesService.ListRequest
list()
List the host devices assigned to given virtual machine.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
-
VmHostDevicesServiceImpl
public VmHostDevicesServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public VmHostDevicesService.AddRequest add()
Description copied from interface:VmHostDevicesService
Attach target device to given virtual machine. Example: [source] ---- POST /ovirt-engine/api/vms/123/hostdevices ---- With request body of type <>, for example [source,xml] ---- ---- NOTE: A necessary precondition for a successful host device attachment is that the virtual machine must be pinned to *exactly* one host. The device ID is then taken relative to this host. NOTE: Attachment of a PCI device that is part of a bigger IOMMU group will result in attachment of the remaining devices from that IOMMU group as "placeholders". These devices are then identified using the `placeholder` attribute of the < > type set to `true`. In case you want attach a device that already serves as an IOMMU placeholder, simply issue an explicit Add operation for it, and its `placeholder` flag will be cleared, and the device will be accessible to the virtual machine. - Specified by:
add
in interfaceVmHostDevicesService
-
list
public VmHostDevicesService.ListRequest list()
Description copied from interface:VmHostDevicesService
List the host devices assigned to given virtual machine. The order of the returned list of devices isn't guaranteed.- Specified by:
list
in interfaceVmHostDevicesService
-
deviceService
public VmHostDeviceService deviceService(String id)
Description copied from interface:VmHostDevicesService
Returns a reference to the service that manages a specific host device attached to given virtual machine.- Specified by:
deviceService
in interfaceVmHostDevicesService
-
service
public Service service(String path)
Description copied from interface:VmHostDevicesService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceVmHostDevicesService
-
-