Merge "Example and body verification of os-quota-sets.inc"

This commit is contained in:
Jenkins 2016-07-20 21:09:17 +00:00 committed by Gerrit Code Review
commit 3320424a80
1 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,4 @@
.. -*- rst -*-
.. needs:example_verification
.. needs:body_verification
============================
Quota sets (os-quota-sets)
@ -65,11 +63,17 @@ Update Quotas
Update the quotas for a project or a project and a user.
You can force the update even if the quota has already been used and the reserved quota exceeds the new quota.
Users can force the update even if the quota has already been used and the
To force the update, specify the ``"force": "True"`` attribute in the request body. Default is ``false``. The following example request shows the optional ``force`` attribute.
reserved quota exceeds the new quota.
To update a quota for a project and a user, specify the ``user_id`` query parameter.
To force the update, specify the ``"force": True`` attribute in the request
body, the default value is ``false``.
To update a quota for a project and a user, specify the ``user_id`` query
parameter.
Normal response codes: 200
@ -104,6 +108,11 @@ Request
.. literalinclude:: ../../doc/api_samples/os-quota-sets/quotas-update-post-req.json
:language: javascript
**Example Update Quotas with the optional ``force`` attribute: JSON request**
.. literalinclude:: ../../doc/api_samples/os-quota-sets/quotas-update-force-post-req.json
:language: javascript
Response
--------