# coding: utf-8

"""
    vmp

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

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


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class GetAggregateWorkspaceResponse(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 = {
        'auth_type': 'str',
        'create_time': 'str',
        'cross_workspaces': 'list[CrossWorkspaceForGetAggregateWorkspaceOutput]',
        'description': 'str',
        'external_prometheus': 'list[str]',
        'id': 'str',
        'ignore_error': 'bool',
        'max_query_rate': 'int',
        'name': 'str',
        'project_name': 'str',
        'prometheus_aggregate_query_endpoint': 'str',
        'status': 'str',
        'tags': 'list[TagForGetAggregateWorkspaceOutput]',
        'username': 'str',
        'workspaces': 'list[str]',
        'workspaces_detail': 'list[WorkspacesDetailForGetAggregateWorkspaceOutput]'
    }

    attribute_map = {
        'auth_type': 'AuthType',
        'create_time': 'CreateTime',
        'cross_workspaces': 'CrossWorkspaces',
        'description': 'Description',
        'external_prometheus': 'ExternalPrometheus',
        'id': 'Id',
        'ignore_error': 'IgnoreError',
        'max_query_rate': 'MaxQueryRate',
        'name': 'Name',
        'project_name': 'ProjectName',
        'prometheus_aggregate_query_endpoint': 'PrometheusAggregateQueryEndpoint',
        'status': 'Status',
        'tags': 'Tags',
        'username': 'Username',
        'workspaces': 'Workspaces',
        'workspaces_detail': 'WorkspacesDetail'
    }

    def __init__(self, auth_type=None, create_time=None, cross_workspaces=None, description=None, external_prometheus=None, id=None, ignore_error=None, max_query_rate=None, name=None, project_name=None, prometheus_aggregate_query_endpoint=None, status=None, tags=None, username=None, workspaces=None, workspaces_detail=None, _configuration=None):  # noqa: E501
        """GetAggregateWorkspaceResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._auth_type = None
        self._create_time = None
        self._cross_workspaces = None
        self._description = None
        self._external_prometheus = None
        self._id = None
        self._ignore_error = None
        self._max_query_rate = None
        self._name = None
        self._project_name = None
        self._prometheus_aggregate_query_endpoint = None
        self._status = None
        self._tags = None
        self._username = None
        self._workspaces = None
        self._workspaces_detail = None
        self.discriminator = None

        if auth_type is not None:
            self.auth_type = auth_type
        if create_time is not None:
            self.create_time = create_time
        if cross_workspaces is not None:
            self.cross_workspaces = cross_workspaces
        if description is not None:
            self.description = description
        if external_prometheus is not None:
            self.external_prometheus = external_prometheus
        if id is not None:
            self.id = id
        if ignore_error is not None:
            self.ignore_error = ignore_error
        if max_query_rate is not None:
            self.max_query_rate = max_query_rate
        if name is not None:
            self.name = name
        if project_name is not None:
            self.project_name = project_name
        if prometheus_aggregate_query_endpoint is not None:
            self.prometheus_aggregate_query_endpoint = prometheus_aggregate_query_endpoint
        if status is not None:
            self.status = status
        if tags is not None:
            self.tags = tags
        if username is not None:
            self.username = username
        if workspaces is not None:
            self.workspaces = workspaces
        if workspaces_detail is not None:
            self.workspaces_detail = workspaces_detail

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


        :return: The auth_type of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: str
        """
        return self._auth_type

    @auth_type.setter
    def auth_type(self, auth_type):
        """Sets the auth_type of this GetAggregateWorkspaceResponse.


        :param auth_type: The auth_type of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: str
        """

        self._auth_type = auth_type

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


        :return: The create_time of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: str
        """
        return self._create_time

    @create_time.setter
    def create_time(self, create_time):
        """Sets the create_time of this GetAggregateWorkspaceResponse.


        :param create_time: The create_time of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: str
        """

        self._create_time = create_time

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


        :return: The cross_workspaces of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: list[CrossWorkspaceForGetAggregateWorkspaceOutput]
        """
        return self._cross_workspaces

    @cross_workspaces.setter
    def cross_workspaces(self, cross_workspaces):
        """Sets the cross_workspaces of this GetAggregateWorkspaceResponse.


        :param cross_workspaces: The cross_workspaces of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: list[CrossWorkspaceForGetAggregateWorkspaceOutput]
        """

        self._cross_workspaces = cross_workspaces

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


        :return: The description of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this GetAggregateWorkspaceResponse.


        :param description: The description of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The external_prometheus of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: list[str]
        """
        return self._external_prometheus

    @external_prometheus.setter
    def external_prometheus(self, external_prometheus):
        """Sets the external_prometheus of this GetAggregateWorkspaceResponse.


        :param external_prometheus: The external_prometheus of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: list[str]
        """

        self._external_prometheus = external_prometheus

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


        :return: The id of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this GetAggregateWorkspaceResponse.


        :param id: The id of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: str
        """

        self._id = id

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


        :return: The ignore_error of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: bool
        """
        return self._ignore_error

    @ignore_error.setter
    def ignore_error(self, ignore_error):
        """Sets the ignore_error of this GetAggregateWorkspaceResponse.


        :param ignore_error: The ignore_error of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: bool
        """

        self._ignore_error = ignore_error

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


        :return: The max_query_rate of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: int
        """
        return self._max_query_rate

    @max_query_rate.setter
    def max_query_rate(self, max_query_rate):
        """Sets the max_query_rate of this GetAggregateWorkspaceResponse.


        :param max_query_rate: The max_query_rate of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: int
        """

        self._max_query_rate = max_query_rate

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


        :return: The name of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this GetAggregateWorkspaceResponse.


        :param name: The name of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The project_name of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this GetAggregateWorkspaceResponse.


        :param project_name: The project_name of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The prometheus_aggregate_query_endpoint of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: str
        """
        return self._prometheus_aggregate_query_endpoint

    @prometheus_aggregate_query_endpoint.setter
    def prometheus_aggregate_query_endpoint(self, prometheus_aggregate_query_endpoint):
        """Sets the prometheus_aggregate_query_endpoint of this GetAggregateWorkspaceResponse.


        :param prometheus_aggregate_query_endpoint: The prometheus_aggregate_query_endpoint of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: str
        """

        self._prometheus_aggregate_query_endpoint = prometheus_aggregate_query_endpoint

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


        :return: The status of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this GetAggregateWorkspaceResponse.


        :param status: The status of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The tags of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: list[TagForGetAggregateWorkspaceOutput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this GetAggregateWorkspaceResponse.


        :param tags: The tags of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: list[TagForGetAggregateWorkspaceOutput]
        """

        self._tags = tags

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


        :return: The username of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: str
        """
        return self._username

    @username.setter
    def username(self, username):
        """Sets the username of this GetAggregateWorkspaceResponse.


        :param username: The username of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: str
        """

        self._username = username

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


        :return: The workspaces of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: list[str]
        """
        return self._workspaces

    @workspaces.setter
    def workspaces(self, workspaces):
        """Sets the workspaces of this GetAggregateWorkspaceResponse.


        :param workspaces: The workspaces of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: list[str]
        """

        self._workspaces = workspaces

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


        :return: The workspaces_detail of this GetAggregateWorkspaceResponse.  # noqa: E501
        :rtype: list[WorkspacesDetailForGetAggregateWorkspaceOutput]
        """
        return self._workspaces_detail

    @workspaces_detail.setter
    def workspaces_detail(self, workspaces_detail):
        """Sets the workspaces_detail of this GetAggregateWorkspaceResponse.


        :param workspaces_detail: The workspaces_detail of this GetAggregateWorkspaceResponse.  # noqa: E501
        :type: list[WorkspacesDetailForGetAggregateWorkspaceOutput]
        """

        self._workspaces_detail = workspaces_detail

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
