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.
- 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.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info}/RECORD +8 -69
- {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info}/WHEEL +1 -2
- 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/top_level.txt +0 -1
- {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,316 +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 AskQuestionReq:
|
|
9
|
-
|
|
10
|
-
"""
|
|
11
|
-
Attributes:
|
|
12
|
-
openapi_types (dict): The key is attribute name
|
|
13
|
-
and the value is attribute type.
|
|
14
|
-
attribute_map (dict): The key is attribute name
|
|
15
|
-
and the value is json key in definition.
|
|
16
|
-
"""
|
|
17
|
-
sensitive_list = []
|
|
18
|
-
|
|
19
|
-
openapi_types = {
|
|
20
|
-
'question': 'str',
|
|
21
|
-
'domains': 'list[str]',
|
|
22
|
-
'top': 'int',
|
|
23
|
-
'session_id': 'str',
|
|
24
|
-
'source_qa_pair_id': 'str',
|
|
25
|
-
'operate_type': 'int',
|
|
26
|
-
'threshold_enable': 'str',
|
|
27
|
-
'product_type_id': 'str'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
attribute_map = {
|
|
31
|
-
'question': 'question',
|
|
32
|
-
'domains': 'domains',
|
|
33
|
-
'top': 'top',
|
|
34
|
-
'session_id': 'session_id',
|
|
35
|
-
'source_qa_pair_id': 'source_qa_pair_id',
|
|
36
|
-
'operate_type': 'operate_type',
|
|
37
|
-
'threshold_enable': 'threshold_enable',
|
|
38
|
-
'product_type_id': 'product_type_id'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
def __init__(self, question=None, domains=None, top=None, session_id=None, source_qa_pair_id=None, operate_type=None, threshold_enable=None, product_type_id=None):
|
|
42
|
-
r"""AskQuestionReq
|
|
43
|
-
|
|
44
|
-
The model defined in huaweicloud sdk
|
|
45
|
-
|
|
46
|
-
:param question: 用户输入问题
|
|
47
|
-
:type question: str
|
|
48
|
-
:param domains: 主题列表
|
|
49
|
-
:type domains: list[str]
|
|
50
|
-
:param top: 返回匹配度最高的数据条数
|
|
51
|
-
:type top: int
|
|
52
|
-
:param session_id: 会话ID
|
|
53
|
-
:type session_id: str
|
|
54
|
-
:param source_qa_pair_id: 语料ID
|
|
55
|
-
:type source_qa_pair_id: str
|
|
56
|
-
:param operate_type: 操作类型:0-手动输入,1-单击热点问题,2-单击猜你想问,3-单击推荐问题,4-单击问题提示
|
|
57
|
-
:type operate_type: int
|
|
58
|
-
:param threshold_enable: 是否启用内部阈值开关
|
|
59
|
-
:type threshold_enable: str
|
|
60
|
-
:param product_type_id: 产品类型id
|
|
61
|
-
:type product_type_id: str
|
|
62
|
-
"""
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
self._question = None
|
|
67
|
-
self._domains = None
|
|
68
|
-
self._top = None
|
|
69
|
-
self._session_id = None
|
|
70
|
-
self._source_qa_pair_id = None
|
|
71
|
-
self._operate_type = None
|
|
72
|
-
self._threshold_enable = None
|
|
73
|
-
self._product_type_id = None
|
|
74
|
-
self.discriminator = None
|
|
75
|
-
|
|
76
|
-
self.question = question
|
|
77
|
-
if domains is not None:
|
|
78
|
-
self.domains = domains
|
|
79
|
-
if top is not None:
|
|
80
|
-
self.top = top
|
|
81
|
-
self.session_id = session_id
|
|
82
|
-
if source_qa_pair_id is not None:
|
|
83
|
-
self.source_qa_pair_id = source_qa_pair_id
|
|
84
|
-
if operate_type is not None:
|
|
85
|
-
self.operate_type = operate_type
|
|
86
|
-
if threshold_enable is not None:
|
|
87
|
-
self.threshold_enable = threshold_enable
|
|
88
|
-
if product_type_id is not None:
|
|
89
|
-
self.product_type_id = product_type_id
|
|
90
|
-
|
|
91
|
-
@property
|
|
92
|
-
def question(self):
|
|
93
|
-
r"""Gets the question of this AskQuestionReq.
|
|
94
|
-
|
|
95
|
-
用户输入问题
|
|
96
|
-
|
|
97
|
-
:return: The question of this AskQuestionReq.
|
|
98
|
-
:rtype: str
|
|
99
|
-
"""
|
|
100
|
-
return self._question
|
|
101
|
-
|
|
102
|
-
@question.setter
|
|
103
|
-
def question(self, question):
|
|
104
|
-
r"""Sets the question of this AskQuestionReq.
|
|
105
|
-
|
|
106
|
-
用户输入问题
|
|
107
|
-
|
|
108
|
-
:param question: The question of this AskQuestionReq.
|
|
109
|
-
:type question: str
|
|
110
|
-
"""
|
|
111
|
-
self._question = question
|
|
112
|
-
|
|
113
|
-
@property
|
|
114
|
-
def domains(self):
|
|
115
|
-
r"""Gets the domains of this AskQuestionReq.
|
|
116
|
-
|
|
117
|
-
主题列表
|
|
118
|
-
|
|
119
|
-
:return: The domains of this AskQuestionReq.
|
|
120
|
-
:rtype: list[str]
|
|
121
|
-
"""
|
|
122
|
-
return self._domains
|
|
123
|
-
|
|
124
|
-
@domains.setter
|
|
125
|
-
def domains(self, domains):
|
|
126
|
-
r"""Sets the domains of this AskQuestionReq.
|
|
127
|
-
|
|
128
|
-
主题列表
|
|
129
|
-
|
|
130
|
-
:param domains: The domains of this AskQuestionReq.
|
|
131
|
-
:type domains: list[str]
|
|
132
|
-
"""
|
|
133
|
-
self._domains = domains
|
|
134
|
-
|
|
135
|
-
@property
|
|
136
|
-
def top(self):
|
|
137
|
-
r"""Gets the top of this AskQuestionReq.
|
|
138
|
-
|
|
139
|
-
返回匹配度最高的数据条数
|
|
140
|
-
|
|
141
|
-
:return: The top of this AskQuestionReq.
|
|
142
|
-
:rtype: int
|
|
143
|
-
"""
|
|
144
|
-
return self._top
|
|
145
|
-
|
|
146
|
-
@top.setter
|
|
147
|
-
def top(self, top):
|
|
148
|
-
r"""Sets the top of this AskQuestionReq.
|
|
149
|
-
|
|
150
|
-
返回匹配度最高的数据条数
|
|
151
|
-
|
|
152
|
-
:param top: The top of this AskQuestionReq.
|
|
153
|
-
:type top: int
|
|
154
|
-
"""
|
|
155
|
-
self._top = top
|
|
156
|
-
|
|
157
|
-
@property
|
|
158
|
-
def session_id(self):
|
|
159
|
-
r"""Gets the session_id of this AskQuestionReq.
|
|
160
|
-
|
|
161
|
-
会话ID
|
|
162
|
-
|
|
163
|
-
:return: The session_id of this AskQuestionReq.
|
|
164
|
-
:rtype: str
|
|
165
|
-
"""
|
|
166
|
-
return self._session_id
|
|
167
|
-
|
|
168
|
-
@session_id.setter
|
|
169
|
-
def session_id(self, session_id):
|
|
170
|
-
r"""Sets the session_id of this AskQuestionReq.
|
|
171
|
-
|
|
172
|
-
会话ID
|
|
173
|
-
|
|
174
|
-
:param session_id: The session_id of this AskQuestionReq.
|
|
175
|
-
:type session_id: str
|
|
176
|
-
"""
|
|
177
|
-
self._session_id = session_id
|
|
178
|
-
|
|
179
|
-
@property
|
|
180
|
-
def source_qa_pair_id(self):
|
|
181
|
-
r"""Gets the source_qa_pair_id of this AskQuestionReq.
|
|
182
|
-
|
|
183
|
-
语料ID
|
|
184
|
-
|
|
185
|
-
:return: The source_qa_pair_id of this AskQuestionReq.
|
|
186
|
-
:rtype: str
|
|
187
|
-
"""
|
|
188
|
-
return self._source_qa_pair_id
|
|
189
|
-
|
|
190
|
-
@source_qa_pair_id.setter
|
|
191
|
-
def source_qa_pair_id(self, source_qa_pair_id):
|
|
192
|
-
r"""Sets the source_qa_pair_id of this AskQuestionReq.
|
|
193
|
-
|
|
194
|
-
语料ID
|
|
195
|
-
|
|
196
|
-
:param source_qa_pair_id: The source_qa_pair_id of this AskQuestionReq.
|
|
197
|
-
:type source_qa_pair_id: str
|
|
198
|
-
"""
|
|
199
|
-
self._source_qa_pair_id = source_qa_pair_id
|
|
200
|
-
|
|
201
|
-
@property
|
|
202
|
-
def operate_type(self):
|
|
203
|
-
r"""Gets the operate_type of this AskQuestionReq.
|
|
204
|
-
|
|
205
|
-
操作类型:0-手动输入,1-单击热点问题,2-单击猜你想问,3-单击推荐问题,4-单击问题提示
|
|
206
|
-
|
|
207
|
-
:return: The operate_type of this AskQuestionReq.
|
|
208
|
-
:rtype: int
|
|
209
|
-
"""
|
|
210
|
-
return self._operate_type
|
|
211
|
-
|
|
212
|
-
@operate_type.setter
|
|
213
|
-
def operate_type(self, operate_type):
|
|
214
|
-
r"""Sets the operate_type of this AskQuestionReq.
|
|
215
|
-
|
|
216
|
-
操作类型:0-手动输入,1-单击热点问题,2-单击猜你想问,3-单击推荐问题,4-单击问题提示
|
|
217
|
-
|
|
218
|
-
:param operate_type: The operate_type of this AskQuestionReq.
|
|
219
|
-
:type operate_type: int
|
|
220
|
-
"""
|
|
221
|
-
self._operate_type = operate_type
|
|
222
|
-
|
|
223
|
-
@property
|
|
224
|
-
def threshold_enable(self):
|
|
225
|
-
r"""Gets the threshold_enable of this AskQuestionReq.
|
|
226
|
-
|
|
227
|
-
是否启用内部阈值开关
|
|
228
|
-
|
|
229
|
-
:return: The threshold_enable of this AskQuestionReq.
|
|
230
|
-
:rtype: str
|
|
231
|
-
"""
|
|
232
|
-
return self._threshold_enable
|
|
233
|
-
|
|
234
|
-
@threshold_enable.setter
|
|
235
|
-
def threshold_enable(self, threshold_enable):
|
|
236
|
-
r"""Sets the threshold_enable of this AskQuestionReq.
|
|
237
|
-
|
|
238
|
-
是否启用内部阈值开关
|
|
239
|
-
|
|
240
|
-
:param threshold_enable: The threshold_enable of this AskQuestionReq.
|
|
241
|
-
:type threshold_enable: str
|
|
242
|
-
"""
|
|
243
|
-
self._threshold_enable = threshold_enable
|
|
244
|
-
|
|
245
|
-
@property
|
|
246
|
-
def product_type_id(self):
|
|
247
|
-
r"""Gets the product_type_id of this AskQuestionReq.
|
|
248
|
-
|
|
249
|
-
产品类型id
|
|
250
|
-
|
|
251
|
-
:return: The product_type_id of this AskQuestionReq.
|
|
252
|
-
:rtype: str
|
|
253
|
-
"""
|
|
254
|
-
return self._product_type_id
|
|
255
|
-
|
|
256
|
-
@product_type_id.setter
|
|
257
|
-
def product_type_id(self, product_type_id):
|
|
258
|
-
r"""Sets the product_type_id of this AskQuestionReq.
|
|
259
|
-
|
|
260
|
-
产品类型id
|
|
261
|
-
|
|
262
|
-
:param product_type_id: The product_type_id of this AskQuestionReq.
|
|
263
|
-
:type product_type_id: str
|
|
264
|
-
"""
|
|
265
|
-
self._product_type_id = product_type_id
|
|
266
|
-
|
|
267
|
-
def to_dict(self):
|
|
268
|
-
"""Returns the model properties as a dict"""
|
|
269
|
-
result = {}
|
|
270
|
-
|
|
271
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
272
|
-
value = getattr(self, attr)
|
|
273
|
-
if isinstance(value, list):
|
|
274
|
-
result[attr] = list(map(
|
|
275
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
276
|
-
value
|
|
277
|
-
))
|
|
278
|
-
elif hasattr(value, "to_dict"):
|
|
279
|
-
result[attr] = value.to_dict()
|
|
280
|
-
elif isinstance(value, dict):
|
|
281
|
-
result[attr] = dict(map(
|
|
282
|
-
lambda item: (item[0], item[1].to_dict())
|
|
283
|
-
if hasattr(item[1], "to_dict") else item,
|
|
284
|
-
value.items()
|
|
285
|
-
))
|
|
286
|
-
else:
|
|
287
|
-
if attr in self.sensitive_list:
|
|
288
|
-
result[attr] = "****"
|
|
289
|
-
else:
|
|
290
|
-
result[attr] = value
|
|
291
|
-
|
|
292
|
-
return result
|
|
293
|
-
|
|
294
|
-
def to_str(self):
|
|
295
|
-
"""Returns the string representation of the model"""
|
|
296
|
-
import simplejson as json
|
|
297
|
-
if six.PY2:
|
|
298
|
-
import sys
|
|
299
|
-
reload(sys)
|
|
300
|
-
sys.setdefaultencoding("utf-8")
|
|
301
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
302
|
-
|
|
303
|
-
def __repr__(self):
|
|
304
|
-
"""For `print`"""
|
|
305
|
-
return self.to_str()
|
|
306
|
-
|
|
307
|
-
def __eq__(self, other):
|
|
308
|
-
"""Returns true if both objects are equal"""
|
|
309
|
-
if not isinstance(other, AskQuestionReq):
|
|
310
|
-
return False
|
|
311
|
-
|
|
312
|
-
return self.__dict__ == other.__dict__
|
|
313
|
-
|
|
314
|
-
def __ne__(self, other):
|
|
315
|
-
"""Returns true if both objects are not equal"""
|
|
316
|
-
return not self == other
|
|
@@ -1,144 +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 CbsFlowEntry:
|
|
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
|
-
'qa_flow_id': 'str',
|
|
21
|
-
'start_node_id': 'str'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
attribute_map = {
|
|
25
|
-
'qa_flow_id': 'qa_flow_id',
|
|
26
|
-
'start_node_id': 'start_node_id'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
def __init__(self, qa_flow_id=None, start_node_id=None):
|
|
30
|
-
r"""CbsFlowEntry
|
|
31
|
-
|
|
32
|
-
The model defined in huaweicloud sdk
|
|
33
|
-
|
|
34
|
-
:param qa_flow_id: 问题流程id
|
|
35
|
-
:type qa_flow_id: str
|
|
36
|
-
:param start_node_id: 开始节点id
|
|
37
|
-
:type start_node_id: str
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
self._qa_flow_id = None
|
|
43
|
-
self._start_node_id = None
|
|
44
|
-
self.discriminator = None
|
|
45
|
-
|
|
46
|
-
if qa_flow_id is not None:
|
|
47
|
-
self.qa_flow_id = qa_flow_id
|
|
48
|
-
if start_node_id is not None:
|
|
49
|
-
self.start_node_id = start_node_id
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def qa_flow_id(self):
|
|
53
|
-
r"""Gets the qa_flow_id of this CbsFlowEntry.
|
|
54
|
-
|
|
55
|
-
问题流程id
|
|
56
|
-
|
|
57
|
-
:return: The qa_flow_id of this CbsFlowEntry.
|
|
58
|
-
:rtype: str
|
|
59
|
-
"""
|
|
60
|
-
return self._qa_flow_id
|
|
61
|
-
|
|
62
|
-
@qa_flow_id.setter
|
|
63
|
-
def qa_flow_id(self, qa_flow_id):
|
|
64
|
-
r"""Sets the qa_flow_id of this CbsFlowEntry.
|
|
65
|
-
|
|
66
|
-
问题流程id
|
|
67
|
-
|
|
68
|
-
:param qa_flow_id: The qa_flow_id of this CbsFlowEntry.
|
|
69
|
-
:type qa_flow_id: str
|
|
70
|
-
"""
|
|
71
|
-
self._qa_flow_id = qa_flow_id
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def start_node_id(self):
|
|
75
|
-
r"""Gets the start_node_id of this CbsFlowEntry.
|
|
76
|
-
|
|
77
|
-
开始节点id
|
|
78
|
-
|
|
79
|
-
:return: The start_node_id of this CbsFlowEntry.
|
|
80
|
-
:rtype: str
|
|
81
|
-
"""
|
|
82
|
-
return self._start_node_id
|
|
83
|
-
|
|
84
|
-
@start_node_id.setter
|
|
85
|
-
def start_node_id(self, start_node_id):
|
|
86
|
-
r"""Sets the start_node_id of this CbsFlowEntry.
|
|
87
|
-
|
|
88
|
-
开始节点id
|
|
89
|
-
|
|
90
|
-
:param start_node_id: The start_node_id of this CbsFlowEntry.
|
|
91
|
-
:type start_node_id: str
|
|
92
|
-
"""
|
|
93
|
-
self._start_node_id = start_node_id
|
|
94
|
-
|
|
95
|
-
def to_dict(self):
|
|
96
|
-
"""Returns the model properties as a dict"""
|
|
97
|
-
result = {}
|
|
98
|
-
|
|
99
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
100
|
-
value = getattr(self, attr)
|
|
101
|
-
if isinstance(value, list):
|
|
102
|
-
result[attr] = list(map(
|
|
103
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
104
|
-
value
|
|
105
|
-
))
|
|
106
|
-
elif hasattr(value, "to_dict"):
|
|
107
|
-
result[attr] = value.to_dict()
|
|
108
|
-
elif isinstance(value, dict):
|
|
109
|
-
result[attr] = dict(map(
|
|
110
|
-
lambda item: (item[0], item[1].to_dict())
|
|
111
|
-
if hasattr(item[1], "to_dict") else item,
|
|
112
|
-
value.items()
|
|
113
|
-
))
|
|
114
|
-
else:
|
|
115
|
-
if attr in self.sensitive_list:
|
|
116
|
-
result[attr] = "****"
|
|
117
|
-
else:
|
|
118
|
-
result[attr] = value
|
|
119
|
-
|
|
120
|
-
return result
|
|
121
|
-
|
|
122
|
-
def to_str(self):
|
|
123
|
-
"""Returns the string representation of the model"""
|
|
124
|
-
import simplejson as json
|
|
125
|
-
if six.PY2:
|
|
126
|
-
import sys
|
|
127
|
-
reload(sys)
|
|
128
|
-
sys.setdefaultencoding("utf-8")
|
|
129
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
130
|
-
|
|
131
|
-
def __repr__(self):
|
|
132
|
-
"""For `print`"""
|
|
133
|
-
return self.to_str()
|
|
134
|
-
|
|
135
|
-
def __eq__(self, other):
|
|
136
|
-
"""Returns true if both objects are equal"""
|
|
137
|
-
if not isinstance(other, CbsFlowEntry):
|
|
138
|
-
return False
|
|
139
|
-
|
|
140
|
-
return self.__dict__ == other.__dict__
|
|
141
|
-
|
|
142
|
-
def __ne__(self, other):
|
|
143
|
-
"""Returns true if both objects are not equal"""
|
|
144
|
-
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 CreateAskQuestionRequest:
|
|
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': 'AskQuestionReq'
|
|
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"""CreateAskQuestionRequest
|
|
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 CreateAskQuestionRequest
|
|
45
|
-
:type body: :class:`huaweicloudsdkosm.v2.AskQuestionReq`
|
|
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 CreateAskQuestionRequest.
|
|
67
|
-
|
|
68
|
-
调用智能客服服务标志。
|
|
69
|
-
|
|
70
|
-
:return: The x_service_key of this CreateAskQuestionRequest.
|
|
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 CreateAskQuestionRequest.
|
|
78
|
-
|
|
79
|
-
调用智能客服服务标志。
|
|
80
|
-
|
|
81
|
-
:param x_service_key: The x_service_key of this CreateAskQuestionRequest.
|
|
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 CreateAskQuestionRequest.
|
|
89
|
-
|
|
90
|
-
站点标记,0-中国站 1-国际站
|
|
91
|
-
|
|
92
|
-
:return: The x_site of this CreateAskQuestionRequest.
|
|
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 CreateAskQuestionRequest.
|
|
100
|
-
|
|
101
|
-
站点标记,0-中国站 1-国际站
|
|
102
|
-
|
|
103
|
-
:param x_site: The x_site of this CreateAskQuestionRequest.
|
|
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 CreateAskQuestionRequest.
|
|
111
|
-
|
|
112
|
-
区域语言简写,en-us zh-cn
|
|
113
|
-
|
|
114
|
-
:return: The x_language of this CreateAskQuestionRequest.
|
|
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 CreateAskQuestionRequest.
|
|
122
|
-
|
|
123
|
-
区域语言简写,en-us zh-cn
|
|
124
|
-
|
|
125
|
-
:param x_language: The x_language of this CreateAskQuestionRequest.
|
|
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 CreateAskQuestionRequest.
|
|
133
|
-
|
|
134
|
-
:return: The body of this CreateAskQuestionRequest.
|
|
135
|
-
:rtype: :class:`huaweicloudsdkosm.v2.AskQuestionReq`
|
|
136
|
-
"""
|
|
137
|
-
return self._body
|
|
138
|
-
|
|
139
|
-
@body.setter
|
|
140
|
-
def body(self, body):
|
|
141
|
-
r"""Sets the body of this CreateAskQuestionRequest.
|
|
142
|
-
|
|
143
|
-
:param body: The body of this CreateAskQuestionRequest.
|
|
144
|
-
:type body: :class:`huaweicloudsdkosm.v2.AskQuestionReq`
|
|
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, CreateAskQuestionRequest):
|
|
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
|