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,282 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.sdk_response import SdkResponse
6
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
-
8
-
9
- class CreateQaAskResponse(SdkResponse):
10
-
11
- """
12
- Attributes:
13
- openapi_types (dict): The key is attribute name
14
- and the value is attribute type.
15
- attribute_map (dict): The key is attribute name
16
- and the value is json key in definition.
17
- """
18
- sensitive_list = []
19
-
20
- openapi_types = {
21
- 'error_code': 'str',
22
- 'error_msg': 'str',
23
- 'lang_result': 'LangResult',
24
- 'reply_type': 'str',
25
- 'session_id': 'str',
26
- 'request_id': 'str',
27
- 'answers_detail': 'AnswerDetail'
28
- }
29
-
30
- attribute_map = {
31
- 'error_code': 'error_code',
32
- 'error_msg': 'error_msg',
33
- 'lang_result': 'lang_result',
34
- 'reply_type': 'reply_type',
35
- 'session_id': 'session_id',
36
- 'request_id': 'request_id',
37
- 'answers_detail': 'answers_detail'
38
- }
39
-
40
- def __init__(self, error_code=None, error_msg=None, lang_result=None, reply_type=None, session_id=None, request_id=None, answers_detail=None):
41
- r"""CreateQaAskResponse
42
-
43
- The model defined in huaweicloud sdk
44
-
45
- :param error_code: 错误码
46
- :type error_code: str
47
- :param error_msg: 错误描述
48
- :type error_msg: str
49
- :param lang_result:
50
- :type lang_result: :class:`huaweicloudsdkosm.v2.LangResult`
51
- :param reply_type: - QA_BOT: - TASK_BOT: - CHAT_BOT: - GRAPH_BOT: - HW_CLOUD:
52
- :type reply_type: str
53
- :param session_id: 会话ID
54
- :type session_id: str
55
- :param request_id: 请求ID
56
- :type request_id: str
57
- :param answers_detail:
58
- :type answers_detail: :class:`huaweicloudsdkosm.v2.AnswerDetail`
59
- """
60
-
61
- super(CreateQaAskResponse, self).__init__()
62
-
63
- self._error_code = None
64
- self._error_msg = None
65
- self._lang_result = None
66
- self._reply_type = None
67
- self._session_id = None
68
- self._request_id = None
69
- self._answers_detail = None
70
- self.discriminator = None
71
-
72
- if error_code is not None:
73
- self.error_code = error_code
74
- if error_msg is not None:
75
- self.error_msg = error_msg
76
- if lang_result is not None:
77
- self.lang_result = lang_result
78
- if reply_type is not None:
79
- self.reply_type = reply_type
80
- if session_id is not None:
81
- self.session_id = session_id
82
- if request_id is not None:
83
- self.request_id = request_id
84
- if answers_detail is not None:
85
- self.answers_detail = answers_detail
86
-
87
- @property
88
- def error_code(self):
89
- r"""Gets the error_code of this CreateQaAskResponse.
90
-
91
- 错误码
92
-
93
- :return: The error_code of this CreateQaAskResponse.
94
- :rtype: str
95
- """
96
- return self._error_code
97
-
98
- @error_code.setter
99
- def error_code(self, error_code):
100
- r"""Sets the error_code of this CreateQaAskResponse.
101
-
102
- 错误码
103
-
104
- :param error_code: The error_code of this CreateQaAskResponse.
105
- :type error_code: str
106
- """
107
- self._error_code = error_code
108
-
109
- @property
110
- def error_msg(self):
111
- r"""Gets the error_msg of this CreateQaAskResponse.
112
-
113
- 错误描述
114
-
115
- :return: The error_msg of this CreateQaAskResponse.
116
- :rtype: str
117
- """
118
- return self._error_msg
119
-
120
- @error_msg.setter
121
- def error_msg(self, error_msg):
122
- r"""Sets the error_msg of this CreateQaAskResponse.
123
-
124
- 错误描述
125
-
126
- :param error_msg: The error_msg of this CreateQaAskResponse.
127
- :type error_msg: str
128
- """
129
- self._error_msg = error_msg
130
-
131
- @property
132
- def lang_result(self):
133
- r"""Gets the lang_result of this CreateQaAskResponse.
134
-
135
- :return: The lang_result of this CreateQaAskResponse.
136
- :rtype: :class:`huaweicloudsdkosm.v2.LangResult`
137
- """
138
- return self._lang_result
139
-
140
- @lang_result.setter
141
- def lang_result(self, lang_result):
142
- r"""Sets the lang_result of this CreateQaAskResponse.
143
-
144
- :param lang_result: The lang_result of this CreateQaAskResponse.
145
- :type lang_result: :class:`huaweicloudsdkosm.v2.LangResult`
146
- """
147
- self._lang_result = lang_result
148
-
149
- @property
150
- def reply_type(self):
151
- r"""Gets the reply_type of this CreateQaAskResponse.
152
-
153
- - QA_BOT: - TASK_BOT: - CHAT_BOT: - GRAPH_BOT: - HW_CLOUD:
154
-
155
- :return: The reply_type of this CreateQaAskResponse.
156
- :rtype: str
157
- """
158
- return self._reply_type
159
-
160
- @reply_type.setter
161
- def reply_type(self, reply_type):
162
- r"""Sets the reply_type of this CreateQaAskResponse.
163
-
164
- - QA_BOT: - TASK_BOT: - CHAT_BOT: - GRAPH_BOT: - HW_CLOUD:
165
-
166
- :param reply_type: The reply_type of this CreateQaAskResponse.
167
- :type reply_type: str
168
- """
169
- self._reply_type = reply_type
170
-
171
- @property
172
- def session_id(self):
173
- r"""Gets the session_id of this CreateQaAskResponse.
174
-
175
- 会话ID
176
-
177
- :return: The session_id of this CreateQaAskResponse.
178
- :rtype: str
179
- """
180
- return self._session_id
181
-
182
- @session_id.setter
183
- def session_id(self, session_id):
184
- r"""Sets the session_id of this CreateQaAskResponse.
185
-
186
- 会话ID
187
-
188
- :param session_id: The session_id of this CreateQaAskResponse.
189
- :type session_id: str
190
- """
191
- self._session_id = session_id
192
-
193
- @property
194
- def request_id(self):
195
- r"""Gets the request_id of this CreateQaAskResponse.
196
-
197
- 请求ID
198
-
199
- :return: The request_id of this CreateQaAskResponse.
200
- :rtype: str
201
- """
202
- return self._request_id
203
-
204
- @request_id.setter
205
- def request_id(self, request_id):
206
- r"""Sets the request_id of this CreateQaAskResponse.
207
-
208
- 请求ID
209
-
210
- :param request_id: The request_id of this CreateQaAskResponse.
211
- :type request_id: str
212
- """
213
- self._request_id = request_id
214
-
215
- @property
216
- def answers_detail(self):
217
- r"""Gets the answers_detail of this CreateQaAskResponse.
218
-
219
- :return: The answers_detail of this CreateQaAskResponse.
220
- :rtype: :class:`huaweicloudsdkosm.v2.AnswerDetail`
221
- """
222
- return self._answers_detail
223
-
224
- @answers_detail.setter
225
- def answers_detail(self, answers_detail):
226
- r"""Sets the answers_detail of this CreateQaAskResponse.
227
-
228
- :param answers_detail: The answers_detail of this CreateQaAskResponse.
229
- :type answers_detail: :class:`huaweicloudsdkosm.v2.AnswerDetail`
230
- """
231
- self._answers_detail = answers_detail
232
-
233
- def to_dict(self):
234
- """Returns the model properties as a dict"""
235
- result = {}
236
-
237
- for attr, _ in six.iteritems(self.openapi_types):
238
- value = getattr(self, attr)
239
- if isinstance(value, list):
240
- result[attr] = list(map(
241
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
242
- value
243
- ))
244
- elif hasattr(value, "to_dict"):
245
- result[attr] = value.to_dict()
246
- elif isinstance(value, dict):
247
- result[attr] = dict(map(
248
- lambda item: (item[0], item[1].to_dict())
249
- if hasattr(item[1], "to_dict") else item,
250
- value.items()
251
- ))
252
- else:
253
- if attr in self.sensitive_list:
254
- result[attr] = "****"
255
- else:
256
- result[attr] = value
257
-
258
- return result
259
-
260
- def to_str(self):
261
- """Returns the string representation of the model"""
262
- import simplejson as json
263
- if six.PY2:
264
- import sys
265
- reload(sys)
266
- sys.setdefaultencoding("utf-8")
267
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
268
-
269
- def __repr__(self):
270
- """For `print`"""
271
- return self.to_str()
272
-
273
- def __eq__(self, other):
274
- """Returns true if both objects are equal"""
275
- if not isinstance(other, CreateQaAskResponse):
276
- return False
277
-
278
- return self.__dict__ == other.__dict__
279
-
280
- def __ne__(self, other):
281
- """Returns true if both objects are not equal"""
282
- return not self == other
@@ -1,226 +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 CreateQaFeedbacksRequest:
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
- 'x_service_key': 'str',
21
- 'x_site': 'str',
22
- 'x_language': 'str',
23
- 'feedback_type': 'str',
24
- 'body': 'QaFeedbackReq'
25
- }
26
-
27
- attribute_map = {
28
- 'x_service_key': 'x-service-key',
29
- 'x_site': 'x-site',
30
- 'x_language': 'x-language',
31
- 'feedback_type': 'feedback_type',
32
- 'body': 'body'
33
- }
34
-
35
- def __init__(self, x_service_key=None, x_site=None, x_language=None, feedback_type=None, body=None):
36
- r"""CreateQaFeedbacksRequest
37
-
38
- The model defined in huaweicloud sdk
39
-
40
- :param x_service_key: 调用智能客服服务标志。
41
- :type x_service_key: str
42
- :param x_site: 站点标记,0-中国站 1-国际站
43
- :type x_site: str
44
- :param x_language: 区域语言简写,en-us zh-cn
45
- :type x_language: str
46
- :param feedback_type: - LIKE: - CANCEL_LIKE: - DISLIKE: - ALL:
47
- :type feedback_type: str
48
- :param body: Body of the CreateQaFeedbacksRequest
49
- :type body: :class:`huaweicloudsdkosm.v2.QaFeedbackReq`
50
- """
51
-
52
-
53
-
54
- self._x_service_key = None
55
- self._x_site = None
56
- self._x_language = None
57
- self._feedback_type = None
58
- self._body = None
59
- self.discriminator = None
60
-
61
- if x_service_key is not None:
62
- self.x_service_key = x_service_key
63
- if x_site is not None:
64
- self.x_site = x_site
65
- if x_language is not None:
66
- self.x_language = x_language
67
- self.feedback_type = feedback_type
68
- if body is not None:
69
- self.body = body
70
-
71
- @property
72
- def x_service_key(self):
73
- r"""Gets the x_service_key of this CreateQaFeedbacksRequest.
74
-
75
- 调用智能客服服务标志。
76
-
77
- :return: The x_service_key of this CreateQaFeedbacksRequest.
78
- :rtype: str
79
- """
80
- return self._x_service_key
81
-
82
- @x_service_key.setter
83
- def x_service_key(self, x_service_key):
84
- r"""Sets the x_service_key of this CreateQaFeedbacksRequest.
85
-
86
- 调用智能客服服务标志。
87
-
88
- :param x_service_key: The x_service_key of this CreateQaFeedbacksRequest.
89
- :type x_service_key: str
90
- """
91
- self._x_service_key = x_service_key
92
-
93
- @property
94
- def x_site(self):
95
- r"""Gets the x_site of this CreateQaFeedbacksRequest.
96
-
97
- 站点标记,0-中国站 1-国际站
98
-
99
- :return: The x_site of this CreateQaFeedbacksRequest.
100
- :rtype: str
101
- """
102
- return self._x_site
103
-
104
- @x_site.setter
105
- def x_site(self, x_site):
106
- r"""Sets the x_site of this CreateQaFeedbacksRequest.
107
-
108
- 站点标记,0-中国站 1-国际站
109
-
110
- :param x_site: The x_site of this CreateQaFeedbacksRequest.
111
- :type x_site: str
112
- """
113
- self._x_site = x_site
114
-
115
- @property
116
- def x_language(self):
117
- r"""Gets the x_language of this CreateQaFeedbacksRequest.
118
-
119
- 区域语言简写,en-us zh-cn
120
-
121
- :return: The x_language of this CreateQaFeedbacksRequest.
122
- :rtype: str
123
- """
124
- return self._x_language
125
-
126
- @x_language.setter
127
- def x_language(self, x_language):
128
- r"""Sets the x_language of this CreateQaFeedbacksRequest.
129
-
130
- 区域语言简写,en-us zh-cn
131
-
132
- :param x_language: The x_language of this CreateQaFeedbacksRequest.
133
- :type x_language: str
134
- """
135
- self._x_language = x_language
136
-
137
- @property
138
- def feedback_type(self):
139
- r"""Gets the feedback_type of this CreateQaFeedbacksRequest.
140
-
141
- - LIKE: - CANCEL_LIKE: - DISLIKE: - ALL:
142
-
143
- :return: The feedback_type of this CreateQaFeedbacksRequest.
144
- :rtype: str
145
- """
146
- return self._feedback_type
147
-
148
- @feedback_type.setter
149
- def feedback_type(self, feedback_type):
150
- r"""Sets the feedback_type of this CreateQaFeedbacksRequest.
151
-
152
- - LIKE: - CANCEL_LIKE: - DISLIKE: - ALL:
153
-
154
- :param feedback_type: The feedback_type of this CreateQaFeedbacksRequest.
155
- :type feedback_type: str
156
- """
157
- self._feedback_type = feedback_type
158
-
159
- @property
160
- def body(self):
161
- r"""Gets the body of this CreateQaFeedbacksRequest.
162
-
163
- :return: The body of this CreateQaFeedbacksRequest.
164
- :rtype: :class:`huaweicloudsdkosm.v2.QaFeedbackReq`
165
- """
166
- return self._body
167
-
168
- @body.setter
169
- def body(self, body):
170
- r"""Sets the body of this CreateQaFeedbacksRequest.
171
-
172
- :param body: The body of this CreateQaFeedbacksRequest.
173
- :type body: :class:`huaweicloudsdkosm.v2.QaFeedbackReq`
174
- """
175
- self._body = body
176
-
177
- def to_dict(self):
178
- """Returns the model properties as a dict"""
179
- result = {}
180
-
181
- for attr, _ in six.iteritems(self.openapi_types):
182
- value = getattr(self, attr)
183
- if isinstance(value, list):
184
- result[attr] = list(map(
185
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186
- value
187
- ))
188
- elif hasattr(value, "to_dict"):
189
- result[attr] = value.to_dict()
190
- elif isinstance(value, dict):
191
- result[attr] = dict(map(
192
- lambda item: (item[0], item[1].to_dict())
193
- if hasattr(item[1], "to_dict") else item,
194
- value.items()
195
- ))
196
- else:
197
- if attr in self.sensitive_list:
198
- result[attr] = "****"
199
- else:
200
- result[attr] = value
201
-
202
- return result
203
-
204
- def to_str(self):
205
- """Returns the string representation of the model"""
206
- import simplejson as json
207
- if six.PY2:
208
- import sys
209
- reload(sys)
210
- sys.setdefaultencoding("utf-8")
211
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
212
-
213
- def __repr__(self):
214
- """For `print`"""
215
- return self.to_str()
216
-
217
- def __eq__(self, other):
218
- """Returns true if both objects are equal"""
219
- if not isinstance(other, CreateQaFeedbacksRequest):
220
- return False
221
-
222
- return self.__dict__ == other.__dict__
223
-
224
- def __ne__(self, other):
225
- """Returns true if both objects are not equal"""
226
- return not self == other
@@ -1,174 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.sdk_response import SdkResponse
6
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
-
8
-
9
- class CreateQaFeedbacksResponse(SdkResponse):
10
-
11
- """
12
- Attributes:
13
- openapi_types (dict): The key is attribute name
14
- and the value is attribute type.
15
- attribute_map (dict): The key is attribute name
16
- and the value is json key in definition.
17
- """
18
- sensitive_list = []
19
-
20
- openapi_types = {
21
- 'error_code': 'str',
22
- 'error_msg': 'str',
23
- 'feedback_id': 'str'
24
- }
25
-
26
- attribute_map = {
27
- 'error_code': 'error_code',
28
- 'error_msg': 'error_msg',
29
- 'feedback_id': 'feedback_id'
30
- }
31
-
32
- def __init__(self, error_code=None, error_msg=None, feedback_id=None):
33
- r"""CreateQaFeedbacksResponse
34
-
35
- The model defined in huaweicloud sdk
36
-
37
- :param error_code: 错误码
38
- :type error_code: str
39
- :param error_msg: 错误描述
40
- :type error_msg: str
41
- :param feedback_id: 反馈记录id
42
- :type feedback_id: str
43
- """
44
-
45
- super(CreateQaFeedbacksResponse, self).__init__()
46
-
47
- self._error_code = None
48
- self._error_msg = None
49
- self._feedback_id = None
50
- self.discriminator = None
51
-
52
- if error_code is not None:
53
- self.error_code = error_code
54
- if error_msg is not None:
55
- self.error_msg = error_msg
56
- if feedback_id is not None:
57
- self.feedback_id = feedback_id
58
-
59
- @property
60
- def error_code(self):
61
- r"""Gets the error_code of this CreateQaFeedbacksResponse.
62
-
63
- 错误码
64
-
65
- :return: The error_code of this CreateQaFeedbacksResponse.
66
- :rtype: str
67
- """
68
- return self._error_code
69
-
70
- @error_code.setter
71
- def error_code(self, error_code):
72
- r"""Sets the error_code of this CreateQaFeedbacksResponse.
73
-
74
- 错误码
75
-
76
- :param error_code: The error_code of this CreateQaFeedbacksResponse.
77
- :type error_code: str
78
- """
79
- self._error_code = error_code
80
-
81
- @property
82
- def error_msg(self):
83
- r"""Gets the error_msg of this CreateQaFeedbacksResponse.
84
-
85
- 错误描述
86
-
87
- :return: The error_msg of this CreateQaFeedbacksResponse.
88
- :rtype: str
89
- """
90
- return self._error_msg
91
-
92
- @error_msg.setter
93
- def error_msg(self, error_msg):
94
- r"""Sets the error_msg of this CreateQaFeedbacksResponse.
95
-
96
- 错误描述
97
-
98
- :param error_msg: The error_msg of this CreateQaFeedbacksResponse.
99
- :type error_msg: str
100
- """
101
- self._error_msg = error_msg
102
-
103
- @property
104
- def feedback_id(self):
105
- r"""Gets the feedback_id of this CreateQaFeedbacksResponse.
106
-
107
- 反馈记录id
108
-
109
- :return: The feedback_id of this CreateQaFeedbacksResponse.
110
- :rtype: str
111
- """
112
- return self._feedback_id
113
-
114
- @feedback_id.setter
115
- def feedback_id(self, feedback_id):
116
- r"""Sets the feedback_id of this CreateQaFeedbacksResponse.
117
-
118
- 反馈记录id
119
-
120
- :param feedback_id: The feedback_id of this CreateQaFeedbacksResponse.
121
- :type feedback_id: str
122
- """
123
- self._feedback_id = feedback_id
124
-
125
- def to_dict(self):
126
- """Returns the model properties as a dict"""
127
- result = {}
128
-
129
- for attr, _ in six.iteritems(self.openapi_types):
130
- value = getattr(self, attr)
131
- if isinstance(value, list):
132
- result[attr] = list(map(
133
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
- value
135
- ))
136
- elif hasattr(value, "to_dict"):
137
- result[attr] = value.to_dict()
138
- elif isinstance(value, dict):
139
- result[attr] = dict(map(
140
- lambda item: (item[0], item[1].to_dict())
141
- if hasattr(item[1], "to_dict") else item,
142
- value.items()
143
- ))
144
- else:
145
- if attr in self.sensitive_list:
146
- result[attr] = "****"
147
- else:
148
- result[attr] = value
149
-
150
- return result
151
-
152
- def to_str(self):
153
- """Returns the string representation of the model"""
154
- import simplejson as json
155
- if six.PY2:
156
- import sys
157
- reload(sys)
158
- sys.setdefaultencoding("utf-8")
159
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
-
161
- def __repr__(self):
162
- """For `print`"""
163
- return self.to_str()
164
-
165
- def __eq__(self, other):
166
- """Returns true if both objects are equal"""
167
- if not isinstance(other, CreateQaFeedbacksResponse):
168
- return False
169
-
170
- return self.__dict__ == other.__dict__
171
-
172
- def __ne__(self, other):
173
- """Returns true if both objects are not equal"""
174
- return not self == other