cinder.api.v3.views.default_types module¶
- class ViewBuilder¶
Bases:
object
Model default type API response as a python dictionary.
- create(default_type)¶
Detailed view of a default type when set.
- detail(default_type)¶
Build a view of a default type.
{"default_type": { "project_id": "248592b4-a6da-4c4c-abe0-9d8dbe0b74b4", "volume_type_id": "6bd1de9a-b8b5-4c43-a597-00170ab06b50" } }
- index(default_types)¶
Build a view of a list of default types.
{"default_types": [ { "project_id": "248592b4-a6da-4c4c-abe0-9d8dbe0b74b4", "volume_type_id": "7152eb1e-aef0-4bcd-a3ab-46b7ef17e2e6" }, { "project_id": "1234567-4c4c-abcd-abe0-1a2b3c4d5e6ff", "volume_type_id": "5e3b298a-f1fc-4d32-9828-0d720da81ddd" } ] }