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,173 +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 RelevanceQapair:
|
|
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
|
-
'link': 'str',
|
|
21
|
-
'question': 'str',
|
|
22
|
-
'qa_pair_id': 'str'
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
attribute_map = {
|
|
26
|
-
'link': 'link',
|
|
27
|
-
'question': 'question',
|
|
28
|
-
'qa_pair_id': 'qa_pair_id'
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
def __init__(self, link=None, question=None, qa_pair_id=None):
|
|
32
|
-
r"""RelevanceQapair
|
|
33
|
-
|
|
34
|
-
The model defined in huaweicloud sdk
|
|
35
|
-
|
|
36
|
-
:param link: 链接
|
|
37
|
-
:type link: str
|
|
38
|
-
:param question: 标准问题
|
|
39
|
-
:type question: str
|
|
40
|
-
:param qa_pair_id: 标准问题Id
|
|
41
|
-
:type qa_pair_id: str
|
|
42
|
-
"""
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
self._link = None
|
|
47
|
-
self._question = None
|
|
48
|
-
self._qa_pair_id = None
|
|
49
|
-
self.discriminator = None
|
|
50
|
-
|
|
51
|
-
if link is not None:
|
|
52
|
-
self.link = link
|
|
53
|
-
if question is not None:
|
|
54
|
-
self.question = question
|
|
55
|
-
if qa_pair_id is not None:
|
|
56
|
-
self.qa_pair_id = qa_pair_id
|
|
57
|
-
|
|
58
|
-
@property
|
|
59
|
-
def link(self):
|
|
60
|
-
r"""Gets the link of this RelevanceQapair.
|
|
61
|
-
|
|
62
|
-
链接
|
|
63
|
-
|
|
64
|
-
:return: The link of this RelevanceQapair.
|
|
65
|
-
:rtype: str
|
|
66
|
-
"""
|
|
67
|
-
return self._link
|
|
68
|
-
|
|
69
|
-
@link.setter
|
|
70
|
-
def link(self, link):
|
|
71
|
-
r"""Sets the link of this RelevanceQapair.
|
|
72
|
-
|
|
73
|
-
链接
|
|
74
|
-
|
|
75
|
-
:param link: The link of this RelevanceQapair.
|
|
76
|
-
:type link: str
|
|
77
|
-
"""
|
|
78
|
-
self._link = link
|
|
79
|
-
|
|
80
|
-
@property
|
|
81
|
-
def question(self):
|
|
82
|
-
r"""Gets the question of this RelevanceQapair.
|
|
83
|
-
|
|
84
|
-
标准问题
|
|
85
|
-
|
|
86
|
-
:return: The question of this RelevanceQapair.
|
|
87
|
-
:rtype: str
|
|
88
|
-
"""
|
|
89
|
-
return self._question
|
|
90
|
-
|
|
91
|
-
@question.setter
|
|
92
|
-
def question(self, question):
|
|
93
|
-
r"""Sets the question of this RelevanceQapair.
|
|
94
|
-
|
|
95
|
-
标准问题
|
|
96
|
-
|
|
97
|
-
:param question: The question of this RelevanceQapair.
|
|
98
|
-
:type question: str
|
|
99
|
-
"""
|
|
100
|
-
self._question = question
|
|
101
|
-
|
|
102
|
-
@property
|
|
103
|
-
def qa_pair_id(self):
|
|
104
|
-
r"""Gets the qa_pair_id of this RelevanceQapair.
|
|
105
|
-
|
|
106
|
-
标准问题Id
|
|
107
|
-
|
|
108
|
-
:return: The qa_pair_id of this RelevanceQapair.
|
|
109
|
-
:rtype: str
|
|
110
|
-
"""
|
|
111
|
-
return self._qa_pair_id
|
|
112
|
-
|
|
113
|
-
@qa_pair_id.setter
|
|
114
|
-
def qa_pair_id(self, qa_pair_id):
|
|
115
|
-
r"""Sets the qa_pair_id of this RelevanceQapair.
|
|
116
|
-
|
|
117
|
-
标准问题Id
|
|
118
|
-
|
|
119
|
-
:param qa_pair_id: The qa_pair_id of this RelevanceQapair.
|
|
120
|
-
:type qa_pair_id: str
|
|
121
|
-
"""
|
|
122
|
-
self._qa_pair_id = qa_pair_id
|
|
123
|
-
|
|
124
|
-
def to_dict(self):
|
|
125
|
-
"""Returns the model properties as a dict"""
|
|
126
|
-
result = {}
|
|
127
|
-
|
|
128
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
129
|
-
value = getattr(self, attr)
|
|
130
|
-
if isinstance(value, list):
|
|
131
|
-
result[attr] = list(map(
|
|
132
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
133
|
-
value
|
|
134
|
-
))
|
|
135
|
-
elif hasattr(value, "to_dict"):
|
|
136
|
-
result[attr] = value.to_dict()
|
|
137
|
-
elif isinstance(value, dict):
|
|
138
|
-
result[attr] = dict(map(
|
|
139
|
-
lambda item: (item[0], item[1].to_dict())
|
|
140
|
-
if hasattr(item[1], "to_dict") else item,
|
|
141
|
-
value.items()
|
|
142
|
-
))
|
|
143
|
-
else:
|
|
144
|
-
if attr in self.sensitive_list:
|
|
145
|
-
result[attr] = "****"
|
|
146
|
-
else:
|
|
147
|
-
result[attr] = value
|
|
148
|
-
|
|
149
|
-
return result
|
|
150
|
-
|
|
151
|
-
def to_str(self):
|
|
152
|
-
"""Returns the string representation of the model"""
|
|
153
|
-
import simplejson as json
|
|
154
|
-
if six.PY2:
|
|
155
|
-
import sys
|
|
156
|
-
reload(sys)
|
|
157
|
-
sys.setdefaultencoding("utf-8")
|
|
158
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
159
|
-
|
|
160
|
-
def __repr__(self):
|
|
161
|
-
"""For `print`"""
|
|
162
|
-
return self.to_str()
|
|
163
|
-
|
|
164
|
-
def __eq__(self, other):
|
|
165
|
-
"""Returns true if both objects are equal"""
|
|
166
|
-
if not isinstance(other, RelevanceQapair):
|
|
167
|
-
return False
|
|
168
|
-
|
|
169
|
-
return self.__dict__ == other.__dict__
|
|
170
|
-
|
|
171
|
-
def __ne__(self, other):
|
|
172
|
-
"""Returns true if both objects are not equal"""
|
|
173
|
-
return not self == other
|
|
@@ -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 SearchArticlesReq:
|
|
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"""SearchArticlesReq
|
|
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 SearchArticlesReq.
|
|
67
|
-
|
|
68
|
-
返回匹配度最高的数据条数
|
|
69
|
-
|
|
70
|
-
:return: The top of this SearchArticlesReq.
|
|
71
|
-
:rtype: int
|
|
72
|
-
"""
|
|
73
|
-
return self._top
|
|
74
|
-
|
|
75
|
-
@top.setter
|
|
76
|
-
def top(self, top):
|
|
77
|
-
r"""Sets the top of this SearchArticlesReq.
|
|
78
|
-
|
|
79
|
-
返回匹配度最高的数据条数
|
|
80
|
-
|
|
81
|
-
:param top: The top of this SearchArticlesReq.
|
|
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 SearchArticlesReq.
|
|
89
|
-
|
|
90
|
-
产品类型Id
|
|
91
|
-
|
|
92
|
-
:return: The product_type_id of this SearchArticlesReq.
|
|
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 SearchArticlesReq.
|
|
100
|
-
|
|
101
|
-
产品类型Id
|
|
102
|
-
|
|
103
|
-
:param product_type_id: The product_type_id of this SearchArticlesReq.
|
|
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 SearchArticlesReq.
|
|
111
|
-
|
|
112
|
-
业务类型Id
|
|
113
|
-
|
|
114
|
-
:return: The business_type_id of this SearchArticlesReq.
|
|
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 SearchArticlesReq.
|
|
122
|
-
|
|
123
|
-
业务类型Id
|
|
124
|
-
|
|
125
|
-
:param business_type_id: The business_type_id of this SearchArticlesReq.
|
|
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 SearchArticlesReq.
|
|
133
|
-
|
|
134
|
-
问题类型Id
|
|
135
|
-
|
|
136
|
-
:return: The problem_type_id of this SearchArticlesReq.
|
|
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 SearchArticlesReq.
|
|
144
|
-
|
|
145
|
-
问题类型Id
|
|
146
|
-
|
|
147
|
-
:param problem_type_id: The problem_type_id of this SearchArticlesReq.
|
|
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, SearchArticlesReq):
|
|
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,143 +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 SearchNoticesReq:
|
|
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
|
-
}
|
|
23
|
-
|
|
24
|
-
attribute_map = {
|
|
25
|
-
'top': 'top',
|
|
26
|
-
'product_type_id': 'product_type_id'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
def __init__(self, top=None, product_type_id=None):
|
|
30
|
-
r"""SearchNoticesReq
|
|
31
|
-
|
|
32
|
-
The model defined in huaweicloud sdk
|
|
33
|
-
|
|
34
|
-
:param top: 返回匹配度最高的数据条数
|
|
35
|
-
:type top: int
|
|
36
|
-
:param product_type_id: 产品类型Id
|
|
37
|
-
:type product_type_id: str
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
self._top = None
|
|
43
|
-
self._product_type_id = None
|
|
44
|
-
self.discriminator = None
|
|
45
|
-
|
|
46
|
-
if top is not None:
|
|
47
|
-
self.top = top
|
|
48
|
-
self.product_type_id = product_type_id
|
|
49
|
-
|
|
50
|
-
@property
|
|
51
|
-
def top(self):
|
|
52
|
-
r"""Gets the top of this SearchNoticesReq.
|
|
53
|
-
|
|
54
|
-
返回匹配度最高的数据条数
|
|
55
|
-
|
|
56
|
-
:return: The top of this SearchNoticesReq.
|
|
57
|
-
:rtype: int
|
|
58
|
-
"""
|
|
59
|
-
return self._top
|
|
60
|
-
|
|
61
|
-
@top.setter
|
|
62
|
-
def top(self, top):
|
|
63
|
-
r"""Sets the top of this SearchNoticesReq.
|
|
64
|
-
|
|
65
|
-
返回匹配度最高的数据条数
|
|
66
|
-
|
|
67
|
-
:param top: The top of this SearchNoticesReq.
|
|
68
|
-
:type top: int
|
|
69
|
-
"""
|
|
70
|
-
self._top = top
|
|
71
|
-
|
|
72
|
-
@property
|
|
73
|
-
def product_type_id(self):
|
|
74
|
-
r"""Gets the product_type_id of this SearchNoticesReq.
|
|
75
|
-
|
|
76
|
-
产品类型Id
|
|
77
|
-
|
|
78
|
-
:return: The product_type_id of this SearchNoticesReq.
|
|
79
|
-
:rtype: str
|
|
80
|
-
"""
|
|
81
|
-
return self._product_type_id
|
|
82
|
-
|
|
83
|
-
@product_type_id.setter
|
|
84
|
-
def product_type_id(self, product_type_id):
|
|
85
|
-
r"""Sets the product_type_id of this SearchNoticesReq.
|
|
86
|
-
|
|
87
|
-
产品类型Id
|
|
88
|
-
|
|
89
|
-
:param product_type_id: The product_type_id of this SearchNoticesReq.
|
|
90
|
-
:type product_type_id: str
|
|
91
|
-
"""
|
|
92
|
-
self._product_type_id = product_type_id
|
|
93
|
-
|
|
94
|
-
def to_dict(self):
|
|
95
|
-
"""Returns the model properties as a dict"""
|
|
96
|
-
result = {}
|
|
97
|
-
|
|
98
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
99
|
-
value = getattr(self, attr)
|
|
100
|
-
if isinstance(value, list):
|
|
101
|
-
result[attr] = list(map(
|
|
102
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
103
|
-
value
|
|
104
|
-
))
|
|
105
|
-
elif hasattr(value, "to_dict"):
|
|
106
|
-
result[attr] = value.to_dict()
|
|
107
|
-
elif isinstance(value, dict):
|
|
108
|
-
result[attr] = dict(map(
|
|
109
|
-
lambda item: (item[0], item[1].to_dict())
|
|
110
|
-
if hasattr(item[1], "to_dict") else item,
|
|
111
|
-
value.items()
|
|
112
|
-
))
|
|
113
|
-
else:
|
|
114
|
-
if attr in self.sensitive_list:
|
|
115
|
-
result[attr] = "****"
|
|
116
|
-
else:
|
|
117
|
-
result[attr] = value
|
|
118
|
-
|
|
119
|
-
return result
|
|
120
|
-
|
|
121
|
-
def to_str(self):
|
|
122
|
-
"""Returns the string representation of the model"""
|
|
123
|
-
import simplejson as json
|
|
124
|
-
if six.PY2:
|
|
125
|
-
import sys
|
|
126
|
-
reload(sys)
|
|
127
|
-
sys.setdefaultencoding("utf-8")
|
|
128
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
129
|
-
|
|
130
|
-
def __repr__(self):
|
|
131
|
-
"""For `print`"""
|
|
132
|
-
return self.to_str()
|
|
133
|
-
|
|
134
|
-
def __eq__(self, other):
|
|
135
|
-
"""Returns true if both objects are equal"""
|
|
136
|
-
if not isinstance(other, SearchNoticesReq):
|
|
137
|
-
return False
|
|
138
|
-
|
|
139
|
-
return self.__dict__ == other.__dict__
|
|
140
|
-
|
|
141
|
-
def __ne__(self, other):
|
|
142
|
-
"""Returns true if both objects are not equal"""
|
|
143
|
-
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 SearchQaPairsReq:
|
|
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
|
-
'domain': 'str',
|
|
21
|
-
'top': 'int'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
attribute_map = {
|
|
25
|
-
'domain': 'domain',
|
|
26
|
-
'top': 'top'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
def __init__(self, domain=None, top=None):
|
|
30
|
-
r"""SearchQaPairsReq
|
|
31
|
-
|
|
32
|
-
The model defined in huaweicloud sdk
|
|
33
|
-
|
|
34
|
-
:param domain: 主题名称
|
|
35
|
-
:type domain: str
|
|
36
|
-
:param top: 返回匹配度最高的数据条数
|
|
37
|
-
:type top: int
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
self._domain = None
|
|
43
|
-
self._top = None
|
|
44
|
-
self.discriminator = None
|
|
45
|
-
|
|
46
|
-
if domain is not None:
|
|
47
|
-
self.domain = domain
|
|
48
|
-
if top is not None:
|
|
49
|
-
self.top = top
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def domain(self):
|
|
53
|
-
r"""Gets the domain of this SearchQaPairsReq.
|
|
54
|
-
|
|
55
|
-
主题名称
|
|
56
|
-
|
|
57
|
-
:return: The domain of this SearchQaPairsReq.
|
|
58
|
-
:rtype: str
|
|
59
|
-
"""
|
|
60
|
-
return self._domain
|
|
61
|
-
|
|
62
|
-
@domain.setter
|
|
63
|
-
def domain(self, domain):
|
|
64
|
-
r"""Sets the domain of this SearchQaPairsReq.
|
|
65
|
-
|
|
66
|
-
主题名称
|
|
67
|
-
|
|
68
|
-
:param domain: The domain of this SearchQaPairsReq.
|
|
69
|
-
:type domain: str
|
|
70
|
-
"""
|
|
71
|
-
self._domain = domain
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def top(self):
|
|
75
|
-
r"""Gets the top of this SearchQaPairsReq.
|
|
76
|
-
|
|
77
|
-
返回匹配度最高的数据条数
|
|
78
|
-
|
|
79
|
-
:return: The top of this SearchQaPairsReq.
|
|
80
|
-
:rtype: int
|
|
81
|
-
"""
|
|
82
|
-
return self._top
|
|
83
|
-
|
|
84
|
-
@top.setter
|
|
85
|
-
def top(self, top):
|
|
86
|
-
r"""Sets the top of this SearchQaPairsReq.
|
|
87
|
-
|
|
88
|
-
返回匹配度最高的数据条数
|
|
89
|
-
|
|
90
|
-
:param top: The top of this SearchQaPairsReq.
|
|
91
|
-
:type top: int
|
|
92
|
-
"""
|
|
93
|
-
self._top = top
|
|
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, SearchQaPairsReq):
|
|
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
|