huaweicloudsdkrocketmq 3.1.146__py2.py3-none-any.whl → 3.1.147__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.
- huaweicloudsdkrocketmq/v2/__init__.py +13 -1
- huaweicloudsdkrocketmq/v2/model/__init__.py +13 -1
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group.py +260 -0
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group_req.py +4 -4
- huaweicloudsdkrocketmq/v2/model/brokers.py +6 -6
- huaweicloudsdkrocketmq/v2/model/consumer_detail_resp.py +12 -12
- huaweicloudsdkrocketmq/v2/model/consumer_group.py +27 -27
- huaweicloudsdkrocketmq/v2/model/consumer_list.py +6 -6
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +6 -6
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +9 -9
- huaweicloudsdkrocketmq/v2/model/create_user_request.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_user_response.py +24 -24
- huaweicloudsdkrocketmq/v2/model/enable_dns_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/enable_dns_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/instance_detail.py +1942 -0
- huaweicloudsdkrocketmq/v2/model/list_available_zones_resp_available_zones.py +27 -27
- huaweicloudsdkrocketmq/v2/model/list_available_zones_response.py +6 -6
- huaweicloudsdkrocketmq/v2/model/list_brokers_request.py +61 -3
- huaweicloudsdkrocketmq/v2/model/list_brokers_response.py +88 -1
- huaweicloudsdkrocketmq/v2/model/list_engine_products_request.py +228 -0
- huaweicloudsdkrocketmq/v2/model/list_engine_products_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_request.py +12 -12
- huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_response.py +18 -18
- huaweicloudsdkrocketmq/v2/model/list_instances_request.py +27 -27
- huaweicloudsdkrocketmq/v2/model/list_instances_response.py +10 -10
- huaweicloudsdkrocketmq/v2/model/list_message_trace_request.py +61 -3
- huaweicloudsdkrocketmq/v2/model/list_message_trace_response.py +88 -1
- huaweicloudsdkrocketmq/v2/model/list_rocket_instance_topics_request.py +9 -9
- huaweicloudsdkrocketmq/v2/model/list_rocket_instance_topics_response.py +18 -18
- huaweicloudsdkrocketmq/v2/model/product_entity.py +434 -0
- huaweicloudsdkrocketmq/v2/model/queue.py +15 -15
- huaweicloudsdkrocketmq/v2/model/quota_resource_entity.py +173 -0
- huaweicloudsdkrocketmq/v2/model/quotas_resp_quotas.py +115 -0
- huaweicloudsdkrocketmq/v2/model/resend_req.py +2 -4
- huaweicloudsdkrocketmq/v2/model/resize_engine_instance_req.py +6 -6
- huaweicloudsdkrocketmq/v2/model/restart_instance_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/restart_instance_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_request.py +15 -15
- huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_response.py +18 -18
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_request.py +61 -3
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py +88 -1
- huaweicloudsdkrocketmq/v2/model/show_instance_request.py +3 -3
- huaweicloudsdkrocketmq/v2/model/show_instance_response.py +458 -168
- huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py +15 -15
- huaweicloudsdkrocketmq/v2/model/show_quotas_request.py +84 -0
- huaweicloudsdkrocketmq/v2/model/show_quotas_response.py +112 -0
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_request.py +61 -3
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_response.py +88 -1
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_request.py +61 -1
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_response.py +91 -4
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_request.py +61 -3
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_response.py +88 -1
- huaweicloudsdkrocketmq/v2/model/show_user_response.py +24 -24
- huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py +6 -6
- huaweicloudsdkrocketmq/v2/model/topic.py +15 -15
- huaweicloudsdkrocketmq/v2/model/topic_brokers.py +9 -9
- huaweicloudsdkrocketmq/v2/model/update_user_request.py +6 -6
- huaweicloudsdkrocketmq/v2/model/update_user_response.py +24 -24
- huaweicloudsdkrocketmq/v2/model/user.py +24 -24
- huaweicloudsdkrocketmq/v2/model/user_group_perms.py +6 -6
- huaweicloudsdkrocketmq/v2/model/user_topic_perms.py +6 -6
- huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +9 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +292 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +292 -0
- {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/RECORD +69 -57
- huaweicloudsdkrocketmq/v2/model/show_instance_resp.py +0 -1681
- {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,434 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ProductEntity:
|
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
|
+
'type': 'str',
|
21
|
+
'product_id': 'str',
|
22
|
+
'ecs_flavor_id': 'str',
|
23
|
+
'billing_code': 'str',
|
24
|
+
'arch_types': 'list[str]',
|
25
|
+
'charging_mode': 'object',
|
26
|
+
'ios': 'object',
|
27
|
+
'support_features': 'object',
|
28
|
+
'properties': 'object',
|
29
|
+
'available_zones': 'list[str]',
|
30
|
+
'unavailable_zones': 'list[str]',
|
31
|
+
'qingtian_incompatible': 'bool'
|
32
|
+
}
|
33
|
+
|
34
|
+
attribute_map = {
|
35
|
+
'type': 'type',
|
36
|
+
'product_id': 'product_id',
|
37
|
+
'ecs_flavor_id': 'ecs_flavor_id',
|
38
|
+
'billing_code': 'billing_code',
|
39
|
+
'arch_types': 'arch_types',
|
40
|
+
'charging_mode': 'charging_mode',
|
41
|
+
'ios': 'ios',
|
42
|
+
'support_features': 'support_features',
|
43
|
+
'properties': 'properties',
|
44
|
+
'available_zones': 'available_zones',
|
45
|
+
'unavailable_zones': 'unavailable_zones',
|
46
|
+
'qingtian_incompatible': 'qingtian_incompatible'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, type=None, product_id=None, ecs_flavor_id=None, billing_code=None, arch_types=None, charging_mode=None, ios=None, support_features=None, properties=None, available_zones=None, unavailable_zones=None, qingtian_incompatible=None):
|
50
|
+
r"""ProductEntity
|
51
|
+
|
52
|
+
The model defined in huaweicloud sdk
|
53
|
+
|
54
|
+
:param type: **参数解释**: 产品类型。 **取值范围**: - single:单机。 - cluster:集群。
|
55
|
+
:type type: str
|
56
|
+
:param product_id: **参数解释**: 产品ID。 **取值范围**: 不涉及。
|
57
|
+
:type product_id: str
|
58
|
+
:param ecs_flavor_id: **参数解释**: ECS的Flavor ID。 **取值范围**: 不涉及。
|
59
|
+
:type ecs_flavor_id: str
|
60
|
+
:param billing_code: **参数解释**: CBC的规格码。 **取值范围**: 不涉及。
|
61
|
+
:type billing_code: str
|
62
|
+
:param arch_types: **参数解释**: 架构类型。
|
63
|
+
:type arch_types: list[str]
|
64
|
+
:param charging_mode: **参数解释**: 计费模式。 **取值范围**: 不涉及。
|
65
|
+
:type charging_mode: object
|
66
|
+
:param ios: **参数解释**: 支持的io类型。 **取值范围**: 不涉及。
|
67
|
+
:type ios: object
|
68
|
+
:param support_features: **参数解释**: 支持的特性。 **取值范围**: 不涉及。
|
69
|
+
:type support_features: object
|
70
|
+
:param properties: **参数解释**: 产品特性。 **取值范围**: 不涉及。
|
71
|
+
:type properties: object
|
72
|
+
:param available_zones: **参数解释**: 可用分区。
|
73
|
+
:type available_zones: list[str]
|
74
|
+
:param unavailable_zones: **参数解释**: 不可用分区。
|
75
|
+
:type unavailable_zones: list[str]
|
76
|
+
:param qingtian_incompatible: **参数解释**: 是否为擎天实例。 **取值范围**: - true:是 - false:否
|
77
|
+
:type qingtian_incompatible: bool
|
78
|
+
"""
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
self._type = None
|
83
|
+
self._product_id = None
|
84
|
+
self._ecs_flavor_id = None
|
85
|
+
self._billing_code = None
|
86
|
+
self._arch_types = None
|
87
|
+
self._charging_mode = None
|
88
|
+
self._ios = None
|
89
|
+
self._support_features = None
|
90
|
+
self._properties = None
|
91
|
+
self._available_zones = None
|
92
|
+
self._unavailable_zones = None
|
93
|
+
self._qingtian_incompatible = None
|
94
|
+
self.discriminator = None
|
95
|
+
|
96
|
+
if type is not None:
|
97
|
+
self.type = type
|
98
|
+
if product_id is not None:
|
99
|
+
self.product_id = product_id
|
100
|
+
if ecs_flavor_id is not None:
|
101
|
+
self.ecs_flavor_id = ecs_flavor_id
|
102
|
+
if billing_code is not None:
|
103
|
+
self.billing_code = billing_code
|
104
|
+
if arch_types is not None:
|
105
|
+
self.arch_types = arch_types
|
106
|
+
if charging_mode is not None:
|
107
|
+
self.charging_mode = charging_mode
|
108
|
+
if ios is not None:
|
109
|
+
self.ios = ios
|
110
|
+
if support_features is not None:
|
111
|
+
self.support_features = support_features
|
112
|
+
if properties is not None:
|
113
|
+
self.properties = properties
|
114
|
+
if available_zones is not None:
|
115
|
+
self.available_zones = available_zones
|
116
|
+
if unavailable_zones is not None:
|
117
|
+
self.unavailable_zones = unavailable_zones
|
118
|
+
if qingtian_incompatible is not None:
|
119
|
+
self.qingtian_incompatible = qingtian_incompatible
|
120
|
+
|
121
|
+
@property
|
122
|
+
def type(self):
|
123
|
+
r"""Gets the type of this ProductEntity.
|
124
|
+
|
125
|
+
**参数解释**: 产品类型。 **取值范围**: - single:单机。 - cluster:集群。
|
126
|
+
|
127
|
+
:return: The type of this ProductEntity.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._type
|
131
|
+
|
132
|
+
@type.setter
|
133
|
+
def type(self, type):
|
134
|
+
r"""Sets the type of this ProductEntity.
|
135
|
+
|
136
|
+
**参数解释**: 产品类型。 **取值范围**: - single:单机。 - cluster:集群。
|
137
|
+
|
138
|
+
:param type: The type of this ProductEntity.
|
139
|
+
:type type: str
|
140
|
+
"""
|
141
|
+
self._type = type
|
142
|
+
|
143
|
+
@property
|
144
|
+
def product_id(self):
|
145
|
+
r"""Gets the product_id of this ProductEntity.
|
146
|
+
|
147
|
+
**参数解释**: 产品ID。 **取值范围**: 不涉及。
|
148
|
+
|
149
|
+
:return: The product_id of this ProductEntity.
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._product_id
|
153
|
+
|
154
|
+
@product_id.setter
|
155
|
+
def product_id(self, product_id):
|
156
|
+
r"""Sets the product_id of this ProductEntity.
|
157
|
+
|
158
|
+
**参数解释**: 产品ID。 **取值范围**: 不涉及。
|
159
|
+
|
160
|
+
:param product_id: The product_id of this ProductEntity.
|
161
|
+
:type product_id: str
|
162
|
+
"""
|
163
|
+
self._product_id = product_id
|
164
|
+
|
165
|
+
@property
|
166
|
+
def ecs_flavor_id(self):
|
167
|
+
r"""Gets the ecs_flavor_id of this ProductEntity.
|
168
|
+
|
169
|
+
**参数解释**: ECS的Flavor ID。 **取值范围**: 不涉及。
|
170
|
+
|
171
|
+
:return: The ecs_flavor_id of this ProductEntity.
|
172
|
+
:rtype: str
|
173
|
+
"""
|
174
|
+
return self._ecs_flavor_id
|
175
|
+
|
176
|
+
@ecs_flavor_id.setter
|
177
|
+
def ecs_flavor_id(self, ecs_flavor_id):
|
178
|
+
r"""Sets the ecs_flavor_id of this ProductEntity.
|
179
|
+
|
180
|
+
**参数解释**: ECS的Flavor ID。 **取值范围**: 不涉及。
|
181
|
+
|
182
|
+
:param ecs_flavor_id: The ecs_flavor_id of this ProductEntity.
|
183
|
+
:type ecs_flavor_id: str
|
184
|
+
"""
|
185
|
+
self._ecs_flavor_id = ecs_flavor_id
|
186
|
+
|
187
|
+
@property
|
188
|
+
def billing_code(self):
|
189
|
+
r"""Gets the billing_code of this ProductEntity.
|
190
|
+
|
191
|
+
**参数解释**: CBC的规格码。 **取值范围**: 不涉及。
|
192
|
+
|
193
|
+
:return: The billing_code of this ProductEntity.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._billing_code
|
197
|
+
|
198
|
+
@billing_code.setter
|
199
|
+
def billing_code(self, billing_code):
|
200
|
+
r"""Sets the billing_code of this ProductEntity.
|
201
|
+
|
202
|
+
**参数解释**: CBC的规格码。 **取值范围**: 不涉及。
|
203
|
+
|
204
|
+
:param billing_code: The billing_code of this ProductEntity.
|
205
|
+
:type billing_code: str
|
206
|
+
"""
|
207
|
+
self._billing_code = billing_code
|
208
|
+
|
209
|
+
@property
|
210
|
+
def arch_types(self):
|
211
|
+
r"""Gets the arch_types of this ProductEntity.
|
212
|
+
|
213
|
+
**参数解释**: 架构类型。
|
214
|
+
|
215
|
+
:return: The arch_types of this ProductEntity.
|
216
|
+
:rtype: list[str]
|
217
|
+
"""
|
218
|
+
return self._arch_types
|
219
|
+
|
220
|
+
@arch_types.setter
|
221
|
+
def arch_types(self, arch_types):
|
222
|
+
r"""Sets the arch_types of this ProductEntity.
|
223
|
+
|
224
|
+
**参数解释**: 架构类型。
|
225
|
+
|
226
|
+
:param arch_types: The arch_types of this ProductEntity.
|
227
|
+
:type arch_types: list[str]
|
228
|
+
"""
|
229
|
+
self._arch_types = arch_types
|
230
|
+
|
231
|
+
@property
|
232
|
+
def charging_mode(self):
|
233
|
+
r"""Gets the charging_mode of this ProductEntity.
|
234
|
+
|
235
|
+
**参数解释**: 计费模式。 **取值范围**: 不涉及。
|
236
|
+
|
237
|
+
:return: The charging_mode of this ProductEntity.
|
238
|
+
:rtype: object
|
239
|
+
"""
|
240
|
+
return self._charging_mode
|
241
|
+
|
242
|
+
@charging_mode.setter
|
243
|
+
def charging_mode(self, charging_mode):
|
244
|
+
r"""Sets the charging_mode of this ProductEntity.
|
245
|
+
|
246
|
+
**参数解释**: 计费模式。 **取值范围**: 不涉及。
|
247
|
+
|
248
|
+
:param charging_mode: The charging_mode of this ProductEntity.
|
249
|
+
:type charging_mode: object
|
250
|
+
"""
|
251
|
+
self._charging_mode = charging_mode
|
252
|
+
|
253
|
+
@property
|
254
|
+
def ios(self):
|
255
|
+
r"""Gets the ios of this ProductEntity.
|
256
|
+
|
257
|
+
**参数解释**: 支持的io类型。 **取值范围**: 不涉及。
|
258
|
+
|
259
|
+
:return: The ios of this ProductEntity.
|
260
|
+
:rtype: object
|
261
|
+
"""
|
262
|
+
return self._ios
|
263
|
+
|
264
|
+
@ios.setter
|
265
|
+
def ios(self, ios):
|
266
|
+
r"""Sets the ios of this ProductEntity.
|
267
|
+
|
268
|
+
**参数解释**: 支持的io类型。 **取值范围**: 不涉及。
|
269
|
+
|
270
|
+
:param ios: The ios of this ProductEntity.
|
271
|
+
:type ios: object
|
272
|
+
"""
|
273
|
+
self._ios = ios
|
274
|
+
|
275
|
+
@property
|
276
|
+
def support_features(self):
|
277
|
+
r"""Gets the support_features of this ProductEntity.
|
278
|
+
|
279
|
+
**参数解释**: 支持的特性。 **取值范围**: 不涉及。
|
280
|
+
|
281
|
+
:return: The support_features of this ProductEntity.
|
282
|
+
:rtype: object
|
283
|
+
"""
|
284
|
+
return self._support_features
|
285
|
+
|
286
|
+
@support_features.setter
|
287
|
+
def support_features(self, support_features):
|
288
|
+
r"""Sets the support_features of this ProductEntity.
|
289
|
+
|
290
|
+
**参数解释**: 支持的特性。 **取值范围**: 不涉及。
|
291
|
+
|
292
|
+
:param support_features: The support_features of this ProductEntity.
|
293
|
+
:type support_features: object
|
294
|
+
"""
|
295
|
+
self._support_features = support_features
|
296
|
+
|
297
|
+
@property
|
298
|
+
def properties(self):
|
299
|
+
r"""Gets the properties of this ProductEntity.
|
300
|
+
|
301
|
+
**参数解释**: 产品特性。 **取值范围**: 不涉及。
|
302
|
+
|
303
|
+
:return: The properties of this ProductEntity.
|
304
|
+
:rtype: object
|
305
|
+
"""
|
306
|
+
return self._properties
|
307
|
+
|
308
|
+
@properties.setter
|
309
|
+
def properties(self, properties):
|
310
|
+
r"""Sets the properties of this ProductEntity.
|
311
|
+
|
312
|
+
**参数解释**: 产品特性。 **取值范围**: 不涉及。
|
313
|
+
|
314
|
+
:param properties: The properties of this ProductEntity.
|
315
|
+
:type properties: object
|
316
|
+
"""
|
317
|
+
self._properties = properties
|
318
|
+
|
319
|
+
@property
|
320
|
+
def available_zones(self):
|
321
|
+
r"""Gets the available_zones of this ProductEntity.
|
322
|
+
|
323
|
+
**参数解释**: 可用分区。
|
324
|
+
|
325
|
+
:return: The available_zones of this ProductEntity.
|
326
|
+
:rtype: list[str]
|
327
|
+
"""
|
328
|
+
return self._available_zones
|
329
|
+
|
330
|
+
@available_zones.setter
|
331
|
+
def available_zones(self, available_zones):
|
332
|
+
r"""Sets the available_zones of this ProductEntity.
|
333
|
+
|
334
|
+
**参数解释**: 可用分区。
|
335
|
+
|
336
|
+
:param available_zones: The available_zones of this ProductEntity.
|
337
|
+
:type available_zones: list[str]
|
338
|
+
"""
|
339
|
+
self._available_zones = available_zones
|
340
|
+
|
341
|
+
@property
|
342
|
+
def unavailable_zones(self):
|
343
|
+
r"""Gets the unavailable_zones of this ProductEntity.
|
344
|
+
|
345
|
+
**参数解释**: 不可用分区。
|
346
|
+
|
347
|
+
:return: The unavailable_zones of this ProductEntity.
|
348
|
+
:rtype: list[str]
|
349
|
+
"""
|
350
|
+
return self._unavailable_zones
|
351
|
+
|
352
|
+
@unavailable_zones.setter
|
353
|
+
def unavailable_zones(self, unavailable_zones):
|
354
|
+
r"""Sets the unavailable_zones of this ProductEntity.
|
355
|
+
|
356
|
+
**参数解释**: 不可用分区。
|
357
|
+
|
358
|
+
:param unavailable_zones: The unavailable_zones of this ProductEntity.
|
359
|
+
:type unavailable_zones: list[str]
|
360
|
+
"""
|
361
|
+
self._unavailable_zones = unavailable_zones
|
362
|
+
|
363
|
+
@property
|
364
|
+
def qingtian_incompatible(self):
|
365
|
+
r"""Gets the qingtian_incompatible of this ProductEntity.
|
366
|
+
|
367
|
+
**参数解释**: 是否为擎天实例。 **取值范围**: - true:是 - false:否
|
368
|
+
|
369
|
+
:return: The qingtian_incompatible of this ProductEntity.
|
370
|
+
:rtype: bool
|
371
|
+
"""
|
372
|
+
return self._qingtian_incompatible
|
373
|
+
|
374
|
+
@qingtian_incompatible.setter
|
375
|
+
def qingtian_incompatible(self, qingtian_incompatible):
|
376
|
+
r"""Sets the qingtian_incompatible of this ProductEntity.
|
377
|
+
|
378
|
+
**参数解释**: 是否为擎天实例。 **取值范围**: - true:是 - false:否
|
379
|
+
|
380
|
+
:param qingtian_incompatible: The qingtian_incompatible of this ProductEntity.
|
381
|
+
:type qingtian_incompatible: bool
|
382
|
+
"""
|
383
|
+
self._qingtian_incompatible = qingtian_incompatible
|
384
|
+
|
385
|
+
def to_dict(self):
|
386
|
+
"""Returns the model properties as a dict"""
|
387
|
+
result = {}
|
388
|
+
|
389
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
390
|
+
value = getattr(self, attr)
|
391
|
+
if isinstance(value, list):
|
392
|
+
result[attr] = list(map(
|
393
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
394
|
+
value
|
395
|
+
))
|
396
|
+
elif hasattr(value, "to_dict"):
|
397
|
+
result[attr] = value.to_dict()
|
398
|
+
elif isinstance(value, dict):
|
399
|
+
result[attr] = dict(map(
|
400
|
+
lambda item: (item[0], item[1].to_dict())
|
401
|
+
if hasattr(item[1], "to_dict") else item,
|
402
|
+
value.items()
|
403
|
+
))
|
404
|
+
else:
|
405
|
+
if attr in self.sensitive_list:
|
406
|
+
result[attr] = "****"
|
407
|
+
else:
|
408
|
+
result[attr] = value
|
409
|
+
|
410
|
+
return result
|
411
|
+
|
412
|
+
def to_str(self):
|
413
|
+
"""Returns the string representation of the model"""
|
414
|
+
import simplejson as json
|
415
|
+
if six.PY2:
|
416
|
+
import sys
|
417
|
+
reload(sys)
|
418
|
+
sys.setdefaultencoding("utf-8")
|
419
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
420
|
+
|
421
|
+
def __repr__(self):
|
422
|
+
"""For `print`"""
|
423
|
+
return self.to_str()
|
424
|
+
|
425
|
+
def __eq__(self, other):
|
426
|
+
"""Returns true if both objects are equal"""
|
427
|
+
if not isinstance(other, ProductEntity):
|
428
|
+
return False
|
429
|
+
|
430
|
+
return self.__dict__ == other.__dict__
|
431
|
+
|
432
|
+
def __ne__(self, other):
|
433
|
+
"""Returns true if both objects are not equal"""
|
434
|
+
return not self == other
|
@@ -37,15 +37,15 @@ class Queue:
|
|
37
37
|
|
38
38
|
The model defined in huaweicloud sdk
|
39
39
|
|
40
|
-
:param id: 队列ID。
|
40
|
+
:param id: **参数解释**: 队列ID。 **取值范围**: 不涉及。
|
41
41
|
:type id: int
|
42
|
-
:param lag: 队列消费堆积总数。
|
42
|
+
:param lag: **参数解释**: 队列消费堆积总数。 **取值范围**: 不涉及。
|
43
43
|
:type lag: int
|
44
|
-
:param broker_offset: 队列消息总数。
|
44
|
+
:param broker_offset: **参数解释**: 队列消息总数。 **取值范围**: 不涉及。
|
45
45
|
:type broker_offset: int
|
46
|
-
:param consumer_offset: 已消费消息数。
|
46
|
+
:param consumer_offset: **参数解释**: 已消费消息数。 **取值范围**: 不涉及。
|
47
47
|
:type consumer_offset: int
|
48
|
-
:param last_message_time: 最新消费消息的存储时间,
|
48
|
+
:param last_message_time: **参数解释**: 最新消费消息的存储时间,Unix毫秒时间戳格式。 **取值范围**: 不涉及。
|
49
49
|
:type last_message_time: int
|
50
50
|
"""
|
51
51
|
|
@@ -73,7 +73,7 @@ class Queue:
|
|
73
73
|
def id(self):
|
74
74
|
r"""Gets the id of this Queue.
|
75
75
|
|
76
|
-
队列ID。
|
76
|
+
**参数解释**: 队列ID。 **取值范围**: 不涉及。
|
77
77
|
|
78
78
|
:return: The id of this Queue.
|
79
79
|
:rtype: int
|
@@ -84,7 +84,7 @@ class Queue:
|
|
84
84
|
def id(self, id):
|
85
85
|
r"""Sets the id of this Queue.
|
86
86
|
|
87
|
-
队列ID。
|
87
|
+
**参数解释**: 队列ID。 **取值范围**: 不涉及。
|
88
88
|
|
89
89
|
:param id: The id of this Queue.
|
90
90
|
:type id: int
|
@@ -95,7 +95,7 @@ class Queue:
|
|
95
95
|
def lag(self):
|
96
96
|
r"""Gets the lag of this Queue.
|
97
97
|
|
98
|
-
队列消费堆积总数。
|
98
|
+
**参数解释**: 队列消费堆积总数。 **取值范围**: 不涉及。
|
99
99
|
|
100
100
|
:return: The lag of this Queue.
|
101
101
|
:rtype: int
|
@@ -106,7 +106,7 @@ class Queue:
|
|
106
106
|
def lag(self, lag):
|
107
107
|
r"""Sets the lag of this Queue.
|
108
108
|
|
109
|
-
队列消费堆积总数。
|
109
|
+
**参数解释**: 队列消费堆积总数。 **取值范围**: 不涉及。
|
110
110
|
|
111
111
|
:param lag: The lag of this Queue.
|
112
112
|
:type lag: int
|
@@ -117,7 +117,7 @@ class Queue:
|
|
117
117
|
def broker_offset(self):
|
118
118
|
r"""Gets the broker_offset of this Queue.
|
119
119
|
|
120
|
-
队列消息总数。
|
120
|
+
**参数解释**: 队列消息总数。 **取值范围**: 不涉及。
|
121
121
|
|
122
122
|
:return: The broker_offset of this Queue.
|
123
123
|
:rtype: int
|
@@ -128,7 +128,7 @@ class Queue:
|
|
128
128
|
def broker_offset(self, broker_offset):
|
129
129
|
r"""Sets the broker_offset of this Queue.
|
130
130
|
|
131
|
-
队列消息总数。
|
131
|
+
**参数解释**: 队列消息总数。 **取值范围**: 不涉及。
|
132
132
|
|
133
133
|
:param broker_offset: The broker_offset of this Queue.
|
134
134
|
:type broker_offset: int
|
@@ -139,7 +139,7 @@ class Queue:
|
|
139
139
|
def consumer_offset(self):
|
140
140
|
r"""Gets the consumer_offset of this Queue.
|
141
141
|
|
142
|
-
已消费消息数。
|
142
|
+
**参数解释**: 已消费消息数。 **取值范围**: 不涉及。
|
143
143
|
|
144
144
|
:return: The consumer_offset of this Queue.
|
145
145
|
:rtype: int
|
@@ -150,7 +150,7 @@ class Queue:
|
|
150
150
|
def consumer_offset(self, consumer_offset):
|
151
151
|
r"""Sets the consumer_offset of this Queue.
|
152
152
|
|
153
|
-
已消费消息数。
|
153
|
+
**参数解释**: 已消费消息数。 **取值范围**: 不涉及。
|
154
154
|
|
155
155
|
:param consumer_offset: The consumer_offset of this Queue.
|
156
156
|
:type consumer_offset: int
|
@@ -161,7 +161,7 @@ class Queue:
|
|
161
161
|
def last_message_time(self):
|
162
162
|
r"""Gets the last_message_time of this Queue.
|
163
163
|
|
164
|
-
最新消费消息的存储时间,
|
164
|
+
**参数解释**: 最新消费消息的存储时间,Unix毫秒时间戳格式。 **取值范围**: 不涉及。
|
165
165
|
|
166
166
|
:return: The last_message_time of this Queue.
|
167
167
|
:rtype: int
|
@@ -172,7 +172,7 @@ class Queue:
|
|
172
172
|
def last_message_time(self, last_message_time):
|
173
173
|
r"""Sets the last_message_time of this Queue.
|
174
174
|
|
175
|
-
最新消费消息的存储时间,
|
175
|
+
**参数解释**: 最新消费消息的存储时间,Unix毫秒时间戳格式。 **取值范围**: 不涉及。
|
176
176
|
|
177
177
|
:param last_message_time: The last_message_time of this Queue.
|
178
178
|
:type last_message_time: int
|