cinder/cinder/api
Gloria Gu cf73815982 Added volume type description for volume type API
- Added the following APIs and tests for volume type
* update volume type
PUT http://<openstackhost>:8776/v2/${tenant_id}/types/${vol_type_id}
body
{
    "volume_type": {
      "description":"updated_desc"
    }
}
** user can update description.
** if update description, descripiton can be empty spaces.
** description can not be None
** only admin can access this API

*get default volume type
GET http://<openstackhost>:8776/v2/${tenant_id}/types/default
** if default_volume_type is specified in cinder.conf and is valid,
the default volume type will be returned.
** if default_volume_type is not specified in cinder.conf or is not
valid, it will return 404 with a message saying default volume type
can not be found.

- Updated the following APIs and tests for volume type
* create volume type should take description as an option.
* list volume types or get one volume type will include description for
volume type if the description is not None.

- Upgraded the database cinder on table volume_types to include
the description. database upgrade/downgrade scripts and tests
are added.

- update API should send a notification to the message bus when
updating succeeds or fails.

- as of 12/5/2014, had to rebase with master which has volume type
access change, I also fixed the tests in that area in order to get
the unit tests pass.

Implements: blueprint volume-type-description
Change-Id: I3100a8f74fa1c0cc8d9293bf30e17b6ac4c72edb
2014-12-16 18:13:24 -08:00
..
contrib Added volume type description for volume type API 2014-12-16 18:13:24 -08:00
middleware Switch to oslo.serialization 2014-11-19 15:49:03 +08:00
openstack Added volume type description for volume type API 2014-12-16 18:13:24 -08:00
schemas Add XML deserializer for qos_manage delete_keys API 2014-05-25 11:37:30 +08:00
v1 Volume type access extension 2014-12-01 18:46:31 -05:00
v2 Added volume type description for volume type API 2014-12-16 18:13:24 -08:00
views Added volume type description for volume type API 2014-12-16 18:13:24 -08:00
__init__.py Implementing the use of _L’x’/i18n markers 2014-12-09 10:03:29 +00:00
common.py Use urllib.urlencode instead of dict_to_query_str 2014-11-01 20:56:44 +02:00
extensions.py Implementing the use of _L’x’/i18n markers 2014-12-09 10:03:29 +00:00
urlmap.py Enable import group hacking rule 2014-08-14 13:10:58 +08:00
versions.py Deprecate the V1 API 2014-09-04 20:24:37 -07:00
xmlutil.py Deprecate the V1 API 2014-09-04 20:24:37 -07:00