#
# 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.histogram_bars_details import HistogramBarsDetails

class HistogramDetails(APIObject):
    """
    Attributes
    ----------
    bars:[HistogramBarsDetails]
         Class details for the histogram chart.
    bin:str
         Label for the bin grouping.
    """
    _converter = t.Dict(
        {
            t.Key("bars"):  t.List(t.Dict().allow_extra("*")),
            t.Key("bin"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        bars,
        bin,
    ):
        self.bars = bars
        self.bin = bin

    def __repr__(self):
        return (
            "HistogramDetails("
            "bars={0.bars}, "
            "bin={0.bin}, "
        ).format(self)
