#
# 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 CommentUser(APIObject):
    """
    Attributes
    ----------
    first_name:str
         First name of the commenter
    id:str
         User ID of the commenter
    last_name:str
         Last name of the commenter
    username:str
         Username of the commenter
    """
    _converter = t.Dict(
        {
            t.Key("first_name"):  t.String(),
            t.Key("id"):  t.String(),
            t.Key("last_name"):  t.String(),
            t.Key("username"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        first_name,
        id,
        last_name,
        username,
    ):
        self.first_name = first_name
        self.id = id
        self.last_name = last_name
        self.username = username

    def __repr__(self):
        return (
            "CommentUser("
            "first_name={0.first_name}, "
            "id={0.id}, "
            "last_name={0.last_name}, "
            "username={0.username}, "
        ).format(self)
