lentiq.models.notebook module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six class Notebook(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 = { 'content_base64_encoded': 'str', 'created_timestamp_seconds': 'int', 'datalake_id': 'int', 'datalake_name': 'str', 'extension': 'str', 'name': 'str', 'updated_timestamp_seconds': 'int', 'version': 'int' } attribute_map = { 'content_base64_encoded': 'contentBase64Encoded', 'created_timestamp_seconds': 'createdTimestampSeconds', 'datalake_id': 'datalakeId', 'datalake_name': 'datalakeName', 'extension': 'extension', 'name': 'name', 'updated_timestamp_seconds': 'updatedTimestampSeconds', 'version': 'version' } discriminator = None def __init__(self, content_base64_encoded=None, created_timestamp_seconds=None, datalake_id=None, datalake_name=None, extension=None, name=None, updated_timestamp_seconds=None, version=None): # noqa: E501 """Notebook - a model defined in Swagger""" # noqa: E501 self._content_base64_encoded = None self._created_timestamp_seconds = None self._datalake_id = None self._datalake_name = None self._extension = None self._name = None self._updated_timestamp_seconds = None self._version = None if content_base64_encoded is not None: self.content_base64_encoded = content_base64_encoded if created_timestamp_seconds is not None: self.created_timestamp_seconds = created_timestamp_seconds if datalake_id is not None: self.datalake_id = datalake_id if datalake_name is not None: self.datalake_name = datalake_name if extension is not None: self.extension = extension if name is not None: self.name = name if updated_timestamp_seconds is not None: self.updated_timestamp_seconds = updated_timestamp_seconds if version is not None: self.version = version @property def content_base64_encoded(self): """Gets the content_base64_encoded of this Notebook. # noqa: E501 :return: The content_base64_encoded of this Notebook. # noqa: E501 :rtype: str """ return self._content_base64_encoded @content_base64_encoded.setter def content_base64_encoded(self, content_base64_encoded): """Sets the content_base64_encoded of this Notebook. :param content_base64_encoded: The content_base64_encoded of this Notebook. # noqa: E501 :type: str """ self._content_base64_encoded = content_base64_encoded @property def created_timestamp_seconds(self): """Gets the created_timestamp_seconds of this Notebook. # noqa: E501 :return: The created_timestamp_seconds of this Notebook. # noqa: E501 :rtype: int """ return self._created_timestamp_seconds @created_timestamp_seconds.setter def created_timestamp_seconds(self, created_timestamp_seconds): """Sets the created_timestamp_seconds of this Notebook. :param created_timestamp_seconds: The created_timestamp_seconds of this Notebook. # noqa: E501 :type: int """ self._created_timestamp_seconds = created_timestamp_seconds @property def datalake_id(self): """Gets the datalake_id of this Notebook. # noqa: E501 :return: The datalake_id of this Notebook. # noqa: E501 :rtype: int """ return self._datalake_id @datalake_id.setter def datalake_id(self, datalake_id): """Sets the datalake_id of this Notebook. :param datalake_id: The datalake_id of this Notebook. # noqa: E501 :type: int """ self._datalake_id = datalake_id @property def datalake_name(self): """Gets the datalake_name of this Notebook. # noqa: E501 :return: The datalake_name of this Notebook. # noqa: E501 :rtype: str """ return self._datalake_name @datalake_name.setter def datalake_name(self, datalake_name): """Sets the datalake_name of this Notebook. :param datalake_name: The datalake_name of this Notebook. # noqa: E501 :type: str """ self._datalake_name = datalake_name @property def extension(self): """Gets the extension of this Notebook. # noqa: E501 :return: The extension of this Notebook. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): """Sets the extension of this Notebook. :param extension: The extension of this Notebook. # noqa: E501 :type: str """ self._extension = extension @property def name(self): """Gets the name of this Notebook. # noqa: E501 :return: The name of this Notebook. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Notebook. :param name: The name of this Notebook. # noqa: E501 :type: str """ self._name = name @property def updated_timestamp_seconds(self): """Gets the updated_timestamp_seconds of this Notebook. # noqa: E501 :return: The updated_timestamp_seconds of this Notebook. # noqa: E501 :rtype: int """ return self._updated_timestamp_seconds @updated_timestamp_seconds.setter def updated_timestamp_seconds(self, updated_timestamp_seconds): """Sets the updated_timestamp_seconds of this Notebook. :param updated_timestamp_seconds: The updated_timestamp_seconds of this Notebook. # noqa: E501 :type: int """ self._updated_timestamp_seconds = updated_timestamp_seconds @property def version(self): """Gets the version of this Notebook. # noqa: E501 :return: The version of this Notebook. # noqa: E501 :rtype: int """ return self._version @version.setter def version(self, version): """Sets the version of this Notebook. :param version: The version of this Notebook. # noqa: E501 :type: int """ self._version = version 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(Notebook, 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, Notebook): 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 Notebook
class Notebook(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 = { 'content_base64_encoded': 'str', 'created_timestamp_seconds': 'int', 'datalake_id': 'int', 'datalake_name': 'str', 'extension': 'str', 'name': 'str', 'updated_timestamp_seconds': 'int', 'version': 'int' } attribute_map = { 'content_base64_encoded': 'contentBase64Encoded', 'created_timestamp_seconds': 'createdTimestampSeconds', 'datalake_id': 'datalakeId', 'datalake_name': 'datalakeName', 'extension': 'extension', 'name': 'name', 'updated_timestamp_seconds': 'updatedTimestampSeconds', 'version': 'version' } discriminator = None def __init__(self, content_base64_encoded=None, created_timestamp_seconds=None, datalake_id=None, datalake_name=None, extension=None, name=None, updated_timestamp_seconds=None, version=None): # noqa: E501 """Notebook - a model defined in Swagger""" # noqa: E501 self._content_base64_encoded = None self._created_timestamp_seconds = None self._datalake_id = None self._datalake_name = None self._extension = None self._name = None self._updated_timestamp_seconds = None self._version = None if content_base64_encoded is not None: self.content_base64_encoded = content_base64_encoded if created_timestamp_seconds is not None: self.created_timestamp_seconds = created_timestamp_seconds if datalake_id is not None: self.datalake_id = datalake_id if datalake_name is not None: self.datalake_name = datalake_name if extension is not None: self.extension = extension if name is not None: self.name = name if updated_timestamp_seconds is not None: self.updated_timestamp_seconds = updated_timestamp_seconds if version is not None: self.version = version @property def content_base64_encoded(self): """Gets the content_base64_encoded of this Notebook. # noqa: E501 :return: The content_base64_encoded of this Notebook. # noqa: E501 :rtype: str """ return self._content_base64_encoded @content_base64_encoded.setter def content_base64_encoded(self, content_base64_encoded): """Sets the content_base64_encoded of this Notebook. :param content_base64_encoded: The content_base64_encoded of this Notebook. # noqa: E501 :type: str """ self._content_base64_encoded = content_base64_encoded @property def created_timestamp_seconds(self): """Gets the created_timestamp_seconds of this Notebook. # noqa: E501 :return: The created_timestamp_seconds of this Notebook. # noqa: E501 :rtype: int """ return self._created_timestamp_seconds @created_timestamp_seconds.setter def created_timestamp_seconds(self, created_timestamp_seconds): """Sets the created_timestamp_seconds of this Notebook. :param created_timestamp_seconds: The created_timestamp_seconds of this Notebook. # noqa: E501 :type: int """ self._created_timestamp_seconds = created_timestamp_seconds @property def datalake_id(self): """Gets the datalake_id of this Notebook. # noqa: E501 :return: The datalake_id of this Notebook. # noqa: E501 :rtype: int """ return self._datalake_id @datalake_id.setter def datalake_id(self, datalake_id): """Sets the datalake_id of this Notebook. :param datalake_id: The datalake_id of this Notebook. # noqa: E501 :type: int """ self._datalake_id = datalake_id @property def datalake_name(self): """Gets the datalake_name of this Notebook. # noqa: E501 :return: The datalake_name of this Notebook. # noqa: E501 :rtype: str """ return self._datalake_name @datalake_name.setter def datalake_name(self, datalake_name): """Sets the datalake_name of this Notebook. :param datalake_name: The datalake_name of this Notebook. # noqa: E501 :type: str """ self._datalake_name = datalake_name @property def extension(self): """Gets the extension of this Notebook. # noqa: E501 :return: The extension of this Notebook. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): """Sets the extension of this Notebook. :param extension: The extension of this Notebook. # noqa: E501 :type: str """ self._extension = extension @property def name(self): """Gets the name of this Notebook. # noqa: E501 :return: The name of this Notebook. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Notebook. :param name: The name of this Notebook. # noqa: E501 :type: str """ self._name = name @property def updated_timestamp_seconds(self): """Gets the updated_timestamp_seconds of this Notebook. # noqa: E501 :return: The updated_timestamp_seconds of this Notebook. # noqa: E501 :rtype: int """ return self._updated_timestamp_seconds @updated_timestamp_seconds.setter def updated_timestamp_seconds(self, updated_timestamp_seconds): """Sets the updated_timestamp_seconds of this Notebook. :param updated_timestamp_seconds: The updated_timestamp_seconds of this Notebook. # noqa: E501 :type: int """ self._updated_timestamp_seconds = updated_timestamp_seconds @property def version(self): """Gets the version of this Notebook. # noqa: E501 :return: The version of this Notebook. # noqa: E501 :rtype: int """ return self._version @version.setter def version(self, version): """Sets the version of this Notebook. :param version: The version of this Notebook. # noqa: E501 :type: int """ self._version = version 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(Notebook, 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, Notebook): 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)
- Notebook
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, content_base64_encoded=None, created_timestamp_seconds=None, datalake_id=None, datalake_name=None, extension=None, name=None, updated_timestamp_seconds=None, version=None)
Notebook - a model defined in Swagger
def __init__(self, content_base64_encoded=None, created_timestamp_seconds=None, datalake_id=None, datalake_name=None, extension=None, name=None, updated_timestamp_seconds=None, version=None): # noqa: E501 """Notebook - a model defined in Swagger""" # noqa: E501 self._content_base64_encoded = None self._created_timestamp_seconds = None self._datalake_id = None self._datalake_name = None self._extension = None self._name = None self._updated_timestamp_seconds = None self._version = None if content_base64_encoded is not None: self.content_base64_encoded = content_base64_encoded if created_timestamp_seconds is not None: self.created_timestamp_seconds = created_timestamp_seconds if datalake_id is not None: self.datalake_id = datalake_id if datalake_name is not None: self.datalake_name = datalake_name if extension is not None: self.extension = extension if name is not None: self.name = name if updated_timestamp_seconds is not None: self.updated_timestamp_seconds = updated_timestamp_seconds if version is not None: self.version = version
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(Notebook, 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 content_base64_encoded
Gets the content_base64_encoded of this Notebook. # noqa: E501
:return: The content_base64_encoded of this Notebook. # noqa: E501 :rtype: str
var created_timestamp_seconds
Gets the created_timestamp_seconds of this Notebook. # noqa: E501
:return: The created_timestamp_seconds of this Notebook. # noqa: E501 :rtype: int
var datalake_id
Gets the datalake_id of this Notebook. # noqa: E501
:return: The datalake_id of this Notebook. # noqa: E501 :rtype: int
var datalake_name
Gets the datalake_name of this Notebook. # noqa: E501
:return: The datalake_name of this Notebook. # noqa: E501 :rtype: str
var extension
Gets the extension of this Notebook. # noqa: E501
:return: The extension of this Notebook. # noqa: E501 :rtype: str
var name
Gets the name of this Notebook. # noqa: E501
:return: The name of this Notebook. # noqa: E501 :rtype: str
var updated_timestamp_seconds
Gets the updated_timestamp_seconds of this Notebook. # noqa: E501
:return: The updated_timestamp_seconds of this Notebook. # noqa: E501 :rtype: int
var version
Gets the version of this Notebook. # noqa: E501
:return: The version of this Notebook. # noqa: E501 :rtype: int