lentiq.models.all_filtered_code_blocks module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six from lentiq.models.all_code_blocks import AllCodeBlocks # noqa: F401,E501 class AllFilteredCodeBlocks(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 = { 'datalake_code_blocks': 'AllCodeBlocks', 'datapool_code_blocks': 'AllCodeBlocks', 'project_code_blocks': 'AllCodeBlocks', 'public_code_blocks': 'AllCodeBlocks' } attribute_map = { 'datalake_code_blocks': 'datalakeCodeBlocks', 'datapool_code_blocks': 'datapoolCodeBlocks', 'project_code_blocks': 'projectCodeBlocks', 'public_code_blocks': 'publicCodeBlocks' } discriminator = None def __init__(self, datalake_code_blocks=None, datapool_code_blocks=None, project_code_blocks=None, public_code_blocks=None): # noqa: E501 """AllFilteredCodeBlocks - a model defined in Swagger""" # noqa: E501 self._datalake_code_blocks = None self._datapool_code_blocks = None self._project_code_blocks = None self._public_code_blocks = None if datalake_code_blocks is not None: self.datalake_code_blocks = datalake_code_blocks if datapool_code_blocks is not None: self.datapool_code_blocks = datapool_code_blocks if project_code_blocks is not None: self.project_code_blocks = project_code_blocks if public_code_blocks is not None: self.public_code_blocks = public_code_blocks @property def datalake_code_blocks(self): """Gets the datalake_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :return: The datalake_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks """ return self._datalake_code_blocks @datalake_code_blocks.setter def datalake_code_blocks(self, datalake_code_blocks): """Sets the datalake_code_blocks of this AllFilteredCodeBlocks. :param datalake_code_blocks: The datalake_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :type: AllCodeBlocks """ self._datalake_code_blocks = datalake_code_blocks @property def datapool_code_blocks(self): """Gets the datapool_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :return: The datapool_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks """ return self._datapool_code_blocks @datapool_code_blocks.setter def datapool_code_blocks(self, datapool_code_blocks): """Sets the datapool_code_blocks of this AllFilteredCodeBlocks. :param datapool_code_blocks: The datapool_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :type: AllCodeBlocks """ self._datapool_code_blocks = datapool_code_blocks @property def project_code_blocks(self): """Gets the project_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :return: The project_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks """ return self._project_code_blocks @project_code_blocks.setter def project_code_blocks(self, project_code_blocks): """Sets the project_code_blocks of this AllFilteredCodeBlocks. :param project_code_blocks: The project_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :type: AllCodeBlocks """ self._project_code_blocks = project_code_blocks @property def public_code_blocks(self): """Gets the public_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :return: The public_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks """ return self._public_code_blocks @public_code_blocks.setter def public_code_blocks(self, public_code_blocks): """Sets the public_code_blocks of this AllFilteredCodeBlocks. :param public_code_blocks: The public_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :type: AllCodeBlocks """ self._public_code_blocks = public_code_blocks 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(AllFilteredCodeBlocks, 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, AllFilteredCodeBlocks): 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 AllFilteredCodeBlocks
class AllFilteredCodeBlocks(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 = { 'datalake_code_blocks': 'AllCodeBlocks', 'datapool_code_blocks': 'AllCodeBlocks', 'project_code_blocks': 'AllCodeBlocks', 'public_code_blocks': 'AllCodeBlocks' } attribute_map = { 'datalake_code_blocks': 'datalakeCodeBlocks', 'datapool_code_blocks': 'datapoolCodeBlocks', 'project_code_blocks': 'projectCodeBlocks', 'public_code_blocks': 'publicCodeBlocks' } discriminator = None def __init__(self, datalake_code_blocks=None, datapool_code_blocks=None, project_code_blocks=None, public_code_blocks=None): # noqa: E501 """AllFilteredCodeBlocks - a model defined in Swagger""" # noqa: E501 self._datalake_code_blocks = None self._datapool_code_blocks = None self._project_code_blocks = None self._public_code_blocks = None if datalake_code_blocks is not None: self.datalake_code_blocks = datalake_code_blocks if datapool_code_blocks is not None: self.datapool_code_blocks = datapool_code_blocks if project_code_blocks is not None: self.project_code_blocks = project_code_blocks if public_code_blocks is not None: self.public_code_blocks = public_code_blocks @property def datalake_code_blocks(self): """Gets the datalake_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :return: The datalake_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks """ return self._datalake_code_blocks @datalake_code_blocks.setter def datalake_code_blocks(self, datalake_code_blocks): """Sets the datalake_code_blocks of this AllFilteredCodeBlocks. :param datalake_code_blocks: The datalake_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :type: AllCodeBlocks """ self._datalake_code_blocks = datalake_code_blocks @property def datapool_code_blocks(self): """Gets the datapool_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :return: The datapool_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks """ return self._datapool_code_blocks @datapool_code_blocks.setter def datapool_code_blocks(self, datapool_code_blocks): """Sets the datapool_code_blocks of this AllFilteredCodeBlocks. :param datapool_code_blocks: The datapool_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :type: AllCodeBlocks """ self._datapool_code_blocks = datapool_code_blocks @property def project_code_blocks(self): """Gets the project_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :return: The project_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks """ return self._project_code_blocks @project_code_blocks.setter def project_code_blocks(self, project_code_blocks): """Sets the project_code_blocks of this AllFilteredCodeBlocks. :param project_code_blocks: The project_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :type: AllCodeBlocks """ self._project_code_blocks = project_code_blocks @property def public_code_blocks(self): """Gets the public_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :return: The public_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks """ return self._public_code_blocks @public_code_blocks.setter def public_code_blocks(self, public_code_blocks): """Sets the public_code_blocks of this AllFilteredCodeBlocks. :param public_code_blocks: The public_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :type: AllCodeBlocks """ self._public_code_blocks = public_code_blocks 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(AllFilteredCodeBlocks, 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, AllFilteredCodeBlocks): 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)
- AllFilteredCodeBlocks
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, datalake_code_blocks=None, datapool_code_blocks=None, project_code_blocks=None, public_code_blocks=None)
AllFilteredCodeBlocks - a model defined in Swagger
def __init__(self, datalake_code_blocks=None, datapool_code_blocks=None, project_code_blocks=None, public_code_blocks=None): # noqa: E501 """AllFilteredCodeBlocks - a model defined in Swagger""" # noqa: E501 self._datalake_code_blocks = None self._datapool_code_blocks = None self._project_code_blocks = None self._public_code_blocks = None if datalake_code_blocks is not None: self.datalake_code_blocks = datalake_code_blocks if datapool_code_blocks is not None: self.datapool_code_blocks = datapool_code_blocks if project_code_blocks is not None: self.project_code_blocks = project_code_blocks if public_code_blocks is not None: self.public_code_blocks = public_code_blocks
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(AllFilteredCodeBlocks, 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 datalake_code_blocks
Gets the datalake_code_blocks of this AllFilteredCodeBlocks. # noqa: E501
:return: The datalake_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks
var datapool_code_blocks
Gets the datapool_code_blocks of this AllFilteredCodeBlocks. # noqa: E501
:return: The datapool_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks
var project_code_blocks
Gets the project_code_blocks of this AllFilteredCodeBlocks. # noqa: E501
:return: The project_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks
var public_code_blocks
Gets the public_code_blocks of this AllFilteredCodeBlocks. # noqa: E501
:return: The public_code_blocks of this AllFilteredCodeBlocks. # noqa: E501 :rtype: AllCodeBlocks