From 33d1270dca25e7565768a8eb09c98f889b9b0087 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Fri, 18 Nov 2016 10:23:15 -0500 Subject: [PATCH] Fix v2 volume create api-reference request parameters This fixes several things: 1. The consistencygroup_id and metadata parameters are optional. 2. Several parameters used were for non-volume types, this changes the api-ref to use the proper parameters that have the correct descriptions for creating a volume. At some point the parameter names in parameters.yaml need to have more descriptive names than the lazy *_1, *_2, etc names so it's easier to know what a parameter is for, e.g. volume_description_body_required, but that's for a later cleanup. Change-Id: I1fb8ca507c85bfbf0add41b507c014ae995e17d0 Closes-Bug: #1642983 --- api-ref/source/v2/volumes-v2-volumes.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api-ref/source/v2/volumes-v2-volumes.inc b/api-ref/source/v2/volumes-v2-volumes.inc index fa77485ebfa..20c1414f8c6 100644 --- a/api-ref/source/v2/volumes-v2-volumes.inc +++ b/api-ref/source/v2/volumes-v2-volumes.inc @@ -157,19 +157,19 @@ Request .. rest_parameters:: parameters.yaml - size: size - - description: description + - description: description_9 - imageRef: imageRef - multiattach: multiattach - availability_zone: availability_zone - source_volid: source_volid - - name: name + - name: name_13 - volume: volume - - consistencygroup_id: consistencygroup_id - - volume_type: volume_type + - consistencygroup_id: consistencygroup_id_1 + - volume_type: volume_type_2 - snapshot_id: snapshot_id - OS-SCH-HNT:scheduler_hints: OS-SCH-HNT:scheduler_hints - source_replica: source_replica - - metadata: metadata + - metadata: metadata_2 - tenant_id: tenant_id Request Example