manila/manila/api/v2
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
..
__init__.py Add new URLs for APIs ported from extensions 2015-12-01 12:15:06 +02:00
availability_zones.py Add new URLs for APIs ported from extensions 2015-12-01 12:15:06 +02:00
cgsnapshots.py Using dict.items() is better than six.iteritems(dict) 2016-01-19 22:22:48 +08:00
consistency_groups.py Using dict.items() is better than six.iteritems(dict) 2016-01-19 22:22:48 +08:00
quota_class_sets.py Add new URLs for APIs ported from extensions 2015-12-01 12:15:06 +02:00
quota_sets.py Replace deprecated [logger/LOG].warn with warning 2016-01-08 10:32:47 +08:00
router.py Manage and unmanage snapshot 2016-02-18 04:09:05 -05:00
services.py Trivial: Remove unused logging import 2015-12-28 21:44:26 -05:00
share_export_locations.py Update export location retrieval APIs 2016-03-02 09:32:28 -05:00
share_instance_export_locations.py Update export location retrieval APIs 2016-03-02 09:32:28 -05:00
share_instances.py Move API module 'share_instances' under v2 dir 2015-12-02 14:07:55 +02:00
share_replicas.py Add Replication admin APIs and driver i/f changes 2016-02-25 09:31:54 -05:00
share_snapshots.py Manage and unmanage snapshot 2016-02-18 04:09:05 -05:00
share_types.py Remove `None` as a redundant argument to dict.get() 2016-02-17 00:06:14 +08:00
shares.py Add Ceph Native driver 2016-03-01 20:30:18 +00:00