From 0548a4172e3d9f2794f4d8d54d7be248b81f8c92 Mon Sep 17 00:00:00 2001 From: Neha Alhat Date: Wed, 6 Dec 2017 12:39:55 +0530 Subject: [PATCH] Fix discrepancy in api-ref for create volume manage api For create volume manage api, 'bootable', 'name', and 'metadata' parameters are mandatory as per api ref document but as per code these parameters are optional. This patch fixes this discrepancy by updating the api-ref according to the code. Change-Id: I614c0866f52503ed7264f7bf74a193dd17590028 --- api-ref/source/v3/parameters.yaml | 20 ++++++++++++++++++++ api-ref/source/v3/volume-manage.inc | 6 +++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/api-ref/source/v3/parameters.yaml b/api-ref/source/v3/parameters.yaml index e98278c2483..6d94c1edbfa 100644 --- a/api-ref/source/v3/parameters.yaml +++ b/api-ref/source/v3/parameters.yaml @@ -607,6 +607,13 @@ bootable: in: body required: true type: boolean +bootable_1: + description: | + Enables or disables the bootable attribute. You + can boot an instance from a bootable volume. + in: body + required: false + type: boolean bootable_response: description: | Enables or disables the bootable attribute. You @@ -1599,6 +1606,13 @@ metadata_1: in: body required: true type: object +metadata_10: + description: | + One or more metadata key and value pairs to be associated + with the new volume. + in: body + required: false + type: object metadata_2: description: | One or more metadata key and value pairs that are @@ -2779,6 +2793,12 @@ volume_name: in: body required: true type: string +volume_name_1: + description: | + The volume name. + in: body + required: false + type: string volume_type_1: description: | A ``volume_type`` object. diff --git a/api-ref/source/v3/volume-manage.inc b/api-ref/source/v3/volume-manage.inc index d9da5f6463a..8b39965e37c 100644 --- a/api-ref/source/v3/volume-manage.inc +++ b/api-ref/source/v3/volume-manage.inc @@ -40,13 +40,13 @@ Request - volume: volume - description: description - availability_zone: availability_zone - - bootable: bootable + - bootable: bootable_1 - volume_type: volume_type - - name: volume_name + - name: volume_name_1 - host: host_mutex - cluster: cluster_mutex - ref: ref - - metadata: metadata + - metadata: metadata_10 Request Example ---------------