#
# 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 UseCaseAttachmentDeploymentPredictionUsage(APIObject):
    """
    Attributes
    ----------
    daily_rates:[int]
         List of daily request counts
    last_timestamp:datetime
         Last prediction time
    """
    _converter = t.Dict(
        {
            t.Key("daily_rates"):  t.List(t.Dict().allow_extra("*")),
            t.Key("last_timestamp"):  t.DateTime(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        daily_rates,
        last_timestamp,
    ):
        self.daily_rates = daily_rates
        self.last_timestamp = last_timestamp

    def __repr__(self):
        return (
            "UseCaseAttachmentDeploymentPredictionUsage("
            "daily_rates={0.daily_rates}, "
            "last_timestamp={0.last_timestamp}, "
        ).format(self)
