#
# 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 TargetDate(APIObject):
    """
    Attributes
    ----------
    date:datetime
         Date of the target
    stage:str
         Name of the target stage
    """
    _converter = t.Dict(
        {
            t.Key("date"):  t.DateTime(),
            t.Key("stage"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        date,
        stage,
    ):
        self.date = date
        self.stage = stage

    def __repr__(self):
        return (
            "TargetDate("
            "date={0.date}, "
            "stage={0.stage}, "
        ).format(self)
