# coding: utf-8

"""
    Seeq REST API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: 53.2.1-SNAPSHOT
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class AssetGroupOutputV1(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """


    """
    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 = {
        'asset_tree': 'AssetGroupTreeOutputV1',
        'errors': 'list[AssetError]'
    }

    attribute_map = {
        'asset_tree': 'assetTree',
        'errors': 'errors'
    }

    def __init__(self, asset_tree=None, errors=None):
        """
        AssetGroupOutputV1 - a model defined in Swagger
        """

        self._asset_tree = None
        self._errors = None

        if asset_tree is not None:
          self.asset_tree = asset_tree
        if errors is not None:
          self.errors = errors

    @property
    def asset_tree(self):
        """
        Gets the asset_tree of this AssetGroupOutputV1.
        The asset tree that was created or updated

        :return: The asset_tree of this AssetGroupOutputV1.
        :rtype: AssetGroupTreeOutputV1
        """
        return self._asset_tree

    @asset_tree.setter
    def asset_tree(self, asset_tree):
        """
        Sets the asset_tree of this AssetGroupOutputV1.
        The asset tree that was created or updated

        :param asset_tree: The asset_tree of this AssetGroupOutputV1.
        :type: AssetGroupTreeOutputV1
        """

        self._asset_tree = asset_tree

    @property
    def errors(self):
        """
        Gets the errors of this AssetGroupOutputV1.
        A list of errors generated when attempting to create or update the tree

        :return: The errors of this AssetGroupOutputV1.
        :rtype: list[AssetError]
        """
        return self._errors

    @errors.setter
    def errors(self, errors):
        """
        Sets the errors of this AssetGroupOutputV1.
        A list of errors generated when attempting to create or update the tree

        :param errors: The errors of this AssetGroupOutputV1.
        :type: list[AssetError]
        """

        self._errors = errors

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return 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, AssetGroupOutputV1):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """
        Returns true if both objects are not equal
        """
        return not self == other
