# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

# 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 ResponseDocumentDeletionResult(Model):
    """A response representing the result of a request to delete a document from
    your index's catalog.

    :param document_id: The _itemid for the item item that has been deleted
     from the index.
    :type document_id: str
    :param deleted: A boolean flag that specifies whether or not the document
     has been successfully deleted.
    :type deleted: bool
    :param error_message: An error message for the request, if any.
    :type error_message: str
    """

    _attribute_map = {
        'document_id': {'key': 'documentId', 'type': 'str'},
        'deleted': {'key': 'deleted', 'type': 'bool'},
        'error_message': {'key': 'errorMessage', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(ResponseDocumentDeletionResult, self).__init__(**kwargs)
        self.document_id = kwargs.get('document_id', None)
        self.deleted = kwargs.get('deleted', None)
        self.error_message = kwargs.get('error_message', None)
