huaweicloudsdkosm 3.1.164__py3-none-any.whl → 3.1.166__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of huaweicloudsdkosm might be problematic. Click here for more details.

Files changed (69) hide show
  1. huaweicloudsdkosm/v2/__init__.py +0 -60
  2. huaweicloudsdkosm/v2/model/__init__.py +0 -60
  3. huaweicloudsdkosm/v2/osm_async_client.py +45 -1130
  4. huaweicloudsdkosm/v2/osm_client.py +45 -1130
  5. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info}/METADATA +9 -10
  6. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info}/RECORD +8 -69
  7. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info}/WHEEL +1 -2
  8. huaweicloudsdkosm/v2/model/answer.py +0 -227
  9. huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
  10. huaweicloudsdkosm/v2/model/answer_info.py +0 -231
  11. huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
  12. huaweicloudsdkosm/v2/model/article.py +0 -347
  13. huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
  14. huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
  15. huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
  16. huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
  17. huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
  18. huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
  19. huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
  20. huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
  21. huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
  22. huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
  23. huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
  24. huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
  25. huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
  26. huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
  27. huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
  28. huaweicloudsdkosm/v2/model/extend_question.py +0 -144
  29. huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
  30. huaweicloudsdkosm/v2/model/lang_result.py +0 -144
  31. huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
  32. huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
  33. huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
  34. huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
  35. huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
  36. huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
  37. huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
  38. huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
  39. huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
  40. huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
  41. huaweicloudsdkosm/v2/model/notice.py +0 -199
  42. huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
  43. huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
  44. huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
  45. huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
  46. huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
  47. huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
  48. huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
  49. huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
  50. huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
  51. huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
  52. huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
  53. huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
  54. huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
  55. huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
  56. huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
  57. huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
  58. huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
  59. huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
  60. huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
  61. huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
  62. huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
  63. huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
  64. huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
  65. huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
  66. huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
  67. huaweicloudsdkosm/v2/model/tool.py +0 -287
  68. huaweicloudsdkosm-3.1.164.dist-info/top_level.txt +0 -1
  69. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -1,194 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class AnswerDetail:
9
-
10
- """
11
- Attributes:
12
- openapi_types (dict): The key is attribute name
13
- and the value is attribute type.
14
- attribute_map (dict): The key is attribute name
15
- and the value is json key in definition.
16
- """
17
- sensitive_list = []
18
-
19
- openapi_types = {
20
- 'qabot_answers': 'list[QabotAnswer]',
21
- 'qa_flow_answers': 'QaFlowHitResult',
22
- 'chat_answer': 'str',
23
- 'graph_answer': 'QaGraphAnswer'
24
- }
25
-
26
- attribute_map = {
27
- 'qabot_answers': 'qabot_answers',
28
- 'qa_flow_answers': 'qa_flow_answers',
29
- 'chat_answer': 'chat_answer',
30
- 'graph_answer': 'graph_answer'
31
- }
32
-
33
- def __init__(self, qabot_answers=None, qa_flow_answers=None, chat_answer=None, graph_answer=None):
34
- r"""AnswerDetail
35
-
36
- The model defined in huaweicloud sdk
37
-
38
- :param qabot_answers: 答案列表
39
- :type qabot_answers: list[:class:`huaweicloudsdkosm.v2.QabotAnswer`]
40
- :param qa_flow_answers:
41
- :type qa_flow_answers: :class:`huaweicloudsdkosm.v2.QaFlowHitResult`
42
- :param chat_answer: 问题
43
- :type chat_answer: str
44
- :param graph_answer:
45
- :type graph_answer: :class:`huaweicloudsdkosm.v2.QaGraphAnswer`
46
- """
47
-
48
-
49
-
50
- self._qabot_answers = None
51
- self._qa_flow_answers = None
52
- self._chat_answer = None
53
- self._graph_answer = None
54
- self.discriminator = None
55
-
56
- if qabot_answers is not None:
57
- self.qabot_answers = qabot_answers
58
- if qa_flow_answers is not None:
59
- self.qa_flow_answers = qa_flow_answers
60
- if chat_answer is not None:
61
- self.chat_answer = chat_answer
62
- if graph_answer is not None:
63
- self.graph_answer = graph_answer
64
-
65
- @property
66
- def qabot_answers(self):
67
- r"""Gets the qabot_answers of this AnswerDetail.
68
-
69
- 答案列表
70
-
71
- :return: The qabot_answers of this AnswerDetail.
72
- :rtype: list[:class:`huaweicloudsdkosm.v2.QabotAnswer`]
73
- """
74
- return self._qabot_answers
75
-
76
- @qabot_answers.setter
77
- def qabot_answers(self, qabot_answers):
78
- r"""Sets the qabot_answers of this AnswerDetail.
79
-
80
- 答案列表
81
-
82
- :param qabot_answers: The qabot_answers of this AnswerDetail.
83
- :type qabot_answers: list[:class:`huaweicloudsdkosm.v2.QabotAnswer`]
84
- """
85
- self._qabot_answers = qabot_answers
86
-
87
- @property
88
- def qa_flow_answers(self):
89
- r"""Gets the qa_flow_answers of this AnswerDetail.
90
-
91
- :return: The qa_flow_answers of this AnswerDetail.
92
- :rtype: :class:`huaweicloudsdkosm.v2.QaFlowHitResult`
93
- """
94
- return self._qa_flow_answers
95
-
96
- @qa_flow_answers.setter
97
- def qa_flow_answers(self, qa_flow_answers):
98
- r"""Sets the qa_flow_answers of this AnswerDetail.
99
-
100
- :param qa_flow_answers: The qa_flow_answers of this AnswerDetail.
101
- :type qa_flow_answers: :class:`huaweicloudsdkosm.v2.QaFlowHitResult`
102
- """
103
- self._qa_flow_answers = qa_flow_answers
104
-
105
- @property
106
- def chat_answer(self):
107
- r"""Gets the chat_answer of this AnswerDetail.
108
-
109
- 问题
110
-
111
- :return: The chat_answer of this AnswerDetail.
112
- :rtype: str
113
- """
114
- return self._chat_answer
115
-
116
- @chat_answer.setter
117
- def chat_answer(self, chat_answer):
118
- r"""Sets the chat_answer of this AnswerDetail.
119
-
120
- 问题
121
-
122
- :param chat_answer: The chat_answer of this AnswerDetail.
123
- :type chat_answer: str
124
- """
125
- self._chat_answer = chat_answer
126
-
127
- @property
128
- def graph_answer(self):
129
- r"""Gets the graph_answer of this AnswerDetail.
130
-
131
- :return: The graph_answer of this AnswerDetail.
132
- :rtype: :class:`huaweicloudsdkosm.v2.QaGraphAnswer`
133
- """
134
- return self._graph_answer
135
-
136
- @graph_answer.setter
137
- def graph_answer(self, graph_answer):
138
- r"""Sets the graph_answer of this AnswerDetail.
139
-
140
- :param graph_answer: The graph_answer of this AnswerDetail.
141
- :type graph_answer: :class:`huaweicloudsdkosm.v2.QaGraphAnswer`
142
- """
143
- self._graph_answer = graph_answer
144
-
145
- def to_dict(self):
146
- """Returns the model properties as a dict"""
147
- result = {}
148
-
149
- for attr, _ in six.iteritems(self.openapi_types):
150
- value = getattr(self, attr)
151
- if isinstance(value, list):
152
- result[attr] = list(map(
153
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
154
- value
155
- ))
156
- elif hasattr(value, "to_dict"):
157
- result[attr] = value.to_dict()
158
- elif isinstance(value, dict):
159
- result[attr] = dict(map(
160
- lambda item: (item[0], item[1].to_dict())
161
- if hasattr(item[1], "to_dict") else item,
162
- value.items()
163
- ))
164
- else:
165
- if attr in self.sensitive_list:
166
- result[attr] = "****"
167
- else:
168
- result[attr] = value
169
-
170
- return result
171
-
172
- def to_str(self):
173
- """Returns the string representation of the model"""
174
- import simplejson as json
175
- if six.PY2:
176
- import sys
177
- reload(sys)
178
- sys.setdefaultencoding("utf-8")
179
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
180
-
181
- def __repr__(self):
182
- """For `print`"""
183
- return self.to_str()
184
-
185
- def __eq__(self, other):
186
- """Returns true if both objects are equal"""
187
- if not isinstance(other, AnswerDetail):
188
- return False
189
-
190
- return self.__dict__ == other.__dict__
191
-
192
- def __ne__(self, other):
193
- """Returns true if both objects are not equal"""
194
- return not self == other
@@ -1,231 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class AnswerInfo:
9
-
10
- """
11
- Attributes:
12
- openapi_types (dict): The key is attribute name
13
- and the value is attribute type.
14
- attribute_map (dict): The key is attribute name
15
- and the value is json key in definition.
16
- """
17
- sensitive_list = []
18
-
19
- openapi_types = {
20
- 'answer': 'str',
21
- 'link': 'str',
22
- 'question': 'str',
23
- 'qa_pair_id': 'str',
24
- 'relevance_details': 'list[RelevanceQapair]'
25
- }
26
-
27
- attribute_map = {
28
- 'answer': 'answer',
29
- 'link': 'link',
30
- 'question': 'question',
31
- 'qa_pair_id': 'qa_pair_id',
32
- 'relevance_details': 'relevance_details'
33
- }
34
-
35
- def __init__(self, answer=None, link=None, question=None, qa_pair_id=None, relevance_details=None):
36
- r"""AnswerInfo
37
-
38
- The model defined in huaweicloud sdk
39
-
40
- :param answer: 答案
41
- :type answer: str
42
- :param link: 链接
43
- :type link: str
44
- :param question: 问题
45
- :type question: str
46
- :param qa_pair_id: 语料Id
47
- :type qa_pair_id: str
48
- :param relevance_details: 相关问题详情列表
49
- :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
50
- """
51
-
52
-
53
-
54
- self._answer = None
55
- self._link = None
56
- self._question = None
57
- self._qa_pair_id = None
58
- self._relevance_details = None
59
- self.discriminator = None
60
-
61
- if answer is not None:
62
- self.answer = answer
63
- if link is not None:
64
- self.link = link
65
- if question is not None:
66
- self.question = question
67
- if qa_pair_id is not None:
68
- self.qa_pair_id = qa_pair_id
69
- if relevance_details is not None:
70
- self.relevance_details = relevance_details
71
-
72
- @property
73
- def answer(self):
74
- r"""Gets the answer of this AnswerInfo.
75
-
76
- 答案
77
-
78
- :return: The answer of this AnswerInfo.
79
- :rtype: str
80
- """
81
- return self._answer
82
-
83
- @answer.setter
84
- def answer(self, answer):
85
- r"""Sets the answer of this AnswerInfo.
86
-
87
- 答案
88
-
89
- :param answer: The answer of this AnswerInfo.
90
- :type answer: str
91
- """
92
- self._answer = answer
93
-
94
- @property
95
- def link(self):
96
- r"""Gets the link of this AnswerInfo.
97
-
98
- 链接
99
-
100
- :return: The link of this AnswerInfo.
101
- :rtype: str
102
- """
103
- return self._link
104
-
105
- @link.setter
106
- def link(self, link):
107
- r"""Sets the link of this AnswerInfo.
108
-
109
- 链接
110
-
111
- :param link: The link of this AnswerInfo.
112
- :type link: str
113
- """
114
- self._link = link
115
-
116
- @property
117
- def question(self):
118
- r"""Gets the question of this AnswerInfo.
119
-
120
- 问题
121
-
122
- :return: The question of this AnswerInfo.
123
- :rtype: str
124
- """
125
- return self._question
126
-
127
- @question.setter
128
- def question(self, question):
129
- r"""Sets the question of this AnswerInfo.
130
-
131
- 问题
132
-
133
- :param question: The question of this AnswerInfo.
134
- :type question: str
135
- """
136
- self._question = question
137
-
138
- @property
139
- def qa_pair_id(self):
140
- r"""Gets the qa_pair_id of this AnswerInfo.
141
-
142
- 语料Id
143
-
144
- :return: The qa_pair_id of this AnswerInfo.
145
- :rtype: str
146
- """
147
- return self._qa_pair_id
148
-
149
- @qa_pair_id.setter
150
- def qa_pair_id(self, qa_pair_id):
151
- r"""Sets the qa_pair_id of this AnswerInfo.
152
-
153
- 语料Id
154
-
155
- :param qa_pair_id: The qa_pair_id of this AnswerInfo.
156
- :type qa_pair_id: str
157
- """
158
- self._qa_pair_id = qa_pair_id
159
-
160
- @property
161
- def relevance_details(self):
162
- r"""Gets the relevance_details of this AnswerInfo.
163
-
164
- 相关问题详情列表
165
-
166
- :return: The relevance_details of this AnswerInfo.
167
- :rtype: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
168
- """
169
- return self._relevance_details
170
-
171
- @relevance_details.setter
172
- def relevance_details(self, relevance_details):
173
- r"""Sets the relevance_details of this AnswerInfo.
174
-
175
- 相关问题详情列表
176
-
177
- :param relevance_details: The relevance_details of this AnswerInfo.
178
- :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
179
- """
180
- self._relevance_details = relevance_details
181
-
182
- def to_dict(self):
183
- """Returns the model properties as a dict"""
184
- result = {}
185
-
186
- for attr, _ in six.iteritems(self.openapi_types):
187
- value = getattr(self, attr)
188
- if isinstance(value, list):
189
- result[attr] = list(map(
190
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
- value
192
- ))
193
- elif hasattr(value, "to_dict"):
194
- result[attr] = value.to_dict()
195
- elif isinstance(value, dict):
196
- result[attr] = dict(map(
197
- lambda item: (item[0], item[1].to_dict())
198
- if hasattr(item[1], "to_dict") else item,
199
- value.items()
200
- ))
201
- else:
202
- if attr in self.sensitive_list:
203
- result[attr] = "****"
204
- else:
205
- result[attr] = value
206
-
207
- return result
208
-
209
- def to_str(self):
210
- """Returns the string representation of the model"""
211
- import simplejson as json
212
- if six.PY2:
213
- import sys
214
- reload(sys)
215
- sys.setdefaultencoding("utf-8")
216
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
-
218
- def __repr__(self):
219
- """For `print`"""
220
- return self.to_str()
221
-
222
- def __eq__(self, other):
223
- """Returns true if both objects are equal"""
224
- if not isinstance(other, AnswerInfo):
225
- return False
226
-
227
- return self.__dict__ == other.__dict__
228
-
229
- def __ne__(self, other):
230
- """Returns true if both objects are not equal"""
231
- return not self == other