Fix 'volume_type' for in the api-ref

1 The 'volume_type' shoud be required in the rest_method of request.
  So fix the request paremeter about volume_type
2 Fix  the parameters of 'volume_type' in the volumes-v3-volumes.inc

Change-Id: I585db62579ac134885a49dc020508a9f0fba3c78
This commit is contained in:
liuyamin 2018-01-15 14:00:29 +08:00
parent 5420a050b2
commit 88a21ab20e
6 changed files with 24 additions and 12 deletions

View File

@ -133,6 +133,12 @@ volume_type:
in: path
required: false
type: string
volume_type_access:
description: |
The ID of Volume Type to be accessed by project.
in: path
required: true
type: string
volume_type_id:
description: |
The UUID for an existing volume type.

View File

@ -30,7 +30,7 @@ Request
- project: project
- project_id: project_id_path
- volume_type: volume_type
- volume_type: volume_type_access
Request Example
---------------
@ -56,7 +56,7 @@ Request
- project: project
- project_id: project_id_path
- volume_type: volume_type
- volume_type: volume_type_access
Request Example
---------------
@ -82,7 +82,7 @@ Request
.. rest_parameters:: parameters.yaml
- project_id: project_id_path
- volume_type: volume_type
- volume_type: volume_type_access
Response Parameters

View File

@ -194,6 +194,12 @@ volume_type:
in: path
required: false
type: string
volume_type_access:
description: |
The ID of Volume Type to be accessed by project.
in: path
required: true
type: string
volume_type_id:
description: |
The UUID for an existing volume type.

View File

@ -74,7 +74,7 @@ Request
- gigabytes: maxTotalVolumeGigabytesOptional
- snapshots: maxTotalSnapshotsOptional
- volumes: maxTotalVolumesOptional
- volume-type: volume_type
- volume-type: volume_type_2
Request Example
---------------

View File

@ -30,7 +30,7 @@ Request
- project: project
- project_id: project_id_path
- volume_type: volume_type
- volume_type: volume_type_access
Request Example
---------------
@ -56,7 +56,7 @@ Request
- project: project
- project_id: project_id_path
- volume_type: volume_type
- volume_type: volume_type_access
Request Example
---------------
@ -82,7 +82,7 @@ Request
.. rest_parameters:: parameters.yaml
- project_id: project_id_path
- volume_type: volume_type
- volume_type: volume_type_access
Response Parameters

View File

@ -122,7 +122,7 @@ Response Parameters
- created_at: created_at
- os-volume-replication:driver_data: os-volume-replication:driver_data
- volumes: volumes
- volume_type: volume_type
- volume_type: volume_type_6
- count: count
@ -191,7 +191,7 @@ Request
- backup_id: backup_id_1
- name: name_13
- imageRef: imageRef
- volume_type: volume_type
- volume_type: volume_type_2
- metadata: metadata
- consistencygroup_id: consistencygroup_id
- OS-SCH-HNT:scheduler_hints: OS-SCH-HNT:scheduler_hints
@ -230,7 +230,7 @@ Response Parameters
- name: name_13
- bootable: bootable_response
- created_at: created_at
- volume_type: volume_type
- volume_type: volume_type_6
Response Example
----------------
@ -346,7 +346,7 @@ Response Parameters
- bootable: bootable_response
- created_at: created_at
- os-volume-replication:driver_data: os-volume-replication:driver_data
- volume_type: volume_type
- volume_type: volume_type_6
- service_uuid: service_uuid
- shared_targets: shared_targets
@ -417,7 +417,7 @@ Response Parameters
- name: name_13
- bootable: bootable_response
- created_at: created_at
- volume_type: volume_type
- volume_type: volume_type_6