#
# 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 TargetBin(APIObject):
    """
    Attributes
    ----------
    target_bin_end:float
         End value for the target bin
    target_bin_start:float
         Start value for the target bin
    """
    _converter = t.Dict(
        {
            t.Key("target_bin_end"):  t.Float(),
            t.Key("target_bin_start"):  t.Float(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        target_bin_end,
        target_bin_start,
    ):
        self.target_bin_end = target_bin_end
        self.target_bin_start = target_bin_start

    def __repr__(self):
        return (
            "TargetBin("
            "target_bin_end={0.target_bin_end}, "
            "target_bin_start={0.target_bin_start}, "
        ).format(self)
