<filename>python/swagger_client/models/person.py
# coding: utf-8

"""
    OpenAPI definition

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: v0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six


class Person(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 = {
        'get_id': 'str',
        'legacyid': 'str',
        'name': 'str',
        'birthdate': 'datetime',
        'deathdate': 'datetime',
        'alive': 'bool',
        'biography': 'str',
        'period': 'str',
        'affiliation': 'str',
        'address': 'Address',
        'person_relations': 'list[Link]',
        'person_parents': 'list[Link]',
        'person_work_relations': 'list[Link]'
    }

    attribute_map = {
        'get_id': 'get_id',
        'legacyid': 'legacyid',
        'name': 'name',
        'birthdate': 'birthdate',
        'deathdate': 'deathdate',
        'alive': 'alive',
        'biography': 'biography',
        'period': 'period',
        'affiliation': 'affiliation',
        'address': 'address',
        'person_relations': 'person_relations',
        'person_parents': 'person_parents',
        'person_work_relations': 'person_work_relations'
    }

    def __init__(self, get_id=None, legacyid=None, name=None, birthdate=None, deathdate=None, alive=None, biography=None, period=None, affiliation=None, address=None, person_relations=None, person_parents=None, person_work_relations=None):  # noqa: E501
        """Person - a model defined in Swagger"""  # noqa: E501
        self._get_id = None
        self._legacyid = None
        self._name = None
        self._birthdate = None
        self._deathdate = None
        self._alive = None
        self._biography = None
        self._period = None
        self._affiliation = None
        self._address = None
        self._person_relations = None
        self._person_parents = None
        self._person_work_relations = None
        self.discriminator = None
        if get_id is not None:
            self.get_id = get_id
        if legacyid is not None:
            self.legacyid = legacyid
        if name is not None:
            self.name = name
        if birthdate is not None:
            self.birthdate = birthdate
        if deathdate is not None:
            self.deathdate = deathdate
        if alive is not None:
            self.alive = alive
        if biography is not None:
            self.biography = biography
        if period is not None:
            self.period = period
        if affiliation is not None:
            self.affiliation = affiliation
        if address is not None:
            self.address = address
        if person_relations is not None:
            self.person_relations = person_relations
        if person_parents is not None:
            self.person_parents = person_parents
        if person_work_relations is not None:
            self.person_work_relations = person_work_relations

    @property
    def get_id(self):
        """Gets the get_id of this Person.  # noqa: E501


        :return: The get_id of this Person.  # noqa: E501
        :rtype: str
        """
        return self._get_id

    @get_id.setter
    def get_id(self, get_id):
        """Sets the get_id of this Person.


        :param get_id: The get_id of this Person.  # noqa: E501
        :type: str
        """

        self._get_id = get_id

    @property
    def legacyid(self):
        """Gets the legacyid of this Person.  # noqa: E501


        :return: The legacyid of this Person.  # noqa: E501
        :rtype: str
        """
        return self._legacyid

    @legacyid.setter
    def legacyid(self, legacyid):
        """Sets the legacyid of this Person.


        :param legacyid: The legacyid of this Person.  # noqa: E501
        :type: str
        """

        self._legacyid = legacyid

    @property
    def name(self):
        """Gets the name of this Person.  # noqa: E501


        :return: The name of this Person.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this Person.


        :param name: The name of this Person.  # noqa: E501
        :type: str
        """

        self._name = name

    @property
    def birthdate(self):
        """Gets the birthdate of this Person.  # noqa: E501


        :return: The birthdate of this Person.  # noqa: E501
        :rtype: datetime
        """
        return self._birthdate

    @birthdate.setter
    def birthdate(self, birthdate):
        """Sets the birthdate of this Person.


        :param birthdate: The birthdate of this Person.  # noqa: E501
        :type: datetime
        """

        self._birthdate = birthdate

    @property
    def deathdate(self):
        """Gets the deathdate of this Person.  # noqa: E501


        :return: The deathdate of this Person.  # noqa: E501
        :rtype: datetime
        """
        return self._deathdate

    @deathdate.setter
    def deathdate(self, deathdate):
        """Sets the deathdate of this Person.


        :param deathdate: The deathdate of this Person.  # noqa: E501
        :type: datetime
        """

        self._deathdate = deathdate

    @property
    def alive(self):
        """Gets the alive of this Person.  # noqa: E501


        :return: The alive of this Person.  # noqa: E501
        :rtype: bool
        """
        return self._alive

    @alive.setter
    def alive(self, alive):
        """Sets the alive of this Person.


        :param alive: The alive of this Person.  # noqa: E501
        :type: bool
        """

        self._alive = alive

    @property
    def biography(self):
        """Gets the biography of this Person.  # noqa: E501


        :return: The biography of this Person.  # noqa: E501
        :rtype: str
        """
        return self._biography

    @biography.setter
    def biography(self, biography):
        """Sets the biography of this Person.


        :param biography: The biography of this Person.  # noqa: E501
        :type: str
        """

        self._biography = biography

    @property
    def period(self):
        """Gets the period of this Person.  # noqa: E501


        :return: The period of this Person.  # noqa: E501
        :rtype: str
        """
        return self._period

    @period.setter
    def period(self, period):
        """Sets the period of this Person.


        :param period: The period of this Person.  # noqa: E501
        :type: str
        """

        self._period = period

    @property
    def affiliation(self):
        """Gets the affiliation of this Person.  # noqa: E501


        :return: The affiliation of this Person.  # noqa: E501
        :rtype: str
        """
        return self._affiliation

    @affiliation.setter
    def affiliation(self, affiliation):
        """Sets the affiliation of this Person.


        :param affiliation: The affiliation of this Person.  # noqa: E501
        :type: str
        """

        self._affiliation = affiliation

    @property
    def address(self):
        """Gets the address of this Person.  # noqa: E501


        :return: The address of this Person.  # noqa: E501
        :rtype: Address
        """
        return self._address

    @address.setter
    def address(self, address):
        """Sets the address of this Person.


        :param address: The address of this Person.  # noqa: E501
        :type: Address
        """

        self._address = address

    @property
    def person_relations(self):
        """Gets the person_relations of this Person.  # noqa: E501


        :return: The person_relations of this Person.  # noqa: E501
        :rtype: list[Link]
        """
        return self._person_relations

    @person_relations.setter
    def person_relations(self, person_relations):
        """Sets the person_relations of this Person.


        :param person_relations: The person_relations of this Person.  # noqa: E501
        :type: list[Link]
        """

        self._person_relations = person_relations

    @property
    def person_parents(self):
        """Gets the person_parents of this Person.  # noqa: E501


        :return: The person_parents of this Person.  # noqa: E501
        :rtype: list[Link]
        """
        return self._person_parents

    @person_parents.setter
    def person_parents(self, person_parents):
        """Sets the person_parents of this Person.


        :param person_parents: The person_parents of this Person.  # noqa: E501
        :type: list[Link]
        """

        self._person_parents = person_parents

    @property
    def person_work_relations(self):
        """Gets the person_work_relations of this Person.  # noqa: E501


        :return: The person_work_relations of this Person.  # noqa: E501
        :rtype: list[Link]
        """
        return self._person_work_relations

    @person_work_relations.setter
    def person_work_relations(self, person_work_relations):
        """Sets the person_work_relations of this Person.


        :param person_work_relations: The person_work_relations of this Person.  # noqa: E501
        :type: list[Link]
        """

        self._person_work_relations = person_work_relations

    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(Person, 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, Person):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other

<filename>python/swagger_client/models/person.py
# coding: utf-8

"""
    OpenAPI definition

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: v0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six


class Person(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 = {
        'get_id': 'str',
        'legacyid': 'str',
        'name': 'str',
        'birthdate': 'datetime',
        'deathdate': 'datetime',
        'alive': 'bool',
        'biography': 'str',
        'period': 'str',
        'affiliation': 'str',
        'address': 'Address',
        'person_relations': 'list[Link]',
        'person_parents': 'list[Link]',
        'person_work_relations': 'list[Link]'
    }

    attribute_map = {
        'get_id': 'get_id',
        'legacyid': 'legacyid',
        'name': 'name',
        'birthdate': 'birthdate',
        'deathdate': 'deathdate',
        'alive': 'alive',
        'biography': 'biography',
        'period': 'period',
        'affiliation': 'affiliation',
        'address': 'address',
        'person_relations': 'person_relations',
        'person_parents': 'person_parents',
        'person_work_relations': 'person_work_relations'
    }

    def __init__(self, get_id=None, legacyid=None, name=None, birthdate=None, deathdate=None, alive=None, biography=None, period=None, affiliation=None, address=None, person_relations=None, person_parents=None, person_work_relations=None):  # noqa: E501
        """Person - a model defined in Swagger"""  # noqa: E501
        self._get_id = None
        self._legacyid = None
        self._name = None
        self._birthdate = None
        self._deathdate = None
        self._alive = None
        self._biography = None
        self._period = None
        self._affiliation = None
        self._address = None
        self._person_relations = None
        self._person_parents = None
        self._person_work_relations = None
        self.discriminator = None
        if get_id is not None:
            self.get_id = get_id
        if legacyid is not None:
            self.legacyid = legacyid
        if name is not None:
            self.name = name
        if birthdate is not None:
            self.birthdate = birthdate
        if deathdate is not None:
            self.deathdate = deathdate
        if alive is not None:
            self.alive = alive
        if biography is not None:
            self.biography = biography
        if period is not None:
            self.period = period
        if affiliation is not None:
            self.affiliation = affiliation
        if address is not None:
            self.address = address
        if person_relations is not None:
            self.person_relations = person_relations
        if person_parents is not None:
            self.person_parents = person_parents
        if person_work_relations is not None:
            self.person_work_relations = person_work_relations

    @property
    def get_id(self):
        """Gets the get_id of this Person.  # noqa: E501


        :return: The get_id of this Person.  # noqa: E501
        :rtype: str
        """
        return self._get_id

    @get_id.setter
    def get_id(self, get_id):
        """Sets the get_id of this Person.


        :param get_id: The get_id of this Person.  # noqa: E501
        :type: str
        """

        self._get_id = get_id

    @property
    def legacyid(self):
        """Gets the legacyid of this Person.  # noqa: E501


        :return: The legacyid of this Person.  # noqa: E501
        :rtype: str
        """
        return self._legacyid

    @legacyid.setter
    def legacyid(self, legacyid):
        """Sets the legacyid of this Person.


        :param legacyid: The legacyid of this Person.  # noqa: E501
        :type: str
        """

        self._legacyid = legacyid

    @property
    def name(self):
        """Gets the name of this Person.  # noqa: E501


        :return: The name of this Person.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this Person.


        :param name: The name of this Person.  # noqa: E501
        :type: str
        """

        self._name = name

    @property
    def birthdate(self):
        """Gets the birthdate of this Person.  # noqa: E501


        :return: The birthdate of this Person.  # noqa: E501
        :rtype: datetime
        """
        return self._birthdate

    @birthdate.setter
    def birthdate(self, birthdate):
        """Sets the birthdate of this Person.


        :param birthdate: The birthdate of this Person.  # noqa: E501
        :type: datetime
        """

        self._birthdate = birthdate

    @property
    def deathdate(self):
        """Gets the deathdate of this Person.  # noqa: E501


        :return: The deathdate of this Person.  # noqa: E501
        :rtype: datetime
        """
        return self._deathdate

    @deathdate.setter
    def deathdate(self, deathdate):
        """Sets the deathdate of this Person.


        :param deathdate: The deathdate of this Person.  # noqa: E501
        :type: datetime
        """

        self._deathdate = deathdate

    @property
    def alive(self):
        """Gets the alive of this Person.  # noqa: E501


        :return: The alive of this Person.  # noqa: E501
        :rtype: bool
        """
        return self._alive

    @alive.setter
    def alive(self, alive):
        """Sets the alive of this Person.


        :param alive: The alive of this Person.  # noqa: E501
        :type: bool
        """

        self._alive = alive

    @property
    def biography(self):
        """Gets the biography of this Person.  # noqa: E501


        :return: The biography of this Person.  # noqa: E501
        :rtype: str
        """
        return self._biography

    @biography.setter
    def biography(self, biography):
        """Sets the biography of this Person.


        :param biography: The biography of this Person.  # noqa: E501
        :type: str
        """

        self._biography = biography

    @property
    def period(self):
        """Gets the period of this Person.  # noqa: E501


        :return: The period of this Person.  # noqa: E501
        :rtype: str
        """
        return self._period

    @period.setter
    def period(self, period):
        """Sets the period of this Person.


        :param period: The period of this Person.  # noqa: E501
        :type: str
        """

        self._period = period

    @property
    def affiliation(self):
        """Gets the affiliation of this Person.  # noqa: E501


        :return: The affiliation of this Person.  # noqa: E501
        :rtype: str
        """
        return self._affiliation

    @affiliation.setter
    def affiliation(self, affiliation):
        """Sets the affiliation of this Person.


        :param affiliation: The affiliation of this Person.  # noqa: E501
        :type: str
        """

        self._affiliation = affiliation

    @property
    def address(self):
        """Gets the address of this Person.  # noqa: E501


        :return: The address of this Person.  # noqa: E501
        :rtype: Address
        """
        return self._address

    @address.setter
    def address(self, address):
        """Sets the address of this Person.


        :param address: The address of this Person.  # noqa: E501
        :type: Address
        """

        self._address = address

    @property
    def person_relations(self):
        """Gets the person_relations of this Person.  # noqa: E501


        :return: The person_relations of this Person.  # noqa: E501
        :rtype: list[Link]
        """
        return self._person_relations

    @person_relations.setter
    def person_relations(self, person_relations):
        """Sets the person_relations of this Person.


        :param person_relations: The person_relations of this Person.  # noqa: E501
        :type: list[Link]
        """

        self._person_relations = person_relations

    @property
    def person_parents(self):
        """Gets the person_parents of this Person.  # noqa: E501


        :return: The person_parents of this Person.  # noqa: E501
        :rtype: list[Link]
        """
        return self._person_parents

    @person_parents.setter
    def person_parents(self, person_parents):
        """Sets the person_parents of this Person.


        :param person_parents: The person_parents of this Person.  # noqa: E501
        :type: list[Link]
        """

        self._person_parents = person_parents

    @property
    def person_work_relations(self):
        """Gets the person_work_relations of this Person.  # noqa: E501


        :return: The person_work_relations of this Person.  # noqa: E501
        :rtype: list[Link]
        """
        return self._person_work_relations

    @person_work_relations.setter
    def person_work_relations(self, person_work_relations):
        """Sets the person_work_relations of this Person.


        :param person_work_relations: The person_work_relations of this Person.  # noqa: E501
        :type: list[Link]
        """

        self._person_work_relations = person_work_relations

    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(Person, 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, Person):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other

# coding: utf-8 OpenAPI definition      No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501      OpenAPI spec version: v0          Generated by: https://github.com/swagger-api/swagger-codegen.git # noqa: F401 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. # noqa: E501 Person - a model defined in Swagger # noqa: E501 Gets the get_id of this Person.  # noqa: E501           :return: The get_id of this Person.  # noqa: E501         :rtype: str Sets the get_id of this Person.           :param get_id: The get_id of this Person.  # noqa: E501         :type: str Gets the legacyid of this Person.  # noqa: E501           :return: The legacyid of this Person.  # noqa: E501         :rtype: str Sets the legacyid of this Person.           :param legacyid: The legacyid of this Person.  # noqa: E501         :type: str Gets the name of this Person.  # noqa: E501           :return: The name of this Person.  # noqa: E501         :rtype: str Sets the name of this Person.           :param name: The name of this Person.  # noqa: E501         :type: str Gets the birthdate of this Person.  # noqa: E501           :return: The birthdate of this Person.  # noqa: E501         :rtype: datetime Sets the birthdate of this Person.           :param birthdate: The birthdate of this Person.  # noqa: E501         :type: datetime Gets the deathdate of this Person.  # noqa: E501           :return: The deathdate of this Person.  # noqa: E501         :rtype: datetime Sets the deathdate of this Person.           :param deathdate: The deathdate of this Person.  # noqa: E501         :type: datetime Gets the alive of this Person.  # noqa: E501           :return: The alive of this Person.  # noqa: E501         :rtype: bool Sets the alive of this Person.           :param alive: The alive of this Person.  # noqa: E501         :type: bool Gets the biography of this Person.  # noqa: E501           :return: The biography of this Person.  # noqa: E501         :rtype: str Sets the biography of this Person.           :param biography: The biography of this Person.  # noqa: E501         :type: str Gets the period of this Person.  # noqa: E501           :return: The period of this Person.  # noqa: E501         :rtype: str Sets the period of this Person.           :param period: The period of this Person.  # noqa: E501         :type: str Gets the affiliation of this Person.  # noqa: E501           :return: The affiliation of this Person.  # noqa: E501         :rtype: str Sets the affiliation of this Person.           :param affiliation: The affiliation of this Person.  # noqa: E501         :type: str Gets the address of this Person.  # noqa: E501           :return: The address of this Person.  # noqa: E501         :rtype: Address Sets the address of this Person.           :param address: The address of this Person.  # noqa: E501         :type: Address Gets the person_relations of this Person.  # noqa: E501           :return: The person_relations of this Person.  # noqa: E501         :rtype: list[Link] Sets the person_relations of this Person.           :param person_relations: The person_relations of this Person.  # noqa: E501         :type: list[Link] Gets the person_parents of this Person.  # noqa: E501           :return: The person_parents of this Person.  # noqa: E501         :rtype: list[Link] Sets the person_parents of this Person.           :param person_parents: The person_parents of this Person.  # noqa: E501         :type: list[Link] Gets the person_work_relations of this Person.  # noqa: E501           :return: The person_work_relations of this Person.  # noqa: E501         :rtype: list[Link] Sets the person_work_relations of this Person.           :param person_work_relations: The person_work_relations of this Person.  # noqa: E501         :type: list[Link] Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal