How to use azure-cognitiveservices-knowledge-qnamaker - 4 common examples

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)
github Azure / azure-sdk-for-python / azure-cognitiveservices-knowledge-qnamaker / azure / cognitiveservices / knowledge / qnamaker / models / update_kb_contents_dto.py View on Github external
def __init__(self, **kwargs):
        super(UpdateKbContentsDTO, self).__init__(**kwargs)
        self.name = kwargs.get('name', None)
        self.qna_list = kwargs.get('qna_list', None)
        self.urls = kwargs.get('urls', None)
github Azure / azure-sdk-for-python / azure-cognitiveservices-knowledge-qnamaker / azure / cognitiveservices / knowledge / qnamaker / models / update_kb_contents_dto_py3.py View on Github external
def __init__(self, *, name: str=None, qna_list=None, urls=None, **kwargs) -> None:
        super(UpdateKbContentsDTO, self).__init__(**kwargs)
        self.name = name
        self.qna_list = qna_list
        self.urls = urls