api-ref: remove user_id from keypair list response and fix 2.10

The user_id has always been returned for the keypair create and
show operations. The user_id has never been returned in the list
response. The docs were a bit confusing for create and show since
they said 'New in version 2.10' for the user_id description in the
response.

This change clarifies the response docs so that we don't make it
sound like user_id is only getting returned for create/show with
microversion 2.10 and removes user_id from the response docs for
the list operation.

Change-Id: I4bd06c8ed88e526f44bb0d6e927c09175bf103b1
Closes-Bug: #1638606
This commit is contained in:
Matt Riedemann 2016-11-02 11:48:05 -04:00
parent 1d5442808e
commit be11fab555
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,6 @@ Response
- public_key: keypair_public_key
- fingerprint: keypair_fingerprint
- type: keypair_type
- user_id: keypair_userid
- keypairs_links: keypair_links
**Example List Keypairs: JSON response**

View File

@ -2711,13 +2711,14 @@ keypair_type:
description: |
The type of the keypair. Allowed values are ``ssh`` or ``x509``
min_version: 2.2
# NOTE(mriedem): This is the user_id description for the keypair create/show
# response which has always been returned.
keypair_userid:
in: body
required: true
type: string
description: |
The user_id for a keypair.
min_version: 2.10
keypair_userid_in:
in: body
required: false