#
# 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 UseCaseAttachment(APIObject):
    """
    Attributes
    ----------
    attached_object_id:str
         The id of the attached object
    type:str
         Use case attachment type
    """
    _converter = t.Dict(
        {
            t.Key("attached_object_id"):  t.String(),
            t.Key("type"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        attached_object_id,
        type,
    ):
        self.attached_object_id = attached_object_id
        self.type = type

    def __repr__(self):
        return (
            "UseCaseAttachment("
            "attached_object_id={0.attached_object_id}, "
            "type={0.type}, "
        ).format(self)
