Class NetworkServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.NetworkServiceImpl
-
- All Implemented Interfaces:
Service
,NetworkService
public class NetworkServiceImpl extends ServiceImpl implements NetworkService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.NetworkService
NetworkService.GetRequest, NetworkService.GetResponse, NetworkService.RemoveRequest, NetworkService.RemoveResponse, NetworkService.UpdateRequest, NetworkService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description NetworkServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkService.GetRequest
get()
Gets a logical network.NetworkLabelsService
networkLabelsService()
Reference to the service that manages the network labels assigned to this network.AssignedPermissionsService
permissionsService()
Reference to the service that manages the permissions assigned to this network.NetworkService.RemoveRequest
remove()
Removes a logical network, or the association of a logical network to a data center.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
NetworkService.UpdateRequest
update()
Updates a logical network.AssignedVnicProfilesService
vnicProfilesService()
Reference to the service that manages the vNIC profiles assigned to this network.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
NetworkServiceImpl
public NetworkServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public NetworkService.GetRequest get()
Description copied from interface:NetworkService
Gets a logical network. For example: [source] ---- GET /ovirt-engine/api/networks/123 ---- Will respond: [source,xml] ----ovirtmgmt Default Management Network 0 false vm - Specified by:
get
in interfaceNetworkService
-
remove
public NetworkService.RemoveRequest remove()
Description copied from interface:NetworkService
Removes a logical network, or the association of a logical network to a data center. For example, to remove the logical network `123` send a request like this: [source] ---- DELETE /ovirt-engine/api/networks/123 ---- Each network is bound exactly to one data center. So if we disassociate network with data center it has the same result as if we would just remove that network. However it might be more specific to say we're removing network `456` of data center `123`. For example, to remove the association of network `456` to data center `123` send a request like this: [source] ---- DELETE /ovirt-engine/api/datacenters/123/networks/456 ---- NOTE: To remove an external logical network, the network has to be removed directly from its provider by https://developer.openstack.org/api-ref/network[OpenStack Networking API]. The entity representing the external network inside {product-name} is removed automatically, if <> is enabled for the provider, otherwise the entity has to be removed using this method. - Specified by:
remove
in interfaceNetworkService
-
update
public NetworkService.UpdateRequest update()
Description copied from interface:NetworkService
Updates a logical network. The `name`, `description`, `ip`, `vlan`, `stp` and `display` attributes can be updated. For example, to update the description of the logical network `123` send a request like this: [source] ---- PUT /ovirt-engine/api/networks/123 ---- With a request body like this: [source,xml] ----My updated description 1500 - Specified by:
update
in interfaceNetworkService
-
networkLabelsService
public NetworkLabelsService networkLabelsService()
Description copied from interface:NetworkService
Reference to the service that manages the network labels assigned to this network.- Specified by:
networkLabelsService
in interfaceNetworkService
-
permissionsService
public AssignedPermissionsService permissionsService()
Description copied from interface:NetworkService
Reference to the service that manages the permissions assigned to this network.- Specified by:
permissionsService
in interfaceNetworkService
-
vnicProfilesService
public AssignedVnicProfilesService vnicProfilesService()
Description copied from interface:NetworkService
Reference to the service that manages the vNIC profiles assigned to this network.- Specified by:
vnicProfilesService
in interfaceNetworkService
-
service
public Service service(String path)
Description copied from interface:NetworkService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceNetworkService
-
-