lentiq.models.user_info module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six class UserInfo(object): """ """ """ 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 = { 'datalakes': 'dict(str, str)', 'user_created_starter_datapool': 'bool', 'user_created_timestamp_seconds': 'int', 'user_email': 'str', 'user_id': 'int', 'user_role': 'str' } attribute_map = { 'datalakes': 'datalakes', 'user_created_starter_datapool': 'userCreatedStarterDatapool', 'user_created_timestamp_seconds': 'userCreatedTimestampSeconds', 'user_email': 'userEmail', 'user_id': 'userId', 'user_role': 'userRole' } discriminator = None def __init__(self, datalakes=None, user_created_starter_datapool=None, user_created_timestamp_seconds=None, user_email=None, user_id=None, user_role=None): # noqa: E501 """UserInfo - a model defined in Swagger""" # noqa: E501 self._datalakes = None self._user_created_starter_datapool = None self._user_created_timestamp_seconds = None self._user_email = None self._user_id = None self._user_role = None if datalakes is not None: self.datalakes = datalakes if user_created_starter_datapool is not None: self.user_created_starter_datapool = user_created_starter_datapool if user_created_timestamp_seconds is not None: self.user_created_timestamp_seconds = user_created_timestamp_seconds if user_email is not None: self.user_email = user_email if user_id is not None: self.user_id = user_id if user_role is not None: self.user_role = user_role @property def datalakes(self): """Gets the datalakes of this UserInfo. # noqa: E501 :return: The datalakes of this UserInfo. # noqa: E501 :rtype: dict(str, str) """ return self._datalakes @datalakes.setter def datalakes(self, datalakes): """Sets the datalakes of this UserInfo. :param datalakes: The datalakes of this UserInfo. # noqa: E501 :type: dict(str, str) """ self._datalakes = datalakes @property def user_created_starter_datapool(self): """Gets the user_created_starter_datapool of this UserInfo. # noqa: E501 :return: The user_created_starter_datapool of this UserInfo. # noqa: E501 :rtype: bool """ return self._user_created_starter_datapool @user_created_starter_datapool.setter def user_created_starter_datapool(self, user_created_starter_datapool): """Sets the user_created_starter_datapool of this UserInfo. :param user_created_starter_datapool: The user_created_starter_datapool of this UserInfo. # noqa: E501 :type: bool """ self._user_created_starter_datapool = user_created_starter_datapool @property def user_created_timestamp_seconds(self): """Gets the user_created_timestamp_seconds of this UserInfo. # noqa: E501 :return: The user_created_timestamp_seconds of this UserInfo. # noqa: E501 :rtype: int """ return self._user_created_timestamp_seconds @user_created_timestamp_seconds.setter def user_created_timestamp_seconds(self, user_created_timestamp_seconds): """Sets the user_created_timestamp_seconds of this UserInfo. :param user_created_timestamp_seconds: The user_created_timestamp_seconds of this UserInfo. # noqa: E501 :type: int """ self._user_created_timestamp_seconds = user_created_timestamp_seconds @property def user_email(self): """Gets the user_email of this UserInfo. # noqa: E501 :return: The user_email of this UserInfo. # noqa: E501 :rtype: str """ return self._user_email @user_email.setter def user_email(self, user_email): """Sets the user_email of this UserInfo. :param user_email: The user_email of this UserInfo. # noqa: E501 :type: str """ self._user_email = user_email @property def user_id(self): """Gets the user_id of this UserInfo. # noqa: E501 :return: The user_id of this UserInfo. # noqa: E501 :rtype: int """ return self._user_id @user_id.setter def user_id(self, user_id): """Sets the user_id of this UserInfo. :param user_id: The user_id of this UserInfo. # noqa: E501 :type: int """ self._user_id = user_id @property def user_role(self): """Gets the user_role of this UserInfo. # noqa: E501 :return: The user_role of this UserInfo. # noqa: E501 :rtype: str """ return self._user_role @user_role.setter def user_role(self, user_role): """Sets the user_role of this UserInfo. :param user_role: The user_role of this UserInfo. # noqa: E501 :type: str """ self._user_role = user_role 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(UserInfo, 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, UserInfo): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
Classes
class UserInfo
class UserInfo(object): """ """ """ 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 = { 'datalakes': 'dict(str, str)', 'user_created_starter_datapool': 'bool', 'user_created_timestamp_seconds': 'int', 'user_email': 'str', 'user_id': 'int', 'user_role': 'str' } attribute_map = { 'datalakes': 'datalakes', 'user_created_starter_datapool': 'userCreatedStarterDatapool', 'user_created_timestamp_seconds': 'userCreatedTimestampSeconds', 'user_email': 'userEmail', 'user_id': 'userId', 'user_role': 'userRole' } discriminator = None def __init__(self, datalakes=None, user_created_starter_datapool=None, user_created_timestamp_seconds=None, user_email=None, user_id=None, user_role=None): # noqa: E501 """UserInfo - a model defined in Swagger""" # noqa: E501 self._datalakes = None self._user_created_starter_datapool = None self._user_created_timestamp_seconds = None self._user_email = None self._user_id = None self._user_role = None if datalakes is not None: self.datalakes = datalakes if user_created_starter_datapool is not None: self.user_created_starter_datapool = user_created_starter_datapool if user_created_timestamp_seconds is not None: self.user_created_timestamp_seconds = user_created_timestamp_seconds if user_email is not None: self.user_email = user_email if user_id is not None: self.user_id = user_id if user_role is not None: self.user_role = user_role @property def datalakes(self): """Gets the datalakes of this UserInfo. # noqa: E501 :return: The datalakes of this UserInfo. # noqa: E501 :rtype: dict(str, str) """ return self._datalakes @datalakes.setter def datalakes(self, datalakes): """Sets the datalakes of this UserInfo. :param datalakes: The datalakes of this UserInfo. # noqa: E501 :type: dict(str, str) """ self._datalakes = datalakes @property def user_created_starter_datapool(self): """Gets the user_created_starter_datapool of this UserInfo. # noqa: E501 :return: The user_created_starter_datapool of this UserInfo. # noqa: E501 :rtype: bool """ return self._user_created_starter_datapool @user_created_starter_datapool.setter def user_created_starter_datapool(self, user_created_starter_datapool): """Sets the user_created_starter_datapool of this UserInfo. :param user_created_starter_datapool: The user_created_starter_datapool of this UserInfo. # noqa: E501 :type: bool """ self._user_created_starter_datapool = user_created_starter_datapool @property def user_created_timestamp_seconds(self): """Gets the user_created_timestamp_seconds of this UserInfo. # noqa: E501 :return: The user_created_timestamp_seconds of this UserInfo. # noqa: E501 :rtype: int """ return self._user_created_timestamp_seconds @user_created_timestamp_seconds.setter def user_created_timestamp_seconds(self, user_created_timestamp_seconds): """Sets the user_created_timestamp_seconds of this UserInfo. :param user_created_timestamp_seconds: The user_created_timestamp_seconds of this UserInfo. # noqa: E501 :type: int """ self._user_created_timestamp_seconds = user_created_timestamp_seconds @property def user_email(self): """Gets the user_email of this UserInfo. # noqa: E501 :return: The user_email of this UserInfo. # noqa: E501 :rtype: str """ return self._user_email @user_email.setter def user_email(self, user_email): """Sets the user_email of this UserInfo. :param user_email: The user_email of this UserInfo. # noqa: E501 :type: str """ self._user_email = user_email @property def user_id(self): """Gets the user_id of this UserInfo. # noqa: E501 :return: The user_id of this UserInfo. # noqa: E501 :rtype: int """ return self._user_id @user_id.setter def user_id(self, user_id): """Sets the user_id of this UserInfo. :param user_id: The user_id of this UserInfo. # noqa: E501 :type: int """ self._user_id = user_id @property def user_role(self): """Gets the user_role of this UserInfo. # noqa: E501 :return: The user_role of this UserInfo. # noqa: E501 :rtype: str """ return self._user_role @user_role.setter def user_role(self, user_role): """Sets the user_role of this UserInfo. :param user_role: The user_role of this UserInfo. # noqa: E501 :type: str """ self._user_role = user_role 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(UserInfo, 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, UserInfo): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
Ancestors (in MRO)
- UserInfo
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, datalakes=None, user_created_starter_datapool=None, user_created_timestamp_seconds=None, user_email=None, user_id=None, user_role=None)
UserInfo - a model defined in Swagger
def __init__(self, datalakes=None, user_created_starter_datapool=None, user_created_timestamp_seconds=None, user_email=None, user_id=None, user_role=None): # noqa: E501 """UserInfo - a model defined in Swagger""" # noqa: E501 self._datalakes = None self._user_created_starter_datapool = None self._user_created_timestamp_seconds = None self._user_email = None self._user_id = None self._user_role = None if datalakes is not None: self.datalakes = datalakes if user_created_starter_datapool is not None: self.user_created_starter_datapool = user_created_starter_datapool if user_created_timestamp_seconds is not None: self.user_created_timestamp_seconds = user_created_timestamp_seconds if user_email is not None: self.user_email = user_email if user_id is not None: self.user_id = user_id if user_role is not None: self.user_role = user_role
def to_dict(
self)
Returns the model properties as a dict
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(UserInfo, dict): for key, value in self.items(): result[key] = value return result
def to_str(
self)
Returns the string representation of the model
def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict())
Instance variables
var datalakes
Gets the datalakes of this UserInfo. # noqa: E501
:return: The datalakes of this UserInfo. # noqa: E501 :rtype: dict(str, str)
var user_created_starter_datapool
Gets the user_created_starter_datapool of this UserInfo. # noqa: E501
:return: The user_created_starter_datapool of this UserInfo. # noqa: E501 :rtype: bool
var user_created_timestamp_seconds
Gets the user_created_timestamp_seconds of this UserInfo. # noqa: E501
:return: The user_created_timestamp_seconds of this UserInfo. # noqa: E501 :rtype: int
var user_email
Gets the user_email of this UserInfo. # noqa: E501
:return: The user_email of this UserInfo. # noqa: E501 :rtype: str
var user_id
Gets the user_id of this UserInfo. # noqa: E501
:return: The user_id of this UserInfo. # noqa: E501 :rtype: int
var user_role
Gets the user_role of this UserInfo. # noqa: E501
:return: The user_role of this UserInfo. # noqa: E501 :rtype: str