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.

Files changed (69) hide show
  1. huaweicloudsdkosm/v2/__init__.py +0 -60
  2. huaweicloudsdkosm/v2/model/__init__.py +0 -60
  3. huaweicloudsdkosm/v2/osm_async_client.py +45 -1130
  4. huaweicloudsdkosm/v2/osm_client.py +45 -1130
  5. {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/METADATA +2 -2
  6. {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/RECORD +9 -69
  7. huaweicloudsdkosm/v2/model/answer.py +0 -227
  8. huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
  9. huaweicloudsdkosm/v2/model/answer_info.py +0 -231
  10. huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
  11. huaweicloudsdkosm/v2/model/article.py +0 -347
  12. huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
  13. huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
  14. huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
  15. huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
  16. huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
  17. huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
  18. huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
  19. huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
  20. huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
  21. huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
  22. huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
  23. huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
  24. huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
  25. huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
  26. huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
  27. huaweicloudsdkosm/v2/model/extend_question.py +0 -144
  28. huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
  29. huaweicloudsdkosm/v2/model/lang_result.py +0 -144
  30. huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
  31. huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
  32. huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
  33. huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
  34. huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
  35. huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
  36. huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
  37. huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
  38. huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
  39. huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
  40. huaweicloudsdkosm/v2/model/notice.py +0 -199
  41. huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
  42. huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
  43. huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
  44. huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
  45. huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
  46. huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
  47. huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
  48. huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
  49. huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
  50. huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
  51. huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
  52. huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
  53. huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
  54. huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
  55. huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
  56. huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
  57. huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
  58. huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
  59. huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
  60. huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
  61. huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
  62. huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
  63. huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
  64. huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
  65. huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
  66. huaweicloudsdkosm/v2/model/tool.py +0 -287
  67. {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/LICENSE +0 -0
  68. {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/WHEEL +0 -0
  69. {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/top_level.txt +0 -0
@@ -1,225 +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 ShowQaPairsRequest:
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
- 'search_type': 'str',
24
- 'body': 'SearchQaPairsReq'
25
- }
26
-
27
- attribute_map = {
28
- 'x_service_key': 'x-service-key',
29
- 'x_site': 'x-site',
30
- 'x_language': 'x-language',
31
- 'search_type': 'search_type',
32
- 'body': 'body'
33
- }
34
-
35
- def __init__(self, x_service_key=None, x_site=None, x_language=None, search_type=None, body=None):
36
- r"""ShowQaPairsRequest
37
-
38
- The model defined in huaweicloud sdk
39
-
40
- :param x_service_key: 调用智能客服服务标志。
41
- :type x_service_key: str
42
- :param x_site: 站点标记,0-中国站 1-国际站
43
- :type x_site: str
44
- :param x_language: 区域语言简写,en-us zh-cn
45
- :type x_language: str
46
- :param search_type: - HOT: - RECOMMEND:
47
- :type search_type: str
48
- :param body: Body of the ShowQaPairsRequest
49
- :type body: :class:`huaweicloudsdkosm.v2.SearchQaPairsReq`
50
- """
51
-
52
-
53
-
54
- self._x_service_key = None
55
- self._x_site = None
56
- self._x_language = None
57
- self._search_type = None
58
- self._body = None
59
- self.discriminator = None
60
-
61
- self.x_service_key = x_service_key
62
- if x_site is not None:
63
- self.x_site = x_site
64
- if x_language is not None:
65
- self.x_language = x_language
66
- self.search_type = search_type
67
- if body is not None:
68
- self.body = body
69
-
70
- @property
71
- def x_service_key(self):
72
- r"""Gets the x_service_key of this ShowQaPairsRequest.
73
-
74
- 调用智能客服服务标志。
75
-
76
- :return: The x_service_key of this ShowQaPairsRequest.
77
- :rtype: str
78
- """
79
- return self._x_service_key
80
-
81
- @x_service_key.setter
82
- def x_service_key(self, x_service_key):
83
- r"""Sets the x_service_key of this ShowQaPairsRequest.
84
-
85
- 调用智能客服服务标志。
86
-
87
- :param x_service_key: The x_service_key of this ShowQaPairsRequest.
88
- :type x_service_key: str
89
- """
90
- self._x_service_key = x_service_key
91
-
92
- @property
93
- def x_site(self):
94
- r"""Gets the x_site of this ShowQaPairsRequest.
95
-
96
- 站点标记,0-中国站 1-国际站
97
-
98
- :return: The x_site of this ShowQaPairsRequest.
99
- :rtype: str
100
- """
101
- return self._x_site
102
-
103
- @x_site.setter
104
- def x_site(self, x_site):
105
- r"""Sets the x_site of this ShowQaPairsRequest.
106
-
107
- 站点标记,0-中国站 1-国际站
108
-
109
- :param x_site: The x_site of this ShowQaPairsRequest.
110
- :type x_site: str
111
- """
112
- self._x_site = x_site
113
-
114
- @property
115
- def x_language(self):
116
- r"""Gets the x_language of this ShowQaPairsRequest.
117
-
118
- 区域语言简写,en-us zh-cn
119
-
120
- :return: The x_language of this ShowQaPairsRequest.
121
- :rtype: str
122
- """
123
- return self._x_language
124
-
125
- @x_language.setter
126
- def x_language(self, x_language):
127
- r"""Sets the x_language of this ShowQaPairsRequest.
128
-
129
- 区域语言简写,en-us zh-cn
130
-
131
- :param x_language: The x_language of this ShowQaPairsRequest.
132
- :type x_language: str
133
- """
134
- self._x_language = x_language
135
-
136
- @property
137
- def search_type(self):
138
- r"""Gets the search_type of this ShowQaPairsRequest.
139
-
140
- - HOT: - RECOMMEND:
141
-
142
- :return: The search_type of this ShowQaPairsRequest.
143
- :rtype: str
144
- """
145
- return self._search_type
146
-
147
- @search_type.setter
148
- def search_type(self, search_type):
149
- r"""Sets the search_type of this ShowQaPairsRequest.
150
-
151
- - HOT: - RECOMMEND:
152
-
153
- :param search_type: The search_type of this ShowQaPairsRequest.
154
- :type search_type: str
155
- """
156
- self._search_type = search_type
157
-
158
- @property
159
- def body(self):
160
- r"""Gets the body of this ShowQaPairsRequest.
161
-
162
- :return: The body of this ShowQaPairsRequest.
163
- :rtype: :class:`huaweicloudsdkosm.v2.SearchQaPairsReq`
164
- """
165
- return self._body
166
-
167
- @body.setter
168
- def body(self, body):
169
- r"""Sets the body of this ShowQaPairsRequest.
170
-
171
- :param body: The body of this ShowQaPairsRequest.
172
- :type body: :class:`huaweicloudsdkosm.v2.SearchQaPairsReq`
173
- """
174
- self._body = body
175
-
176
- def to_dict(self):
177
- """Returns the model properties as a dict"""
178
- result = {}
179
-
180
- for attr, _ in six.iteritems(self.openapi_types):
181
- value = getattr(self, attr)
182
- if isinstance(value, list):
183
- result[attr] = list(map(
184
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
185
- value
186
- ))
187
- elif hasattr(value, "to_dict"):
188
- result[attr] = value.to_dict()
189
- elif isinstance(value, dict):
190
- result[attr] = dict(map(
191
- lambda item: (item[0], item[1].to_dict())
192
- if hasattr(item[1], "to_dict") else item,
193
- value.items()
194
- ))
195
- else:
196
- if attr in self.sensitive_list:
197
- result[attr] = "****"
198
- else:
199
- result[attr] = value
200
-
201
- return result
202
-
203
- def to_str(self):
204
- """Returns the string representation of the model"""
205
- import simplejson as json
206
- if six.PY2:
207
- import sys
208
- reload(sys)
209
- sys.setdefaultencoding("utf-8")
210
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
211
-
212
- def __repr__(self):
213
- """For `print`"""
214
- return self.to_str()
215
-
216
- def __eq__(self, other):
217
- """Returns true if both objects are equal"""
218
- if not isinstance(other, ShowQaPairsRequest):
219
- return False
220
-
221
- return self.__dict__ == other.__dict__
222
-
223
- def __ne__(self, other):
224
- """Returns true if both objects are not equal"""
225
- 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 ShowQaPairsResponse(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
- 'qa_pairs': 'list[SimpleQaPair]'
24
- }
25
-
26
- attribute_map = {
27
- 'error_code': 'error_code',
28
- 'error_msg': 'error_msg',
29
- 'qa_pairs': 'qa_pairs'
30
- }
31
-
32
- def __init__(self, error_code=None, error_msg=None, qa_pairs=None):
33
- r"""ShowQaPairsResponse
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 qa_pairs: 语料列表
42
- :type qa_pairs: list[:class:`huaweicloudsdkosm.v2.SimpleQaPair`]
43
- """
44
-
45
- super(ShowQaPairsResponse, self).__init__()
46
-
47
- self._error_code = None
48
- self._error_msg = None
49
- self._qa_pairs = 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 qa_pairs is not None:
57
- self.qa_pairs = qa_pairs
58
-
59
- @property
60
- def error_code(self):
61
- r"""Gets the error_code of this ShowQaPairsResponse.
62
-
63
- 错误码
64
-
65
- :return: The error_code of this ShowQaPairsResponse.
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 ShowQaPairsResponse.
73
-
74
- 错误码
75
-
76
- :param error_code: The error_code of this ShowQaPairsResponse.
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 ShowQaPairsResponse.
84
-
85
- 错误描述
86
-
87
- :return: The error_msg of this ShowQaPairsResponse.
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 ShowQaPairsResponse.
95
-
96
- 错误描述
97
-
98
- :param error_msg: The error_msg of this ShowQaPairsResponse.
99
- :type error_msg: str
100
- """
101
- self._error_msg = error_msg
102
-
103
- @property
104
- def qa_pairs(self):
105
- r"""Gets the qa_pairs of this ShowQaPairsResponse.
106
-
107
- 语料列表
108
-
109
- :return: The qa_pairs of this ShowQaPairsResponse.
110
- :rtype: list[:class:`huaweicloudsdkosm.v2.SimpleQaPair`]
111
- """
112
- return self._qa_pairs
113
-
114
- @qa_pairs.setter
115
- def qa_pairs(self, qa_pairs):
116
- r"""Sets the qa_pairs of this ShowQaPairsResponse.
117
-
118
- 语料列表
119
-
120
- :param qa_pairs: The qa_pairs of this ShowQaPairsResponse.
121
- :type qa_pairs: list[:class:`huaweicloudsdkosm.v2.SimpleQaPair`]
122
- """
123
- self._qa_pairs = qa_pairs
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, ShowQaPairsResponse):
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,259 +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 ShowThemeRequest:
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
- 'product_type_id': 'str',
24
- 'product_type_name': 'str',
25
- 'product_type_short_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
- 'product_type_id': 'product_type_id',
33
- 'product_type_name': 'product_type_name',
34
- 'product_type_short_name': 'product_type_short_name'
35
- }
36
-
37
- def __init__(self, x_service_key=None, x_site=None, x_language=None, product_type_id=None, product_type_name=None, product_type_short_name=None):
38
- r"""ShowThemeRequest
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 product_type_id: 产品类型Id
49
- :type product_type_id: str
50
- :param product_type_name: 产品类型名称
51
- :type product_type_name: str
52
- :param product_type_short_name: 产品类型缩写
53
- :type product_type_short_name: str
54
- """
55
-
56
-
57
-
58
- self._x_service_key = None
59
- self._x_site = None
60
- self._x_language = None
61
- self._product_type_id = None
62
- self._product_type_name = None
63
- self._product_type_short_name = None
64
- self.discriminator = None
65
-
66
- self.x_service_key = x_service_key
67
- if x_site is not None:
68
- self.x_site = x_site
69
- if x_language is not None:
70
- self.x_language = x_language
71
- if product_type_id is not None:
72
- self.product_type_id = product_type_id
73
- if product_type_name is not None:
74
- self.product_type_name = product_type_name
75
- if product_type_short_name is not None:
76
- self.product_type_short_name = product_type_short_name
77
-
78
- @property
79
- def x_service_key(self):
80
- r"""Gets the x_service_key of this ShowThemeRequest.
81
-
82
- 调用智能客服服务标志。
83
-
84
- :return: The x_service_key of this ShowThemeRequest.
85
- :rtype: str
86
- """
87
- return self._x_service_key
88
-
89
- @x_service_key.setter
90
- def x_service_key(self, x_service_key):
91
- r"""Sets the x_service_key of this ShowThemeRequest.
92
-
93
- 调用智能客服服务标志。
94
-
95
- :param x_service_key: The x_service_key of this ShowThemeRequest.
96
- :type x_service_key: str
97
- """
98
- self._x_service_key = x_service_key
99
-
100
- @property
101
- def x_site(self):
102
- r"""Gets the x_site of this ShowThemeRequest.
103
-
104
- 站点标记,0-中国站 1-国际站
105
-
106
- :return: The x_site of this ShowThemeRequest.
107
- :rtype: str
108
- """
109
- return self._x_site
110
-
111
- @x_site.setter
112
- def x_site(self, x_site):
113
- r"""Sets the x_site of this ShowThemeRequest.
114
-
115
- 站点标记,0-中国站 1-国际站
116
-
117
- :param x_site: The x_site of this ShowThemeRequest.
118
- :type x_site: str
119
- """
120
- self._x_site = x_site
121
-
122
- @property
123
- def x_language(self):
124
- r"""Gets the x_language of this ShowThemeRequest.
125
-
126
- 区域语言简写,en-us zh-cn
127
-
128
- :return: The x_language of this ShowThemeRequest.
129
- :rtype: str
130
- """
131
- return self._x_language
132
-
133
- @x_language.setter
134
- def x_language(self, x_language):
135
- r"""Sets the x_language of this ShowThemeRequest.
136
-
137
- 区域语言简写,en-us zh-cn
138
-
139
- :param x_language: The x_language of this ShowThemeRequest.
140
- :type x_language: str
141
- """
142
- self._x_language = x_language
143
-
144
- @property
145
- def product_type_id(self):
146
- r"""Gets the product_type_id of this ShowThemeRequest.
147
-
148
- 产品类型Id
149
-
150
- :return: The product_type_id of this ShowThemeRequest.
151
- :rtype: str
152
- """
153
- return self._product_type_id
154
-
155
- @product_type_id.setter
156
- def product_type_id(self, product_type_id):
157
- r"""Sets the product_type_id of this ShowThemeRequest.
158
-
159
- 产品类型Id
160
-
161
- :param product_type_id: The product_type_id of this ShowThemeRequest.
162
- :type product_type_id: str
163
- """
164
- self._product_type_id = product_type_id
165
-
166
- @property
167
- def product_type_name(self):
168
- r"""Gets the product_type_name of this ShowThemeRequest.
169
-
170
- 产品类型名称
171
-
172
- :return: The product_type_name of this ShowThemeRequest.
173
- :rtype: str
174
- """
175
- return self._product_type_name
176
-
177
- @product_type_name.setter
178
- def product_type_name(self, product_type_name):
179
- r"""Sets the product_type_name of this ShowThemeRequest.
180
-
181
- 产品类型名称
182
-
183
- :param product_type_name: The product_type_name of this ShowThemeRequest.
184
- :type product_type_name: str
185
- """
186
- self._product_type_name = product_type_name
187
-
188
- @property
189
- def product_type_short_name(self):
190
- r"""Gets the product_type_short_name of this ShowThemeRequest.
191
-
192
- 产品类型缩写
193
-
194
- :return: The product_type_short_name of this ShowThemeRequest.
195
- :rtype: str
196
- """
197
- return self._product_type_short_name
198
-
199
- @product_type_short_name.setter
200
- def product_type_short_name(self, product_type_short_name):
201
- r"""Sets the product_type_short_name of this ShowThemeRequest.
202
-
203
- 产品类型缩写
204
-
205
- :param product_type_short_name: The product_type_short_name of this ShowThemeRequest.
206
- :type product_type_short_name: str
207
- """
208
- self._product_type_short_name = product_type_short_name
209
-
210
- def to_dict(self):
211
- """Returns the model properties as a dict"""
212
- result = {}
213
-
214
- for attr, _ in six.iteritems(self.openapi_types):
215
- value = getattr(self, attr)
216
- if isinstance(value, list):
217
- result[attr] = list(map(
218
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
219
- value
220
- ))
221
- elif hasattr(value, "to_dict"):
222
- result[attr] = value.to_dict()
223
- elif isinstance(value, dict):
224
- result[attr] = dict(map(
225
- lambda item: (item[0], item[1].to_dict())
226
- if hasattr(item[1], "to_dict") else item,
227
- value.items()
228
- ))
229
- else:
230
- if attr in self.sensitive_list:
231
- result[attr] = "****"
232
- else:
233
- result[attr] = value
234
-
235
- return result
236
-
237
- def to_str(self):
238
- """Returns the string representation of the model"""
239
- import simplejson as json
240
- if six.PY2:
241
- import sys
242
- reload(sys)
243
- sys.setdefaultencoding("utf-8")
244
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
245
-
246
- def __repr__(self):
247
- """For `print`"""
248
- return self.to_str()
249
-
250
- def __eq__(self, other):
251
- """Returns true if both objects are equal"""
252
- if not isinstance(other, ShowThemeRequest):
253
- return False
254
-
255
- return self.__dict__ == other.__dict__
256
-
257
- def __ne__(self, other):
258
- """Returns true if both objects are not equal"""
259
- return not self == other