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 RocketMQClient(Client):
100
100
 
101
101
  return http_info
102
102
 
103
+ def batch_delete_diagnosis_report(self, request):
104
+ r"""批量删除实例诊断记录
105
+
106
+ 批量删除实例诊断记录。
107
+
108
+ Please refer to HUAWEI cloud API Explorer for details.
109
+
110
+ :param request: Request instance for BatchDeleteDiagnosisReport
111
+ :type request: :class:`huaweicloudsdkrocketmq.v2.BatchDeleteDiagnosisReportRequest`
112
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.BatchDeleteDiagnosisReportResponse`
113
+ """
114
+ http_info = self._batch_delete_diagnosis_report_http_info(request)
115
+ return self._call_api(**http_info)
116
+
117
+ def batch_delete_diagnosis_report_invoker(self, request):
118
+ http_info = self._batch_delete_diagnosis_report_http_info(request)
119
+ return SyncInvoker(self, http_info)
120
+
121
+ @classmethod
122
+ def _batch_delete_diagnosis_report_http_info(cls, 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(self, request):
104
173
  r"""批量删除实例
105
174
 
@@ -301,6 +370,75 @@ class RocketMQClient(Client):
301
370
 
302
371
  return http_info
303
372
 
373
+ def create_diagnosis_task(self, request):
374
+ r"""创建实例诊断任务
375
+
376
+ 创建实例诊断任务。
377
+
378
+ Please refer to HUAWEI cloud API Explorer for details.
379
+
380
+ :param request: Request instance for CreateDiagnosisTask
381
+ :type request: :class:`huaweicloudsdkrocketmq.v2.CreateDiagnosisTaskRequest`
382
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.CreateDiagnosisTaskResponse`
383
+ """
384
+ http_info = self._create_diagnosis_task_http_info(request)
385
+ return self._call_api(**http_info)
386
+
387
+ def create_diagnosis_task_invoker(self, request):
388
+ http_info = self._create_diagnosis_task_http_info(request)
389
+ return SyncInvoker(self, http_info)
390
+
391
+ @classmethod
392
+ def _create_diagnosis_task_http_info(cls, 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(self, request):
305
443
  r"""创建实例
306
444
 
@@ -573,6 +711,73 @@ class RocketMQClient(Client):
573
711
 
574
712
  return http_info
575
713
 
714
+ def delete_background_task(self, request):
715
+ r"""删除后台任务管理中的指定记录
716
+
717
+ 删除后台任务管理中的指定记录。
718
+
719
+ Please refer to HUAWEI cloud API Explorer for details.
720
+
721
+ :param request: Request instance for DeleteBackgroundTask
722
+ :type request: :class:`huaweicloudsdkrocketmq.v2.DeleteBackgroundTaskRequest`
723
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.DeleteBackgroundTaskResponse`
724
+ """
725
+ http_info = self._delete_background_task_http_info(request)
726
+ return self._call_api(**http_info)
727
+
728
+ def delete_background_task_invoker(self, request):
729
+ http_info = self._delete_background_task_http_info(request)
730
+ return SyncInvoker(self, http_info)
731
+
732
+ @classmethod
733
+ def _delete_background_task_http_info(cls, 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(self, request):
577
782
  r"""删除指定消费组
578
783
 
@@ -1034,6 +1239,79 @@ class RocketMQClient(Client):
1034
1239
 
1035
1240
  return http_info
1036
1241
 
1242
+ def list_background_tasks(self, request):
1243
+ r"""查询实例的后台任务列表
1244
+
1245
+ 查询实例的后台任务列表。
1246
+
1247
+ Please refer to HUAWEI cloud API Explorer for details.
1248
+
1249
+ :param request: Request instance for ListBackgroundTasks
1250
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ListBackgroundTasksRequest`
1251
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ListBackgroundTasksResponse`
1252
+ """
1253
+ http_info = self._list_background_tasks_http_info(request)
1254
+ return self._call_api(**http_info)
1255
+
1256
+ def list_background_tasks_invoker(self, request):
1257
+ http_info = self._list_background_tasks_http_info(request)
1258
+ return SyncInvoker(self, http_info)
1259
+
1260
+ @classmethod
1261
+ def _list_background_tasks_http_info(cls, 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(self, request):
1038
1316
  r"""查询代理列表
1039
1317
 
@@ -1176,6 +1454,77 @@ class RocketMQClient(Client):
1176
1454
 
1177
1455
  return http_info
1178
1456
 
1457
+ def list_diagnosis_reports(self, request):
1458
+ r"""查询实例诊断报告列表
1459
+
1460
+ 查询实例诊断报告列表。
1461
+
1462
+ Please refer to HUAWEI cloud API Explorer for details.
1463
+
1464
+ :param request: Request instance for ListDiagnosisReports
1465
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ListDiagnosisReportsRequest`
1466
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ListDiagnosisReportsResponse`
1467
+ """
1468
+ http_info = self._list_diagnosis_reports_http_info(request)
1469
+ return self._call_api(**http_info)
1470
+
1471
+ def list_diagnosis_reports_invoker(self, request):
1472
+ http_info = self._list_diagnosis_reports_http_info(request)
1473
+ return SyncInvoker(self, http_info)
1474
+
1475
+ @classmethod
1476
+ def _list_diagnosis_reports_http_info(cls, 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(self, request):
1180
1529
  r"""查询产品规格列表
1181
1530
 
@@ -1516,6 +1865,8 @@ class RocketMQClient(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 RocketMQClient(Client):
1771
2122
 
1772
2123
  return http_info
1773
2124
 
2125
+ def modify_instance_ssl_config(self, request):
2126
+ r"""修改实例ssl相关配置
2127
+
2128
+ 修改实例ssl相关配置。
2129
+
2130
+ Please refer to HUAWEI cloud API Explorer for details.
2131
+
2132
+ :param request: Request instance for ModifyInstanceSslConfig
2133
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ModifyInstanceSslConfigRequest`
2134
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ModifyInstanceSslConfigResponse`
2135
+ """
2136
+ http_info = self._modify_instance_ssl_config_http_info(request)
2137
+ return self._call_api(**http_info)
2138
+
2139
+ def modify_instance_ssl_config_invoker(self, request):
2140
+ http_info = self._modify_instance_ssl_config_http_info(request)
2141
+ return SyncInvoker(self, http_info)
2142
+
2143
+ @classmethod
2144
+ def _modify_instance_ssl_config_http_info(cls, 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(self, request):
1775
2195
  r"""重置消费进度
1776
2196
 
@@ -1913,31 +2333,31 @@ class RocketMQClient(Client):
1913
2333
 
1914
2334
  return http_info
1915
2335
 
1916
- def restart_instance(self, request):
1917
- r"""重启指定实例
2336
+ def send_dlq_message(self, request):
2337
+ r"""重发死信消息
1918
2338
 
1919
- 重启指定实例。
2339
+ 重发死信消息。
1920
2340
 
1921
2341
  Please refer to HUAWEI cloud API Explorer for details.
1922
2342
 
1923
- :param request: Request instance for RestartInstance
1924
- :type request: :class:`huaweicloudsdkrocketmq.v2.RestartInstanceRequest`
1925
- :rtype: :class:`huaweicloudsdkrocketmq.v2.RestartInstanceResponse`
2343
+ :param request: Request instance for SendDlqMessage
2344
+ :type request: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageRequest`
2345
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageResponse`
1926
2346
  """
1927
- http_info = self._restart_instance_http_info(request)
2347
+ http_info = self._send_dlq_message_http_info(request)
1928
2348
  return self._call_api(**http_info)
1929
2349
 
1930
- def restart_instance_invoker(self, request):
1931
- http_info = self._restart_instance_http_info(request)
2350
+ def send_dlq_message_invoker(self, request):
2351
+ http_info = self._send_dlq_message_http_info(request)
1932
2352
  return SyncInvoker(self, http_info)
1933
2353
 
1934
2354
  @classmethod
1935
- def _restart_instance_http_info(cls, request):
2355
+ def _send_dlq_message_http_info(cls, 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 RocketMQClient(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 RocketMQClient(Client):
1980
2402
 
1981
2403
  return http_info
1982
2404
 
1983
- def send_dlq_message(self, request):
1984
- r"""重发死信消息
2405
+ def send_message(self, request):
2406
+ r"""发送消息
1985
2407
 
1986
- 重发死信消息。
2408
+ 发送消息。
1987
2409
 
1988
2410
  Please refer to HUAWEI cloud API Explorer for details.
1989
2411
 
1990
- :param request: Request instance for SendDlqMessage
1991
- :type request: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageRequest`
1992
- :rtype: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageResponse`
2412
+ :param request: Request instance for SendMessage
2413
+ :type request: :class:`huaweicloudsdkrocketmq.v2.SendMessageRequest`
2414
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.SendMessageResponse`
1993
2415
  """
1994
- http_info = self._send_dlq_message_http_info(request)
2416
+ http_info = self._send_message_http_info(request)
1995
2417
  return self._call_api(**http_info)
1996
2418
 
1997
- def send_dlq_message_invoker(self, request):
1998
- http_info = self._send_dlq_message_http_info(request)
2419
+ def send_message_invoker(self, request):
2420
+ http_info = self._send_message_http_info(request)
1999
2421
  return SyncInvoker(self, http_info)
2000
2422
 
2001
2423
  @classmethod
2002
- def _send_dlq_message_http_info(cls, request):
2424
+ def _send_message_http_info(cls, 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 RocketMQClient(Client):
2195
2617
 
2196
2618
  return http_info
2197
2619
 
2620
+ def show_diagnosis_report(self, request):
2621
+ r"""查询实例诊断报告
2622
+
2623
+ 查询实例诊断报告。
2624
+
2625
+ Please refer to HUAWEI cloud API Explorer for details.
2626
+
2627
+ :param request: Request instance for ShowDiagnosisReport
2628
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ShowDiagnosisReportRequest`
2629
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ShowDiagnosisReportResponse`
2630
+ """
2631
+ http_info = self._show_diagnosis_report_http_info(request)
2632
+ return self._call_api(**http_info)
2633
+
2634
+ def show_diagnosis_report_invoker(self, request):
2635
+ http_info = self._show_diagnosis_report_http_info(request)
2636
+ return SyncInvoker(self, http_info)
2637
+
2638
+ @classmethod
2639
+ def _show_diagnosis_report_http_info(cls, 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(self, request):
2688
+ r"""查询stack信息
2689
+
2690
+ 查询stack信息。
2691
+
2692
+ Please refer to HUAWEI cloud API Explorer for details.
2693
+
2694
+ :param request: Request instance for ShowDiagnosisStack
2695
+ :type request: :class:`huaweicloudsdkrocketmq.v2.ShowDiagnosisStackRequest`
2696
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.ShowDiagnosisStackResponse`
2697
+ """
2698
+ http_info = self._show_diagnosis_stack_http_info(request)
2699
+ return self._call_api(**http_info)
2700
+
2701
+ def show_diagnosis_stack_invoker(self, request):
2702
+ http_info = self._show_diagnosis_stack_http_info(request)
2703
+ return SyncInvoker(self, http_info)
2704
+
2705
+ @classmethod
2706
+ def _show_diagnosis_stack_http_info(cls, 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(self, request):
2199
2755
  r"""查询实例的扩容规格列表
2200
2756