Files
Labvoice/vendor/elabapi-python/elabapi_python/models/idp.py
T
2026-08-30 20:44:00 +02:00

427 lines
10 KiB
Python

# 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 Idp(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': 'int',
'name': 'str',
'entityid': 'str',
'enabled': 'int',
'email_attr': 'str',
'fname_attr': 'str',
'lname_attr': 'str',
'team_attr': 'str',
'orgid_attr': 'str',
'orcid_attr': 'str',
'source': 'ModelInt',
'certs': 'list[IdpCert]',
'endpoints': 'list[IdpEndpoint]'
}
attribute_map = {
'id': 'id',
'name': 'name',
'entityid': 'entityid',
'enabled': 'enabled',
'email_attr': 'email_attr',
'fname_attr': 'fname_attr',
'lname_attr': 'lname_attr',
'team_attr': 'team_attr',
'orgid_attr': 'orgid_attr',
'orcid_attr': 'orcid_attr',
'source': 'source',
'certs': 'certs',
'endpoints': 'endpoints'
}
def __init__(self, id=None, name=None, entityid=None, enabled=None, email_attr=None, fname_attr=None, lname_attr=None, team_attr=None, orgid_attr=None, orcid_attr=None, source=None, certs=None, endpoints=None): # noqa: E501
"""Idp - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._entityid = None
self._enabled = 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._source = None
self._certs = None
self._endpoints = None
self.discriminator = None
if id is not None:
self.id = id
if name is not None:
self.name = name
if entityid is not None:
self.entityid = entityid
if enabled is not None:
self.enabled = enabled
if email_attr is not None:
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
if source is not None:
self.source = source
if certs is not None:
self.certs = certs
if endpoints is not None:
self.endpoints = endpoints
@property
def id(self):
"""Gets the id of this Idp. # noqa: E501
:return: The id of this Idp. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Idp.
:param id: The id of this Idp. # noqa: E501
:type: int
"""
self._id = id
@property
def name(self):
"""Gets the name of this Idp. # noqa: E501
:return: The name of this Idp. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Idp.
:param name: The name of this Idp. # noqa: E501
:type: str
"""
self._name = name
@property
def entityid(self):
"""Gets the entityid of this Idp. # noqa: E501
:return: The entityid of this Idp. # noqa: E501
:rtype: str
"""
return self._entityid
@entityid.setter
def entityid(self, entityid):
"""Sets the entityid of this Idp.
:param entityid: The entityid of this Idp. # noqa: E501
:type: str
"""
self._entityid = entityid
@property
def enabled(self):
"""Gets the enabled of this Idp. # noqa: E501
:return: The enabled of this Idp. # noqa: E501
:rtype: int
"""
return self._enabled
@enabled.setter
def enabled(self, enabled):
"""Sets the enabled of this Idp.
:param enabled: The enabled of this Idp. # noqa: E501
:type: int
"""
self._enabled = enabled
@property
def email_attr(self):
"""Gets the email_attr of this Idp. # noqa: E501
:return: The email_attr of this Idp. # noqa: E501
:rtype: str
"""
return self._email_attr
@email_attr.setter
def email_attr(self, email_attr):
"""Sets the email_attr of this Idp.
:param email_attr: The email_attr of this Idp. # noqa: E501
:type: str
"""
self._email_attr = email_attr
@property
def fname_attr(self):
"""Gets the fname_attr of this Idp. # noqa: E501
:return: The fname_attr of this Idp. # noqa: E501
:rtype: str
"""
return self._fname_attr
@fname_attr.setter
def fname_attr(self, fname_attr):
"""Sets the fname_attr of this Idp.
:param fname_attr: The fname_attr of this Idp. # noqa: E501
:type: str
"""
self._fname_attr = fname_attr
@property
def lname_attr(self):
"""Gets the lname_attr of this Idp. # noqa: E501
:return: The lname_attr of this Idp. # noqa: E501
:rtype: str
"""
return self._lname_attr
@lname_attr.setter
def lname_attr(self, lname_attr):
"""Sets the lname_attr of this Idp.
:param lname_attr: The lname_attr of this Idp. # noqa: E501
:type: str
"""
self._lname_attr = lname_attr
@property
def team_attr(self):
"""Gets the team_attr of this Idp. # noqa: E501
:return: The team_attr of this Idp. # noqa: E501
:rtype: str
"""
return self._team_attr
@team_attr.setter
def team_attr(self, team_attr):
"""Sets the team_attr of this Idp.
:param team_attr: The team_attr of this Idp. # noqa: E501
:type: str
"""
self._team_attr = team_attr
@property
def orgid_attr(self):
"""Gets the orgid_attr of this Idp. # noqa: E501
:return: The orgid_attr of this Idp. # noqa: E501
:rtype: str
"""
return self._orgid_attr
@orgid_attr.setter
def orgid_attr(self, orgid_attr):
"""Sets the orgid_attr of this Idp.
:param orgid_attr: The orgid_attr of this Idp. # noqa: E501
:type: str
"""
self._orgid_attr = orgid_attr
@property
def orcid_attr(self):
"""Gets the orcid_attr of this Idp. # noqa: E501
:return: The orcid_attr of this Idp. # noqa: E501
:rtype: str
"""
return self._orcid_attr
@orcid_attr.setter
def orcid_attr(self, orcid_attr):
"""Sets the orcid_attr of this Idp.
:param orcid_attr: The orcid_attr of this Idp. # noqa: E501
:type: str
"""
self._orcid_attr = orcid_attr
@property
def source(self):
"""Gets the source of this Idp. # noqa: E501
:return: The source of this Idp. # noqa: E501
:rtype: ModelInt
"""
return self._source
@source.setter
def source(self, source):
"""Sets the source of this Idp.
:param source: The source of this Idp. # noqa: E501
:type: ModelInt
"""
self._source = source
@property
def certs(self):
"""Gets the certs of this Idp. # noqa: E501
Certificates associated with this IdP. # noqa: E501
:return: The certs of this Idp. # noqa: E501
:rtype: list[IdpCert]
"""
return self._certs
@certs.setter
def certs(self, certs):
"""Sets the certs of this Idp.
Certificates associated with this IdP. # noqa: E501
:param certs: The certs of this Idp. # noqa: E501
:type: list[IdpCert]
"""
self._certs = certs
@property
def endpoints(self):
"""Gets the endpoints of this Idp. # noqa: E501
Endpoints associated with this IdP. # noqa: E501
:return: The endpoints of this Idp. # noqa: E501
:rtype: list[IdpEndpoint]
"""
return self._endpoints
@endpoints.setter
def endpoints(self, endpoints):
"""Sets the endpoints of this Idp.
Endpoints associated with this IdP. # noqa: E501
:param endpoints: The endpoints of this Idp. # noqa: E501
:type: list[IdpEndpoint]
"""
self._endpoints = endpoints
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(Idp, 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, Idp):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other