#
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
#
# DataRobot, Inc.
#
# This is proprietary source code of DataRobot, Inc. and its
# affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
"""
Autogenerated DataRobot python client file.  Please don't modify.
"""

import trafaret as t
from datarobot.models.api_object import APIObject

class SamlAttributeMapping(APIObject):
    """
    Attributes
    ----------
    display_name:str [optional]
         Display name.. 
    email:str [optional]
         Email.. 
    first_name:str [optional]
         First name.. 
    group:str [optional]
         Group.. 
    impersonation_user:str [optional]
         Impersonation user.. 
    last_name:str [optional]
         Last name.. 
    role:str [optional]
         Role.. 
    username:str [optional]
         Username.. 
    """
    _converter = t.Dict(
        {
            t.Key("display_name", optional=True):  t.String(),
            t.Key("email", optional=True):  t.String(),
            t.Key("first_name", optional=True):  t.String(),
            t.Key("group", optional=True):  t.String(),
            t.Key("impersonation_user", optional=True):  t.String(),
            t.Key("last_name", optional=True):  t.String(),
            t.Key("role", optional=True):  t.String(),
            t.Key("username", optional=True):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        display_name=None,
        email=None,
        first_name=None,
        group=None,
        impersonation_user=None,
        last_name=None,
        role=None,
        username=None,
    ):
        self.display_name = display_name
        self.email = email
        self.first_name = first_name
        self.group = group
        self.impersonation_user = impersonation_user
        self.last_name = last_name
        self.role = role
        self.username = username

    def __repr__(self):
        return (
            "SamlAttributeMapping("
            "display_name={0.display_name}, "
            "email={0.email}, "
            "first_name={0.first_name}, "
            "group={0.group}, "
            "impersonation_user={0.impersonation_user}, "
            "last_name={0.last_name}, "
            "role={0.role}, "
            "username={0.username}, "
        ).format(self)
