# coding: utf-8

"""
    Akeyless API

    The purpose of this application is to provide access to Akeyless API.  # noqa: E501

    The version of the OpenAPI document: 2.0
    Contact: support@akeyless.io
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from akeyless.configuration import Configuration


class GatewayAddSubAdmins(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'allow_gw_api': 'bool',
        'allow_gw_login': 'bool',
        'gateway_url': 'str',
        'password': 'str',
        'sub_admin_access_id': 'str',
        'sub_claims': 'dict(str, str)',
        'token': 'str',
        'uid_token': 'str',
        'username': 'str'
    }

    attribute_map = {
        'allow_gw_api': 'allow-gw-api',
        'allow_gw_login': 'allow-gw-login',
        'gateway_url': 'gateway-url',
        'password': 'password',
        'sub_admin_access_id': 'sub-admin-access-id',
        'sub_claims': 'sub-claims',
        'token': 'token',
        'uid_token': 'uid-token',
        'username': 'username'
    }

    def __init__(self, allow_gw_api=None, allow_gw_login=None, gateway_url='http://localhost:8000', password=None, sub_admin_access_id=None, sub_claims=None, token=None, uid_token=None, username=None, local_vars_configuration=None):  # noqa: E501
        """GatewayAddSubAdmins - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._allow_gw_api = None
        self._allow_gw_login = None
        self._gateway_url = None
        self._password = None
        self._sub_admin_access_id = None
        self._sub_claims = None
        self._token = None
        self._uid_token = None
        self._username = None
        self.discriminator = None

        if allow_gw_api is not None:
            self.allow_gw_api = allow_gw_api
        if allow_gw_login is not None:
            self.allow_gw_login = allow_gw_login
        if gateway_url is not None:
            self.gateway_url = gateway_url
        if password is not None:
            self.password = password
        self.sub_admin_access_id = sub_admin_access_id
        if sub_claims is not None:
            self.sub_claims = sub_claims
        if token is not None:
            self.token = token
        if uid_token is not None:
            self.uid_token = uid_token
        if username is not None:
            self.username = username

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


        :return: The allow_gw_api of this GatewayAddSubAdmins.  # noqa: E501
        :rtype: bool
        """
        return self._allow_gw_api

    @allow_gw_api.setter
    def allow_gw_api(self, allow_gw_api):
        """Sets the allow_gw_api of this GatewayAddSubAdmins.


        :param allow_gw_api: The allow_gw_api of this GatewayAddSubAdmins.  # noqa: E501
        :type: bool
        """

        self._allow_gw_api = allow_gw_api

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


        :return: The allow_gw_login of this GatewayAddSubAdmins.  # noqa: E501
        :rtype: bool
        """
        return self._allow_gw_login

    @allow_gw_login.setter
    def allow_gw_login(self, allow_gw_login):
        """Sets the allow_gw_login of this GatewayAddSubAdmins.


        :param allow_gw_login: The allow_gw_login of this GatewayAddSubAdmins.  # noqa: E501
        :type: bool
        """

        self._allow_gw_login = allow_gw_login

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

        Gateway url  # noqa: E501

        :return: The gateway_url of this GatewayAddSubAdmins.  # noqa: E501
        :rtype: str
        """
        return self._gateway_url

    @gateway_url.setter
    def gateway_url(self, gateway_url):
        """Sets the gateway_url of this GatewayAddSubAdmins.

        Gateway url  # noqa: E501

        :param gateway_url: The gateway_url of this GatewayAddSubAdmins.  # noqa: E501
        :type: str
        """

        self._gateway_url = gateway_url

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

        Required only when the authentication process requires a username and password  # noqa: E501

        :return: The password of this GatewayAddSubAdmins.  # noqa: E501
        :rtype: str
        """
        return self._password

    @password.setter
    def password(self, password):
        """Sets the password of this GatewayAddSubAdmins.

        Required only when the authentication process requires a username and password  # noqa: E501

        :param password: The password of this GatewayAddSubAdmins.  # noqa: E501
        :type: str
        """

        self._password = password

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

        SubAdmins to add  # noqa: E501

        :return: The sub_admin_access_id of this GatewayAddSubAdmins.  # noqa: E501
        :rtype: str
        """
        return self._sub_admin_access_id

    @sub_admin_access_id.setter
    def sub_admin_access_id(self, sub_admin_access_id):
        """Sets the sub_admin_access_id of this GatewayAddSubAdmins.

        SubAdmins to add  # noqa: E501

        :param sub_admin_access_id: The sub_admin_access_id of this GatewayAddSubAdmins.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and sub_admin_access_id is None:  # noqa: E501
            raise ValueError("Invalid value for `sub_admin_access_id`, must not be `None`")  # noqa: E501

        self._sub_admin_access_id = sub_admin_access_id

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

        key/val of sub claims, e.g group=admins,developers  # noqa: E501

        :return: The sub_claims of this GatewayAddSubAdmins.  # noqa: E501
        :rtype: dict(str, str)
        """
        return self._sub_claims

    @sub_claims.setter
    def sub_claims(self, sub_claims):
        """Sets the sub_claims of this GatewayAddSubAdmins.

        key/val of sub claims, e.g group=admins,developers  # noqa: E501

        :param sub_claims: The sub_claims of this GatewayAddSubAdmins.  # noqa: E501
        :type: dict(str, str)
        """

        self._sub_claims = sub_claims

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

        Authentication token (see `/auth` and `/configure`)  # noqa: E501

        :return: The token of this GatewayAddSubAdmins.  # noqa: E501
        :rtype: str
        """
        return self._token

    @token.setter
    def token(self, token):
        """Sets the token of this GatewayAddSubAdmins.

        Authentication token (see `/auth` and `/configure`)  # noqa: E501

        :param token: The token of this GatewayAddSubAdmins.  # noqa: E501
        :type: str
        """

        self._token = token

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

        The universal identity token, Required only for universal_identity authentication  # noqa: E501

        :return: The uid_token of this GatewayAddSubAdmins.  # noqa: E501
        :rtype: str
        """
        return self._uid_token

    @uid_token.setter
    def uid_token(self, uid_token):
        """Sets the uid_token of this GatewayAddSubAdmins.

        The universal identity token, Required only for universal_identity authentication  # noqa: E501

        :param uid_token: The uid_token of this GatewayAddSubAdmins.  # noqa: E501
        :type: str
        """

        self._uid_token = uid_token

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

        Required only when the authentication process requires a username and password  # noqa: E501

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

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

        Required only when the authentication process requires a username and password  # noqa: E501

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

        self._username = username

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_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, GatewayAddSubAdmins):
            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, GatewayAddSubAdmins):
            return True

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