Fix discrepancy in api-ref for volume_types APIs
In the api ref document, for create volume_types 'extra_specs' parameter is missing. And for parameter 'is_public', in code it is used as 'os-volume-type-access:is_public'. For update volume_types api as per api ref, 'name' and 'extra_specs' parameters are mandatory. But in code 'name' is optional and 'extra_specs' implementation is not done. This patch fixes this discrepancy by updating the api-ref according to the code. Change-Id: I7faa711fc72cd81676812017a92ef40273f1bf7c
This commit is contained in:
parent
48cd5e44a6
commit
029767c0f2
@ -1036,7 +1036,7 @@ extra_specs_1:
|
|||||||
include capabilities, capacity, compression, and so on, depending
|
include capabilities, capacity, compression, and so on, depending
|
||||||
on the storage driver in use.
|
on the storage driver in use.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: false
|
||||||
type: object
|
type: object
|
||||||
fail_reason:
|
fail_reason:
|
||||||
description: |
|
description: |
|
||||||
@ -1820,6 +1820,12 @@ name_9:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
name_10:
|
||||||
|
description: |
|
||||||
|
The name of the volume type.
|
||||||
|
in: body
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
name_optional:
|
name_optional:
|
||||||
description: |
|
description: |
|
||||||
The name of the Volume Backup.
|
The name of the Volume Backup.
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
"volume_type": {
|
"volume_type": {
|
||||||
"name": "vol-type-001",
|
"name": "vol-type-001",
|
||||||
"description": "volume type 0001",
|
"description": "volume type 0001",
|
||||||
"is_public": true,
|
"os-volume-type-access:is_public": true,
|
||||||
|
"extra_specs": {
|
||||||
|
"capabilities": "gpu"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
"volume_type": {
|
"volume_type": {
|
||||||
"name": "vol-type-001",
|
"name": "vol-type-001",
|
||||||
"description": "volume type 0001",
|
"description": "volume type 0001",
|
||||||
"is_public": true,
|
"is_public": true
|
||||||
"extra_specs": {
|
|
||||||
"capabilities": "gpu"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,10 +36,9 @@ Request
|
|||||||
- project_id: project_id_path
|
- project_id: project_id_path
|
||||||
- volume_type_id: volume_type_id
|
- volume_type_id: volume_type_id
|
||||||
- volume_type: volume_type_1
|
- volume_type: volume_type_1
|
||||||
- name: name_7
|
- name: name_10
|
||||||
- description: description_15
|
- description: description_15
|
||||||
- is_public: is_public
|
- is_public: is_public
|
||||||
- extra_specs: extra_specs
|
|
||||||
|
|
||||||
Request Example
|
Request Example
|
||||||
---------------
|
---------------
|
||||||
@ -355,8 +354,9 @@ Request
|
|||||||
- volume_type: volume_type_1
|
- volume_type: volume_type_1
|
||||||
- project_id: project_id_path
|
- project_id: project_id_path
|
||||||
- name: name_7
|
- name: name_7
|
||||||
- is_public: is_public
|
- os-volume-type-access:is_public: is_public
|
||||||
- description: description_15
|
- description: description_15
|
||||||
|
- extra_specs: extra_specs_1
|
||||||
|
|
||||||
Request Example
|
Request Example
|
||||||
---------------
|
---------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user