# coding: utf-8

"""
    Seeq REST API

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

    OpenAPI spec version: 66.116.2-v202603172347-CD
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

from pprint import pformat
from six import iteritems
import re


class ContextSourceOutputV1(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 = {
        'type': 'str',
        'url': 'str',
        'workbook_id': 'str',
        'worksheet_id': 'str',
        'workstep_id': 'str'
    }

    attribute_map = {
        'type': 'type',
        'url': 'url',
        'workbook_id': 'workbookId',
        'worksheet_id': 'worksheetId',
        'workstep_id': 'workstepId'
    }

    def __init__(self, type=None, url=None, workbook_id=None, worksheet_id=None, workstep_id=None):
        """
        ContextSourceOutputV1 - a model defined in Swagger
        """

        self._type = None
        self._url = None
        self._workbook_id = None
        self._worksheet_id = None
        self._workstep_id = None

        if type is not None:
          self.type = type
        if url is not None:
          self.url = url
        if workbook_id is not None:
          self.workbook_id = workbook_id
        if worksheet_id is not None:
          self.worksheet_id = worksheet_id
        if workstep_id is not None:
          self.workstep_id = workstep_id

    @property
    def type(self):
        """
        Gets the type of this ContextSourceOutputV1.
        The type of source: 'seeq' or 'external'

        :return: The type of this ContextSourceOutputV1.
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """
        Sets the type of this ContextSourceOutputV1.
        The type of source: 'seeq' or 'external'

        :param type: The type of this ContextSourceOutputV1.
        :type: str
        """

        self._type = type

    @property
    def url(self):
        """
        Gets the url of this ContextSourceOutputV1.
        The URL of the source

        :return: The url of this ContextSourceOutputV1.
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url):
        """
        Sets the url of this ContextSourceOutputV1.
        The URL of the source

        :param url: The url of this ContextSourceOutputV1.
        :type: str
        """

        self._url = url

    @property
    def workbook_id(self):
        """
        Gets the workbook_id of this ContextSourceOutputV1.
        The Seeq workbook ID where the context was created

        :return: The workbook_id of this ContextSourceOutputV1.
        :rtype: str
        """
        return self._workbook_id

    @workbook_id.setter
    def workbook_id(self, workbook_id):
        """
        Sets the workbook_id of this ContextSourceOutputV1.
        The Seeq workbook ID where the context was created

        :param workbook_id: The workbook_id of this ContextSourceOutputV1.
        :type: str
        """

        self._workbook_id = workbook_id

    @property
    def worksheet_id(self):
        """
        Gets the worksheet_id of this ContextSourceOutputV1.
        The Seeq worksheet ID where the context was created

        :return: The worksheet_id of this ContextSourceOutputV1.
        :rtype: str
        """
        return self._worksheet_id

    @worksheet_id.setter
    def worksheet_id(self, worksheet_id):
        """
        Sets the worksheet_id of this ContextSourceOutputV1.
        The Seeq worksheet ID where the context was created

        :param worksheet_id: The worksheet_id of this ContextSourceOutputV1.
        :type: str
        """

        self._worksheet_id = worksheet_id

    @property
    def workstep_id(self):
        """
        Gets the workstep_id of this ContextSourceOutputV1.
        The Seeq workstep ID capturing the exact view state

        :return: The workstep_id of this ContextSourceOutputV1.
        :rtype: str
        """
        return self._workstep_id

    @workstep_id.setter
    def workstep_id(self, workstep_id):
        """
        Sets the workstep_id of this ContextSourceOutputV1.
        The Seeq workstep ID capturing the exact view state

        :param workstep_id: The workstep_id of this ContextSourceOutputV1.
        :type: str
        """

        self._workstep_id = workstep_id

    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, ContextSourceOutputV1):
            return False

        return self.__dict__ == other.__dict__

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