fb1ea0c1a8
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 |
||
---|---|---|
.. | ||
v1 | ||
__init__.py | ||
object_store_service.py |