#
# 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 ProjectNukeJobStatusSummaryObject(APIObject):
    """
    Attributes
    ----------
    aborted:int
         Number of project permadelete jobs with Aborted status.
    completed:int
         Number of project permadelete jobs with Completed status.
    error:int
         Number of project permadelete jobs with Error status.
    expired:int
         Number of project permadelete jobs with Expired status.
    """
    _converter = t.Dict(
        {
            t.Key("aborted"):  t.Int(),
            t.Key("completed"):  t.Int(),
            t.Key("error"):  t.Int(),
            t.Key("expired"):  t.Int(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        aborted,
        completed,
        error,
        expired,
    ):
        self.aborted = aborted
        self.completed = completed
        self.error = error
        self.expired = expired

    def __repr__(self):
        return (
            "ProjectNukeJobStatusSummaryObject("
            "aborted={0.aborted}, "
            "completed={0.completed}, "
            "error={0.error}, "
            "expired={0.expired}, "
        ).format(self)
