huaweicloudsdkosm 3.1.163__py3-none-any.whl → 3.1.165__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.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/METADATA +2 -2
  6. {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/RECORD +9 -69
  7. huaweicloudsdkosm/v2/model/answer.py +0 -227
  8. huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
  9. huaweicloudsdkosm/v2/model/answer_info.py +0 -231
  10. huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
  11. huaweicloudsdkosm/v2/model/article.py +0 -347
  12. huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
  13. huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
  14. huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
  15. huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
  16. huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
  17. huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
  18. huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
  19. huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
  20. huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
  21. huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
  22. huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
  23. huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
  24. huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
  25. huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
  26. huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
  27. huaweicloudsdkosm/v2/model/extend_question.py +0 -144
  28. huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
  29. huaweicloudsdkosm/v2/model/lang_result.py +0 -144
  30. huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
  31. huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
  32. huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
  33. huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
  34. huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
  35. huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
  36. huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
  37. huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
  38. huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
  39. huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
  40. huaweicloudsdkosm/v2/model/notice.py +0 -199
  41. huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
  42. huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
  43. huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
  44. huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
  45. huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
  46. huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
  47. huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
  48. huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
  49. huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
  50. huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
  51. huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
  52. huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
  53. huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
  54. huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
  55. huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
  56. huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
  57. huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
  58. huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
  59. huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
  60. huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
  61. huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
  62. huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
  63. huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
  64. huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
  65. huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
  66. huaweicloudsdkosm/v2/model/tool.py +0 -287
  67. {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/LICENSE +0 -0
  68. {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/WHEEL +0 -0
  69. {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/top_level.txt +0 -0
@@ -1,346 +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 QaAskReq:
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
- 'question': 'str',
21
- 'top': 'int',
22
- 'themes': 'list[RelationTheme]',
23
- 'source': 'str',
24
- 'session_id': 'str',
25
- 'source_qa_pair_id': 'str',
26
- 'alternative_answer_enable': 'bool',
27
- 'product_type_id': 'str',
28
- 'specify_node_id': 'str'
29
- }
30
-
31
- attribute_map = {
32
- 'question': 'question',
33
- 'top': 'top',
34
- 'themes': 'themes',
35
- 'source': 'source',
36
- 'session_id': 'session_id',
37
- 'source_qa_pair_id': 'source_qa_pair_id',
38
- 'alternative_answer_enable': 'alternative_answer_enable',
39
- 'product_type_id': 'product_type_id',
40
- 'specify_node_id': 'specify_node_id'
41
- }
42
-
43
- def __init__(self, question=None, top=None, themes=None, source=None, session_id=None, source_qa_pair_id=None, alternative_answer_enable=None, product_type_id=None, specify_node_id=None):
44
- r"""QaAskReq
45
-
46
- The model defined in huaweicloud sdk
47
-
48
- :param question: 用户输入问题
49
- :type question: str
50
- :param top: 最大返回数据条数
51
- :type top: int
52
- :param themes: 主题列表
53
- :type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`]
54
- :param source: - PORTAL: - INCIDENT:
55
- :type source: str
56
- :param session_id: 会话ID
57
- :type session_id: str
58
- :param source_qa_pair_id: 语料ID
59
- :type source_qa_pair_id: str
60
- :param alternative_answer_enable: 是否需要备选答案
61
- :type alternative_answer_enable: bool
62
- :param product_type_id: 产品类型Id
63
- :type product_type_id: str
64
- :param specify_node_id: 指定的节点ID
65
- :type specify_node_id: str
66
- """
67
-
68
-
69
-
70
- self._question = None
71
- self._top = None
72
- self._themes = None
73
- self._source = None
74
- self._session_id = None
75
- self._source_qa_pair_id = None
76
- self._alternative_answer_enable = None
77
- self._product_type_id = None
78
- self._specify_node_id = None
79
- self.discriminator = None
80
-
81
- self.question = question
82
- if top is not None:
83
- self.top = top
84
- if themes is not None:
85
- self.themes = themes
86
- if source is not None:
87
- self.source = source
88
- if session_id is not None:
89
- self.session_id = session_id
90
- if source_qa_pair_id is not None:
91
- self.source_qa_pair_id = source_qa_pair_id
92
- if alternative_answer_enable is not None:
93
- self.alternative_answer_enable = alternative_answer_enable
94
- if product_type_id is not None:
95
- self.product_type_id = product_type_id
96
- if specify_node_id is not None:
97
- self.specify_node_id = specify_node_id
98
-
99
- @property
100
- def question(self):
101
- r"""Gets the question of this QaAskReq.
102
-
103
- 用户输入问题
104
-
105
- :return: The question of this QaAskReq.
106
- :rtype: str
107
- """
108
- return self._question
109
-
110
- @question.setter
111
- def question(self, question):
112
- r"""Sets the question of this QaAskReq.
113
-
114
- 用户输入问题
115
-
116
- :param question: The question of this QaAskReq.
117
- :type question: str
118
- """
119
- self._question = question
120
-
121
- @property
122
- def top(self):
123
- r"""Gets the top of this QaAskReq.
124
-
125
- 最大返回数据条数
126
-
127
- :return: The top of this QaAskReq.
128
- :rtype: int
129
- """
130
- return self._top
131
-
132
- @top.setter
133
- def top(self, top):
134
- r"""Sets the top of this QaAskReq.
135
-
136
- 最大返回数据条数
137
-
138
- :param top: The top of this QaAskReq.
139
- :type top: int
140
- """
141
- self._top = top
142
-
143
- @property
144
- def themes(self):
145
- r"""Gets the themes of this QaAskReq.
146
-
147
- 主题列表
148
-
149
- :return: The themes of this QaAskReq.
150
- :rtype: list[:class:`huaweicloudsdkosm.v2.RelationTheme`]
151
- """
152
- return self._themes
153
-
154
- @themes.setter
155
- def themes(self, themes):
156
- r"""Sets the themes of this QaAskReq.
157
-
158
- 主题列表
159
-
160
- :param themes: The themes of this QaAskReq.
161
- :type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`]
162
- """
163
- self._themes = themes
164
-
165
- @property
166
- def source(self):
167
- r"""Gets the source of this QaAskReq.
168
-
169
- - PORTAL: - INCIDENT:
170
-
171
- :return: The source of this QaAskReq.
172
- :rtype: str
173
- """
174
- return self._source
175
-
176
- @source.setter
177
- def source(self, source):
178
- r"""Sets the source of this QaAskReq.
179
-
180
- - PORTAL: - INCIDENT:
181
-
182
- :param source: The source of this QaAskReq.
183
- :type source: str
184
- """
185
- self._source = source
186
-
187
- @property
188
- def session_id(self):
189
- r"""Gets the session_id of this QaAskReq.
190
-
191
- 会话ID
192
-
193
- :return: The session_id of this QaAskReq.
194
- :rtype: str
195
- """
196
- return self._session_id
197
-
198
- @session_id.setter
199
- def session_id(self, session_id):
200
- r"""Sets the session_id of this QaAskReq.
201
-
202
- 会话ID
203
-
204
- :param session_id: The session_id of this QaAskReq.
205
- :type session_id: str
206
- """
207
- self._session_id = session_id
208
-
209
- @property
210
- def source_qa_pair_id(self):
211
- r"""Gets the source_qa_pair_id of this QaAskReq.
212
-
213
- 语料ID
214
-
215
- :return: The source_qa_pair_id of this QaAskReq.
216
- :rtype: str
217
- """
218
- return self._source_qa_pair_id
219
-
220
- @source_qa_pair_id.setter
221
- def source_qa_pair_id(self, source_qa_pair_id):
222
- r"""Sets the source_qa_pair_id of this QaAskReq.
223
-
224
- 语料ID
225
-
226
- :param source_qa_pair_id: The source_qa_pair_id of this QaAskReq.
227
- :type source_qa_pair_id: str
228
- """
229
- self._source_qa_pair_id = source_qa_pair_id
230
-
231
- @property
232
- def alternative_answer_enable(self):
233
- r"""Gets the alternative_answer_enable of this QaAskReq.
234
-
235
- 是否需要备选答案
236
-
237
- :return: The alternative_answer_enable of this QaAskReq.
238
- :rtype: bool
239
- """
240
- return self._alternative_answer_enable
241
-
242
- @alternative_answer_enable.setter
243
- def alternative_answer_enable(self, alternative_answer_enable):
244
- r"""Sets the alternative_answer_enable of this QaAskReq.
245
-
246
- 是否需要备选答案
247
-
248
- :param alternative_answer_enable: The alternative_answer_enable of this QaAskReq.
249
- :type alternative_answer_enable: bool
250
- """
251
- self._alternative_answer_enable = alternative_answer_enable
252
-
253
- @property
254
- def product_type_id(self):
255
- r"""Gets the product_type_id of this QaAskReq.
256
-
257
- 产品类型Id
258
-
259
- :return: The product_type_id of this QaAskReq.
260
- :rtype: str
261
- """
262
- return self._product_type_id
263
-
264
- @product_type_id.setter
265
- def product_type_id(self, product_type_id):
266
- r"""Sets the product_type_id of this QaAskReq.
267
-
268
- 产品类型Id
269
-
270
- :param product_type_id: The product_type_id of this QaAskReq.
271
- :type product_type_id: str
272
- """
273
- self._product_type_id = product_type_id
274
-
275
- @property
276
- def specify_node_id(self):
277
- r"""Gets the specify_node_id of this QaAskReq.
278
-
279
- 指定的节点ID
280
-
281
- :return: The specify_node_id of this QaAskReq.
282
- :rtype: str
283
- """
284
- return self._specify_node_id
285
-
286
- @specify_node_id.setter
287
- def specify_node_id(self, specify_node_id):
288
- r"""Sets the specify_node_id of this QaAskReq.
289
-
290
- 指定的节点ID
291
-
292
- :param specify_node_id: The specify_node_id of this QaAskReq.
293
- :type specify_node_id: str
294
- """
295
- self._specify_node_id = specify_node_id
296
-
297
- def to_dict(self):
298
- """Returns the model properties as a dict"""
299
- result = {}
300
-
301
- for attr, _ in six.iteritems(self.openapi_types):
302
- value = getattr(self, attr)
303
- if isinstance(value, list):
304
- result[attr] = list(map(
305
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
306
- value
307
- ))
308
- elif hasattr(value, "to_dict"):
309
- result[attr] = value.to_dict()
310
- elif isinstance(value, dict):
311
- result[attr] = dict(map(
312
- lambda item: (item[0], item[1].to_dict())
313
- if hasattr(item[1], "to_dict") else item,
314
- value.items()
315
- ))
316
- else:
317
- if attr in self.sensitive_list:
318
- result[attr] = "****"
319
- else:
320
- result[attr] = value
321
-
322
- return result
323
-
324
- def to_str(self):
325
- """Returns the string representation of the model"""
326
- import simplejson as json
327
- if six.PY2:
328
- import sys
329
- reload(sys)
330
- sys.setdefaultencoding("utf-8")
331
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
332
-
333
- def __repr__(self):
334
- """For `print`"""
335
- return self.to_str()
336
-
337
- def __eq__(self, other):
338
- """Returns true if both objects are equal"""
339
- if not isinstance(other, QaAskReq):
340
- return False
341
-
342
- return self.__dict__ == other.__dict__
343
-
344
- def __ne__(self, other):
345
- """Returns true if both objects are not equal"""
346
- return not self == other
@@ -1,345 +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 QaFeedbackReq:
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
- 'question': 'str',
21
- 'feedback_id': 'str',
22
- 'qa_pair_source': 'str',
23
- 'feedback_option_id': 'str',
24
- 'feedback_description': 'str',
25
- 'qa_pair_id': 'str',
26
- 'request_id': 'str',
27
- 'feedback_source': 'str',
28
- 'flow_node_id': 'str'
29
- }
30
-
31
- attribute_map = {
32
- 'question': 'question',
33
- 'feedback_id': 'feedback_id',
34
- 'qa_pair_source': 'qa_pair_source',
35
- 'feedback_option_id': 'feedback_option_id',
36
- 'feedback_description': 'feedback_description',
37
- 'qa_pair_id': 'qa_pair_id',
38
- 'request_id': 'request_id',
39
- 'feedback_source': 'feedback_source',
40
- 'flow_node_id': 'flow_node_id'
41
- }
42
-
43
- def __init__(self, question=None, feedback_id=None, qa_pair_source=None, feedback_option_id=None, feedback_description=None, qa_pair_id=None, request_id=None, feedback_source=None, flow_node_id=None):
44
- r"""QaFeedbackReq
45
-
46
- The model defined in huaweicloud sdk
47
-
48
- :param question: 用户问题
49
- :type question: str
50
- :param feedback_id: 反馈记录Id
51
- :type feedback_id: str
52
- :param qa_pair_source: - IROBOT_QA: - RECOMMEND_WORD_QA:
53
- :type qa_pair_source: str
54
- :param feedback_option_id: 反馈选项id
55
- :type feedback_option_id: str
56
- :param feedback_description: 反馈描述
57
- :type feedback_description: str
58
- :param qa_pair_id: 语料id
59
- :type qa_pair_id: str
60
- :param request_id: 请求id
61
- :type request_id: str
62
- :param feedback_source: - FAQ: - FLOW:
63
- :type feedback_source: str
64
- :param flow_node_id: 流程节点Id
65
- :type flow_node_id: str
66
- """
67
-
68
-
69
-
70
- self._question = None
71
- self._feedback_id = None
72
- self._qa_pair_source = None
73
- self._feedback_option_id = None
74
- self._feedback_description = None
75
- self._qa_pair_id = None
76
- self._request_id = None
77
- self._feedback_source = None
78
- self._flow_node_id = None
79
- self.discriminator = None
80
-
81
- self.question = question
82
- if feedback_id is not None:
83
- self.feedback_id = feedback_id
84
- if qa_pair_source is not None:
85
- self.qa_pair_source = qa_pair_source
86
- if feedback_option_id is not None:
87
- self.feedback_option_id = feedback_option_id
88
- if feedback_description is not None:
89
- self.feedback_description = feedback_description
90
- if qa_pair_id is not None:
91
- self.qa_pair_id = qa_pair_id
92
- if request_id is not None:
93
- self.request_id = request_id
94
- self.feedback_source = feedback_source
95
- if flow_node_id is not None:
96
- self.flow_node_id = flow_node_id
97
-
98
- @property
99
- def question(self):
100
- r"""Gets the question of this QaFeedbackReq.
101
-
102
- 用户问题
103
-
104
- :return: The question of this QaFeedbackReq.
105
- :rtype: str
106
- """
107
- return self._question
108
-
109
- @question.setter
110
- def question(self, question):
111
- r"""Sets the question of this QaFeedbackReq.
112
-
113
- 用户问题
114
-
115
- :param question: The question of this QaFeedbackReq.
116
- :type question: str
117
- """
118
- self._question = question
119
-
120
- @property
121
- def feedback_id(self):
122
- r"""Gets the feedback_id of this QaFeedbackReq.
123
-
124
- 反馈记录Id
125
-
126
- :return: The feedback_id of this QaFeedbackReq.
127
- :rtype: str
128
- """
129
- return self._feedback_id
130
-
131
- @feedback_id.setter
132
- def feedback_id(self, feedback_id):
133
- r"""Sets the feedback_id of this QaFeedbackReq.
134
-
135
- 反馈记录Id
136
-
137
- :param feedback_id: The feedback_id of this QaFeedbackReq.
138
- :type feedback_id: str
139
- """
140
- self._feedback_id = feedback_id
141
-
142
- @property
143
- def qa_pair_source(self):
144
- r"""Gets the qa_pair_source of this QaFeedbackReq.
145
-
146
- - IROBOT_QA: - RECOMMEND_WORD_QA:
147
-
148
- :return: The qa_pair_source of this QaFeedbackReq.
149
- :rtype: str
150
- """
151
- return self._qa_pair_source
152
-
153
- @qa_pair_source.setter
154
- def qa_pair_source(self, qa_pair_source):
155
- r"""Sets the qa_pair_source of this QaFeedbackReq.
156
-
157
- - IROBOT_QA: - RECOMMEND_WORD_QA:
158
-
159
- :param qa_pair_source: The qa_pair_source of this QaFeedbackReq.
160
- :type qa_pair_source: str
161
- """
162
- self._qa_pair_source = qa_pair_source
163
-
164
- @property
165
- def feedback_option_id(self):
166
- r"""Gets the feedback_option_id of this QaFeedbackReq.
167
-
168
- 反馈选项id
169
-
170
- :return: The feedback_option_id of this QaFeedbackReq.
171
- :rtype: str
172
- """
173
- return self._feedback_option_id
174
-
175
- @feedback_option_id.setter
176
- def feedback_option_id(self, feedback_option_id):
177
- r"""Sets the feedback_option_id of this QaFeedbackReq.
178
-
179
- 反馈选项id
180
-
181
- :param feedback_option_id: The feedback_option_id of this QaFeedbackReq.
182
- :type feedback_option_id: str
183
- """
184
- self._feedback_option_id = feedback_option_id
185
-
186
- @property
187
- def feedback_description(self):
188
- r"""Gets the feedback_description of this QaFeedbackReq.
189
-
190
- 反馈描述
191
-
192
- :return: The feedback_description of this QaFeedbackReq.
193
- :rtype: str
194
- """
195
- return self._feedback_description
196
-
197
- @feedback_description.setter
198
- def feedback_description(self, feedback_description):
199
- r"""Sets the feedback_description of this QaFeedbackReq.
200
-
201
- 反馈描述
202
-
203
- :param feedback_description: The feedback_description of this QaFeedbackReq.
204
- :type feedback_description: str
205
- """
206
- self._feedback_description = feedback_description
207
-
208
- @property
209
- def qa_pair_id(self):
210
- r"""Gets the qa_pair_id of this QaFeedbackReq.
211
-
212
- 语料id
213
-
214
- :return: The qa_pair_id of this QaFeedbackReq.
215
- :rtype: str
216
- """
217
- return self._qa_pair_id
218
-
219
- @qa_pair_id.setter
220
- def qa_pair_id(self, qa_pair_id):
221
- r"""Sets the qa_pair_id of this QaFeedbackReq.
222
-
223
- 语料id
224
-
225
- :param qa_pair_id: The qa_pair_id of this QaFeedbackReq.
226
- :type qa_pair_id: str
227
- """
228
- self._qa_pair_id = qa_pair_id
229
-
230
- @property
231
- def request_id(self):
232
- r"""Gets the request_id of this QaFeedbackReq.
233
-
234
- 请求id
235
-
236
- :return: The request_id of this QaFeedbackReq.
237
- :rtype: str
238
- """
239
- return self._request_id
240
-
241
- @request_id.setter
242
- def request_id(self, request_id):
243
- r"""Sets the request_id of this QaFeedbackReq.
244
-
245
- 请求id
246
-
247
- :param request_id: The request_id of this QaFeedbackReq.
248
- :type request_id: str
249
- """
250
- self._request_id = request_id
251
-
252
- @property
253
- def feedback_source(self):
254
- r"""Gets the feedback_source of this QaFeedbackReq.
255
-
256
- - FAQ: - FLOW:
257
-
258
- :return: The feedback_source of this QaFeedbackReq.
259
- :rtype: str
260
- """
261
- return self._feedback_source
262
-
263
- @feedback_source.setter
264
- def feedback_source(self, feedback_source):
265
- r"""Sets the feedback_source of this QaFeedbackReq.
266
-
267
- - FAQ: - FLOW:
268
-
269
- :param feedback_source: The feedback_source of this QaFeedbackReq.
270
- :type feedback_source: str
271
- """
272
- self._feedback_source = feedback_source
273
-
274
- @property
275
- def flow_node_id(self):
276
- r"""Gets the flow_node_id of this QaFeedbackReq.
277
-
278
- 流程节点Id
279
-
280
- :return: The flow_node_id of this QaFeedbackReq.
281
- :rtype: str
282
- """
283
- return self._flow_node_id
284
-
285
- @flow_node_id.setter
286
- def flow_node_id(self, flow_node_id):
287
- r"""Sets the flow_node_id of this QaFeedbackReq.
288
-
289
- 流程节点Id
290
-
291
- :param flow_node_id: The flow_node_id of this QaFeedbackReq.
292
- :type flow_node_id: str
293
- """
294
- self._flow_node_id = flow_node_id
295
-
296
- def to_dict(self):
297
- """Returns the model properties as a dict"""
298
- result = {}
299
-
300
- for attr, _ in six.iteritems(self.openapi_types):
301
- value = getattr(self, attr)
302
- if isinstance(value, list):
303
- result[attr] = list(map(
304
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
305
- value
306
- ))
307
- elif hasattr(value, "to_dict"):
308
- result[attr] = value.to_dict()
309
- elif isinstance(value, dict):
310
- result[attr] = dict(map(
311
- lambda item: (item[0], item[1].to_dict())
312
- if hasattr(item[1], "to_dict") else item,
313
- value.items()
314
- ))
315
- else:
316
- if attr in self.sensitive_list:
317
- result[attr] = "****"
318
- else:
319
- result[attr] = value
320
-
321
- return result
322
-
323
- def to_str(self):
324
- """Returns the string representation of the model"""
325
- import simplejson as json
326
- if six.PY2:
327
- import sys
328
- reload(sys)
329
- sys.setdefaultencoding("utf-8")
330
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
331
-
332
- def __repr__(self):
333
- """For `print`"""
334
- return self.to_str()
335
-
336
- def __eq__(self, other):
337
- """Returns true if both objects are equal"""
338
- if not isinstance(other, QaFeedbackReq):
339
- return False
340
-
341
- return self.__dict__ == other.__dict__
342
-
343
- def __ne__(self, other):
344
- """Returns true if both objects are not equal"""
345
- return not self == other