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

This patch verifies the examples and body of
os-quota-set.inc

part of bp:api-ref-in-rst

Change-Id: I1e044c0dc9dbe4e5d123d6d8254a5a9347187f83
This commit is contained in:
Kevin_Zheng 2016-07-06 17:26:25 +08:00
parent 5a7e273901
commit 391911028c

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
--------