openstacksdk/openstack/compute/v2
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
..
__init__.py Full flavor CRUD 2014-07-09 06:46:50 -06:00
_proxy.py Add host aggregate missing functions 2018-12-10 19:36:47 +00:00
aggregate.py Add host aggregate missing functions 2018-12-10 19:36:47 +00:00
availability_zone.py Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
extension.py Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
flavor.py Revert the Proxy metaclass 2018-10-15 13:21:57 -05:00
hypervisor.py Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
image.py Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
keypair.py Add possibility to override base_path for resource operations 2018-12-20 16:21:42 +01:00
limits.py Add possibility to override base_path for resource operations 2018-12-20 16:21:42 +01:00
metadata.py Check result of server metadata operation 2018-11-23 13:39:51 +00:00
server.py Add possibility to override base_path for resource operations 2018-12-20 16:21:42 +01:00
server_group.py Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
server_interface.py Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
server_ip.py Add possibility to override base_path for resource operations 2018-12-20 16:21:42 +01:00
service.py Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
volume_attachment.py Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00