# coding: utf-8

"""
    Experimental Looker API 3.1 Preview

    This API 3.1 is in active development. Breaking changes are likely to occur to some API functions in future Looker releases until API 3.1 is officially launched and upgraded to beta status.  If you have time and interest to experiment with new or modified services exposed in this embryonic API 3.1, we welcome your participation and feedback!  For large development efforts or critical line-of-business projects, we strongly recommend you stick with the API 3.0 while API 3.1 is under construction.   # noqa: E501

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


import pprint
import re  # noqa: F401

import six

from looker_client_31.looker_sdk.role import Role  # noqa: F401,E501


class OIDCGroupRead(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 = {
        'name': 'str',
        'roles': 'list[Role]',
        'url': 'str',
        'can': 'dict(str, bool)'
    }

    attribute_map = {
        'name': 'name',
        'roles': 'roles',
        'url': 'url',
        'can': 'can'
    }

    def __init__(self, name=None, roles=None, url=None, can=None):  # noqa: E501
        """OIDCGroupRead - a model defined in Swagger"""  # noqa: E501

        self._name = None
        self._roles = None
        self._url = None
        self._can = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if roles is not None:
            self.roles = roles
        if url is not None:
            self.url = url
        if can is not None:
            self.can = can

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

        Name of group in OIDC  # noqa: E501

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

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

        Name of group in OIDC  # noqa: E501

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

        self._name = name

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

        Looker Roles  # noqa: E501

        :return: The roles of this OIDCGroupRead.  # noqa: E501
        :rtype: list[Role]
        """
        return self._roles

    @roles.setter
    def roles(self, roles):
        """Sets the roles of this OIDCGroupRead.

        Looker Roles  # noqa: E501

        :param roles: The roles of this OIDCGroupRead.  # noqa: E501
        :type: list[Role]
        """

        self._roles = roles

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

        Link to oidc config  # noqa: E501

        :return: The url of this OIDCGroupRead.  # noqa: E501
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url):
        """Sets the url of this OIDCGroupRead.

        Link to oidc config  # noqa: E501

        :param url: The url of this OIDCGroupRead.  # noqa: E501
        :type: str
        """

        self._url = url

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

        Operations the current user is able to perform on this object  # noqa: E501

        :return: The can of this OIDCGroupRead.  # noqa: E501
        :rtype: dict(str, bool)
        """
        return self._can

    @can.setter
    def can(self, can):
        """Sets the can of this OIDCGroupRead.

        Operations the current user is able to perform on this object  # noqa: E501

        :param can: The can of this OIDCGroupRead.  # noqa: E501
        :type: dict(str, bool)
        """

        self._can = can

    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

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

        return self.__dict__ == other.__dict__

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