#
# 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 Select(APIObject):
    """
    Attributes
    ----------
    supports_grid_search:bool
         When True, Grid Search is supported for this parameter.
    values:[str]
         List of valid values for this field.
    """
    _converter = t.Dict(
        {
            t.Key("supports_grid_search"):  t.Bool(),
            t.Key("values"):  t.List(t.Dict().allow_extra("*")),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        supports_grid_search,
        values,
    ):
        self.supports_grid_search = supports_grid_search
        self.values = values

    def __repr__(self):
        return (
            "Select("
            "supports_grid_search={0.supports_grid_search}, "
            "values={0.values}, "
        ).format(self)
