Merge "Fix the errors in params in api-ref for V3 region"

This commit is contained in:
Jenkins 2016-07-21 03:48:19 +00:00 committed by Gerrit Code Review
commit 408cc2742a
2 changed files with 84 additions and 65 deletions

View File

@ -98,11 +98,11 @@ project_id_path:
in: path in: path
required: true required: true
type: string type: string
region_id_2: region_id_path:
description: | description: |
The region ID. The region ID.
in: path in: path
required: false required: true
type: string type: string
role_id: role_id:
description: | description: |
@ -261,7 +261,7 @@ parent_id_2:
in: query in: query
required: false required: false
type: string type: string
parent_region_id_1: parent_region_id_query:
description: | description: |
Filters the response by a parent region, by ID. Filters the response by a parent region, by ID.
in: query in: query
@ -452,12 +452,6 @@ description_2:
in: body in: body
required: false required: false
type: string type: string
description_3:
description: |
The region description.
in: body
required: false
type: string
description_4: description_4:
description: | description: |
The service description. The service description.
@ -488,6 +482,18 @@ description_9:
in: body in: body
required: true required: true
type: string type: string
description_region_request_body:
description: |
The region description.
in: body
required: false
type: string
description_region_response_body:
description: |
The region description.
in: body
required: true
type: string
domain: domain:
description: | description: |
A ``domain`` object, containing: A ``domain`` object, containing:
@ -912,12 +918,6 @@ id_12:
in: body in: body
required: true required: true
type: string type: string
id_13:
description: |
The ID for the region.
in: body
required: true
type: string
id_2: id_2:
description: | description: |
A token ID. A token ID.
@ -969,6 +969,18 @@ id_9:
in: body in: body
required: false required: false
type: string type: string
id_region_response_body:
description: |
The ID for the region.
in: body
required: true
type: string
id_region_resquest_body:
description: |
The ID for the region.
in: body
required: false
type: string
id_user_body: id_user_body:
description: | description: |
The user ID. The user ID.
@ -1124,12 +1136,6 @@ links_5:
in: body in: body
required: true required: true
type: object type: object
links_6:
description: |
The links for the ``region`` resource.
in: body
required: true
type: object
links_7: links_7:
description: | description: |
The links for the ``role`` resource. The links for the ``role`` resource.
@ -1142,6 +1148,12 @@ links_8:
in: body in: body
required: true required: true
type: object type: object
links_region:
description: |
The links for the ``region`` resource.
in: body
required: true
type: object
links_user: links_user:
description: | description: |
The links for the ``user`` resource. The links for the ``user`` resource.
@ -1289,17 +1301,24 @@ parent_id_1:
in: body in: body
required: true required: true
type: string type: string
parent_region_id: parent_region_id_2:
description: |
If the region is a child of another region, the
ID for the parent region. Otherwise, this value is ``null``.
in: body
required: true
type: string
parent_region_id_request_body:
description: | description: |
To make this region a child of another region, To make this region a child of another region,
set this parameter to the ID of the parent region. set this parameter to the ID of the parent region.
in: body in: body
required: false required: false
type: string type: string
parent_region_id_2: parent_region_id_response_body:
description: | description: |
If the region is a child of another region, the To make this region a child of another region,
ID for the parent region. Otherwise, this value is ``null``. set this parameter to the ID of the parent region.
in: body in: body
required: true required: true
type: string type: string
@ -1358,12 +1377,6 @@ region:
in: body in: body
required: true required: true
type: string type: string
region_1:
description: |
A ``region`` object.
in: body
required: true
type: object
region_2: region_2:
description: | description: |
(Deprecated in v3.2) The geographic location of (Deprecated in v3.2) The geographic location of
@ -1385,9 +1398,15 @@ region_id_1:
in: body in: body
required: false required: false
type: string type: string
regions: region_object:
description: | description: |
A ``regions`` object. A ``region`` object, containing the following:
in: body
required: true
type: object
regions_object:
description: |
A list of ``region`` object, each containing the following:
in: body in: body
required: true required: true
type: array type: array

View File

@ -9,7 +9,7 @@ associate zero or more sub-regions with a region to create a tree-
like structured hierarchy. like structured hierarchy.
Although a region does not have a geographical connotation, a Although a region does not have a geographical connotation, a
deployment can use a geographical name for a region, such as ``us- deployment can use a geographical name for a region ID, such as ``us-
east``. east``.
You can list, create, update, show details for, and delete regions. You can list, create, update, show details for, and delete regions.
@ -30,18 +30,18 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- region_id: region_id - region_id: region_id_path
Response Parameters Response Parameters
------------------- -------------------
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- parent_region_id: parent_region_id - region: region_object
- region: region - description: description_region_response_body
- description: description - id: id_region_response_body
- links: links - links: links_region
- id: id - parent_region_id: parent_region_id_response_body
Response Example Response Example
---------------- ----------------
@ -72,10 +72,10 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- parent_region_id: parent_region_id - region_id: region_id_path
- region: region - region: region_object
- description: description - description: description_region_request_body
- region_id: region_id - parent_region_id: parent_region_id_request_body
Request Example Request Example
--------------- ---------------
@ -88,11 +88,11 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- parent_region_id: parent_region_id - region: region_object
- region: region - description: description_region_response_body
- description: description - id: id_region_response_body
- links: links - links: links_region
- id: id - parent_region_id: parent_region_id_response_body
Response Example Response Example
---------------- ----------------
@ -121,7 +121,7 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- region_id: region_id - region_id: region_id_path
List regions List regions
@ -139,18 +139,18 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- parent_region_id: parent_region_id - parent_region_id: parent_region_id_query
Response Parameters Response Parameters
------------------- -------------------
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- regions: regions - regions: regions_object
- parent_region_id: parent_region_id - description: description_region_response_body
- description: description - id: id_region_response_body
- links: links - links: links_region
- id: id - parent_region_id: parent_region_id_response_body
Response Example Response Example
---------------- ----------------
@ -189,10 +189,10 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- parent_region_id: parent_region_id - region: region_object
- region: region - description: description_region_request_body
- description: description - id: id_region_resquest_body
- id: id - parent_region_id: parent_region_id_request_body
Request Example Request Example
--------------- ---------------
@ -205,8 +205,8 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- parent_region_id: parent_region_id - region: region_object
- region: region - description: description_region_response_body
- description: description - id: id_region_response_body
- links: links - links: links_region
- id: id - parent_region_id: parent_region_id_response_body