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,198 +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 ListToolsRequest:
|
|
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': 'SearchToolsReq'
|
|
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"""ListToolsRequest
|
|
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 ListToolsRequest
|
|
45
|
-
:type body: :class:`huaweicloudsdkosm.v2.SearchToolsReq`
|
|
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
|
-
if x_service_key is not None:
|
|
57
|
-
self.x_service_key = x_service_key
|
|
58
|
-
if x_site is not None:
|
|
59
|
-
self.x_site = x_site
|
|
60
|
-
if x_language is not None:
|
|
61
|
-
self.x_language = x_language
|
|
62
|
-
if body is not None:
|
|
63
|
-
self.body = body
|
|
64
|
-
|
|
65
|
-
@property
|
|
66
|
-
def x_service_key(self):
|
|
67
|
-
r"""Gets the x_service_key of this ListToolsRequest.
|
|
68
|
-
|
|
69
|
-
调用智能客服服务标志。
|
|
70
|
-
|
|
71
|
-
:return: The x_service_key of this ListToolsRequest.
|
|
72
|
-
:rtype: str
|
|
73
|
-
"""
|
|
74
|
-
return self._x_service_key
|
|
75
|
-
|
|
76
|
-
@x_service_key.setter
|
|
77
|
-
def x_service_key(self, x_service_key):
|
|
78
|
-
r"""Sets the x_service_key of this ListToolsRequest.
|
|
79
|
-
|
|
80
|
-
调用智能客服服务标志。
|
|
81
|
-
|
|
82
|
-
:param x_service_key: The x_service_key of this ListToolsRequest.
|
|
83
|
-
:type x_service_key: str
|
|
84
|
-
"""
|
|
85
|
-
self._x_service_key = x_service_key
|
|
86
|
-
|
|
87
|
-
@property
|
|
88
|
-
def x_site(self):
|
|
89
|
-
r"""Gets the x_site of this ListToolsRequest.
|
|
90
|
-
|
|
91
|
-
站点标记,0-中国站 1-国际站
|
|
92
|
-
|
|
93
|
-
:return: The x_site of this ListToolsRequest.
|
|
94
|
-
:rtype: str
|
|
95
|
-
"""
|
|
96
|
-
return self._x_site
|
|
97
|
-
|
|
98
|
-
@x_site.setter
|
|
99
|
-
def x_site(self, x_site):
|
|
100
|
-
r"""Sets the x_site of this ListToolsRequest.
|
|
101
|
-
|
|
102
|
-
站点标记,0-中国站 1-国际站
|
|
103
|
-
|
|
104
|
-
:param x_site: The x_site of this ListToolsRequest.
|
|
105
|
-
:type x_site: str
|
|
106
|
-
"""
|
|
107
|
-
self._x_site = x_site
|
|
108
|
-
|
|
109
|
-
@property
|
|
110
|
-
def x_language(self):
|
|
111
|
-
r"""Gets the x_language of this ListToolsRequest.
|
|
112
|
-
|
|
113
|
-
区域语言简写,en-us zh-cn
|
|
114
|
-
|
|
115
|
-
:return: The x_language of this ListToolsRequest.
|
|
116
|
-
:rtype: str
|
|
117
|
-
"""
|
|
118
|
-
return self._x_language
|
|
119
|
-
|
|
120
|
-
@x_language.setter
|
|
121
|
-
def x_language(self, x_language):
|
|
122
|
-
r"""Sets the x_language of this ListToolsRequest.
|
|
123
|
-
|
|
124
|
-
区域语言简写,en-us zh-cn
|
|
125
|
-
|
|
126
|
-
:param x_language: The x_language of this ListToolsRequest.
|
|
127
|
-
:type x_language: str
|
|
128
|
-
"""
|
|
129
|
-
self._x_language = x_language
|
|
130
|
-
|
|
131
|
-
@property
|
|
132
|
-
def body(self):
|
|
133
|
-
r"""Gets the body of this ListToolsRequest.
|
|
134
|
-
|
|
135
|
-
:return: The body of this ListToolsRequest.
|
|
136
|
-
:rtype: :class:`huaweicloudsdkosm.v2.SearchToolsReq`
|
|
137
|
-
"""
|
|
138
|
-
return self._body
|
|
139
|
-
|
|
140
|
-
@body.setter
|
|
141
|
-
def body(self, body):
|
|
142
|
-
r"""Sets the body of this ListToolsRequest.
|
|
143
|
-
|
|
144
|
-
:param body: The body of this ListToolsRequest.
|
|
145
|
-
:type body: :class:`huaweicloudsdkosm.v2.SearchToolsReq`
|
|
146
|
-
"""
|
|
147
|
-
self._body = body
|
|
148
|
-
|
|
149
|
-
def to_dict(self):
|
|
150
|
-
"""Returns the model properties as a dict"""
|
|
151
|
-
result = {}
|
|
152
|
-
|
|
153
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
154
|
-
value = getattr(self, attr)
|
|
155
|
-
if isinstance(value, list):
|
|
156
|
-
result[attr] = list(map(
|
|
157
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
158
|
-
value
|
|
159
|
-
))
|
|
160
|
-
elif hasattr(value, "to_dict"):
|
|
161
|
-
result[attr] = value.to_dict()
|
|
162
|
-
elif isinstance(value, dict):
|
|
163
|
-
result[attr] = dict(map(
|
|
164
|
-
lambda item: (item[0], item[1].to_dict())
|
|
165
|
-
if hasattr(item[1], "to_dict") else item,
|
|
166
|
-
value.items()
|
|
167
|
-
))
|
|
168
|
-
else:
|
|
169
|
-
if attr in self.sensitive_list:
|
|
170
|
-
result[attr] = "****"
|
|
171
|
-
else:
|
|
172
|
-
result[attr] = value
|
|
173
|
-
|
|
174
|
-
return result
|
|
175
|
-
|
|
176
|
-
def to_str(self):
|
|
177
|
-
"""Returns the string representation of the model"""
|
|
178
|
-
import simplejson as json
|
|
179
|
-
if six.PY2:
|
|
180
|
-
import sys
|
|
181
|
-
reload(sys)
|
|
182
|
-
sys.setdefaultencoding("utf-8")
|
|
183
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
184
|
-
|
|
185
|
-
def __repr__(self):
|
|
186
|
-
"""For `print`"""
|
|
187
|
-
return self.to_str()
|
|
188
|
-
|
|
189
|
-
def __eq__(self, other):
|
|
190
|
-
"""Returns true if both objects are equal"""
|
|
191
|
-
if not isinstance(other, ListToolsRequest):
|
|
192
|
-
return False
|
|
193
|
-
|
|
194
|
-
return self.__dict__ == other.__dict__
|
|
195
|
-
|
|
196
|
-
def __ne__(self, other):
|
|
197
|
-
"""Returns true if both objects are not equal"""
|
|
198
|
-
return not self == other
|
|
@@ -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 ListToolsResponse(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
|
-
'tools': 'list[Tool]',
|
|
22
|
-
'error_code': 'str',
|
|
23
|
-
'error_msg': 'str'
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
attribute_map = {
|
|
27
|
-
'tools': 'tools',
|
|
28
|
-
'error_code': 'error_code',
|
|
29
|
-
'error_msg': 'error_msg'
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
def __init__(self, tools=None, error_code=None, error_msg=None):
|
|
33
|
-
r"""ListToolsResponse
|
|
34
|
-
|
|
35
|
-
The model defined in huaweicloud sdk
|
|
36
|
-
|
|
37
|
-
:param tools: 推荐工具列表
|
|
38
|
-
:type tools: list[:class:`huaweicloudsdkosm.v2.Tool`]
|
|
39
|
-
:param error_code: 错误码
|
|
40
|
-
:type error_code: str
|
|
41
|
-
:param error_msg: 错误描述
|
|
42
|
-
:type error_msg: str
|
|
43
|
-
"""
|
|
44
|
-
|
|
45
|
-
super(ListToolsResponse, self).__init__()
|
|
46
|
-
|
|
47
|
-
self._tools = None
|
|
48
|
-
self._error_code = None
|
|
49
|
-
self._error_msg = None
|
|
50
|
-
self.discriminator = None
|
|
51
|
-
|
|
52
|
-
if tools is not None:
|
|
53
|
-
self.tools = tools
|
|
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 tools(self):
|
|
61
|
-
r"""Gets the tools of this ListToolsResponse.
|
|
62
|
-
|
|
63
|
-
推荐工具列表
|
|
64
|
-
|
|
65
|
-
:return: The tools of this ListToolsResponse.
|
|
66
|
-
:rtype: list[:class:`huaweicloudsdkosm.v2.Tool`]
|
|
67
|
-
"""
|
|
68
|
-
return self._tools
|
|
69
|
-
|
|
70
|
-
@tools.setter
|
|
71
|
-
def tools(self, tools):
|
|
72
|
-
r"""Sets the tools of this ListToolsResponse.
|
|
73
|
-
|
|
74
|
-
推荐工具列表
|
|
75
|
-
|
|
76
|
-
:param tools: The tools of this ListToolsResponse.
|
|
77
|
-
:type tools: list[:class:`huaweicloudsdkosm.v2.Tool`]
|
|
78
|
-
"""
|
|
79
|
-
self._tools = tools
|
|
80
|
-
|
|
81
|
-
@property
|
|
82
|
-
def error_code(self):
|
|
83
|
-
r"""Gets the error_code of this ListToolsResponse.
|
|
84
|
-
|
|
85
|
-
错误码
|
|
86
|
-
|
|
87
|
-
:return: The error_code of this ListToolsResponse.
|
|
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 ListToolsResponse.
|
|
95
|
-
|
|
96
|
-
错误码
|
|
97
|
-
|
|
98
|
-
:param error_code: The error_code of this ListToolsResponse.
|
|
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 ListToolsResponse.
|
|
106
|
-
|
|
107
|
-
错误描述
|
|
108
|
-
|
|
109
|
-
:return: The error_msg of this ListToolsResponse.
|
|
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 ListToolsResponse.
|
|
117
|
-
|
|
118
|
-
错误描述
|
|
119
|
-
|
|
120
|
-
:param error_msg: The error_msg of this ListToolsResponse.
|
|
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, ListToolsResponse):
|
|
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,199 +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 Notice:
|
|
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
|
-
'id': 'str',
|
|
21
|
-
'content': 'str',
|
|
22
|
-
'create_time': 'int',
|
|
23
|
-
'update_time': 'int'
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
attribute_map = {
|
|
27
|
-
'id': 'id',
|
|
28
|
-
'content': 'content',
|
|
29
|
-
'create_time': 'create_time',
|
|
30
|
-
'update_time': 'update_time'
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
def __init__(self, id=None, content=None, create_time=None, update_time=None):
|
|
34
|
-
r"""Notice
|
|
35
|
-
|
|
36
|
-
The model defined in huaweicloud sdk
|
|
37
|
-
|
|
38
|
-
:param id: 公告Id
|
|
39
|
-
:type id: str
|
|
40
|
-
:param content: 公告内容
|
|
41
|
-
:type content: str
|
|
42
|
-
:param create_time: 创建时间
|
|
43
|
-
:type create_time: int
|
|
44
|
-
:param update_time: 更新时间
|
|
45
|
-
:type update_time: int
|
|
46
|
-
"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
self._id = None
|
|
51
|
-
self._content = None
|
|
52
|
-
self._create_time = None
|
|
53
|
-
self._update_time = None
|
|
54
|
-
self.discriminator = None
|
|
55
|
-
|
|
56
|
-
self.id = id
|
|
57
|
-
self.content = content
|
|
58
|
-
self.create_time = create_time
|
|
59
|
-
if update_time is not None:
|
|
60
|
-
self.update_time = update_time
|
|
61
|
-
|
|
62
|
-
@property
|
|
63
|
-
def id(self):
|
|
64
|
-
r"""Gets the id of this Notice.
|
|
65
|
-
|
|
66
|
-
公告Id
|
|
67
|
-
|
|
68
|
-
:return: The id of this Notice.
|
|
69
|
-
:rtype: str
|
|
70
|
-
"""
|
|
71
|
-
return self._id
|
|
72
|
-
|
|
73
|
-
@id.setter
|
|
74
|
-
def id(self, id):
|
|
75
|
-
r"""Sets the id of this Notice.
|
|
76
|
-
|
|
77
|
-
公告Id
|
|
78
|
-
|
|
79
|
-
:param id: The id of this Notice.
|
|
80
|
-
:type id: str
|
|
81
|
-
"""
|
|
82
|
-
self._id = id
|
|
83
|
-
|
|
84
|
-
@property
|
|
85
|
-
def content(self):
|
|
86
|
-
r"""Gets the content of this Notice.
|
|
87
|
-
|
|
88
|
-
公告内容
|
|
89
|
-
|
|
90
|
-
:return: The content of this Notice.
|
|
91
|
-
:rtype: str
|
|
92
|
-
"""
|
|
93
|
-
return self._content
|
|
94
|
-
|
|
95
|
-
@content.setter
|
|
96
|
-
def content(self, content):
|
|
97
|
-
r"""Sets the content of this Notice.
|
|
98
|
-
|
|
99
|
-
公告内容
|
|
100
|
-
|
|
101
|
-
:param content: The content of this Notice.
|
|
102
|
-
:type content: str
|
|
103
|
-
"""
|
|
104
|
-
self._content = content
|
|
105
|
-
|
|
106
|
-
@property
|
|
107
|
-
def create_time(self):
|
|
108
|
-
r"""Gets the create_time of this Notice.
|
|
109
|
-
|
|
110
|
-
创建时间
|
|
111
|
-
|
|
112
|
-
:return: The create_time of this Notice.
|
|
113
|
-
:rtype: int
|
|
114
|
-
"""
|
|
115
|
-
return self._create_time
|
|
116
|
-
|
|
117
|
-
@create_time.setter
|
|
118
|
-
def create_time(self, create_time):
|
|
119
|
-
r"""Sets the create_time of this Notice.
|
|
120
|
-
|
|
121
|
-
创建时间
|
|
122
|
-
|
|
123
|
-
:param create_time: The create_time of this Notice.
|
|
124
|
-
:type create_time: int
|
|
125
|
-
"""
|
|
126
|
-
self._create_time = create_time
|
|
127
|
-
|
|
128
|
-
@property
|
|
129
|
-
def update_time(self):
|
|
130
|
-
r"""Gets the update_time of this Notice.
|
|
131
|
-
|
|
132
|
-
更新时间
|
|
133
|
-
|
|
134
|
-
:return: The update_time of this Notice.
|
|
135
|
-
:rtype: int
|
|
136
|
-
"""
|
|
137
|
-
return self._update_time
|
|
138
|
-
|
|
139
|
-
@update_time.setter
|
|
140
|
-
def update_time(self, update_time):
|
|
141
|
-
r"""Sets the update_time of this Notice.
|
|
142
|
-
|
|
143
|
-
更新时间
|
|
144
|
-
|
|
145
|
-
:param update_time: The update_time of this Notice.
|
|
146
|
-
:type update_time: int
|
|
147
|
-
"""
|
|
148
|
-
self._update_time = update_time
|
|
149
|
-
|
|
150
|
-
def to_dict(self):
|
|
151
|
-
"""Returns the model properties as a dict"""
|
|
152
|
-
result = {}
|
|
153
|
-
|
|
154
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
155
|
-
value = getattr(self, attr)
|
|
156
|
-
if isinstance(value, list):
|
|
157
|
-
result[attr] = list(map(
|
|
158
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
159
|
-
value
|
|
160
|
-
))
|
|
161
|
-
elif hasattr(value, "to_dict"):
|
|
162
|
-
result[attr] = value.to_dict()
|
|
163
|
-
elif isinstance(value, dict):
|
|
164
|
-
result[attr] = dict(map(
|
|
165
|
-
lambda item: (item[0], item[1].to_dict())
|
|
166
|
-
if hasattr(item[1], "to_dict") else item,
|
|
167
|
-
value.items()
|
|
168
|
-
))
|
|
169
|
-
else:
|
|
170
|
-
if attr in self.sensitive_list:
|
|
171
|
-
result[attr] = "****"
|
|
172
|
-
else:
|
|
173
|
-
result[attr] = value
|
|
174
|
-
|
|
175
|
-
return result
|
|
176
|
-
|
|
177
|
-
def to_str(self):
|
|
178
|
-
"""Returns the string representation of the model"""
|
|
179
|
-
import simplejson as json
|
|
180
|
-
if six.PY2:
|
|
181
|
-
import sys
|
|
182
|
-
reload(sys)
|
|
183
|
-
sys.setdefaultencoding("utf-8")
|
|
184
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
185
|
-
|
|
186
|
-
def __repr__(self):
|
|
187
|
-
"""For `print`"""
|
|
188
|
-
return self.to_str()
|
|
189
|
-
|
|
190
|
-
def __eq__(self, other):
|
|
191
|
-
"""Returns true if both objects are equal"""
|
|
192
|
-
if not isinstance(other, Notice):
|
|
193
|
-
return False
|
|
194
|
-
|
|
195
|
-
return self.__dict__ == other.__dict__
|
|
196
|
-
|
|
197
|
-
def __ne__(self, other):
|
|
198
|
-
"""Returns true if both objects are not equal"""
|
|
199
|
-
return not self == other
|