Class NetQosPolicyServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.ext.NetQosPolicyServiceImpl
-
- All Implemented Interfaces:
NetQosPolicyService,RestService
public class NetQosPolicyServiceImpl extends BaseNetworkingServices implements NetQosPolicyService
Networking (Neutron) Qos Policy Extension API- Author:
- bboyHan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description NetQosPolicyServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetQosPolicycreate(NetQosPolicy netQosPolicy)Create the current network qos policy for the current tenant back to defaultsActionResponsedelete(String policyId)Delete the current network qos policy for the current tenant back to defaultsNetQosPolicyget(String policyId)Fetches the network qos policy for the specified tenantList<? extends NetQosPolicy>list()Lists qos policies for tenantsNetQosPolicyupdate(NetQosPolicyUpdate update)Updates the network qos policy for the current tenant-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends NetQosPolicy> list()
Lists qos policies for tenants- Specified by:
listin interfaceNetQosPolicyService- Returns:
- the list of qos policy
-
get
public NetQosPolicy get(String policyId)
Fetches the network qos policy for the specified tenant- Specified by:
getin interfaceNetQosPolicyService- Parameters:
policyId- the tenant identifier- Returns:
- the NetQosPolicy
-
update
public NetQosPolicy update(NetQosPolicyUpdate update)
Updates the network qos policy for the current tenant- Specified by:
updatein interfaceNetQosPolicyService- Parameters:
update- the net qos policy to update- Returns:
- the updated network qos policy
-
create
public NetQosPolicy create(NetQosPolicy netQosPolicy)
Create the current network qos policy for the current tenant back to defaults- Specified by:
createin interfaceNetQosPolicyService- Returns:
- NetQosPolicy the response object
-
delete
public ActionResponse delete(String policyId)
Delete the current network qos policy for the current tenant back to defaults- Specified by:
deletein interfaceNetQosPolicyService- Parameters:
policyId- the net qos uuid- Returns:
- the action response
-
-