Class VmNicsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.VmNicsServiceImpl
-
- All Implemented Interfaces:
Service
,VmNicsService
public class VmNicsServiceImpl extends ServiceImpl implements VmNicsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.VmNicsService
VmNicsService.AddRequest, VmNicsService.AddResponse, VmNicsService.ListRequest, VmNicsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description VmNicsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmNicsService.AddRequest
add()
Adds a NIC to the virtual machine.VmNicsService.ListRequest
list()
Returns the list of NICs of the virtual machine.VmNicService
nicService(String id)
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
-
VmNicsServiceImpl
public VmNicsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public VmNicsService.AddRequest add()
Description copied from interface:VmNicsService
Adds a NIC to the virtual machine. The following example adds to the virtual machine `123` a network interface named `mynic` using `virtio` and the NIC profile `456`. [source] ---- POST /ovirt-engine/api/vms/123/nics ---- [source,xml] ----mynic virtio mynic virtio - Specified by:
add
in interfaceVmNicsService
-
list
public VmNicsService.ListRequest list()
Description copied from interface:VmNicsService
Returns the list of NICs of the virtual machine. The order of the returned list of NICs isn't guaranteed.- Specified by:
list
in interfaceVmNicsService
-
nicService
public VmNicService nicService(String id)
- Specified by:
nicService
in interfaceVmNicsService
-
service
public Service service(String path)
Description copied from interface:VmNicsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceVmNicsService
-
-