# coding: utf-8

"""
    CartoVista REST API

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

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

import pprint
import re  # noqa: F401

import six

class OAuthAuthorizeParams(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 = {
        'client_id': 'str',
        'redirect_uri': 'str',
        'state': 'str',
        'scopes': 'list[str]',
        'code_challenge': 'str',
        'code_challenge_method': 'str',
        'response_type': 'str',
        'authorized': 'bool'
    }

    attribute_map = {
        'client_id': 'clientId',
        'redirect_uri': 'redirectUri',
        'state': 'state',
        'scopes': 'scopes',
        'code_challenge': 'codeChallenge',
        'code_challenge_method': 'codeChallengeMethod',
        'response_type': 'responseType',
        'authorized': 'authorized'
    }

    def __init__(self, client_id=None, redirect_uri=None, state=None, scopes=None, code_challenge=None, code_challenge_method=None, response_type=None, authorized=None):  # noqa: E501
        """OAuthAuthorizeParams - a model defined in Swagger"""  # noqa: E501
        self._client_id = None
        self._redirect_uri = None
        self._state = None
        self._scopes = None
        self._code_challenge = None
        self._code_challenge_method = None
        self._response_type = None
        self._authorized = None
        self.discriminator = None
        if client_id is not None:
            self.client_id = client_id
        if redirect_uri is not None:
            self.redirect_uri = redirect_uri
        if state is not None:
            self.state = state
        if scopes is not None:
            self.scopes = scopes
        if code_challenge is not None:
            self.code_challenge = code_challenge
        if code_challenge_method is not None:
            self.code_challenge_method = code_challenge_method
        if response_type is not None:
            self.response_type = response_type
        if authorized is not None:
            self.authorized = authorized

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


        :return: The client_id of this OAuthAuthorizeParams.  # noqa: E501
        :rtype: str
        """
        return self._client_id

    @client_id.setter
    def client_id(self, client_id):
        """Sets the client_id of this OAuthAuthorizeParams.


        :param client_id: The client_id of this OAuthAuthorizeParams.  # noqa: E501
        :type: str
        """

        self._client_id = client_id

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


        :return: The redirect_uri of this OAuthAuthorizeParams.  # noqa: E501
        :rtype: str
        """
        return self._redirect_uri

    @redirect_uri.setter
    def redirect_uri(self, redirect_uri):
        """Sets the redirect_uri of this OAuthAuthorizeParams.


        :param redirect_uri: The redirect_uri of this OAuthAuthorizeParams.  # noqa: E501
        :type: str
        """

        self._redirect_uri = redirect_uri

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


        :return: The state of this OAuthAuthorizeParams.  # noqa: E501
        :rtype: str
        """
        return self._state

    @state.setter
    def state(self, state):
        """Sets the state of this OAuthAuthorizeParams.


        :param state: The state of this OAuthAuthorizeParams.  # noqa: E501
        :type: str
        """

        self._state = state

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


        :return: The scopes of this OAuthAuthorizeParams.  # noqa: E501
        :rtype: list[str]
        """
        return self._scopes

    @scopes.setter
    def scopes(self, scopes):
        """Sets the scopes of this OAuthAuthorizeParams.


        :param scopes: The scopes of this OAuthAuthorizeParams.  # noqa: E501
        :type: list[str]
        """

        self._scopes = scopes

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


        :return: The code_challenge of this OAuthAuthorizeParams.  # noqa: E501
        :rtype: str
        """
        return self._code_challenge

    @code_challenge.setter
    def code_challenge(self, code_challenge):
        """Sets the code_challenge of this OAuthAuthorizeParams.


        :param code_challenge: The code_challenge of this OAuthAuthorizeParams.  # noqa: E501
        :type: str
        """

        self._code_challenge = code_challenge

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


        :return: The code_challenge_method of this OAuthAuthorizeParams.  # noqa: E501
        :rtype: str
        """
        return self._code_challenge_method

    @code_challenge_method.setter
    def code_challenge_method(self, code_challenge_method):
        """Sets the code_challenge_method of this OAuthAuthorizeParams.


        :param code_challenge_method: The code_challenge_method of this OAuthAuthorizeParams.  # noqa: E501
        :type: str
        """

        self._code_challenge_method = code_challenge_method

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


        :return: The response_type of this OAuthAuthorizeParams.  # noqa: E501
        :rtype: str
        """
        return self._response_type

    @response_type.setter
    def response_type(self, response_type):
        """Sets the response_type of this OAuthAuthorizeParams.


        :param response_type: The response_type of this OAuthAuthorizeParams.  # noqa: E501
        :type: str
        """

        self._response_type = response_type

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


        :return: The authorized of this OAuthAuthorizeParams.  # noqa: E501
        :rtype: bool
        """
        return self._authorized

    @authorized.setter
    def authorized(self, authorized):
        """Sets the authorized of this OAuthAuthorizeParams.


        :param authorized: The authorized of this OAuthAuthorizeParams.  # noqa: E501
        :type: bool
        """

        self._authorized = authorized

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

        return self.__dict__ == other.__dict__

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