#
# 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.event_group_response import EventGroupResponse
from datarobot.models.full_api.generated.model.event_response import EventResponse

class NotificationEventListResponse(APIObject):
    """
    Attributes
    ----------
    event_groups:[EventGroupResponse]
         Selectable event groups
    events:[EventResponse]
         Selectable individual events
    """
    _converter = t.Dict(
        {
            t.Key("event_groups"):  t.List(t.Dict().allow_extra("*")),
            t.Key("events"):  t.List(t.Dict().allow_extra("*")),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        event_groups,
        events,
    ):
        self.event_groups = event_groups
        self.events = events

    def __repr__(self):
        return (
            "NotificationEventListResponse("
            "event_groups={0.event_groups}, "
            "events={0.events}, "
        ).format(self)
