Class VmPoolServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.VmPoolServiceImpl
-
- All Implemented Interfaces:
Service
,VmPoolService
public class VmPoolServiceImpl extends ServiceImpl implements VmPoolService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.VmPoolService
VmPoolService.AllocateVmRequest, VmPoolService.AllocateVmResponse, VmPoolService.GetRequest, VmPoolService.GetResponse, VmPoolService.RemoveRequest, VmPoolService.RemoveResponse, VmPoolService.UpdateRequest, VmPoolService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description VmPoolServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmPoolService.AllocateVmRequest
allocateVm()
This operation allocates a virtual machine in the virtual machine pool.VmPoolService.GetRequest
get()
Get the virtual machine pool.AssignedPermissionsService
permissionsService()
Reference to a service managing the virtual machine pool assigned permissions.VmPoolService.RemoveRequest
remove()
Removes a virtual machine pool.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
VmPoolService.UpdateRequest
update()
Update the virtual machine pool.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
VmPoolServiceImpl
public VmPoolServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
allocateVm
public VmPoolService.AllocateVmRequest allocateVm()
Description copied from interface:VmPoolService
This operation allocates a virtual machine in the virtual machine pool. [source] ---- POST /ovirt-engine/api/vmpools/123/allocatevm ---- The allocate virtual machine action does not take any action specific parameters, so the request body should contain an empty `action`: [source,xml] -------- - Specified by:
allocateVm
in interfaceVmPoolService
-
get
public VmPoolService.GetRequest get()
Description copied from interface:VmPoolService
Get the virtual machine pool. [source] ---- GET /ovirt-engine/api/vmpools/123 ---- You will get a XML response like that one: [source,xml] ----... MyVmPool MyVmPool description 1 0 100 false automatic false ... ...- Specified by:
get
in interfaceVmPoolService
-
remove
public VmPoolService.RemoveRequest remove()
Description copied from interface:VmPoolService
Removes a virtual machine pool. [source] ---- DELETE /ovirt-engine/api/vmpools/123 ----- Specified by:
remove
in interfaceVmPoolService
-
update
public VmPoolService.UpdateRequest update()
Description copied from interface:VmPoolService
Update the virtual machine pool. [source] ---- PUT /ovirt-engine/api/vmpools/123 ---- The `name`, `description`, `size`, `prestarted_vms` and `max_user_vms` attributes can be updated after the virtual machine pool has been created. [source,xml] ----VM_Pool_B Virtual Machine Pool B 3 1 2 - Specified by:
update
in interfaceVmPoolService
-
permissionsService
public AssignedPermissionsService permissionsService()
Description copied from interface:VmPoolService
Reference to a service managing the virtual machine pool assigned permissions.- Specified by:
permissionsService
in interfaceVmPoolService
-
service
public Service service(String path)
Description copied from interface:VmPoolService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceVmPoolService
-
-