#
# 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 Float(APIObject):
    """
    Attributes
    ----------
    max:float
         Maximum value for the parameter.
    min:float
         Minimum value for the parameter.
    supports_grid_search:bool
         When True, Grid Search is supported for this parameter.
    """
    _converter = t.Dict(
        {
            t.Key("max"):  t.Float(),
            t.Key("min"):  t.Float(),
            t.Key("supports_grid_search"):  t.Bool(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        max,
        min,
        supports_grid_search,
    ):
        self.max = max
        self.min = min
        self.supports_grid_search = supports_grid_search

    def __repr__(self):
        return (
            "Float("
            "max={0.max}, "
            "min={0.min}, "
            "supports_grid_search={0.supports_grid_search}, "
        ).format(self)
