#
# 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 NumIterationsTrainedData(APIObject):
    """
    Attributes
    ----------
    num_iterations:int
         The number of iterations run in this stage of modeling.
    stage:str, none_type
         Modeling stage or None if it is a single-stage model
    """
    _converter = t.Dict(
        {
            t.Key("num_iterations"):  t.Int(),
            t.Key("stage"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        num_iterations,
        stage,
    ):
        self.num_iterations = num_iterations
        self.stage = stage

    def __repr__(self):
        return (
            "NumIterationsTrainedData("
            "num_iterations={0.num_iterations}, "
            "stage={0.stage}, "
        ).format(self)
