lentiq.models.file_status module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six class FileStatus(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 = { 'access_time': 'int', 'directory': 'bool', 'len': 'int', 'modification_time': 'int', 'path_name': 'str' } attribute_map = { 'access_time': 'accessTime', 'directory': 'directory', 'len': 'len', 'modification_time': 'modificationTime', 'path_name': 'pathName' } discriminator = None def __init__(self, access_time=None, directory=None, len=None, modification_time=None, path_name=None): # noqa: E501 """FileStatus - a model defined in Swagger""" # noqa: E501 self._access_time = None self._directory = None self._len = None self._modification_time = None self._path_name = None if access_time is not None: self.access_time = access_time if directory is not None: self.directory = directory if len is not None: self.len = len if modification_time is not None: self.modification_time = modification_time if path_name is not None: self.path_name = path_name @property def access_time(self): """Gets the access_time of this FileStatus. # noqa: E501 :return: The access_time of this FileStatus. # noqa: E501 :rtype: int """ return self._access_time @access_time.setter def access_time(self, access_time): """Sets the access_time of this FileStatus. :param access_time: The access_time of this FileStatus. # noqa: E501 :type: int """ self._access_time = access_time @property def directory(self): """Gets the directory of this FileStatus. # noqa: E501 :return: The directory of this FileStatus. # noqa: E501 :rtype: bool """ return self._directory @directory.setter def directory(self, directory): """Sets the directory of this FileStatus. :param directory: The directory of this FileStatus. # noqa: E501 :type: bool """ self._directory = directory @property def len(self): """Gets the len of this FileStatus. # noqa: E501 :return: The len of this FileStatus. # noqa: E501 :rtype: int """ return self._len @len.setter def len(self, len): """Sets the len of this FileStatus. :param len: The len of this FileStatus. # noqa: E501 :type: int """ self._len = len @property def modification_time(self): """Gets the modification_time of this FileStatus. # noqa: E501 :return: The modification_time of this FileStatus. # noqa: E501 :rtype: int """ return self._modification_time @modification_time.setter def modification_time(self, modification_time): """Sets the modification_time of this FileStatus. :param modification_time: The modification_time of this FileStatus. # noqa: E501 :type: int """ self._modification_time = modification_time @property def path_name(self): """Gets the path_name of this FileStatus. # noqa: E501 :return: The path_name of this FileStatus. # noqa: E501 :rtype: str """ return self._path_name @path_name.setter def path_name(self, path_name): """Sets the path_name of this FileStatus. :param path_name: The path_name of this FileStatus. # noqa: E501 :type: str """ self._path_name = path_name 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(FileStatus, 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, FileStatus): 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 FileStatus
class FileStatus(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 = { 'access_time': 'int', 'directory': 'bool', 'len': 'int', 'modification_time': 'int', 'path_name': 'str' } attribute_map = { 'access_time': 'accessTime', 'directory': 'directory', 'len': 'len', 'modification_time': 'modificationTime', 'path_name': 'pathName' } discriminator = None def __init__(self, access_time=None, directory=None, len=None, modification_time=None, path_name=None): # noqa: E501 """FileStatus - a model defined in Swagger""" # noqa: E501 self._access_time = None self._directory = None self._len = None self._modification_time = None self._path_name = None if access_time is not None: self.access_time = access_time if directory is not None: self.directory = directory if len is not None: self.len = len if modification_time is not None: self.modification_time = modification_time if path_name is not None: self.path_name = path_name @property def access_time(self): """Gets the access_time of this FileStatus. # noqa: E501 :return: The access_time of this FileStatus. # noqa: E501 :rtype: int """ return self._access_time @access_time.setter def access_time(self, access_time): """Sets the access_time of this FileStatus. :param access_time: The access_time of this FileStatus. # noqa: E501 :type: int """ self._access_time = access_time @property def directory(self): """Gets the directory of this FileStatus. # noqa: E501 :return: The directory of this FileStatus. # noqa: E501 :rtype: bool """ return self._directory @directory.setter def directory(self, directory): """Sets the directory of this FileStatus. :param directory: The directory of this FileStatus. # noqa: E501 :type: bool """ self._directory = directory @property def len(self): """Gets the len of this FileStatus. # noqa: E501 :return: The len of this FileStatus. # noqa: E501 :rtype: int """ return self._len @len.setter def len(self, len): """Sets the len of this FileStatus. :param len: The len of this FileStatus. # noqa: E501 :type: int """ self._len = len @property def modification_time(self): """Gets the modification_time of this FileStatus. # noqa: E501 :return: The modification_time of this FileStatus. # noqa: E501 :rtype: int """ return self._modification_time @modification_time.setter def modification_time(self, modification_time): """Sets the modification_time of this FileStatus. :param modification_time: The modification_time of this FileStatus. # noqa: E501 :type: int """ self._modification_time = modification_time @property def path_name(self): """Gets the path_name of this FileStatus. # noqa: E501 :return: The path_name of this FileStatus. # noqa: E501 :rtype: str """ return self._path_name @path_name.setter def path_name(self, path_name): """Sets the path_name of this FileStatus. :param path_name: The path_name of this FileStatus. # noqa: E501 :type: str """ self._path_name = path_name 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(FileStatus, 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, FileStatus): 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)
- FileStatus
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, access_time=None, directory=None, len=None, modification_time=None, path_name=None)
FileStatus - a model defined in Swagger
def __init__(self, access_time=None, directory=None, len=None, modification_time=None, path_name=None): # noqa: E501 """FileStatus - a model defined in Swagger""" # noqa: E501 self._access_time = None self._directory = None self._len = None self._modification_time = None self._path_name = None if access_time is not None: self.access_time = access_time if directory is not None: self.directory = directory if len is not None: self.len = len if modification_time is not None: self.modification_time = modification_time if path_name is not None: self.path_name = path_name
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(FileStatus, 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 access_time
Gets the access_time of this FileStatus. # noqa: E501
:return: The access_time of this FileStatus. # noqa: E501 :rtype: int
var directory
Gets the directory of this FileStatus. # noqa: E501
:return: The directory of this FileStatus. # noqa: E501 :rtype: bool
var len
Gets the len of this FileStatus. # noqa: E501
:return: The len of this FileStatus. # noqa: E501 :rtype: int
var modification_time
Gets the modification_time of this FileStatus. # noqa: E501
:return: The modification_time of this FileStatus. # noqa: E501 :rtype: int
var path_name
Gets the path_name of this FileStatus. # noqa: E501
:return: The path_name of this FileStatus. # noqa: E501 :rtype: str