Rename 'remove' to 'reset' in Quota API

The name of the remove_quota API call is misleading.
The real purpose of this call is to reset the quota
to its default value, not to remove it.

This patch is limited to the title of the call in v2,
and it does not modify the REST API in any way.

Task: 5868
Story: 2001295

Change-Id: Idfb1f3c3fe90d71434d0bb6a973e146ea3dea67c
This commit is contained in:
Bar RH 2017-11-23 00:48:32 +02:00
parent bb9bb2d05b
commit 3d4bb0785c
3 changed files with 4 additions and 4 deletions

View File

@ -241,8 +241,8 @@ Response Example
.. literalinclude:: examples/quota-update-response.json
:language: javascript
Remove a Quota
==============
Reset a Quota
=============
.. rest_method:: DELETE /v2.0/lbaas/quotas/{project_id}
@ -271,7 +271,7 @@ Request
Curl Example
------------
.. literalinclude:: examples/quota-delete-curl
.. literalinclude:: examples/quota-reset-curl
:language: bash
Response

View File

@ -49,7 +49,7 @@ rules = [
'{rbac_obj}{action}'.format(rbac_obj=constants.RBAC_QUOTA,
action=constants.RBAC_DELETE),
constants.RULE_API_WRITE_QUOTA,
"Remove a Quota",
"Reset a Quota",
[{'method': 'DELETE',
'path': '/v2.0/lbaas/quotas/{project_id}'}]
),