[api-ref] Refactor manila extension API

This patch refactors manila extension API to make it clear
to understand and maintain.

Change-Id: I35b8b135acc02238daf7c2fb9f42bf276806f7d8
This commit is contained in:
Ha Van Tu 2016-09-12 14:18:15 +07:00
parent 8eaf23982c
commit 0dc2fdc1da
2 changed files with 50 additions and 6 deletions

View File

@ -22,18 +22,18 @@ Request
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id_1
- tenant_id: tenant_id_path
Response parameters
-------------------
.. rest_parameters:: parameters.yaml
- name: name_10
- links: links_2
- description: description_8
- alias: alias
- updated: updated
- name: extension_name
- links: extension_links
- description: extension_description
- alias: extension_alias
- updated: extension_updated
Response example
----------------

View File

@ -1269,6 +1269,50 @@ extend:
in: body
required: true
type: object
extension_alias:
description: |
The alias for the extension. For example,
"FOXNSOX", "os-availability-zone", "os-extended-quotas", "os-
share-unmanage", or "os-used-limits".
in: body
required: true
type: string
extension_description:
description: |
The extension description.
in: body
required: true
type: string
extension_links:
description: |
The extension links.
in: body
required: true
type: array
extension_name:
description: |
The name of the extension. For example, "Fox In Socks."
in: body
required: true
type: string
extension_updated:
description: |
The date and time stamp when the extension was last updated.
The date and time stamp format is `ISO 8601
<https://en.wikipedia.org/wiki/ISO_8601>`_:
::
CCYY-MM-DDThh:mm:ss±hh:mm
The ``±hh:mm`` value, if included, returns the time zone as an
offset from UTC.
For example, ``2015-08-27T09:49:58-05:00``.
in: body
required: true
type: string
extra-spec-key:
description: |
The extra specification key