Class VmDiskServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.MeasurableServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.VmDiskServiceImpl
-
- All Implemented Interfaces:
Service
,MeasurableService
,VmDiskService
public class VmDiskServiceImpl extends MeasurableServiceImpl implements VmDiskService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.VmDiskService
VmDiskService.ActivateRequest, VmDiskService.ActivateResponse, VmDiskService.DeactivateRequest, VmDiskService.DeactivateResponse, VmDiskService.ExportRequest, VmDiskService.ExportResponse, VmDiskService.GetRequest, VmDiskService.GetResponse, VmDiskService.MoveRequest, VmDiskService.MoveResponse, VmDiskService.ReduceRequest, VmDiskService.ReduceResponse, VmDiskService.RemoveRequest, VmDiskService.RemoveResponse, VmDiskService.UpdateRequest, VmDiskService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description VmDiskServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmDiskService.ActivateRequest
activate()
VmDiskService.DeactivateRequest
deactivate()
VmDiskService.ExportRequest
export()
VmDiskService.GetRequest
get()
VmDiskService.MoveRequest
move()
AssignedPermissionsService
permissionsService()
VmDiskService.ReduceRequest
reduce()
Reduces the size of the disk image.VmDiskService.RemoveRequest
remove()
Detach the disk from the virtual machine.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.StatisticsService
statisticsService()
String
toString()
VmDiskService.UpdateRequest
update()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
VmDiskServiceImpl
public VmDiskServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
activate
public VmDiskService.ActivateRequest activate()
- Specified by:
activate
in interfaceVmDiskService
-
deactivate
public VmDiskService.DeactivateRequest deactivate()
- Specified by:
deactivate
in interfaceVmDiskService
-
export
public VmDiskService.ExportRequest export()
- Specified by:
export
in interfaceVmDiskService
-
get
public VmDiskService.GetRequest get()
- Specified by:
get
in interfaceVmDiskService
-
move
public VmDiskService.MoveRequest move()
- Specified by:
move
in interfaceVmDiskService
-
reduce
public VmDiskService.ReduceRequest reduce()
Description copied from interface:VmDiskService
Reduces the size of the disk image. Invokes _reduce_ on the logical volume (i.e. this is only applicable for block storage domains). This is applicable for floating disks and disks attached to non-running virtual machines. There is no need to specify the size as the optimal size is calculated automatically.- Specified by:
reduce
in interfaceVmDiskService
-
remove
public VmDiskService.RemoveRequest remove()
Description copied from interface:VmDiskService
Detach the disk from the virtual machine. NOTE: In version 3 of the API this used to also remove the disk completely from the system, but starting with version 4 it doesn't. If you need to remove it completely use the <>. - Specified by:
remove
in interfaceVmDiskService
-
update
public VmDiskService.UpdateRequest update()
- Specified by:
update
in interfaceVmDiskService
-
permissionsService
public AssignedPermissionsService permissionsService()
- Specified by:
permissionsService
in interfaceVmDiskService
-
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 interfaceVmDiskService
- Overrides:
service
in classMeasurableServiceImpl
-
toString
public String toString()
- Overrides:
toString
in classMeasurableServiceImpl
-
-