![Boden R](/assets/img/avatar_default.png)
This patch rehomes a bulk of neutron.api.v2.attributes into lib with the following notable aspects: - A new AttributeInfo class is available and wraps a resource's attribute dict to provide operations with the attributes. The class can be used as a operational wrapper on a dict of attrs, or it an be used as a transport of attrs based on the consumer's need. - A global singleton attribute map RESOURCES is available and is initially populated with core resources. - Some unit tests are beefed a little and make them more modular. - Some huge comments into the devref. - The fixture for API defs is updated to support backing up the global RESOURCES dict. Change-Id: Ic455e1af2796e58025381160dc5c3b83217413fa
15 lines
864 B
YAML
15 lines
864 B
YAML
---
|
|
features:
|
|
- A bulk of the ``neutron.api.v2.attributes`` functionality is now available
|
|
in ``neutron_lib.api.attributes``. A new ``AttributeInfo`` class is
|
|
available in that acts as a wrapper for an API resource's attribute dict
|
|
and allows consumers to perform operations with the underlying attribute
|
|
dict. The ``populate_project_info`` function is now available. The global
|
|
attribute map ``RESOURCES`` is now available and will take the place of
|
|
neutron's global ``RESOURCE_ATTRIBUTE_MAP``.
|
|
- The ``neutron_lib.fixture.APIDefinitionFixture`` has been updated to handle
|
|
backing-up and restoring the global ``RESOURCES`` dict. By default the
|
|
constructor now also uses all API definitions if none are passed to it's
|
|
constructor. This is the default behavior almost all consumers need and is
|
|
thus a convenience change.
|