huaweicloudsdkosm 3.1.164__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.
- huaweicloudsdkosm/v2/__init__.py +0 -60
- huaweicloudsdkosm/v2/model/__init__.py +0 -60
- huaweicloudsdkosm/v2/osm_async_client.py +45 -1130
- huaweicloudsdkosm/v2/osm_client.py +45 -1130
- {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/METADATA +2 -2
- {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/RECORD +9 -69
- huaweicloudsdkosm/v2/model/answer.py +0 -227
- huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
- huaweicloudsdkosm/v2/model/answer_info.py +0 -231
- huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
- huaweicloudsdkosm/v2/model/article.py +0 -347
- huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
- huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
- huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
- huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
- huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
- huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
- huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
- huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
- huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
- huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
- huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
- huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
- huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
- huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
- huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
- huaweicloudsdkosm/v2/model/extend_question.py +0 -144
- huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
- huaweicloudsdkosm/v2/model/lang_result.py +0 -144
- huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
- huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
- huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
- huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
- huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
- huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
- huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
- huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
- huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
- huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
- huaweicloudsdkosm/v2/model/notice.py +0 -199
- huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
- huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
- huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
- huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
- huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
- huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
- huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
- huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
- huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
- huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
- huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
- huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
- huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
- huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
- huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
- huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
- huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
- huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
- huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
- huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
- huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
- huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
- huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
- huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
- huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
- huaweicloudsdkosm/v2/model/tool.py +0 -287
- {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/LICENSE +0 -0
- {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/WHEEL +0 -0
- {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
@@ -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
|