#
# 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.time_delta import TimeDelta

class FeatureLineageTimeInfo(APIObject):
    """
    Attributes
    ----------
    duration:TimeDelta
        
    latest:TimeDelta
        
    """
    _converter = t.Dict(
        {
            t.Key("duration"):  t.Any(),
            t.Key("latest"):  t.Any(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        duration,
        latest,
    ):
        self.duration = duration
        self.latest = latest

    def __repr__(self):
        return (
            "FeatureLineageTimeInfo("
            "duration={0.duration}, "
            "latest={0.latest}, "
        ).format(self)
