# 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 Disziplin(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', 'name': 'str', 'a': 'float', 'c': 'float', 'd': 'float', 'geschlecht': 'str', 'formel': 'str' } attribute_map = { 'id': 'id', 'name': 'name', 'a': 'a', 'c': 'c', 'd': 'd', 'geschlecht': 'geschlecht', 'formel': 'formel' } def __init__(self, id=None, name=None, a=None, c=None, d=None, geschlecht=None, formel=None): # noqa: E501 """Disziplin - a model defined in Swagger""" # noqa: E501 self._id = None self._name = None self._a = None self._c = None self._d = None self._geschlecht = None self._formel = None self.discriminator = None self.id = id self.name = name if a is not None: self.a = a if c is not None: self.c = c if d is not None: self.d = d self.geschlecht = geschlecht self.formel = formel @property def id(self): """Gets the id of this Disziplin. # noqa: E501 :return: The id of this Disziplin. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this Disziplin. :param id: The id of this Disziplin. # 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 name(self): """Gets the name of this Disziplin. # noqa: E501 :return: The name of this Disziplin. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Disziplin. :param name: The name of this Disziplin. # noqa: E501 :type: str """ if name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def a(self): """Gets the a of this Disziplin. # noqa: E501 :return: The a of this Disziplin. # noqa: E501 :rtype: float """ return self._a @a.setter def a(self, a): """Sets the a of this Disziplin. :param a: The a of this Disziplin. # noqa: E501 :type: float """ self._a = a @property def c(self): """Gets the c of this Disziplin. # noqa: E501 :return: The c of this Disziplin. # noqa: E501 :rtype: float """ return self._c @c.setter def c(self, c): """Sets the c of this Disziplin. :param c: The c of this Disziplin. # noqa: E501 :type: float """ self._c = c @property def d(self): """Gets the d of this Disziplin. # noqa: E501 :return: The d of this Disziplin. # noqa: E501 :rtype: float """ return self._d @d.setter def d(self, d): """Sets the d of this Disziplin. :param d: The d of this Disziplin. # noqa: E501 :type: float """ self._d = d @property def geschlecht(self): """Gets the geschlecht of this Disziplin. # noqa: E501 :return: The geschlecht of this Disziplin. # noqa: E501 :rtype: str """ return self._geschlecht @geschlecht.setter def geschlecht(self, geschlecht): """Sets the geschlecht of this Disziplin. :param geschlecht: The geschlecht of this Disziplin. # noqa: E501 :type: str """ if geschlecht is None: raise ValueError("Invalid value for `geschlecht`, must not be `None`") # noqa: E501 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 formel(self): """Gets the formel of this Disziplin. # noqa: E501 :return: The formel of this Disziplin. # noqa: E501 :rtype: str """ return self._formel @formel.setter def formel(self, formel): """Sets the formel of this Disziplin. :param formel: The formel of this Disziplin. # noqa: E501 :type: str """ if formel is None: raise ValueError("Invalid value for `formel`, must not be `None`") # noqa: E501 allowed_values = ["lauf", "andere"] # noqa: E501 if formel not in allowed_values: raise ValueError( "Invalid value for `formel` ({0}), must be one of {1}" # noqa: E501 .format(formel, allowed_values) ) self._formel = formel 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(Disziplin, 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, Disziplin): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other