Class AffinityGroupVmLabelsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.AffinityGroupVmLabelsServiceImpl
-
- All Implemented Interfaces:
Service
,AffinityGroupVmLabelsService
public class AffinityGroupVmLabelsServiceImpl extends ServiceImpl implements AffinityGroupVmLabelsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.AffinityGroupVmLabelsService
AffinityGroupVmLabelsService.AddRequest, AffinityGroupVmLabelsService.AddResponse, AffinityGroupVmLabelsService.ListRequest, AffinityGroupVmLabelsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description AffinityGroupVmLabelsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AffinityGroupVmLabelsService.AddRequest
add()
Adds a virtual machine label to the affinity group.AffinityGroupVmLabelService
labelService(String id)
Access the service that manages the virtual machine label assignment to this affinity group.AffinityGroupVmLabelsService.ListRequest
list()
List all virtual machine labels assigned to this affinity group.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
-
AffinityGroupVmLabelsServiceImpl
public AffinityGroupVmLabelsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public AffinityGroupVmLabelsService.AddRequest add()
Description copied from interface:AffinityGroupVmLabelsService
Adds a virtual machine label to the affinity group. For example, to add the label `789` to the affinity group `456` of cluster `123`, send a request like this: .... POST /ovirt-engine/api/clusters/123/affinitygroups/456/vmlabels .... With the following body: [source,xml] -------- - Specified by:
add
in interfaceAffinityGroupVmLabelsService
-
list
public AffinityGroupVmLabelsService.ListRequest list()
Description copied from interface:AffinityGroupVmLabelsService
List all virtual machine labels assigned to this affinity group. The order of the returned labels isn't guaranteed.- Specified by:
list
in interfaceAffinityGroupVmLabelsService
-
labelService
public AffinityGroupVmLabelService labelService(String id)
Description copied from interface:AffinityGroupVmLabelsService
Access the service that manages the virtual machine label assignment to this affinity group.- Specified by:
labelService
in interfaceAffinityGroupVmLabelsService
-
service
public Service service(String path)
Description copied from interface:AffinityGroupVmLabelsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceAffinityGroupVmLabelsService
-
-