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,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 CbsFlowEntry:
|
|
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
|
-
'qa_flow_id': 'str',
|
|
21
|
-
'start_node_id': 'str'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
attribute_map = {
|
|
25
|
-
'qa_flow_id': 'qa_flow_id',
|
|
26
|
-
'start_node_id': 'start_node_id'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
def __init__(self, qa_flow_id=None, start_node_id=None):
|
|
30
|
-
r"""CbsFlowEntry
|
|
31
|
-
|
|
32
|
-
The model defined in huaweicloud sdk
|
|
33
|
-
|
|
34
|
-
:param qa_flow_id: 问题流程id
|
|
35
|
-
:type qa_flow_id: str
|
|
36
|
-
:param start_node_id: 开始节点id
|
|
37
|
-
:type start_node_id: str
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
self._qa_flow_id = None
|
|
43
|
-
self._start_node_id = None
|
|
44
|
-
self.discriminator = None
|
|
45
|
-
|
|
46
|
-
if qa_flow_id is not None:
|
|
47
|
-
self.qa_flow_id = qa_flow_id
|
|
48
|
-
if start_node_id is not None:
|
|
49
|
-
self.start_node_id = start_node_id
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def qa_flow_id(self):
|
|
53
|
-
r"""Gets the qa_flow_id of this CbsFlowEntry.
|
|
54
|
-
|
|
55
|
-
问题流程id
|
|
56
|
-
|
|
57
|
-
:return: The qa_flow_id of this CbsFlowEntry.
|
|
58
|
-
:rtype: str
|
|
59
|
-
"""
|
|
60
|
-
return self._qa_flow_id
|
|
61
|
-
|
|
62
|
-
@qa_flow_id.setter
|
|
63
|
-
def qa_flow_id(self, qa_flow_id):
|
|
64
|
-
r"""Sets the qa_flow_id of this CbsFlowEntry.
|
|
65
|
-
|
|
66
|
-
问题流程id
|
|
67
|
-
|
|
68
|
-
:param qa_flow_id: The qa_flow_id of this CbsFlowEntry.
|
|
69
|
-
:type qa_flow_id: str
|
|
70
|
-
"""
|
|
71
|
-
self._qa_flow_id = qa_flow_id
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def start_node_id(self):
|
|
75
|
-
r"""Gets the start_node_id of this CbsFlowEntry.
|
|
76
|
-
|
|
77
|
-
开始节点id
|
|
78
|
-
|
|
79
|
-
:return: The start_node_id of this CbsFlowEntry.
|
|
80
|
-
:rtype: str
|
|
81
|
-
"""
|
|
82
|
-
return self._start_node_id
|
|
83
|
-
|
|
84
|
-
@start_node_id.setter
|
|
85
|
-
def start_node_id(self, start_node_id):
|
|
86
|
-
r"""Sets the start_node_id of this CbsFlowEntry.
|
|
87
|
-
|
|
88
|
-
开始节点id
|
|
89
|
-
|
|
90
|
-
:param start_node_id: The start_node_id of this CbsFlowEntry.
|
|
91
|
-
:type start_node_id: str
|
|
92
|
-
"""
|
|
93
|
-
self._start_node_id = start_node_id
|
|
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, CbsFlowEntry):
|
|
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
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class CreateAskQuestionRequest:
|
|
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': 'AskQuestionReq'
|
|
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"""CreateAskQuestionRequest
|
|
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 CreateAskQuestionRequest
|
|
45
|
-
:type body: :class:`huaweicloudsdkosm.v2.AskQuestionReq`
|
|
46
|
-
"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
self._x_service_key = None
|
|
51
|
-
self._x_site = None
|
|
52
|
-
self._x_language = None
|
|
53
|
-
self._body = None
|
|
54
|
-
self.discriminator = None
|
|
55
|
-
|
|
56
|
-
self.x_service_key = x_service_key
|
|
57
|
-
if x_site is not None:
|
|
58
|
-
self.x_site = x_site
|
|
59
|
-
if x_language is not None:
|
|
60
|
-
self.x_language = x_language
|
|
61
|
-
if body is not None:
|
|
62
|
-
self.body = body
|
|
63
|
-
|
|
64
|
-
@property
|
|
65
|
-
def x_service_key(self):
|
|
66
|
-
r"""Gets the x_service_key of this CreateAskQuestionRequest.
|
|
67
|
-
|
|
68
|
-
调用智能客服服务标志。
|
|
69
|
-
|
|
70
|
-
:return: The x_service_key of this CreateAskQuestionRequest.
|
|
71
|
-
:rtype: str
|
|
72
|
-
"""
|
|
73
|
-
return self._x_service_key
|
|
74
|
-
|
|
75
|
-
@x_service_key.setter
|
|
76
|
-
def x_service_key(self, x_service_key):
|
|
77
|
-
r"""Sets the x_service_key of this CreateAskQuestionRequest.
|
|
78
|
-
|
|
79
|
-
调用智能客服服务标志。
|
|
80
|
-
|
|
81
|
-
:param x_service_key: The x_service_key of this CreateAskQuestionRequest.
|
|
82
|
-
:type x_service_key: str
|
|
83
|
-
"""
|
|
84
|
-
self._x_service_key = x_service_key
|
|
85
|
-
|
|
86
|
-
@property
|
|
87
|
-
def x_site(self):
|
|
88
|
-
r"""Gets the x_site of this CreateAskQuestionRequest.
|
|
89
|
-
|
|
90
|
-
站点标记,0-中国站 1-国际站
|
|
91
|
-
|
|
92
|
-
:return: The x_site of this CreateAskQuestionRequest.
|
|
93
|
-
:rtype: str
|
|
94
|
-
"""
|
|
95
|
-
return self._x_site
|
|
96
|
-
|
|
97
|
-
@x_site.setter
|
|
98
|
-
def x_site(self, x_site):
|
|
99
|
-
r"""Sets the x_site of this CreateAskQuestionRequest.
|
|
100
|
-
|
|
101
|
-
站点标记,0-中国站 1-国际站
|
|
102
|
-
|
|
103
|
-
:param x_site: The x_site of this CreateAskQuestionRequest.
|
|
104
|
-
:type x_site: str
|
|
105
|
-
"""
|
|
106
|
-
self._x_site = x_site
|
|
107
|
-
|
|
108
|
-
@property
|
|
109
|
-
def x_language(self):
|
|
110
|
-
r"""Gets the x_language of this CreateAskQuestionRequest.
|
|
111
|
-
|
|
112
|
-
区域语言简写,en-us zh-cn
|
|
113
|
-
|
|
114
|
-
:return: The x_language of this CreateAskQuestionRequest.
|
|
115
|
-
:rtype: str
|
|
116
|
-
"""
|
|
117
|
-
return self._x_language
|
|
118
|
-
|
|
119
|
-
@x_language.setter
|
|
120
|
-
def x_language(self, x_language):
|
|
121
|
-
r"""Sets the x_language of this CreateAskQuestionRequest.
|
|
122
|
-
|
|
123
|
-
区域语言简写,en-us zh-cn
|
|
124
|
-
|
|
125
|
-
:param x_language: The x_language of this CreateAskQuestionRequest.
|
|
126
|
-
:type x_language: str
|
|
127
|
-
"""
|
|
128
|
-
self._x_language = x_language
|
|
129
|
-
|
|
130
|
-
@property
|
|
131
|
-
def body(self):
|
|
132
|
-
r"""Gets the body of this CreateAskQuestionRequest.
|
|
133
|
-
|
|
134
|
-
:return: The body of this CreateAskQuestionRequest.
|
|
135
|
-
:rtype: :class:`huaweicloudsdkosm.v2.AskQuestionReq`
|
|
136
|
-
"""
|
|
137
|
-
return self._body
|
|
138
|
-
|
|
139
|
-
@body.setter
|
|
140
|
-
def body(self, body):
|
|
141
|
-
r"""Sets the body of this CreateAskQuestionRequest.
|
|
142
|
-
|
|
143
|
-
:param body: The body of this CreateAskQuestionRequest.
|
|
144
|
-
:type body: :class:`huaweicloudsdkosm.v2.AskQuestionReq`
|
|
145
|
-
"""
|
|
146
|
-
self._body = body
|
|
147
|
-
|
|
148
|
-
def to_dict(self):
|
|
149
|
-
"""Returns the model properties as a dict"""
|
|
150
|
-
result = {}
|
|
151
|
-
|
|
152
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
153
|
-
value = getattr(self, attr)
|
|
154
|
-
if isinstance(value, list):
|
|
155
|
-
result[attr] = list(map(
|
|
156
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
157
|
-
value
|
|
158
|
-
))
|
|
159
|
-
elif hasattr(value, "to_dict"):
|
|
160
|
-
result[attr] = value.to_dict()
|
|
161
|
-
elif isinstance(value, dict):
|
|
162
|
-
result[attr] = dict(map(
|
|
163
|
-
lambda item: (item[0], item[1].to_dict())
|
|
164
|
-
if hasattr(item[1], "to_dict") else item,
|
|
165
|
-
value.items()
|
|
166
|
-
))
|
|
167
|
-
else:
|
|
168
|
-
if attr in self.sensitive_list:
|
|
169
|
-
result[attr] = "****"
|
|
170
|
-
else:
|
|
171
|
-
result[attr] = value
|
|
172
|
-
|
|
173
|
-
return result
|
|
174
|
-
|
|
175
|
-
def to_str(self):
|
|
176
|
-
"""Returns the string representation of the model"""
|
|
177
|
-
import simplejson as json
|
|
178
|
-
if six.PY2:
|
|
179
|
-
import sys
|
|
180
|
-
reload(sys)
|
|
181
|
-
sys.setdefaultencoding("utf-8")
|
|
182
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
183
|
-
|
|
184
|
-
def __repr__(self):
|
|
185
|
-
"""For `print`"""
|
|
186
|
-
return self.to_str()
|
|
187
|
-
|
|
188
|
-
def __eq__(self, other):
|
|
189
|
-
"""Returns true if both objects are equal"""
|
|
190
|
-
if not isinstance(other, CreateAskQuestionRequest):
|
|
191
|
-
return False
|
|
192
|
-
|
|
193
|
-
return self.__dict__ == other.__dict__
|
|
194
|
-
|
|
195
|
-
def __ne__(self, other):
|
|
196
|
-
"""Returns true if both objects are not equal"""
|
|
197
|
-
return not self == other
|
|
@@ -1,232 +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 CreateAskQuestionResponse(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
|
-
'question': 'str',
|
|
22
|
-
'answers': 'list[AnswerQaPair]',
|
|
23
|
-
'error_code': 'str',
|
|
24
|
-
'error_msg': 'str',
|
|
25
|
-
'request_id': 'str'
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
attribute_map = {
|
|
29
|
-
'question': 'question',
|
|
30
|
-
'answers': 'answers',
|
|
31
|
-
'error_code': 'error_code',
|
|
32
|
-
'error_msg': 'error_msg',
|
|
33
|
-
'request_id': 'request_id'
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
def __init__(self, question=None, answers=None, error_code=None, error_msg=None, request_id=None):
|
|
37
|
-
r"""CreateAskQuestionResponse
|
|
38
|
-
|
|
39
|
-
The model defined in huaweicloud sdk
|
|
40
|
-
|
|
41
|
-
:param question: 问题
|
|
42
|
-
:type question: str
|
|
43
|
-
:param answers: 答案列表
|
|
44
|
-
:type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`]
|
|
45
|
-
:param error_code: 错误码
|
|
46
|
-
:type error_code: str
|
|
47
|
-
:param error_msg: 错误描述
|
|
48
|
-
:type error_msg: str
|
|
49
|
-
:param request_id: 请求Id
|
|
50
|
-
:type request_id: str
|
|
51
|
-
"""
|
|
52
|
-
|
|
53
|
-
super(CreateAskQuestionResponse, self).__init__()
|
|
54
|
-
|
|
55
|
-
self._question = None
|
|
56
|
-
self._answers = None
|
|
57
|
-
self._error_code = None
|
|
58
|
-
self._error_msg = None
|
|
59
|
-
self._request_id = None
|
|
60
|
-
self.discriminator = None
|
|
61
|
-
|
|
62
|
-
if question is not None:
|
|
63
|
-
self.question = question
|
|
64
|
-
if answers is not None:
|
|
65
|
-
self.answers = answers
|
|
66
|
-
if error_code is not None:
|
|
67
|
-
self.error_code = error_code
|
|
68
|
-
if error_msg is not None:
|
|
69
|
-
self.error_msg = error_msg
|
|
70
|
-
if request_id is not None:
|
|
71
|
-
self.request_id = request_id
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def question(self):
|
|
75
|
-
r"""Gets the question of this CreateAskQuestionResponse.
|
|
76
|
-
|
|
77
|
-
问题
|
|
78
|
-
|
|
79
|
-
:return: The question of this CreateAskQuestionResponse.
|
|
80
|
-
:rtype: str
|
|
81
|
-
"""
|
|
82
|
-
return self._question
|
|
83
|
-
|
|
84
|
-
@question.setter
|
|
85
|
-
def question(self, question):
|
|
86
|
-
r"""Sets the question of this CreateAskQuestionResponse.
|
|
87
|
-
|
|
88
|
-
问题
|
|
89
|
-
|
|
90
|
-
:param question: The question of this CreateAskQuestionResponse.
|
|
91
|
-
:type question: str
|
|
92
|
-
"""
|
|
93
|
-
self._question = question
|
|
94
|
-
|
|
95
|
-
@property
|
|
96
|
-
def answers(self):
|
|
97
|
-
r"""Gets the answers of this CreateAskQuestionResponse.
|
|
98
|
-
|
|
99
|
-
答案列表
|
|
100
|
-
|
|
101
|
-
:return: The answers of this CreateAskQuestionResponse.
|
|
102
|
-
:rtype: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`]
|
|
103
|
-
"""
|
|
104
|
-
return self._answers
|
|
105
|
-
|
|
106
|
-
@answers.setter
|
|
107
|
-
def answers(self, answers):
|
|
108
|
-
r"""Sets the answers of this CreateAskQuestionResponse.
|
|
109
|
-
|
|
110
|
-
答案列表
|
|
111
|
-
|
|
112
|
-
:param answers: The answers of this CreateAskQuestionResponse.
|
|
113
|
-
:type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`]
|
|
114
|
-
"""
|
|
115
|
-
self._answers = answers
|
|
116
|
-
|
|
117
|
-
@property
|
|
118
|
-
def error_code(self):
|
|
119
|
-
r"""Gets the error_code of this CreateAskQuestionResponse.
|
|
120
|
-
|
|
121
|
-
错误码
|
|
122
|
-
|
|
123
|
-
:return: The error_code of this CreateAskQuestionResponse.
|
|
124
|
-
:rtype: str
|
|
125
|
-
"""
|
|
126
|
-
return self._error_code
|
|
127
|
-
|
|
128
|
-
@error_code.setter
|
|
129
|
-
def error_code(self, error_code):
|
|
130
|
-
r"""Sets the error_code of this CreateAskQuestionResponse.
|
|
131
|
-
|
|
132
|
-
错误码
|
|
133
|
-
|
|
134
|
-
:param error_code: The error_code of this CreateAskQuestionResponse.
|
|
135
|
-
:type error_code: str
|
|
136
|
-
"""
|
|
137
|
-
self._error_code = error_code
|
|
138
|
-
|
|
139
|
-
@property
|
|
140
|
-
def error_msg(self):
|
|
141
|
-
r"""Gets the error_msg of this CreateAskQuestionResponse.
|
|
142
|
-
|
|
143
|
-
错误描述
|
|
144
|
-
|
|
145
|
-
:return: The error_msg of this CreateAskQuestionResponse.
|
|
146
|
-
:rtype: str
|
|
147
|
-
"""
|
|
148
|
-
return self._error_msg
|
|
149
|
-
|
|
150
|
-
@error_msg.setter
|
|
151
|
-
def error_msg(self, error_msg):
|
|
152
|
-
r"""Sets the error_msg of this CreateAskQuestionResponse.
|
|
153
|
-
|
|
154
|
-
错误描述
|
|
155
|
-
|
|
156
|
-
:param error_msg: The error_msg of this CreateAskQuestionResponse.
|
|
157
|
-
:type error_msg: str
|
|
158
|
-
"""
|
|
159
|
-
self._error_msg = error_msg
|
|
160
|
-
|
|
161
|
-
@property
|
|
162
|
-
def request_id(self):
|
|
163
|
-
r"""Gets the request_id of this CreateAskQuestionResponse.
|
|
164
|
-
|
|
165
|
-
请求Id
|
|
166
|
-
|
|
167
|
-
:return: The request_id of this CreateAskQuestionResponse.
|
|
168
|
-
:rtype: str
|
|
169
|
-
"""
|
|
170
|
-
return self._request_id
|
|
171
|
-
|
|
172
|
-
@request_id.setter
|
|
173
|
-
def request_id(self, request_id):
|
|
174
|
-
r"""Sets the request_id of this CreateAskQuestionResponse.
|
|
175
|
-
|
|
176
|
-
请求Id
|
|
177
|
-
|
|
178
|
-
:param request_id: The request_id of this CreateAskQuestionResponse.
|
|
179
|
-
:type request_id: str
|
|
180
|
-
"""
|
|
181
|
-
self._request_id = request_id
|
|
182
|
-
|
|
183
|
-
def to_dict(self):
|
|
184
|
-
"""Returns the model properties as a dict"""
|
|
185
|
-
result = {}
|
|
186
|
-
|
|
187
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
188
|
-
value = getattr(self, attr)
|
|
189
|
-
if isinstance(value, list):
|
|
190
|
-
result[attr] = list(map(
|
|
191
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
192
|
-
value
|
|
193
|
-
))
|
|
194
|
-
elif hasattr(value, "to_dict"):
|
|
195
|
-
result[attr] = value.to_dict()
|
|
196
|
-
elif isinstance(value, dict):
|
|
197
|
-
result[attr] = dict(map(
|
|
198
|
-
lambda item: (item[0], item[1].to_dict())
|
|
199
|
-
if hasattr(item[1], "to_dict") else item,
|
|
200
|
-
value.items()
|
|
201
|
-
))
|
|
202
|
-
else:
|
|
203
|
-
if attr in self.sensitive_list:
|
|
204
|
-
result[attr] = "****"
|
|
205
|
-
else:
|
|
206
|
-
result[attr] = value
|
|
207
|
-
|
|
208
|
-
return result
|
|
209
|
-
|
|
210
|
-
def to_str(self):
|
|
211
|
-
"""Returns the string representation of the model"""
|
|
212
|
-
import simplejson as json
|
|
213
|
-
if six.PY2:
|
|
214
|
-
import sys
|
|
215
|
-
reload(sys)
|
|
216
|
-
sys.setdefaultencoding("utf-8")
|
|
217
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
218
|
-
|
|
219
|
-
def __repr__(self):
|
|
220
|
-
"""For `print`"""
|
|
221
|
-
return self.to_str()
|
|
222
|
-
|
|
223
|
-
def __eq__(self, other):
|
|
224
|
-
"""Returns true if both objects are equal"""
|
|
225
|
-
if not isinstance(other, CreateAskQuestionResponse):
|
|
226
|
-
return False
|
|
227
|
-
|
|
228
|
-
return self.__dict__ == other.__dict__
|
|
229
|
-
|
|
230
|
-
def __ne__(self, other):
|
|
231
|
-
"""Returns true if both objects are not equal"""
|
|
232
|
-
return not self == other
|