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,232 +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 CreateAskQuestionResponse(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
- 'question': 'str',
22
- 'answers': 'list[AnswerQaPair]',
23
- 'error_code': 'str',
24
- 'error_msg': 'str',
25
- 'request_id': 'str'
26
- }
27
-
28
- attribute_map = {
29
- 'question': 'question',
30
- 'answers': 'answers',
31
- 'error_code': 'error_code',
32
- 'error_msg': 'error_msg',
33
- 'request_id': 'request_id'
34
- }
35
-
36
- def __init__(self, question=None, answers=None, error_code=None, error_msg=None, request_id=None):
37
- r"""CreateAskQuestionResponse
38
-
39
- The model defined in huaweicloud sdk
40
-
41
- :param question: 问题
42
- :type question: str
43
- :param answers: 答案列表
44
- :type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`]
45
- :param error_code: 错误码
46
- :type error_code: str
47
- :param error_msg: 错误描述
48
- :type error_msg: str
49
- :param request_id: 请求Id
50
- :type request_id: str
51
- """
52
-
53
- super(CreateAskQuestionResponse, self).__init__()
54
-
55
- self._question = None
56
- self._answers = None
57
- self._error_code = None
58
- self._error_msg = None
59
- self._request_id = None
60
- self.discriminator = None
61
-
62
- if question is not None:
63
- self.question = question
64
- if answers is not None:
65
- self.answers = answers
66
- if error_code is not None:
67
- self.error_code = error_code
68
- if error_msg is not None:
69
- self.error_msg = error_msg
70
- if request_id is not None:
71
- self.request_id = request_id
72
-
73
- @property
74
- def question(self):
75
- r"""Gets the question of this CreateAskQuestionResponse.
76
-
77
- 问题
78
-
79
- :return: The question of this CreateAskQuestionResponse.
80
- :rtype: str
81
- """
82
- return self._question
83
-
84
- @question.setter
85
- def question(self, question):
86
- r"""Sets the question of this CreateAskQuestionResponse.
87
-
88
- 问题
89
-
90
- :param question: The question of this CreateAskQuestionResponse.
91
- :type question: str
92
- """
93
- self._question = question
94
-
95
- @property
96
- def answers(self):
97
- r"""Gets the answers of this CreateAskQuestionResponse.
98
-
99
- 答案列表
100
-
101
- :return: The answers of this CreateAskQuestionResponse.
102
- :rtype: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`]
103
- """
104
- return self._answers
105
-
106
- @answers.setter
107
- def answers(self, answers):
108
- r"""Sets the answers of this CreateAskQuestionResponse.
109
-
110
- 答案列表
111
-
112
- :param answers: The answers of this CreateAskQuestionResponse.
113
- :type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`]
114
- """
115
- self._answers = answers
116
-
117
- @property
118
- def error_code(self):
119
- r"""Gets the error_code of this CreateAskQuestionResponse.
120
-
121
- 错误码
122
-
123
- :return: The error_code of this CreateAskQuestionResponse.
124
- :rtype: str
125
- """
126
- return self._error_code
127
-
128
- @error_code.setter
129
- def error_code(self, error_code):
130
- r"""Sets the error_code of this CreateAskQuestionResponse.
131
-
132
- 错误码
133
-
134
- :param error_code: The error_code of this CreateAskQuestionResponse.
135
- :type error_code: str
136
- """
137
- self._error_code = error_code
138
-
139
- @property
140
- def error_msg(self):
141
- r"""Gets the error_msg of this CreateAskQuestionResponse.
142
-
143
- 错误描述
144
-
145
- :return: The error_msg of this CreateAskQuestionResponse.
146
- :rtype: str
147
- """
148
- return self._error_msg
149
-
150
- @error_msg.setter
151
- def error_msg(self, error_msg):
152
- r"""Sets the error_msg of this CreateAskQuestionResponse.
153
-
154
- 错误描述
155
-
156
- :param error_msg: The error_msg of this CreateAskQuestionResponse.
157
- :type error_msg: str
158
- """
159
- self._error_msg = error_msg
160
-
161
- @property
162
- def request_id(self):
163
- r"""Gets the request_id of this CreateAskQuestionResponse.
164
-
165
- 请求Id
166
-
167
- :return: The request_id of this CreateAskQuestionResponse.
168
- :rtype: str
169
- """
170
- return self._request_id
171
-
172
- @request_id.setter
173
- def request_id(self, request_id):
174
- r"""Sets the request_id of this CreateAskQuestionResponse.
175
-
176
- 请求Id
177
-
178
- :param request_id: The request_id of this CreateAskQuestionResponse.
179
- :type request_id: str
180
- """
181
- self._request_id = request_id
182
-
183
- def to_dict(self):
184
- """Returns the model properties as a dict"""
185
- result = {}
186
-
187
- for attr, _ in six.iteritems(self.openapi_types):
188
- value = getattr(self, attr)
189
- if isinstance(value, list):
190
- result[attr] = list(map(
191
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
- value
193
- ))
194
- elif hasattr(value, "to_dict"):
195
- result[attr] = value.to_dict()
196
- elif isinstance(value, dict):
197
- result[attr] = dict(map(
198
- lambda item: (item[0], item[1].to_dict())
199
- if hasattr(item[1], "to_dict") else item,
200
- value.items()
201
- ))
202
- else:
203
- if attr in self.sensitive_list:
204
- result[attr] = "****"
205
- else:
206
- result[attr] = value
207
-
208
- return result
209
-
210
- def to_str(self):
211
- """Returns the string representation of the model"""
212
- import simplejson as json
213
- if six.PY2:
214
- import sys
215
- reload(sys)
216
- sys.setdefaultencoding("utf-8")
217
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
218
-
219
- def __repr__(self):
220
- """For `print`"""
221
- return self.to_str()
222
-
223
- def __eq__(self, other):
224
- """Returns true if both objects are equal"""
225
- if not isinstance(other, CreateAskQuestionResponse):
226
- return False
227
-
228
- return self.__dict__ == other.__dict__
229
-
230
- def __ne__(self, other):
231
- """Returns true if both objects are not equal"""
232
- return not self == other
@@ -1,253 +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 CreateEvaluateRequest:
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
- 'session_id': 'str',
24
- 'request_id': 'str',
25
- 'body': 'EvaluateRequestReq'
26
- }
27
-
28
- attribute_map = {
29
- 'x_service_key': 'x-service-key',
30
- 'x_site': 'x-site',
31
- 'x_language': 'x-language',
32
- 'session_id': 'session_id',
33
- 'request_id': 'request_id',
34
- 'body': 'body'
35
- }
36
-
37
- def __init__(self, x_service_key=None, x_site=None, x_language=None, session_id=None, request_id=None, body=None):
38
- r"""CreateEvaluateRequest
39
-
40
- The model defined in huaweicloud sdk
41
-
42
- :param x_service_key: 调用智能客服服务标志。
43
- :type x_service_key: str
44
- :param x_site: 站点标记,0-中国站 1-国际站
45
- :type x_site: str
46
- :param x_language: 区域语言简写,en-us zh-cn
47
- :type x_language: str
48
- :param session_id: 会话Id
49
- :type session_id: str
50
- :param request_id: 请求Id
51
- :type request_id: str
52
- :param body: Body of the CreateEvaluateRequest
53
- :type body: :class:`huaweicloudsdkosm.v2.EvaluateRequestReq`
54
- """
55
-
56
-
57
-
58
- self._x_service_key = None
59
- self._x_site = None
60
- self._x_language = None
61
- self._session_id = None
62
- self._request_id = None
63
- self._body = None
64
- self.discriminator = None
65
-
66
- self.x_service_key = x_service_key
67
- if x_site is not None:
68
- self.x_site = x_site
69
- if x_language is not None:
70
- self.x_language = x_language
71
- self.session_id = session_id
72
- self.request_id = request_id
73
- if body is not None:
74
- self.body = body
75
-
76
- @property
77
- def x_service_key(self):
78
- r"""Gets the x_service_key of this CreateEvaluateRequest.
79
-
80
- 调用智能客服服务标志。
81
-
82
- :return: The x_service_key of this CreateEvaluateRequest.
83
- :rtype: str
84
- """
85
- return self._x_service_key
86
-
87
- @x_service_key.setter
88
- def x_service_key(self, x_service_key):
89
- r"""Sets the x_service_key of this CreateEvaluateRequest.
90
-
91
- 调用智能客服服务标志。
92
-
93
- :param x_service_key: The x_service_key of this CreateEvaluateRequest.
94
- :type x_service_key: str
95
- """
96
- self._x_service_key = x_service_key
97
-
98
- @property
99
- def x_site(self):
100
- r"""Gets the x_site of this CreateEvaluateRequest.
101
-
102
- 站点标记,0-中国站 1-国际站
103
-
104
- :return: The x_site of this CreateEvaluateRequest.
105
- :rtype: str
106
- """
107
- return self._x_site
108
-
109
- @x_site.setter
110
- def x_site(self, x_site):
111
- r"""Sets the x_site of this CreateEvaluateRequest.
112
-
113
- 站点标记,0-中国站 1-国际站
114
-
115
- :param x_site: The x_site of this CreateEvaluateRequest.
116
- :type x_site: str
117
- """
118
- self._x_site = x_site
119
-
120
- @property
121
- def x_language(self):
122
- r"""Gets the x_language of this CreateEvaluateRequest.
123
-
124
- 区域语言简写,en-us zh-cn
125
-
126
- :return: The x_language of this CreateEvaluateRequest.
127
- :rtype: str
128
- """
129
- return self._x_language
130
-
131
- @x_language.setter
132
- def x_language(self, x_language):
133
- r"""Sets the x_language of this CreateEvaluateRequest.
134
-
135
- 区域语言简写,en-us zh-cn
136
-
137
- :param x_language: The x_language of this CreateEvaluateRequest.
138
- :type x_language: str
139
- """
140
- self._x_language = x_language
141
-
142
- @property
143
- def session_id(self):
144
- r"""Gets the session_id of this CreateEvaluateRequest.
145
-
146
- 会话Id
147
-
148
- :return: The session_id of this CreateEvaluateRequest.
149
- :rtype: str
150
- """
151
- return self._session_id
152
-
153
- @session_id.setter
154
- def session_id(self, session_id):
155
- r"""Sets the session_id of this CreateEvaluateRequest.
156
-
157
- 会话Id
158
-
159
- :param session_id: The session_id of this CreateEvaluateRequest.
160
- :type session_id: str
161
- """
162
- self._session_id = session_id
163
-
164
- @property
165
- def request_id(self):
166
- r"""Gets the request_id of this CreateEvaluateRequest.
167
-
168
- 请求Id
169
-
170
- :return: The request_id of this CreateEvaluateRequest.
171
- :rtype: str
172
- """
173
- return self._request_id
174
-
175
- @request_id.setter
176
- def request_id(self, request_id):
177
- r"""Sets the request_id of this CreateEvaluateRequest.
178
-
179
- 请求Id
180
-
181
- :param request_id: The request_id of this CreateEvaluateRequest.
182
- :type request_id: str
183
- """
184
- self._request_id = request_id
185
-
186
- @property
187
- def body(self):
188
- r"""Gets the body of this CreateEvaluateRequest.
189
-
190
- :return: The body of this CreateEvaluateRequest.
191
- :rtype: :class:`huaweicloudsdkosm.v2.EvaluateRequestReq`
192
- """
193
- return self._body
194
-
195
- @body.setter
196
- def body(self, body):
197
- r"""Sets the body of this CreateEvaluateRequest.
198
-
199
- :param body: The body of this CreateEvaluateRequest.
200
- :type body: :class:`huaweicloudsdkosm.v2.EvaluateRequestReq`
201
- """
202
- self._body = body
203
-
204
- def to_dict(self):
205
- """Returns the model properties as a dict"""
206
- result = {}
207
-
208
- for attr, _ in six.iteritems(self.openapi_types):
209
- value = getattr(self, attr)
210
- if isinstance(value, list):
211
- result[attr] = list(map(
212
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
213
- value
214
- ))
215
- elif hasattr(value, "to_dict"):
216
- result[attr] = value.to_dict()
217
- elif isinstance(value, dict):
218
- result[attr] = dict(map(
219
- lambda item: (item[0], item[1].to_dict())
220
- if hasattr(item[1], "to_dict") else item,
221
- value.items()
222
- ))
223
- else:
224
- if attr in self.sensitive_list:
225
- result[attr] = "****"
226
- else:
227
- result[attr] = value
228
-
229
- return result
230
-
231
- def to_str(self):
232
- """Returns the string representation of the model"""
233
- import simplejson as json
234
- if six.PY2:
235
- import sys
236
- reload(sys)
237
- sys.setdefaultencoding("utf-8")
238
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
239
-
240
- def __repr__(self):
241
- """For `print`"""
242
- return self.to_str()
243
-
244
- def __eq__(self, other):
245
- """Returns true if both objects are equal"""
246
- if not isinstance(other, CreateEvaluateRequest):
247
- return False
248
-
249
- return self.__dict__ == other.__dict__
250
-
251
- def __ne__(self, other):
252
- """Returns true if both objects are not equal"""
253
- 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 CreateEvaluateResponse(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
- 'request_id': 'str'
24
- }
25
-
26
- attribute_map = {
27
- 'error_code': 'error_code',
28
- 'error_msg': 'error_msg',
29
- 'request_id': 'request_id'
30
- }
31
-
32
- def __init__(self, error_code=None, error_msg=None, request_id=None):
33
- r"""CreateEvaluateResponse
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 request_id: 请求Id
42
- :type request_id: str
43
- """
44
-
45
- super(CreateEvaluateResponse, self).__init__()
46
-
47
- self._error_code = None
48
- self._error_msg = None
49
- self._request_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 request_id is not None:
57
- self.request_id = request_id
58
-
59
- @property
60
- def error_code(self):
61
- r"""Gets the error_code of this CreateEvaluateResponse.
62
-
63
- 错误码
64
-
65
- :return: The error_code of this CreateEvaluateResponse.
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 CreateEvaluateResponse.
73
-
74
- 错误码
75
-
76
- :param error_code: The error_code of this CreateEvaluateResponse.
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 CreateEvaluateResponse.
84
-
85
- 错误描述
86
-
87
- :return: The error_msg of this CreateEvaluateResponse.
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 CreateEvaluateResponse.
95
-
96
- 错误描述
97
-
98
- :param error_msg: The error_msg of this CreateEvaluateResponse.
99
- :type error_msg: str
100
- """
101
- self._error_msg = error_msg
102
-
103
- @property
104
- def request_id(self):
105
- r"""Gets the request_id of this CreateEvaluateResponse.
106
-
107
- 请求Id
108
-
109
- :return: The request_id of this CreateEvaluateResponse.
110
- :rtype: str
111
- """
112
- return self._request_id
113
-
114
- @request_id.setter
115
- def request_id(self, request_id):
116
- r"""Sets the request_id of this CreateEvaluateResponse.
117
-
118
- 请求Id
119
-
120
- :param request_id: The request_id of this CreateEvaluateResponse.
121
- :type request_id: str
122
- """
123
- self._request_id = request_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, CreateEvaluateResponse):
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