huaweicloudsdkrocketmq 3.1.150__py2.py3-none-any.whl → 3.1.152__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.
Files changed (45) hide show
  1. huaweicloudsdkrocketmq/v2/__init__.py +26 -2
  2. huaweicloudsdkrocketmq/v2/model/__init__.py +26 -2
  3. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_req.py +115 -0
  4. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_request.py +167 -0
  5. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_response.py +116 -0
  6. huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_request.py +167 -0
  7. huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_response.py +116 -0
  8. huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +88 -1
  9. huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +90 -3
  10. huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +3 -3
  11. huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
  12. huaweicloudsdkrocketmq/v2/model/{restart_instance_response.py → delete_background_task_request.py} +31 -63
  13. huaweicloudsdkrocketmq/v2/model/delete_background_task_response.py +85 -0
  14. huaweicloudsdkrocketmq/v2/model/delete_consumer_group_response.py +32 -1
  15. huaweicloudsdkrocketmq/v2/model/delete_topic_response.py +32 -1
  16. huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py +144 -0
  17. huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py +289 -0
  18. huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py +230 -0
  19. huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py +318 -0
  20. huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py +145 -0
  21. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py +200 -0
  22. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py +116 -0
  23. huaweicloudsdkrocketmq/v2/model/list_messages_request.py +30 -1
  24. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py +167 -0
  25. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py +145 -0
  26. huaweicloudsdkrocketmq/v2/model/{restart_instance_request.py → plain_ssl_switch_rep.py} +23 -50
  27. huaweicloudsdkrocketmq/v2/model/send_message_properties.py +144 -0
  28. huaweicloudsdkrocketmq/v2/model/send_message_request.py +167 -0
  29. huaweicloudsdkrocketmq/v2/model/send_message_resp.py +289 -0
  30. huaweicloudsdkrocketmq/v2/model/send_message_response.py +290 -0
  31. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_request.py +142 -0
  32. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_response.py +435 -0
  33. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_request.py +142 -0
  34. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_response.py +145 -0
  35. huaweicloudsdkrocketmq/v2/model/update_consumer_group_response.py +32 -1
  36. huaweicloudsdkrocketmq/v2/model/update_topic_queue_entity.py +173 -0
  37. huaweicloudsdkrocketmq/v2/model/update_topic_req.py +70 -12
  38. huaweicloudsdkrocketmq/v2/model/update_topic_response.py +32 -1
  39. huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +580 -24
  40. huaweicloudsdkrocketmq/v2/rocketmq_client.py +580 -24
  41. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/METADATA +2 -2
  42. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/RECORD +45 -21
  43. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/LICENSE +0 -0
  44. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/WHEEL +0 -0
  45. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/top_level.txt +0 -0
@@ -100,6 +100,75 @@ class RocketMQAsyncClient(Client):
100
100
 
101
101
  return http_info
102
102
 
103
+ def batch_delete_diagnosis_report_async(self, request):
104
+ r"""批量删除实例诊断记录
105
+
106
+ 批量删除实例诊断记录。
107
+
108
+ Please refer to HUAWEI cloud API Explorer for details.
109
+
110
+
111
+ :param request: Request instance for BatchDeleteDiagnosisReport
112
+ :type request: :class:`huaweicloudsdkrocketmq.v2.BatchDeleteDiagnosisReportRequest`
113
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.BatchDeleteDiagnosisReportResponse`
114
+ """
115
+ http_info = self._batch_delete_diagnosis_report_http_info(request)
116
+ return self._call_api(**http_info)
117
+
118
+ def batch_delete_diagnosis_report_async_invoker(self, request):
119
+ http_info = self._batch_delete_diagnosis_report_http_info(request)
120
+ return AsyncInvoker(self, http_info)
121
+
122
+ def _batch_delete_diagnosis_report_http_info(self, request):
123
+ http_info = {
124
+ "method": "DELETE",
125
+ "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/diagnosis",
126
+ "request_type": request.__class__.__name__,
127
+ "response_type": "BatchDeleteDiagnosisReportResponse"
128
+ }
129
+
130
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
131
+
132
+ cname = None
133
+
134
+ collection_formats = {}
135
+
136
+ path_params = {}
137
+ if 'engine' in local_var_params:
138
+ path_params['engine'] = local_var_params['engine']
139
+ if 'instance_id' in local_var_params:
140
+ path_params['instance_id'] = local_var_params['instance_id']
141
+
142
+ query_params = []
143
+
144
+ header_params = {}
145
+
146
+ form_params = {}
147
+
148
+ body = None
149
+ if 'body' in local_var_params:
150
+ body = local_var_params['body']
151
+ if isinstance(request, SdkStreamRequest):
152
+ body = request.get_file_stream()
153
+
154
+ response_headers = []
155
+
156
+ header_params['Content-Type'] = http_utils.select_header_content_type(
157
+ ['application/json'])
158
+
159
+ auth_settings = []
160
+
161
+ http_info["cname"] = cname
162
+ http_info["collection_formats"] = collection_formats
163
+ http_info["path_params"] = path_params
164
+ http_info["query_params"] = query_params
165
+ http_info["header_params"] = header_params
166
+ http_info["post_params"] = form_params
167
+ http_info["body"] = body
168
+ http_info["response_headers"] = response_headers
169
+
170
+ return http_info
171
+
103
172
  def batch_delete_instances_async(self, request):
104
173
  r"""批量删除实例
105
174
 
@@ -301,6 +370,75 @@ class RocketMQAsyncClient(Client):
301
370
 
302
371
  return http_info
303
372
 
373
+ def create_diagnosis_task_async(self, request):
374
+ r"""创建实例诊断任务
375
+
376
+ 创建实例诊断任务。
377
+
378
+ Please refer to HUAWEI cloud API Explorer for details.
379
+
380
+
381
+ :param request: Request instance for CreateDiagnosisTask
382
+ :type request: :class:`huaweicloudsdkrocketmq.v2.CreateDiagnosisTaskRequest`
383
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.CreateDiagnosisTaskResponse`
384
+ """
385
+ http_info = self._create_diagnosis_task_http_info(request)
386
+ return self._call_api(**http_info)
387
+
388
+ def create_diagnosis_task_async_invoker(self, request):
389
+ http_info = self._create_diagnosis_task_http_info(request)
390
+ return AsyncInvoker(self, http_info)
391
+
392
+ def _create_diagnosis_task_http_info(self, request):
393
+ http_info = {
394
+ "method": "POST",
395
+ "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/diagnosis",
396
+ "request_type": request.__class__.__name__,
397
+ "response_type": "CreateDiagnosisTaskResponse"
398
+ }
399
+
400
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
401
+
402
+ cname = None
403
+
404
+ collection_formats = {}
405
+
406
+ path_params = {}
407
+ if 'engine' in local_var_params:
408
+ path_params['engine'] = local_var_params['engine']
409
+ if 'instance_id' in local_var_params:
410
+ path_params['instance_id'] = local_var_params['instance_id']
411
+
412
+ query_params = []
413
+
414
+ header_params = {}
415
+
416
+ form_params = {}
417
+
418
+ body = None
419
+ if 'body' in local_var_params:
420
+ body = local_var_params['body']
421
+ if isinstance(request, SdkStreamRequest):
422
+ body = request.get_file_stream()
423
+
424
+ response_headers = []
425
+
426
+ header_params['Content-Type'] = http_utils.select_header_content_type(
427
+ ['application/json'])
428
+
429
+ auth_settings = []
430
+
431
+ http_info["cname"] = cname
432
+ http_info["collection_formats"] = collection_formats
433
+ http_info["path_params"] = path_params
434
+ http_info["query_params"] = query_params
435
+ http_info["header_params"] = header_params
436
+ http_info["post_params"] = form_params
437
+ http_info["body"] = body
438
+ http_info["response_headers"] = response_headers
439
+
440
+ return http_info
441
+
304
442
  def create_instance_by_engine_async(self, request):
305
443
  r"""创建实例
306
444
 
@@ -573,6 +711,73 @@ class RocketMQAsyncClient(Client):
573
711
 
574
712
  return http_info
575
713
 
714
+ def delete_background_task_async(self, request):
715
+ r"""删除后台任务管理中的指定记录
716
+
717
+ 删除后台任务管理中的指定记录。
718
+
719
+ Please refer to HUAWEI cloud API Explorer for details.
720
+
721
+
722
+ :param request: Request instance for DeleteBackgroundTask
723
+ :type request: :class:`huaweicloudsdkrocketmq.v2.DeleteBackgroundTaskRequest`
724
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.DeleteBackgroundTaskResponse`
725
+ """
726
+ http_info = self._delete_background_task_http_info(request)
727
+ return self._call_api(**http_info)
728
+
729
+ def delete_background_task_async_invoker(self, request):
730
+ http_info = self._delete_background_task_http_info(request)
731
+ return AsyncInvoker(self, http_info)
732
+
733
+ def _delete_background_task_http_info(self, request):
734
+ http_info = {
735
+ "method": "DELETE",
736
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/tasks/{task_id}",
737
+ "request_type": request.__class__.__name__,
738
+ "response_type": "DeleteBackgroundTaskResponse"
739
+ }
740
+
741
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
742
+
743
+ cname = None
744
+
745
+ collection_formats = {}
746
+
747
+ path_params = {}
748
+ if 'instance_id' in local_var_params:
749
+ path_params['instance_id'] = local_var_params['instance_id']
750
+ if 'task_id' in local_var_params:
751
+ path_params['task_id'] = local_var_params['task_id']
752
+
753
+ query_params = []
754
+
755
+ header_params = {}
756
+
757
+ form_params = {}
758
+
759
+ body = None
760
+ if isinstance(request, SdkStreamRequest):
761
+ body = request.get_file_stream()
762
+
763
+ response_headers = []
764
+
765
+ header_params['Content-Type'] = http_utils.select_header_content_type(
766
+ ['application/json'])
767
+
768
+ auth_settings = []
769
+
770
+ http_info["cname"] = cname
771
+ http_info["collection_formats"] = collection_formats
772
+ http_info["path_params"] = path_params
773
+ http_info["query_params"] = query_params
774
+ http_info["header_params"] = header_params
775
+ http_info["post_params"] = form_params
776
+ http_info["body"] = body
777
+ http_info["response_headers"] = response_headers
778
+
779
+ return http_info
780
+
576
781
  def delete_consumer_group_async(self, request):
577
782
  r"""删除指定消费组
578
783
 
@@ -1034,6 +1239,79 @@ class RocketMQAsyncClient(Client):
1034
1239
 
1035
1240
  return http_info
1036
1241
 
1242
+ def list_background_tasks_async(self, request):
1243
+ r"""查询实例的后台任务列表
1244
+
1245
+ 查询实例的后台任务列表。
1246
+
1247
+ Please refer to HUAWEI cloud API Explorer for details.
1248
+
1249
+
1250
+ :param request: Request instance for ListBackgroundTasks
1251
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ListBackgroundTasksRequest`
1252
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ListBackgroundTasksResponse`
1253
+ """
1254
+ http_info = self._list_background_tasks_http_info(request)
1255
+ return self._call_api(**http_info)
1256
+
1257
+ def list_background_tasks_async_invoker(self, request):
1258
+ http_info = self._list_background_tasks_http_info(request)
1259
+ return AsyncInvoker(self, http_info)
1260
+
1261
+ def _list_background_tasks_http_info(self, request):
1262
+ http_info = {
1263
+ "method": "GET",
1264
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/tasks",
1265
+ "request_type": request.__class__.__name__,
1266
+ "response_type": "ListBackgroundTasksResponse"
1267
+ }
1268
+
1269
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1270
+
1271
+ cname = None
1272
+
1273
+ collection_formats = {}
1274
+
1275
+ path_params = {}
1276
+ if 'instance_id' in local_var_params:
1277
+ path_params['instance_id'] = local_var_params['instance_id']
1278
+
1279
+ query_params = []
1280
+ if 'start' in local_var_params:
1281
+ query_params.append(('start', local_var_params['start']))
1282
+ if 'limit' in local_var_params:
1283
+ query_params.append(('limit', local_var_params['limit']))
1284
+ if 'begin_time' in local_var_params:
1285
+ query_params.append(('begin_time', local_var_params['begin_time']))
1286
+ if 'end_time' in local_var_params:
1287
+ query_params.append(('end_time', local_var_params['end_time']))
1288
+
1289
+ header_params = {}
1290
+
1291
+ form_params = {}
1292
+
1293
+ body = None
1294
+ if isinstance(request, SdkStreamRequest):
1295
+ body = request.get_file_stream()
1296
+
1297
+ response_headers = []
1298
+
1299
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1300
+ ['application/json'])
1301
+
1302
+ auth_settings = []
1303
+
1304
+ http_info["cname"] = cname
1305
+ http_info["collection_formats"] = collection_formats
1306
+ http_info["path_params"] = path_params
1307
+ http_info["query_params"] = query_params
1308
+ http_info["header_params"] = header_params
1309
+ http_info["post_params"] = form_params
1310
+ http_info["body"] = body
1311
+ http_info["response_headers"] = response_headers
1312
+
1313
+ return http_info
1314
+
1037
1315
  def list_brokers_async(self, request):
1038
1316
  r"""查询代理列表
1039
1317
 
@@ -1176,6 +1454,77 @@ class RocketMQAsyncClient(Client):
1176
1454
 
1177
1455
  return http_info
1178
1456
 
1457
+ def list_diagnosis_reports_async(self, request):
1458
+ r"""查询实例诊断报告列表
1459
+
1460
+ 查询实例诊断报告列表。
1461
+
1462
+ Please refer to HUAWEI cloud API Explorer for details.
1463
+
1464
+
1465
+ :param request: Request instance for ListDiagnosisReports
1466
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ListDiagnosisReportsRequest`
1467
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ListDiagnosisReportsResponse`
1468
+ """
1469
+ http_info = self._list_diagnosis_reports_http_info(request)
1470
+ return self._call_api(**http_info)
1471
+
1472
+ def list_diagnosis_reports_async_invoker(self, request):
1473
+ http_info = self._list_diagnosis_reports_http_info(request)
1474
+ return AsyncInvoker(self, http_info)
1475
+
1476
+ def _list_diagnosis_reports_http_info(self, request):
1477
+ http_info = {
1478
+ "method": "GET",
1479
+ "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/diagnosis",
1480
+ "request_type": request.__class__.__name__,
1481
+ "response_type": "ListDiagnosisReportsResponse"
1482
+ }
1483
+
1484
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1485
+
1486
+ cname = None
1487
+
1488
+ collection_formats = {}
1489
+
1490
+ path_params = {}
1491
+ if 'engine' in local_var_params:
1492
+ path_params['engine'] = local_var_params['engine']
1493
+ if 'instance_id' in local_var_params:
1494
+ path_params['instance_id'] = local_var_params['instance_id']
1495
+
1496
+ query_params = []
1497
+ if 'offset' in local_var_params:
1498
+ query_params.append(('offset', local_var_params['offset']))
1499
+ if 'limit' in local_var_params:
1500
+ query_params.append(('limit', local_var_params['limit']))
1501
+
1502
+ header_params = {}
1503
+
1504
+ form_params = {}
1505
+
1506
+ body = None
1507
+ if isinstance(request, SdkStreamRequest):
1508
+ body = 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
+ http_info["cname"] = cname
1518
+ http_info["collection_formats"] = collection_formats
1519
+ http_info["path_params"] = path_params
1520
+ http_info["query_params"] = query_params
1521
+ http_info["header_params"] = header_params
1522
+ http_info["post_params"] = form_params
1523
+ http_info["body"] = body
1524
+ http_info["response_headers"] = response_headers
1525
+
1526
+ return http_info
1527
+
1179
1528
  def list_engine_products_async(self, request):
1180
1529
  r"""查询产品规格列表
1181
1530
 
@@ -1516,6 +1865,8 @@ class RocketMQAsyncClient(Client):
1516
1865
  query_params = []
1517
1866
  if 'topic' in local_var_params:
1518
1867
  query_params.append(('topic', local_var_params['topic']))
1868
+ if 'queue' in local_var_params:
1869
+ query_params.append(('queue', local_var_params['queue']))
1519
1870
  if 'limit' in local_var_params:
1520
1871
  query_params.append(('limit', local_var_params['limit']))
1521
1872
  if 'offset' in local_var_params:
@@ -1771,6 +2122,75 @@ class RocketMQAsyncClient(Client):
1771
2122
 
1772
2123
  return http_info
1773
2124
 
2125
+ def modify_instance_ssl_config_async(self, request):
2126
+ r"""修改实例ssl相关配置
2127
+
2128
+ 修改实例ssl相关配置。
2129
+
2130
+ Please refer to HUAWEI cloud API Explorer for details.
2131
+
2132
+
2133
+ :param request: Request instance for ModifyInstanceSslConfig
2134
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ModifyInstanceSslConfigRequest`
2135
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ModifyInstanceSslConfigResponse`
2136
+ """
2137
+ http_info = self._modify_instance_ssl_config_http_info(request)
2138
+ return self._call_api(**http_info)
2139
+
2140
+ def modify_instance_ssl_config_async_invoker(self, request):
2141
+ http_info = self._modify_instance_ssl_config_http_info(request)
2142
+ return AsyncInvoker(self, http_info)
2143
+
2144
+ def _modify_instance_ssl_config_http_info(self, request):
2145
+ http_info = {
2146
+ "method": "POST",
2147
+ "resource_path": "/v2/{project_id}/{engine}/instances/{instance_id}/plain-ssl-switch",
2148
+ "request_type": request.__class__.__name__,
2149
+ "response_type": "ModifyInstanceSslConfigResponse"
2150
+ }
2151
+
2152
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2153
+
2154
+ cname = None
2155
+
2156
+ collection_formats = {}
2157
+
2158
+ path_params = {}
2159
+ if 'engine' in local_var_params:
2160
+ path_params['engine'] = local_var_params['engine']
2161
+ if 'instance_id' in local_var_params:
2162
+ path_params['instance_id'] = local_var_params['instance_id']
2163
+
2164
+ query_params = []
2165
+
2166
+ header_params = {}
2167
+
2168
+ form_params = {}
2169
+
2170
+ body = None
2171
+ if 'body' in local_var_params:
2172
+ body = local_var_params['body']
2173
+ if isinstance(request, SdkStreamRequest):
2174
+ body = request.get_file_stream()
2175
+
2176
+ response_headers = []
2177
+
2178
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2179
+ ['application/json'])
2180
+
2181
+ auth_settings = []
2182
+
2183
+ http_info["cname"] = cname
2184
+ http_info["collection_formats"] = collection_formats
2185
+ http_info["path_params"] = path_params
2186
+ http_info["query_params"] = query_params
2187
+ http_info["header_params"] = header_params
2188
+ http_info["post_params"] = form_params
2189
+ http_info["body"] = body
2190
+ http_info["response_headers"] = response_headers
2191
+
2192
+ return http_info
2193
+
1774
2194
  def reset_consume_offset_async(self, request):
1775
2195
  r"""重置消费进度
1776
2196
 
@@ -1913,31 +2333,31 @@ class RocketMQAsyncClient(Client):
1913
2333
 
1914
2334
  return http_info
1915
2335
 
1916
- def restart_instance_async(self, request):
1917
- r"""重启指定实例
2336
+ def send_dlq_message_async(self, request):
2337
+ r"""重发死信消息
1918
2338
 
1919
- 重启指定实例。
2339
+ 重发死信消息。
1920
2340
 
1921
2341
  Please refer to HUAWEI cloud API Explorer for details.
1922
2342
 
1923
2343
 
1924
- :param request: Request instance for RestartInstance
1925
- :type request: :class:`huaweicloudsdkrocketmq.v2.RestartInstanceRequest`
1926
- :rtype: :class:`huaweicloudsdkrocketmq.v2.RestartInstanceResponse`
2344
+ :param request: Request instance for SendDlqMessage
2345
+ :type request: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageRequest`
2346
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageResponse`
1927
2347
  """
1928
- http_info = self._restart_instance_http_info(request)
2348
+ http_info = self._send_dlq_message_http_info(request)
1929
2349
  return self._call_api(**http_info)
1930
2350
 
1931
- def restart_instance_async_invoker(self, request):
1932
- http_info = self._restart_instance_http_info(request)
2351
+ def send_dlq_message_async_invoker(self, request):
2352
+ http_info = self._send_dlq_message_http_info(request)
1933
2353
  return AsyncInvoker(self, http_info)
1934
2354
 
1935
- def _restart_instance_http_info(self, request):
2355
+ def _send_dlq_message_http_info(self, request):
1936
2356
  http_info = {
1937
2357
  "method": "POST",
1938
- "resource_path": "/v2/{project_id}/{engine}/instances/{instance_id}/restart",
2358
+ "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/messages/deadletter-resend",
1939
2359
  "request_type": request.__class__.__name__,
1940
- "response_type": "RestartInstanceResponse"
2360
+ "response_type": "SendDlqMessageResponse"
1941
2361
  }
1942
2362
 
1943
2363
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1959,6 +2379,8 @@ class RocketMQAsyncClient(Client):
1959
2379
  form_params = {}
1960
2380
 
1961
2381
  body = None
2382
+ if 'body' in local_var_params:
2383
+ body = local_var_params['body']
1962
2384
  if isinstance(request, SdkStreamRequest):
1963
2385
  body = request.get_file_stream()
1964
2386
 
@@ -1980,31 +2402,31 @@ class RocketMQAsyncClient(Client):
1980
2402
 
1981
2403
  return http_info
1982
2404
 
1983
- def send_dlq_message_async(self, request):
1984
- r"""重发死信消息
2405
+ def send_message_async(self, request):
2406
+ r"""发送消息
1985
2407
 
1986
- 重发死信消息。
2408
+ 发送消息。
1987
2409
 
1988
2410
  Please refer to HUAWEI cloud API Explorer for details.
1989
2411
 
1990
2412
 
1991
- :param request: Request instance for SendDlqMessage
1992
- :type request: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageRequest`
1993
- :rtype: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageResponse`
2413
+ :param request: Request instance for SendMessage
2414
+ :type request: :class:`huaweicloudsdkrocketmq.v2.SendMessageRequest`
2415
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.SendMessageResponse`
1994
2416
  """
1995
- http_info = self._send_dlq_message_http_info(request)
2417
+ http_info = self._send_message_http_info(request)
1996
2418
  return self._call_api(**http_info)
1997
2419
 
1998
- def send_dlq_message_async_invoker(self, request):
1999
- http_info = self._send_dlq_message_http_info(request)
2420
+ def send_message_async_invoker(self, request):
2421
+ http_info = self._send_message_http_info(request)
2000
2422
  return AsyncInvoker(self, http_info)
2001
2423
 
2002
- def _send_dlq_message_http_info(self, request):
2424
+ def _send_message_http_info(self, request):
2003
2425
  http_info = {
2004
2426
  "method": "POST",
2005
- "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/messages/deadletter-resend",
2427
+ "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/messages",
2006
2428
  "request_type": request.__class__.__name__,
2007
- "response_type": "SendDlqMessageResponse"
2429
+ "response_type": "SendMessageResponse"
2008
2430
  }
2009
2431
 
2010
2432
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2195,6 +2617,140 @@ class RocketMQAsyncClient(Client):
2195
2617
 
2196
2618
  return http_info
2197
2619
 
2620
+ def show_diagnosis_report_async(self, request):
2621
+ r"""查询实例诊断报告
2622
+
2623
+ 查询实例诊断报告。
2624
+
2625
+ Please refer to HUAWEI cloud API Explorer for details.
2626
+
2627
+
2628
+ :param request: Request instance for ShowDiagnosisReport
2629
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ShowDiagnosisReportRequest`
2630
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ShowDiagnosisReportResponse`
2631
+ """
2632
+ http_info = self._show_diagnosis_report_http_info(request)
2633
+ return self._call_api(**http_info)
2634
+
2635
+ def show_diagnosis_report_async_invoker(self, request):
2636
+ http_info = self._show_diagnosis_report_http_info(request)
2637
+ return AsyncInvoker(self, http_info)
2638
+
2639
+ def _show_diagnosis_report_http_info(self, request):
2640
+ http_info = {
2641
+ "method": "GET",
2642
+ "resource_path": "/v2/{engine}/{project_id}/diagnosis/{report_id}",
2643
+ "request_type": request.__class__.__name__,
2644
+ "response_type": "ShowDiagnosisReportResponse"
2645
+ }
2646
+
2647
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2648
+
2649
+ cname = None
2650
+
2651
+ collection_formats = {}
2652
+
2653
+ path_params = {}
2654
+ if 'engine' in local_var_params:
2655
+ path_params['engine'] = local_var_params['engine']
2656
+ if 'report_id' in local_var_params:
2657
+ path_params['report_id'] = local_var_params['report_id']
2658
+
2659
+ query_params = []
2660
+
2661
+ header_params = {}
2662
+
2663
+ form_params = {}
2664
+
2665
+ body = None
2666
+ if isinstance(request, SdkStreamRequest):
2667
+ body = request.get_file_stream()
2668
+
2669
+ response_headers = []
2670
+
2671
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2672
+ ['application/json'])
2673
+
2674
+ auth_settings = []
2675
+
2676
+ http_info["cname"] = cname
2677
+ http_info["collection_formats"] = collection_formats
2678
+ http_info["path_params"] = path_params
2679
+ http_info["query_params"] = query_params
2680
+ http_info["header_params"] = header_params
2681
+ http_info["post_params"] = form_params
2682
+ http_info["body"] = body
2683
+ http_info["response_headers"] = response_headers
2684
+
2685
+ return http_info
2686
+
2687
+ def show_diagnosis_stack_async(self, request):
2688
+ r"""查询stack信息
2689
+
2690
+ 查询stack信息。
2691
+
2692
+ Please refer to HUAWEI cloud API Explorer for details.
2693
+
2694
+
2695
+ :param request: Request instance for ShowDiagnosisStack
2696
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ShowDiagnosisStackRequest`
2697
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ShowDiagnosisStackResponse`
2698
+ """
2699
+ http_info = self._show_diagnosis_stack_http_info(request)
2700
+ return self._call_api(**http_info)
2701
+
2702
+ def show_diagnosis_stack_async_invoker(self, request):
2703
+ http_info = self._show_diagnosis_stack_http_info(request)
2704
+ return AsyncInvoker(self, http_info)
2705
+
2706
+ def _show_diagnosis_stack_http_info(self, request):
2707
+ http_info = {
2708
+ "method": "GET",
2709
+ "resource_path": "/v2/{engine}/{project_id}/diagnosis/stack/{stack_id}",
2710
+ "request_type": request.__class__.__name__,
2711
+ "response_type": "ShowDiagnosisStackResponse"
2712
+ }
2713
+
2714
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2715
+
2716
+ cname = None
2717
+
2718
+ collection_formats = {}
2719
+
2720
+ path_params = {}
2721
+ if 'engine' in local_var_params:
2722
+ path_params['engine'] = local_var_params['engine']
2723
+ if 'stack_id' in local_var_params:
2724
+ path_params['stack_id'] = local_var_params['stack_id']
2725
+
2726
+ query_params = []
2727
+
2728
+ header_params = {}
2729
+
2730
+ form_params = {}
2731
+
2732
+ body = None
2733
+ if isinstance(request, SdkStreamRequest):
2734
+ body = request.get_file_stream()
2735
+
2736
+ response_headers = []
2737
+
2738
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2739
+ ['application/json'])
2740
+
2741
+ auth_settings = []
2742
+
2743
+ http_info["cname"] = cname
2744
+ http_info["collection_formats"] = collection_formats
2745
+ http_info["path_params"] = path_params
2746
+ http_info["query_params"] = query_params
2747
+ http_info["header_params"] = header_params
2748
+ http_info["post_params"] = form_params
2749
+ http_info["body"] = body
2750
+ http_info["response_headers"] = response_headers
2751
+
2752
+ return http_info
2753
+
2198
2754
  def show_engine_instance_extend_product_info_async(self, request):
2199
2755
  r"""查询实例的扩容规格列表
2200
2756