#
# 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 CalendarUsernameRole(APIObject):
    """
    Attributes
    ----------
    role:str, none_type
         The new role to assign to the specified user.
    username:str
         The username of the user to modify access for.
    """
    _converter = t.Dict(
        {
            t.Key("role"):  t.String(),
            t.Key("username"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        role,
        username,
    ):
        self.role = role
        self.username = username

    def __repr__(self):
        return (
            "CalendarUsernameRole("
            "role={0.role}, "
            "username={0.username}, "
        ).format(self)
