#
# 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
from datarobot.models.full_api.generated.model.user_in_group import UserInGroup

class AddUsersToGroupResponse(APIObject):
    """
    Attributes
    ----------
    count:int
         The number of items returned on this page.
    data:[UserInGroup]
         List of users in the group.
    """
    _converter = t.Dict(
        {
            t.Key("count"):  t.Int(),
            t.Key("data"):  t.List(t.Dict().allow_extra("*")),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        count,
        data,
    ):
        self.count = count
        self.data = data

    def __repr__(self):
        return (
            "AddUsersToGroupResponse("
            "count={0.count}, "
            "data={0.data}, "
        ).format(self)
