huaweicloudsdkosm 3.1.163__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.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/METADATA +2 -2
- {huaweicloudsdkosm-3.1.163.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.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/LICENSE +0 -0
- {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/WHEEL +0 -0
- {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/top_level.txt +0 -0
|
@@ -1,172 +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 QueryAssociatedQuestionReq:
|
|
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
|
-
'top': 'int',
|
|
22
|
-
'domains': 'list[str]'
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
attribute_map = {
|
|
26
|
-
'question': 'question',
|
|
27
|
-
'top': 'top',
|
|
28
|
-
'domains': 'domains'
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
def __init__(self, question=None, top=None, domains=None):
|
|
32
|
-
r"""QueryAssociatedQuestionReq
|
|
33
|
-
|
|
34
|
-
The model defined in huaweicloud sdk
|
|
35
|
-
|
|
36
|
-
:param question: 用户输入问题
|
|
37
|
-
:type question: str
|
|
38
|
-
:param top: 返回匹配度最高的数据条数
|
|
39
|
-
:type top: int
|
|
40
|
-
:param domains: 问答领域
|
|
41
|
-
:type domains: list[str]
|
|
42
|
-
"""
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
self._question = None
|
|
47
|
-
self._top = None
|
|
48
|
-
self._domains = None
|
|
49
|
-
self.discriminator = None
|
|
50
|
-
|
|
51
|
-
self.question = question
|
|
52
|
-
if top is not None:
|
|
53
|
-
self.top = top
|
|
54
|
-
if domains is not None:
|
|
55
|
-
self.domains = domains
|
|
56
|
-
|
|
57
|
-
@property
|
|
58
|
-
def question(self):
|
|
59
|
-
r"""Gets the question of this QueryAssociatedQuestionReq.
|
|
60
|
-
|
|
61
|
-
用户输入问题
|
|
62
|
-
|
|
63
|
-
:return: The question of this QueryAssociatedQuestionReq.
|
|
64
|
-
:rtype: str
|
|
65
|
-
"""
|
|
66
|
-
return self._question
|
|
67
|
-
|
|
68
|
-
@question.setter
|
|
69
|
-
def question(self, question):
|
|
70
|
-
r"""Sets the question of this QueryAssociatedQuestionReq.
|
|
71
|
-
|
|
72
|
-
用户输入问题
|
|
73
|
-
|
|
74
|
-
:param question: The question of this QueryAssociatedQuestionReq.
|
|
75
|
-
:type question: str
|
|
76
|
-
"""
|
|
77
|
-
self._question = question
|
|
78
|
-
|
|
79
|
-
@property
|
|
80
|
-
def top(self):
|
|
81
|
-
r"""Gets the top of this QueryAssociatedQuestionReq.
|
|
82
|
-
|
|
83
|
-
返回匹配度最高的数据条数
|
|
84
|
-
|
|
85
|
-
:return: The top of this QueryAssociatedQuestionReq.
|
|
86
|
-
:rtype: int
|
|
87
|
-
"""
|
|
88
|
-
return self._top
|
|
89
|
-
|
|
90
|
-
@top.setter
|
|
91
|
-
def top(self, top):
|
|
92
|
-
r"""Sets the top of this QueryAssociatedQuestionReq.
|
|
93
|
-
|
|
94
|
-
返回匹配度最高的数据条数
|
|
95
|
-
|
|
96
|
-
:param top: The top of this QueryAssociatedQuestionReq.
|
|
97
|
-
:type top: int
|
|
98
|
-
"""
|
|
99
|
-
self._top = top
|
|
100
|
-
|
|
101
|
-
@property
|
|
102
|
-
def domains(self):
|
|
103
|
-
r"""Gets the domains of this QueryAssociatedQuestionReq.
|
|
104
|
-
|
|
105
|
-
问答领域
|
|
106
|
-
|
|
107
|
-
:return: The domains of this QueryAssociatedQuestionReq.
|
|
108
|
-
:rtype: list[str]
|
|
109
|
-
"""
|
|
110
|
-
return self._domains
|
|
111
|
-
|
|
112
|
-
@domains.setter
|
|
113
|
-
def domains(self, domains):
|
|
114
|
-
r"""Sets the domains of this QueryAssociatedQuestionReq.
|
|
115
|
-
|
|
116
|
-
问答领域
|
|
117
|
-
|
|
118
|
-
:param domains: The domains of this QueryAssociatedQuestionReq.
|
|
119
|
-
:type domains: list[str]
|
|
120
|
-
"""
|
|
121
|
-
self._domains = domains
|
|
122
|
-
|
|
123
|
-
def to_dict(self):
|
|
124
|
-
"""Returns the model properties as a dict"""
|
|
125
|
-
result = {}
|
|
126
|
-
|
|
127
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
128
|
-
value = getattr(self, attr)
|
|
129
|
-
if isinstance(value, list):
|
|
130
|
-
result[attr] = list(map(
|
|
131
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
132
|
-
value
|
|
133
|
-
))
|
|
134
|
-
elif hasattr(value, "to_dict"):
|
|
135
|
-
result[attr] = value.to_dict()
|
|
136
|
-
elif isinstance(value, dict):
|
|
137
|
-
result[attr] = dict(map(
|
|
138
|
-
lambda item: (item[0], item[1].to_dict())
|
|
139
|
-
if hasattr(item[1], "to_dict") else item,
|
|
140
|
-
value.items()
|
|
141
|
-
))
|
|
142
|
-
else:
|
|
143
|
-
if attr in self.sensitive_list:
|
|
144
|
-
result[attr] = "****"
|
|
145
|
-
else:
|
|
146
|
-
result[attr] = value
|
|
147
|
-
|
|
148
|
-
return result
|
|
149
|
-
|
|
150
|
-
def to_str(self):
|
|
151
|
-
"""Returns the string representation of the model"""
|
|
152
|
-
import simplejson as json
|
|
153
|
-
if six.PY2:
|
|
154
|
-
import sys
|
|
155
|
-
reload(sys)
|
|
156
|
-
sys.setdefaultencoding("utf-8")
|
|
157
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
158
|
-
|
|
159
|
-
def __repr__(self):
|
|
160
|
-
"""For `print`"""
|
|
161
|
-
return self.to_str()
|
|
162
|
-
|
|
163
|
-
def __eq__(self, other):
|
|
164
|
-
"""Returns true if both objects are equal"""
|
|
165
|
-
if not isinstance(other, QueryAssociatedQuestionReq):
|
|
166
|
-
return False
|
|
167
|
-
|
|
168
|
-
return self.__dict__ == other.__dict__
|
|
169
|
-
|
|
170
|
-
def __ne__(self, other):
|
|
171
|
-
"""Returns true if both objects are not equal"""
|
|
172
|
-
return not self == other
|
|
@@ -1,285 +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 RecommendWord:
|
|
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
|
-
'recommend_word_id': 'str',
|
|
21
|
-
'recommend_word_name': 'str',
|
|
22
|
-
'level_value': 'int',
|
|
23
|
-
'sort_value': 'int',
|
|
24
|
-
'theme_id': 'str',
|
|
25
|
-
'theme_name': 'str',
|
|
26
|
-
'answer_info': 'AnswerInfo'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
attribute_map = {
|
|
30
|
-
'recommend_word_id': 'recommend_word_id',
|
|
31
|
-
'recommend_word_name': 'recommend_word_name',
|
|
32
|
-
'level_value': 'level_value',
|
|
33
|
-
'sort_value': 'sort_value',
|
|
34
|
-
'theme_id': 'theme_id',
|
|
35
|
-
'theme_name': 'theme_name',
|
|
36
|
-
'answer_info': 'answer_info'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
def __init__(self, recommend_word_id=None, recommend_word_name=None, level_value=None, sort_value=None, theme_id=None, theme_name=None, answer_info=None):
|
|
40
|
-
r"""RecommendWord
|
|
41
|
-
|
|
42
|
-
The model defined in huaweicloud sdk
|
|
43
|
-
|
|
44
|
-
:param recommend_word_id: 推荐词Id
|
|
45
|
-
:type recommend_word_id: str
|
|
46
|
-
:param recommend_word_name: 推荐词
|
|
47
|
-
:type recommend_word_name: str
|
|
48
|
-
:param level_value: 推荐词层级
|
|
49
|
-
:type level_value: int
|
|
50
|
-
:param sort_value: 推荐词排序,序号越小越靠前
|
|
51
|
-
:type sort_value: int
|
|
52
|
-
:param theme_id: 主题Id
|
|
53
|
-
:type theme_id: str
|
|
54
|
-
:param theme_name: 主题名称
|
|
55
|
-
:type theme_name: str
|
|
56
|
-
:param answer_info:
|
|
57
|
-
:type answer_info: :class:`huaweicloudsdkosm.v2.AnswerInfo`
|
|
58
|
-
"""
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
self._recommend_word_id = None
|
|
63
|
-
self._recommend_word_name = None
|
|
64
|
-
self._level_value = None
|
|
65
|
-
self._sort_value = None
|
|
66
|
-
self._theme_id = None
|
|
67
|
-
self._theme_name = None
|
|
68
|
-
self._answer_info = None
|
|
69
|
-
self.discriminator = None
|
|
70
|
-
|
|
71
|
-
if recommend_word_id is not None:
|
|
72
|
-
self.recommend_word_id = recommend_word_id
|
|
73
|
-
if recommend_word_name is not None:
|
|
74
|
-
self.recommend_word_name = recommend_word_name
|
|
75
|
-
if level_value is not None:
|
|
76
|
-
self.level_value = level_value
|
|
77
|
-
if sort_value is not None:
|
|
78
|
-
self.sort_value = sort_value
|
|
79
|
-
if theme_id is not None:
|
|
80
|
-
self.theme_id = theme_id
|
|
81
|
-
if theme_name is not None:
|
|
82
|
-
self.theme_name = theme_name
|
|
83
|
-
if answer_info is not None:
|
|
84
|
-
self.answer_info = answer_info
|
|
85
|
-
|
|
86
|
-
@property
|
|
87
|
-
def recommend_word_id(self):
|
|
88
|
-
r"""Gets the recommend_word_id of this RecommendWord.
|
|
89
|
-
|
|
90
|
-
推荐词Id
|
|
91
|
-
|
|
92
|
-
:return: The recommend_word_id of this RecommendWord.
|
|
93
|
-
:rtype: str
|
|
94
|
-
"""
|
|
95
|
-
return self._recommend_word_id
|
|
96
|
-
|
|
97
|
-
@recommend_word_id.setter
|
|
98
|
-
def recommend_word_id(self, recommend_word_id):
|
|
99
|
-
r"""Sets the recommend_word_id of this RecommendWord.
|
|
100
|
-
|
|
101
|
-
推荐词Id
|
|
102
|
-
|
|
103
|
-
:param recommend_word_id: The recommend_word_id of this RecommendWord.
|
|
104
|
-
:type recommend_word_id: str
|
|
105
|
-
"""
|
|
106
|
-
self._recommend_word_id = recommend_word_id
|
|
107
|
-
|
|
108
|
-
@property
|
|
109
|
-
def recommend_word_name(self):
|
|
110
|
-
r"""Gets the recommend_word_name of this RecommendWord.
|
|
111
|
-
|
|
112
|
-
推荐词
|
|
113
|
-
|
|
114
|
-
:return: The recommend_word_name of this RecommendWord.
|
|
115
|
-
:rtype: str
|
|
116
|
-
"""
|
|
117
|
-
return self._recommend_word_name
|
|
118
|
-
|
|
119
|
-
@recommend_word_name.setter
|
|
120
|
-
def recommend_word_name(self, recommend_word_name):
|
|
121
|
-
r"""Sets the recommend_word_name of this RecommendWord.
|
|
122
|
-
|
|
123
|
-
推荐词
|
|
124
|
-
|
|
125
|
-
:param recommend_word_name: The recommend_word_name of this RecommendWord.
|
|
126
|
-
:type recommend_word_name: str
|
|
127
|
-
"""
|
|
128
|
-
self._recommend_word_name = recommend_word_name
|
|
129
|
-
|
|
130
|
-
@property
|
|
131
|
-
def level_value(self):
|
|
132
|
-
r"""Gets the level_value of this RecommendWord.
|
|
133
|
-
|
|
134
|
-
推荐词层级
|
|
135
|
-
|
|
136
|
-
:return: The level_value of this RecommendWord.
|
|
137
|
-
:rtype: int
|
|
138
|
-
"""
|
|
139
|
-
return self._level_value
|
|
140
|
-
|
|
141
|
-
@level_value.setter
|
|
142
|
-
def level_value(self, level_value):
|
|
143
|
-
r"""Sets the level_value of this RecommendWord.
|
|
144
|
-
|
|
145
|
-
推荐词层级
|
|
146
|
-
|
|
147
|
-
:param level_value: The level_value of this RecommendWord.
|
|
148
|
-
:type level_value: int
|
|
149
|
-
"""
|
|
150
|
-
self._level_value = level_value
|
|
151
|
-
|
|
152
|
-
@property
|
|
153
|
-
def sort_value(self):
|
|
154
|
-
r"""Gets the sort_value of this RecommendWord.
|
|
155
|
-
|
|
156
|
-
推荐词排序,序号越小越靠前
|
|
157
|
-
|
|
158
|
-
:return: The sort_value of this RecommendWord.
|
|
159
|
-
:rtype: int
|
|
160
|
-
"""
|
|
161
|
-
return self._sort_value
|
|
162
|
-
|
|
163
|
-
@sort_value.setter
|
|
164
|
-
def sort_value(self, sort_value):
|
|
165
|
-
r"""Sets the sort_value of this RecommendWord.
|
|
166
|
-
|
|
167
|
-
推荐词排序,序号越小越靠前
|
|
168
|
-
|
|
169
|
-
:param sort_value: The sort_value of this RecommendWord.
|
|
170
|
-
:type sort_value: int
|
|
171
|
-
"""
|
|
172
|
-
self._sort_value = sort_value
|
|
173
|
-
|
|
174
|
-
@property
|
|
175
|
-
def theme_id(self):
|
|
176
|
-
r"""Gets the theme_id of this RecommendWord.
|
|
177
|
-
|
|
178
|
-
主题Id
|
|
179
|
-
|
|
180
|
-
:return: The theme_id of this RecommendWord.
|
|
181
|
-
:rtype: str
|
|
182
|
-
"""
|
|
183
|
-
return self._theme_id
|
|
184
|
-
|
|
185
|
-
@theme_id.setter
|
|
186
|
-
def theme_id(self, theme_id):
|
|
187
|
-
r"""Sets the theme_id of this RecommendWord.
|
|
188
|
-
|
|
189
|
-
主题Id
|
|
190
|
-
|
|
191
|
-
:param theme_id: The theme_id of this RecommendWord.
|
|
192
|
-
:type theme_id: str
|
|
193
|
-
"""
|
|
194
|
-
self._theme_id = theme_id
|
|
195
|
-
|
|
196
|
-
@property
|
|
197
|
-
def theme_name(self):
|
|
198
|
-
r"""Gets the theme_name of this RecommendWord.
|
|
199
|
-
|
|
200
|
-
主题名称
|
|
201
|
-
|
|
202
|
-
:return: The theme_name of this RecommendWord.
|
|
203
|
-
:rtype: str
|
|
204
|
-
"""
|
|
205
|
-
return self._theme_name
|
|
206
|
-
|
|
207
|
-
@theme_name.setter
|
|
208
|
-
def theme_name(self, theme_name):
|
|
209
|
-
r"""Sets the theme_name of this RecommendWord.
|
|
210
|
-
|
|
211
|
-
主题名称
|
|
212
|
-
|
|
213
|
-
:param theme_name: The theme_name of this RecommendWord.
|
|
214
|
-
:type theme_name: str
|
|
215
|
-
"""
|
|
216
|
-
self._theme_name = theme_name
|
|
217
|
-
|
|
218
|
-
@property
|
|
219
|
-
def answer_info(self):
|
|
220
|
-
r"""Gets the answer_info of this RecommendWord.
|
|
221
|
-
|
|
222
|
-
:return: The answer_info of this RecommendWord.
|
|
223
|
-
:rtype: :class:`huaweicloudsdkosm.v2.AnswerInfo`
|
|
224
|
-
"""
|
|
225
|
-
return self._answer_info
|
|
226
|
-
|
|
227
|
-
@answer_info.setter
|
|
228
|
-
def answer_info(self, answer_info):
|
|
229
|
-
r"""Sets the answer_info of this RecommendWord.
|
|
230
|
-
|
|
231
|
-
:param answer_info: The answer_info of this RecommendWord.
|
|
232
|
-
:type answer_info: :class:`huaweicloudsdkosm.v2.AnswerInfo`
|
|
233
|
-
"""
|
|
234
|
-
self._answer_info = answer_info
|
|
235
|
-
|
|
236
|
-
def to_dict(self):
|
|
237
|
-
"""Returns the model properties as a dict"""
|
|
238
|
-
result = {}
|
|
239
|
-
|
|
240
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
241
|
-
value = getattr(self, attr)
|
|
242
|
-
if isinstance(value, list):
|
|
243
|
-
result[attr] = list(map(
|
|
244
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
245
|
-
value
|
|
246
|
-
))
|
|
247
|
-
elif hasattr(value, "to_dict"):
|
|
248
|
-
result[attr] = value.to_dict()
|
|
249
|
-
elif isinstance(value, dict):
|
|
250
|
-
result[attr] = dict(map(
|
|
251
|
-
lambda item: (item[0], item[1].to_dict())
|
|
252
|
-
if hasattr(item[1], "to_dict") else item,
|
|
253
|
-
value.items()
|
|
254
|
-
))
|
|
255
|
-
else:
|
|
256
|
-
if attr in self.sensitive_list:
|
|
257
|
-
result[attr] = "****"
|
|
258
|
-
else:
|
|
259
|
-
result[attr] = value
|
|
260
|
-
|
|
261
|
-
return result
|
|
262
|
-
|
|
263
|
-
def to_str(self):
|
|
264
|
-
"""Returns the string representation of the model"""
|
|
265
|
-
import simplejson as json
|
|
266
|
-
if six.PY2:
|
|
267
|
-
import sys
|
|
268
|
-
reload(sys)
|
|
269
|
-
sys.setdefaultencoding("utf-8")
|
|
270
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
271
|
-
|
|
272
|
-
def __repr__(self):
|
|
273
|
-
"""For `print`"""
|
|
274
|
-
return self.to_str()
|
|
275
|
-
|
|
276
|
-
def __eq__(self, other):
|
|
277
|
-
"""Returns true if both objects are equal"""
|
|
278
|
-
if not isinstance(other, RecommendWord):
|
|
279
|
-
return False
|
|
280
|
-
|
|
281
|
-
return self.__dict__ == other.__dict__
|
|
282
|
-
|
|
283
|
-
def __ne__(self, other):
|
|
284
|
-
"""Returns true if both objects are not equal"""
|
|
285
|
-
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 RelationTheme:
|
|
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
|
-
'theme_name': 'str',
|
|
21
|
-
'relation_type': 'str'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
attribute_map = {
|
|
25
|
-
'theme_name': 'theme_name',
|
|
26
|
-
'relation_type': 'relation_type'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
def __init__(self, theme_name=None, relation_type=None):
|
|
30
|
-
r"""RelationTheme
|
|
31
|
-
|
|
32
|
-
The model defined in huaweicloud sdk
|
|
33
|
-
|
|
34
|
-
:param theme_name: 主题
|
|
35
|
-
:type theme_name: str
|
|
36
|
-
:param relation_type: - NON_PRIMARY: 主主题 - PRIMARY:
|
|
37
|
-
:type relation_type: str
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
self._theme_name = None
|
|
43
|
-
self._relation_type = None
|
|
44
|
-
self.discriminator = None
|
|
45
|
-
|
|
46
|
-
if theme_name is not None:
|
|
47
|
-
self.theme_name = theme_name
|
|
48
|
-
if relation_type is not None:
|
|
49
|
-
self.relation_type = relation_type
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def theme_name(self):
|
|
53
|
-
r"""Gets the theme_name of this RelationTheme.
|
|
54
|
-
|
|
55
|
-
主题
|
|
56
|
-
|
|
57
|
-
:return: The theme_name of this RelationTheme.
|
|
58
|
-
:rtype: str
|
|
59
|
-
"""
|
|
60
|
-
return self._theme_name
|
|
61
|
-
|
|
62
|
-
@theme_name.setter
|
|
63
|
-
def theme_name(self, theme_name):
|
|
64
|
-
r"""Sets the theme_name of this RelationTheme.
|
|
65
|
-
|
|
66
|
-
主题
|
|
67
|
-
|
|
68
|
-
:param theme_name: The theme_name of this RelationTheme.
|
|
69
|
-
:type theme_name: str
|
|
70
|
-
"""
|
|
71
|
-
self._theme_name = theme_name
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def relation_type(self):
|
|
75
|
-
r"""Gets the relation_type of this RelationTheme.
|
|
76
|
-
|
|
77
|
-
- NON_PRIMARY: 主主题 - PRIMARY:
|
|
78
|
-
|
|
79
|
-
:return: The relation_type of this RelationTheme.
|
|
80
|
-
:rtype: str
|
|
81
|
-
"""
|
|
82
|
-
return self._relation_type
|
|
83
|
-
|
|
84
|
-
@relation_type.setter
|
|
85
|
-
def relation_type(self, relation_type):
|
|
86
|
-
r"""Sets the relation_type of this RelationTheme.
|
|
87
|
-
|
|
88
|
-
- NON_PRIMARY: 主主题 - PRIMARY:
|
|
89
|
-
|
|
90
|
-
:param relation_type: The relation_type of this RelationTheme.
|
|
91
|
-
:type relation_type: str
|
|
92
|
-
"""
|
|
93
|
-
self._relation_type = relation_type
|
|
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, RelationTheme):
|
|
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
|