Merge "api-ref: fix description of volumeAttachment for attach/swap-volume"

This commit is contained in:
Jenkins
2017-03-31 19:30:48 +00:00
committed by Gerrit Code Review
2 changed files with 21 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- server_id: server_id_path - server_id: server_id_path
- volumeAttachment: volumeAttachment - volumeAttachment: volumeAttachment_post
- volumeId: volumeId - volumeId: volumeId
- device: device - device: device
@@ -142,7 +142,7 @@ Request
- server_id: server_id_path - server_id: server_id_path
- attachment_id: attachment_id - attachment_id: attachment_id
- volumeAttachment: volumeAttachment - volumeAttachment: volumeAttachment_put
- volumeId: volumeId_swap - volumeId: volumeId_swap
**Example Update a volume attachment: JSON request** **Example Update a volume attachment: JSON request**

View File

@@ -5005,10 +5005,27 @@ volume_type_optional:
in: body in: body
required: false required: false
type: string type: string
# This is the volumeAttachment in a response body.
volumeAttachment: volumeAttachment:
description: | description: |
A dictionary representation of a volume attachment containing the fields, A dictionary representation of a volume attachment containing the fields
``device``, ``id``, ``serverId``, ``volumeId``. ``device``, ``id``, ``serverId`` and ``volumeId``.
in: body
required: true
type: object
# This is the volumeAttachment in a POST (attach volume) request body.
volumeAttachment_post:
description: |
A dictionary representation of a volume attachment containing the fields
``device`` and ``volumeId``.
in: body
required: true
type: object
# This is the volumeAttachment in a PUT (swap volume) request body.
volumeAttachment_put:
description: |
A dictionary representation of a volume attachment containing the field
``volumeId``.
in: body in: body
required: true required: true
type: object type: object