# coding: utf-8 """ eLabFTW REST API v2 Documentation This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class IdpsBody(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 = { 'name': 'str', 'entityid': 'str', 'email_attr': 'str', 'fname_attr': 'str', 'lname_attr': 'str', 'team_attr': 'str', 'orgid_attr': 'str', 'orcid_attr': 'str' } attribute_map = { 'name': 'name', 'entityid': 'entityid', 'email_attr': 'email_attr', 'fname_attr': 'fname_attr', 'lname_attr': 'lname_attr', 'team_attr': 'team_attr', 'orgid_attr': 'orgid_attr', 'orcid_attr': 'orcid_attr' } def __init__(self, name=None, entityid=None, email_attr=None, fname_attr=None, lname_attr=None, team_attr=None, orgid_attr=None, orcid_attr=None): # noqa: E501 """IdpsBody - a model defined in Swagger""" # noqa: E501 self._name = None self._entityid = None self._email_attr = None self._fname_attr = None self._lname_attr = None self._team_attr = None self._orgid_attr = None self._orcid_attr = None self.discriminator = None self.name = name self.entityid = entityid self.email_attr = email_attr if fname_attr is not None: self.fname_attr = fname_attr if lname_attr is not None: self.lname_attr = lname_attr if team_attr is not None: self.team_attr = team_attr if orgid_attr is not None: self.orgid_attr = orgid_attr if orcid_attr is not None: self.orcid_attr = orcid_attr @property def name(self): """Gets the name of this IdpsBody. # noqa: E501 A name for the IDP. # noqa: E501 :return: The name of this IdpsBody. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this IdpsBody. A name for the IDP. # noqa: E501 :param name: The name of this IdpsBody. # 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 entityid(self): """Gets the entityid of this IdpsBody. # noqa: E501 Entityid. # noqa: E501 :return: The entityid of this IdpsBody. # noqa: E501 :rtype: str """ return self._entityid @entityid.setter def entityid(self, entityid): """Sets the entityid of this IdpsBody. Entityid. # noqa: E501 :param entityid: The entityid of this IdpsBody. # noqa: E501 :type: str """ if entityid is None: raise ValueError("Invalid value for `entityid`, must not be `None`") # noqa: E501 self._entityid = entityid @property def email_attr(self): """Gets the email_attr of this IdpsBody. # noqa: E501 What attribute to look for the email. # noqa: E501 :return: The email_attr of this IdpsBody. # noqa: E501 :rtype: str """ return self._email_attr @email_attr.setter def email_attr(self, email_attr): """Sets the email_attr of this IdpsBody. What attribute to look for the email. # noqa: E501 :param email_attr: The email_attr of this IdpsBody. # noqa: E501 :type: str """ if email_attr is None: raise ValueError("Invalid value for `email_attr`, must not be `None`") # noqa: E501 self._email_attr = email_attr @property def fname_attr(self): """Gets the fname_attr of this IdpsBody. # noqa: E501 What attribute to look for the firstname. # noqa: E501 :return: The fname_attr of this IdpsBody. # noqa: E501 :rtype: str """ return self._fname_attr @fname_attr.setter def fname_attr(self, fname_attr): """Sets the fname_attr of this IdpsBody. What attribute to look for the firstname. # noqa: E501 :param fname_attr: The fname_attr of this IdpsBody. # noqa: E501 :type: str """ self._fname_attr = fname_attr @property def lname_attr(self): """Gets the lname_attr of this IdpsBody. # noqa: E501 What attribute to look for the lastname. # noqa: E501 :return: The lname_attr of this IdpsBody. # noqa: E501 :rtype: str """ return self._lname_attr @lname_attr.setter def lname_attr(self, lname_attr): """Sets the lname_attr of this IdpsBody. What attribute to look for the lastname. # noqa: E501 :param lname_attr: The lname_attr of this IdpsBody. # noqa: E501 :type: str """ self._lname_attr = lname_attr @property def team_attr(self): """Gets the team_attr of this IdpsBody. # noqa: E501 What attribute to look for the team. # noqa: E501 :return: The team_attr of this IdpsBody. # noqa: E501 :rtype: str """ return self._team_attr @team_attr.setter def team_attr(self, team_attr): """Sets the team_attr of this IdpsBody. What attribute to look for the team. # noqa: E501 :param team_attr: The team_attr of this IdpsBody. # noqa: E501 :type: str """ self._team_attr = team_attr @property def orgid_attr(self): """Gets the orgid_attr of this IdpsBody. # noqa: E501 What attribute to look for the internal id. # noqa: E501 :return: The orgid_attr of this IdpsBody. # noqa: E501 :rtype: str """ return self._orgid_attr @orgid_attr.setter def orgid_attr(self, orgid_attr): """Sets the orgid_attr of this IdpsBody. What attribute to look for the internal id. # noqa: E501 :param orgid_attr: The orgid_attr of this IdpsBody. # noqa: E501 :type: str """ self._orgid_attr = orgid_attr @property def orcid_attr(self): """Gets the orcid_attr of this IdpsBody. # noqa: E501 What attribute to look for the ORCID. # noqa: E501 :return: The orcid_attr of this IdpsBody. # noqa: E501 :rtype: str """ return self._orcid_attr @orcid_attr.setter def orcid_attr(self, orcid_attr): """Sets the orcid_attr of this IdpsBody. What attribute to look for the ORCID. # noqa: E501 :param orcid_attr: The orcid_attr of this IdpsBody. # noqa: E501 :type: str """ self._orcid_attr = orcid_attr 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(IdpsBody, 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, IdpsBody): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other