# 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 BulkEnrollmentOperationResult(Model):
    """Results of a bulk enrollment operation.

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

    :param is_successful: Required. Indicates if the operation was successful
     in its entirety
    :type is_successful: bool
    :param errors: Registration errors
    :type errors: list[~protocol.models.BulkEnrollmentOperationError]
    """

    _validation = {"is_successful": {"required": True}}

    _attribute_map = {
        "is_successful": {"key": "isSuccessful", "type": "bool"},
        "errors": {"key": "errors", "type": "[BulkEnrollmentOperationError]"},
    }

    def __init__(self, *, is_successful: bool, errors=None, **kwargs) -> None:
        super(BulkEnrollmentOperationResult, self).__init__(**kwargs)
        self.is_successful = is_successful
        self.errors = errors

# 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 BulkEnrollmentOperationResult(Model):
    """Results of a bulk enrollment operation.

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

    :param is_successful: Required. Indicates if the operation was successful
     in its entirety
    :type is_successful: bool
    :param errors: Registration errors
    :type errors: list[~protocol.models.BulkEnrollmentOperationError]
    """

    _validation = {"is_successful": {"required": True}}

    _attribute_map = {
        "is_successful": {"key": "isSuccessful", "type": "bool"},
        "errors": {"key": "errors", "type": "[BulkEnrollmentOperationError]"},
    }

    def __init__(self, *, is_successful: bool, errors=None, **kwargs) -> None:
        super(BulkEnrollmentOperationResult, self).__init__(**kwargs)
        self.is_successful = is_successful
        self.errors = errors

# 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. # -------------------------------------------------------------------------- Results of a bulk enrollment operation.      All required parameters must be populated in order to send to Azure.      :param is_successful: Required. Indicates if the operation was successful      in its entirety     :type is_successful: bool     :param errors: Registration errors     :type errors: list[~protocol.models.BulkEnrollmentOperationError]