#
# 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 CustomModelVersionShortResponse(APIObject):
    """
    Attributes
    ----------
    id:str
         The ID of the custom model version.
    label:str
         User-friendly name of the model version.
    """
    _converter = t.Dict(
        {
            t.Key("id"):  t.String(),
            t.Key("label"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        id,
        label,
    ):
        self.id = id
        self.label = label

    def __repr__(self):
        return (
            "CustomModelVersionShortResponse("
            "id={0.id}, "
            "label={0.label}, "
        ).format(self)
