Class NetworkLabelsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.NetworkLabelsServiceImpl
-
- All Implemented Interfaces:
Service
,NetworkLabelsService
public class NetworkLabelsServiceImpl extends ServiceImpl implements NetworkLabelsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.NetworkLabelsService
NetworkLabelsService.AddRequest, NetworkLabelsService.AddResponse, NetworkLabelsService.ListRequest, NetworkLabelsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description NetworkLabelsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkLabelsService.AddRequest
add()
Attaches label to logical network.NetworkLabelService
labelService(String id)
NetworkLabelsService.ListRequest
list()
Returns the list of labels attached to the network or host NIC.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
-
NetworkLabelsServiceImpl
public NetworkLabelsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public NetworkLabelsService.AddRequest add()
Description copied from interface:NetworkLabelsService
Attaches label to logical network. You can attach labels to a logical network to automate the association of that logical network with physical host network interfaces to which the same label has been attached. For example, to attach the label `mylabel` to a logical network having id `123` send a request like this: [source] ---- POST /ovirt-engine/api/networks/123/networklabels ---- With a request body like this: [source,xml] -------- - Specified by:
add
in interfaceNetworkLabelsService
-
list
public NetworkLabelsService.ListRequest list()
Description copied from interface:NetworkLabelsService
Returns the list of labels attached to the network or host NIC. The order of the returned list of labels isn't guaranteed.- Specified by:
list
in interfaceNetworkLabelsService
-
labelService
public NetworkLabelService labelService(String id)
- Specified by:
labelService
in interfaceNetworkLabelsService
-
service
public Service service(String path)
Description copied from interface:NetworkLabelsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceNetworkLabelsService
-
-