#
# 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 DataStoreSQLVerifyResponse(APIObject):
    """
    Attributes
    ----------
    columns:[str]
         List of columns for the returned set of records. Column order matches the order of values in a record.
    records:[[str]]
         List of records output by the query.
    """
    _converter = t.Dict(
        {
            t.Key("columns"):  t.List(t.Dict().allow_extra("*")),
            t.Key("records"):  t.List(t.Dict().allow_extra("*")),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        columns,
        records,
    ):
        self.columns = columns
        self.records = records

    def __repr__(self):
        return (
            "DataStoreSQLVerifyResponse("
            "columns={0.columns}, "
            "records={0.records}, "
        ).format(self)
