openstacksdk/openstack/placement
Stephen Finucane d54f4e30af placement: Add support for traits
Another weird one. There are two oddities here. Firstly, creation of a
trait is a PUT request and doesn't return a body, only a 'Location'. It
also doesn't error out if the trait already exists but rather returns a
HTTP 204. This is mostly handled by setting the 'create_method'
attribute. Secondly, the list response returns a list of strings rather
than a list of objects. This is less easily worked around and once again
requires a custom implementation of the 'list' class method.

We extend the 'QueryParameter' class to accept a new kwarg argument,
'include_pagination_defaults', which allows us to disable adding the
default 'limit' and 'marker' query string parameters: Placement doesn't
use these.

Change-Id: Idafa6c5c356d215224711b73c56a87ed7a690b94
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-07-12 15:14:41 +01:00
..
v1 placement: Add support for traits 2023-07-12 15:14:41 +01:00
__init__.py placement: Add support for resource providers 2021-03-26 15:52:46 +00:00
placement_service.py Blackify openstack.placement 2023-05-05 11:01:20 +01:00