#
# 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 DataSourceUpdate(APIObject):
    """
    Attributes
    ----------
    canonical_name:str [optional]
         Data source canonical name.. 
    params:bool, date, datetime, dict, float, int, list, str, none_type [optional]
         Data source configuration.. 
    """
    _converter = t.Dict(
        {
            t.Key("canonical_name", optional=True):  t.String(),
            t.Key("params", optional=True):  t.Any(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        canonical_name=None,
        params=None,
    ):
        self.canonical_name = canonical_name
        self.params = params

    def __repr__(self):
        return (
            "DataSourceUpdate("
            "canonical_name={0.canonical_name}, "
            "params={0.params}, "
        ).format(self)
