Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,34 @@
from .update_kb_operation_dto_py3 import UpdateKbOperationDTO
from .update_qna_dto_questions_py3 import UpdateQnaDTOQuestions
from .update_qna_dto_metadata_py3 import UpdateQnaDTOMetadata
from .update_qna_dto_context_py3 import UpdateQnaDTOContext
from .update_qna_dto_py3 import UpdateQnaDTO
from .update_kb_contents_dto_py3 import UpdateKbContentsDTO
from .update_questions_dto_py3 import UpdateQuestionsDTO
from .metadata_dto_py3 import MetadataDTO
from .update_metadata_dto_py3 import UpdateMetadataDTO
from .prompt_dto_qna_py3 import PromptDTOQna
from .prompt_dto_py3 import PromptDTO
from .update_context_dto_py3 import UpdateContextDTO
from .delete_kb_contents_dto_py3 import DeleteKbContentsDTO
from .qn_adto_context_py3 import QnADTOContext
from .qn_adto_py3 import QnADTO
from .file_dto_py3 import FileDTO
from .create_kb_input_dto_py3 import CreateKbInputDTO
from .qn_adocuments_dto_py3 import QnADocumentsDTO
from .create_kb_dto_py3 import CreateKbDTO
from .replace_kb_dto_py3 import ReplaceKbDTO
from .context_dto_py3 import ContextDTO
from .error_response_error_py3 import ErrorResponseError
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .inner_error_model_py3 import InnerErrorModel
from .error_py3 import Error
from .operation_py3 import Operation
from .knowledgebase_dto_py3 import KnowledgebaseDTO
from .knowledgebases_dto_py3 import KnowledgebasesDTO
from .endpoint_settings_dto_active_learning_py3 import EndpointSettingsDTOActiveLearning
from .endpoint_settings_dto_py3 import EndpointSettingsDTO
from .active_learning_settings_dto_py3 import ActiveLearningSettingsDTO
from .alterations_dto_py3 import AlterationsDTO
from .word_alterations_dto_py3 import WordAlterationsDTO
from .endpoint_keys_dto_py3 import EndpointKeysDTO
Expand All @@ -45,25 +54,34 @@
from .update_kb_operation_dto import UpdateKbOperationDTO
from .update_qna_dto_questions import UpdateQnaDTOQuestions
from .update_qna_dto_metadata import UpdateQnaDTOMetadata
from .update_qna_dto_context import UpdateQnaDTOContext
from .update_qna_dto import UpdateQnaDTO
from .update_kb_contents_dto import UpdateKbContentsDTO
from .update_questions_dto import UpdateQuestionsDTO
from .metadata_dto import MetadataDTO
from .update_metadata_dto import UpdateMetadataDTO
from .prompt_dto_qna import PromptDTOQna
from .prompt_dto import PromptDTO
from .update_context_dto import UpdateContextDTO
from .delete_kb_contents_dto import DeleteKbContentsDTO
from .qn_adto_context import QnADTOContext
from .qn_adto import QnADTO
from .file_dto import FileDTO
from .create_kb_input_dto import CreateKbInputDTO
from .qn_adocuments_dto import QnADocumentsDTO
from .create_kb_dto import CreateKbDTO
from .replace_kb_dto import ReplaceKbDTO
from .context_dto import ContextDTO
from .error_response_error import ErrorResponseError
from .error_response import ErrorResponse, ErrorResponseException
from .inner_error_model import InnerErrorModel
from .error import Error
from .operation import Operation
from .knowledgebase_dto import KnowledgebaseDTO
from .knowledgebases_dto import KnowledgebasesDTO
from .endpoint_settings_dto_active_learning import EndpointSettingsDTOActiveLearning
from .endpoint_settings_dto import EndpointSettingsDTO
from .active_learning_settings_dto import ActiveLearningSettingsDTO
from .alterations_dto import AlterationsDTO
from .word_alterations_dto import WordAlterationsDTO
from .endpoint_keys_dto import EndpointKeysDTO
Expand All @@ -81,25 +99,34 @@
'UpdateKbOperationDTO',
'UpdateQnaDTOQuestions',
'UpdateQnaDTOMetadata',
'UpdateQnaDTOContext',
'UpdateQnaDTO',
'UpdateKbContentsDTO',
'UpdateQuestionsDTO',
'MetadataDTO',
'UpdateMetadataDTO',
'PromptDTOQna',
'PromptDTO',
'UpdateContextDTO',
'DeleteKbContentsDTO',
'QnADTOContext',
'QnADTO',
'FileDTO',
'CreateKbInputDTO',
'QnADocumentsDTO',
'CreateKbDTO',
'ReplaceKbDTO',
'ContextDTO',
'ErrorResponseError',
'ErrorResponse', 'ErrorResponseException',
'InnerErrorModel',
'Error',
'Operation',
'KnowledgebaseDTO',
'KnowledgebasesDTO',
'EndpointSettingsDTOActiveLearning',
'EndpointSettingsDTO',
'ActiveLearningSettingsDTO',
'AlterationsDTO',
'WordAlterationsDTO',
'EndpointKeysDTO',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 msrest.serialization import Model


class ActiveLearningSettingsDTO(Model):
"""Active Learning settings of the endpoint.

:param enable: True/False string providing Active Learning
:type enable: str
"""

_attribute_map = {
'enable': {'key': 'enable', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ActiveLearningSettingsDTO, self).__init__(**kwargs)
self.enable = kwargs.get('enable', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 msrest.serialization import Model


class ActiveLearningSettingsDTO(Model):
"""Active Learning settings of the endpoint.

:param enable: True/False string providing Active Learning
:type enable: str
"""

_attribute_map = {
'enable': {'key': 'enable', 'type': 'str'},
}

def __init__(self, *, enable: str=None, **kwargs) -> None:
super(ActiveLearningSettingsDTO, self).__init__(**kwargs)
self.enable = enable
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 msrest.serialization import Model


class ContextDTO(Model):
"""Context associated with Qna.

:param is_context_only: To mark if a prompt is relevant only with a
previous question or not.
true - Do not include this QnA as search result for queries without
context
false - ignores context and includes this QnA in search result
:type is_context_only: bool
:param prompts: List of prompts associated with the answer.
:type prompts:
list[~azure.cognitiveservices.knowledge.qnamaker.models.PromptDTO]
"""

_validation = {
'prompts': {'max_items': 20},
}

_attribute_map = {
'is_context_only': {'key': 'isContextOnly', 'type': 'bool'},
'prompts': {'key': 'prompts', 'type': '[PromptDTO]'},
}

def __init__(self, **kwargs):
super(ContextDTO, self).__init__(**kwargs)
self.is_context_only = kwargs.get('is_context_only', None)
self.prompts = kwargs.get('prompts', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 msrest.serialization import Model


class ContextDTO(Model):
"""Context associated with Qna.

:param is_context_only: To mark if a prompt is relevant only with a
previous question or not.
true - Do not include this QnA as search result for queries without
context
false - ignores context and includes this QnA in search result
:type is_context_only: bool
:param prompts: List of prompts associated with the answer.
:type prompts:
list[~azure.cognitiveservices.knowledge.qnamaker.models.PromptDTO]
"""

_validation = {
'prompts': {'max_items': 20},
}

_attribute_map = {
'is_context_only': {'key': 'isContextOnly', 'type': 'bool'},
'prompts': {'key': 'prompts', 'type': '[PromptDTO]'},
}

def __init__(self, *, is_context_only: bool=None, prompts=None, **kwargs) -> None:
super(ContextDTO, self).__init__(**kwargs)
self.is_context_only = is_context_only
self.prompts = prompts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 msrest.serialization import Model


class EndpointSettingsDTO(Model):
"""Endpoint settings.

:param active_learning: Active Learning settings of the endpoint.
:type active_learning:
~azure.cognitiveservices.knowledge.qnamaker.models.EndpointSettingsDTOActiveLearning
"""

_attribute_map = {
'active_learning': {'key': 'activeLearning', 'type': 'EndpointSettingsDTOActiveLearning'},
}

def __init__(self, **kwargs):
super(EndpointSettingsDTO, self).__init__(**kwargs)
self.active_learning = kwargs.get('active_learning', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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 .active_learning_settings_dto import ActiveLearningSettingsDTO


class EndpointSettingsDTOActiveLearning(ActiveLearningSettingsDTO):
"""Active Learning settings of the endpoint.

:param enable: True/False string providing Active Learning
:type enable: str
"""

_attribute_map = {
'enable': {'key': 'enable', 'type': 'str'},
}

def __init__(self, **kwargs):
super(EndpointSettingsDTOActiveLearning, self).__init__(**kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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 .active_learning_settings_dto_py3 import ActiveLearningSettingsDTO


class EndpointSettingsDTOActiveLearning(ActiveLearningSettingsDTO):
"""Active Learning settings of the endpoint.

:param enable: True/False string providing Active Learning
:type enable: str
"""

_attribute_map = {
'enable': {'key': 'enable', 'type': 'str'},
}

def __init__(self, *, enable: str=None, **kwargs) -> None:
super(EndpointSettingsDTOActiveLearning, self).__init__(enable=enable, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 msrest.serialization import Model


class EndpointSettingsDTO(Model):
"""Endpoint settings.

:param active_learning: Active Learning settings of the endpoint.
:type active_learning:
~azure.cognitiveservices.knowledge.qnamaker.models.EndpointSettingsDTOActiveLearning
"""

_attribute_map = {
'active_learning': {'key': 'activeLearning', 'type': 'EndpointSettingsDTOActiveLearning'},
}

def __init__(self, *, active_learning=None, **kwargs) -> None:
super(EndpointSettingsDTO, self).__init__(**kwargs)
self.active_learning = active_learning
Loading