From 556a2f8f7fd347ff065c070bb2d3713f1dd518ac Mon Sep 17 00:00:00 2001 From: Masayuki Igawa Date: Wed, 30 Nov 2016 15:42:55 +0900 Subject: [PATCH] Fix response bootable parameter type in api document This commit fixes the response bootable parameter type in the api document. The type is string not boolean in the current code. And the request parameter's type is boolean. I think this is an inconsistency but we shouldn't change it to keep the backward compatibility. Change-Id: Ia0c70341f595580d12888e1f517e314fb98d4a6b --- api-ref/source/v2/parameters.yaml | 6 +++--- api-ref/source/v2/volumes-v2-volumes.inc | 8 ++++---- api-ref/source/v3/parameters.yaml | 6 +++--- api-ref/source/v3/volumes-v3-volumes.inc | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/api-ref/source/v2/parameters.yaml b/api-ref/source/v2/parameters.yaml index a29b6a9f610..3d9a6563fe4 100644 --- a/api-ref/source/v2/parameters.yaml +++ b/api-ref/source/v2/parameters.yaml @@ -310,13 +310,13 @@ bootable: in: body required: true type: boolean -bootable_1: +bootable_response: description: | Enables or disables the bootable attribute. You can boot an instance from a bootable volume. in: body - required: false - type: boolean + required: true + type: string capabilities: description: | The capabilities for the back end. The value is diff --git a/api-ref/source/v2/volumes-v2-volumes.inc b/api-ref/source/v2/volumes-v2-volumes.inc index 20c1414f8c6..9563d16ed43 100644 --- a/api-ref/source/v2/volumes-v2-volumes.inc +++ b/api-ref/source/v2/volumes-v2-volumes.inc @@ -95,7 +95,7 @@ Response Parameters - consistencygroup_id: consistencygroup_id - os-vol-mig-status-attr:name_id: os-vol-mig-status-attr:name_id - name: name - - bootable: bootable + - bootable: bootable_response - created_at: created_at - os-volume-replication:driver_data: os-volume-replication:driver_data - volumes: volumes @@ -204,7 +204,7 @@ Response Parameters - volume: volume - consistencygroup_id: consistencygroup_id - name: name - - bootable: bootable + - bootable: bootable_response - created_at: created_at - volume_type: volume_type @@ -310,7 +310,7 @@ Response Parameters - consistencygroup_id: consistencygroup_id - os-vol-mig-status-attr:name_id: os-vol-mig-status-attr:name_id - name: name - - bootable: bootable + - bootable: bootable_response - created_at: created_at - os-volume-replication:driver_data: os-volume-replication:driver_data - volume_type: volume_type @@ -382,7 +382,7 @@ Response Parameters - volume: volume - consistencygroup_id: consistencygroup_id - name: name - - bootable: bootable + - bootable: bootable_response - created_at: created_at - volume_type: volume_type diff --git a/api-ref/source/v3/parameters.yaml b/api-ref/source/v3/parameters.yaml index a15041a719c..4455ff119f4 100644 --- a/api-ref/source/v3/parameters.yaml +++ b/api-ref/source/v3/parameters.yaml @@ -328,13 +328,13 @@ bootable: in: body required: true type: boolean -bootable_1: +bootable_response: description: | Enables or disables the bootable attribute. You can boot an instance from a bootable volume. in: body - required: false - type: boolean + required: true + type: string capabilities: description: | The capabilities for the back end. The value is diff --git a/api-ref/source/v3/volumes-v3-volumes.inc b/api-ref/source/v3/volumes-v3-volumes.inc index abfabb7a474..b925c403aea 100644 --- a/api-ref/source/v3/volumes-v3-volumes.inc +++ b/api-ref/source/v3/volumes-v3-volumes.inc @@ -95,7 +95,7 @@ Response Parameters - consistencygroup_id: consistencygroup_id - os-vol-mig-status-attr:name_id: os-vol-mig-status-attr:name_id - name: name - - bootable: bootable + - bootable: bootable_response - created_at: created_at - os-volume-replication:driver_data: os-volume-replication:driver_data - volumes: volumes @@ -204,7 +204,7 @@ Response Parameters - volume: volume - consistencygroup_id: consistencygroup_id - name: name - - bootable: bootable + - bootable: bootable_response - created_at: created_at - volume_type: volume_type @@ -310,7 +310,7 @@ Response Parameters - consistencygroup_id: consistencygroup_id - os-vol-mig-status-attr:name_id: os-vol-mig-status-attr:name_id - name: name - - bootable: bootable + - bootable: bootable_response - created_at: created_at - os-volume-replication:driver_data: os-volume-replication:driver_data - volume_type: volume_type @@ -382,7 +382,7 @@ Response Parameters - volume: volume - consistencygroup_id: consistencygroup_id - name: name - - bootable: bootable + - bootable: bootable_response - created_at: created_at - volume_type: volume_type