# 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 .create_kb_input_dto_py3 import CreateKbInputDTO
[docs]class UpdateKbOperationDTOAdd(CreateKbInputDTO):
"""An instance of CreateKbInputDTO for add operation.
:param qna_list: List of QNA to be added to the index. Ids are generated
by the service and should be omitted.
:type qna_list:
list[~azure.cognitiveservices.knowledge.qnamaker.models.QnADTO]
:param urls: List of URLs to be added to knowledgebase.
:type urls: list[str]
:param files: List of files to be added to knowledgebase.
:type files:
list[~azure.cognitiveservices.knowledge.qnamaker.models.FileDTO]
"""
_attribute_map = {
'qna_list': {'key': 'qnaList', 'type': '[QnADTO]'},
'urls': {'key': 'urls', 'type': '[str]'},
'files': {'key': 'files', 'type': '[FileDTO]'},
}
def __init__(self, *, qna_list=None, urls=None, files=None, **kwargs) -> None:
super(UpdateKbOperationDTOAdd, self).__init__(qna_list=qna_list, urls=urls, files=files, **kwargs)