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