#
# 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 ResponseNotification(APIObject):
    """
    Attributes
    ----------
    body:str
         The body of the response
    duration:int
         The duration
    headers:str
         The headers of the response
    status_code:str
         The status code of the response
    """
    _converter = t.Dict(
        {
            t.Key("body"):  t.String(),
            t.Key("duration"):  t.Int(),
            t.Key("headers"):  t.String(),
            t.Key("status_code"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        body,
        duration,
        headers,
        status_code,
    ):
        self.body = body
        self.duration = duration
        self.headers = headers
        self.status_code = status_code

    def __repr__(self):
        return (
            "ResponseNotification("
            "body={0.body}, "
            "duration={0.duration}, "
            "headers={0.headers}, "
            "status_code={0.status_code}, "
        ).format(self)
