#
# 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 CredentialsToAdd(APIObject):
    """
    Attributes
    ----------
    object_id:str
         Object ID identifying the object to be associated with the credentials.
    object_type:str
         Type of object associated with the credentials.. defaults to "dataconnection", must be one of ["dataconnection", ]
    """
    _converter = t.Dict(
        {
            t.Key("object_id"):  t.String(),
            t.Key("object_type"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        object_id,
        object_type,
    ):
        self.object_id = object_id
        self.object_type = object_type

    def __repr__(self):
        return (
            "CredentialsToAdd("
            "object_id={0.object_id}, "
            "object_type={0.object_type}, "
        ).format(self)
