#
# 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 Autopilot(APIObject):
    """
    Attributes
    ----------
    command:str
         If `start`, will unpause the autopilot and run queued jobs if workers are available.  If `stop`, will pause the autopilot so no new jobs will be started.
    """
    _converter = t.Dict(
        {
            t.Key("command"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        command,
    ):
        self.command = command

    def __repr__(self):
        return (
            "Autopilot("
            "command={0.command}, "
        ).format(self)
