openstacksdk/openstack/object_store
Brian Curtin fb1ea0c1a8 Refactor image v2 to use resource2/proxy2
This change includes the necessary refactoring to make the Image v2
service use the newer resource and proxy classes. Additionally, it
rearranged some of the structure of the Image resource in order to work
more logically on the surface of the proxy.

1. What was known as the Tag resource is now served by methods on the
Image resource, as tags are specific to an Image and not well served to
be thought of as their own thing. The behavior and tests have been moved
under Image, and at the proxy layer the calls were name "add_tag" and
"remove tag"
2. Image now supports the "deactivate" and "reactivate" actions.
3. The upload_image call was restructured slightly and is now helpfully
strict on the arguments it requires, as it takes two separate REST calls
in order to complete the operation.
4. download_image was added, and it verifies the checksum of the image
before returning the raw data. We previously converged on
download_<resource> as the naming convention of data being downloaded,
but we hadn't figured out what should be returned. A comment was added
to download_object in object_store as it currently tries to work with
writing to a file, which it should not do. That will be handled in that
service's refactor.

Change-Id: I22739d8a5b6c13552c9bdd980af0c2d62a66668d
2016-07-26 11:31:11 -04:00
..
v1 Refactor image v2 to use resource2/proxy2 2016-07-26 11:31:11 -04:00
__init__.py Add support for Swift containers 2014-08-13 14:00:15 +00:00
object_store_service.py Move service filter out of auth 2015-08-21 04:53:53 -06:00