#
# 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.shap_warning_items import ShapWarningItems

class ShapWarning(APIObject):
    """
    Attributes
    ----------
    partition_name:str
         The partition used for the prediction record.
    value:ShapWarningItems
        
    """
    _converter = t.Dict(
        {
            t.Key("partition_name"):  t.String(),
            t.Key("value"):  t.Any(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        partition_name,
        value,
    ):
        self.partition_name = partition_name
        self.value = value

    def __repr__(self):
        return (
            "ShapWarning("
            "partition_name={0.partition_name}, "
            "value={0.value}, "
        ).format(self)
