How to use the azure-cognitiveservices-knowledge-qnamaker.azure.cognitiveservices.knowledge.qnamaker.models.delete_kb_contents_dto.DeleteKbContentsDTO function in azure-cognitiveservices-knowledge-qnamaker

To help you get started, we’ve selected a few azure-cognitiveservices-knowledge-qnamaker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-python / azure-cognitiveservices-knowledge-qnamaker / azure / cognitiveservices / knowledge / qnamaker / models / update_kb_operation_dto_delete.py View on Github external
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .delete_kb_contents_dto import DeleteKbContentsDTO


class UpdateKbOperationDTODelete(DeleteKbContentsDTO):
    """An instance of DeleteKbContentsDTO for delete Operation.

    :param ids: List of Qna Ids to be deleted
    :type ids: list[int]
    :param sources: List of sources to be deleted from knowledgebase.
    :type sources: list[str]
    """

    _attribute_map = {
        'ids': {'key': 'ids', 'type': '[int]'},
        'sources': {'key': 'sources', 'type': '[str]'},
    }

    def __init__(self, **kwargs):
        super(UpdateKbOperationDTODelete, self).__init__(**kwargs)