Class NetQuotaServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.ext.NetQuotaServiceImpl
-
- All Implemented Interfaces:
NetQuotaService,RestService
public class NetQuotaServiceImpl extends BaseNetworkingServices implements NetQuotaService
Networking (Neutron) Quota Extension API- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description NetQuotaServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends NetQuota>get()Lists quotas for tenants who have non-default quota values, and lists, updates, and resets quotas for a tenanNetQuotaget(String tenantId)Fetches the network quotas for the specified tenantActionResponsereset()Resets the current network quota for the current tenant back to defaultsActionResponsereset(String tenantId)Resets the current network quota for the current tenant back to defaultsNetQuotaupdate(NetQuota netQuota)Updates the network quotas for the current tenantNetQuotaupdateForTenant(String tenantId, NetQuota netQuota)Updates the network quotas for the specified 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
-
get
public List<? extends NetQuota> get()
Description copied from interface:NetQuotaServiceLists quotas for tenants who have non-default quota values, and lists, updates, and resets quotas for a tenan- Specified by:
getin interfaceNetQuotaService- Returns:
- the list of quotas
-
get
public NetQuota get(String tenantId)
Description copied from interface:NetQuotaServiceFetches the network quotas for the specified tenant- Specified by:
getin interfaceNetQuotaService- Parameters:
tenantId- the tenant identifier- Returns:
- the tenants quota
-
updateForTenant
public NetQuota updateForTenant(String tenantId, NetQuota netQuota)
Description copied from interface:NetQuotaServiceUpdates the network quotas for the specified tenant- Specified by:
updateForTenantin interfaceNetQuotaService- Parameters:
tenantId- the tenant identifiernetQuota- the net quota to update- Returns:
- the updated network quota
- See Also:
NetQuotaBuilder
-
update
public NetQuota update(NetQuota netQuota)
Description copied from interface:NetQuotaServiceUpdates the network quotas for the current tenant- Specified by:
updatein interfaceNetQuotaService- Parameters:
netQuota- the net quota to update- Returns:
- the updated network quota
- See Also:
NetQuotaBuilder
-
reset
public ActionResponse reset()
Description copied from interface:NetQuotaServiceResets the current network quota for the current tenant back to defaults- Specified by:
resetin interfaceNetQuotaService- Returns:
- the action response
-
reset
public ActionResponse reset(String tenantId)
Description copied from interface:NetQuotaServiceResets the current network quota for the current tenant back to defaults- Specified by:
resetin interfaceNetQuotaService- Returns:
- the action response
-
-