Top

lentiq.models.object_information module

# coding: utf-8
####alex test
"""
    
    
        
    """

import pprint
import re  # noqa: F401

import six


class ObjectInformation(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 = {
        'attachments': 'list[str]',
        'object_description': 'str'
    }

    attribute_map = {
        'attachments': 'attachments',
        'object_description': 'objectDescription'
    }

    discriminator = None

    def __init__(self, attachments=None, object_description=None):  # noqa: E501
        """ObjectInformation - a model defined in Swagger"""  # noqa: E501
        self._attachments = None
        self._object_description = None

        if attachments is not None:
            self.attachments = attachments
        if object_description is not None:
            self.object_description = object_description

    @property
    def attachments(self):
        """Gets the attachments of this ObjectInformation.  # noqa: E501


        :return: The attachments of this ObjectInformation.  # noqa: E501
        :rtype: list[str]
        """
        return self._attachments

    @attachments.setter
    def attachments(self, attachments):
        """Sets the attachments of this ObjectInformation.


        :param attachments: The attachments of this ObjectInformation.  # noqa: E501
        :type: list[str]
        """

        self._attachments = attachments

    @property
    def object_description(self):
        """Gets the object_description of this ObjectInformation.  # noqa: E501


        :return: The object_description of this ObjectInformation.  # noqa: E501
        :rtype: str
        """
        return self._object_description

    @object_description.setter
    def object_description(self, object_description):
        """Sets the object_description of this ObjectInformation.


        :param object_description: The object_description of this ObjectInformation.  # noqa: E501
        :type: str
        """

        self._object_description = object_description

    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(ObjectInformation, 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, ObjectInformation):
            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 ObjectInformation

class ObjectInformation(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 = {
        'attachments': 'list[str]',
        'object_description': 'str'
    }

    attribute_map = {
        'attachments': 'attachments',
        'object_description': 'objectDescription'
    }

    discriminator = None

    def __init__(self, attachments=None, object_description=None):  # noqa: E501
        """ObjectInformation - a model defined in Swagger"""  # noqa: E501
        self._attachments = None
        self._object_description = None

        if attachments is not None:
            self.attachments = attachments
        if object_description is not None:
            self.object_description = object_description

    @property
    def attachments(self):
        """Gets the attachments of this ObjectInformation.  # noqa: E501


        :return: The attachments of this ObjectInformation.  # noqa: E501
        :rtype: list[str]
        """
        return self._attachments

    @attachments.setter
    def attachments(self, attachments):
        """Sets the attachments of this ObjectInformation.


        :param attachments: The attachments of this ObjectInformation.  # noqa: E501
        :type: list[str]
        """

        self._attachments = attachments

    @property
    def object_description(self):
        """Gets the object_description of this ObjectInformation.  # noqa: E501


        :return: The object_description of this ObjectInformation.  # noqa: E501
        :rtype: str
        """
        return self._object_description

    @object_description.setter
    def object_description(self, object_description):
        """Sets the object_description of this ObjectInformation.


        :param object_description: The object_description of this ObjectInformation.  # noqa: E501
        :type: str
        """

        self._object_description = object_description

    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(ObjectInformation, 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, ObjectInformation):
            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)

Class variables

var attribute_map

var discriminator

var swagger_types

Static methods

def __init__(

self, attachments=None, object_description=None)

ObjectInformation - a model defined in Swagger

def __init__(self, attachments=None, object_description=None):  # noqa: E501
    """ObjectInformation - a model defined in Swagger"""  # noqa: E501
    self._attachments = None
    self._object_description = None
    if attachments is not None:
        self.attachments = attachments
    if object_description is not None:
        self.object_description = object_description

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(ObjectInformation, 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 attachments

Gets the attachments of this ObjectInformation. # noqa: E501

:return: The attachments of this ObjectInformation. # noqa: E501 :rtype: list[str]

var object_description

Gets the object_description of this ObjectInformation. # noqa: E501

:return: The object_description of this ObjectInformation. # noqa: E501 :rtype: str