Bases: nova.api.openstack.common.ViewBuilder
Model a server API response as a python dictionary.
Generic, non-detailed view of an instance.
View that should be returned when an instance is created.
Detailed view of a list of instance.
Returns a list of lazy-loadable expected attributes used by show
This should be used when getting the instances from the database so that the necessary attributes are pre-loaded before needing to build the show response where lazy-loading can fail if an instance was deleted.
Parameters: | expected_attrs (list) – The list of expected attributes that will be requested in addition to what this view builder requires. This method will merge the two lists and return what should be ultimately used when getting an instance from the database. |
---|---|
Returns: | merged and sorted list of expected attributes |
Show a list of servers without many details.
Detailed view of a single instance.
Bases: nova.api.openstack.compute.views.servers.ViewBuilder
Model a server v2.1 API response as a python dictionary.
Detailed view of a single instance.