# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ActivityEventAssignmentChild(Model):
    """ActivityEventAssignmentChild.

    All required parameters must be populated in order to send to Azure.

    :param assignment_id: Required. Assignment record id
    :type assignment_id: str
    :param assignment_type: Required. Assigment type (created, updated,
     assigned to, etc). Possible values include: 'Created', 'Updated',
     'AssignedTo', 'AssignedBy'
    :type assignment_type: str or ~smartdiagnostics_sdk.models.enum
    :param assignment_date_time: Required. Date of assignment
    :type assignment_date_time: datetime
    :param assignment_note: Note (if available) for this assignment
    :type assignment_note: str
    :param assignment_user:
    :type assignment_user: ~smartdiagnostics_sdk.models.UserChild
    """

    _validation = {
        'assignment_id': {'required': True},
        'assignment_type': {'required': True},
        'assignment_date_time': {'required': True},
    }

    _attribute_map = {
        'assignment_id': {'key': 'AssignmentId', 'type': 'str'},
        'assignment_type': {'key': 'AssignmentType', 'type': 'str'},
        'assignment_date_time': {'key': 'AssignmentDateTime', 'type': 'iso-8601'},
        'assignment_note': {'key': 'AssignmentNote', 'type': 'str'},
        'assignment_user': {'key': 'AssignmentUser', 'type': 'UserChild'},
    }

    def __init__(self, *, assignment_id: str, assignment_type, assignment_date_time, assignment_note: str=None, assignment_user=None, **kwargs) -> None:
        super(ActivityEventAssignmentChild, self).__init__(**kwargs)
        self.assignment_id = assignment_id
        self.assignment_type = assignment_type
        self.assignment_date_time = assignment_date_time
        self.assignment_note = assignment_note
        self.assignment_user = assignment_user
