From 391911028cbd4295b0d6d792251e50980e2282f2 Mon Sep 17 00:00:00 2001 From: Kevin_Zheng Date: Wed, 6 Jul 2016 17:26:25 +0800 Subject: [PATCH] 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 --- api-ref/source/os-quota-sets.inc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/api-ref/source/os-quota-sets.inc b/api-ref/source/os-quota-sets.inc index 329cffd1417f..cbdfc62c35dc 100644 --- a/api-ref/source/os-quota-sets.inc +++ b/api-ref/source/os-quota-sets.inc @@ -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 --------