#
# 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 ApprovalPolicyAutomaticAction(APIObject):
    """
    Attributes
    ----------
    action:str
         Action of the workflow automation.
    period:str
         Period (ISO 8601) after which an action is executed on a Change Request if it is not resolved or cancelled.
    """
    _converter = t.Dict(
        {
            t.Key("action"):  t.String(),
            t.Key("period"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        action,
        period,
    ):
        self.action = action
        self.period = period

    def __repr__(self):
        return (
            "ApprovalPolicyAutomaticAction("
            "action={0.action}, "
            "period={0.period}, "
        ).format(self)
