# coding: utf-8 """ api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: version not set Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Apiv1OAuth2Config(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', 'client_secret': 'str', 'auth_url': 'str', 'token_url': 'str', 'user_info_url': 'str', 'scopes': 'list[str]', 'field_mapping': 'Apiv1FieldMapping' } attribute_map = { 'client_id': 'clientId', 'client_secret': 'clientSecret', 'auth_url': 'authUrl', 'token_url': 'tokenUrl', 'user_info_url': 'userInfoUrl', 'scopes': 'scopes', 'field_mapping': 'fieldMapping' } def __init__(self, client_id=None, client_secret=None, auth_url=None, token_url=None, user_info_url=None, scopes=None, field_mapping=None): # noqa: E501 """Apiv1OAuth2Config - a model defined in Swagger""" # noqa: E501 self._client_id = None self._client_secret = None self._auth_url = None self._token_url = None self._user_info_url = None self._scopes = None self._field_mapping = None self.discriminator = None if client_id is not None: self.client_id = client_id if client_secret is not None: self.client_secret = client_secret if auth_url is not None: self.auth_url = auth_url if token_url is not None: self.token_url = token_url if user_info_url is not None: self.user_info_url = user_info_url if scopes is not None: self.scopes = scopes if field_mapping is not None: self.field_mapping = field_mapping @property def client_id(self): """Gets the client_id of this Apiv1OAuth2Config. # noqa: E501 :return: The client_id of this Apiv1OAuth2Config. # noqa: E501 :rtype: str """ return self._client_id @client_id.setter def client_id(self, client_id): """Sets the client_id of this Apiv1OAuth2Config. :param client_id: The client_id of this Apiv1OAuth2Config. # noqa: E501 :type: str """ self._client_id = client_id @property def client_secret(self): """Gets the client_secret of this Apiv1OAuth2Config. # noqa: E501 :return: The client_secret of this Apiv1OAuth2Config. # noqa: E501 :rtype: str """ return self._client_secret @client_secret.setter def client_secret(self, client_secret): """Sets the client_secret of this Apiv1OAuth2Config. :param client_secret: The client_secret of this Apiv1OAuth2Config. # noqa: E501 :type: str """ self._client_secret = client_secret @property def auth_url(self): """Gets the auth_url of this Apiv1OAuth2Config. # noqa: E501 :return: The auth_url of this Apiv1OAuth2Config. # noqa: E501 :rtype: str """ return self._auth_url @auth_url.setter def auth_url(self, auth_url): """Sets the auth_url of this Apiv1OAuth2Config. :param auth_url: The auth_url of this Apiv1OAuth2Config. # noqa: E501 :type: str """ self._auth_url = auth_url @property def token_url(self): """Gets the token_url of this Apiv1OAuth2Config. # noqa: E501 :return: The token_url of this Apiv1OAuth2Config. # noqa: E501 :rtype: str """ return self._token_url @token_url.setter def token_url(self, token_url): """Sets the token_url of this Apiv1OAuth2Config. :param token_url: The token_url of this Apiv1OAuth2Config. # noqa: E501 :type: str """ self._token_url = token_url @property def user_info_url(self): """Gets the user_info_url of this Apiv1OAuth2Config. # noqa: E501 :return: The user_info_url of this Apiv1OAuth2Config. # noqa: E501 :rtype: str """ return self._user_info_url @user_info_url.setter def user_info_url(self, user_info_url): """Sets the user_info_url of this Apiv1OAuth2Config. :param user_info_url: The user_info_url of this Apiv1OAuth2Config. # noqa: E501 :type: str """ self._user_info_url = user_info_url @property def scopes(self): """Gets the scopes of this Apiv1OAuth2Config. # noqa: E501 :return: The scopes of this Apiv1OAuth2Config. # noqa: E501 :rtype: list[str] """ return self._scopes @scopes.setter def scopes(self, scopes): """Sets the scopes of this Apiv1OAuth2Config. :param scopes: The scopes of this Apiv1OAuth2Config. # noqa: E501 :type: list[str] """ self._scopes = scopes @property def field_mapping(self): """Gets the field_mapping of this Apiv1OAuth2Config. # noqa: E501 :return: The field_mapping of this Apiv1OAuth2Config. # noqa: E501 :rtype: Apiv1FieldMapping """ return self._field_mapping @field_mapping.setter def field_mapping(self, field_mapping): """Sets the field_mapping of this Apiv1OAuth2Config. :param field_mapping: The field_mapping of this Apiv1OAuth2Config. # noqa: E501 :type: Apiv1FieldMapping """ self._field_mapping = field_mapping 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(Apiv1OAuth2Config, 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, Apiv1OAuth2Config): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other