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,174 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class ListNoticesResponse(SdkResponse):
|
|
10
|
-
|
|
11
|
-
"""
|
|
12
|
-
Attributes:
|
|
13
|
-
openapi_types (dict): The key is attribute name
|
|
14
|
-
and the value is attribute type.
|
|
15
|
-
attribute_map (dict): The key is attribute name
|
|
16
|
-
and the value is json key in definition.
|
|
17
|
-
"""
|
|
18
|
-
sensitive_list = []
|
|
19
|
-
|
|
20
|
-
openapi_types = {
|
|
21
|
-
'notices': 'list[Notice]',
|
|
22
|
-
'error_code': 'str',
|
|
23
|
-
'error_msg': 'str'
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
attribute_map = {
|
|
27
|
-
'notices': 'notices',
|
|
28
|
-
'error_code': 'error_code',
|
|
29
|
-
'error_msg': 'error_msg'
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
def __init__(self, notices=None, error_code=None, error_msg=None):
|
|
33
|
-
r"""ListNoticesResponse
|
|
34
|
-
|
|
35
|
-
The model defined in huaweicloud sdk
|
|
36
|
-
|
|
37
|
-
:param notices: 推荐公告列表
|
|
38
|
-
:type notices: list[:class:`huaweicloudsdkosm.v2.Notice`]
|
|
39
|
-
:param error_code: 错误码
|
|
40
|
-
:type error_code: str
|
|
41
|
-
:param error_msg: 错误描述
|
|
42
|
-
:type error_msg: str
|
|
43
|
-
"""
|
|
44
|
-
|
|
45
|
-
super(ListNoticesResponse, self).__init__()
|
|
46
|
-
|
|
47
|
-
self._notices = None
|
|
48
|
-
self._error_code = None
|
|
49
|
-
self._error_msg = None
|
|
50
|
-
self.discriminator = None
|
|
51
|
-
|
|
52
|
-
if notices is not None:
|
|
53
|
-
self.notices = notices
|
|
54
|
-
if error_code is not None:
|
|
55
|
-
self.error_code = error_code
|
|
56
|
-
if error_msg is not None:
|
|
57
|
-
self.error_msg = error_msg
|
|
58
|
-
|
|
59
|
-
@property
|
|
60
|
-
def notices(self):
|
|
61
|
-
r"""Gets the notices of this ListNoticesResponse.
|
|
62
|
-
|
|
63
|
-
推荐公告列表
|
|
64
|
-
|
|
65
|
-
:return: The notices of this ListNoticesResponse.
|
|
66
|
-
:rtype: list[:class:`huaweicloudsdkosm.v2.Notice`]
|
|
67
|
-
"""
|
|
68
|
-
return self._notices
|
|
69
|
-
|
|
70
|
-
@notices.setter
|
|
71
|
-
def notices(self, notices):
|
|
72
|
-
r"""Sets the notices of this ListNoticesResponse.
|
|
73
|
-
|
|
74
|
-
推荐公告列表
|
|
75
|
-
|
|
76
|
-
:param notices: The notices of this ListNoticesResponse.
|
|
77
|
-
:type notices: list[:class:`huaweicloudsdkosm.v2.Notice`]
|
|
78
|
-
"""
|
|
79
|
-
self._notices = notices
|
|
80
|
-
|
|
81
|
-
@property
|
|
82
|
-
def error_code(self):
|
|
83
|
-
r"""Gets the error_code of this ListNoticesResponse.
|
|
84
|
-
|
|
85
|
-
错误码
|
|
86
|
-
|
|
87
|
-
:return: The error_code of this ListNoticesResponse.
|
|
88
|
-
:rtype: str
|
|
89
|
-
"""
|
|
90
|
-
return self._error_code
|
|
91
|
-
|
|
92
|
-
@error_code.setter
|
|
93
|
-
def error_code(self, error_code):
|
|
94
|
-
r"""Sets the error_code of this ListNoticesResponse.
|
|
95
|
-
|
|
96
|
-
错误码
|
|
97
|
-
|
|
98
|
-
:param error_code: The error_code of this ListNoticesResponse.
|
|
99
|
-
:type error_code: str
|
|
100
|
-
"""
|
|
101
|
-
self._error_code = error_code
|
|
102
|
-
|
|
103
|
-
@property
|
|
104
|
-
def error_msg(self):
|
|
105
|
-
r"""Gets the error_msg of this ListNoticesResponse.
|
|
106
|
-
|
|
107
|
-
错误描述
|
|
108
|
-
|
|
109
|
-
:return: The error_msg of this ListNoticesResponse.
|
|
110
|
-
:rtype: str
|
|
111
|
-
"""
|
|
112
|
-
return self._error_msg
|
|
113
|
-
|
|
114
|
-
@error_msg.setter
|
|
115
|
-
def error_msg(self, error_msg):
|
|
116
|
-
r"""Sets the error_msg of this ListNoticesResponse.
|
|
117
|
-
|
|
118
|
-
错误描述
|
|
119
|
-
|
|
120
|
-
:param error_msg: The error_msg of this ListNoticesResponse.
|
|
121
|
-
:type error_msg: str
|
|
122
|
-
"""
|
|
123
|
-
self._error_msg = error_msg
|
|
124
|
-
|
|
125
|
-
def to_dict(self):
|
|
126
|
-
"""Returns the model properties as a dict"""
|
|
127
|
-
result = {}
|
|
128
|
-
|
|
129
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
130
|
-
value = getattr(self, attr)
|
|
131
|
-
if isinstance(value, list):
|
|
132
|
-
result[attr] = list(map(
|
|
133
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
134
|
-
value
|
|
135
|
-
))
|
|
136
|
-
elif hasattr(value, "to_dict"):
|
|
137
|
-
result[attr] = value.to_dict()
|
|
138
|
-
elif isinstance(value, dict):
|
|
139
|
-
result[attr] = dict(map(
|
|
140
|
-
lambda item: (item[0], item[1].to_dict())
|
|
141
|
-
if hasattr(item[1], "to_dict") else item,
|
|
142
|
-
value.items()
|
|
143
|
-
))
|
|
144
|
-
else:
|
|
145
|
-
if attr in self.sensitive_list:
|
|
146
|
-
result[attr] = "****"
|
|
147
|
-
else:
|
|
148
|
-
result[attr] = value
|
|
149
|
-
|
|
150
|
-
return result
|
|
151
|
-
|
|
152
|
-
def to_str(self):
|
|
153
|
-
"""Returns the string representation of the model"""
|
|
154
|
-
import simplejson as json
|
|
155
|
-
if six.PY2:
|
|
156
|
-
import sys
|
|
157
|
-
reload(sys)
|
|
158
|
-
sys.setdefaultencoding("utf-8")
|
|
159
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
160
|
-
|
|
161
|
-
def __repr__(self):
|
|
162
|
-
"""For `print`"""
|
|
163
|
-
return self.to_str()
|
|
164
|
-
|
|
165
|
-
def __eq__(self, other):
|
|
166
|
-
"""Returns true if both objects are equal"""
|
|
167
|
-
if not isinstance(other, ListNoticesResponse):
|
|
168
|
-
return False
|
|
169
|
-
|
|
170
|
-
return self.__dict__ == other.__dict__
|
|
171
|
-
|
|
172
|
-
def __ne__(self, other):
|
|
173
|
-
"""Returns true if both objects are not equal"""
|
|
174
|
-
return not self == other
|
|
@@ -1,260 +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 ListRecommendWordsRequest:
|
|
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
|
-
'recommend_word_id': 'str',
|
|
24
|
-
'level_value': 'int',
|
|
25
|
-
'theme_name': 'str'
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
attribute_map = {
|
|
29
|
-
'x_service_key': 'x-service-key',
|
|
30
|
-
'x_site': 'x-site',
|
|
31
|
-
'x_language': 'x-language',
|
|
32
|
-
'recommend_word_id': 'recommend_word_id',
|
|
33
|
-
'level_value': 'level_value',
|
|
34
|
-
'theme_name': 'theme_name'
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
def __init__(self, x_service_key=None, x_site=None, x_language=None, recommend_word_id=None, level_value=None, theme_name=None):
|
|
38
|
-
r"""ListRecommendWordsRequest
|
|
39
|
-
|
|
40
|
-
The model defined in huaweicloud sdk
|
|
41
|
-
|
|
42
|
-
:param x_service_key: 调用智能客服服务标志。
|
|
43
|
-
:type x_service_key: str
|
|
44
|
-
:param x_site: 站点标记,0-中国站 1-国际站
|
|
45
|
-
:type x_site: str
|
|
46
|
-
:param x_language: 区域语言简写,en-us zh-cn
|
|
47
|
-
:type x_language: str
|
|
48
|
-
:param recommend_word_id: 推荐词Id
|
|
49
|
-
:type recommend_word_id: str
|
|
50
|
-
:param level_value: 推荐词层级
|
|
51
|
-
:type level_value: int
|
|
52
|
-
:param theme_name: 主题名称
|
|
53
|
-
:type theme_name: str
|
|
54
|
-
"""
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
self._x_service_key = None
|
|
59
|
-
self._x_site = None
|
|
60
|
-
self._x_language = None
|
|
61
|
-
self._recommend_word_id = None
|
|
62
|
-
self._level_value = None
|
|
63
|
-
self._theme_name = None
|
|
64
|
-
self.discriminator = None
|
|
65
|
-
|
|
66
|
-
if x_service_key is not None:
|
|
67
|
-
self.x_service_key = x_service_key
|
|
68
|
-
if x_site is not None:
|
|
69
|
-
self.x_site = x_site
|
|
70
|
-
if x_language is not None:
|
|
71
|
-
self.x_language = x_language
|
|
72
|
-
if recommend_word_id is not None:
|
|
73
|
-
self.recommend_word_id = recommend_word_id
|
|
74
|
-
if level_value is not None:
|
|
75
|
-
self.level_value = level_value
|
|
76
|
-
if theme_name is not None:
|
|
77
|
-
self.theme_name = theme_name
|
|
78
|
-
|
|
79
|
-
@property
|
|
80
|
-
def x_service_key(self):
|
|
81
|
-
r"""Gets the x_service_key of this ListRecommendWordsRequest.
|
|
82
|
-
|
|
83
|
-
调用智能客服服务标志。
|
|
84
|
-
|
|
85
|
-
:return: The x_service_key of this ListRecommendWordsRequest.
|
|
86
|
-
:rtype: str
|
|
87
|
-
"""
|
|
88
|
-
return self._x_service_key
|
|
89
|
-
|
|
90
|
-
@x_service_key.setter
|
|
91
|
-
def x_service_key(self, x_service_key):
|
|
92
|
-
r"""Sets the x_service_key of this ListRecommendWordsRequest.
|
|
93
|
-
|
|
94
|
-
调用智能客服服务标志。
|
|
95
|
-
|
|
96
|
-
:param x_service_key: The x_service_key of this ListRecommendWordsRequest.
|
|
97
|
-
:type x_service_key: str
|
|
98
|
-
"""
|
|
99
|
-
self._x_service_key = x_service_key
|
|
100
|
-
|
|
101
|
-
@property
|
|
102
|
-
def x_site(self):
|
|
103
|
-
r"""Gets the x_site of this ListRecommendWordsRequest.
|
|
104
|
-
|
|
105
|
-
站点标记,0-中国站 1-国际站
|
|
106
|
-
|
|
107
|
-
:return: The x_site of this ListRecommendWordsRequest.
|
|
108
|
-
:rtype: str
|
|
109
|
-
"""
|
|
110
|
-
return self._x_site
|
|
111
|
-
|
|
112
|
-
@x_site.setter
|
|
113
|
-
def x_site(self, x_site):
|
|
114
|
-
r"""Sets the x_site of this ListRecommendWordsRequest.
|
|
115
|
-
|
|
116
|
-
站点标记,0-中国站 1-国际站
|
|
117
|
-
|
|
118
|
-
:param x_site: The x_site of this ListRecommendWordsRequest.
|
|
119
|
-
:type x_site: str
|
|
120
|
-
"""
|
|
121
|
-
self._x_site = x_site
|
|
122
|
-
|
|
123
|
-
@property
|
|
124
|
-
def x_language(self):
|
|
125
|
-
r"""Gets the x_language of this ListRecommendWordsRequest.
|
|
126
|
-
|
|
127
|
-
区域语言简写,en-us zh-cn
|
|
128
|
-
|
|
129
|
-
:return: The x_language of this ListRecommendWordsRequest.
|
|
130
|
-
:rtype: str
|
|
131
|
-
"""
|
|
132
|
-
return self._x_language
|
|
133
|
-
|
|
134
|
-
@x_language.setter
|
|
135
|
-
def x_language(self, x_language):
|
|
136
|
-
r"""Sets the x_language of this ListRecommendWordsRequest.
|
|
137
|
-
|
|
138
|
-
区域语言简写,en-us zh-cn
|
|
139
|
-
|
|
140
|
-
:param x_language: The x_language of this ListRecommendWordsRequest.
|
|
141
|
-
:type x_language: str
|
|
142
|
-
"""
|
|
143
|
-
self._x_language = x_language
|
|
144
|
-
|
|
145
|
-
@property
|
|
146
|
-
def recommend_word_id(self):
|
|
147
|
-
r"""Gets the recommend_word_id of this ListRecommendWordsRequest.
|
|
148
|
-
|
|
149
|
-
推荐词Id
|
|
150
|
-
|
|
151
|
-
:return: The recommend_word_id of this ListRecommendWordsRequest.
|
|
152
|
-
:rtype: str
|
|
153
|
-
"""
|
|
154
|
-
return self._recommend_word_id
|
|
155
|
-
|
|
156
|
-
@recommend_word_id.setter
|
|
157
|
-
def recommend_word_id(self, recommend_word_id):
|
|
158
|
-
r"""Sets the recommend_word_id of this ListRecommendWordsRequest.
|
|
159
|
-
|
|
160
|
-
推荐词Id
|
|
161
|
-
|
|
162
|
-
:param recommend_word_id: The recommend_word_id of this ListRecommendWordsRequest.
|
|
163
|
-
:type recommend_word_id: str
|
|
164
|
-
"""
|
|
165
|
-
self._recommend_word_id = recommend_word_id
|
|
166
|
-
|
|
167
|
-
@property
|
|
168
|
-
def level_value(self):
|
|
169
|
-
r"""Gets the level_value of this ListRecommendWordsRequest.
|
|
170
|
-
|
|
171
|
-
推荐词层级
|
|
172
|
-
|
|
173
|
-
:return: The level_value of this ListRecommendWordsRequest.
|
|
174
|
-
:rtype: int
|
|
175
|
-
"""
|
|
176
|
-
return self._level_value
|
|
177
|
-
|
|
178
|
-
@level_value.setter
|
|
179
|
-
def level_value(self, level_value):
|
|
180
|
-
r"""Sets the level_value of this ListRecommendWordsRequest.
|
|
181
|
-
|
|
182
|
-
推荐词层级
|
|
183
|
-
|
|
184
|
-
:param level_value: The level_value of this ListRecommendWordsRequest.
|
|
185
|
-
:type level_value: int
|
|
186
|
-
"""
|
|
187
|
-
self._level_value = level_value
|
|
188
|
-
|
|
189
|
-
@property
|
|
190
|
-
def theme_name(self):
|
|
191
|
-
r"""Gets the theme_name of this ListRecommendWordsRequest.
|
|
192
|
-
|
|
193
|
-
主题名称
|
|
194
|
-
|
|
195
|
-
:return: The theme_name of this ListRecommendWordsRequest.
|
|
196
|
-
:rtype: str
|
|
197
|
-
"""
|
|
198
|
-
return self._theme_name
|
|
199
|
-
|
|
200
|
-
@theme_name.setter
|
|
201
|
-
def theme_name(self, theme_name):
|
|
202
|
-
r"""Sets the theme_name of this ListRecommendWordsRequest.
|
|
203
|
-
|
|
204
|
-
主题名称
|
|
205
|
-
|
|
206
|
-
:param theme_name: The theme_name of this ListRecommendWordsRequest.
|
|
207
|
-
:type theme_name: str
|
|
208
|
-
"""
|
|
209
|
-
self._theme_name = theme_name
|
|
210
|
-
|
|
211
|
-
def to_dict(self):
|
|
212
|
-
"""Returns the model properties as a dict"""
|
|
213
|
-
result = {}
|
|
214
|
-
|
|
215
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
216
|
-
value = getattr(self, attr)
|
|
217
|
-
if isinstance(value, list):
|
|
218
|
-
result[attr] = list(map(
|
|
219
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
220
|
-
value
|
|
221
|
-
))
|
|
222
|
-
elif hasattr(value, "to_dict"):
|
|
223
|
-
result[attr] = value.to_dict()
|
|
224
|
-
elif isinstance(value, dict):
|
|
225
|
-
result[attr] = dict(map(
|
|
226
|
-
lambda item: (item[0], item[1].to_dict())
|
|
227
|
-
if hasattr(item[1], "to_dict") else item,
|
|
228
|
-
value.items()
|
|
229
|
-
))
|
|
230
|
-
else:
|
|
231
|
-
if attr in self.sensitive_list:
|
|
232
|
-
result[attr] = "****"
|
|
233
|
-
else:
|
|
234
|
-
result[attr] = value
|
|
235
|
-
|
|
236
|
-
return result
|
|
237
|
-
|
|
238
|
-
def to_str(self):
|
|
239
|
-
"""Returns the string representation of the model"""
|
|
240
|
-
import simplejson as json
|
|
241
|
-
if six.PY2:
|
|
242
|
-
import sys
|
|
243
|
-
reload(sys)
|
|
244
|
-
sys.setdefaultencoding("utf-8")
|
|
245
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
246
|
-
|
|
247
|
-
def __repr__(self):
|
|
248
|
-
"""For `print`"""
|
|
249
|
-
return self.to_str()
|
|
250
|
-
|
|
251
|
-
def __eq__(self, other):
|
|
252
|
-
"""Returns true if both objects are equal"""
|
|
253
|
-
if not isinstance(other, ListRecommendWordsRequest):
|
|
254
|
-
return False
|
|
255
|
-
|
|
256
|
-
return self.__dict__ == other.__dict__
|
|
257
|
-
|
|
258
|
-
def __ne__(self, other):
|
|
259
|
-
"""Returns true if both objects are not equal"""
|
|
260
|
-
return not self == other
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class ListRecommendWordsResponse(SdkResponse):
|
|
10
|
-
|
|
11
|
-
"""
|
|
12
|
-
Attributes:
|
|
13
|
-
openapi_types (dict): The key is attribute name
|
|
14
|
-
and the value is attribute type.
|
|
15
|
-
attribute_map (dict): The key is attribute name
|
|
16
|
-
and the value is json key in definition.
|
|
17
|
-
"""
|
|
18
|
-
sensitive_list = []
|
|
19
|
-
|
|
20
|
-
openapi_types = {
|
|
21
|
-
'error_code': 'str',
|
|
22
|
-
'error_msg': 'str',
|
|
23
|
-
'recommend_words': 'list[RecommendWord]',
|
|
24
|
-
'total_count': 'int'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
attribute_map = {
|
|
28
|
-
'error_code': 'error_code',
|
|
29
|
-
'error_msg': 'error_msg',
|
|
30
|
-
'recommend_words': 'recommend_words',
|
|
31
|
-
'total_count': 'total_count'
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
def __init__(self, error_code=None, error_msg=None, recommend_words=None, total_count=None):
|
|
35
|
-
r"""ListRecommendWordsResponse
|
|
36
|
-
|
|
37
|
-
The model defined in huaweicloud sdk
|
|
38
|
-
|
|
39
|
-
:param error_code: 错误码
|
|
40
|
-
:type error_code: str
|
|
41
|
-
:param error_msg: 错误描述
|
|
42
|
-
:type error_msg: str
|
|
43
|
-
:param recommend_words: 推荐词列表
|
|
44
|
-
:type recommend_words: list[:class:`huaweicloudsdkosm.v2.RecommendWord`]
|
|
45
|
-
:param total_count: 推荐词总数
|
|
46
|
-
:type total_count: int
|
|
47
|
-
"""
|
|
48
|
-
|
|
49
|
-
super(ListRecommendWordsResponse, self).__init__()
|
|
50
|
-
|
|
51
|
-
self._error_code = None
|
|
52
|
-
self._error_msg = None
|
|
53
|
-
self._recommend_words = None
|
|
54
|
-
self._total_count = None
|
|
55
|
-
self.discriminator = None
|
|
56
|
-
|
|
57
|
-
if error_code is not None:
|
|
58
|
-
self.error_code = error_code
|
|
59
|
-
if error_msg is not None:
|
|
60
|
-
self.error_msg = error_msg
|
|
61
|
-
if recommend_words is not None:
|
|
62
|
-
self.recommend_words = recommend_words
|
|
63
|
-
if total_count is not None:
|
|
64
|
-
self.total_count = total_count
|
|
65
|
-
|
|
66
|
-
@property
|
|
67
|
-
def error_code(self):
|
|
68
|
-
r"""Gets the error_code of this ListRecommendWordsResponse.
|
|
69
|
-
|
|
70
|
-
错误码
|
|
71
|
-
|
|
72
|
-
:return: The error_code of this ListRecommendWordsResponse.
|
|
73
|
-
:rtype: str
|
|
74
|
-
"""
|
|
75
|
-
return self._error_code
|
|
76
|
-
|
|
77
|
-
@error_code.setter
|
|
78
|
-
def error_code(self, error_code):
|
|
79
|
-
r"""Sets the error_code of this ListRecommendWordsResponse.
|
|
80
|
-
|
|
81
|
-
错误码
|
|
82
|
-
|
|
83
|
-
:param error_code: The error_code of this ListRecommendWordsResponse.
|
|
84
|
-
:type error_code: str
|
|
85
|
-
"""
|
|
86
|
-
self._error_code = error_code
|
|
87
|
-
|
|
88
|
-
@property
|
|
89
|
-
def error_msg(self):
|
|
90
|
-
r"""Gets the error_msg of this ListRecommendWordsResponse.
|
|
91
|
-
|
|
92
|
-
错误描述
|
|
93
|
-
|
|
94
|
-
:return: The error_msg of this ListRecommendWordsResponse.
|
|
95
|
-
:rtype: str
|
|
96
|
-
"""
|
|
97
|
-
return self._error_msg
|
|
98
|
-
|
|
99
|
-
@error_msg.setter
|
|
100
|
-
def error_msg(self, error_msg):
|
|
101
|
-
r"""Sets the error_msg of this ListRecommendWordsResponse.
|
|
102
|
-
|
|
103
|
-
错误描述
|
|
104
|
-
|
|
105
|
-
:param error_msg: The error_msg of this ListRecommendWordsResponse.
|
|
106
|
-
:type error_msg: str
|
|
107
|
-
"""
|
|
108
|
-
self._error_msg = error_msg
|
|
109
|
-
|
|
110
|
-
@property
|
|
111
|
-
def recommend_words(self):
|
|
112
|
-
r"""Gets the recommend_words of this ListRecommendWordsResponse.
|
|
113
|
-
|
|
114
|
-
推荐词列表
|
|
115
|
-
|
|
116
|
-
:return: The recommend_words of this ListRecommendWordsResponse.
|
|
117
|
-
:rtype: list[:class:`huaweicloudsdkosm.v2.RecommendWord`]
|
|
118
|
-
"""
|
|
119
|
-
return self._recommend_words
|
|
120
|
-
|
|
121
|
-
@recommend_words.setter
|
|
122
|
-
def recommend_words(self, recommend_words):
|
|
123
|
-
r"""Sets the recommend_words of this ListRecommendWordsResponse.
|
|
124
|
-
|
|
125
|
-
推荐词列表
|
|
126
|
-
|
|
127
|
-
:param recommend_words: The recommend_words of this ListRecommendWordsResponse.
|
|
128
|
-
:type recommend_words: list[:class:`huaweicloudsdkosm.v2.RecommendWord`]
|
|
129
|
-
"""
|
|
130
|
-
self._recommend_words = recommend_words
|
|
131
|
-
|
|
132
|
-
@property
|
|
133
|
-
def total_count(self):
|
|
134
|
-
r"""Gets the total_count of this ListRecommendWordsResponse.
|
|
135
|
-
|
|
136
|
-
推荐词总数
|
|
137
|
-
|
|
138
|
-
:return: The total_count of this ListRecommendWordsResponse.
|
|
139
|
-
:rtype: int
|
|
140
|
-
"""
|
|
141
|
-
return self._total_count
|
|
142
|
-
|
|
143
|
-
@total_count.setter
|
|
144
|
-
def total_count(self, total_count):
|
|
145
|
-
r"""Sets the total_count of this ListRecommendWordsResponse.
|
|
146
|
-
|
|
147
|
-
推荐词总数
|
|
148
|
-
|
|
149
|
-
:param total_count: The total_count of this ListRecommendWordsResponse.
|
|
150
|
-
:type total_count: int
|
|
151
|
-
"""
|
|
152
|
-
self._total_count = total_count
|
|
153
|
-
|
|
154
|
-
def to_dict(self):
|
|
155
|
-
"""Returns the model properties as a dict"""
|
|
156
|
-
result = {}
|
|
157
|
-
|
|
158
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
159
|
-
value = getattr(self, attr)
|
|
160
|
-
if isinstance(value, list):
|
|
161
|
-
result[attr] = list(map(
|
|
162
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
-
value
|
|
164
|
-
))
|
|
165
|
-
elif hasattr(value, "to_dict"):
|
|
166
|
-
result[attr] = value.to_dict()
|
|
167
|
-
elif isinstance(value, dict):
|
|
168
|
-
result[attr] = dict(map(
|
|
169
|
-
lambda item: (item[0], item[1].to_dict())
|
|
170
|
-
if hasattr(item[1], "to_dict") else item,
|
|
171
|
-
value.items()
|
|
172
|
-
))
|
|
173
|
-
else:
|
|
174
|
-
if attr in self.sensitive_list:
|
|
175
|
-
result[attr] = "****"
|
|
176
|
-
else:
|
|
177
|
-
result[attr] = value
|
|
178
|
-
|
|
179
|
-
return result
|
|
180
|
-
|
|
181
|
-
def to_str(self):
|
|
182
|
-
"""Returns the string representation of the model"""
|
|
183
|
-
import simplejson as json
|
|
184
|
-
if six.PY2:
|
|
185
|
-
import sys
|
|
186
|
-
reload(sys)
|
|
187
|
-
sys.setdefaultencoding("utf-8")
|
|
188
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
189
|
-
|
|
190
|
-
def __repr__(self):
|
|
191
|
-
"""For `print`"""
|
|
192
|
-
return self.to_str()
|
|
193
|
-
|
|
194
|
-
def __eq__(self, other):
|
|
195
|
-
"""Returns true if both objects are equal"""
|
|
196
|
-
if not isinstance(other, ListRecommendWordsResponse):
|
|
197
|
-
return False
|
|
198
|
-
|
|
199
|
-
return self.__dict__ == other.__dict__
|
|
200
|
-
|
|
201
|
-
def __ne__(self, other):
|
|
202
|
-
"""Returns true if both objects are not equal"""
|
|
203
|
-
return not self == other
|