lentiq.models.tables_list module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six class TablesList(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 = { 'database_name': 'str', 'path': 'str', 'project_name': 'str', 'table_name': 'str', 'temporary': 'bool' } attribute_map = { 'database_name': 'databaseName', 'path': 'path', 'project_name': 'projectName', 'table_name': 'tableName', 'temporary': 'temporary' } discriminator = None def __init__(self, database_name=None, path=None, project_name=None, table_name=None, temporary=None): # noqa: E501 """TablesList - a model defined in Swagger""" # noqa: E501 self._database_name = None self._path = None self._project_name = None self._table_name = None self._temporary = None if database_name is not None: self.database_name = database_name if path is not None: self.path = path if project_name is not None: self.project_name = project_name if table_name is not None: self.table_name = table_name if temporary is not None: self.temporary = temporary @property def database_name(self): """Gets the database_name of this TablesList. # noqa: E501 :return: The database_name of this TablesList. # noqa: E501 :rtype: str """ return self._database_name @database_name.setter def database_name(self, database_name): """Sets the database_name of this TablesList. :param database_name: The database_name of this TablesList. # noqa: E501 :type: str """ self._database_name = database_name @property def path(self): """Gets the path of this TablesList. # noqa: E501 :return: The path of this TablesList. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): """Sets the path of this TablesList. :param path: The path of this TablesList. # noqa: E501 :type: str """ self._path = path @property def project_name(self): """Gets the project_name of this TablesList. # noqa: E501 :return: The project_name of this TablesList. # noqa: E501 :rtype: str """ return self._project_name @project_name.setter def project_name(self, project_name): """Sets the project_name of this TablesList. :param project_name: The project_name of this TablesList. # noqa: E501 :type: str """ self._project_name = project_name @property def table_name(self): """Gets the table_name of this TablesList. # noqa: E501 :return: The table_name of this TablesList. # noqa: E501 :rtype: str """ return self._table_name @table_name.setter def table_name(self, table_name): """Sets the table_name of this TablesList. :param table_name: The table_name of this TablesList. # noqa: E501 :type: str """ self._table_name = table_name @property def temporary(self): """Gets the temporary of this TablesList. # noqa: E501 :return: The temporary of this TablesList. # noqa: E501 :rtype: bool """ return self._temporary @temporary.setter def temporary(self, temporary): """Sets the temporary of this TablesList. :param temporary: The temporary of this TablesList. # noqa: E501 :type: bool """ self._temporary = temporary 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(TablesList, 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, TablesList): 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 TablesList
class TablesList(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 = { 'database_name': 'str', 'path': 'str', 'project_name': 'str', 'table_name': 'str', 'temporary': 'bool' } attribute_map = { 'database_name': 'databaseName', 'path': 'path', 'project_name': 'projectName', 'table_name': 'tableName', 'temporary': 'temporary' } discriminator = None def __init__(self, database_name=None, path=None, project_name=None, table_name=None, temporary=None): # noqa: E501 """TablesList - a model defined in Swagger""" # noqa: E501 self._database_name = None self._path = None self._project_name = None self._table_name = None self._temporary = None if database_name is not None: self.database_name = database_name if path is not None: self.path = path if project_name is not None: self.project_name = project_name if table_name is not None: self.table_name = table_name if temporary is not None: self.temporary = temporary @property def database_name(self): """Gets the database_name of this TablesList. # noqa: E501 :return: The database_name of this TablesList. # noqa: E501 :rtype: str """ return self._database_name @database_name.setter def database_name(self, database_name): """Sets the database_name of this TablesList. :param database_name: The database_name of this TablesList. # noqa: E501 :type: str """ self._database_name = database_name @property def path(self): """Gets the path of this TablesList. # noqa: E501 :return: The path of this TablesList. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): """Sets the path of this TablesList. :param path: The path of this TablesList. # noqa: E501 :type: str """ self._path = path @property def project_name(self): """Gets the project_name of this TablesList. # noqa: E501 :return: The project_name of this TablesList. # noqa: E501 :rtype: str """ return self._project_name @project_name.setter def project_name(self, project_name): """Sets the project_name of this TablesList. :param project_name: The project_name of this TablesList. # noqa: E501 :type: str """ self._project_name = project_name @property def table_name(self): """Gets the table_name of this TablesList. # noqa: E501 :return: The table_name of this TablesList. # noqa: E501 :rtype: str """ return self._table_name @table_name.setter def table_name(self, table_name): """Sets the table_name of this TablesList. :param table_name: The table_name of this TablesList. # noqa: E501 :type: str """ self._table_name = table_name @property def temporary(self): """Gets the temporary of this TablesList. # noqa: E501 :return: The temporary of this TablesList. # noqa: E501 :rtype: bool """ return self._temporary @temporary.setter def temporary(self, temporary): """Sets the temporary of this TablesList. :param temporary: The temporary of this TablesList. # noqa: E501 :type: bool """ self._temporary = temporary 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(TablesList, 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, TablesList): 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)
- TablesList
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, database_name=None, path=None, project_name=None, table_name=None, temporary=None)
TablesList - a model defined in Swagger
def __init__(self, database_name=None, path=None, project_name=None, table_name=None, temporary=None): # noqa: E501 """TablesList - a model defined in Swagger""" # noqa: E501 self._database_name = None self._path = None self._project_name = None self._table_name = None self._temporary = None if database_name is not None: self.database_name = database_name if path is not None: self.path = path if project_name is not None: self.project_name = project_name if table_name is not None: self.table_name = table_name if temporary is not None: self.temporary = temporary
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(TablesList, 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 database_name
Gets the database_name of this TablesList. # noqa: E501
:return: The database_name of this TablesList. # noqa: E501 :rtype: str
var path
Gets the path of this TablesList. # noqa: E501
:return: The path of this TablesList. # noqa: E501 :rtype: str
var project_name
Gets the project_name of this TablesList. # noqa: E501
:return: The project_name of this TablesList. # noqa: E501 :rtype: str
var table_name
Gets the table_name of this TablesList. # noqa: E501
:return: The table_name of this TablesList. # noqa: E501 :rtype: str
var temporary
Gets the temporary of this TablesList. # noqa: E501
:return: The temporary of this TablesList. # noqa: E501 :rtype: bool