public class AffinityLabelsServiceImpl extends ServiceImpl implements AffinityLabelsService
AffinityLabelsService.AddRequest, AffinityLabelsService.AddResponse, AffinityLabelsService.ListRequest, AffinityLabelsService.ListResponse
Constructor and Description |
---|
AffinityLabelsServiceImpl(HttpConnection connection,
String path) |
Modifier and Type | Method and Description |
---|---|
AffinityLabelsService.AddRequest |
add()
Creates a new label.
|
AffinityLabelService |
labelService(String id)
Link to a single label details.
|
AffinityLabelsService.ListRequest |
list()
Lists all labels present in the system.
|
Service |
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
|
String |
toString() |
checkAction, checkFault, getConnection, getPath, throwError
public AffinityLabelsServiceImpl(HttpConnection connection, String path)
public AffinityLabelsService.AddRequest add()
AffinityLabelsService
Creates a new label. The label is automatically attached to all entities mentioned in the vms or hosts lists.
add
in interface AffinityLabelsService
public AffinityLabelsService.ListRequest list()
AffinityLabelsService
Lists all labels present in the system.
list
in interface AffinityLabelsService
public AffinityLabelService labelService(String id)
AffinityLabelsService
Link to a single label details.
labelService
in interface AffinityLabelsService
public Service service(String path)
AffinityLabelsService
Service locator method, returns individual service on which the URI is dispatched.
service
in interface AffinityLabelsService
Copyright © 2016. All rights reserved.