#
# 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 FeatureCountByTypeResponse(APIObject):
    """
    Attributes
    ----------
    count:int
         The number of features of this type in the dataset
    feature_type:str
         The data type grouped in this count
    """
    _converter = t.Dict(
        {
            t.Key("count"):  t.Int(),
            t.Key("feature_type"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        count,
        feature_type,
    ):
        self.count = count
        self.feature_type = feature_type

    def __repr__(self):
        return (
            "FeatureCountByTypeResponse("
            "count={0.count}, "
            "feature_type={0.feature_type}, "
        ).format(self)
