from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from openapi_server.models.base_model import Model
from openapi_server.models.update_node200_response_data import UpdateNode200ResponseData
from openapi_server import util

from openapi_server.models.update_node200_response_data import UpdateNode200ResponseData  # noqa: E501

class UpdateNode200Response(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, success=None, data=None, error=None):  # noqa: E501
        """UpdateNode200Response - a model defined in OpenAPI

        :param success: The success of this UpdateNode200Response.  # noqa: E501
        :type success: bool
        :param data: The data of this UpdateNode200Response.  # noqa: E501
        :type data: UpdateNode200ResponseData
        :param error: The error of this UpdateNode200Response.  # noqa: E501
        :type error: str
        """
        self.openapi_types = {
            'success': bool,
            'data': UpdateNode200ResponseData,
            'error': str
        }

        self.attribute_map = {
            'success': 'success',
            'data': 'data',
            'error': 'error'
        }

        self._success = success
        self._data = data
        self._error = error

    @classmethod
    def from_dict(cls, dikt) -> 'UpdateNode200Response':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The update_node_200_response of this UpdateNode200Response.  # noqa: E501
        :rtype: UpdateNode200Response
        """
        return util.deserialize_model(dikt, cls)

    @property
    def success(self) -> bool:
        """Gets the success of this UpdateNode200Response.

        Whether the update operation was successful  # noqa: E501

        :return: The success of this UpdateNode200Response.
        :rtype: bool
        """
        return self._success

    @success.setter
    def success(self, success: bool):
        """Sets the success of this UpdateNode200Response.

        Whether the update operation was successful  # noqa: E501

        :param success: The success of this UpdateNode200Response.
        :type success: bool
        """
        if success is None:
            raise ValueError("Invalid value for `success`, must not be `None`")  # noqa: E501

        self._success = success

    @property
    def data(self) -> UpdateNode200ResponseData:
        """Gets the data of this UpdateNode200Response.


        :return: The data of this UpdateNode200Response.
        :rtype: UpdateNode200ResponseData
        """
        return self._data

    @data.setter
    def data(self, data: UpdateNode200ResponseData):
        """Sets the data of this UpdateNode200Response.


        :param data: The data of this UpdateNode200Response.
        :type data: UpdateNode200ResponseData
        """
        if data is None:
            raise ValueError("Invalid value for `data`, must not be `None`")  # noqa: E501

        self._data = data

    @property
    def error(self) -> str:
        """Gets the error of this UpdateNode200Response.

        Error message if the operation was not successful  # noqa: E501

        :return: The error of this UpdateNode200Response.
        :rtype: str
        """
        return self._error

    @error.setter
    def error(self, error: str):
        """Sets the error of this UpdateNode200Response.

        Error message if the operation was not successful  # noqa: E501

        :param error: The error of this UpdateNode200Response.
        :type error: str
        """
        if error is None:
            raise ValueError("Invalid value for `error`, must not be `None`")  # noqa: E501

        self._error = error
