Bases: oslo_reports.models.base.ReportModel
A Model With Default Views of Various Types
A model with default views has several predefined views, each associated with a given type. This is often used for when a submodel should have an attached view, but the view differs depending on the serialization format
Parameters are as the superclass, except for any parameters ending in ‘_view’: these parameters get stored as default views.
The default ‘default views’ are
(‘type’ is one of the ‘default views’ defined for this model) Serializes this model using the default view for ‘type’
Return type: | str |
---|---|
Returns: | this model serialized as ‘type’ |