#
# 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 PassthroughColumnDefinitionPayload(APIObject):
    """
    Attributes
    ----------
    data_type:int
         Column data type
    name:str
         Column name
    precision:int
         Precision of the column
    scale:int
         Scale of the column
    """
    _converter = t.Dict(
        {
            t.Key("data_type"):  t.Int(),
            t.Key("name"):  t.String(),
            t.Key("precision"):  t.Int(),
            t.Key("scale"):  t.Int(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        data_type,
        name,
        precision,
        scale,
    ):
        self.data_type = data_type
        self.name = name
        self.precision = precision
        self.scale = scale

    def __repr__(self):
        return (
            "PassthroughColumnDefinitionPayload("
            "data_type={0.data_type}, "
            "name={0.name}, "
            "precision={0.precision}, "
            "scale={0.scale}, "
        ).format(self)
