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.
- huaweicloudsdkrocketmq/v2/__init__.py +16 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +16 -0
- huaweicloudsdkrocketmq/v2/model/consumer_group.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/modify_config_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/resize_engine_instance_req.py +201 -0
- huaweicloudsdkrocketmq/v2/model/resize_instance_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/resize_instance_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_resp.py +260 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_info_entity.py +430 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_ios_entity.py +202 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_properties_entity.py +318 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_product_support_features_entity.py +144 -0
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_request.py +171 -0
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py +3 -3
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/tag_entity.py +6 -6
- huaweicloudsdkrocketmq/v2/model/topic.py +3 -3
- huaweicloudsdkrocketmq/v2/model/update_consumer_group.py +6 -6
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_response.py +85 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +272 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +272 -0
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/RECORD +35 -19
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/WHEEL +1 -1
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,430 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RocketMQExtendProductInfoEntity:
|
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': 'list[str]',
|
26
|
+
'ios': 'list[RocketMQExtendProductIosEntity]',
|
27
|
+
'properties': 'RocketMQExtendProductPropertiesEntity',
|
28
|
+
'available_zones': 'list[str]',
|
29
|
+
'unavailable_zones': 'list[str]',
|
30
|
+
'support_features': 'list[RocketMQProductSupportFeaturesEntity]',
|
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
|
+
'properties': 'properties',
|
43
|
+
'available_zones': 'available_zones',
|
44
|
+
'unavailable_zones': 'unavailable_zones',
|
45
|
+
'support_features': 'support_features',
|
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, properties=None, available_zones=None, unavailable_zones=None, support_features=None, qingtian_incompatible=None):
|
50
|
+
"""RocketMQExtendProductInfoEntity
|
51
|
+
|
52
|
+
The model defined in huaweicloud sdk
|
53
|
+
|
54
|
+
:param type: 实例类型
|
55
|
+
:type type: str
|
56
|
+
:param product_id: 产品ID
|
57
|
+
:type product_id: str
|
58
|
+
:param ecs_flavor_id: 该产品使用的ECS规格
|
59
|
+
:type ecs_flavor_id: str
|
60
|
+
:param billing_code: 账单计费类型。
|
61
|
+
:type billing_code: str
|
62
|
+
:param arch_types: 支持的CPU架构类型
|
63
|
+
:type arch_types: list[str]
|
64
|
+
:param charging_mode: 支持的计费模式类型
|
65
|
+
:type charging_mode: list[str]
|
66
|
+
:param ios: 磁盘IO信息
|
67
|
+
:type ios: list[:class:`huaweicloudsdkrocketmq.v2.RocketMQExtendProductIosEntity`]
|
68
|
+
:param properties:
|
69
|
+
:type properties: :class:`huaweicloudsdkrocketmq.v2.RocketMQExtendProductPropertiesEntity`
|
70
|
+
:param available_zones: 有可用资源的可用区列表
|
71
|
+
:type available_zones: list[str]
|
72
|
+
:param unavailable_zones: 资源售罄的可用区列表
|
73
|
+
:type unavailable_zones: list[str]
|
74
|
+
:param support_features: 支持的特性功能
|
75
|
+
:type support_features: list[:class:`huaweicloudsdkrocketmq.v2.RocketMQProductSupportFeaturesEntity`]
|
76
|
+
:param qingtian_incompatible: 是否为擎天实例。
|
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._properties = None
|
90
|
+
self._available_zones = None
|
91
|
+
self._unavailable_zones = None
|
92
|
+
self._support_features = 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 properties is not None:
|
111
|
+
self.properties = properties
|
112
|
+
if available_zones is not None:
|
113
|
+
self.available_zones = available_zones
|
114
|
+
if unavailable_zones is not None:
|
115
|
+
self.unavailable_zones = unavailable_zones
|
116
|
+
if support_features is not None:
|
117
|
+
self.support_features = support_features
|
118
|
+
if qingtian_incompatible is not None:
|
119
|
+
self.qingtian_incompatible = qingtian_incompatible
|
120
|
+
|
121
|
+
@property
|
122
|
+
def type(self):
|
123
|
+
"""Gets the type of this RocketMQExtendProductInfoEntity.
|
124
|
+
|
125
|
+
实例类型
|
126
|
+
|
127
|
+
:return: The type of this RocketMQExtendProductInfoEntity.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._type
|
131
|
+
|
132
|
+
@type.setter
|
133
|
+
def type(self, type):
|
134
|
+
"""Sets the type of this RocketMQExtendProductInfoEntity.
|
135
|
+
|
136
|
+
实例类型
|
137
|
+
|
138
|
+
:param type: The type of this RocketMQExtendProductInfoEntity.
|
139
|
+
:type type: str
|
140
|
+
"""
|
141
|
+
self._type = type
|
142
|
+
|
143
|
+
@property
|
144
|
+
def product_id(self):
|
145
|
+
"""Gets the product_id of this RocketMQExtendProductInfoEntity.
|
146
|
+
|
147
|
+
产品ID
|
148
|
+
|
149
|
+
:return: The product_id of this RocketMQExtendProductInfoEntity.
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._product_id
|
153
|
+
|
154
|
+
@product_id.setter
|
155
|
+
def product_id(self, product_id):
|
156
|
+
"""Sets the product_id of this RocketMQExtendProductInfoEntity.
|
157
|
+
|
158
|
+
产品ID
|
159
|
+
|
160
|
+
:param product_id: The product_id of this RocketMQExtendProductInfoEntity.
|
161
|
+
:type product_id: str
|
162
|
+
"""
|
163
|
+
self._product_id = product_id
|
164
|
+
|
165
|
+
@property
|
166
|
+
def ecs_flavor_id(self):
|
167
|
+
"""Gets the ecs_flavor_id of this RocketMQExtendProductInfoEntity.
|
168
|
+
|
169
|
+
该产品使用的ECS规格
|
170
|
+
|
171
|
+
:return: The ecs_flavor_id of this RocketMQExtendProductInfoEntity.
|
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
|
+
"""Sets the ecs_flavor_id of this RocketMQExtendProductInfoEntity.
|
179
|
+
|
180
|
+
该产品使用的ECS规格
|
181
|
+
|
182
|
+
:param ecs_flavor_id: The ecs_flavor_id of this RocketMQExtendProductInfoEntity.
|
183
|
+
:type ecs_flavor_id: str
|
184
|
+
"""
|
185
|
+
self._ecs_flavor_id = ecs_flavor_id
|
186
|
+
|
187
|
+
@property
|
188
|
+
def billing_code(self):
|
189
|
+
"""Gets the billing_code of this RocketMQExtendProductInfoEntity.
|
190
|
+
|
191
|
+
账单计费类型。
|
192
|
+
|
193
|
+
:return: The billing_code of this RocketMQExtendProductInfoEntity.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._billing_code
|
197
|
+
|
198
|
+
@billing_code.setter
|
199
|
+
def billing_code(self, billing_code):
|
200
|
+
"""Sets the billing_code of this RocketMQExtendProductInfoEntity.
|
201
|
+
|
202
|
+
账单计费类型。
|
203
|
+
|
204
|
+
:param billing_code: The billing_code of this RocketMQExtendProductInfoEntity.
|
205
|
+
:type billing_code: str
|
206
|
+
"""
|
207
|
+
self._billing_code = billing_code
|
208
|
+
|
209
|
+
@property
|
210
|
+
def arch_types(self):
|
211
|
+
"""Gets the arch_types of this RocketMQExtendProductInfoEntity.
|
212
|
+
|
213
|
+
支持的CPU架构类型
|
214
|
+
|
215
|
+
:return: The arch_types of this RocketMQExtendProductInfoEntity.
|
216
|
+
:rtype: list[str]
|
217
|
+
"""
|
218
|
+
return self._arch_types
|
219
|
+
|
220
|
+
@arch_types.setter
|
221
|
+
def arch_types(self, arch_types):
|
222
|
+
"""Sets the arch_types of this RocketMQExtendProductInfoEntity.
|
223
|
+
|
224
|
+
支持的CPU架构类型
|
225
|
+
|
226
|
+
:param arch_types: The arch_types of this RocketMQExtendProductInfoEntity.
|
227
|
+
:type arch_types: list[str]
|
228
|
+
"""
|
229
|
+
self._arch_types = arch_types
|
230
|
+
|
231
|
+
@property
|
232
|
+
def charging_mode(self):
|
233
|
+
"""Gets the charging_mode of this RocketMQExtendProductInfoEntity.
|
234
|
+
|
235
|
+
支持的计费模式类型
|
236
|
+
|
237
|
+
:return: The charging_mode of this RocketMQExtendProductInfoEntity.
|
238
|
+
:rtype: list[str]
|
239
|
+
"""
|
240
|
+
return self._charging_mode
|
241
|
+
|
242
|
+
@charging_mode.setter
|
243
|
+
def charging_mode(self, charging_mode):
|
244
|
+
"""Sets the charging_mode of this RocketMQExtendProductInfoEntity.
|
245
|
+
|
246
|
+
支持的计费模式类型
|
247
|
+
|
248
|
+
:param charging_mode: The charging_mode of this RocketMQExtendProductInfoEntity.
|
249
|
+
:type charging_mode: list[str]
|
250
|
+
"""
|
251
|
+
self._charging_mode = charging_mode
|
252
|
+
|
253
|
+
@property
|
254
|
+
def ios(self):
|
255
|
+
"""Gets the ios of this RocketMQExtendProductInfoEntity.
|
256
|
+
|
257
|
+
磁盘IO信息
|
258
|
+
|
259
|
+
:return: The ios of this RocketMQExtendProductInfoEntity.
|
260
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.RocketMQExtendProductIosEntity`]
|
261
|
+
"""
|
262
|
+
return self._ios
|
263
|
+
|
264
|
+
@ios.setter
|
265
|
+
def ios(self, ios):
|
266
|
+
"""Sets the ios of this RocketMQExtendProductInfoEntity.
|
267
|
+
|
268
|
+
磁盘IO信息
|
269
|
+
|
270
|
+
:param ios: The ios of this RocketMQExtendProductInfoEntity.
|
271
|
+
:type ios: list[:class:`huaweicloudsdkrocketmq.v2.RocketMQExtendProductIosEntity`]
|
272
|
+
"""
|
273
|
+
self._ios = ios
|
274
|
+
|
275
|
+
@property
|
276
|
+
def properties(self):
|
277
|
+
"""Gets the properties of this RocketMQExtendProductInfoEntity.
|
278
|
+
|
279
|
+
:return: The properties of this RocketMQExtendProductInfoEntity.
|
280
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.RocketMQExtendProductPropertiesEntity`
|
281
|
+
"""
|
282
|
+
return self._properties
|
283
|
+
|
284
|
+
@properties.setter
|
285
|
+
def properties(self, properties):
|
286
|
+
"""Sets the properties of this RocketMQExtendProductInfoEntity.
|
287
|
+
|
288
|
+
:param properties: The properties of this RocketMQExtendProductInfoEntity.
|
289
|
+
:type properties: :class:`huaweicloudsdkrocketmq.v2.RocketMQExtendProductPropertiesEntity`
|
290
|
+
"""
|
291
|
+
self._properties = properties
|
292
|
+
|
293
|
+
@property
|
294
|
+
def available_zones(self):
|
295
|
+
"""Gets the available_zones of this RocketMQExtendProductInfoEntity.
|
296
|
+
|
297
|
+
有可用资源的可用区列表
|
298
|
+
|
299
|
+
:return: The available_zones of this RocketMQExtendProductInfoEntity.
|
300
|
+
:rtype: list[str]
|
301
|
+
"""
|
302
|
+
return self._available_zones
|
303
|
+
|
304
|
+
@available_zones.setter
|
305
|
+
def available_zones(self, available_zones):
|
306
|
+
"""Sets the available_zones of this RocketMQExtendProductInfoEntity.
|
307
|
+
|
308
|
+
有可用资源的可用区列表
|
309
|
+
|
310
|
+
:param available_zones: The available_zones of this RocketMQExtendProductInfoEntity.
|
311
|
+
:type available_zones: list[str]
|
312
|
+
"""
|
313
|
+
self._available_zones = available_zones
|
314
|
+
|
315
|
+
@property
|
316
|
+
def unavailable_zones(self):
|
317
|
+
"""Gets the unavailable_zones of this RocketMQExtendProductInfoEntity.
|
318
|
+
|
319
|
+
资源售罄的可用区列表
|
320
|
+
|
321
|
+
:return: The unavailable_zones of this RocketMQExtendProductInfoEntity.
|
322
|
+
:rtype: list[str]
|
323
|
+
"""
|
324
|
+
return self._unavailable_zones
|
325
|
+
|
326
|
+
@unavailable_zones.setter
|
327
|
+
def unavailable_zones(self, unavailable_zones):
|
328
|
+
"""Sets the unavailable_zones of this RocketMQExtendProductInfoEntity.
|
329
|
+
|
330
|
+
资源售罄的可用区列表
|
331
|
+
|
332
|
+
:param unavailable_zones: The unavailable_zones of this RocketMQExtendProductInfoEntity.
|
333
|
+
:type unavailable_zones: list[str]
|
334
|
+
"""
|
335
|
+
self._unavailable_zones = unavailable_zones
|
336
|
+
|
337
|
+
@property
|
338
|
+
def support_features(self):
|
339
|
+
"""Gets the support_features of this RocketMQExtendProductInfoEntity.
|
340
|
+
|
341
|
+
支持的特性功能
|
342
|
+
|
343
|
+
:return: The support_features of this RocketMQExtendProductInfoEntity.
|
344
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.RocketMQProductSupportFeaturesEntity`]
|
345
|
+
"""
|
346
|
+
return self._support_features
|
347
|
+
|
348
|
+
@support_features.setter
|
349
|
+
def support_features(self, support_features):
|
350
|
+
"""Sets the support_features of this RocketMQExtendProductInfoEntity.
|
351
|
+
|
352
|
+
支持的特性功能
|
353
|
+
|
354
|
+
:param support_features: The support_features of this RocketMQExtendProductInfoEntity.
|
355
|
+
:type support_features: list[:class:`huaweicloudsdkrocketmq.v2.RocketMQProductSupportFeaturesEntity`]
|
356
|
+
"""
|
357
|
+
self._support_features = support_features
|
358
|
+
|
359
|
+
@property
|
360
|
+
def qingtian_incompatible(self):
|
361
|
+
"""Gets the qingtian_incompatible of this RocketMQExtendProductInfoEntity.
|
362
|
+
|
363
|
+
是否为擎天实例。
|
364
|
+
|
365
|
+
:return: The qingtian_incompatible of this RocketMQExtendProductInfoEntity.
|
366
|
+
:rtype: bool
|
367
|
+
"""
|
368
|
+
return self._qingtian_incompatible
|
369
|
+
|
370
|
+
@qingtian_incompatible.setter
|
371
|
+
def qingtian_incompatible(self, qingtian_incompatible):
|
372
|
+
"""Sets the qingtian_incompatible of this RocketMQExtendProductInfoEntity.
|
373
|
+
|
374
|
+
是否为擎天实例。
|
375
|
+
|
376
|
+
:param qingtian_incompatible: The qingtian_incompatible of this RocketMQExtendProductInfoEntity.
|
377
|
+
:type qingtian_incompatible: bool
|
378
|
+
"""
|
379
|
+
self._qingtian_incompatible = qingtian_incompatible
|
380
|
+
|
381
|
+
def to_dict(self):
|
382
|
+
"""Returns the model properties as a dict"""
|
383
|
+
result = {}
|
384
|
+
|
385
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
386
|
+
value = getattr(self, attr)
|
387
|
+
if isinstance(value, list):
|
388
|
+
result[attr] = list(map(
|
389
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
390
|
+
value
|
391
|
+
))
|
392
|
+
elif hasattr(value, "to_dict"):
|
393
|
+
result[attr] = value.to_dict()
|
394
|
+
elif isinstance(value, dict):
|
395
|
+
result[attr] = dict(map(
|
396
|
+
lambda item: (item[0], item[1].to_dict())
|
397
|
+
if hasattr(item[1], "to_dict") else item,
|
398
|
+
value.items()
|
399
|
+
))
|
400
|
+
else:
|
401
|
+
if attr in self.sensitive_list:
|
402
|
+
result[attr] = "****"
|
403
|
+
else:
|
404
|
+
result[attr] = value
|
405
|
+
|
406
|
+
return result
|
407
|
+
|
408
|
+
def to_str(self):
|
409
|
+
"""Returns the string representation of the model"""
|
410
|
+
import simplejson as json
|
411
|
+
if six.PY2:
|
412
|
+
import sys
|
413
|
+
reload(sys)
|
414
|
+
sys.setdefaultencoding("utf-8")
|
415
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
416
|
+
|
417
|
+
def __repr__(self):
|
418
|
+
"""For `print`"""
|
419
|
+
return self.to_str()
|
420
|
+
|
421
|
+
def __eq__(self, other):
|
422
|
+
"""Returns true if both objects are equal"""
|
423
|
+
if not isinstance(other, RocketMQExtendProductInfoEntity):
|
424
|
+
return False
|
425
|
+
|
426
|
+
return self.__dict__ == other.__dict__
|
427
|
+
|
428
|
+
def __ne__(self, other):
|
429
|
+
"""Returns true if both objects are not equal"""
|
430
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RocketMQExtendProductIosEntity:
|
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
|
+
'io_spec': 'str',
|
21
|
+
'available_zones': 'list[str]',
|
22
|
+
'type': 'str',
|
23
|
+
'unavailable_zones': 'list[str]'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'io_spec': 'io_spec',
|
28
|
+
'available_zones': 'available_zones',
|
29
|
+
'type': 'type',
|
30
|
+
'unavailable_zones': 'unavailable_zones'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, io_spec=None, available_zones=None, type=None, unavailable_zones=None):
|
34
|
+
"""RocketMQExtendProductIosEntity
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param io_spec: 存储IO规格
|
39
|
+
:type io_spec: str
|
40
|
+
:param available_zones: 有可用资源的可用区列表
|
41
|
+
:type available_zones: list[str]
|
42
|
+
:param type: IO类型
|
43
|
+
:type type: str
|
44
|
+
:param unavailable_zones: 资源售罄的可用区列表
|
45
|
+
:type unavailable_zones: list[str]
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._io_spec = None
|
51
|
+
self._available_zones = None
|
52
|
+
self._type = None
|
53
|
+
self._unavailable_zones = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if io_spec is not None:
|
57
|
+
self.io_spec = io_spec
|
58
|
+
if available_zones is not None:
|
59
|
+
self.available_zones = available_zones
|
60
|
+
if type is not None:
|
61
|
+
self.type = type
|
62
|
+
if unavailable_zones is not None:
|
63
|
+
self.unavailable_zones = unavailable_zones
|
64
|
+
|
65
|
+
@property
|
66
|
+
def io_spec(self):
|
67
|
+
"""Gets the io_spec of this RocketMQExtendProductIosEntity.
|
68
|
+
|
69
|
+
存储IO规格
|
70
|
+
|
71
|
+
:return: The io_spec of this RocketMQExtendProductIosEntity.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._io_spec
|
75
|
+
|
76
|
+
@io_spec.setter
|
77
|
+
def io_spec(self, io_spec):
|
78
|
+
"""Sets the io_spec of this RocketMQExtendProductIosEntity.
|
79
|
+
|
80
|
+
存储IO规格
|
81
|
+
|
82
|
+
:param io_spec: The io_spec of this RocketMQExtendProductIosEntity.
|
83
|
+
:type io_spec: str
|
84
|
+
"""
|
85
|
+
self._io_spec = io_spec
|
86
|
+
|
87
|
+
@property
|
88
|
+
def available_zones(self):
|
89
|
+
"""Gets the available_zones of this RocketMQExtendProductIosEntity.
|
90
|
+
|
91
|
+
有可用资源的可用区列表
|
92
|
+
|
93
|
+
:return: The available_zones of this RocketMQExtendProductIosEntity.
|
94
|
+
:rtype: list[str]
|
95
|
+
"""
|
96
|
+
return self._available_zones
|
97
|
+
|
98
|
+
@available_zones.setter
|
99
|
+
def available_zones(self, available_zones):
|
100
|
+
"""Sets the available_zones of this RocketMQExtendProductIosEntity.
|
101
|
+
|
102
|
+
有可用资源的可用区列表
|
103
|
+
|
104
|
+
:param available_zones: The available_zones of this RocketMQExtendProductIosEntity.
|
105
|
+
:type available_zones: list[str]
|
106
|
+
"""
|
107
|
+
self._available_zones = available_zones
|
108
|
+
|
109
|
+
@property
|
110
|
+
def type(self):
|
111
|
+
"""Gets the type of this RocketMQExtendProductIosEntity.
|
112
|
+
|
113
|
+
IO类型
|
114
|
+
|
115
|
+
:return: The type of this RocketMQExtendProductIosEntity.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._type
|
119
|
+
|
120
|
+
@type.setter
|
121
|
+
def type(self, type):
|
122
|
+
"""Sets the type of this RocketMQExtendProductIosEntity.
|
123
|
+
|
124
|
+
IO类型
|
125
|
+
|
126
|
+
:param type: The type of this RocketMQExtendProductIosEntity.
|
127
|
+
:type type: str
|
128
|
+
"""
|
129
|
+
self._type = type
|
130
|
+
|
131
|
+
@property
|
132
|
+
def unavailable_zones(self):
|
133
|
+
"""Gets the unavailable_zones of this RocketMQExtendProductIosEntity.
|
134
|
+
|
135
|
+
资源售罄的可用区列表
|
136
|
+
|
137
|
+
:return: The unavailable_zones of this RocketMQExtendProductIosEntity.
|
138
|
+
:rtype: list[str]
|
139
|
+
"""
|
140
|
+
return self._unavailable_zones
|
141
|
+
|
142
|
+
@unavailable_zones.setter
|
143
|
+
def unavailable_zones(self, unavailable_zones):
|
144
|
+
"""Sets the unavailable_zones of this RocketMQExtendProductIosEntity.
|
145
|
+
|
146
|
+
资源售罄的可用区列表
|
147
|
+
|
148
|
+
:param unavailable_zones: The unavailable_zones of this RocketMQExtendProductIosEntity.
|
149
|
+
:type unavailable_zones: list[str]
|
150
|
+
"""
|
151
|
+
self._unavailable_zones = unavailable_zones
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, RocketMQExtendProductIosEntity):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|