huaweicloudsdkrocketmq 3.1.69__py2.py3-none-any.whl → 3.1.71__py2.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.
Files changed (35) hide show
  1. huaweicloudsdkrocketmq/v2/__init__.py +16 -0
  2. huaweicloudsdkrocketmq/v2/model/__init__.py +16 -0
  3. huaweicloudsdkrocketmq/v2/model/consumer_group.py +3 -3
  4. huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_req.py +3 -3
  5. huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +3 -3
  6. huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +3 -3
  7. huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +3 -3
  8. huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
  9. huaweicloudsdkrocketmq/v2/model/modify_config_req.py +115 -0
  10. huaweicloudsdkrocketmq/v2/model/resize_engine_instance_req.py +201 -0
  11. huaweicloudsdkrocketmq/v2/model/resize_instance_request.py +167 -0
  12. huaweicloudsdkrocketmq/v2/model/resize_instance_response.py +116 -0
  13. huaweicloudsdkrocketmq/v2/model/rocket_mq_config_req.py +144 -0
  14. huaweicloudsdkrocketmq/v2/model/rocket_mq_config_resp.py +260 -0
  15. huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_info_entity.py +430 -0
  16. huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_ios_entity.py +202 -0
  17. huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_properties_entity.py +318 -0
  18. huaweicloudsdkrocketmq/v2/model/rocket_mq_product_support_features_entity.py +144 -0
  19. huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_request.py +171 -0
  20. huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py +174 -0
  21. huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py +3 -3
  22. huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_request.py +114 -0
  23. huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_response.py +116 -0
  24. huaweicloudsdkrocketmq/v2/model/tag_entity.py +6 -6
  25. huaweicloudsdkrocketmq/v2/model/topic.py +3 -3
  26. huaweicloudsdkrocketmq/v2/model/update_consumer_group.py +6 -6
  27. huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_request.py +139 -0
  28. huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_response.py +85 -0
  29. huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +272 -0
  30. huaweicloudsdkrocketmq/v2/rocketmq_client.py +272 -0
  31. {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/METADATA +2 -2
  32. {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/RECORD +35 -19
  33. {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/WHEEL +1 -1
  34. {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/LICENSE +0 -0
  35. {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,318 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RocketMQExtendProductPropertiesEntity:
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
+ 'max_broker': 'str',
21
+ 'max_topic_per_broker': 'str',
22
+ 'max_consumer_per_broker': 'str',
23
+ 'max_storage_per_node': 'str',
24
+ 'min_broker': 'str',
25
+ 'engine_versions': 'str',
26
+ 'min_storage_per_node': 'str',
27
+ 'product_alias': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'max_broker': 'max_broker',
32
+ 'max_topic_per_broker': 'max_topic_per_broker',
33
+ 'max_consumer_per_broker': 'max_consumer_per_broker',
34
+ 'max_storage_per_node': 'max_storage_per_node',
35
+ 'min_broker': 'min_broker',
36
+ 'engine_versions': 'engine_versions',
37
+ 'min_storage_per_node': 'min_storage_per_node',
38
+ 'product_alias': 'product_alias'
39
+ }
40
+
41
+ def __init__(self, max_broker=None, max_topic_per_broker=None, max_consumer_per_broker=None, max_storage_per_node=None, min_broker=None, engine_versions=None, min_storage_per_node=None, product_alias=None):
42
+ """RocketMQExtendProductPropertiesEntity
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param max_broker: Broker的最大个数。
47
+ :type max_broker: str
48
+ :param max_topic_per_broker: 每个节点最多能创建的Topic个数。
49
+ :type max_topic_per_broker: str
50
+ :param max_consumer_per_broker: 每个节点的最大消费者数。
51
+ :type max_consumer_per_broker: str
52
+ :param max_storage_per_node: 每个节点的最大存储。单位为GB
53
+ :type max_storage_per_node: str
54
+ :param min_broker: Broker的最小个数。
55
+ :type min_broker: str
56
+ :param engine_versions: 消息引擎版本。
57
+ :type engine_versions: str
58
+ :param min_storage_per_node: 每个节点的最小存储。单位为GB
59
+ :type min_storage_per_node: str
60
+ :param product_alias: product_id的别名
61
+ :type product_alias: str
62
+ """
63
+
64
+
65
+
66
+ self._max_broker = None
67
+ self._max_topic_per_broker = None
68
+ self._max_consumer_per_broker = None
69
+ self._max_storage_per_node = None
70
+ self._min_broker = None
71
+ self._engine_versions = None
72
+ self._min_storage_per_node = None
73
+ self._product_alias = None
74
+ self.discriminator = None
75
+
76
+ if max_broker is not None:
77
+ self.max_broker = max_broker
78
+ if max_topic_per_broker is not None:
79
+ self.max_topic_per_broker = max_topic_per_broker
80
+ if max_consumer_per_broker is not None:
81
+ self.max_consumer_per_broker = max_consumer_per_broker
82
+ if max_storage_per_node is not None:
83
+ self.max_storage_per_node = max_storage_per_node
84
+ if min_broker is not None:
85
+ self.min_broker = min_broker
86
+ if engine_versions is not None:
87
+ self.engine_versions = engine_versions
88
+ if min_storage_per_node is not None:
89
+ self.min_storage_per_node = min_storage_per_node
90
+ if product_alias is not None:
91
+ self.product_alias = product_alias
92
+
93
+ @property
94
+ def max_broker(self):
95
+ """Gets the max_broker of this RocketMQExtendProductPropertiesEntity.
96
+
97
+ Broker的最大个数。
98
+
99
+ :return: The max_broker of this RocketMQExtendProductPropertiesEntity.
100
+ :rtype: str
101
+ """
102
+ return self._max_broker
103
+
104
+ @max_broker.setter
105
+ def max_broker(self, max_broker):
106
+ """Sets the max_broker of this RocketMQExtendProductPropertiesEntity.
107
+
108
+ Broker的最大个数。
109
+
110
+ :param max_broker: The max_broker of this RocketMQExtendProductPropertiesEntity.
111
+ :type max_broker: str
112
+ """
113
+ self._max_broker = max_broker
114
+
115
+ @property
116
+ def max_topic_per_broker(self):
117
+ """Gets the max_topic_per_broker of this RocketMQExtendProductPropertiesEntity.
118
+
119
+ 每个节点最多能创建的Topic个数。
120
+
121
+ :return: The max_topic_per_broker of this RocketMQExtendProductPropertiesEntity.
122
+ :rtype: str
123
+ """
124
+ return self._max_topic_per_broker
125
+
126
+ @max_topic_per_broker.setter
127
+ def max_topic_per_broker(self, max_topic_per_broker):
128
+ """Sets the max_topic_per_broker of this RocketMQExtendProductPropertiesEntity.
129
+
130
+ 每个节点最多能创建的Topic个数。
131
+
132
+ :param max_topic_per_broker: The max_topic_per_broker of this RocketMQExtendProductPropertiesEntity.
133
+ :type max_topic_per_broker: str
134
+ """
135
+ self._max_topic_per_broker = max_topic_per_broker
136
+
137
+ @property
138
+ def max_consumer_per_broker(self):
139
+ """Gets the max_consumer_per_broker of this RocketMQExtendProductPropertiesEntity.
140
+
141
+ 每个节点的最大消费者数。
142
+
143
+ :return: The max_consumer_per_broker of this RocketMQExtendProductPropertiesEntity.
144
+ :rtype: str
145
+ """
146
+ return self._max_consumer_per_broker
147
+
148
+ @max_consumer_per_broker.setter
149
+ def max_consumer_per_broker(self, max_consumer_per_broker):
150
+ """Sets the max_consumer_per_broker of this RocketMQExtendProductPropertiesEntity.
151
+
152
+ 每个节点的最大消费者数。
153
+
154
+ :param max_consumer_per_broker: The max_consumer_per_broker of this RocketMQExtendProductPropertiesEntity.
155
+ :type max_consumer_per_broker: str
156
+ """
157
+ self._max_consumer_per_broker = max_consumer_per_broker
158
+
159
+ @property
160
+ def max_storage_per_node(self):
161
+ """Gets the max_storage_per_node of this RocketMQExtendProductPropertiesEntity.
162
+
163
+ 每个节点的最大存储。单位为GB
164
+
165
+ :return: The max_storage_per_node of this RocketMQExtendProductPropertiesEntity.
166
+ :rtype: str
167
+ """
168
+ return self._max_storage_per_node
169
+
170
+ @max_storage_per_node.setter
171
+ def max_storage_per_node(self, max_storage_per_node):
172
+ """Sets the max_storage_per_node of this RocketMQExtendProductPropertiesEntity.
173
+
174
+ 每个节点的最大存储。单位为GB
175
+
176
+ :param max_storage_per_node: The max_storage_per_node of this RocketMQExtendProductPropertiesEntity.
177
+ :type max_storage_per_node: str
178
+ """
179
+ self._max_storage_per_node = max_storage_per_node
180
+
181
+ @property
182
+ def min_broker(self):
183
+ """Gets the min_broker of this RocketMQExtendProductPropertiesEntity.
184
+
185
+ Broker的最小个数。
186
+
187
+ :return: The min_broker of this RocketMQExtendProductPropertiesEntity.
188
+ :rtype: str
189
+ """
190
+ return self._min_broker
191
+
192
+ @min_broker.setter
193
+ def min_broker(self, min_broker):
194
+ """Sets the min_broker of this RocketMQExtendProductPropertiesEntity.
195
+
196
+ Broker的最小个数。
197
+
198
+ :param min_broker: The min_broker of this RocketMQExtendProductPropertiesEntity.
199
+ :type min_broker: str
200
+ """
201
+ self._min_broker = min_broker
202
+
203
+ @property
204
+ def engine_versions(self):
205
+ """Gets the engine_versions of this RocketMQExtendProductPropertiesEntity.
206
+
207
+ 消息引擎版本。
208
+
209
+ :return: The engine_versions of this RocketMQExtendProductPropertiesEntity.
210
+ :rtype: str
211
+ """
212
+ return self._engine_versions
213
+
214
+ @engine_versions.setter
215
+ def engine_versions(self, engine_versions):
216
+ """Sets the engine_versions of this RocketMQExtendProductPropertiesEntity.
217
+
218
+ 消息引擎版本。
219
+
220
+ :param engine_versions: The engine_versions of this RocketMQExtendProductPropertiesEntity.
221
+ :type engine_versions: str
222
+ """
223
+ self._engine_versions = engine_versions
224
+
225
+ @property
226
+ def min_storage_per_node(self):
227
+ """Gets the min_storage_per_node of this RocketMQExtendProductPropertiesEntity.
228
+
229
+ 每个节点的最小存储。单位为GB
230
+
231
+ :return: The min_storage_per_node of this RocketMQExtendProductPropertiesEntity.
232
+ :rtype: str
233
+ """
234
+ return self._min_storage_per_node
235
+
236
+ @min_storage_per_node.setter
237
+ def min_storage_per_node(self, min_storage_per_node):
238
+ """Sets the min_storage_per_node of this RocketMQExtendProductPropertiesEntity.
239
+
240
+ 每个节点的最小存储。单位为GB
241
+
242
+ :param min_storage_per_node: The min_storage_per_node of this RocketMQExtendProductPropertiesEntity.
243
+ :type min_storage_per_node: str
244
+ """
245
+ self._min_storage_per_node = min_storage_per_node
246
+
247
+ @property
248
+ def product_alias(self):
249
+ """Gets the product_alias of this RocketMQExtendProductPropertiesEntity.
250
+
251
+ product_id的别名
252
+
253
+ :return: The product_alias of this RocketMQExtendProductPropertiesEntity.
254
+ :rtype: str
255
+ """
256
+ return self._product_alias
257
+
258
+ @product_alias.setter
259
+ def product_alias(self, product_alias):
260
+ """Sets the product_alias of this RocketMQExtendProductPropertiesEntity.
261
+
262
+ product_id的别名
263
+
264
+ :param product_alias: The product_alias of this RocketMQExtendProductPropertiesEntity.
265
+ :type product_alias: str
266
+ """
267
+ self._product_alias = product_alias
268
+
269
+ def to_dict(self):
270
+ """Returns the model properties as a dict"""
271
+ result = {}
272
+
273
+ for attr, _ in six.iteritems(self.openapi_types):
274
+ value = getattr(self, attr)
275
+ if isinstance(value, list):
276
+ result[attr] = list(map(
277
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
278
+ value
279
+ ))
280
+ elif hasattr(value, "to_dict"):
281
+ result[attr] = value.to_dict()
282
+ elif isinstance(value, dict):
283
+ result[attr] = dict(map(
284
+ lambda item: (item[0], item[1].to_dict())
285
+ if hasattr(item[1], "to_dict") else item,
286
+ value.items()
287
+ ))
288
+ else:
289
+ if attr in self.sensitive_list:
290
+ result[attr] = "****"
291
+ else:
292
+ result[attr] = value
293
+
294
+ return result
295
+
296
+ def to_str(self):
297
+ """Returns the string representation of the model"""
298
+ import simplejson as json
299
+ if six.PY2:
300
+ import sys
301
+ reload(sys)
302
+ sys.setdefaultencoding("utf-8")
303
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
304
+
305
+ def __repr__(self):
306
+ """For `print`"""
307
+ return self.to_str()
308
+
309
+ def __eq__(self, other):
310
+ """Returns true if both objects are equal"""
311
+ if not isinstance(other, RocketMQExtendProductPropertiesEntity):
312
+ return False
313
+
314
+ return self.__dict__ == other.__dict__
315
+
316
+ def __ne__(self, other):
317
+ """Returns true if both objects are not equal"""
318
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RocketMQProductSupportFeaturesEntity:
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
+ 'name': 'str',
21
+ 'properties': 'dict(str, str)'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'name': 'name',
26
+ 'properties': 'properties'
27
+ }
28
+
29
+ def __init__(self, name=None, properties=None):
30
+ """RocketMQProductSupportFeaturesEntity
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param name: 特性名称
35
+ :type name: str
36
+ :param properties: 功能特性的键值对
37
+ :type properties: dict(str, str)
38
+ """
39
+
40
+
41
+
42
+ self._name = None
43
+ self._properties = None
44
+ self.discriminator = None
45
+
46
+ if name is not None:
47
+ self.name = name
48
+ if properties is not None:
49
+ self.properties = properties
50
+
51
+ @property
52
+ def name(self):
53
+ """Gets the name of this RocketMQProductSupportFeaturesEntity.
54
+
55
+ 特性名称
56
+
57
+ :return: The name of this RocketMQProductSupportFeaturesEntity.
58
+ :rtype: str
59
+ """
60
+ return self._name
61
+
62
+ @name.setter
63
+ def name(self, name):
64
+ """Sets the name of this RocketMQProductSupportFeaturesEntity.
65
+
66
+ 特性名称
67
+
68
+ :param name: The name of this RocketMQProductSupportFeaturesEntity.
69
+ :type name: str
70
+ """
71
+ self._name = name
72
+
73
+ @property
74
+ def properties(self):
75
+ """Gets the properties of this RocketMQProductSupportFeaturesEntity.
76
+
77
+ 功能特性的键值对
78
+
79
+ :return: The properties of this RocketMQProductSupportFeaturesEntity.
80
+ :rtype: dict(str, str)
81
+ """
82
+ return self._properties
83
+
84
+ @properties.setter
85
+ def properties(self, properties):
86
+ """Sets the properties of this RocketMQProductSupportFeaturesEntity.
87
+
88
+ 功能特性的键值对
89
+
90
+ :param properties: The properties of this RocketMQProductSupportFeaturesEntity.
91
+ :type properties: dict(str, str)
92
+ """
93
+ self._properties = properties
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, RocketMQProductSupportFeaturesEntity):
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
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowEngineInstanceExtendProductInfoRequest:
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
+ 'engine': 'str',
21
+ 'instance_id': 'str',
22
+ 'type': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'engine': 'engine',
27
+ 'instance_id': 'instance_id',
28
+ 'type': 'type'
29
+ }
30
+
31
+ def __init__(self, engine=None, instance_id=None, type=None):
32
+ """ShowEngineInstanceExtendProductInfoRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param engine: 消息引擎的类型。支持的类型为rocketmq。
37
+ :type engine: str
38
+ :param instance_id: 实例ID。
39
+ :type instance_id: str
40
+ :param type: 产品的类型。 advanced:专享版
41
+ :type type: str
42
+ """
43
+
44
+
45
+
46
+ self._engine = None
47
+ self._instance_id = None
48
+ self._type = None
49
+ self.discriminator = None
50
+
51
+ self.engine = engine
52
+ self.instance_id = instance_id
53
+ if type is not None:
54
+ self.type = type
55
+
56
+ @property
57
+ def engine(self):
58
+ """Gets the engine of this ShowEngineInstanceExtendProductInfoRequest.
59
+
60
+ 消息引擎的类型。支持的类型为rocketmq。
61
+
62
+ :return: The engine of this ShowEngineInstanceExtendProductInfoRequest.
63
+ :rtype: str
64
+ """
65
+ return self._engine
66
+
67
+ @engine.setter
68
+ def engine(self, engine):
69
+ """Sets the engine of this ShowEngineInstanceExtendProductInfoRequest.
70
+
71
+ 消息引擎的类型。支持的类型为rocketmq。
72
+
73
+ :param engine: The engine of this ShowEngineInstanceExtendProductInfoRequest.
74
+ :type engine: str
75
+ """
76
+ self._engine = engine
77
+
78
+ @property
79
+ def instance_id(self):
80
+ """Gets the instance_id of this ShowEngineInstanceExtendProductInfoRequest.
81
+
82
+ 实例ID。
83
+
84
+ :return: The instance_id of this ShowEngineInstanceExtendProductInfoRequest.
85
+ :rtype: str
86
+ """
87
+ return self._instance_id
88
+
89
+ @instance_id.setter
90
+ def instance_id(self, instance_id):
91
+ """Sets the instance_id of this ShowEngineInstanceExtendProductInfoRequest.
92
+
93
+ 实例ID。
94
+
95
+ :param instance_id: The instance_id of this ShowEngineInstanceExtendProductInfoRequest.
96
+ :type instance_id: str
97
+ """
98
+ self._instance_id = instance_id
99
+
100
+ @property
101
+ def type(self):
102
+ """Gets the type of this ShowEngineInstanceExtendProductInfoRequest.
103
+
104
+ 产品的类型。 advanced:专享版
105
+
106
+ :return: The type of this ShowEngineInstanceExtendProductInfoRequest.
107
+ :rtype: str
108
+ """
109
+ return self._type
110
+
111
+ @type.setter
112
+ def type(self, type):
113
+ """Sets the type of this ShowEngineInstanceExtendProductInfoRequest.
114
+
115
+ 产品的类型。 advanced:专享版
116
+
117
+ :param type: The type of this ShowEngineInstanceExtendProductInfoRequest.
118
+ :type type: str
119
+ """
120
+ self._type = type
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, ShowEngineInstanceExtendProductInfoRequest):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other