You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
302 lines
8.1 KiB
Python
302 lines
8.1 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
BuJu API
|
|
|
|
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
|
|
OpenAPI spec version: 0.1.0
|
|
|
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
"""
|
|
|
|
import pprint
|
|
import re # noqa: F401
|
|
|
|
import six
|
|
|
|
class Schueler(object):
|
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
|
|
Do not edit the class manually.
|
|
"""
|
|
"""
|
|
Attributes:
|
|
swagger_types (dict): The key is attribute name
|
|
and the value is attribute type.
|
|
attribute_map (dict): The key is attribute name
|
|
and the value is json key in definition.
|
|
"""
|
|
swagger_types = {
|
|
'id': 'str',
|
|
'vorname': 'str',
|
|
'nachname': 'str',
|
|
'geburtsjahr': 'float',
|
|
'unterscheider': 'str',
|
|
'geschlecht': 'str',
|
|
'anwesenheit': 'bool',
|
|
'riegen_id': 'str'
|
|
}
|
|
|
|
attribute_map = {
|
|
'id': 'id',
|
|
'vorname': 'vorname',
|
|
'nachname': 'nachname',
|
|
'geburtsjahr': 'geburtsjahr',
|
|
'unterscheider': 'unterscheider',
|
|
'geschlecht': 'geschlecht',
|
|
'anwesenheit': 'anwesenheit',
|
|
'riegen_id': 'riegen_id'
|
|
}
|
|
|
|
def __init__(self, id=None, vorname=None, nachname=None, geburtsjahr=None, unterscheider=None, geschlecht=None, anwesenheit=True, riegen_id=None): # noqa: E501
|
|
"""Schueler - a model defined in Swagger""" # noqa: E501
|
|
self._id = None
|
|
self._vorname = None
|
|
self._nachname = None
|
|
self._geburtsjahr = None
|
|
self._unterscheider = None
|
|
self._geschlecht = None
|
|
self._anwesenheit = None
|
|
self._riegen_id = None
|
|
self.discriminator = None
|
|
self.id = id
|
|
self.vorname = vorname
|
|
self.nachname = nachname
|
|
if geburtsjahr is not None:
|
|
self.geburtsjahr = geburtsjahr
|
|
if unterscheider is not None:
|
|
self.unterscheider = unterscheider
|
|
if geschlecht is not None:
|
|
self.geschlecht = geschlecht
|
|
if anwesenheit is not None:
|
|
self.anwesenheit = anwesenheit
|
|
if riegen_id is not None:
|
|
self.riegen_id = riegen_id
|
|
|
|
@property
|
|
def id(self):
|
|
"""Gets the id of this Schueler. # noqa: E501
|
|
|
|
|
|
:return: The id of this Schueler. # noqa: E501
|
|
:rtype: str
|
|
"""
|
|
return self._id
|
|
|
|
@id.setter
|
|
def id(self, id):
|
|
"""Sets the id of this Schueler.
|
|
|
|
|
|
:param id: The id of this Schueler. # noqa: E501
|
|
:type: str
|
|
"""
|
|
if id is None:
|
|
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
|
|
self._id = id
|
|
|
|
@property
|
|
def vorname(self):
|
|
"""Gets the vorname of this Schueler. # noqa: E501
|
|
|
|
|
|
:return: The vorname of this Schueler. # noqa: E501
|
|
:rtype: str
|
|
"""
|
|
return self._vorname
|
|
|
|
@vorname.setter
|
|
def vorname(self, vorname):
|
|
"""Sets the vorname of this Schueler.
|
|
|
|
|
|
:param vorname: The vorname of this Schueler. # noqa: E501
|
|
:type: str
|
|
"""
|
|
if vorname is None:
|
|
raise ValueError("Invalid value for `vorname`, must not be `None`") # noqa: E501
|
|
|
|
self._vorname = vorname
|
|
|
|
@property
|
|
def nachname(self):
|
|
"""Gets the nachname of this Schueler. # noqa: E501
|
|
|
|
|
|
:return: The nachname of this Schueler. # noqa: E501
|
|
:rtype: str
|
|
"""
|
|
return self._nachname
|
|
|
|
@nachname.setter
|
|
def nachname(self, nachname):
|
|
"""Sets the nachname of this Schueler.
|
|
|
|
|
|
:param nachname: The nachname of this Schueler. # noqa: E501
|
|
:type: str
|
|
"""
|
|
if nachname is None:
|
|
raise ValueError("Invalid value for `nachname`, must not be `None`") # noqa: E501
|
|
|
|
self._nachname = nachname
|
|
|
|
@property
|
|
def geburtsjahr(self):
|
|
"""Gets the geburtsjahr of this Schueler. # noqa: E501
|
|
|
|
|
|
:return: The geburtsjahr of this Schueler. # noqa: E501
|
|
:rtype: float
|
|
"""
|
|
return self._geburtsjahr
|
|
|
|
@geburtsjahr.setter
|
|
def geburtsjahr(self, geburtsjahr):
|
|
"""Sets the geburtsjahr of this Schueler.
|
|
|
|
|
|
:param geburtsjahr: The geburtsjahr of this Schueler. # noqa: E501
|
|
:type: float
|
|
"""
|
|
|
|
self._geburtsjahr = geburtsjahr
|
|
|
|
@property
|
|
def unterscheider(self):
|
|
"""Gets the unterscheider of this Schueler. # noqa: E501
|
|
|
|
|
|
:return: The unterscheider of this Schueler. # noqa: E501
|
|
:rtype: str
|
|
"""
|
|
return self._unterscheider
|
|
|
|
@unterscheider.setter
|
|
def unterscheider(self, unterscheider):
|
|
"""Sets the unterscheider of this Schueler.
|
|
|
|
|
|
:param unterscheider: The unterscheider of this Schueler. # noqa: E501
|
|
:type: str
|
|
"""
|
|
|
|
self._unterscheider = unterscheider
|
|
|
|
@property
|
|
def geschlecht(self):
|
|
"""Gets the geschlecht of this Schueler. # noqa: E501
|
|
|
|
|
|
:return: The geschlecht of this Schueler. # noqa: E501
|
|
:rtype: str
|
|
"""
|
|
return self._geschlecht
|
|
|
|
@geschlecht.setter
|
|
def geschlecht(self, geschlecht):
|
|
"""Sets the geschlecht of this Schueler.
|
|
|
|
|
|
:param geschlecht: The geschlecht of this Schueler. # noqa: E501
|
|
:type: str
|
|
"""
|
|
allowed_values = ["maennlich", "weiblich", "divers"] # noqa: E501
|
|
if geschlecht not in allowed_values:
|
|
raise ValueError(
|
|
"Invalid value for `geschlecht` ({0}), must be one of {1}" # noqa: E501
|
|
.format(geschlecht, allowed_values)
|
|
)
|
|
|
|
self._geschlecht = geschlecht
|
|
|
|
@property
|
|
def anwesenheit(self):
|
|
"""Gets the anwesenheit of this Schueler. # noqa: E501
|
|
|
|
|
|
:return: The anwesenheit of this Schueler. # noqa: E501
|
|
:rtype: bool
|
|
"""
|
|
return self._anwesenheit
|
|
|
|
@anwesenheit.setter
|
|
def anwesenheit(self, anwesenheit):
|
|
"""Sets the anwesenheit of this Schueler.
|
|
|
|
|
|
:param anwesenheit: The anwesenheit of this Schueler. # noqa: E501
|
|
:type: bool
|
|
"""
|
|
|
|
self._anwesenheit = anwesenheit
|
|
|
|
@property
|
|
def riegen_id(self):
|
|
"""Gets the riegen_id of this Schueler. # noqa: E501
|
|
|
|
|
|
:return: The riegen_id of this Schueler. # noqa: E501
|
|
:rtype: str
|
|
"""
|
|
return self._riegen_id
|
|
|
|
@riegen_id.setter
|
|
def riegen_id(self, riegen_id):
|
|
"""Sets the riegen_id of this Schueler.
|
|
|
|
|
|
:param riegen_id: The riegen_id of this Schueler. # noqa: E501
|
|
:type: str
|
|
"""
|
|
|
|
self._riegen_id = riegen_id
|
|
|
|
def to_dict(self):
|
|
"""Returns the model properties as a dict"""
|
|
result = {}
|
|
|
|
for attr, _ in six.iteritems(self.swagger_types):
|
|
value = getattr(self, attr)
|
|
if isinstance(value, list):
|
|
result[attr] = list(map(
|
|
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
value
|
|
))
|
|
elif hasattr(value, "to_dict"):
|
|
result[attr] = value.to_dict()
|
|
elif isinstance(value, dict):
|
|
result[attr] = dict(map(
|
|
lambda item: (item[0], item[1].to_dict())
|
|
if hasattr(item[1], "to_dict") else item,
|
|
value.items()
|
|
))
|
|
else:
|
|
result[attr] = value
|
|
if issubclass(Schueler, dict):
|
|
for key, value in self.items():
|
|
result[key] = value
|
|
|
|
return result
|
|
|
|
def to_str(self):
|
|
"""Returns the string representation of the model"""
|
|
return pprint.pformat(self.to_dict())
|
|
|
|
def __repr__(self):
|
|
"""For `print` and `pprint`"""
|
|
return self.to_str()
|
|
|
|
def __eq__(self, other):
|
|
"""Returns true if both objects are equal"""
|
|
if not isinstance(other, Schueler):
|
|
return False
|
|
|
|
return self.__dict__ == other.__dict__
|
|
|
|
def __ne__(self, other):
|
|
"""Returns true if both objects are not equal"""
|
|
return not self == other
|