#
# 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 RecentEventsMetadata(APIObject):
    """
    Attributes
    ----------
    success:bool
         Was this a successful event
    url:str
         URL
    """
    _converter = t.Dict(
        {
            t.Key("success"):  t.Bool(),
            t.Key("url"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        success,
        url,
    ):
        self.success = success
        self.url = url

    def __repr__(self):
        return (
            "RecentEventsMetadata("
            "success={0.success}, "
            "url={0.url}, "
        ).format(self)
