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
@@ -376,6 +376,71 @@ class RocketMQAsyncClient(Client):
|
|
376
376
|
collection_formats=collection_formats,
|
377
377
|
request_type=request.__class__.__name__)
|
378
378
|
|
379
|
+
def create_rocket_mq_migration_task_async(self, request):
|
380
|
+
"""新建元数据迁移任务
|
381
|
+
|
382
|
+
新建元数据迁移任务。
|
383
|
+
|
384
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
385
|
+
|
386
|
+
|
387
|
+
:param request: Request instance for CreateRocketMqMigrationTask
|
388
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskRequest`
|
389
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskResponse`
|
390
|
+
"""
|
391
|
+
return self._create_rocket_mq_migration_task_with_http_info(request)
|
392
|
+
|
393
|
+
def _create_rocket_mq_migration_task_with_http_info(self, request):
|
394
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
395
|
+
|
396
|
+
cname = None
|
397
|
+
|
398
|
+
collection_formats = {}
|
399
|
+
|
400
|
+
path_params = {}
|
401
|
+
if 'instance_id' in local_var_params:
|
402
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
403
|
+
|
404
|
+
query_params = []
|
405
|
+
if 'overwrite' in local_var_params:
|
406
|
+
query_params.append(('overwrite', local_var_params['overwrite']))
|
407
|
+
if 'name' in local_var_params:
|
408
|
+
query_params.append(('name', local_var_params['name']))
|
409
|
+
if 'type' in local_var_params:
|
410
|
+
query_params.append(('type', local_var_params['type']))
|
411
|
+
|
412
|
+
header_params = {}
|
413
|
+
|
414
|
+
form_params = {}
|
415
|
+
|
416
|
+
body_params = None
|
417
|
+
if 'body' in local_var_params:
|
418
|
+
body_params = local_var_params['body']
|
419
|
+
if isinstance(request, SdkStreamRequest):
|
420
|
+
body_params = request.get_file_stream()
|
421
|
+
|
422
|
+
response_headers = []
|
423
|
+
|
424
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
425
|
+
['application/json'])
|
426
|
+
|
427
|
+
auth_settings = []
|
428
|
+
|
429
|
+
return self.call_api(
|
430
|
+
resource_path='/v2/{project_id}/instances/{instance_id}/metadata',
|
431
|
+
method='POST',
|
432
|
+
path_params=path_params,
|
433
|
+
query_params=query_params,
|
434
|
+
header_params=header_params,
|
435
|
+
body=body_params,
|
436
|
+
post_params=form_params,
|
437
|
+
cname=cname,
|
438
|
+
response_type='CreateRocketMqMigrationTaskResponse',
|
439
|
+
response_headers=response_headers,
|
440
|
+
auth_settings=auth_settings,
|
441
|
+
collection_formats=collection_formats,
|
442
|
+
request_type=request.__class__.__name__)
|
443
|
+
|
379
444
|
def create_user_async(self, request):
|
380
445
|
"""创建用户
|
381
446
|
|
@@ -551,6 +616,65 @@ class RocketMQAsyncClient(Client):
|
|
551
616
|
collection_formats=collection_formats,
|
552
617
|
request_type=request.__class__.__name__)
|
553
618
|
|
619
|
+
def delete_rocket_mq_migration_task_async(self, request):
|
620
|
+
"""删除元数据迁移任务
|
621
|
+
|
622
|
+
删除元数据迁移任务。
|
623
|
+
|
624
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
625
|
+
|
626
|
+
|
627
|
+
:param request: Request instance for DeleteRocketMqMigrationTask
|
628
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.DeleteRocketMqMigrationTaskRequest`
|
629
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.DeleteRocketMqMigrationTaskResponse`
|
630
|
+
"""
|
631
|
+
return self._delete_rocket_mq_migration_task_with_http_info(request)
|
632
|
+
|
633
|
+
def _delete_rocket_mq_migration_task_with_http_info(self, request):
|
634
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
635
|
+
|
636
|
+
cname = None
|
637
|
+
|
638
|
+
collection_formats = {}
|
639
|
+
|
640
|
+
path_params = {}
|
641
|
+
if 'instance_id' in local_var_params:
|
642
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
643
|
+
|
644
|
+
query_params = []
|
645
|
+
|
646
|
+
header_params = {}
|
647
|
+
|
648
|
+
form_params = {}
|
649
|
+
|
650
|
+
body_params = None
|
651
|
+
if 'body' in local_var_params:
|
652
|
+
body_params = local_var_params['body']
|
653
|
+
if isinstance(request, SdkStreamRequest):
|
654
|
+
body_params = request.get_file_stream()
|
655
|
+
|
656
|
+
response_headers = []
|
657
|
+
|
658
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
659
|
+
['application/json'])
|
660
|
+
|
661
|
+
auth_settings = []
|
662
|
+
|
663
|
+
return self.call_api(
|
664
|
+
resource_path='/v2/{project_id}/instances/{instance_id}/metadata',
|
665
|
+
method='DELETE',
|
666
|
+
path_params=path_params,
|
667
|
+
query_params=query_params,
|
668
|
+
header_params=header_params,
|
669
|
+
body=body_params,
|
670
|
+
post_params=form_params,
|
671
|
+
cname=cname,
|
672
|
+
response_type='DeleteRocketMqMigrationTaskResponse',
|
673
|
+
response_headers=response_headers,
|
674
|
+
auth_settings=auth_settings,
|
675
|
+
collection_formats=collection_formats,
|
676
|
+
request_type=request.__class__.__name__)
|
677
|
+
|
554
678
|
def delete_user_async(self, request):
|
555
679
|
"""删除用户
|
556
680
|
|
@@ -1114,6 +1238,74 @@ class RocketMQAsyncClient(Client):
|
|
1114
1238
|
collection_formats=collection_formats,
|
1115
1239
|
request_type=request.__class__.__name__)
|
1116
1240
|
|
1241
|
+
def list_rocket_mq_migration_task_async(self, request):
|
1242
|
+
"""查询实例下所有迁移任务或查询指定迁移任务信息
|
1243
|
+
|
1244
|
+
1. 查询实例下所有迁移任务
|
1245
|
+
2. 查询指定迁移任务信息
|
1246
|
+
|
1247
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1248
|
+
|
1249
|
+
|
1250
|
+
:param request: Request instance for ListRocketMqMigrationTask
|
1251
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListRocketMqMigrationTaskRequest`
|
1252
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListRocketMqMigrationTaskResponse`
|
1253
|
+
"""
|
1254
|
+
return self._list_rocket_mq_migration_task_with_http_info(request)
|
1255
|
+
|
1256
|
+
def _list_rocket_mq_migration_task_with_http_info(self, request):
|
1257
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1258
|
+
|
1259
|
+
cname = None
|
1260
|
+
|
1261
|
+
collection_formats = {}
|
1262
|
+
|
1263
|
+
path_params = {}
|
1264
|
+
if 'instance_id' in local_var_params:
|
1265
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1266
|
+
|
1267
|
+
query_params = []
|
1268
|
+
if 'id' in local_var_params:
|
1269
|
+
query_params.append(('id', local_var_params['id']))
|
1270
|
+
if 'type' in local_var_params:
|
1271
|
+
query_params.append(('type', local_var_params['type']))
|
1272
|
+
if 'offset' in local_var_params:
|
1273
|
+
query_params.append(('offset', local_var_params['offset']))
|
1274
|
+
if 'limit' in local_var_params:
|
1275
|
+
query_params.append(('limit', local_var_params['limit']))
|
1276
|
+
if 'name' in local_var_params:
|
1277
|
+
query_params.append(('name', local_var_params['name']))
|
1278
|
+
|
1279
|
+
header_params = {}
|
1280
|
+
|
1281
|
+
form_params = {}
|
1282
|
+
|
1283
|
+
body_params = None
|
1284
|
+
if isinstance(request, SdkStreamRequest):
|
1285
|
+
body_params = request.get_file_stream()
|
1286
|
+
|
1287
|
+
response_headers = []
|
1288
|
+
|
1289
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1290
|
+
['application/json'])
|
1291
|
+
|
1292
|
+
auth_settings = []
|
1293
|
+
|
1294
|
+
return self.call_api(
|
1295
|
+
resource_path='/v2/{project_id}/instances/{instance_id}/metadata',
|
1296
|
+
method='GET',
|
1297
|
+
path_params=path_params,
|
1298
|
+
query_params=query_params,
|
1299
|
+
header_params=header_params,
|
1300
|
+
body=body_params,
|
1301
|
+
post_params=form_params,
|
1302
|
+
cname=cname,
|
1303
|
+
response_type='ListRocketMqMigrationTaskResponse',
|
1304
|
+
response_headers=response_headers,
|
1305
|
+
auth_settings=auth_settings,
|
1306
|
+
collection_formats=collection_formats,
|
1307
|
+
request_type=request.__class__.__name__)
|
1308
|
+
|
1117
1309
|
def list_topic_access_policy_async(self, request):
|
1118
1310
|
"""查询主题的授权用户列表
|
1119
1311
|
|
@@ -1301,6 +1493,67 @@ class RocketMQAsyncClient(Client):
|
|
1301
1493
|
collection_formats=collection_formats,
|
1302
1494
|
request_type=request.__class__.__name__)
|
1303
1495
|
|
1496
|
+
def send_dlq_message_async(self, request):
|
1497
|
+
"""重发死信消息
|
1498
|
+
|
1499
|
+
重发死信消息。
|
1500
|
+
|
1501
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1502
|
+
|
1503
|
+
|
1504
|
+
:param request: Request instance for SendDlqMessage
|
1505
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageRequest`
|
1506
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageResponse`
|
1507
|
+
"""
|
1508
|
+
return self._send_dlq_message_with_http_info(request)
|
1509
|
+
|
1510
|
+
def _send_dlq_message_with_http_info(self, request):
|
1511
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1512
|
+
|
1513
|
+
cname = None
|
1514
|
+
|
1515
|
+
collection_formats = {}
|
1516
|
+
|
1517
|
+
path_params = {}
|
1518
|
+
if 'engine' in local_var_params:
|
1519
|
+
path_params['engine'] = local_var_params['engine']
|
1520
|
+
if 'instance_id' in local_var_params:
|
1521
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1522
|
+
|
1523
|
+
query_params = []
|
1524
|
+
|
1525
|
+
header_params = {}
|
1526
|
+
|
1527
|
+
form_params = {}
|
1528
|
+
|
1529
|
+
body_params = None
|
1530
|
+
if 'body' in local_var_params:
|
1531
|
+
body_params = local_var_params['body']
|
1532
|
+
if isinstance(request, SdkStreamRequest):
|
1533
|
+
body_params = request.get_file_stream()
|
1534
|
+
|
1535
|
+
response_headers = []
|
1536
|
+
|
1537
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1538
|
+
['application/json'])
|
1539
|
+
|
1540
|
+
auth_settings = []
|
1541
|
+
|
1542
|
+
return self.call_api(
|
1543
|
+
resource_path='/v2/{engine}/{project_id}/instances/{instance_id}/messages/deadletter-resend',
|
1544
|
+
method='POST',
|
1545
|
+
path_params=path_params,
|
1546
|
+
query_params=query_params,
|
1547
|
+
header_params=header_params,
|
1548
|
+
body=body_params,
|
1549
|
+
post_params=form_params,
|
1550
|
+
cname=cname,
|
1551
|
+
response_type='SendDlqMessageResponse',
|
1552
|
+
response_headers=response_headers,
|
1553
|
+
auth_settings=auth_settings,
|
1554
|
+
collection_formats=collection_formats,
|
1555
|
+
request_type=request.__class__.__name__)
|
1556
|
+
|
1304
1557
|
def show_consumer_connections_async(self, request):
|
1305
1558
|
"""查询消费者列表
|
1306
1559
|
|
@@ -1899,6 +2152,67 @@ class RocketMQAsyncClient(Client):
|
|
1899
2152
|
collection_formats=collection_formats,
|
1900
2153
|
request_type=request.__class__.__name__)
|
1901
2154
|
|
2155
|
+
def validate_consumed_message_async(self, request):
|
2156
|
+
"""消费验证
|
2157
|
+
|
2158
|
+
消费验证。
|
2159
|
+
|
2160
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2161
|
+
|
2162
|
+
|
2163
|
+
:param request: Request instance for ValidateConsumedMessage
|
2164
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ValidateConsumedMessageRequest`
|
2165
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ValidateConsumedMessageResponse`
|
2166
|
+
"""
|
2167
|
+
return self._validate_consumed_message_with_http_info(request)
|
2168
|
+
|
2169
|
+
def _validate_consumed_message_with_http_info(self, request):
|
2170
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2171
|
+
|
2172
|
+
cname = None
|
2173
|
+
|
2174
|
+
collection_formats = {}
|
2175
|
+
|
2176
|
+
path_params = {}
|
2177
|
+
if 'engine' in local_var_params:
|
2178
|
+
path_params['engine'] = local_var_params['engine']
|
2179
|
+
if 'instance_id' in local_var_params:
|
2180
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2181
|
+
|
2182
|
+
query_params = []
|
2183
|
+
|
2184
|
+
header_params = {}
|
2185
|
+
|
2186
|
+
form_params = {}
|
2187
|
+
|
2188
|
+
body_params = None
|
2189
|
+
if 'body' in local_var_params:
|
2190
|
+
body_params = local_var_params['body']
|
2191
|
+
if isinstance(request, SdkStreamRequest):
|
2192
|
+
body_params = request.get_file_stream()
|
2193
|
+
|
2194
|
+
response_headers = []
|
2195
|
+
|
2196
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2197
|
+
['application/json'])
|
2198
|
+
|
2199
|
+
auth_settings = []
|
2200
|
+
|
2201
|
+
return self.call_api(
|
2202
|
+
resource_path='/v2/{engine}/{project_id}/instances/{instance_id}/messages/resend',
|
2203
|
+
method='POST',
|
2204
|
+
path_params=path_params,
|
2205
|
+
query_params=query_params,
|
2206
|
+
header_params=header_params,
|
2207
|
+
body=body_params,
|
2208
|
+
post_params=form_params,
|
2209
|
+
cname=cname,
|
2210
|
+
response_type='ValidateConsumedMessageResponse',
|
2211
|
+
response_headers=response_headers,
|
2212
|
+
auth_settings=auth_settings,
|
2213
|
+
collection_formats=collection_formats,
|
2214
|
+
request_type=request.__class__.__name__)
|
2215
|
+
|
1902
2216
|
def create_topic_or_batch_delete_topic_async(self, request):
|
1903
2217
|
"""创建主题或批量删除主题
|
1904
2218
|
|
@@ -370,6 +370,70 @@ class RocketMQClient(Client):
|
|
370
370
|
collection_formats=collection_formats,
|
371
371
|
request_type=request.__class__.__name__)
|
372
372
|
|
373
|
+
def create_rocket_mq_migration_task(self, request):
|
374
|
+
"""新建元数据迁移任务
|
375
|
+
|
376
|
+
新建元数据迁移任务。
|
377
|
+
|
378
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
379
|
+
|
380
|
+
:param request: Request instance for CreateRocketMqMigrationTask
|
381
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskRequest`
|
382
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskResponse`
|
383
|
+
"""
|
384
|
+
return self._create_rocket_mq_migration_task_with_http_info(request)
|
385
|
+
|
386
|
+
def _create_rocket_mq_migration_task_with_http_info(self, request):
|
387
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
388
|
+
|
389
|
+
cname = None
|
390
|
+
|
391
|
+
collection_formats = {}
|
392
|
+
|
393
|
+
path_params = {}
|
394
|
+
if 'instance_id' in local_var_params:
|
395
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
396
|
+
|
397
|
+
query_params = []
|
398
|
+
if 'overwrite' in local_var_params:
|
399
|
+
query_params.append(('overwrite', local_var_params['overwrite']))
|
400
|
+
if 'name' in local_var_params:
|
401
|
+
query_params.append(('name', local_var_params['name']))
|
402
|
+
if 'type' in local_var_params:
|
403
|
+
query_params.append(('type', local_var_params['type']))
|
404
|
+
|
405
|
+
header_params = {}
|
406
|
+
|
407
|
+
form_params = {}
|
408
|
+
|
409
|
+
body_params = None
|
410
|
+
if 'body' in local_var_params:
|
411
|
+
body_params = local_var_params['body']
|
412
|
+
if isinstance(request, SdkStreamRequest):
|
413
|
+
body_params = request.get_file_stream()
|
414
|
+
|
415
|
+
response_headers = []
|
416
|
+
|
417
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
418
|
+
['application/json'])
|
419
|
+
|
420
|
+
auth_settings = []
|
421
|
+
|
422
|
+
return self.call_api(
|
423
|
+
resource_path='/v2/{project_id}/instances/{instance_id}/metadata',
|
424
|
+
method='POST',
|
425
|
+
path_params=path_params,
|
426
|
+
query_params=query_params,
|
427
|
+
header_params=header_params,
|
428
|
+
body=body_params,
|
429
|
+
post_params=form_params,
|
430
|
+
cname=cname,
|
431
|
+
response_type='CreateRocketMqMigrationTaskResponse',
|
432
|
+
response_headers=response_headers,
|
433
|
+
auth_settings=auth_settings,
|
434
|
+
collection_formats=collection_formats,
|
435
|
+
request_type=request.__class__.__name__)
|
436
|
+
|
373
437
|
def create_user(self, request):
|
374
438
|
"""创建用户
|
375
439
|
|
@@ -542,6 +606,64 @@ class RocketMQClient(Client):
|
|
542
606
|
collection_formats=collection_formats,
|
543
607
|
request_type=request.__class__.__name__)
|
544
608
|
|
609
|
+
def delete_rocket_mq_migration_task(self, request):
|
610
|
+
"""删除元数据迁移任务
|
611
|
+
|
612
|
+
删除元数据迁移任务。
|
613
|
+
|
614
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
615
|
+
|
616
|
+
:param request: Request instance for DeleteRocketMqMigrationTask
|
617
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.DeleteRocketMqMigrationTaskRequest`
|
618
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.DeleteRocketMqMigrationTaskResponse`
|
619
|
+
"""
|
620
|
+
return self._delete_rocket_mq_migration_task_with_http_info(request)
|
621
|
+
|
622
|
+
def _delete_rocket_mq_migration_task_with_http_info(self, request):
|
623
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
624
|
+
|
625
|
+
cname = None
|
626
|
+
|
627
|
+
collection_formats = {}
|
628
|
+
|
629
|
+
path_params = {}
|
630
|
+
if 'instance_id' in local_var_params:
|
631
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
632
|
+
|
633
|
+
query_params = []
|
634
|
+
|
635
|
+
header_params = {}
|
636
|
+
|
637
|
+
form_params = {}
|
638
|
+
|
639
|
+
body_params = None
|
640
|
+
if 'body' in local_var_params:
|
641
|
+
body_params = local_var_params['body']
|
642
|
+
if isinstance(request, SdkStreamRequest):
|
643
|
+
body_params = request.get_file_stream()
|
644
|
+
|
645
|
+
response_headers = []
|
646
|
+
|
647
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
648
|
+
['application/json'])
|
649
|
+
|
650
|
+
auth_settings = []
|
651
|
+
|
652
|
+
return self.call_api(
|
653
|
+
resource_path='/v2/{project_id}/instances/{instance_id}/metadata',
|
654
|
+
method='DELETE',
|
655
|
+
path_params=path_params,
|
656
|
+
query_params=query_params,
|
657
|
+
header_params=header_params,
|
658
|
+
body=body_params,
|
659
|
+
post_params=form_params,
|
660
|
+
cname=cname,
|
661
|
+
response_type='DeleteRocketMqMigrationTaskResponse',
|
662
|
+
response_headers=response_headers,
|
663
|
+
auth_settings=auth_settings,
|
664
|
+
collection_formats=collection_formats,
|
665
|
+
request_type=request.__class__.__name__)
|
666
|
+
|
545
667
|
def delete_user(self, request):
|
546
668
|
"""删除用户
|
547
669
|
|
@@ -1096,6 +1218,73 @@ class RocketMQClient(Client):
|
|
1096
1218
|
collection_formats=collection_formats,
|
1097
1219
|
request_type=request.__class__.__name__)
|
1098
1220
|
|
1221
|
+
def list_rocket_mq_migration_task(self, request):
|
1222
|
+
"""查询实例下所有迁移任务或查询指定迁移任务信息
|
1223
|
+
|
1224
|
+
1. 查询实例下所有迁移任务
|
1225
|
+
2. 查询指定迁移任务信息
|
1226
|
+
|
1227
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1228
|
+
|
1229
|
+
:param request: Request instance for ListRocketMqMigrationTask
|
1230
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListRocketMqMigrationTaskRequest`
|
1231
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListRocketMqMigrationTaskResponse`
|
1232
|
+
"""
|
1233
|
+
return self._list_rocket_mq_migration_task_with_http_info(request)
|
1234
|
+
|
1235
|
+
def _list_rocket_mq_migration_task_with_http_info(self, request):
|
1236
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1237
|
+
|
1238
|
+
cname = None
|
1239
|
+
|
1240
|
+
collection_formats = {}
|
1241
|
+
|
1242
|
+
path_params = {}
|
1243
|
+
if 'instance_id' in local_var_params:
|
1244
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1245
|
+
|
1246
|
+
query_params = []
|
1247
|
+
if 'id' in local_var_params:
|
1248
|
+
query_params.append(('id', local_var_params['id']))
|
1249
|
+
if 'type' in local_var_params:
|
1250
|
+
query_params.append(('type', local_var_params['type']))
|
1251
|
+
if 'offset' in local_var_params:
|
1252
|
+
query_params.append(('offset', local_var_params['offset']))
|
1253
|
+
if 'limit' in local_var_params:
|
1254
|
+
query_params.append(('limit', local_var_params['limit']))
|
1255
|
+
if 'name' in local_var_params:
|
1256
|
+
query_params.append(('name', local_var_params['name']))
|
1257
|
+
|
1258
|
+
header_params = {}
|
1259
|
+
|
1260
|
+
form_params = {}
|
1261
|
+
|
1262
|
+
body_params = None
|
1263
|
+
if isinstance(request, SdkStreamRequest):
|
1264
|
+
body_params = request.get_file_stream()
|
1265
|
+
|
1266
|
+
response_headers = []
|
1267
|
+
|
1268
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1269
|
+
['application/json'])
|
1270
|
+
|
1271
|
+
auth_settings = []
|
1272
|
+
|
1273
|
+
return self.call_api(
|
1274
|
+
resource_path='/v2/{project_id}/instances/{instance_id}/metadata',
|
1275
|
+
method='GET',
|
1276
|
+
path_params=path_params,
|
1277
|
+
query_params=query_params,
|
1278
|
+
header_params=header_params,
|
1279
|
+
body=body_params,
|
1280
|
+
post_params=form_params,
|
1281
|
+
cname=cname,
|
1282
|
+
response_type='ListRocketMqMigrationTaskResponse',
|
1283
|
+
response_headers=response_headers,
|
1284
|
+
auth_settings=auth_settings,
|
1285
|
+
collection_formats=collection_formats,
|
1286
|
+
request_type=request.__class__.__name__)
|
1287
|
+
|
1099
1288
|
def list_topic_access_policy(self, request):
|
1100
1289
|
"""查询主题的授权用户列表
|
1101
1290
|
|
@@ -1280,6 +1469,66 @@ class RocketMQClient(Client):
|
|
1280
1469
|
collection_formats=collection_formats,
|
1281
1470
|
request_type=request.__class__.__name__)
|
1282
1471
|
|
1472
|
+
def send_dlq_message(self, request):
|
1473
|
+
"""重发死信消息
|
1474
|
+
|
1475
|
+
重发死信消息。
|
1476
|
+
|
1477
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1478
|
+
|
1479
|
+
:param request: Request instance for SendDlqMessage
|
1480
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageRequest`
|
1481
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageResponse`
|
1482
|
+
"""
|
1483
|
+
return self._send_dlq_message_with_http_info(request)
|
1484
|
+
|
1485
|
+
def _send_dlq_message_with_http_info(self, request):
|
1486
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1487
|
+
|
1488
|
+
cname = None
|
1489
|
+
|
1490
|
+
collection_formats = {}
|
1491
|
+
|
1492
|
+
path_params = {}
|
1493
|
+
if 'engine' in local_var_params:
|
1494
|
+
path_params['engine'] = local_var_params['engine']
|
1495
|
+
if 'instance_id' in local_var_params:
|
1496
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1497
|
+
|
1498
|
+
query_params = []
|
1499
|
+
|
1500
|
+
header_params = {}
|
1501
|
+
|
1502
|
+
form_params = {}
|
1503
|
+
|
1504
|
+
body_params = None
|
1505
|
+
if 'body' in local_var_params:
|
1506
|
+
body_params = local_var_params['body']
|
1507
|
+
if isinstance(request, SdkStreamRequest):
|
1508
|
+
body_params = request.get_file_stream()
|
1509
|
+
|
1510
|
+
response_headers = []
|
1511
|
+
|
1512
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1513
|
+
['application/json'])
|
1514
|
+
|
1515
|
+
auth_settings = []
|
1516
|
+
|
1517
|
+
return self.call_api(
|
1518
|
+
resource_path='/v2/{engine}/{project_id}/instances/{instance_id}/messages/deadletter-resend',
|
1519
|
+
method='POST',
|
1520
|
+
path_params=path_params,
|
1521
|
+
query_params=query_params,
|
1522
|
+
header_params=header_params,
|
1523
|
+
body=body_params,
|
1524
|
+
post_params=form_params,
|
1525
|
+
cname=cname,
|
1526
|
+
response_type='SendDlqMessageResponse',
|
1527
|
+
response_headers=response_headers,
|
1528
|
+
auth_settings=auth_settings,
|
1529
|
+
collection_formats=collection_formats,
|
1530
|
+
request_type=request.__class__.__name__)
|
1531
|
+
|
1283
1532
|
def show_consumer_connections(self, request):
|
1284
1533
|
"""查询消费者列表
|
1285
1534
|
|
@@ -1868,6 +2117,66 @@ class RocketMQClient(Client):
|
|
1868
2117
|
collection_formats=collection_formats,
|
1869
2118
|
request_type=request.__class__.__name__)
|
1870
2119
|
|
2120
|
+
def validate_consumed_message(self, request):
|
2121
|
+
"""消费验证
|
2122
|
+
|
2123
|
+
消费验证。
|
2124
|
+
|
2125
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2126
|
+
|
2127
|
+
:param request: Request instance for ValidateConsumedMessage
|
2128
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ValidateConsumedMessageRequest`
|
2129
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ValidateConsumedMessageResponse`
|
2130
|
+
"""
|
2131
|
+
return self._validate_consumed_message_with_http_info(request)
|
2132
|
+
|
2133
|
+
def _validate_consumed_message_with_http_info(self, request):
|
2134
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2135
|
+
|
2136
|
+
cname = None
|
2137
|
+
|
2138
|
+
collection_formats = {}
|
2139
|
+
|
2140
|
+
path_params = {}
|
2141
|
+
if 'engine' in local_var_params:
|
2142
|
+
path_params['engine'] = local_var_params['engine']
|
2143
|
+
if 'instance_id' in local_var_params:
|
2144
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2145
|
+
|
2146
|
+
query_params = []
|
2147
|
+
|
2148
|
+
header_params = {}
|
2149
|
+
|
2150
|
+
form_params = {}
|
2151
|
+
|
2152
|
+
body_params = None
|
2153
|
+
if 'body' in local_var_params:
|
2154
|
+
body_params = local_var_params['body']
|
2155
|
+
if isinstance(request, SdkStreamRequest):
|
2156
|
+
body_params = request.get_file_stream()
|
2157
|
+
|
2158
|
+
response_headers = []
|
2159
|
+
|
2160
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2161
|
+
['application/json'])
|
2162
|
+
|
2163
|
+
auth_settings = []
|
2164
|
+
|
2165
|
+
return self.call_api(
|
2166
|
+
resource_path='/v2/{engine}/{project_id}/instances/{instance_id}/messages/resend',
|
2167
|
+
method='POST',
|
2168
|
+
path_params=path_params,
|
2169
|
+
query_params=query_params,
|
2170
|
+
header_params=header_params,
|
2171
|
+
body=body_params,
|
2172
|
+
post_params=form_params,
|
2173
|
+
cname=cname,
|
2174
|
+
response_type='ValidateConsumedMessageResponse',
|
2175
|
+
response_headers=response_headers,
|
2176
|
+
auth_settings=auth_settings,
|
2177
|
+
collection_formats=collection_formats,
|
2178
|
+
request_type=request.__class__.__name__)
|
2179
|
+
|
1871
2180
|
def create_topic_or_batch_delete_topic(self, request):
|
1872
2181
|
"""创建主题或批量删除主题
|
1873
2182
|
|