huaweicloudsdkrocketmq 3.1.71__py2.py3-none-any.whl → 3.1.72__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- huaweicloudsdkrocketmq/v2/__init__.py +7 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +7 -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/region/rocketmq_region.py +3 -0
- {huaweicloudsdkrocketmq-3.1.71.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.71.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/RECORD +16 -9
- {huaweicloudsdkrocketmq-3.1.71.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.71.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.71.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/top_level.txt +0 -0
@@ -35,6 +35,7 @@ from huaweicloudsdkrocketmq.v2.model.create_instance_by_engine_response import C
|
|
35
35
|
from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_req import CreatePostPaidInstanceReq
|
36
36
|
from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_request import CreatePostPaidInstanceRequest
|
37
37
|
from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_response import CreatePostPaidInstanceResponse
|
38
|
+
from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_req import CreateRocketMqMigrationTaskReq
|
38
39
|
from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_request import CreateRocketMqMigrationTaskRequest
|
39
40
|
from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_response import CreateRocketMqMigrationTaskResponse
|
40
41
|
from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_req import CreateTopicOrBatchDeleteTopicReq
|
@@ -91,6 +92,12 @@ from huaweicloudsdkrocketmq.v2.model.message import Message
|
|
91
92
|
from huaweicloudsdkrocketmq.v2.model.message_property_list import MessagePropertyList
|
92
93
|
from huaweicloudsdkrocketmq.v2.model.metadata_delete_req import MetadataDeleteReq
|
93
94
|
from huaweicloudsdkrocketmq.v2.model.metadata_task import MetadataTask
|
95
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rabbit_binding_metadata import MigrationRabbitBindingMetadata
|
96
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rabbit_exchange_metadata import MigrationRabbitExchangeMetadata
|
97
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rabbit_queue_metadata import MigrationRabbitQueueMetadata
|
98
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rabbit_vhost_metadata import MigrationRabbitVhostMetadata
|
99
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_subscription_group import MigrationRocketMqSubscriptionGroup
|
100
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_topic_config import MigrationRocketMqTopicConfig
|
94
101
|
from huaweicloudsdkrocketmq.v2.model.modify_config_req import ModifyConfigReq
|
95
102
|
from huaweicloudsdkrocketmq.v2.model.queue import Queue
|
96
103
|
from huaweicloudsdkrocketmq.v2.model.resend_req import ResendReq
|
@@ -33,6 +33,7 @@ from huaweicloudsdkrocketmq.v2.model.create_instance_by_engine_response import C
|
|
33
33
|
from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_req import CreatePostPaidInstanceReq
|
34
34
|
from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_request import CreatePostPaidInstanceRequest
|
35
35
|
from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_response import CreatePostPaidInstanceResponse
|
36
|
+
from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_req import CreateRocketMqMigrationTaskReq
|
36
37
|
from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_request import CreateRocketMqMigrationTaskRequest
|
37
38
|
from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_response import CreateRocketMqMigrationTaskResponse
|
38
39
|
from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_req import CreateTopicOrBatchDeleteTopicReq
|
@@ -89,6 +90,12 @@ from huaweicloudsdkrocketmq.v2.model.message import Message
|
|
89
90
|
from huaweicloudsdkrocketmq.v2.model.message_property_list import MessagePropertyList
|
90
91
|
from huaweicloudsdkrocketmq.v2.model.metadata_delete_req import MetadataDeleteReq
|
91
92
|
from huaweicloudsdkrocketmq.v2.model.metadata_task import MetadataTask
|
93
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rabbit_binding_metadata import MigrationRabbitBindingMetadata
|
94
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rabbit_exchange_metadata import MigrationRabbitExchangeMetadata
|
95
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rabbit_queue_metadata import MigrationRabbitQueueMetadata
|
96
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rabbit_vhost_metadata import MigrationRabbitVhostMetadata
|
97
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_subscription_group import MigrationRocketMqSubscriptionGroup
|
98
|
+
from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_topic_config import MigrationRocketMqTopicConfig
|
92
99
|
from huaweicloudsdkrocketmq.v2.model.modify_config_req import ModifyConfigReq
|
93
100
|
from huaweicloudsdkrocketmq.v2.model.queue import Queue
|
94
101
|
from huaweicloudsdkrocketmq.v2.model.resend_req import ResendReq
|
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateRocketMqMigrationTaskReq:
|
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_config_table': 'dict(str, MigrationRocketMqTopicConfig)',
|
21
|
+
'subscription_group_table': 'dict(str, MigrationRocketMqSubscriptionGroup)',
|
22
|
+
'vhosts': 'list[MigrationRabbitVhostMetadata]',
|
23
|
+
'queues': 'list[MigrationRabbitQueueMetadata]',
|
24
|
+
'exchanges': 'list[MigrationRabbitExchangeMetadata]',
|
25
|
+
'bindings': 'list[MigrationRabbitBindingMetadata]'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'topic_config_table': 'topicConfigTable',
|
30
|
+
'subscription_group_table': 'subscriptionGroupTable',
|
31
|
+
'vhosts': 'vhosts',
|
32
|
+
'queues': 'queues',
|
33
|
+
'exchanges': 'exchanges',
|
34
|
+
'bindings': 'bindings'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, topic_config_table=None, subscription_group_table=None, vhosts=None, queues=None, exchanges=None, bindings=None):
|
38
|
+
"""CreateRocketMqMigrationTaskReq
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param topic_config_table: RocketMQ topic 元数据,键为topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
43
|
+
:type topic_config_table: dict(str, MigrationRocketMqTopicConfig)
|
44
|
+
:param subscription_group_table: RocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
45
|
+
:type subscription_group_table: dict(str, MigrationRocketMqSubscriptionGroup)
|
46
|
+
:param vhosts: RabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
47
|
+
:type vhosts: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitVhostMetadata`]
|
48
|
+
:param queues: RabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
49
|
+
:type queues: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitQueueMetadata`]
|
50
|
+
:param exchanges: RabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
51
|
+
:type exchanges: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitExchangeMetadata`]
|
52
|
+
:param bindings: RabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
53
|
+
:type bindings: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitBindingMetadata`]
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._topic_config_table = None
|
59
|
+
self._subscription_group_table = None
|
60
|
+
self._vhosts = None
|
61
|
+
self._queues = None
|
62
|
+
self._exchanges = None
|
63
|
+
self._bindings = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if topic_config_table is not None:
|
67
|
+
self.topic_config_table = topic_config_table
|
68
|
+
if subscription_group_table is not None:
|
69
|
+
self.subscription_group_table = subscription_group_table
|
70
|
+
if vhosts is not None:
|
71
|
+
self.vhosts = vhosts
|
72
|
+
if queues is not None:
|
73
|
+
self.queues = queues
|
74
|
+
if exchanges is not None:
|
75
|
+
self.exchanges = exchanges
|
76
|
+
if bindings is not None:
|
77
|
+
self.bindings = bindings
|
78
|
+
|
79
|
+
@property
|
80
|
+
def topic_config_table(self):
|
81
|
+
"""Gets the topic_config_table of this CreateRocketMqMigrationTaskReq.
|
82
|
+
|
83
|
+
RocketMQ topic 元数据,键为topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
84
|
+
|
85
|
+
:return: The topic_config_table of this CreateRocketMqMigrationTaskReq.
|
86
|
+
:rtype: dict(str, MigrationRocketMqTopicConfig)
|
87
|
+
"""
|
88
|
+
return self._topic_config_table
|
89
|
+
|
90
|
+
@topic_config_table.setter
|
91
|
+
def topic_config_table(self, topic_config_table):
|
92
|
+
"""Sets the topic_config_table of this CreateRocketMqMigrationTaskReq.
|
93
|
+
|
94
|
+
RocketMQ topic 元数据,键为topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
95
|
+
|
96
|
+
:param topic_config_table: The topic_config_table of this CreateRocketMqMigrationTaskReq.
|
97
|
+
:type topic_config_table: dict(str, MigrationRocketMqTopicConfig)
|
98
|
+
"""
|
99
|
+
self._topic_config_table = topic_config_table
|
100
|
+
|
101
|
+
@property
|
102
|
+
def subscription_group_table(self):
|
103
|
+
"""Gets the subscription_group_table of this CreateRocketMqMigrationTaskReq.
|
104
|
+
|
105
|
+
RocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
106
|
+
|
107
|
+
:return: The subscription_group_table of this CreateRocketMqMigrationTaskReq.
|
108
|
+
:rtype: dict(str, MigrationRocketMqSubscriptionGroup)
|
109
|
+
"""
|
110
|
+
return self._subscription_group_table
|
111
|
+
|
112
|
+
@subscription_group_table.setter
|
113
|
+
def subscription_group_table(self, subscription_group_table):
|
114
|
+
"""Sets the subscription_group_table of this CreateRocketMqMigrationTaskReq.
|
115
|
+
|
116
|
+
RocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
117
|
+
|
118
|
+
:param subscription_group_table: The subscription_group_table of this CreateRocketMqMigrationTaskReq.
|
119
|
+
:type subscription_group_table: dict(str, MigrationRocketMqSubscriptionGroup)
|
120
|
+
"""
|
121
|
+
self._subscription_group_table = subscription_group_table
|
122
|
+
|
123
|
+
@property
|
124
|
+
def vhosts(self):
|
125
|
+
"""Gets the vhosts of this CreateRocketMqMigrationTaskReq.
|
126
|
+
|
127
|
+
RabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
128
|
+
|
129
|
+
:return: The vhosts of this CreateRocketMqMigrationTaskReq.
|
130
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitVhostMetadata`]
|
131
|
+
"""
|
132
|
+
return self._vhosts
|
133
|
+
|
134
|
+
@vhosts.setter
|
135
|
+
def vhosts(self, vhosts):
|
136
|
+
"""Sets the vhosts of this CreateRocketMqMigrationTaskReq.
|
137
|
+
|
138
|
+
RabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
139
|
+
|
140
|
+
:param vhosts: The vhosts of this CreateRocketMqMigrationTaskReq.
|
141
|
+
:type vhosts: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitVhostMetadata`]
|
142
|
+
"""
|
143
|
+
self._vhosts = vhosts
|
144
|
+
|
145
|
+
@property
|
146
|
+
def queues(self):
|
147
|
+
"""Gets the queues of this CreateRocketMqMigrationTaskReq.
|
148
|
+
|
149
|
+
RabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
150
|
+
|
151
|
+
:return: The queues of this CreateRocketMqMigrationTaskReq.
|
152
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitQueueMetadata`]
|
153
|
+
"""
|
154
|
+
return self._queues
|
155
|
+
|
156
|
+
@queues.setter
|
157
|
+
def queues(self, queues):
|
158
|
+
"""Sets the queues of this CreateRocketMqMigrationTaskReq.
|
159
|
+
|
160
|
+
RabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
161
|
+
|
162
|
+
:param queues: The queues of this CreateRocketMqMigrationTaskReq.
|
163
|
+
:type queues: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitQueueMetadata`]
|
164
|
+
"""
|
165
|
+
self._queues = queues
|
166
|
+
|
167
|
+
@property
|
168
|
+
def exchanges(self):
|
169
|
+
"""Gets the exchanges of this CreateRocketMqMigrationTaskReq.
|
170
|
+
|
171
|
+
RabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
172
|
+
|
173
|
+
:return: The exchanges of this CreateRocketMqMigrationTaskReq.
|
174
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitExchangeMetadata`]
|
175
|
+
"""
|
176
|
+
return self._exchanges
|
177
|
+
|
178
|
+
@exchanges.setter
|
179
|
+
def exchanges(self, exchanges):
|
180
|
+
"""Sets the exchanges of this CreateRocketMqMigrationTaskReq.
|
181
|
+
|
182
|
+
RabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
183
|
+
|
184
|
+
:param exchanges: The exchanges of this CreateRocketMqMigrationTaskReq.
|
185
|
+
:type exchanges: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitExchangeMetadata`]
|
186
|
+
"""
|
187
|
+
self._exchanges = exchanges
|
188
|
+
|
189
|
+
@property
|
190
|
+
def bindings(self):
|
191
|
+
"""Gets the bindings of this CreateRocketMqMigrationTaskReq.
|
192
|
+
|
193
|
+
RabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
194
|
+
|
195
|
+
:return: The bindings of this CreateRocketMqMigrationTaskReq.
|
196
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitBindingMetadata`]
|
197
|
+
"""
|
198
|
+
return self._bindings
|
199
|
+
|
200
|
+
@bindings.setter
|
201
|
+
def bindings(self, bindings):
|
202
|
+
"""Sets the bindings of this CreateRocketMqMigrationTaskReq.
|
203
|
+
|
204
|
+
RabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
205
|
+
|
206
|
+
:param bindings: The bindings of this CreateRocketMqMigrationTaskReq.
|
207
|
+
:type bindings: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitBindingMetadata`]
|
208
|
+
"""
|
209
|
+
self._bindings = bindings
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, CreateRocketMqMigrationTaskReq):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|
@@ -21,7 +21,7 @@ class CreateRocketMqMigrationTaskRequest:
|
|
21
21
|
'overwrite': 'str',
|
22
22
|
'name': 'str',
|
23
23
|
'type': 'str',
|
24
|
-
'body': '
|
24
|
+
'body': 'CreateRocketMqMigrationTaskReq'
|
25
25
|
}
|
26
26
|
|
27
27
|
attribute_map = {
|
@@ -45,8 +45,8 @@ class CreateRocketMqMigrationTaskRequest:
|
|
45
45
|
:type name: str
|
46
46
|
:param type: 迁移任务类型,分为自建RocketMQ上云(rocketmq)、自建RabbitMQ上云(rabbitToRocket)
|
47
47
|
:type type: str
|
48
|
-
:param body:
|
49
|
-
:type body:
|
48
|
+
:param body: Body of the CreateRocketMqMigrationTaskRequest
|
49
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskReq`
|
50
50
|
"""
|
51
51
|
|
52
52
|
|
@@ -157,10 +157,8 @@ class CreateRocketMqMigrationTaskRequest:
|
|
157
157
|
def body(self):
|
158
158
|
"""Gets the body of this CreateRocketMqMigrationTaskRequest.
|
159
159
|
|
160
|
-
元数据json文件。
|
161
|
-
|
162
160
|
:return: The body of this CreateRocketMqMigrationTaskRequest.
|
163
|
-
:rtype:
|
161
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskReq`
|
164
162
|
"""
|
165
163
|
return self._body
|
166
164
|
|
@@ -168,10 +166,8 @@ class CreateRocketMqMigrationTaskRequest:
|
|
168
166
|
def body(self, body):
|
169
167
|
"""Sets the body of this CreateRocketMqMigrationTaskRequest.
|
170
168
|
|
171
|
-
元数据json文件。
|
172
|
-
|
173
169
|
:param body: The body of this CreateRocketMqMigrationTaskRequest.
|
174
|
-
:type body:
|
170
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskReq`
|
175
171
|
"""
|
176
172
|
self._body = body
|
177
173
|
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class MigrationRabbitBindingMetadata:
|
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
|
+
'vhost': 'str',
|
21
|
+
'source': 'str',
|
22
|
+
'destination': 'str',
|
23
|
+
'destination_type': 'str',
|
24
|
+
'routing_key': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'vhost': 'vhost',
|
29
|
+
'source': 'source',
|
30
|
+
'destination': 'destination',
|
31
|
+
'destination_type': 'destination_type',
|
32
|
+
'routing_key': 'routing_key'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, vhost=None, source=None, destination=None, destination_type=None, routing_key=None):
|
36
|
+
"""MigrationRabbitBindingMetadata
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param vhost: vhost名称。
|
41
|
+
:type vhost: str
|
42
|
+
:param source: 消息的来源。
|
43
|
+
:type source: str
|
44
|
+
:param destination: 消息的目标。
|
45
|
+
:type destination: str
|
46
|
+
:param destination_type: 目标的类型。
|
47
|
+
:type destination_type: str
|
48
|
+
:param routing_key: 路由键。
|
49
|
+
:type routing_key: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._vhost = None
|
55
|
+
self._source = None
|
56
|
+
self._destination = None
|
57
|
+
self._destination_type = None
|
58
|
+
self._routing_key = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if vhost is not None:
|
62
|
+
self.vhost = vhost
|
63
|
+
if source is not None:
|
64
|
+
self.source = source
|
65
|
+
if destination is not None:
|
66
|
+
self.destination = destination
|
67
|
+
if destination_type is not None:
|
68
|
+
self.destination_type = destination_type
|
69
|
+
if routing_key is not None:
|
70
|
+
self.routing_key = routing_key
|
71
|
+
|
72
|
+
@property
|
73
|
+
def vhost(self):
|
74
|
+
"""Gets the vhost of this MigrationRabbitBindingMetadata.
|
75
|
+
|
76
|
+
vhost名称。
|
77
|
+
|
78
|
+
:return: The vhost of this MigrationRabbitBindingMetadata.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._vhost
|
82
|
+
|
83
|
+
@vhost.setter
|
84
|
+
def vhost(self, vhost):
|
85
|
+
"""Sets the vhost of this MigrationRabbitBindingMetadata.
|
86
|
+
|
87
|
+
vhost名称。
|
88
|
+
|
89
|
+
:param vhost: The vhost of this MigrationRabbitBindingMetadata.
|
90
|
+
:type vhost: str
|
91
|
+
"""
|
92
|
+
self._vhost = vhost
|
93
|
+
|
94
|
+
@property
|
95
|
+
def source(self):
|
96
|
+
"""Gets the source of this MigrationRabbitBindingMetadata.
|
97
|
+
|
98
|
+
消息的来源。
|
99
|
+
|
100
|
+
:return: The source of this MigrationRabbitBindingMetadata.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._source
|
104
|
+
|
105
|
+
@source.setter
|
106
|
+
def source(self, source):
|
107
|
+
"""Sets the source of this MigrationRabbitBindingMetadata.
|
108
|
+
|
109
|
+
消息的来源。
|
110
|
+
|
111
|
+
:param source: The source of this MigrationRabbitBindingMetadata.
|
112
|
+
:type source: str
|
113
|
+
"""
|
114
|
+
self._source = source
|
115
|
+
|
116
|
+
@property
|
117
|
+
def destination(self):
|
118
|
+
"""Gets the destination of this MigrationRabbitBindingMetadata.
|
119
|
+
|
120
|
+
消息的目标。
|
121
|
+
|
122
|
+
:return: The destination of this MigrationRabbitBindingMetadata.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._destination
|
126
|
+
|
127
|
+
@destination.setter
|
128
|
+
def destination(self, destination):
|
129
|
+
"""Sets the destination of this MigrationRabbitBindingMetadata.
|
130
|
+
|
131
|
+
消息的目标。
|
132
|
+
|
133
|
+
:param destination: The destination of this MigrationRabbitBindingMetadata.
|
134
|
+
:type destination: str
|
135
|
+
"""
|
136
|
+
self._destination = destination
|
137
|
+
|
138
|
+
@property
|
139
|
+
def destination_type(self):
|
140
|
+
"""Gets the destination_type of this MigrationRabbitBindingMetadata.
|
141
|
+
|
142
|
+
目标的类型。
|
143
|
+
|
144
|
+
:return: The destination_type of this MigrationRabbitBindingMetadata.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._destination_type
|
148
|
+
|
149
|
+
@destination_type.setter
|
150
|
+
def destination_type(self, destination_type):
|
151
|
+
"""Sets the destination_type of this MigrationRabbitBindingMetadata.
|
152
|
+
|
153
|
+
目标的类型。
|
154
|
+
|
155
|
+
:param destination_type: The destination_type of this MigrationRabbitBindingMetadata.
|
156
|
+
:type destination_type: str
|
157
|
+
"""
|
158
|
+
self._destination_type = destination_type
|
159
|
+
|
160
|
+
@property
|
161
|
+
def routing_key(self):
|
162
|
+
"""Gets the routing_key of this MigrationRabbitBindingMetadata.
|
163
|
+
|
164
|
+
路由键。
|
165
|
+
|
166
|
+
:return: The routing_key of this MigrationRabbitBindingMetadata.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._routing_key
|
170
|
+
|
171
|
+
@routing_key.setter
|
172
|
+
def routing_key(self, routing_key):
|
173
|
+
"""Sets the routing_key of this MigrationRabbitBindingMetadata.
|
174
|
+
|
175
|
+
路由键。
|
176
|
+
|
177
|
+
:param routing_key: The routing_key of this MigrationRabbitBindingMetadata.
|
178
|
+
:type routing_key: str
|
179
|
+
"""
|
180
|
+
self._routing_key = routing_key
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, MigrationRabbitBindingMetadata):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|