#
# 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
from datarobot.models.full_api.generated.model.base_constraint_type import BaseConstraintType
from datarobot.models.full_api.generated.model.float_list import FloatList
from datarobot.models.full_api.generated.model.int import Int
from datarobot.models.full_api.generated.model.int_list import IntList
from datarobot.models.full_api.generated.model.select import Select

class Constraints(APIObject):
    """
    Attributes
    ----------
    ascii:BaseConstraintType [optional]
         
    float:Float [optional]
         
    float_list:FloatList [optional]
         
    int:Int [optional]
         
    int_list:IntList [optional]
         
    select:Select [optional]
         
    selectgrid:Select [optional]
         
    unicode:BaseConstraintType [optional]
         
    """
    _converter = t.Dict(
        {
            t.Key("ascii", optional=True):  t.Any(),
            t.Key("float", optional=True):  t.Any(),
            t.Key("float_list", optional=True):  t.Any(),
            t.Key("int", optional=True):  t.Any(),
            t.Key("int_list", optional=True):  t.Any(),
            t.Key("select", optional=True):  t.Any(),
            t.Key("selectgrid", optional=True):  t.Any(),
            t.Key("unicode", optional=True):  t.Any(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        ascii=None,
        float=None,
        float_list=None,
        int=None,
        int_list=None,
        select=None,
        selectgrid=None,
        unicode=None,
    ):
        self.ascii = ascii
        self.float = float
        self.float_list = float_list
        self.int = int
        self.int_list = int_list
        self.select = select
        self.selectgrid = selectgrid
        self.unicode = unicode

    def __repr__(self):
        return (
            "Constraints("
            "ascii={0.ascii}, "
            "float={0.float}, "
            "float_list={0.float_list}, "
            "int={0.int}, "
            "int_list={0.int_list}, "
            "select={0.select}, "
            "selectgrid={0.selectgrid}, "
            "unicode={0.unicode}, "
        ).format(self)
