#
# 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 ApprovalPolicyTriggerLabel(APIObject):
    """
    Attributes
    ----------
    group_label:str
         Group Label.
    label:str
         Label.
    """
    _converter = t.Dict(
        {
            t.Key("group_label"):  t.String(),
            t.Key("label"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        group_label,
        label,
    ):
        self.group_label = group_label
        self.label = label

    def __repr__(self):
        return (
            "ApprovalPolicyTriggerLabel("
            "group_label={0.group_label}, "
            "label={0.label}, "
        ).format(self)
