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,201 +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 SearchToolsReq:
|
|
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
|
-
'top': 'int',
|
|
21
|
-
'product_type_id': 'str',
|
|
22
|
-
'business_type_id': 'str',
|
|
23
|
-
'problem_type_id': 'str'
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
attribute_map = {
|
|
27
|
-
'top': 'top',
|
|
28
|
-
'product_type_id': 'product_type_id',
|
|
29
|
-
'business_type_id': 'business_type_id',
|
|
30
|
-
'problem_type_id': 'problem_type_id'
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
def __init__(self, top=None, product_type_id=None, business_type_id=None, problem_type_id=None):
|
|
34
|
-
r"""SearchToolsReq
|
|
35
|
-
|
|
36
|
-
The model defined in huaweicloud sdk
|
|
37
|
-
|
|
38
|
-
:param top: 返回匹配度最高的数据条数
|
|
39
|
-
:type top: int
|
|
40
|
-
:param product_type_id: 产品类型Id
|
|
41
|
-
:type product_type_id: str
|
|
42
|
-
:param business_type_id: 业务类型Id
|
|
43
|
-
:type business_type_id: str
|
|
44
|
-
:param problem_type_id: 问题类型Id
|
|
45
|
-
:type problem_type_id: str
|
|
46
|
-
"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
self._top = None
|
|
51
|
-
self._product_type_id = None
|
|
52
|
-
self._business_type_id = None
|
|
53
|
-
self._problem_type_id = None
|
|
54
|
-
self.discriminator = None
|
|
55
|
-
|
|
56
|
-
if top is not None:
|
|
57
|
-
self.top = top
|
|
58
|
-
self.product_type_id = product_type_id
|
|
59
|
-
if business_type_id is not None:
|
|
60
|
-
self.business_type_id = business_type_id
|
|
61
|
-
if problem_type_id is not None:
|
|
62
|
-
self.problem_type_id = problem_type_id
|
|
63
|
-
|
|
64
|
-
@property
|
|
65
|
-
def top(self):
|
|
66
|
-
r"""Gets the top of this SearchToolsReq.
|
|
67
|
-
|
|
68
|
-
返回匹配度最高的数据条数
|
|
69
|
-
|
|
70
|
-
:return: The top of this SearchToolsReq.
|
|
71
|
-
:rtype: int
|
|
72
|
-
"""
|
|
73
|
-
return self._top
|
|
74
|
-
|
|
75
|
-
@top.setter
|
|
76
|
-
def top(self, top):
|
|
77
|
-
r"""Sets the top of this SearchToolsReq.
|
|
78
|
-
|
|
79
|
-
返回匹配度最高的数据条数
|
|
80
|
-
|
|
81
|
-
:param top: The top of this SearchToolsReq.
|
|
82
|
-
:type top: int
|
|
83
|
-
"""
|
|
84
|
-
self._top = top
|
|
85
|
-
|
|
86
|
-
@property
|
|
87
|
-
def product_type_id(self):
|
|
88
|
-
r"""Gets the product_type_id of this SearchToolsReq.
|
|
89
|
-
|
|
90
|
-
产品类型Id
|
|
91
|
-
|
|
92
|
-
:return: The product_type_id of this SearchToolsReq.
|
|
93
|
-
:rtype: str
|
|
94
|
-
"""
|
|
95
|
-
return self._product_type_id
|
|
96
|
-
|
|
97
|
-
@product_type_id.setter
|
|
98
|
-
def product_type_id(self, product_type_id):
|
|
99
|
-
r"""Sets the product_type_id of this SearchToolsReq.
|
|
100
|
-
|
|
101
|
-
产品类型Id
|
|
102
|
-
|
|
103
|
-
:param product_type_id: The product_type_id of this SearchToolsReq.
|
|
104
|
-
:type product_type_id: str
|
|
105
|
-
"""
|
|
106
|
-
self._product_type_id = product_type_id
|
|
107
|
-
|
|
108
|
-
@property
|
|
109
|
-
def business_type_id(self):
|
|
110
|
-
r"""Gets the business_type_id of this SearchToolsReq.
|
|
111
|
-
|
|
112
|
-
业务类型Id
|
|
113
|
-
|
|
114
|
-
:return: The business_type_id of this SearchToolsReq.
|
|
115
|
-
:rtype: str
|
|
116
|
-
"""
|
|
117
|
-
return self._business_type_id
|
|
118
|
-
|
|
119
|
-
@business_type_id.setter
|
|
120
|
-
def business_type_id(self, business_type_id):
|
|
121
|
-
r"""Sets the business_type_id of this SearchToolsReq.
|
|
122
|
-
|
|
123
|
-
业务类型Id
|
|
124
|
-
|
|
125
|
-
:param business_type_id: The business_type_id of this SearchToolsReq.
|
|
126
|
-
:type business_type_id: str
|
|
127
|
-
"""
|
|
128
|
-
self._business_type_id = business_type_id
|
|
129
|
-
|
|
130
|
-
@property
|
|
131
|
-
def problem_type_id(self):
|
|
132
|
-
r"""Gets the problem_type_id of this SearchToolsReq.
|
|
133
|
-
|
|
134
|
-
问题类型Id
|
|
135
|
-
|
|
136
|
-
:return: The problem_type_id of this SearchToolsReq.
|
|
137
|
-
:rtype: str
|
|
138
|
-
"""
|
|
139
|
-
return self._problem_type_id
|
|
140
|
-
|
|
141
|
-
@problem_type_id.setter
|
|
142
|
-
def problem_type_id(self, problem_type_id):
|
|
143
|
-
r"""Sets the problem_type_id of this SearchToolsReq.
|
|
144
|
-
|
|
145
|
-
问题类型Id
|
|
146
|
-
|
|
147
|
-
:param problem_type_id: The problem_type_id of this SearchToolsReq.
|
|
148
|
-
:type problem_type_id: str
|
|
149
|
-
"""
|
|
150
|
-
self._problem_type_id = problem_type_id
|
|
151
|
-
|
|
152
|
-
def to_dict(self):
|
|
153
|
-
"""Returns the model properties as a dict"""
|
|
154
|
-
result = {}
|
|
155
|
-
|
|
156
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
157
|
-
value = getattr(self, attr)
|
|
158
|
-
if isinstance(value, list):
|
|
159
|
-
result[attr] = list(map(
|
|
160
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
161
|
-
value
|
|
162
|
-
))
|
|
163
|
-
elif hasattr(value, "to_dict"):
|
|
164
|
-
result[attr] = value.to_dict()
|
|
165
|
-
elif isinstance(value, dict):
|
|
166
|
-
result[attr] = dict(map(
|
|
167
|
-
lambda item: (item[0], item[1].to_dict())
|
|
168
|
-
if hasattr(item[1], "to_dict") else item,
|
|
169
|
-
value.items()
|
|
170
|
-
))
|
|
171
|
-
else:
|
|
172
|
-
if attr in self.sensitive_list:
|
|
173
|
-
result[attr] = "****"
|
|
174
|
-
else:
|
|
175
|
-
result[attr] = value
|
|
176
|
-
|
|
177
|
-
return result
|
|
178
|
-
|
|
179
|
-
def to_str(self):
|
|
180
|
-
"""Returns the string representation of the model"""
|
|
181
|
-
import simplejson as json
|
|
182
|
-
if six.PY2:
|
|
183
|
-
import sys
|
|
184
|
-
reload(sys)
|
|
185
|
-
sys.setdefaultencoding("utf-8")
|
|
186
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
187
|
-
|
|
188
|
-
def __repr__(self):
|
|
189
|
-
"""For `print`"""
|
|
190
|
-
return self.to_str()
|
|
191
|
-
|
|
192
|
-
def __eq__(self, other):
|
|
193
|
-
"""Returns true if both objects are equal"""
|
|
194
|
-
if not isinstance(other, SearchToolsReq):
|
|
195
|
-
return False
|
|
196
|
-
|
|
197
|
-
return self.__dict__ == other.__dict__
|
|
198
|
-
|
|
199
|
-
def __ne__(self, other):
|
|
200
|
-
"""Returns true if both objects are not equal"""
|
|
201
|
-
return not self == other
|
|
@@ -1,288 +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 SessionAskQuestionReq:
|
|
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
|
-
'domain': 'str',
|
|
22
|
-
'top': 'int',
|
|
23
|
-
'themes': 'list[RelationTheme]',
|
|
24
|
-
'source_qa_pair_id': 'str',
|
|
25
|
-
'chat_enable': 'bool',
|
|
26
|
-
'product_type_id': 'str'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
attribute_map = {
|
|
30
|
-
'question': 'question',
|
|
31
|
-
'domain': 'domain',
|
|
32
|
-
'top': 'top',
|
|
33
|
-
'themes': 'themes',
|
|
34
|
-
'source_qa_pair_id': 'source_qa_pair_id',
|
|
35
|
-
'chat_enable': 'chat_enable',
|
|
36
|
-
'product_type_id': 'product_type_id'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
def __init__(self, question=None, domain=None, top=None, themes=None, source_qa_pair_id=None, chat_enable=None, product_type_id=None):
|
|
40
|
-
r"""SessionAskQuestionReq
|
|
41
|
-
|
|
42
|
-
The model defined in huaweicloud sdk
|
|
43
|
-
|
|
44
|
-
:param question: 用户输入问题
|
|
45
|
-
:type question: str
|
|
46
|
-
:param domain: 问答领域
|
|
47
|
-
:type domain: str
|
|
48
|
-
:param top: 最大返回数据条数
|
|
49
|
-
:type top: int
|
|
50
|
-
:param themes: 主题列表
|
|
51
|
-
:type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`]
|
|
52
|
-
:param source_qa_pair_id: 语料ID
|
|
53
|
-
:type source_qa_pair_id: str
|
|
54
|
-
:param chat_enable: 是否需要兜底
|
|
55
|
-
:type chat_enable: bool
|
|
56
|
-
:param product_type_id: 产品类型Id
|
|
57
|
-
:type product_type_id: str
|
|
58
|
-
"""
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
self._question = None
|
|
63
|
-
self._domain = None
|
|
64
|
-
self._top = None
|
|
65
|
-
self._themes = None
|
|
66
|
-
self._source_qa_pair_id = None
|
|
67
|
-
self._chat_enable = None
|
|
68
|
-
self._product_type_id = None
|
|
69
|
-
self.discriminator = None
|
|
70
|
-
|
|
71
|
-
self.question = question
|
|
72
|
-
if domain is not None:
|
|
73
|
-
self.domain = domain
|
|
74
|
-
if top is not None:
|
|
75
|
-
self.top = top
|
|
76
|
-
if themes is not None:
|
|
77
|
-
self.themes = themes
|
|
78
|
-
if source_qa_pair_id is not None:
|
|
79
|
-
self.source_qa_pair_id = source_qa_pair_id
|
|
80
|
-
if chat_enable is not None:
|
|
81
|
-
self.chat_enable = chat_enable
|
|
82
|
-
if product_type_id is not None:
|
|
83
|
-
self.product_type_id = product_type_id
|
|
84
|
-
|
|
85
|
-
@property
|
|
86
|
-
def question(self):
|
|
87
|
-
r"""Gets the question of this SessionAskQuestionReq.
|
|
88
|
-
|
|
89
|
-
用户输入问题
|
|
90
|
-
|
|
91
|
-
:return: The question of this SessionAskQuestionReq.
|
|
92
|
-
:rtype: str
|
|
93
|
-
"""
|
|
94
|
-
return self._question
|
|
95
|
-
|
|
96
|
-
@question.setter
|
|
97
|
-
def question(self, question):
|
|
98
|
-
r"""Sets the question of this SessionAskQuestionReq.
|
|
99
|
-
|
|
100
|
-
用户输入问题
|
|
101
|
-
|
|
102
|
-
:param question: The question of this SessionAskQuestionReq.
|
|
103
|
-
:type question: str
|
|
104
|
-
"""
|
|
105
|
-
self._question = question
|
|
106
|
-
|
|
107
|
-
@property
|
|
108
|
-
def domain(self):
|
|
109
|
-
r"""Gets the domain of this SessionAskQuestionReq.
|
|
110
|
-
|
|
111
|
-
问答领域
|
|
112
|
-
|
|
113
|
-
:return: The domain of this SessionAskQuestionReq.
|
|
114
|
-
:rtype: str
|
|
115
|
-
"""
|
|
116
|
-
return self._domain
|
|
117
|
-
|
|
118
|
-
@domain.setter
|
|
119
|
-
def domain(self, domain):
|
|
120
|
-
r"""Sets the domain of this SessionAskQuestionReq.
|
|
121
|
-
|
|
122
|
-
问答领域
|
|
123
|
-
|
|
124
|
-
:param domain: The domain of this SessionAskQuestionReq.
|
|
125
|
-
:type domain: str
|
|
126
|
-
"""
|
|
127
|
-
self._domain = domain
|
|
128
|
-
|
|
129
|
-
@property
|
|
130
|
-
def top(self):
|
|
131
|
-
r"""Gets the top of this SessionAskQuestionReq.
|
|
132
|
-
|
|
133
|
-
最大返回数据条数
|
|
134
|
-
|
|
135
|
-
:return: The top of this SessionAskQuestionReq.
|
|
136
|
-
:rtype: int
|
|
137
|
-
"""
|
|
138
|
-
return self._top
|
|
139
|
-
|
|
140
|
-
@top.setter
|
|
141
|
-
def top(self, top):
|
|
142
|
-
r"""Sets the top of this SessionAskQuestionReq.
|
|
143
|
-
|
|
144
|
-
最大返回数据条数
|
|
145
|
-
|
|
146
|
-
:param top: The top of this SessionAskQuestionReq.
|
|
147
|
-
:type top: int
|
|
148
|
-
"""
|
|
149
|
-
self._top = top
|
|
150
|
-
|
|
151
|
-
@property
|
|
152
|
-
def themes(self):
|
|
153
|
-
r"""Gets the themes of this SessionAskQuestionReq.
|
|
154
|
-
|
|
155
|
-
主题列表
|
|
156
|
-
|
|
157
|
-
:return: The themes of this SessionAskQuestionReq.
|
|
158
|
-
:rtype: list[:class:`huaweicloudsdkosm.v2.RelationTheme`]
|
|
159
|
-
"""
|
|
160
|
-
return self._themes
|
|
161
|
-
|
|
162
|
-
@themes.setter
|
|
163
|
-
def themes(self, themes):
|
|
164
|
-
r"""Sets the themes of this SessionAskQuestionReq.
|
|
165
|
-
|
|
166
|
-
主题列表
|
|
167
|
-
|
|
168
|
-
:param themes: The themes of this SessionAskQuestionReq.
|
|
169
|
-
:type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`]
|
|
170
|
-
"""
|
|
171
|
-
self._themes = themes
|
|
172
|
-
|
|
173
|
-
@property
|
|
174
|
-
def source_qa_pair_id(self):
|
|
175
|
-
r"""Gets the source_qa_pair_id of this SessionAskQuestionReq.
|
|
176
|
-
|
|
177
|
-
语料ID
|
|
178
|
-
|
|
179
|
-
:return: The source_qa_pair_id of this SessionAskQuestionReq.
|
|
180
|
-
:rtype: str
|
|
181
|
-
"""
|
|
182
|
-
return self._source_qa_pair_id
|
|
183
|
-
|
|
184
|
-
@source_qa_pair_id.setter
|
|
185
|
-
def source_qa_pair_id(self, source_qa_pair_id):
|
|
186
|
-
r"""Sets the source_qa_pair_id of this SessionAskQuestionReq.
|
|
187
|
-
|
|
188
|
-
语料ID
|
|
189
|
-
|
|
190
|
-
:param source_qa_pair_id: The source_qa_pair_id of this SessionAskQuestionReq.
|
|
191
|
-
:type source_qa_pair_id: str
|
|
192
|
-
"""
|
|
193
|
-
self._source_qa_pair_id = source_qa_pair_id
|
|
194
|
-
|
|
195
|
-
@property
|
|
196
|
-
def chat_enable(self):
|
|
197
|
-
r"""Gets the chat_enable of this SessionAskQuestionReq.
|
|
198
|
-
|
|
199
|
-
是否需要兜底
|
|
200
|
-
|
|
201
|
-
:return: The chat_enable of this SessionAskQuestionReq.
|
|
202
|
-
:rtype: bool
|
|
203
|
-
"""
|
|
204
|
-
return self._chat_enable
|
|
205
|
-
|
|
206
|
-
@chat_enable.setter
|
|
207
|
-
def chat_enable(self, chat_enable):
|
|
208
|
-
r"""Sets the chat_enable of this SessionAskQuestionReq.
|
|
209
|
-
|
|
210
|
-
是否需要兜底
|
|
211
|
-
|
|
212
|
-
:param chat_enable: The chat_enable of this SessionAskQuestionReq.
|
|
213
|
-
:type chat_enable: bool
|
|
214
|
-
"""
|
|
215
|
-
self._chat_enable = chat_enable
|
|
216
|
-
|
|
217
|
-
@property
|
|
218
|
-
def product_type_id(self):
|
|
219
|
-
r"""Gets the product_type_id of this SessionAskQuestionReq.
|
|
220
|
-
|
|
221
|
-
产品类型Id
|
|
222
|
-
|
|
223
|
-
:return: The product_type_id of this SessionAskQuestionReq.
|
|
224
|
-
:rtype: str
|
|
225
|
-
"""
|
|
226
|
-
return self._product_type_id
|
|
227
|
-
|
|
228
|
-
@product_type_id.setter
|
|
229
|
-
def product_type_id(self, product_type_id):
|
|
230
|
-
r"""Sets the product_type_id of this SessionAskQuestionReq.
|
|
231
|
-
|
|
232
|
-
产品类型Id
|
|
233
|
-
|
|
234
|
-
:param product_type_id: The product_type_id of this SessionAskQuestionReq.
|
|
235
|
-
:type product_type_id: str
|
|
236
|
-
"""
|
|
237
|
-
self._product_type_id = product_type_id
|
|
238
|
-
|
|
239
|
-
def to_dict(self):
|
|
240
|
-
"""Returns the model properties as a dict"""
|
|
241
|
-
result = {}
|
|
242
|
-
|
|
243
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
244
|
-
value = getattr(self, attr)
|
|
245
|
-
if isinstance(value, list):
|
|
246
|
-
result[attr] = list(map(
|
|
247
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
248
|
-
value
|
|
249
|
-
))
|
|
250
|
-
elif hasattr(value, "to_dict"):
|
|
251
|
-
result[attr] = value.to_dict()
|
|
252
|
-
elif isinstance(value, dict):
|
|
253
|
-
result[attr] = dict(map(
|
|
254
|
-
lambda item: (item[0], item[1].to_dict())
|
|
255
|
-
if hasattr(item[1], "to_dict") else item,
|
|
256
|
-
value.items()
|
|
257
|
-
))
|
|
258
|
-
else:
|
|
259
|
-
if attr in self.sensitive_list:
|
|
260
|
-
result[attr] = "****"
|
|
261
|
-
else:
|
|
262
|
-
result[attr] = value
|
|
263
|
-
|
|
264
|
-
return result
|
|
265
|
-
|
|
266
|
-
def to_str(self):
|
|
267
|
-
"""Returns the string representation of the model"""
|
|
268
|
-
import simplejson as json
|
|
269
|
-
if six.PY2:
|
|
270
|
-
import sys
|
|
271
|
-
reload(sys)
|
|
272
|
-
sys.setdefaultencoding("utf-8")
|
|
273
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
274
|
-
|
|
275
|
-
def __repr__(self):
|
|
276
|
-
"""For `print`"""
|
|
277
|
-
return self.to_str()
|
|
278
|
-
|
|
279
|
-
def __eq__(self, other):
|
|
280
|
-
"""Returns true if both objects are equal"""
|
|
281
|
-
if not isinstance(other, SessionAskQuestionReq):
|
|
282
|
-
return False
|
|
283
|
-
|
|
284
|
-
return self.__dict__ == other.__dict__
|
|
285
|
-
|
|
286
|
-
def __ne__(self, other):
|
|
287
|
-
"""Returns true if both objects are not equal"""
|
|
288
|
-
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 ShowAssociatedQuestionsRequest:
|
|
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': 'QueryAssociatedQuestionReq'
|
|
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"""ShowAssociatedQuestionsRequest
|
|
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 ShowAssociatedQuestionsRequest
|
|
45
|
-
:type body: :class:`huaweicloudsdkosm.v2.QueryAssociatedQuestionReq`
|
|
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 ShowAssociatedQuestionsRequest.
|
|
67
|
-
|
|
68
|
-
调用智能客服服务标志。
|
|
69
|
-
|
|
70
|
-
:return: The x_service_key of this ShowAssociatedQuestionsRequest.
|
|
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 ShowAssociatedQuestionsRequest.
|
|
78
|
-
|
|
79
|
-
调用智能客服服务标志。
|
|
80
|
-
|
|
81
|
-
:param x_service_key: The x_service_key of this ShowAssociatedQuestionsRequest.
|
|
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 ShowAssociatedQuestionsRequest.
|
|
89
|
-
|
|
90
|
-
站点标记,0-中国站 1-国际站
|
|
91
|
-
|
|
92
|
-
:return: The x_site of this ShowAssociatedQuestionsRequest.
|
|
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 ShowAssociatedQuestionsRequest.
|
|
100
|
-
|
|
101
|
-
站点标记,0-中国站 1-国际站
|
|
102
|
-
|
|
103
|
-
:param x_site: The x_site of this ShowAssociatedQuestionsRequest.
|
|
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 ShowAssociatedQuestionsRequest.
|
|
111
|
-
|
|
112
|
-
区域语言简写,en-us zh-cn
|
|
113
|
-
|
|
114
|
-
:return: The x_language of this ShowAssociatedQuestionsRequest.
|
|
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 ShowAssociatedQuestionsRequest.
|
|
122
|
-
|
|
123
|
-
区域语言简写,en-us zh-cn
|
|
124
|
-
|
|
125
|
-
:param x_language: The x_language of this ShowAssociatedQuestionsRequest.
|
|
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 ShowAssociatedQuestionsRequest.
|
|
133
|
-
|
|
134
|
-
:return: The body of this ShowAssociatedQuestionsRequest.
|
|
135
|
-
:rtype: :class:`huaweicloudsdkosm.v2.QueryAssociatedQuestionReq`
|
|
136
|
-
"""
|
|
137
|
-
return self._body
|
|
138
|
-
|
|
139
|
-
@body.setter
|
|
140
|
-
def body(self, body):
|
|
141
|
-
r"""Sets the body of this ShowAssociatedQuestionsRequest.
|
|
142
|
-
|
|
143
|
-
:param body: The body of this ShowAssociatedQuestionsRequest.
|
|
144
|
-
:type body: :class:`huaweicloudsdkosm.v2.QueryAssociatedQuestionReq`
|
|
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, ShowAssociatedQuestionsRequest):
|
|
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
|