Class NetworksServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.NetworksServiceImpl
-
- All Implemented Interfaces:
Service
,NetworksService
public class NetworksServiceImpl extends ServiceImpl implements NetworksService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.NetworksService
NetworksService.AddRequest, NetworksService.AddResponse, NetworksService.ListRequest, NetworksService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description NetworksServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworksService.AddRequest
add()
Creates a new logical network, or associates an existing network with a data center.NetworksService.ListRequest
list()
List logical networks.NetworkService
networkService(String id)
Reference to the service that manages a specific network.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
-
NetworksServiceImpl
public NetworksServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public NetworksService.AddRequest add()
Description copied from interface:NetworksService
Creates a new logical network, or associates an existing network with a data center. Creation of a new network requires the `name` and `data_center` elements. For example, to create a network named `mynetwork` for data center `123` send a request like this: [source] ---- POST /ovirt-engine/api/networks ---- With a request body like this: [source,xml] ----mynetwork ovirtmgmt exnetwork - Specified by:
add
in interfaceNetworksService
-
list
public NetworksService.ListRequest list()
Description copied from interface:NetworksService
List logical networks. For example: [source] ---- GET /ovirt-engine/api/networks ---- Will respond: [source,xml] ----ovirtmgmt Default Management Network 0 false vm - Specified by:
list
in interfaceNetworksService
-
networkService
public NetworkService networkService(String id)
Description copied from interface:NetworksService
Reference to the service that manages a specific network.- Specified by:
networkService
in interfaceNetworksService
-
service
public Service service(String path)
Description copied from interface:NetworksService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceNetworksService
-
-