Interface NetQuotaService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
NetQuotaServiceImpl
public interface NetQuotaService extends RestService
Networking (Neutron) Quota Extension API- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Method Detail
-
get
List<? extends NetQuota> get()
Lists quotas for tenants who have non-default quota values, and lists, updates, and resets quotas for a tenan- Returns:
- the list of quotas
-
get
NetQuota get(String tenantId)
Fetches the network quotas for the specified tenant- Parameters:
tenantId- the tenant identifier- Returns:
- the tenants quota
-
update
NetQuota update(NetQuota netQuota)
Updates the network quotas for the current tenant- Parameters:
netQuota- the net quota to update- Returns:
- the updated network quota
- See Also:
NetQuotaBuilder
-
updateForTenant
NetQuota updateForTenant(String tenantId, NetQuota netQuota)
Updates the network quotas for the specified tenant- Parameters:
tenantId- the tenant identifiernetQuota- the net quota to update- Returns:
- the updated network quota
- See Also:
NetQuotaBuilder
-
reset
ActionResponse reset()
Resets the current network quota for the current tenant back to defaults- Returns:
- the action response
-
reset
ActionResponse reset(String tenantId)
Resets the current network quota for the current tenant back to defaults- Parameters:
netQuota- the net quota to update- Returns:
- the action response
-
-