Fix CreateVolume missing the Request parameters

Compute API v2 extensions, Create Volume
missing the Request parameters.

Closes-Bug: #1474246
Change-Id: Ia0d0a12c621b60720e89662541c6564e41f676be
This commit is contained in:
Keisuke SE
2015-07-21 08:47:24 +00:00
parent e10082bdf3
commit aa5454ff61

View File

@@ -65,7 +65,7 @@
</resource>
<resource path="{snapshot_id}" id="snapshot_id">
<param name="snapshot_id" style="template"
required="true" type="xsd:string">
required="false" type="xsd:string">
<wadl:doc
xmlns="http://docbook.org/ns/docbook"
xml:lang="EN">
@@ -102,14 +102,56 @@
href="../api_samples/os-volume/volume_create.xml"
/>
</wadl:doc>
<param name="volume" style="plain" required="true"
<param name="display_name" style="plain" required="false"
type="xsd:string">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xml:lang="EN">
<para>A partial representation of a volume
that is used to create a volume.</para>
<para>The volume name.</para>
</wadl:doc>
</param>
<param name="display_description" style="plain" required="false"
type="xsd:string">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xml:lang="EN">
<para>The volume description.</para>
</wadl:doc>
</param>
<param name="size" style="plain" required="true"
type="xsd:string">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xml:lang="EN">
<para>The size of the volume, in gigabytes (GB).</para>
</wadl:doc>
</param>
<param name="volume_type" style="plain" required="false"
type="xsd:string">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xml:lang="EN">
<para>The unique identifier for a volume type.</para>
</wadl:doc>
</param>
<param name="metadata" style="plain" required="false"
type="xsd:string">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xml:lang="EN">
<para>One or more metadata key and value pairs to associate with the volume.</para>
</wadl:doc>
</param>
<param name="availability_zone" style="plain" required="false"
type="xsd:string">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xml:lang="EN">
<para>The availability zone.</para>
</wadl:doc>
</param>
<param name="snapshot_id" style="plain" required="true"
type="xsd:string">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xml:lang="EN">
<para>The unique identifier for a
snapshot.</para>
</wadl:doc>
</param>
</representation>
</request>
<response status="201">