huaweicloudsdkrocketmq 3.1.70__py2.py3-none-any.whl → 3.1.72__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 +14 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +14 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_req.py +260 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py +5 -9
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_binding_metadata.py +231 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_exchange_metadata.py +202 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_queue_metadata.py +173 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_vhost_metadata.py +115 -0
- huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_subscription_group.py +318 -0
- huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_topic_config.py +289 -0
- huaweicloudsdkrocketmq/v2/model/modify_config_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_resp.py +260 -0
- 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/update_rocket_mq_configs_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_response.py +85 -0
- huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +3 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +132 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +132 -0
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/RECORD +25 -11
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.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 MigrationRocketMqSubscriptionGroup:
|
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
|
+
'group_name': 'str',
|
21
|
+
'consume_broadcast_enable': 'bool',
|
22
|
+
'consume_enable': 'bool',
|
23
|
+
'consume_from_min_enable': 'bool',
|
24
|
+
'notify_consumer_ids_changed_enable': 'bool',
|
25
|
+
'retry_max_times': 'int',
|
26
|
+
'retry_queue_nums': 'int',
|
27
|
+
'which_broker_when_consume_slow': 'int'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'group_name': 'groupName',
|
32
|
+
'consume_broadcast_enable': 'consumeBroadcastEnable',
|
33
|
+
'consume_enable': 'consumeEnable',
|
34
|
+
'consume_from_min_enable': 'consumeFromMinEnable',
|
35
|
+
'notify_consumer_ids_changed_enable': 'notifyConsumerIdsChangedEnable',
|
36
|
+
'retry_max_times': 'retryMaxTimes',
|
37
|
+
'retry_queue_nums': 'retryQueueNums',
|
38
|
+
'which_broker_when_consume_slow': 'whichBrokerWhenConsumeSlow'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, group_name=None, consume_broadcast_enable=None, consume_enable=None, consume_from_min_enable=None, notify_consumer_ids_changed_enable=None, retry_max_times=None, retry_queue_nums=None, which_broker_when_consume_slow=None):
|
42
|
+
"""MigrationRocketMqSubscriptionGroup
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param group_name: 消费组名。
|
47
|
+
:type group_name: str
|
48
|
+
:param consume_broadcast_enable: 是否允许以广播模式消费。
|
49
|
+
:type consume_broadcast_enable: bool
|
50
|
+
:param consume_enable: 是否允许消费。
|
51
|
+
:type consume_enable: bool
|
52
|
+
:param consume_from_min_enable: 是否从最小偏移量开始消费。
|
53
|
+
:type consume_from_min_enable: bool
|
54
|
+
:param notify_consumer_ids_changed_enable: 消费者ID变化时是否通知。
|
55
|
+
:type notify_consumer_ids_changed_enable: bool
|
56
|
+
:param retry_max_times: 消费最大重试次数。
|
57
|
+
:type retry_max_times: int
|
58
|
+
:param retry_queue_nums: 重试队列个数。
|
59
|
+
:type retry_queue_nums: int
|
60
|
+
:param which_broker_when_consume_slow: 慢消费时选择的broker节点ID。
|
61
|
+
:type which_broker_when_consume_slow: int
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._group_name = None
|
67
|
+
self._consume_broadcast_enable = None
|
68
|
+
self._consume_enable = None
|
69
|
+
self._consume_from_min_enable = None
|
70
|
+
self._notify_consumer_ids_changed_enable = None
|
71
|
+
self._retry_max_times = None
|
72
|
+
self._retry_queue_nums = None
|
73
|
+
self._which_broker_when_consume_slow = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
if group_name is not None:
|
77
|
+
self.group_name = group_name
|
78
|
+
if consume_broadcast_enable is not None:
|
79
|
+
self.consume_broadcast_enable = consume_broadcast_enable
|
80
|
+
if consume_enable is not None:
|
81
|
+
self.consume_enable = consume_enable
|
82
|
+
if consume_from_min_enable is not None:
|
83
|
+
self.consume_from_min_enable = consume_from_min_enable
|
84
|
+
if notify_consumer_ids_changed_enable is not None:
|
85
|
+
self.notify_consumer_ids_changed_enable = notify_consumer_ids_changed_enable
|
86
|
+
if retry_max_times is not None:
|
87
|
+
self.retry_max_times = retry_max_times
|
88
|
+
if retry_queue_nums is not None:
|
89
|
+
self.retry_queue_nums = retry_queue_nums
|
90
|
+
if which_broker_when_consume_slow is not None:
|
91
|
+
self.which_broker_when_consume_slow = which_broker_when_consume_slow
|
92
|
+
|
93
|
+
@property
|
94
|
+
def group_name(self):
|
95
|
+
"""Gets the group_name of this MigrationRocketMqSubscriptionGroup.
|
96
|
+
|
97
|
+
消费组名。
|
98
|
+
|
99
|
+
:return: The group_name of this MigrationRocketMqSubscriptionGroup.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._group_name
|
103
|
+
|
104
|
+
@group_name.setter
|
105
|
+
def group_name(self, group_name):
|
106
|
+
"""Sets the group_name of this MigrationRocketMqSubscriptionGroup.
|
107
|
+
|
108
|
+
消费组名。
|
109
|
+
|
110
|
+
:param group_name: The group_name of this MigrationRocketMqSubscriptionGroup.
|
111
|
+
:type group_name: str
|
112
|
+
"""
|
113
|
+
self._group_name = group_name
|
114
|
+
|
115
|
+
@property
|
116
|
+
def consume_broadcast_enable(self):
|
117
|
+
"""Gets the consume_broadcast_enable of this MigrationRocketMqSubscriptionGroup.
|
118
|
+
|
119
|
+
是否允许以广播模式消费。
|
120
|
+
|
121
|
+
:return: The consume_broadcast_enable of this MigrationRocketMqSubscriptionGroup.
|
122
|
+
:rtype: bool
|
123
|
+
"""
|
124
|
+
return self._consume_broadcast_enable
|
125
|
+
|
126
|
+
@consume_broadcast_enable.setter
|
127
|
+
def consume_broadcast_enable(self, consume_broadcast_enable):
|
128
|
+
"""Sets the consume_broadcast_enable of this MigrationRocketMqSubscriptionGroup.
|
129
|
+
|
130
|
+
是否允许以广播模式消费。
|
131
|
+
|
132
|
+
:param consume_broadcast_enable: The consume_broadcast_enable of this MigrationRocketMqSubscriptionGroup.
|
133
|
+
:type consume_broadcast_enable: bool
|
134
|
+
"""
|
135
|
+
self._consume_broadcast_enable = consume_broadcast_enable
|
136
|
+
|
137
|
+
@property
|
138
|
+
def consume_enable(self):
|
139
|
+
"""Gets the consume_enable of this MigrationRocketMqSubscriptionGroup.
|
140
|
+
|
141
|
+
是否允许消费。
|
142
|
+
|
143
|
+
:return: The consume_enable of this MigrationRocketMqSubscriptionGroup.
|
144
|
+
:rtype: bool
|
145
|
+
"""
|
146
|
+
return self._consume_enable
|
147
|
+
|
148
|
+
@consume_enable.setter
|
149
|
+
def consume_enable(self, consume_enable):
|
150
|
+
"""Sets the consume_enable of this MigrationRocketMqSubscriptionGroup.
|
151
|
+
|
152
|
+
是否允许消费。
|
153
|
+
|
154
|
+
:param consume_enable: The consume_enable of this MigrationRocketMqSubscriptionGroup.
|
155
|
+
:type consume_enable: bool
|
156
|
+
"""
|
157
|
+
self._consume_enable = consume_enable
|
158
|
+
|
159
|
+
@property
|
160
|
+
def consume_from_min_enable(self):
|
161
|
+
"""Gets the consume_from_min_enable of this MigrationRocketMqSubscriptionGroup.
|
162
|
+
|
163
|
+
是否从最小偏移量开始消费。
|
164
|
+
|
165
|
+
:return: The consume_from_min_enable of this MigrationRocketMqSubscriptionGroup.
|
166
|
+
:rtype: bool
|
167
|
+
"""
|
168
|
+
return self._consume_from_min_enable
|
169
|
+
|
170
|
+
@consume_from_min_enable.setter
|
171
|
+
def consume_from_min_enable(self, consume_from_min_enable):
|
172
|
+
"""Sets the consume_from_min_enable of this MigrationRocketMqSubscriptionGroup.
|
173
|
+
|
174
|
+
是否从最小偏移量开始消费。
|
175
|
+
|
176
|
+
:param consume_from_min_enable: The consume_from_min_enable of this MigrationRocketMqSubscriptionGroup.
|
177
|
+
:type consume_from_min_enable: bool
|
178
|
+
"""
|
179
|
+
self._consume_from_min_enable = consume_from_min_enable
|
180
|
+
|
181
|
+
@property
|
182
|
+
def notify_consumer_ids_changed_enable(self):
|
183
|
+
"""Gets the notify_consumer_ids_changed_enable of this MigrationRocketMqSubscriptionGroup.
|
184
|
+
|
185
|
+
消费者ID变化时是否通知。
|
186
|
+
|
187
|
+
:return: The notify_consumer_ids_changed_enable of this MigrationRocketMqSubscriptionGroup.
|
188
|
+
:rtype: bool
|
189
|
+
"""
|
190
|
+
return self._notify_consumer_ids_changed_enable
|
191
|
+
|
192
|
+
@notify_consumer_ids_changed_enable.setter
|
193
|
+
def notify_consumer_ids_changed_enable(self, notify_consumer_ids_changed_enable):
|
194
|
+
"""Sets the notify_consumer_ids_changed_enable of this MigrationRocketMqSubscriptionGroup.
|
195
|
+
|
196
|
+
消费者ID变化时是否通知。
|
197
|
+
|
198
|
+
:param notify_consumer_ids_changed_enable: The notify_consumer_ids_changed_enable of this MigrationRocketMqSubscriptionGroup.
|
199
|
+
:type notify_consumer_ids_changed_enable: bool
|
200
|
+
"""
|
201
|
+
self._notify_consumer_ids_changed_enable = notify_consumer_ids_changed_enable
|
202
|
+
|
203
|
+
@property
|
204
|
+
def retry_max_times(self):
|
205
|
+
"""Gets the retry_max_times of this MigrationRocketMqSubscriptionGroup.
|
206
|
+
|
207
|
+
消费最大重试次数。
|
208
|
+
|
209
|
+
:return: The retry_max_times of this MigrationRocketMqSubscriptionGroup.
|
210
|
+
:rtype: int
|
211
|
+
"""
|
212
|
+
return self._retry_max_times
|
213
|
+
|
214
|
+
@retry_max_times.setter
|
215
|
+
def retry_max_times(self, retry_max_times):
|
216
|
+
"""Sets the retry_max_times of this MigrationRocketMqSubscriptionGroup.
|
217
|
+
|
218
|
+
消费最大重试次数。
|
219
|
+
|
220
|
+
:param retry_max_times: The retry_max_times of this MigrationRocketMqSubscriptionGroup.
|
221
|
+
:type retry_max_times: int
|
222
|
+
"""
|
223
|
+
self._retry_max_times = retry_max_times
|
224
|
+
|
225
|
+
@property
|
226
|
+
def retry_queue_nums(self):
|
227
|
+
"""Gets the retry_queue_nums of this MigrationRocketMqSubscriptionGroup.
|
228
|
+
|
229
|
+
重试队列个数。
|
230
|
+
|
231
|
+
:return: The retry_queue_nums of this MigrationRocketMqSubscriptionGroup.
|
232
|
+
:rtype: int
|
233
|
+
"""
|
234
|
+
return self._retry_queue_nums
|
235
|
+
|
236
|
+
@retry_queue_nums.setter
|
237
|
+
def retry_queue_nums(self, retry_queue_nums):
|
238
|
+
"""Sets the retry_queue_nums of this MigrationRocketMqSubscriptionGroup.
|
239
|
+
|
240
|
+
重试队列个数。
|
241
|
+
|
242
|
+
:param retry_queue_nums: The retry_queue_nums of this MigrationRocketMqSubscriptionGroup.
|
243
|
+
:type retry_queue_nums: int
|
244
|
+
"""
|
245
|
+
self._retry_queue_nums = retry_queue_nums
|
246
|
+
|
247
|
+
@property
|
248
|
+
def which_broker_when_consume_slow(self):
|
249
|
+
"""Gets the which_broker_when_consume_slow of this MigrationRocketMqSubscriptionGroup.
|
250
|
+
|
251
|
+
慢消费时选择的broker节点ID。
|
252
|
+
|
253
|
+
:return: The which_broker_when_consume_slow of this MigrationRocketMqSubscriptionGroup.
|
254
|
+
:rtype: int
|
255
|
+
"""
|
256
|
+
return self._which_broker_when_consume_slow
|
257
|
+
|
258
|
+
@which_broker_when_consume_slow.setter
|
259
|
+
def which_broker_when_consume_slow(self, which_broker_when_consume_slow):
|
260
|
+
"""Sets the which_broker_when_consume_slow of this MigrationRocketMqSubscriptionGroup.
|
261
|
+
|
262
|
+
慢消费时选择的broker节点ID。
|
263
|
+
|
264
|
+
:param which_broker_when_consume_slow: The which_broker_when_consume_slow of this MigrationRocketMqSubscriptionGroup.
|
265
|
+
:type which_broker_when_consume_slow: int
|
266
|
+
"""
|
267
|
+
self._which_broker_when_consume_slow = which_broker_when_consume_slow
|
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, MigrationRocketMqSubscriptionGroup):
|
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,289 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class MigrationRocketMqTopicConfig:
|
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
|
+
'topic_name': 'str',
|
21
|
+
'order': 'bool',
|
22
|
+
'perm': 'int',
|
23
|
+
'read_queue_nums': 'int',
|
24
|
+
'write_queue_nums': 'int',
|
25
|
+
'topic_filter_type': 'str',
|
26
|
+
'topic_sys_flag': 'int'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'topic_name': 'topicName',
|
31
|
+
'order': 'order',
|
32
|
+
'perm': 'perm',
|
33
|
+
'read_queue_nums': 'readQueueNums',
|
34
|
+
'write_queue_nums': 'writeQueueNums',
|
35
|
+
'topic_filter_type': 'topicFilterType',
|
36
|
+
'topic_sys_flag': 'topicSysFlag'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, topic_name=None, order=None, perm=None, read_queue_nums=None, write_queue_nums=None, topic_filter_type=None, topic_sys_flag=None):
|
40
|
+
"""MigrationRocketMqTopicConfig
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param topic_name: topic名称。
|
45
|
+
:type topic_name: str
|
46
|
+
:param order: 是否有序消息。
|
47
|
+
:type order: bool
|
48
|
+
:param perm: topic权限。
|
49
|
+
:type perm: int
|
50
|
+
:param read_queue_nums: 读队列个数。
|
51
|
+
:type read_queue_nums: int
|
52
|
+
:param write_queue_nums: 写队列个数。
|
53
|
+
:type write_queue_nums: int
|
54
|
+
:param topic_filter_type: topic过滤类型。 - SINGLE_TAG:单标签 - MULTI_TAG:多标签
|
55
|
+
:type topic_filter_type: str
|
56
|
+
:param topic_sys_flag: topic系统标志位。
|
57
|
+
:type topic_sys_flag: int
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._topic_name = None
|
63
|
+
self._order = None
|
64
|
+
self._perm = None
|
65
|
+
self._read_queue_nums = None
|
66
|
+
self._write_queue_nums = None
|
67
|
+
self._topic_filter_type = None
|
68
|
+
self._topic_sys_flag = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
if topic_name is not None:
|
72
|
+
self.topic_name = topic_name
|
73
|
+
if order is not None:
|
74
|
+
self.order = order
|
75
|
+
if perm is not None:
|
76
|
+
self.perm = perm
|
77
|
+
if read_queue_nums is not None:
|
78
|
+
self.read_queue_nums = read_queue_nums
|
79
|
+
if write_queue_nums is not None:
|
80
|
+
self.write_queue_nums = write_queue_nums
|
81
|
+
if topic_filter_type is not None:
|
82
|
+
self.topic_filter_type = topic_filter_type
|
83
|
+
if topic_sys_flag is not None:
|
84
|
+
self.topic_sys_flag = topic_sys_flag
|
85
|
+
|
86
|
+
@property
|
87
|
+
def topic_name(self):
|
88
|
+
"""Gets the topic_name of this MigrationRocketMqTopicConfig.
|
89
|
+
|
90
|
+
topic名称。
|
91
|
+
|
92
|
+
:return: The topic_name of this MigrationRocketMqTopicConfig.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._topic_name
|
96
|
+
|
97
|
+
@topic_name.setter
|
98
|
+
def topic_name(self, topic_name):
|
99
|
+
"""Sets the topic_name of this MigrationRocketMqTopicConfig.
|
100
|
+
|
101
|
+
topic名称。
|
102
|
+
|
103
|
+
:param topic_name: The topic_name of this MigrationRocketMqTopicConfig.
|
104
|
+
:type topic_name: str
|
105
|
+
"""
|
106
|
+
self._topic_name = topic_name
|
107
|
+
|
108
|
+
@property
|
109
|
+
def order(self):
|
110
|
+
"""Gets the order of this MigrationRocketMqTopicConfig.
|
111
|
+
|
112
|
+
是否有序消息。
|
113
|
+
|
114
|
+
:return: The order of this MigrationRocketMqTopicConfig.
|
115
|
+
:rtype: bool
|
116
|
+
"""
|
117
|
+
return self._order
|
118
|
+
|
119
|
+
@order.setter
|
120
|
+
def order(self, order):
|
121
|
+
"""Sets the order of this MigrationRocketMqTopicConfig.
|
122
|
+
|
123
|
+
是否有序消息。
|
124
|
+
|
125
|
+
:param order: The order of this MigrationRocketMqTopicConfig.
|
126
|
+
:type order: bool
|
127
|
+
"""
|
128
|
+
self._order = order
|
129
|
+
|
130
|
+
@property
|
131
|
+
def perm(self):
|
132
|
+
"""Gets the perm of this MigrationRocketMqTopicConfig.
|
133
|
+
|
134
|
+
topic权限。
|
135
|
+
|
136
|
+
:return: The perm of this MigrationRocketMqTopicConfig.
|
137
|
+
:rtype: int
|
138
|
+
"""
|
139
|
+
return self._perm
|
140
|
+
|
141
|
+
@perm.setter
|
142
|
+
def perm(self, perm):
|
143
|
+
"""Sets the perm of this MigrationRocketMqTopicConfig.
|
144
|
+
|
145
|
+
topic权限。
|
146
|
+
|
147
|
+
:param perm: The perm of this MigrationRocketMqTopicConfig.
|
148
|
+
:type perm: int
|
149
|
+
"""
|
150
|
+
self._perm = perm
|
151
|
+
|
152
|
+
@property
|
153
|
+
def read_queue_nums(self):
|
154
|
+
"""Gets the read_queue_nums of this MigrationRocketMqTopicConfig.
|
155
|
+
|
156
|
+
读队列个数。
|
157
|
+
|
158
|
+
:return: The read_queue_nums of this MigrationRocketMqTopicConfig.
|
159
|
+
:rtype: int
|
160
|
+
"""
|
161
|
+
return self._read_queue_nums
|
162
|
+
|
163
|
+
@read_queue_nums.setter
|
164
|
+
def read_queue_nums(self, read_queue_nums):
|
165
|
+
"""Sets the read_queue_nums of this MigrationRocketMqTopicConfig.
|
166
|
+
|
167
|
+
读队列个数。
|
168
|
+
|
169
|
+
:param read_queue_nums: The read_queue_nums of this MigrationRocketMqTopicConfig.
|
170
|
+
:type read_queue_nums: int
|
171
|
+
"""
|
172
|
+
self._read_queue_nums = read_queue_nums
|
173
|
+
|
174
|
+
@property
|
175
|
+
def write_queue_nums(self):
|
176
|
+
"""Gets the write_queue_nums of this MigrationRocketMqTopicConfig.
|
177
|
+
|
178
|
+
写队列个数。
|
179
|
+
|
180
|
+
:return: The write_queue_nums of this MigrationRocketMqTopicConfig.
|
181
|
+
:rtype: int
|
182
|
+
"""
|
183
|
+
return self._write_queue_nums
|
184
|
+
|
185
|
+
@write_queue_nums.setter
|
186
|
+
def write_queue_nums(self, write_queue_nums):
|
187
|
+
"""Sets the write_queue_nums of this MigrationRocketMqTopicConfig.
|
188
|
+
|
189
|
+
写队列个数。
|
190
|
+
|
191
|
+
:param write_queue_nums: The write_queue_nums of this MigrationRocketMqTopicConfig.
|
192
|
+
:type write_queue_nums: int
|
193
|
+
"""
|
194
|
+
self._write_queue_nums = write_queue_nums
|
195
|
+
|
196
|
+
@property
|
197
|
+
def topic_filter_type(self):
|
198
|
+
"""Gets the topic_filter_type of this MigrationRocketMqTopicConfig.
|
199
|
+
|
200
|
+
topic过滤类型。 - SINGLE_TAG:单标签 - MULTI_TAG:多标签
|
201
|
+
|
202
|
+
:return: The topic_filter_type of this MigrationRocketMqTopicConfig.
|
203
|
+
:rtype: str
|
204
|
+
"""
|
205
|
+
return self._topic_filter_type
|
206
|
+
|
207
|
+
@topic_filter_type.setter
|
208
|
+
def topic_filter_type(self, topic_filter_type):
|
209
|
+
"""Sets the topic_filter_type of this MigrationRocketMqTopicConfig.
|
210
|
+
|
211
|
+
topic过滤类型。 - SINGLE_TAG:单标签 - MULTI_TAG:多标签
|
212
|
+
|
213
|
+
:param topic_filter_type: The topic_filter_type of this MigrationRocketMqTopicConfig.
|
214
|
+
:type topic_filter_type: str
|
215
|
+
"""
|
216
|
+
self._topic_filter_type = topic_filter_type
|
217
|
+
|
218
|
+
@property
|
219
|
+
def topic_sys_flag(self):
|
220
|
+
"""Gets the topic_sys_flag of this MigrationRocketMqTopicConfig.
|
221
|
+
|
222
|
+
topic系统标志位。
|
223
|
+
|
224
|
+
:return: The topic_sys_flag of this MigrationRocketMqTopicConfig.
|
225
|
+
:rtype: int
|
226
|
+
"""
|
227
|
+
return self._topic_sys_flag
|
228
|
+
|
229
|
+
@topic_sys_flag.setter
|
230
|
+
def topic_sys_flag(self, topic_sys_flag):
|
231
|
+
"""Sets the topic_sys_flag of this MigrationRocketMqTopicConfig.
|
232
|
+
|
233
|
+
topic系统标志位。
|
234
|
+
|
235
|
+
:param topic_sys_flag: The topic_sys_flag of this MigrationRocketMqTopicConfig.
|
236
|
+
:type topic_sys_flag: int
|
237
|
+
"""
|
238
|
+
self._topic_sys_flag = topic_sys_flag
|
239
|
+
|
240
|
+
def to_dict(self):
|
241
|
+
"""Returns the model properties as a dict"""
|
242
|
+
result = {}
|
243
|
+
|
244
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
245
|
+
value = getattr(self, attr)
|
246
|
+
if isinstance(value, list):
|
247
|
+
result[attr] = list(map(
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
249
|
+
value
|
250
|
+
))
|
251
|
+
elif hasattr(value, "to_dict"):
|
252
|
+
result[attr] = value.to_dict()
|
253
|
+
elif isinstance(value, dict):
|
254
|
+
result[attr] = dict(map(
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
257
|
+
value.items()
|
258
|
+
))
|
259
|
+
else:
|
260
|
+
if attr in self.sensitive_list:
|
261
|
+
result[attr] = "****"
|
262
|
+
else:
|
263
|
+
result[attr] = value
|
264
|
+
|
265
|
+
return result
|
266
|
+
|
267
|
+
def to_str(self):
|
268
|
+
"""Returns the string representation of the model"""
|
269
|
+
import simplejson as json
|
270
|
+
if six.PY2:
|
271
|
+
import sys
|
272
|
+
reload(sys)
|
273
|
+
sys.setdefaultencoding("utf-8")
|
274
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
275
|
+
|
276
|
+
def __repr__(self):
|
277
|
+
"""For `print`"""
|
278
|
+
return self.to_str()
|
279
|
+
|
280
|
+
def __eq__(self, other):
|
281
|
+
"""Returns true if both objects are equal"""
|
282
|
+
if not isinstance(other, MigrationRocketMqTopicConfig):
|
283
|
+
return False
|
284
|
+
|
285
|
+
return self.__dict__ == other.__dict__
|
286
|
+
|
287
|
+
def __ne__(self, other):
|
288
|
+
"""Returns true if both objects are not equal"""
|
289
|
+
return not self == other
|