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,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 CreateSessionResponse(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
|
-
'session_id': 'str'
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
attribute_map = {
|
|
27
|
-
'error_code': 'error_code',
|
|
28
|
-
'error_msg': 'error_msg',
|
|
29
|
-
'session_id': 'session_id'
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
def __init__(self, error_code=None, error_msg=None, session_id=None):
|
|
33
|
-
r"""CreateSessionResponse
|
|
34
|
-
|
|
35
|
-
The model defined in huaweicloud sdk
|
|
36
|
-
|
|
37
|
-
:param error_code: 错误码
|
|
38
|
-
:type error_code: str
|
|
39
|
-
:param error_msg: 错误描述
|
|
40
|
-
:type error_msg: str
|
|
41
|
-
:param session_id: 会话Id
|
|
42
|
-
:type session_id: str
|
|
43
|
-
"""
|
|
44
|
-
|
|
45
|
-
super(CreateSessionResponse, self).__init__()
|
|
46
|
-
|
|
47
|
-
self._error_code = None
|
|
48
|
-
self._error_msg = None
|
|
49
|
-
self._session_id = None
|
|
50
|
-
self.discriminator = None
|
|
51
|
-
|
|
52
|
-
if error_code is not None:
|
|
53
|
-
self.error_code = error_code
|
|
54
|
-
if error_msg is not None:
|
|
55
|
-
self.error_msg = error_msg
|
|
56
|
-
if session_id is not None:
|
|
57
|
-
self.session_id = session_id
|
|
58
|
-
|
|
59
|
-
@property
|
|
60
|
-
def error_code(self):
|
|
61
|
-
r"""Gets the error_code of this CreateSessionResponse.
|
|
62
|
-
|
|
63
|
-
错误码
|
|
64
|
-
|
|
65
|
-
:return: The error_code of this CreateSessionResponse.
|
|
66
|
-
:rtype: str
|
|
67
|
-
"""
|
|
68
|
-
return self._error_code
|
|
69
|
-
|
|
70
|
-
@error_code.setter
|
|
71
|
-
def error_code(self, error_code):
|
|
72
|
-
r"""Sets the error_code of this CreateSessionResponse.
|
|
73
|
-
|
|
74
|
-
错误码
|
|
75
|
-
|
|
76
|
-
:param error_code: The error_code of this CreateSessionResponse.
|
|
77
|
-
:type error_code: str
|
|
78
|
-
"""
|
|
79
|
-
self._error_code = error_code
|
|
80
|
-
|
|
81
|
-
@property
|
|
82
|
-
def error_msg(self):
|
|
83
|
-
r"""Gets the error_msg of this CreateSessionResponse.
|
|
84
|
-
|
|
85
|
-
错误描述
|
|
86
|
-
|
|
87
|
-
:return: The error_msg of this CreateSessionResponse.
|
|
88
|
-
:rtype: str
|
|
89
|
-
"""
|
|
90
|
-
return self._error_msg
|
|
91
|
-
|
|
92
|
-
@error_msg.setter
|
|
93
|
-
def error_msg(self, error_msg):
|
|
94
|
-
r"""Sets the error_msg of this CreateSessionResponse.
|
|
95
|
-
|
|
96
|
-
错误描述
|
|
97
|
-
|
|
98
|
-
:param error_msg: The error_msg of this CreateSessionResponse.
|
|
99
|
-
:type error_msg: str
|
|
100
|
-
"""
|
|
101
|
-
self._error_msg = error_msg
|
|
102
|
-
|
|
103
|
-
@property
|
|
104
|
-
def session_id(self):
|
|
105
|
-
r"""Gets the session_id of this CreateSessionResponse.
|
|
106
|
-
|
|
107
|
-
会话Id
|
|
108
|
-
|
|
109
|
-
:return: The session_id of this CreateSessionResponse.
|
|
110
|
-
:rtype: str
|
|
111
|
-
"""
|
|
112
|
-
return self._session_id
|
|
113
|
-
|
|
114
|
-
@session_id.setter
|
|
115
|
-
def session_id(self, session_id):
|
|
116
|
-
r"""Sets the session_id of this CreateSessionResponse.
|
|
117
|
-
|
|
118
|
-
会话Id
|
|
119
|
-
|
|
120
|
-
:param session_id: The session_id of this CreateSessionResponse.
|
|
121
|
-
:type session_id: str
|
|
122
|
-
"""
|
|
123
|
-
self._session_id = session_id
|
|
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, CreateSessionResponse):
|
|
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,115 +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 EvaluateRequestReq:
|
|
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
|
-
'degree': 'int'
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
attribute_map = {
|
|
24
|
-
'degree': 'degree'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
def __init__(self, degree=None):
|
|
28
|
-
r"""EvaluateRequestReq
|
|
29
|
-
|
|
30
|
-
The model defined in huaweicloud sdk
|
|
31
|
-
|
|
32
|
-
:param degree: 评价结果
|
|
33
|
-
:type degree: int
|
|
34
|
-
"""
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
self._degree = None
|
|
39
|
-
self.discriminator = None
|
|
40
|
-
|
|
41
|
-
if degree is not None:
|
|
42
|
-
self.degree = degree
|
|
43
|
-
|
|
44
|
-
@property
|
|
45
|
-
def degree(self):
|
|
46
|
-
r"""Gets the degree of this EvaluateRequestReq.
|
|
47
|
-
|
|
48
|
-
评价结果
|
|
49
|
-
|
|
50
|
-
:return: The degree of this EvaluateRequestReq.
|
|
51
|
-
:rtype: int
|
|
52
|
-
"""
|
|
53
|
-
return self._degree
|
|
54
|
-
|
|
55
|
-
@degree.setter
|
|
56
|
-
def degree(self, degree):
|
|
57
|
-
r"""Sets the degree of this EvaluateRequestReq.
|
|
58
|
-
|
|
59
|
-
评价结果
|
|
60
|
-
|
|
61
|
-
:param degree: The degree of this EvaluateRequestReq.
|
|
62
|
-
:type degree: int
|
|
63
|
-
"""
|
|
64
|
-
self._degree = degree
|
|
65
|
-
|
|
66
|
-
def to_dict(self):
|
|
67
|
-
"""Returns the model properties as a dict"""
|
|
68
|
-
result = {}
|
|
69
|
-
|
|
70
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
71
|
-
value = getattr(self, attr)
|
|
72
|
-
if isinstance(value, list):
|
|
73
|
-
result[attr] = list(map(
|
|
74
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
75
|
-
value
|
|
76
|
-
))
|
|
77
|
-
elif hasattr(value, "to_dict"):
|
|
78
|
-
result[attr] = value.to_dict()
|
|
79
|
-
elif isinstance(value, dict):
|
|
80
|
-
result[attr] = dict(map(
|
|
81
|
-
lambda item: (item[0], item[1].to_dict())
|
|
82
|
-
if hasattr(item[1], "to_dict") else item,
|
|
83
|
-
value.items()
|
|
84
|
-
))
|
|
85
|
-
else:
|
|
86
|
-
if attr in self.sensitive_list:
|
|
87
|
-
result[attr] = "****"
|
|
88
|
-
else:
|
|
89
|
-
result[attr] = value
|
|
90
|
-
|
|
91
|
-
return result
|
|
92
|
-
|
|
93
|
-
def to_str(self):
|
|
94
|
-
"""Returns the string representation of the model"""
|
|
95
|
-
import simplejson as json
|
|
96
|
-
if six.PY2:
|
|
97
|
-
import sys
|
|
98
|
-
reload(sys)
|
|
99
|
-
sys.setdefaultencoding("utf-8")
|
|
100
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
101
|
-
|
|
102
|
-
def __repr__(self):
|
|
103
|
-
"""For `print`"""
|
|
104
|
-
return self.to_str()
|
|
105
|
-
|
|
106
|
-
def __eq__(self, other):
|
|
107
|
-
"""Returns true if both objects are equal"""
|
|
108
|
-
if not isinstance(other, EvaluateRequestReq):
|
|
109
|
-
return False
|
|
110
|
-
|
|
111
|
-
return self.__dict__ == other.__dict__
|
|
112
|
-
|
|
113
|
-
def __ne__(self, other):
|
|
114
|
-
"""Returns true if both objects are not equal"""
|
|
115
|
-
return not self == other
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ExtendQuestion:
|
|
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
|
-
'content': 'str',
|
|
21
|
-
'score': 'float'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
attribute_map = {
|
|
25
|
-
'content': 'content',
|
|
26
|
-
'score': 'score'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
def __init__(self, content=None, score=None):
|
|
30
|
-
r"""ExtendQuestion
|
|
31
|
-
|
|
32
|
-
The model defined in huaweicloud sdk
|
|
33
|
-
|
|
34
|
-
:param content: 扩展问内容
|
|
35
|
-
:type content: str
|
|
36
|
-
:param score: 分值
|
|
37
|
-
:type score: float
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
self._content = None
|
|
43
|
-
self._score = None
|
|
44
|
-
self.discriminator = None
|
|
45
|
-
|
|
46
|
-
if content is not None:
|
|
47
|
-
self.content = content
|
|
48
|
-
if score is not None:
|
|
49
|
-
self.score = score
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def content(self):
|
|
53
|
-
r"""Gets the content of this ExtendQuestion.
|
|
54
|
-
|
|
55
|
-
扩展问内容
|
|
56
|
-
|
|
57
|
-
:return: The content of this ExtendQuestion.
|
|
58
|
-
:rtype: str
|
|
59
|
-
"""
|
|
60
|
-
return self._content
|
|
61
|
-
|
|
62
|
-
@content.setter
|
|
63
|
-
def content(self, content):
|
|
64
|
-
r"""Sets the content of this ExtendQuestion.
|
|
65
|
-
|
|
66
|
-
扩展问内容
|
|
67
|
-
|
|
68
|
-
:param content: The content of this ExtendQuestion.
|
|
69
|
-
:type content: str
|
|
70
|
-
"""
|
|
71
|
-
self._content = content
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def score(self):
|
|
75
|
-
r"""Gets the score of this ExtendQuestion.
|
|
76
|
-
|
|
77
|
-
分值
|
|
78
|
-
|
|
79
|
-
:return: The score of this ExtendQuestion.
|
|
80
|
-
:rtype: float
|
|
81
|
-
"""
|
|
82
|
-
return self._score
|
|
83
|
-
|
|
84
|
-
@score.setter
|
|
85
|
-
def score(self, score):
|
|
86
|
-
r"""Sets the score of this ExtendQuestion.
|
|
87
|
-
|
|
88
|
-
分值
|
|
89
|
-
|
|
90
|
-
:param score: The score of this ExtendQuestion.
|
|
91
|
-
:type score: float
|
|
92
|
-
"""
|
|
93
|
-
self._score = score
|
|
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, ExtendQuestion):
|
|
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,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 FeedbackOption:
|
|
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
|
-
'feedback_option_id': 'str',
|
|
21
|
-
'feedback_option_name': 'str'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
attribute_map = {
|
|
25
|
-
'feedback_option_id': 'feedback_option_id',
|
|
26
|
-
'feedback_option_name': 'feedback_option_name'
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
def __init__(self, feedback_option_id=None, feedback_option_name=None):
|
|
30
|
-
r"""FeedbackOption
|
|
31
|
-
|
|
32
|
-
The model defined in huaweicloud sdk
|
|
33
|
-
|
|
34
|
-
:param feedback_option_id: 反馈选项id
|
|
35
|
-
:type feedback_option_id: str
|
|
36
|
-
:param feedback_option_name: 反馈选项名称
|
|
37
|
-
:type feedback_option_name: str
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
self._feedback_option_id = None
|
|
43
|
-
self._feedback_option_name = None
|
|
44
|
-
self.discriminator = None
|
|
45
|
-
|
|
46
|
-
if feedback_option_id is not None:
|
|
47
|
-
self.feedback_option_id = feedback_option_id
|
|
48
|
-
if feedback_option_name is not None:
|
|
49
|
-
self.feedback_option_name = feedback_option_name
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def feedback_option_id(self):
|
|
53
|
-
r"""Gets the feedback_option_id of this FeedbackOption.
|
|
54
|
-
|
|
55
|
-
反馈选项id
|
|
56
|
-
|
|
57
|
-
:return: The feedback_option_id of this FeedbackOption.
|
|
58
|
-
:rtype: str
|
|
59
|
-
"""
|
|
60
|
-
return self._feedback_option_id
|
|
61
|
-
|
|
62
|
-
@feedback_option_id.setter
|
|
63
|
-
def feedback_option_id(self, feedback_option_id):
|
|
64
|
-
r"""Sets the feedback_option_id of this FeedbackOption.
|
|
65
|
-
|
|
66
|
-
反馈选项id
|
|
67
|
-
|
|
68
|
-
:param feedback_option_id: The feedback_option_id of this FeedbackOption.
|
|
69
|
-
:type feedback_option_id: str
|
|
70
|
-
"""
|
|
71
|
-
self._feedback_option_id = feedback_option_id
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def feedback_option_name(self):
|
|
75
|
-
r"""Gets the feedback_option_name of this FeedbackOption.
|
|
76
|
-
|
|
77
|
-
反馈选项名称
|
|
78
|
-
|
|
79
|
-
:return: The feedback_option_name of this FeedbackOption.
|
|
80
|
-
:rtype: str
|
|
81
|
-
"""
|
|
82
|
-
return self._feedback_option_name
|
|
83
|
-
|
|
84
|
-
@feedback_option_name.setter
|
|
85
|
-
def feedback_option_name(self, feedback_option_name):
|
|
86
|
-
r"""Sets the feedback_option_name of this FeedbackOption.
|
|
87
|
-
|
|
88
|
-
反馈选项名称
|
|
89
|
-
|
|
90
|
-
:param feedback_option_name: The feedback_option_name of this FeedbackOption.
|
|
91
|
-
:type feedback_option_name: str
|
|
92
|
-
"""
|
|
93
|
-
self._feedback_option_name = feedback_option_name
|
|
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, FeedbackOption):
|
|
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
|