huaweicloudsdkrocketmq 3.1.41__py2.py3-none-any.whl → 3.1.43__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 +15 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +15 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py +223 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_response.py +112 -0
- huaweicloudsdkrocketmq/v2/model/deadletter_resend_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/deadletter_resend_resp_resend_results.py +173 -0
- huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_response.py +112 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_mq_migration_task_request.py +259 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_mq_migration_task_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/metadata_delete_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/metadata_task.py +231 -0
- huaweicloudsdkrocketmq/v2/model/resend_req.py +173 -0
- huaweicloudsdkrocketmq/v2/model/send_dlq_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/send_dlq_message_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/tag_entity.py +6 -6
- huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py +6 -6
- huaweicloudsdkrocketmq/v2/model/validate_consumed_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/validate_consumed_message_response.py +116 -0
- huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +6 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +314 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +309 -0
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/RECORD +28 -13
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/top_level.txt +0 -0
@@ -36,6 +36,8 @@ from huaweicloudsdkrocketmq.v2.model.create_instance_by_engine_response import C
|
|
36
36
|
from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_req import CreatePostPaidInstanceReq
|
37
37
|
from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_request import CreatePostPaidInstanceRequest
|
38
38
|
from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_response import CreatePostPaidInstanceResponse
|
39
|
+
from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_request import CreateRocketMqMigrationTaskRequest
|
40
|
+
from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_response import CreateRocketMqMigrationTaskResponse
|
39
41
|
from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_req import CreateTopicOrBatchDeleteTopicReq
|
40
42
|
from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_request import CreateTopicOrBatchDeleteTopicRequest
|
41
43
|
from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_response import CreateTopicOrBatchDeleteTopicResponse
|
@@ -43,10 +45,14 @@ from huaweicloudsdkrocketmq.v2.model.create_topic_req import CreateTopicReq
|
|
43
45
|
from huaweicloudsdkrocketmq.v2.model.create_topic_resp import CreateTopicResp
|
44
46
|
from huaweicloudsdkrocketmq.v2.model.create_user_request import CreateUserRequest
|
45
47
|
from huaweicloudsdkrocketmq.v2.model.create_user_response import CreateUserResponse
|
48
|
+
from huaweicloudsdkrocketmq.v2.model.deadletter_resend_req import DeadletterResendReq
|
49
|
+
from huaweicloudsdkrocketmq.v2.model.deadletter_resend_resp_resend_results import DeadletterResendRespResendResults
|
46
50
|
from huaweicloudsdkrocketmq.v2.model.delete_consumer_group_request import DeleteConsumerGroupRequest
|
47
51
|
from huaweicloudsdkrocketmq.v2.model.delete_consumer_group_response import DeleteConsumerGroupResponse
|
48
52
|
from huaweicloudsdkrocketmq.v2.model.delete_instance_request import DeleteInstanceRequest
|
49
53
|
from huaweicloudsdkrocketmq.v2.model.delete_instance_response import DeleteInstanceResponse
|
54
|
+
from huaweicloudsdkrocketmq.v2.model.delete_rocket_mq_migration_task_request import DeleteRocketMqMigrationTaskRequest
|
55
|
+
from huaweicloudsdkrocketmq.v2.model.delete_rocket_mq_migration_task_response import DeleteRocketMqMigrationTaskResponse
|
50
56
|
from huaweicloudsdkrocketmq.v2.model.delete_topic_request import DeleteTopicRequest
|
51
57
|
from huaweicloudsdkrocketmq.v2.model.delete_topic_response import DeleteTopicResponse
|
52
58
|
from huaweicloudsdkrocketmq.v2.model.delete_user_request import DeleteUserRequest
|
@@ -76,17 +82,24 @@ from huaweicloudsdkrocketmq.v2.model.list_messages_request import ListMessagesRe
|
|
76
82
|
from huaweicloudsdkrocketmq.v2.model.list_messages_response import ListMessagesResponse
|
77
83
|
from huaweicloudsdkrocketmq.v2.model.list_rocket_instance_topics_request import ListRocketInstanceTopicsRequest
|
78
84
|
from huaweicloudsdkrocketmq.v2.model.list_rocket_instance_topics_response import ListRocketInstanceTopicsResponse
|
85
|
+
from huaweicloudsdkrocketmq.v2.model.list_rocket_mq_migration_task_request import ListRocketMqMigrationTaskRequest
|
86
|
+
from huaweicloudsdkrocketmq.v2.model.list_rocket_mq_migration_task_response import ListRocketMqMigrationTaskResponse
|
79
87
|
from huaweicloudsdkrocketmq.v2.model.list_topic_access_policy_request import ListTopicAccessPolicyRequest
|
80
88
|
from huaweicloudsdkrocketmq.v2.model.list_topic_access_policy_response import ListTopicAccessPolicyResponse
|
81
89
|
from huaweicloudsdkrocketmq.v2.model.list_user_request import ListUserRequest
|
82
90
|
from huaweicloudsdkrocketmq.v2.model.list_user_response import ListUserResponse
|
83
91
|
from huaweicloudsdkrocketmq.v2.model.message import Message
|
84
92
|
from huaweicloudsdkrocketmq.v2.model.message_property_list import MessagePropertyList
|
93
|
+
from huaweicloudsdkrocketmq.v2.model.metadata_delete_req import MetadataDeleteReq
|
94
|
+
from huaweicloudsdkrocketmq.v2.model.metadata_task import MetadataTask
|
85
95
|
from huaweicloudsdkrocketmq.v2.model.queue import Queue
|
96
|
+
from huaweicloudsdkrocketmq.v2.model.resend_req import ResendReq
|
86
97
|
from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_req import ResetConsumeOffsetReq
|
87
98
|
from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_request import ResetConsumeOffsetRequest
|
88
99
|
from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_resp_queues import ResetConsumeOffsetRespQueues
|
89
100
|
from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_response import ResetConsumeOffsetResponse
|
101
|
+
from huaweicloudsdkrocketmq.v2.model.send_dlq_message_request import SendDlqMessageRequest
|
102
|
+
from huaweicloudsdkrocketmq.v2.model.send_dlq_message_response import SendDlqMessageResponse
|
90
103
|
from huaweicloudsdkrocketmq.v2.model.show_consumer_connections_request import ShowConsumerConnectionsRequest
|
91
104
|
from huaweicloudsdkrocketmq.v2.model.show_consumer_connections_response import ShowConsumerConnectionsResponse
|
92
105
|
from huaweicloudsdkrocketmq.v2.model.show_consumer_list_or_details_request import ShowConsumerListOrDetailsRequest
|
@@ -126,4 +139,6 @@ from huaweicloudsdkrocketmq.v2.model.update_user_response import UpdateUserRespo
|
|
126
139
|
from huaweicloudsdkrocketmq.v2.model.user import User
|
127
140
|
from huaweicloudsdkrocketmq.v2.model.user_group_perms import UserGroupPerms
|
128
141
|
from huaweicloudsdkrocketmq.v2.model.user_topic_perms import UserTopicPerms
|
142
|
+
from huaweicloudsdkrocketmq.v2.model.validate_consumed_message_request import ValidateConsumedMessageRequest
|
143
|
+
from huaweicloudsdkrocketmq.v2.model.validate_consumed_message_response import ValidateConsumedMessageResponse
|
129
144
|
|
@@ -33,6 +33,8 @@ 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_request import CreateRocketMqMigrationTaskRequest
|
37
|
+
from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_response import CreateRocketMqMigrationTaskResponse
|
36
38
|
from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_req import CreateTopicOrBatchDeleteTopicReq
|
37
39
|
from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_request import CreateTopicOrBatchDeleteTopicRequest
|
38
40
|
from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_response import CreateTopicOrBatchDeleteTopicResponse
|
@@ -40,10 +42,14 @@ from huaweicloudsdkrocketmq.v2.model.create_topic_req import CreateTopicReq
|
|
40
42
|
from huaweicloudsdkrocketmq.v2.model.create_topic_resp import CreateTopicResp
|
41
43
|
from huaweicloudsdkrocketmq.v2.model.create_user_request import CreateUserRequest
|
42
44
|
from huaweicloudsdkrocketmq.v2.model.create_user_response import CreateUserResponse
|
45
|
+
from huaweicloudsdkrocketmq.v2.model.deadletter_resend_req import DeadletterResendReq
|
46
|
+
from huaweicloudsdkrocketmq.v2.model.deadletter_resend_resp_resend_results import DeadletterResendRespResendResults
|
43
47
|
from huaweicloudsdkrocketmq.v2.model.delete_consumer_group_request import DeleteConsumerGroupRequest
|
44
48
|
from huaweicloudsdkrocketmq.v2.model.delete_consumer_group_response import DeleteConsumerGroupResponse
|
45
49
|
from huaweicloudsdkrocketmq.v2.model.delete_instance_request import DeleteInstanceRequest
|
46
50
|
from huaweicloudsdkrocketmq.v2.model.delete_instance_response import DeleteInstanceResponse
|
51
|
+
from huaweicloudsdkrocketmq.v2.model.delete_rocket_mq_migration_task_request import DeleteRocketMqMigrationTaskRequest
|
52
|
+
from huaweicloudsdkrocketmq.v2.model.delete_rocket_mq_migration_task_response import DeleteRocketMqMigrationTaskResponse
|
47
53
|
from huaweicloudsdkrocketmq.v2.model.delete_topic_request import DeleteTopicRequest
|
48
54
|
from huaweicloudsdkrocketmq.v2.model.delete_topic_response import DeleteTopicResponse
|
49
55
|
from huaweicloudsdkrocketmq.v2.model.delete_user_request import DeleteUserRequest
|
@@ -73,17 +79,24 @@ from huaweicloudsdkrocketmq.v2.model.list_messages_request import ListMessagesRe
|
|
73
79
|
from huaweicloudsdkrocketmq.v2.model.list_messages_response import ListMessagesResponse
|
74
80
|
from huaweicloudsdkrocketmq.v2.model.list_rocket_instance_topics_request import ListRocketInstanceTopicsRequest
|
75
81
|
from huaweicloudsdkrocketmq.v2.model.list_rocket_instance_topics_response import ListRocketInstanceTopicsResponse
|
82
|
+
from huaweicloudsdkrocketmq.v2.model.list_rocket_mq_migration_task_request import ListRocketMqMigrationTaskRequest
|
83
|
+
from huaweicloudsdkrocketmq.v2.model.list_rocket_mq_migration_task_response import ListRocketMqMigrationTaskResponse
|
76
84
|
from huaweicloudsdkrocketmq.v2.model.list_topic_access_policy_request import ListTopicAccessPolicyRequest
|
77
85
|
from huaweicloudsdkrocketmq.v2.model.list_topic_access_policy_response import ListTopicAccessPolicyResponse
|
78
86
|
from huaweicloudsdkrocketmq.v2.model.list_user_request import ListUserRequest
|
79
87
|
from huaweicloudsdkrocketmq.v2.model.list_user_response import ListUserResponse
|
80
88
|
from huaweicloudsdkrocketmq.v2.model.message import Message
|
81
89
|
from huaweicloudsdkrocketmq.v2.model.message_property_list import MessagePropertyList
|
90
|
+
from huaweicloudsdkrocketmq.v2.model.metadata_delete_req import MetadataDeleteReq
|
91
|
+
from huaweicloudsdkrocketmq.v2.model.metadata_task import MetadataTask
|
82
92
|
from huaweicloudsdkrocketmq.v2.model.queue import Queue
|
93
|
+
from huaweicloudsdkrocketmq.v2.model.resend_req import ResendReq
|
83
94
|
from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_req import ResetConsumeOffsetReq
|
84
95
|
from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_request import ResetConsumeOffsetRequest
|
85
96
|
from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_resp_queues import ResetConsumeOffsetRespQueues
|
86
97
|
from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_response import ResetConsumeOffsetResponse
|
98
|
+
from huaweicloudsdkrocketmq.v2.model.send_dlq_message_request import SendDlqMessageRequest
|
99
|
+
from huaweicloudsdkrocketmq.v2.model.send_dlq_message_response import SendDlqMessageResponse
|
87
100
|
from huaweicloudsdkrocketmq.v2.model.show_consumer_connections_request import ShowConsumerConnectionsRequest
|
88
101
|
from huaweicloudsdkrocketmq.v2.model.show_consumer_connections_response import ShowConsumerConnectionsResponse
|
89
102
|
from huaweicloudsdkrocketmq.v2.model.show_consumer_list_or_details_request import ShowConsumerListOrDetailsRequest
|
@@ -123,3 +136,5 @@ from huaweicloudsdkrocketmq.v2.model.update_user_response import UpdateUserRespo
|
|
123
136
|
from huaweicloudsdkrocketmq.v2.model.user import User
|
124
137
|
from huaweicloudsdkrocketmq.v2.model.user_group_perms import UserGroupPerms
|
125
138
|
from huaweicloudsdkrocketmq.v2.model.user_topic_perms import UserTopicPerms
|
139
|
+
from huaweicloudsdkrocketmq.v2.model.validate_consumed_message_request import ValidateConsumedMessageRequest
|
140
|
+
from huaweicloudsdkrocketmq.v2.model.validate_consumed_message_response import ValidateConsumedMessageResponse
|
@@ -83,7 +83,7 @@ class CreateInstanceByEngineReq:
|
|
83
83
|
:type security_group_id: str
|
84
84
|
:param available_zones: 创建节点到指定且有资源的可用区ID。该参数不能为空数组或者数组的值为空, 请注意查看该可用区是否有资源。 创建RocketMQ实例,支持节点部署在1个或3个及3个以上的可用区。在为节点指定可用区时,用逗号分隔开。
|
85
85
|
:type available_zones: list[str]
|
86
|
-
:param product_id: RocketMQ实例规格。 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000
|
86
|
+
:param product_id: RocketMQ实例规格。 - c6.4u8g.cluster.small:单个代理最大Topic数2000,单个代理最大消费组数2000 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000
|
87
87
|
:type product_id: str
|
88
88
|
:param ssl_enable: 是否打开SSL加密访问。 - true:打开SSL加密访问。 - false:不打开SSL加密访问。
|
89
89
|
:type ssl_enable: bool
|
@@ -358,7 +358,7 @@ class CreateInstanceByEngineReq:
|
|
358
358
|
def product_id(self):
|
359
359
|
"""Gets the product_id of this CreateInstanceByEngineReq.
|
360
360
|
|
361
|
-
RocketMQ实例规格。 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000
|
361
|
+
RocketMQ实例规格。 - c6.4u8g.cluster.small:单个代理最大Topic数2000,单个代理最大消费组数2000 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000
|
362
362
|
|
363
363
|
:return: The product_id of this CreateInstanceByEngineReq.
|
364
364
|
:rtype: str
|
@@ -369,7 +369,7 @@ class CreateInstanceByEngineReq:
|
|
369
369
|
def product_id(self, product_id):
|
370
370
|
"""Sets the product_id of this CreateInstanceByEngineReq.
|
371
371
|
|
372
|
-
RocketMQ实例规格。 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000
|
372
|
+
RocketMQ实例规格。 - c6.4u8g.cluster.small:单个代理最大Topic数2000,单个代理最大消费组数2000 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000
|
373
373
|
|
374
374
|
:param product_id: The product_id of this CreateInstanceByEngineReq.
|
375
375
|
:type product_id: str
|
@@ -0,0 +1,223 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateRocketMqMigrationTaskRequest:
|
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
|
+
'instance_id': 'str',
|
21
|
+
'overwrite': 'str',
|
22
|
+
'name': 'str',
|
23
|
+
'type': 'str',
|
24
|
+
'body': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'instance_id': 'instance_id',
|
29
|
+
'overwrite': 'overwrite',
|
30
|
+
'name': 'name',
|
31
|
+
'type': 'type',
|
32
|
+
'body': 'body'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, instance_id=None, overwrite=None, name=None, type=None, body=None):
|
36
|
+
"""CreateRocketMqMigrationTaskRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param instance_id: 实例ID。
|
41
|
+
:type instance_id: str
|
42
|
+
:param overwrite: true开启同名覆盖,会对已有的同名元数据的配置进行修改,false时当topic或group已存在则会报错。
|
43
|
+
:type overwrite: str
|
44
|
+
:param name: 迁移任务名称,名称规则参考创建实例
|
45
|
+
:type name: str
|
46
|
+
:param type: 迁移任务类型,分为自建RocketMQ上云(rocketmq)、自建RabbitMQ上云(rabbitToRocket)、自建Kafka上云(kafka)
|
47
|
+
:type type: str
|
48
|
+
:param body: Body of the CreateRocketMqMigrationTaskRequest
|
49
|
+
:type body: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._instance_id = None
|
55
|
+
self._overwrite = None
|
56
|
+
self._name = None
|
57
|
+
self._type = None
|
58
|
+
self._body = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.instance_id = instance_id
|
62
|
+
self.overwrite = overwrite
|
63
|
+
self.name = name
|
64
|
+
self.type = type
|
65
|
+
if body is not None:
|
66
|
+
self.body = body
|
67
|
+
|
68
|
+
@property
|
69
|
+
def instance_id(self):
|
70
|
+
"""Gets the instance_id of this CreateRocketMqMigrationTaskRequest.
|
71
|
+
|
72
|
+
实例ID。
|
73
|
+
|
74
|
+
:return: The instance_id of this CreateRocketMqMigrationTaskRequest.
|
75
|
+
:rtype: str
|
76
|
+
"""
|
77
|
+
return self._instance_id
|
78
|
+
|
79
|
+
@instance_id.setter
|
80
|
+
def instance_id(self, instance_id):
|
81
|
+
"""Sets the instance_id of this CreateRocketMqMigrationTaskRequest.
|
82
|
+
|
83
|
+
实例ID。
|
84
|
+
|
85
|
+
:param instance_id: The instance_id of this CreateRocketMqMigrationTaskRequest.
|
86
|
+
:type instance_id: str
|
87
|
+
"""
|
88
|
+
self._instance_id = instance_id
|
89
|
+
|
90
|
+
@property
|
91
|
+
def overwrite(self):
|
92
|
+
"""Gets the overwrite of this CreateRocketMqMigrationTaskRequest.
|
93
|
+
|
94
|
+
true开启同名覆盖,会对已有的同名元数据的配置进行修改,false时当topic或group已存在则会报错。
|
95
|
+
|
96
|
+
:return: The overwrite of this CreateRocketMqMigrationTaskRequest.
|
97
|
+
:rtype: str
|
98
|
+
"""
|
99
|
+
return self._overwrite
|
100
|
+
|
101
|
+
@overwrite.setter
|
102
|
+
def overwrite(self, overwrite):
|
103
|
+
"""Sets the overwrite of this CreateRocketMqMigrationTaskRequest.
|
104
|
+
|
105
|
+
true开启同名覆盖,会对已有的同名元数据的配置进行修改,false时当topic或group已存在则会报错。
|
106
|
+
|
107
|
+
:param overwrite: The overwrite of this CreateRocketMqMigrationTaskRequest.
|
108
|
+
:type overwrite: str
|
109
|
+
"""
|
110
|
+
self._overwrite = overwrite
|
111
|
+
|
112
|
+
@property
|
113
|
+
def name(self):
|
114
|
+
"""Gets the name of this CreateRocketMqMigrationTaskRequest.
|
115
|
+
|
116
|
+
迁移任务名称,名称规则参考创建实例
|
117
|
+
|
118
|
+
:return: The name of this CreateRocketMqMigrationTaskRequest.
|
119
|
+
:rtype: str
|
120
|
+
"""
|
121
|
+
return self._name
|
122
|
+
|
123
|
+
@name.setter
|
124
|
+
def name(self, name):
|
125
|
+
"""Sets the name of this CreateRocketMqMigrationTaskRequest.
|
126
|
+
|
127
|
+
迁移任务名称,名称规则参考创建实例
|
128
|
+
|
129
|
+
:param name: The name of this CreateRocketMqMigrationTaskRequest.
|
130
|
+
:type name: str
|
131
|
+
"""
|
132
|
+
self._name = name
|
133
|
+
|
134
|
+
@property
|
135
|
+
def type(self):
|
136
|
+
"""Gets the type of this CreateRocketMqMigrationTaskRequest.
|
137
|
+
|
138
|
+
迁移任务类型,分为自建RocketMQ上云(rocketmq)、自建RabbitMQ上云(rabbitToRocket)、自建Kafka上云(kafka)
|
139
|
+
|
140
|
+
:return: The type of this CreateRocketMqMigrationTaskRequest.
|
141
|
+
:rtype: str
|
142
|
+
"""
|
143
|
+
return self._type
|
144
|
+
|
145
|
+
@type.setter
|
146
|
+
def type(self, type):
|
147
|
+
"""Sets the type of this CreateRocketMqMigrationTaskRequest.
|
148
|
+
|
149
|
+
迁移任务类型,分为自建RocketMQ上云(rocketmq)、自建RabbitMQ上云(rabbitToRocket)、自建Kafka上云(kafka)
|
150
|
+
|
151
|
+
:param type: The type of this CreateRocketMqMigrationTaskRequest.
|
152
|
+
:type type: str
|
153
|
+
"""
|
154
|
+
self._type = type
|
155
|
+
|
156
|
+
@property
|
157
|
+
def body(self):
|
158
|
+
"""Gets the body of this CreateRocketMqMigrationTaskRequest.
|
159
|
+
|
160
|
+
:return: The body of this CreateRocketMqMigrationTaskRequest.
|
161
|
+
:rtype: str
|
162
|
+
"""
|
163
|
+
return self._body
|
164
|
+
|
165
|
+
@body.setter
|
166
|
+
def body(self, body):
|
167
|
+
"""Sets the body of this CreateRocketMqMigrationTaskRequest.
|
168
|
+
|
169
|
+
:param body: The body of this CreateRocketMqMigrationTaskRequest.
|
170
|
+
:type body: str
|
171
|
+
"""
|
172
|
+
self._body = body
|
173
|
+
|
174
|
+
def to_dict(self):
|
175
|
+
"""Returns the model properties as a dict"""
|
176
|
+
result = {}
|
177
|
+
|
178
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
179
|
+
value = getattr(self, attr)
|
180
|
+
if isinstance(value, list):
|
181
|
+
result[attr] = list(map(
|
182
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
183
|
+
value
|
184
|
+
))
|
185
|
+
elif hasattr(value, "to_dict"):
|
186
|
+
result[attr] = value.to_dict()
|
187
|
+
elif isinstance(value, dict):
|
188
|
+
result[attr] = dict(map(
|
189
|
+
lambda item: (item[0], item[1].to_dict())
|
190
|
+
if hasattr(item[1], "to_dict") else item,
|
191
|
+
value.items()
|
192
|
+
))
|
193
|
+
else:
|
194
|
+
if attr in self.sensitive_list:
|
195
|
+
result[attr] = "****"
|
196
|
+
else:
|
197
|
+
result[attr] = value
|
198
|
+
|
199
|
+
return result
|
200
|
+
|
201
|
+
def to_str(self):
|
202
|
+
"""Returns the string representation of the model"""
|
203
|
+
import simplejson as json
|
204
|
+
if six.PY2:
|
205
|
+
import sys
|
206
|
+
reload(sys)
|
207
|
+
sys.setdefaultencoding("utf-8")
|
208
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
209
|
+
|
210
|
+
def __repr__(self):
|
211
|
+
"""For `print`"""
|
212
|
+
return self.to_str()
|
213
|
+
|
214
|
+
def __eq__(self, other):
|
215
|
+
"""Returns true if both objects are equal"""
|
216
|
+
if not isinstance(other, CreateRocketMqMigrationTaskRequest):
|
217
|
+
return False
|
218
|
+
|
219
|
+
return self.__dict__ == other.__dict__
|
220
|
+
|
221
|
+
def __ne__(self, other):
|
222
|
+
"""Returns true if both objects are not equal"""
|
223
|
+
return not self == other
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class CreateRocketMqMigrationTaskResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'body': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'body': 'body'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, body=None):
|
29
|
+
"""CreateRocketMqMigrationTaskResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body:
|
34
|
+
:type body: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateRocketMqMigrationTaskResponse, self).__init__()
|
38
|
+
|
39
|
+
self._body = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if body is not None:
|
43
|
+
self.body = body
|
44
|
+
|
45
|
+
@property
|
46
|
+
def body(self):
|
47
|
+
"""Gets the body of this CreateRocketMqMigrationTaskResponse.
|
48
|
+
|
49
|
+
:return: The body of this CreateRocketMqMigrationTaskResponse.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._body
|
53
|
+
|
54
|
+
@body.setter
|
55
|
+
def body(self, body):
|
56
|
+
"""Sets the body of this CreateRocketMqMigrationTaskResponse.
|
57
|
+
|
58
|
+
:param body: The body of this CreateRocketMqMigrationTaskResponse.
|
59
|
+
:type body: str
|
60
|
+
"""
|
61
|
+
self._body = body
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the model properties as a dict"""
|
65
|
+
result = {}
|
66
|
+
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
+
value = getattr(self, attr)
|
69
|
+
if isinstance(value, list):
|
70
|
+
result[attr] = list(map(
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
+
value
|
73
|
+
))
|
74
|
+
elif hasattr(value, "to_dict"):
|
75
|
+
result[attr] = value.to_dict()
|
76
|
+
elif isinstance(value, dict):
|
77
|
+
result[attr] = dict(map(
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
80
|
+
value.items()
|
81
|
+
))
|
82
|
+
else:
|
83
|
+
if attr in self.sensitive_list:
|
84
|
+
result[attr] = "****"
|
85
|
+
else:
|
86
|
+
result[attr] = value
|
87
|
+
|
88
|
+
return result
|
89
|
+
|
90
|
+
def to_str(self):
|
91
|
+
"""Returns the string representation of the model"""
|
92
|
+
import simplejson as json
|
93
|
+
if six.PY2:
|
94
|
+
import sys
|
95
|
+
reload(sys)
|
96
|
+
sys.setdefaultencoding("utf-8")
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
"""For `print`"""
|
101
|
+
return self.to_str()
|
102
|
+
|
103
|
+
def __eq__(self, other):
|
104
|
+
"""Returns true if both objects are equal"""
|
105
|
+
if not isinstance(other, CreateRocketMqMigrationTaskResponse):
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
"""Returns true if both objects are not equal"""
|
112
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeadletterResendReq:
|
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': 'str',
|
21
|
+
'msg_id_list': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'topic': 'topic',
|
26
|
+
'msg_id_list': 'msg_id_list'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, topic=None, msg_id_list=None):
|
30
|
+
"""DeadletterResendReq
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param topic: topic。
|
35
|
+
:type topic: str
|
36
|
+
:param msg_id_list: 消息列表。
|
37
|
+
:type msg_id_list: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._topic = None
|
43
|
+
self._msg_id_list = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if topic is not None:
|
47
|
+
self.topic = topic
|
48
|
+
if msg_id_list is not None:
|
49
|
+
self.msg_id_list = msg_id_list
|
50
|
+
|
51
|
+
@property
|
52
|
+
def topic(self):
|
53
|
+
"""Gets the topic of this DeadletterResendReq.
|
54
|
+
|
55
|
+
topic。
|
56
|
+
|
57
|
+
:return: The topic of this DeadletterResendReq.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._topic
|
61
|
+
|
62
|
+
@topic.setter
|
63
|
+
def topic(self, topic):
|
64
|
+
"""Sets the topic of this DeadletterResendReq.
|
65
|
+
|
66
|
+
topic。
|
67
|
+
|
68
|
+
:param topic: The topic of this DeadletterResendReq.
|
69
|
+
:type topic: str
|
70
|
+
"""
|
71
|
+
self._topic = topic
|
72
|
+
|
73
|
+
@property
|
74
|
+
def msg_id_list(self):
|
75
|
+
"""Gets the msg_id_list of this DeadletterResendReq.
|
76
|
+
|
77
|
+
消息列表。
|
78
|
+
|
79
|
+
:return: The msg_id_list of this DeadletterResendReq.
|
80
|
+
:rtype: list[str]
|
81
|
+
"""
|
82
|
+
return self._msg_id_list
|
83
|
+
|
84
|
+
@msg_id_list.setter
|
85
|
+
def msg_id_list(self, msg_id_list):
|
86
|
+
"""Sets the msg_id_list of this DeadletterResendReq.
|
87
|
+
|
88
|
+
消息列表。
|
89
|
+
|
90
|
+
:param msg_id_list: The msg_id_list of this DeadletterResendReq.
|
91
|
+
:type msg_id_list: list[str]
|
92
|
+
"""
|
93
|
+
self._msg_id_list = msg_id_list
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, DeadletterResendReq):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|