manila/manila/api
Clinton Knight 55777cfb4e Update export location retrieval APIs
Update the export location retrieval APIs for shares and share
instances to do the following:

1. Restore the API-to-view-builder calling convention of
index-->summary and show-->detail. In so doing, modify which
values are returned by the list commands (currently, all but
the timestamps). The admin context from the request determines
whether the admin-only values are returned.

2. Report the UUID field from the export location table as
'id' to be consistent will all other objects returned via the
Manila REST API.

3. Add the preferred flag to the output of the API. Drivers
can report preferred:True or preferred:False in their export
location metadata, and this standard flag will be returned
via the REST interface, like this:

+-------------------+--------------------------------------+
| Property          | Value                                |
+-------------------+--------------------------------------+
| is_admin_only     | False                                |
| uuid              | df828d44-0b04-47fa-8ee5-516ffc199ca7 |
| share_instance_id | 1b40e873-331e-4e1c-ab53-38ec95b3bfcc |
| path              | 10.0.0.100:/share_1b40e873           |
| created_at        | 2016-02-18T21:12:51.000000           |
| updated_at        | 2016-02-18T21:12:51.000000           |
| preferred         | True                                 |
+-------------------+--------------------------------------+

APIImpact
Implements: blueprint update-export-location-retrieval-apis
Change-Id: Ia63477d4f3e28ab4f53d7b9d51756cc798c977b9
2016-03-02 09:32:28 -05:00
..
contrib Port share type extensions to core API 2015-11-12 14:58:20 +00:00
middleware Replace deprecated [logger/LOG].warn with warning 2016-01-08 10:32:47 +08:00
openstack Update export location retrieval APIs 2016-03-02 09:32:28 -05:00
v1 Add Ceph Native driver 2016-03-01 20:30:18 +00:00
v2 Update export location retrieval APIs 2016-03-02 09:32:28 -05:00
views Update export location retrieval APIs 2016-03-02 09:32:28 -05:00
__init__.py Implement Manila REST API microversions 2015-08-13 19:51:19 +00:00
auth.py Replace deprecated [logger/LOG].warn with warning 2016-01-08 10:32:47 +08:00
common.py Using dict.items() is better than six.iteritems(dict) 2016-01-19 22:22:48 +08:00
extensions.py Using dict.items() is better than six.iteritems(dict) 2016-01-19 22:22:48 +08:00
sizelimit.py Replace deprecated [logger/LOG].warn with warning 2016-01-08 10:32:47 +08:00
urlmap.py Trivial: Remove unused logging import 2015-12-28 21:44:26 -05:00
versions.py Add v2 Manila API path as base for microversions 2015-09-10 13:58:26 +00:00