#
# 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 BlenderInfoRetrieveResponse(APIObject):
    """
    Attributes
    ----------
    blendable:bool
         If True, the models can be blended.
    reason:str
         Useful info as to why a model can't be blended.
    """
    _converter = t.Dict(
        {
            t.Key("blendable"):  t.Bool(),
            t.Key("reason"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        blendable,
        reason,
    ):
        self.blendable = blendable
        self.reason = reason

    def __repr__(self):
        return (
            "BlenderInfoRetrieveResponse("
            "blendable={0.blendable}, "
            "reason={0.reason}, "
        ).format(self)
