openstacksdk/openstack/image
Artem Goncharov 8274409c9e Add possibility to override base_path for resource operations
We currently have multiple places, where we inherit resource just to be
able to request it's Details or so under different url. With 619594
a change has been introduced to improve this by having possibility
to override base_path for a single resource operation.
This was done only for list operations. However there are also cases
when such possibility would be nice for create/update/etc operations.
One example is dry-run for heat, where the endpoint receives "/preview"
part. This is currently implemented by creating
additional resource StackPreview with different base_path. For create
it might be ok, but dry-run stack update would require another url.

With this change a possibility to override base_path for individual
operation on resource object is added. It can be given to proxy
function, which would pass it to resource and use it during URI
calculation.

Change-Id: Id8c8212249cb985d2e47eb1d4fb23ebf19b3871b
2018-12-20 16:21:42 +01:00
..
v1 Fix latest flake8 issues 2018-10-29 16:44:05 -05:00
v2 Add possibility to override base_path for resource operations 2018-12-20 16:21:42 +01:00
__init__.py Very basic image resource 2014-06-23 16:37:38 -06:00
image_service.py Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
image_signer.py Implement signature generation functionality 2018-07-18 13:18:40 +00:00
iterable_chunked_file.py Implement signature generation functionality 2018-07-18 13:18:40 +00:00