#
# 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 SamlRoleMapping(APIObject):
    """
    Attributes
    ----------
    datarobot_role_id:str
         DataRobot access role ID.
    idp_role_id:str
         Name of the identitity provider role.
    """
    _converter = t.Dict(
        {
            t.Key("datarobot_role_id"):  t.String(),
            t.Key("idp_role_id"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        datarobot_role_id,
        idp_role_id,
    ):
        self.datarobot_role_id = datarobot_role_id
        self.idp_role_id = idp_role_id

    def __repr__(self):
        return (
            "SamlRoleMapping("
            "datarobot_role_id={0.datarobot_role_id}, "
            "idp_role_id={0.idp_role_id}, "
        ).format(self)
