python.model_templates.model_normal.mustache Maven / Gradle / Ivy
class {{classname}}(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
Attributes:
{{> model_templates/docstring_allowed }}
attribute_map (dict): The key is attribute name
and the value is json key in definition.
discriminator_value_class_map (dict): A dict to go from the discriminator
variable value to the discriminator class name.
{{> model_templates/docstring_openapi_validations }}
"""
{{> model_templates/classvars }}
attribute_map = {
{{#requiredVars}}
'{{name}}': '{{baseName}}', # noqa: E501
{{/requiredVars}}
{{#optionalVars}}
'{{name}}': '{{baseName}}', # noqa: E501
{{/optionalVars}}
}
read_only_vars = {
{{#requiredVars}}
{{#isReadOnly}}
'{{name}}', # noqa: E501
{{/isReadOnly}}
{{/requiredVars}}
{{#optionalVars}}
{{#isReadOnly}}
'{{name}}', # noqa: E501
{{/isReadOnly}}
{{/optionalVars}}
}
_composed_schemas = {}
{{> model_templates/method_from_openapi_data_normal}}
{{> model_templates/method_init_normal}}