Class VmPoolsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.VmPoolsServiceImpl
-
- All Implemented Interfaces:
Service
,VmPoolsService
public class VmPoolsServiceImpl extends ServiceImpl implements VmPoolsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.VmPoolsService
VmPoolsService.AddRequest, VmPoolsService.AddResponse, VmPoolsService.ListRequest, VmPoolsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description VmPoolsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmPoolsService.AddRequest
add()
Creates a new virtual machine pool.VmPoolsService.ListRequest
list()
Get a list of available virtual machines pools.VmPoolService
poolService(String id)
Reference to the service that manages a specific virtual machine pool.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
-
VmPoolsServiceImpl
public VmPoolsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public VmPoolsService.AddRequest add()
Description copied from interface:VmPoolsService
Creates a new virtual machine pool. A new pool requires the `name`, `cluster` and `template` attributes. Identify the cluster and template with the `id` or `name` nested attributes: [source] ---- POST /ovirt-engine/api/vmpools ---- With the following body: [source,xml] ----mypool - Specified by:
add
in interfaceVmPoolsService
-
list
public VmPoolsService.ListRequest list()
Description copied from interface:VmPoolsService
Get a list of available virtual machines pools. [source] ---- GET /ovirt-engine/api/vmpools ---- You will receive the following response: [source,xml] ----... ...- Specified by:
list
in interfaceVmPoolsService
-
poolService
public VmPoolService poolService(String id)
Description copied from interface:VmPoolsService
Reference to the service that manages a specific virtual machine pool.- Specified by:
poolService
in interfaceVmPoolsService
-
service
public Service service(String path)
Description copied from interface:VmPoolsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceVmPoolsService
-
-