-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 70d1ba468a6326d9c7a2ac7db2d7d0a7438896d1 (#6457)
update readme
- Loading branch information
1 parent
f7bd8d4
commit e216bae
Showing
22 changed files
with
917 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...owledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/models/feedback_record_dto.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 FeedbackRecordDTO(Model): | ||
"""Active learning feedback record. | ||
:param user_id: Unique identifier for the user. | ||
:type user_id: str | ||
:param user_question: The suggested question being provided as feedback. | ||
:type user_question: str | ||
:param qna_id: The qnaId for which the suggested question is provided as | ||
feedback. | ||
:type qna_id: int | ||
""" | ||
|
||
_validation = { | ||
'user_question': {'max_length': 1000}, | ||
} | ||
|
||
_attribute_map = { | ||
'user_id': {'key': 'userId', 'type': 'str'}, | ||
'user_question': {'key': 'userQuestion', 'type': 'str'}, | ||
'qna_id': {'key': 'qnaId', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(FeedbackRecordDTO, self).__init__(**kwargs) | ||
self.user_id = kwargs.get('user_id', None) | ||
self.user_question = kwargs.get('user_question', None) | ||
self.qna_id = kwargs.get('qna_id', None) |
41 changes: 41 additions & 0 deletions
41
...dge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/models/feedback_record_dto_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 FeedbackRecordDTO(Model): | ||
"""Active learning feedback record. | ||
:param user_id: Unique identifier for the user. | ||
:type user_id: str | ||
:param user_question: The suggested question being provided as feedback. | ||
:type user_question: str | ||
:param qna_id: The qnaId for which the suggested question is provided as | ||
feedback. | ||
:type qna_id: int | ||
""" | ||
|
||
_validation = { | ||
'user_question': {'max_length': 1000}, | ||
} | ||
|
||
_attribute_map = { | ||
'user_id': {'key': 'userId', 'type': 'str'}, | ||
'user_question': {'key': 'userQuestion', 'type': 'str'}, | ||
'qna_id': {'key': 'qnaId', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, *, user_id: str=None, user_question: str=None, qna_id: int=None, **kwargs) -> None: | ||
super(FeedbackRecordDTO, self).__init__(**kwargs) | ||
self.user_id = user_id | ||
self.user_question = user_question | ||
self.qna_id = qna_id |
29 changes: 29 additions & 0 deletions
29
...wledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/models/feedback_records_dto.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 FeedbackRecordsDTO(Model): | ||
"""Active learning feedback records. | ||
:param feedback_records: List of feedback records. | ||
:type feedback_records: | ||
list[~azure.cognitiveservices.knowledge.qnamaker.models.FeedbackRecordDTO] | ||
""" | ||
|
||
_attribute_map = { | ||
'feedback_records': {'key': 'feedbackRecords', 'type': '[FeedbackRecordDTO]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(FeedbackRecordsDTO, self).__init__(**kwargs) | ||
self.feedback_records = kwargs.get('feedback_records', None) |
29 changes: 29 additions & 0 deletions
29
...ge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/models/feedback_records_dto_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 FeedbackRecordsDTO(Model): | ||
"""Active learning feedback records. | ||
:param feedback_records: List of feedback records. | ||
:type feedback_records: | ||
list[~azure.cognitiveservices.knowledge.qnamaker.models.FeedbackRecordDTO] | ||
""" | ||
|
||
_attribute_map = { | ||
'feedback_records': {'key': 'feedbackRecords', 'type': '[FeedbackRecordDTO]'}, | ||
} | ||
|
||
def __init__(self, *, feedback_records=None, **kwargs) -> None: | ||
super(FeedbackRecordsDTO, self).__init__(**kwargs) | ||
self.feedback_records = feedback_records |
30 changes: 30 additions & 0 deletions
30
...maker/azure/cognitiveservices/knowledge/qnamaker/models/qn_amaker_runtime_client_enums.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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 enum import Enum | ||
|
||
|
||
class ErrorCodeType(str, Enum): | ||
|
||
bad_argument = "BadArgument" | ||
forbidden = "Forbidden" | ||
not_found = "NotFound" | ||
kb_not_found = "KbNotFound" | ||
unauthorized = "Unauthorized" | ||
unspecified = "Unspecified" | ||
endpoint_keys_error = "EndpointKeysError" | ||
quota_exceeded = "QuotaExceeded" | ||
qna_runtime_error = "QnaRuntimeError" | ||
sku_limit_exceeded = "SKULimitExceeded" | ||
operation_not_found = "OperationNotFound" | ||
service_error = "ServiceError" | ||
validation_failure = "ValidationFailure" | ||
extraction_failure = "ExtractionFailure" |
Oops, something went wrong.