from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from chromestatus_openapi.models.base_model import Model
from chromestatus_openapi import util


class MilestoneCurationPatchRequest(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, status=None, curator_emails=None):  # noqa: E501
        """MilestoneCurationPatchRequest - a model defined in OpenAPI

        :param status: The status of this MilestoneCurationPatchRequest.  # noqa: E501
        :type status: str
        :param curator_emails: The curator_emails of this MilestoneCurationPatchRequest.  # noqa: E501
        :type curator_emails: List[str]
        """
        self.openapi_types = {
            'status': str,
            'curator_emails': List[str]
        }

        self.attribute_map = {
            'status': 'status',
            'curator_emails': 'curator_emails'
        }

        self._status = status
        self._curator_emails = curator_emails

    @classmethod
    def from_dict(cls, dikt) -> 'MilestoneCurationPatchRequest':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The MilestoneCurationPatchRequest of this MilestoneCurationPatchRequest.  # noqa: E501
        :rtype: MilestoneCurationPatchRequest
        """
        return util.deserialize_model(dikt, cls)

    @property
    def status(self) -> str:
        """Gets the status of this MilestoneCurationPatchRequest.

        Updated editorial review status for the milestone. Null if status is unchanged: - PENDING: Milestone curation reset to un-started. - IN_REVIEW: Milestone curation marked under active review. - COMPLETED: Marks milestone curation completed and populates last_reviewed timestamp.   # noqa: E501

        :return: The status of this MilestoneCurationPatchRequest.
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status: str):
        """Sets the status of this MilestoneCurationPatchRequest.

        Updated editorial review status for the milestone. Null if status is unchanged: - PENDING: Milestone curation reset to un-started. - IN_REVIEW: Milestone curation marked under active review. - COMPLETED: Marks milestone curation completed and populates last_reviewed timestamp.   # noqa: E501

        :param status: The status of this MilestoneCurationPatchRequest.
        :type status: str
        """
        allowed_values = [None,"PENDING", "IN_REVIEW", "COMPLETED"]  # noqa: E501
        if status not in allowed_values:
            raise ValueError(
                "Invalid value for `status` ({0}), must be one of {1}"
                .format(status, allowed_values)
            )

        self._status = status

    @property
    def curator_emails(self) -> List[str]:
        """Gets the curator_emails of this MilestoneCurationPatchRequest.

        Updated list of assigned curator email addresses.  # noqa: E501

        :return: The curator_emails of this MilestoneCurationPatchRequest.
        :rtype: List[str]
        """
        return self._curator_emails

    @curator_emails.setter
    def curator_emails(self, curator_emails: List[str]):
        """Sets the curator_emails of this MilestoneCurationPatchRequest.

        Updated list of assigned curator email addresses.  # noqa: E501

        :param curator_emails: The curator_emails of this MilestoneCurationPatchRequest.
        :type curator_emails: List[str]
        """

        self._curator_emails = curator_emails
