Class VmNicServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.MeasurableServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.VmNicServiceImpl
-
- All Implemented Interfaces:
Service
,MeasurableService
,VmNicService
public class VmNicServiceImpl extends MeasurableServiceImpl implements VmNicService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.VmNicService
VmNicService.ActivateRequest, VmNicService.ActivateResponse, VmNicService.DeactivateRequest, VmNicService.DeactivateResponse, VmNicService.GetRequest, VmNicService.GetResponse, VmNicService.RemoveRequest, VmNicService.RemoveResponse, VmNicService.UpdateRequest, VmNicService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description VmNicServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmNicService.ActivateRequest
activate()
VmNicService.DeactivateRequest
deactivate()
VmNicService.GetRequest
get()
NicNetworkFilterParametersService
networkFilterParametersService()
Reference to the service that manages the network filter parameters of the NIC.VmNicService.RemoveRequest
remove()
Removes the NIC.VmReportedDevicesService
reportedDevicesService()
Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.StatisticsService
statisticsService()
String
toString()
VmNicService.UpdateRequest
update()
Updates the NIC.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
VmNicServiceImpl
public VmNicServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
activate
public VmNicService.ActivateRequest activate()
- Specified by:
activate
in interfaceVmNicService
-
deactivate
public VmNicService.DeactivateRequest deactivate()
- Specified by:
deactivate
in interfaceVmNicService
-
get
public VmNicService.GetRequest get()
- Specified by:
get
in interfaceVmNicService
-
remove
public VmNicService.RemoveRequest remove()
Description copied from interface:VmNicService
Removes the NIC. For example, to remove the NIC with id `456` from the virtual machine with id `123` send a request like this: [source] ---- DELETE /ovirt-engine/api/vms/123/nics/456 ---- [IMPORTANT] ==== The hotplugging feature only supports virtual machine operating systems with hotplugging operations. Example operating systems include: - Red Hat Enterprise Linux 6 - Red Hat Enterprise Linux 5 - Windows Server 2008 and - Windows Server 2003 ====- Specified by:
remove
in interfaceVmNicService
-
update
public VmNicService.UpdateRequest update()
Description copied from interface:VmNicService
Updates the NIC. For example, to update the NIC having with `456` belonging to virtual the machine with id `123` send a request like this: [source] ---- PUT /ovirt-engine/api/vms/123/nics/456 ---- With a request body like this: [source,xml] ----mynic e1000 - Specified by:
update
in interfaceVmNicService
-
networkFilterParametersService
public NicNetworkFilterParametersService networkFilterParametersService()
Description copied from interface:VmNicService
Reference to the service that manages the network filter parameters of the NIC. A single top-level network filter may assigned to the NIC by the NIC's <>. - Specified by:
networkFilterParametersService
in interfaceVmNicService
-
reportedDevicesService
public VmReportedDevicesService reportedDevicesService()
- Specified by:
reportedDevicesService
in interfaceVmNicService
-
statisticsService
public StatisticsService statisticsService()
- Specified by:
statisticsService
in interfaceMeasurableService
- Overrides:
statisticsService
in classMeasurableServiceImpl
-
service
public Service service(String path)
Description copied from interface:MeasurableService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceMeasurableService
- Specified by:
service
in interfaceVmNicService
- Overrides:
service
in classMeasurableServiceImpl
-
toString
public String toString()
- Overrides:
toString
in classMeasurableServiceImpl
-
-