Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# 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)
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)
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
def __init__(self, **kwargs):
super(UpdateKbOperationDTODelete, self).__init__(**kwargs)