Source code for azure.cognitiveservices.knowledge.qnamaker.models.update_kb_operation_dto_update_py3

# 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 .update_kb_contents_dto_py3 import UpdateKbContentsDTO


[docs]class UpdateKbOperationDTOUpdate(UpdateKbContentsDTO): """An instance of UpdateKbContentsDTO for Update Operation. :param name: Friendly name for the knowledgebase. :type name: str :param qna_list: List of Q-A (UpdateQnaDTO) to be added to the knowledgebase. :type qna_list: list[~azure.cognitiveservices.knowledge.qnamaker.models.UpdateQnaDTO] :param urls: List of existing URLs to be refreshed. The content will be extracted again and re-indexed. :type urls: list[str] :param default_answer: Default answer sent to user if no good match is found in the KB. :type default_answer: str """ _validation = { 'default_answer': {'max_length': 300, 'min_length': 1}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'qna_list': {'key': 'qnaList', 'type': '[UpdateQnaDTO]'}, 'urls': {'key': 'urls', 'type': '[str]'}, 'default_answer': {'key': 'defaultAnswer', 'type': 'str'}, } def __init__(self, *, name: str=None, qna_list=None, urls=None, default_answer: str=None, **kwargs) -> None: super(UpdateKbOperationDTOUpdate, self).__init__(name=name, qna_list=qna_list, urls=urls, default_answer=default_answer, **kwargs)