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,197 +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 CreateQaAskRequest:
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
- 'body': 'QaAskReq'
24
- }
25
-
26
- attribute_map = {
27
- 'x_service_key': 'x-service-key',
28
- 'x_site': 'x-site',
29
- 'x_language': 'x-language',
30
- 'body': 'body'
31
- }
32
-
33
- def __init__(self, x_service_key=None, x_site=None, x_language=None, body=None):
34
- r"""CreateQaAskRequest
35
-
36
- The model defined in huaweicloud sdk
37
-
38
- :param x_service_key: 调用智能客服服务标志。
39
- :type x_service_key: str
40
- :param x_site: 站点标记,0-中国站 1-国际站
41
- :type x_site: str
42
- :param x_language: 区域语言简写,en-us zh-cn
43
- :type x_language: str
44
- :param body: Body of the CreateQaAskRequest
45
- :type body: :class:`huaweicloudsdkosm.v2.QaAskReq`
46
- """
47
-
48
-
49
-
50
- self._x_service_key = None
51
- self._x_site = None
52
- self._x_language = None
53
- self._body = None
54
- self.discriminator = None
55
-
56
- self.x_service_key = x_service_key
57
- if x_site is not None:
58
- self.x_site = x_site
59
- if x_language is not None:
60
- self.x_language = x_language
61
- if body is not None:
62
- self.body = body
63
-
64
- @property
65
- def x_service_key(self):
66
- r"""Gets the x_service_key of this CreateQaAskRequest.
67
-
68
- 调用智能客服服务标志。
69
-
70
- :return: The x_service_key of this CreateQaAskRequest.
71
- :rtype: str
72
- """
73
- return self._x_service_key
74
-
75
- @x_service_key.setter
76
- def x_service_key(self, x_service_key):
77
- r"""Sets the x_service_key of this CreateQaAskRequest.
78
-
79
- 调用智能客服服务标志。
80
-
81
- :param x_service_key: The x_service_key of this CreateQaAskRequest.
82
- :type x_service_key: str
83
- """
84
- self._x_service_key = x_service_key
85
-
86
- @property
87
- def x_site(self):
88
- r"""Gets the x_site of this CreateQaAskRequest.
89
-
90
- 站点标记,0-中国站 1-国际站
91
-
92
- :return: The x_site of this CreateQaAskRequest.
93
- :rtype: str
94
- """
95
- return self._x_site
96
-
97
- @x_site.setter
98
- def x_site(self, x_site):
99
- r"""Sets the x_site of this CreateQaAskRequest.
100
-
101
- 站点标记,0-中国站 1-国际站
102
-
103
- :param x_site: The x_site of this CreateQaAskRequest.
104
- :type x_site: str
105
- """
106
- self._x_site = x_site
107
-
108
- @property
109
- def x_language(self):
110
- r"""Gets the x_language of this CreateQaAskRequest.
111
-
112
- 区域语言简写,en-us zh-cn
113
-
114
- :return: The x_language of this CreateQaAskRequest.
115
- :rtype: str
116
- """
117
- return self._x_language
118
-
119
- @x_language.setter
120
- def x_language(self, x_language):
121
- r"""Sets the x_language of this CreateQaAskRequest.
122
-
123
- 区域语言简写,en-us zh-cn
124
-
125
- :param x_language: The x_language of this CreateQaAskRequest.
126
- :type x_language: str
127
- """
128
- self._x_language = x_language
129
-
130
- @property
131
- def body(self):
132
- r"""Gets the body of this CreateQaAskRequest.
133
-
134
- :return: The body of this CreateQaAskRequest.
135
- :rtype: :class:`huaweicloudsdkosm.v2.QaAskReq`
136
- """
137
- return self._body
138
-
139
- @body.setter
140
- def body(self, body):
141
- r"""Sets the body of this CreateQaAskRequest.
142
-
143
- :param body: The body of this CreateQaAskRequest.
144
- :type body: :class:`huaweicloudsdkosm.v2.QaAskReq`
145
- """
146
- self._body = body
147
-
148
- def to_dict(self):
149
- """Returns the model properties as a dict"""
150
- result = {}
151
-
152
- for attr, _ in six.iteritems(self.openapi_types):
153
- value = getattr(self, attr)
154
- if isinstance(value, list):
155
- result[attr] = list(map(
156
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
157
- value
158
- ))
159
- elif hasattr(value, "to_dict"):
160
- result[attr] = value.to_dict()
161
- elif isinstance(value, dict):
162
- result[attr] = dict(map(
163
- lambda item: (item[0], item[1].to_dict())
164
- if hasattr(item[1], "to_dict") else item,
165
- value.items()
166
- ))
167
- else:
168
- if attr in self.sensitive_list:
169
- result[attr] = "****"
170
- else:
171
- result[attr] = value
172
-
173
- return result
174
-
175
- def to_str(self):
176
- """Returns the string representation of the model"""
177
- import simplejson as json
178
- if six.PY2:
179
- import sys
180
- reload(sys)
181
- sys.setdefaultencoding("utf-8")
182
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
183
-
184
- def __repr__(self):
185
- """For `print`"""
186
- return self.to_str()
187
-
188
- def __eq__(self, other):
189
- """Returns true if both objects are equal"""
190
- if not isinstance(other, CreateQaAskRequest):
191
- return False
192
-
193
- return self.__dict__ == other.__dict__
194
-
195
- def __ne__(self, other):
196
- """Returns true if both objects are not equal"""
197
- return not self == other
@@ -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