huaweicloudsdkrocketmq 3.1.160__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.
- huaweicloudsdkrocketmq/__init__.py +0 -0
- huaweicloudsdkrocketmq/v2/__init__.py +208 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +205 -0
- huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_tag_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_consumer_group_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_consumer_group_resp.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_instance_req.py +172 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_instance_resp_results.py +144 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_instances_request.py +111 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_instances_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_topic_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_topic_resp.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group.py +260 -0
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/brokers.py +144 -0
- huaweicloudsdkrocketmq/v2/model/bss_param.py +231 -0
- huaweicloudsdkrocketmq/v2/model/client_data.py +231 -0
- huaweicloudsdkrocketmq/v2/model/consumer_detail_resp.py +202 -0
- huaweicloudsdkrocketmq/v2/model/consumer_group.py +347 -0
- huaweicloudsdkrocketmq/v2/model/consumer_list.py +144 -0
- huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_req.py +318 -0
- huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_request.py +168 -0
- huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_group_resp.py +115 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +709 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_or_update_consumer_group.py +289 -0
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +684 -0
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_request.py +111 -0
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_req.py +260 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py +223 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +289 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_request.py +168 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_req.py +260 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_req_queues.py +144 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_resp.py +115 -0
- huaweicloudsdkrocketmq/v2/model/create_user_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/create_user_response.py +319 -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_background_task_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/delete_background_task_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/delete_consumer_group_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/delete_consumer_group_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/delete_instance_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/delete_instance_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/delete_topic_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/delete_topic_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/delete_user_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/delete_user_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py +144 -0
- huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py +289 -0
- huaweicloudsdkrocketmq/v2/model/enable_dns_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/enable_dns_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/export_dlq_message_req.py +173 -0
- huaweicloudsdkrocketmq/v2/model/export_dlq_message_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/export_dlq_message_response.py +112 -0
- huaweicloudsdkrocketmq/v2/model/instance_detail.py +1942 -0
- huaweicloudsdkrocketmq/v2/model/list_access_policy_resp_policies.py +231 -0
- huaweicloudsdkrocketmq/v2/model/list_available_zones_request.py +84 -0
- huaweicloudsdkrocketmq/v2/model/list_available_zones_resp_available_zones.py +347 -0
- huaweicloudsdkrocketmq/v2/model/list_available_zones_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py +230 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py +318 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_brokers_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/list_brokers_resp_brokers.py +144 -0
- huaweicloudsdkrocketmq/v2/model/list_brokers_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/list_consume_group_access_policy_request.py +228 -0
- huaweicloudsdkrocketmq/v2/model/list_consume_group_access_policy_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/list_engine_products_request.py +228 -0
- huaweicloudsdkrocketmq/v2/model/list_engine_products_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_request.py +201 -0
- huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/list_instances_request.py +346 -0
- huaweicloudsdkrocketmq/v2/model/list_instances_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_message_trace_request.py +228 -0
- huaweicloudsdkrocketmq/v2/model/list_message_trace_resp_trace.py +666 -0
- huaweicloudsdkrocketmq/v2/model/list_message_trace_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/list_messages_request.py +373 -0
- huaweicloudsdkrocketmq/v2/model/list_messages_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_instance_topics_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_instance_topics_response.py +261 -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/list_topic_access_policy_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/list_topic_access_policy_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/list_user_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/list_user_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/message.py +492 -0
- huaweicloudsdkrocketmq/v2/model/message_property_list.py +144 -0
- huaweicloudsdkrocketmq/v2/model/metadata_delete_req.py +114 -0
- huaweicloudsdkrocketmq/v2/model/metadata_task.py +231 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_binding_metadata.py +231 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_exchange_metadata.py +202 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_queue_metadata.py +173 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_vhost_metadata.py +115 -0
- huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_subscription_group.py +318 -0
- huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_topic_config.py +289 -0
- huaweicloudsdkrocketmq/v2/model/modify_config_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/node_context_entity.py +231 -0
- huaweicloudsdkrocketmq/v2/model/plain_ssl_switch_rep.py +115 -0
- huaweicloudsdkrocketmq/v2/model/product_entity.py +434 -0
- huaweicloudsdkrocketmq/v2/model/queue.py +231 -0
- huaweicloudsdkrocketmq/v2/model/quota_resource_entity.py +173 -0
- huaweicloudsdkrocketmq/v2/model/quotas_resp_quotas.py +115 -0
- huaweicloudsdkrocketmq/v2/model/resend_req.py +200 -0
- huaweicloudsdkrocketmq/v2/model/reset_consume_offset_req.py +142 -0
- huaweicloudsdkrocketmq/v2/model/reset_consume_offset_request.py +195 -0
- huaweicloudsdkrocketmq/v2/model/reset_consume_offset_resp_queues.py +173 -0
- huaweicloudsdkrocketmq/v2/model/reset_consume_offset_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/resize_engine_instance_req.py +230 -0
- huaweicloudsdkrocketmq/v2/model/resize_instance_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/resize_instance_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_resp.py +260 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_info_entity.py +430 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_ios_entity.py +202 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_properties_entity.py +318 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_product_support_features_entity.py +144 -0
- huaweicloudsdkrocketmq/v2/model/send_dlq_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/send_dlq_message_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/send_message_properties.py +144 -0
- huaweicloudsdkrocketmq/v2/model/send_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/send_message_resp.py +289 -0
- huaweicloudsdkrocketmq/v2/model/send_message_response.py +290 -0
- huaweicloudsdkrocketmq/v2/model/show_consumer_connections_request.py +229 -0
- huaweicloudsdkrocketmq/v2/model/show_consumer_connections_response.py +290 -0
- huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_request.py +229 -0
- huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_response.py +435 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_request.py +229 -0
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/show_group_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_group_response.py +348 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_nodes_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_nodes_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_response.py +1972 -0
- huaweicloudsdkrocketmq/v2/model/show_one_topic_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/show_quotas_request.py +84 -0
- huaweicloudsdkrocketmq/v2/model/show_quotas_response.py +112 -0
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_request.py +144 -0
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/show_topic_status_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_topic_status_resp_brokers.py +144 -0
- huaweicloudsdkrocketmq/v2/model/show_topic_status_resp_queues.py +202 -0
- huaweicloudsdkrocketmq/v2/model/show_topic_status_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/show_user_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_user_response.py +319 -0
- huaweicloudsdkrocketmq/v2/model/subscription.py +173 -0
- huaweicloudsdkrocketmq/v2/model/tag_entity.py +144 -0
- huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py +144 -0
- huaweicloudsdkrocketmq/v2/model/topic.py +260 -0
- huaweicloudsdkrocketmq/v2/model/topic_brokers.py +173 -0
- huaweicloudsdkrocketmq/v2/model/update_consumer_group.py +228 -0
- huaweicloudsdkrocketmq/v2/model/update_consumer_group_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/update_consumer_group_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/update_instance_req.py +260 -0
- huaweicloudsdkrocketmq/v2/model/update_instance_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/update_instance_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_queue_entity.py +173 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_req.py +231 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/update_user_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/update_user_response.py +319 -0
- huaweicloudsdkrocketmq/v2/model/user.py +318 -0
- huaweicloudsdkrocketmq/v2/model/user_group_perms.py +144 -0
- huaweicloudsdkrocketmq/v2/model/user_topic_perms.py +144 -0
- huaweicloudsdkrocketmq/v2/model/validate_consumed_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/validate_consumed_message_response.py +116 -0
- huaweicloudsdkrocketmq/v2/region/__init__.py +0 -0
- huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +118 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +4232 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +4229 -0
- huaweicloudsdkrocketmq-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkrocketmq-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkrocketmq-3.1.160.dist-info/RECORD +212 -0
- huaweicloudsdkrocketmq-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkrocketmq-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,4232 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
from __future__ import absolute_import
|
4
|
+
|
5
|
+
import importlib
|
6
|
+
import warnings
|
7
|
+
|
8
|
+
from huaweicloudsdkcore.client import Client, ClientBuilder
|
9
|
+
from huaweicloudsdkcore.utils import http_utils
|
10
|
+
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
11
|
+
|
12
|
+
try:
|
13
|
+
from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
|
14
|
+
except ImportError as e:
|
15
|
+
warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkrocketmq'")
|
16
|
+
|
17
|
+
|
18
|
+
class RocketMQAsyncClient(Client):
|
19
|
+
def __init__(self):
|
20
|
+
super(RocketMQAsyncClient, self).__init__()
|
21
|
+
self.model_package = importlib.import_module("huaweicloudsdkrocketmq.v2.model")
|
22
|
+
|
23
|
+
@classmethod
|
24
|
+
def new_builder(cls, clazz=None):
|
25
|
+
if not clazz:
|
26
|
+
client_builder = ClientBuilder(cls)
|
27
|
+
else:
|
28
|
+
if clazz.__name__ != "RocketMQAsyncClient":
|
29
|
+
raise TypeError("client type error, support client type is RocketMQAsyncClient")
|
30
|
+
client_builder = ClientBuilder(clazz)
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
return client_builder
|
35
|
+
|
36
|
+
def batch_create_or_delete_rocketmq_tag_async(self, request):
|
37
|
+
r"""批量添加或删除实例标签
|
38
|
+
|
39
|
+
批量添加或删除实例标签。
|
40
|
+
|
41
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
42
|
+
|
43
|
+
|
44
|
+
:param request: Request instance for BatchCreateOrDeleteRocketmqTag
|
45
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.BatchCreateOrDeleteRocketmqTagRequest`
|
46
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.BatchCreateOrDeleteRocketmqTagResponse`
|
47
|
+
"""
|
48
|
+
http_info = self._batch_create_or_delete_rocketmq_tag_http_info(request)
|
49
|
+
return self._call_api(**http_info)
|
50
|
+
|
51
|
+
def batch_create_or_delete_rocketmq_tag_async_invoker(self, request):
|
52
|
+
http_info = self._batch_create_or_delete_rocketmq_tag_http_info(request)
|
53
|
+
return AsyncInvoker(self, http_info)
|
54
|
+
|
55
|
+
def _batch_create_or_delete_rocketmq_tag_http_info(self, request):
|
56
|
+
http_info = {
|
57
|
+
"method": "POST",
|
58
|
+
"resource_path": "/v2/{project_id}/rocketmq/{instance_id}/tags/action",
|
59
|
+
"request_type": request.__class__.__name__,
|
60
|
+
"response_type": "BatchCreateOrDeleteRocketmqTagResponse"
|
61
|
+
}
|
62
|
+
|
63
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
64
|
+
|
65
|
+
cname = None
|
66
|
+
|
67
|
+
collection_formats = {}
|
68
|
+
|
69
|
+
path_params = {}
|
70
|
+
if 'instance_id' in local_var_params:
|
71
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
72
|
+
|
73
|
+
query_params = []
|
74
|
+
|
75
|
+
header_params = {}
|
76
|
+
|
77
|
+
form_params = {}
|
78
|
+
|
79
|
+
body = None
|
80
|
+
if 'body' in local_var_params:
|
81
|
+
body = local_var_params['body']
|
82
|
+
if isinstance(request, SdkStreamRequest):
|
83
|
+
body = request.get_file_stream()
|
84
|
+
|
85
|
+
response_headers = []
|
86
|
+
|
87
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
88
|
+
['application/json'])
|
89
|
+
|
90
|
+
auth_settings = []
|
91
|
+
|
92
|
+
http_info["cname"] = cname
|
93
|
+
http_info["collection_formats"] = collection_formats
|
94
|
+
http_info["path_params"] = path_params
|
95
|
+
http_info["query_params"] = query_params
|
96
|
+
http_info["header_params"] = header_params
|
97
|
+
http_info["post_params"] = form_params
|
98
|
+
http_info["body"] = body
|
99
|
+
http_info["response_headers"] = response_headers
|
100
|
+
|
101
|
+
return http_info
|
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
|
+
|
172
|
+
def batch_delete_instances_async(self, request):
|
173
|
+
r"""批量删除实例
|
174
|
+
|
175
|
+
批量删除实例。**实例删除后,实例中原有的数据将被删除,且没有备份,请谨慎操作。**
|
176
|
+
|
177
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
178
|
+
|
179
|
+
|
180
|
+
:param request: Request instance for BatchDeleteInstances
|
181
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.BatchDeleteInstancesRequest`
|
182
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.BatchDeleteInstancesResponse`
|
183
|
+
"""
|
184
|
+
http_info = self._batch_delete_instances_http_info(request)
|
185
|
+
return self._call_api(**http_info)
|
186
|
+
|
187
|
+
def batch_delete_instances_async_invoker(self, request):
|
188
|
+
http_info = self._batch_delete_instances_http_info(request)
|
189
|
+
return AsyncInvoker(self, http_info)
|
190
|
+
|
191
|
+
def _batch_delete_instances_http_info(self, request):
|
192
|
+
http_info = {
|
193
|
+
"method": "POST",
|
194
|
+
"resource_path": "/v2/{project_id}/instances/action",
|
195
|
+
"request_type": request.__class__.__name__,
|
196
|
+
"response_type": "BatchDeleteInstancesResponse"
|
197
|
+
}
|
198
|
+
|
199
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
200
|
+
|
201
|
+
cname = None
|
202
|
+
|
203
|
+
collection_formats = {}
|
204
|
+
|
205
|
+
path_params = {}
|
206
|
+
|
207
|
+
query_params = []
|
208
|
+
|
209
|
+
header_params = {}
|
210
|
+
|
211
|
+
form_params = {}
|
212
|
+
|
213
|
+
body = None
|
214
|
+
if 'body' in local_var_params:
|
215
|
+
body = local_var_params['body']
|
216
|
+
if isinstance(request, SdkStreamRequest):
|
217
|
+
body = request.get_file_stream()
|
218
|
+
|
219
|
+
response_headers = []
|
220
|
+
|
221
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
222
|
+
['application/json'])
|
223
|
+
|
224
|
+
auth_settings = []
|
225
|
+
|
226
|
+
http_info["cname"] = cname
|
227
|
+
http_info["collection_formats"] = collection_formats
|
228
|
+
http_info["path_params"] = path_params
|
229
|
+
http_info["query_params"] = query_params
|
230
|
+
http_info["header_params"] = header_params
|
231
|
+
http_info["post_params"] = form_params
|
232
|
+
http_info["body"] = body
|
233
|
+
http_info["response_headers"] = response_headers
|
234
|
+
|
235
|
+
return http_info
|
236
|
+
|
237
|
+
def batch_update_consumer_group_async(self, request):
|
238
|
+
r"""批量修改消费组
|
239
|
+
|
240
|
+
批量修改消费组。
|
241
|
+
|
242
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
243
|
+
|
244
|
+
|
245
|
+
:param request: Request instance for BatchUpdateConsumerGroup
|
246
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.BatchUpdateConsumerGroupRequest`
|
247
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.BatchUpdateConsumerGroupResponse`
|
248
|
+
"""
|
249
|
+
http_info = self._batch_update_consumer_group_http_info(request)
|
250
|
+
return self._call_api(**http_info)
|
251
|
+
|
252
|
+
def batch_update_consumer_group_async_invoker(self, request):
|
253
|
+
http_info = self._batch_update_consumer_group_http_info(request)
|
254
|
+
return AsyncInvoker(self, http_info)
|
255
|
+
|
256
|
+
def _batch_update_consumer_group_http_info(self, request):
|
257
|
+
http_info = {
|
258
|
+
"method": "PUT",
|
259
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/groups",
|
260
|
+
"request_type": request.__class__.__name__,
|
261
|
+
"response_type": "BatchUpdateConsumerGroupResponse"
|
262
|
+
}
|
263
|
+
|
264
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
265
|
+
|
266
|
+
cname = None
|
267
|
+
|
268
|
+
collection_formats = {}
|
269
|
+
|
270
|
+
path_params = {}
|
271
|
+
if 'instance_id' in local_var_params:
|
272
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
273
|
+
|
274
|
+
query_params = []
|
275
|
+
|
276
|
+
header_params = {}
|
277
|
+
|
278
|
+
form_params = {}
|
279
|
+
|
280
|
+
body = None
|
281
|
+
if 'body' in local_var_params:
|
282
|
+
body = local_var_params['body']
|
283
|
+
if isinstance(request, SdkStreamRequest):
|
284
|
+
body = request.get_file_stream()
|
285
|
+
|
286
|
+
response_headers = []
|
287
|
+
|
288
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
289
|
+
['application/json'])
|
290
|
+
|
291
|
+
auth_settings = []
|
292
|
+
|
293
|
+
http_info["cname"] = cname
|
294
|
+
http_info["collection_formats"] = collection_formats
|
295
|
+
http_info["path_params"] = path_params
|
296
|
+
http_info["query_params"] = query_params
|
297
|
+
http_info["header_params"] = header_params
|
298
|
+
http_info["post_params"] = form_params
|
299
|
+
http_info["body"] = body
|
300
|
+
http_info["response_headers"] = response_headers
|
301
|
+
|
302
|
+
return http_info
|
303
|
+
|
304
|
+
def create_consumer_group_or_batch_delete_consumer_group_async(self, request):
|
305
|
+
r"""创建消费组或批量删除消费组
|
306
|
+
|
307
|
+
创建消费组或批量删除消费组。
|
308
|
+
|
309
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
310
|
+
|
311
|
+
|
312
|
+
:param request: Request instance for CreateConsumerGroupOrBatchDeleteConsumerGroup
|
313
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.CreateConsumerGroupOrBatchDeleteConsumerGroupRequest`
|
314
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreateConsumerGroupOrBatchDeleteConsumerGroupResponse`
|
315
|
+
"""
|
316
|
+
http_info = self._create_consumer_group_or_batch_delete_consumer_group_http_info(request)
|
317
|
+
return self._call_api(**http_info)
|
318
|
+
|
319
|
+
def create_consumer_group_or_batch_delete_consumer_group_async_invoker(self, request):
|
320
|
+
http_info = self._create_consumer_group_or_batch_delete_consumer_group_http_info(request)
|
321
|
+
return AsyncInvoker(self, http_info)
|
322
|
+
|
323
|
+
def _create_consumer_group_or_batch_delete_consumer_group_http_info(self, request):
|
324
|
+
http_info = {
|
325
|
+
"method": "POST",
|
326
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/groups",
|
327
|
+
"request_type": request.__class__.__name__,
|
328
|
+
"response_type": "CreateConsumerGroupOrBatchDeleteConsumerGroupResponse"
|
329
|
+
}
|
330
|
+
|
331
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
332
|
+
|
333
|
+
cname = None
|
334
|
+
|
335
|
+
collection_formats = {}
|
336
|
+
|
337
|
+
path_params = {}
|
338
|
+
if 'instance_id' in local_var_params:
|
339
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
340
|
+
|
341
|
+
query_params = []
|
342
|
+
if 'action' in local_var_params:
|
343
|
+
query_params.append(('action', local_var_params['action']))
|
344
|
+
|
345
|
+
header_params = {}
|
346
|
+
|
347
|
+
form_params = {}
|
348
|
+
|
349
|
+
body = None
|
350
|
+
if 'body' in local_var_params:
|
351
|
+
body = local_var_params['body']
|
352
|
+
if isinstance(request, SdkStreamRequest):
|
353
|
+
body = request.get_file_stream()
|
354
|
+
|
355
|
+
response_headers = []
|
356
|
+
|
357
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
358
|
+
['application/json'])
|
359
|
+
|
360
|
+
auth_settings = []
|
361
|
+
|
362
|
+
http_info["cname"] = cname
|
363
|
+
http_info["collection_formats"] = collection_formats
|
364
|
+
http_info["path_params"] = path_params
|
365
|
+
http_info["query_params"] = query_params
|
366
|
+
http_info["header_params"] = header_params
|
367
|
+
http_info["post_params"] = form_params
|
368
|
+
http_info["body"] = body
|
369
|
+
http_info["response_headers"] = response_headers
|
370
|
+
|
371
|
+
return http_info
|
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
|
+
|
442
|
+
def create_instance_by_engine_async(self, request):
|
443
|
+
r"""创建实例
|
444
|
+
|
445
|
+
创建实例[,该接口支持创建按需和包周期两种计费方式的实例](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm)。
|
446
|
+
|
447
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
448
|
+
|
449
|
+
|
450
|
+
:param request: Request instance for CreateInstanceByEngine
|
451
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.CreateInstanceByEngineRequest`
|
452
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreateInstanceByEngineResponse`
|
453
|
+
"""
|
454
|
+
http_info = self._create_instance_by_engine_http_info(request)
|
455
|
+
return self._call_api(**http_info)
|
456
|
+
|
457
|
+
def create_instance_by_engine_async_invoker(self, request):
|
458
|
+
http_info = self._create_instance_by_engine_http_info(request)
|
459
|
+
return AsyncInvoker(self, http_info)
|
460
|
+
|
461
|
+
def _create_instance_by_engine_http_info(self, request):
|
462
|
+
http_info = {
|
463
|
+
"method": "POST",
|
464
|
+
"resource_path": "/v2/{engine}/{project_id}/instances",
|
465
|
+
"request_type": request.__class__.__name__,
|
466
|
+
"response_type": "CreateInstanceByEngineResponse"
|
467
|
+
}
|
468
|
+
|
469
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
470
|
+
|
471
|
+
cname = None
|
472
|
+
|
473
|
+
collection_formats = {}
|
474
|
+
|
475
|
+
path_params = {}
|
476
|
+
if 'engine' in local_var_params:
|
477
|
+
path_params['engine'] = local_var_params['engine']
|
478
|
+
|
479
|
+
query_params = []
|
480
|
+
|
481
|
+
header_params = {}
|
482
|
+
|
483
|
+
form_params = {}
|
484
|
+
|
485
|
+
body = None
|
486
|
+
if 'body' in local_var_params:
|
487
|
+
body = local_var_params['body']
|
488
|
+
if isinstance(request, SdkStreamRequest):
|
489
|
+
body = request.get_file_stream()
|
490
|
+
|
491
|
+
response_headers = []
|
492
|
+
|
493
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
494
|
+
['application/json'])
|
495
|
+
|
496
|
+
auth_settings = []
|
497
|
+
|
498
|
+
http_info["cname"] = cname
|
499
|
+
http_info["collection_formats"] = collection_formats
|
500
|
+
http_info["path_params"] = path_params
|
501
|
+
http_info["query_params"] = query_params
|
502
|
+
http_info["header_params"] = header_params
|
503
|
+
http_info["post_params"] = form_params
|
504
|
+
http_info["body"] = body
|
505
|
+
http_info["response_headers"] = response_headers
|
506
|
+
|
507
|
+
return http_info
|
508
|
+
|
509
|
+
def create_post_paid_instance_async(self, request):
|
510
|
+
r"""创建实例(按需)
|
511
|
+
|
512
|
+
创建实例,该接口创建的实例为按需计费的方式。
|
513
|
+
|
514
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
515
|
+
|
516
|
+
|
517
|
+
:param request: Request instance for CreatePostPaidInstance
|
518
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.CreatePostPaidInstanceRequest`
|
519
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreatePostPaidInstanceResponse`
|
520
|
+
"""
|
521
|
+
http_info = self._create_post_paid_instance_http_info(request)
|
522
|
+
return self._call_api(**http_info)
|
523
|
+
|
524
|
+
def create_post_paid_instance_async_invoker(self, request):
|
525
|
+
http_info = self._create_post_paid_instance_http_info(request)
|
526
|
+
return AsyncInvoker(self, http_info)
|
527
|
+
|
528
|
+
def _create_post_paid_instance_http_info(self, request):
|
529
|
+
http_info = {
|
530
|
+
"method": "POST",
|
531
|
+
"resource_path": "/v2/{project_id}/instances",
|
532
|
+
"request_type": request.__class__.__name__,
|
533
|
+
"response_type": "CreatePostPaidInstanceResponse"
|
534
|
+
}
|
535
|
+
|
536
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
537
|
+
|
538
|
+
cname = None
|
539
|
+
|
540
|
+
collection_formats = {}
|
541
|
+
|
542
|
+
path_params = {}
|
543
|
+
|
544
|
+
query_params = []
|
545
|
+
|
546
|
+
header_params = {}
|
547
|
+
|
548
|
+
form_params = {}
|
549
|
+
|
550
|
+
body = None
|
551
|
+
if 'body' in local_var_params:
|
552
|
+
body = local_var_params['body']
|
553
|
+
if isinstance(request, SdkStreamRequest):
|
554
|
+
body = request.get_file_stream()
|
555
|
+
|
556
|
+
response_headers = []
|
557
|
+
|
558
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
559
|
+
['application/json'])
|
560
|
+
|
561
|
+
auth_settings = []
|
562
|
+
|
563
|
+
http_info["cname"] = cname
|
564
|
+
http_info["collection_formats"] = collection_formats
|
565
|
+
http_info["path_params"] = path_params
|
566
|
+
http_info["query_params"] = query_params
|
567
|
+
http_info["header_params"] = header_params
|
568
|
+
http_info["post_params"] = form_params
|
569
|
+
http_info["body"] = body
|
570
|
+
http_info["response_headers"] = response_headers
|
571
|
+
|
572
|
+
return http_info
|
573
|
+
|
574
|
+
def create_rocket_mq_migration_task_async(self, request):
|
575
|
+
r"""新建元数据迁移任务
|
576
|
+
|
577
|
+
新建元数据迁移任务。
|
578
|
+
|
579
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
580
|
+
|
581
|
+
|
582
|
+
:param request: Request instance for CreateRocketMqMigrationTask
|
583
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskRequest`
|
584
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskResponse`
|
585
|
+
"""
|
586
|
+
http_info = self._create_rocket_mq_migration_task_http_info(request)
|
587
|
+
return self._call_api(**http_info)
|
588
|
+
|
589
|
+
def create_rocket_mq_migration_task_async_invoker(self, request):
|
590
|
+
http_info = self._create_rocket_mq_migration_task_http_info(request)
|
591
|
+
return AsyncInvoker(self, http_info)
|
592
|
+
|
593
|
+
def _create_rocket_mq_migration_task_http_info(self, request):
|
594
|
+
http_info = {
|
595
|
+
"method": "POST",
|
596
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/metadata",
|
597
|
+
"request_type": request.__class__.__name__,
|
598
|
+
"response_type": "CreateRocketMqMigrationTaskResponse"
|
599
|
+
}
|
600
|
+
|
601
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
602
|
+
|
603
|
+
cname = None
|
604
|
+
|
605
|
+
collection_formats = {}
|
606
|
+
|
607
|
+
path_params = {}
|
608
|
+
if 'instance_id' in local_var_params:
|
609
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
610
|
+
|
611
|
+
query_params = []
|
612
|
+
if 'overwrite' in local_var_params:
|
613
|
+
query_params.append(('overwrite', local_var_params['overwrite']))
|
614
|
+
if 'name' in local_var_params:
|
615
|
+
query_params.append(('name', local_var_params['name']))
|
616
|
+
if 'type' in local_var_params:
|
617
|
+
query_params.append(('type', local_var_params['type']))
|
618
|
+
|
619
|
+
header_params = {}
|
620
|
+
|
621
|
+
form_params = {}
|
622
|
+
|
623
|
+
body = None
|
624
|
+
if 'body' in local_var_params:
|
625
|
+
body = local_var_params['body']
|
626
|
+
if isinstance(request, SdkStreamRequest):
|
627
|
+
body = request.get_file_stream()
|
628
|
+
|
629
|
+
response_headers = []
|
630
|
+
|
631
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
632
|
+
['application/json'])
|
633
|
+
|
634
|
+
auth_settings = []
|
635
|
+
|
636
|
+
http_info["cname"] = cname
|
637
|
+
http_info["collection_formats"] = collection_formats
|
638
|
+
http_info["path_params"] = path_params
|
639
|
+
http_info["query_params"] = query_params
|
640
|
+
http_info["header_params"] = header_params
|
641
|
+
http_info["post_params"] = form_params
|
642
|
+
http_info["body"] = body
|
643
|
+
http_info["response_headers"] = response_headers
|
644
|
+
|
645
|
+
return http_info
|
646
|
+
|
647
|
+
def create_user_async(self, request):
|
648
|
+
r"""创建用户
|
649
|
+
|
650
|
+
创建用户。
|
651
|
+
|
652
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
653
|
+
|
654
|
+
|
655
|
+
:param request: Request instance for CreateUser
|
656
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.CreateUserRequest`
|
657
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreateUserResponse`
|
658
|
+
"""
|
659
|
+
http_info = self._create_user_http_info(request)
|
660
|
+
return self._call_api(**http_info)
|
661
|
+
|
662
|
+
def create_user_async_invoker(self, request):
|
663
|
+
http_info = self._create_user_http_info(request)
|
664
|
+
return AsyncInvoker(self, http_info)
|
665
|
+
|
666
|
+
def _create_user_http_info(self, request):
|
667
|
+
http_info = {
|
668
|
+
"method": "POST",
|
669
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/users",
|
670
|
+
"request_type": request.__class__.__name__,
|
671
|
+
"response_type": "CreateUserResponse"
|
672
|
+
}
|
673
|
+
|
674
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
675
|
+
|
676
|
+
cname = None
|
677
|
+
|
678
|
+
collection_formats = {}
|
679
|
+
|
680
|
+
path_params = {}
|
681
|
+
if 'instance_id' in local_var_params:
|
682
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
683
|
+
|
684
|
+
query_params = []
|
685
|
+
|
686
|
+
header_params = {}
|
687
|
+
|
688
|
+
form_params = {}
|
689
|
+
|
690
|
+
body = None
|
691
|
+
if 'body' in local_var_params:
|
692
|
+
body = local_var_params['body']
|
693
|
+
if isinstance(request, SdkStreamRequest):
|
694
|
+
body = request.get_file_stream()
|
695
|
+
|
696
|
+
response_headers = []
|
697
|
+
|
698
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
699
|
+
['application/json'])
|
700
|
+
|
701
|
+
auth_settings = []
|
702
|
+
|
703
|
+
http_info["cname"] = cname
|
704
|
+
http_info["collection_formats"] = collection_formats
|
705
|
+
http_info["path_params"] = path_params
|
706
|
+
http_info["query_params"] = query_params
|
707
|
+
http_info["header_params"] = header_params
|
708
|
+
http_info["post_params"] = form_params
|
709
|
+
http_info["body"] = body
|
710
|
+
http_info["response_headers"] = response_headers
|
711
|
+
|
712
|
+
return http_info
|
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
|
+
|
781
|
+
def delete_consumer_group_async(self, request):
|
782
|
+
r"""删除指定消费组
|
783
|
+
|
784
|
+
删除指定消费组。
|
785
|
+
|
786
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
787
|
+
|
788
|
+
|
789
|
+
:param request: Request instance for DeleteConsumerGroup
|
790
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.DeleteConsumerGroupRequest`
|
791
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.DeleteConsumerGroupResponse`
|
792
|
+
"""
|
793
|
+
http_info = self._delete_consumer_group_http_info(request)
|
794
|
+
return self._call_api(**http_info)
|
795
|
+
|
796
|
+
def delete_consumer_group_async_invoker(self, request):
|
797
|
+
http_info = self._delete_consumer_group_http_info(request)
|
798
|
+
return AsyncInvoker(self, http_info)
|
799
|
+
|
800
|
+
def _delete_consumer_group_http_info(self, request):
|
801
|
+
http_info = {
|
802
|
+
"method": "DELETE",
|
803
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/groups/{group}",
|
804
|
+
"request_type": request.__class__.__name__,
|
805
|
+
"response_type": "DeleteConsumerGroupResponse"
|
806
|
+
}
|
807
|
+
|
808
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
809
|
+
|
810
|
+
cname = None
|
811
|
+
|
812
|
+
collection_formats = {}
|
813
|
+
|
814
|
+
path_params = {}
|
815
|
+
if 'instance_id' in local_var_params:
|
816
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
817
|
+
if 'group' in local_var_params:
|
818
|
+
path_params['group'] = local_var_params['group']
|
819
|
+
|
820
|
+
query_params = []
|
821
|
+
|
822
|
+
header_params = {}
|
823
|
+
|
824
|
+
form_params = {}
|
825
|
+
|
826
|
+
body = None
|
827
|
+
if isinstance(request, SdkStreamRequest):
|
828
|
+
body = request.get_file_stream()
|
829
|
+
|
830
|
+
response_headers = []
|
831
|
+
|
832
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
833
|
+
['application/json'])
|
834
|
+
|
835
|
+
auth_settings = []
|
836
|
+
|
837
|
+
http_info["cname"] = cname
|
838
|
+
http_info["collection_formats"] = collection_formats
|
839
|
+
http_info["path_params"] = path_params
|
840
|
+
http_info["query_params"] = query_params
|
841
|
+
http_info["header_params"] = header_params
|
842
|
+
http_info["post_params"] = form_params
|
843
|
+
http_info["body"] = body
|
844
|
+
http_info["response_headers"] = response_headers
|
845
|
+
|
846
|
+
return http_info
|
847
|
+
|
848
|
+
def delete_instance_async(self, request):
|
849
|
+
r"""删除指定的实例
|
850
|
+
|
851
|
+
删除指定的实例,释放该实例的所有资源。
|
852
|
+
|
853
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
854
|
+
|
855
|
+
|
856
|
+
:param request: Request instance for DeleteInstance
|
857
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.DeleteInstanceRequest`
|
858
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.DeleteInstanceResponse`
|
859
|
+
"""
|
860
|
+
http_info = self._delete_instance_http_info(request)
|
861
|
+
return self._call_api(**http_info)
|
862
|
+
|
863
|
+
def delete_instance_async_invoker(self, request):
|
864
|
+
http_info = self._delete_instance_http_info(request)
|
865
|
+
return AsyncInvoker(self, http_info)
|
866
|
+
|
867
|
+
def _delete_instance_http_info(self, request):
|
868
|
+
http_info = {
|
869
|
+
"method": "DELETE",
|
870
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}",
|
871
|
+
"request_type": request.__class__.__name__,
|
872
|
+
"response_type": "DeleteInstanceResponse"
|
873
|
+
}
|
874
|
+
|
875
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
876
|
+
|
877
|
+
cname = None
|
878
|
+
|
879
|
+
collection_formats = {}
|
880
|
+
|
881
|
+
path_params = {}
|
882
|
+
if 'instance_id' in local_var_params:
|
883
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
884
|
+
|
885
|
+
query_params = []
|
886
|
+
|
887
|
+
header_params = {}
|
888
|
+
|
889
|
+
form_params = {}
|
890
|
+
|
891
|
+
body = None
|
892
|
+
if isinstance(request, SdkStreamRequest):
|
893
|
+
body = request.get_file_stream()
|
894
|
+
|
895
|
+
response_headers = []
|
896
|
+
|
897
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
898
|
+
['application/json'])
|
899
|
+
|
900
|
+
auth_settings = []
|
901
|
+
|
902
|
+
http_info["cname"] = cname
|
903
|
+
http_info["collection_formats"] = collection_formats
|
904
|
+
http_info["path_params"] = path_params
|
905
|
+
http_info["query_params"] = query_params
|
906
|
+
http_info["header_params"] = header_params
|
907
|
+
http_info["post_params"] = form_params
|
908
|
+
http_info["body"] = body
|
909
|
+
http_info["response_headers"] = response_headers
|
910
|
+
|
911
|
+
return http_info
|
912
|
+
|
913
|
+
def delete_rocket_mq_migration_task_async(self, request):
|
914
|
+
r"""删除元数据迁移任务
|
915
|
+
|
916
|
+
删除元数据迁移任务。
|
917
|
+
|
918
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
919
|
+
|
920
|
+
|
921
|
+
:param request: Request instance for DeleteRocketMqMigrationTask
|
922
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.DeleteRocketMqMigrationTaskRequest`
|
923
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.DeleteRocketMqMigrationTaskResponse`
|
924
|
+
"""
|
925
|
+
http_info = self._delete_rocket_mq_migration_task_http_info(request)
|
926
|
+
return self._call_api(**http_info)
|
927
|
+
|
928
|
+
def delete_rocket_mq_migration_task_async_invoker(self, request):
|
929
|
+
http_info = self._delete_rocket_mq_migration_task_http_info(request)
|
930
|
+
return AsyncInvoker(self, http_info)
|
931
|
+
|
932
|
+
def _delete_rocket_mq_migration_task_http_info(self, request):
|
933
|
+
http_info = {
|
934
|
+
"method": "DELETE",
|
935
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/metadata",
|
936
|
+
"request_type": request.__class__.__name__,
|
937
|
+
"response_type": "DeleteRocketMqMigrationTaskResponse"
|
938
|
+
}
|
939
|
+
|
940
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
941
|
+
|
942
|
+
cname = None
|
943
|
+
|
944
|
+
collection_formats = {}
|
945
|
+
|
946
|
+
path_params = {}
|
947
|
+
if 'instance_id' in local_var_params:
|
948
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
949
|
+
|
950
|
+
query_params = []
|
951
|
+
|
952
|
+
header_params = {}
|
953
|
+
|
954
|
+
form_params = {}
|
955
|
+
|
956
|
+
body = None
|
957
|
+
if 'body' in local_var_params:
|
958
|
+
body = local_var_params['body']
|
959
|
+
if isinstance(request, SdkStreamRequest):
|
960
|
+
body = request.get_file_stream()
|
961
|
+
|
962
|
+
response_headers = []
|
963
|
+
|
964
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
965
|
+
['application/json'])
|
966
|
+
|
967
|
+
auth_settings = []
|
968
|
+
|
969
|
+
http_info["cname"] = cname
|
970
|
+
http_info["collection_formats"] = collection_formats
|
971
|
+
http_info["path_params"] = path_params
|
972
|
+
http_info["query_params"] = query_params
|
973
|
+
http_info["header_params"] = header_params
|
974
|
+
http_info["post_params"] = form_params
|
975
|
+
http_info["body"] = body
|
976
|
+
http_info["response_headers"] = response_headers
|
977
|
+
|
978
|
+
return http_info
|
979
|
+
|
980
|
+
def delete_user_async(self, request):
|
981
|
+
r"""删除用户
|
982
|
+
|
983
|
+
删除用户。
|
984
|
+
|
985
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
986
|
+
|
987
|
+
|
988
|
+
:param request: Request instance for DeleteUser
|
989
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.DeleteUserRequest`
|
990
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.DeleteUserResponse`
|
991
|
+
"""
|
992
|
+
http_info = self._delete_user_http_info(request)
|
993
|
+
return self._call_api(**http_info)
|
994
|
+
|
995
|
+
def delete_user_async_invoker(self, request):
|
996
|
+
http_info = self._delete_user_http_info(request)
|
997
|
+
return AsyncInvoker(self, http_info)
|
998
|
+
|
999
|
+
def _delete_user_http_info(self, request):
|
1000
|
+
http_info = {
|
1001
|
+
"method": "DELETE",
|
1002
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/users/{user_name}",
|
1003
|
+
"request_type": request.__class__.__name__,
|
1004
|
+
"response_type": "DeleteUserResponse"
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1008
|
+
|
1009
|
+
cname = None
|
1010
|
+
|
1011
|
+
collection_formats = {}
|
1012
|
+
|
1013
|
+
path_params = {}
|
1014
|
+
if 'instance_id' in local_var_params:
|
1015
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1016
|
+
if 'user_name' in local_var_params:
|
1017
|
+
path_params['user_name'] = local_var_params['user_name']
|
1018
|
+
|
1019
|
+
query_params = []
|
1020
|
+
|
1021
|
+
header_params = {}
|
1022
|
+
|
1023
|
+
form_params = {}
|
1024
|
+
|
1025
|
+
body = None
|
1026
|
+
if isinstance(request, SdkStreamRequest):
|
1027
|
+
body = request.get_file_stream()
|
1028
|
+
|
1029
|
+
response_headers = []
|
1030
|
+
|
1031
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1032
|
+
['application/json'])
|
1033
|
+
|
1034
|
+
auth_settings = []
|
1035
|
+
|
1036
|
+
http_info["cname"] = cname
|
1037
|
+
http_info["collection_formats"] = collection_formats
|
1038
|
+
http_info["path_params"] = path_params
|
1039
|
+
http_info["query_params"] = query_params
|
1040
|
+
http_info["header_params"] = header_params
|
1041
|
+
http_info["post_params"] = form_params
|
1042
|
+
http_info["body"] = body
|
1043
|
+
http_info["response_headers"] = response_headers
|
1044
|
+
|
1045
|
+
return http_info
|
1046
|
+
|
1047
|
+
def enable_dns_async(self, request):
|
1048
|
+
r"""开启RocketMQ实例域名访问能力
|
1049
|
+
|
1050
|
+
开启RocketMQ实例域名访问能力。
|
1051
|
+
|
1052
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1053
|
+
|
1054
|
+
|
1055
|
+
:param request: Request instance for EnableDns
|
1056
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.EnableDnsRequest`
|
1057
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.EnableDnsResponse`
|
1058
|
+
"""
|
1059
|
+
http_info = self._enable_dns_http_info(request)
|
1060
|
+
return self._call_api(**http_info)
|
1061
|
+
|
1062
|
+
def enable_dns_async_invoker(self, request):
|
1063
|
+
http_info = self._enable_dns_http_info(request)
|
1064
|
+
return AsyncInvoker(self, http_info)
|
1065
|
+
|
1066
|
+
def _enable_dns_http_info(self, request):
|
1067
|
+
http_info = {
|
1068
|
+
"method": "POST",
|
1069
|
+
"resource_path": "/v2/{project_id}/rocketmq/instances/{instance_id}/dns",
|
1070
|
+
"request_type": request.__class__.__name__,
|
1071
|
+
"response_type": "EnableDnsResponse"
|
1072
|
+
}
|
1073
|
+
|
1074
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1075
|
+
|
1076
|
+
cname = None
|
1077
|
+
|
1078
|
+
collection_formats = {}
|
1079
|
+
|
1080
|
+
path_params = {}
|
1081
|
+
if 'instance_id' in local_var_params:
|
1082
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1083
|
+
|
1084
|
+
query_params = []
|
1085
|
+
|
1086
|
+
header_params = {}
|
1087
|
+
|
1088
|
+
form_params = {}
|
1089
|
+
|
1090
|
+
body = None
|
1091
|
+
if isinstance(request, SdkStreamRequest):
|
1092
|
+
body = request.get_file_stream()
|
1093
|
+
|
1094
|
+
response_headers = []
|
1095
|
+
|
1096
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1097
|
+
['application/json'])
|
1098
|
+
|
1099
|
+
auth_settings = []
|
1100
|
+
|
1101
|
+
http_info["cname"] = cname
|
1102
|
+
http_info["collection_formats"] = collection_formats
|
1103
|
+
http_info["path_params"] = path_params
|
1104
|
+
http_info["query_params"] = query_params
|
1105
|
+
http_info["header_params"] = header_params
|
1106
|
+
http_info["post_params"] = form_params
|
1107
|
+
http_info["body"] = body
|
1108
|
+
http_info["response_headers"] = response_headers
|
1109
|
+
|
1110
|
+
return http_info
|
1111
|
+
|
1112
|
+
def export_dlq_message_async(self, request):
|
1113
|
+
r"""导出死信消息
|
1114
|
+
|
1115
|
+
导出死信消息。
|
1116
|
+
|
1117
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1118
|
+
|
1119
|
+
|
1120
|
+
:param request: Request instance for ExportDlqMessage
|
1121
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ExportDlqMessageRequest`
|
1122
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ExportDlqMessageResponse`
|
1123
|
+
"""
|
1124
|
+
http_info = self._export_dlq_message_http_info(request)
|
1125
|
+
return self._call_api(**http_info)
|
1126
|
+
|
1127
|
+
def export_dlq_message_async_invoker(self, request):
|
1128
|
+
http_info = self._export_dlq_message_http_info(request)
|
1129
|
+
return AsyncInvoker(self, http_info)
|
1130
|
+
|
1131
|
+
def _export_dlq_message_http_info(self, request):
|
1132
|
+
http_info = {
|
1133
|
+
"method": "POST",
|
1134
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/messages/export",
|
1135
|
+
"request_type": request.__class__.__name__,
|
1136
|
+
"response_type": "ExportDlqMessageResponse"
|
1137
|
+
}
|
1138
|
+
|
1139
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1140
|
+
|
1141
|
+
cname = None
|
1142
|
+
|
1143
|
+
collection_formats = {}
|
1144
|
+
|
1145
|
+
path_params = {}
|
1146
|
+
if 'instance_id' in local_var_params:
|
1147
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1148
|
+
|
1149
|
+
query_params = []
|
1150
|
+
|
1151
|
+
header_params = {}
|
1152
|
+
|
1153
|
+
form_params = {}
|
1154
|
+
|
1155
|
+
body = None
|
1156
|
+
if 'body' in local_var_params:
|
1157
|
+
body = local_var_params['body']
|
1158
|
+
if isinstance(request, SdkStreamRequest):
|
1159
|
+
body = request.get_file_stream()
|
1160
|
+
|
1161
|
+
response_headers = []
|
1162
|
+
|
1163
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1164
|
+
['application/json'])
|
1165
|
+
|
1166
|
+
auth_settings = []
|
1167
|
+
|
1168
|
+
http_info["cname"] = cname
|
1169
|
+
http_info["collection_formats"] = collection_formats
|
1170
|
+
http_info["path_params"] = path_params
|
1171
|
+
http_info["query_params"] = query_params
|
1172
|
+
http_info["header_params"] = header_params
|
1173
|
+
http_info["post_params"] = form_params
|
1174
|
+
http_info["body"] = body
|
1175
|
+
http_info["response_headers"] = response_headers
|
1176
|
+
|
1177
|
+
return http_info
|
1178
|
+
|
1179
|
+
def list_available_zones_async(self, request):
|
1180
|
+
r"""查询可用区信息
|
1181
|
+
|
1182
|
+
在创建实例时,需要配置实例所在的可用区ID,可通过该接口查询可用区的ID。
|
1183
|
+
|
1184
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1185
|
+
|
1186
|
+
|
1187
|
+
:param request: Request instance for ListAvailableZones
|
1188
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListAvailableZonesRequest`
|
1189
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListAvailableZonesResponse`
|
1190
|
+
"""
|
1191
|
+
http_info = self._list_available_zones_http_info(request)
|
1192
|
+
return self._call_api(**http_info)
|
1193
|
+
|
1194
|
+
def list_available_zones_async_invoker(self, request):
|
1195
|
+
http_info = self._list_available_zones_http_info(request)
|
1196
|
+
return AsyncInvoker(self, http_info)
|
1197
|
+
|
1198
|
+
def _list_available_zones_http_info(self, request):
|
1199
|
+
http_info = {
|
1200
|
+
"method": "GET",
|
1201
|
+
"resource_path": "/v2/available-zones",
|
1202
|
+
"request_type": request.__class__.__name__,
|
1203
|
+
"response_type": "ListAvailableZonesResponse"
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1207
|
+
|
1208
|
+
cname = None
|
1209
|
+
|
1210
|
+
collection_formats = {}
|
1211
|
+
|
1212
|
+
path_params = {}
|
1213
|
+
|
1214
|
+
query_params = []
|
1215
|
+
|
1216
|
+
header_params = {}
|
1217
|
+
|
1218
|
+
form_params = {}
|
1219
|
+
|
1220
|
+
body = None
|
1221
|
+
if isinstance(request, SdkStreamRequest):
|
1222
|
+
body = request.get_file_stream()
|
1223
|
+
|
1224
|
+
response_headers = []
|
1225
|
+
|
1226
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1227
|
+
['application/json'])
|
1228
|
+
|
1229
|
+
auth_settings = []
|
1230
|
+
|
1231
|
+
http_info["cname"] = cname
|
1232
|
+
http_info["collection_formats"] = collection_formats
|
1233
|
+
http_info["path_params"] = path_params
|
1234
|
+
http_info["query_params"] = query_params
|
1235
|
+
http_info["header_params"] = header_params
|
1236
|
+
http_info["post_params"] = form_params
|
1237
|
+
http_info["body"] = body
|
1238
|
+
http_info["response_headers"] = response_headers
|
1239
|
+
|
1240
|
+
return http_info
|
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
|
+
|
1315
|
+
def list_brokers_async(self, request):
|
1316
|
+
r"""查询代理列表
|
1317
|
+
|
1318
|
+
查询代理列表。
|
1319
|
+
|
1320
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1321
|
+
|
1322
|
+
|
1323
|
+
:param request: Request instance for ListBrokers
|
1324
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListBrokersRequest`
|
1325
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListBrokersResponse`
|
1326
|
+
"""
|
1327
|
+
http_info = self._list_brokers_http_info(request)
|
1328
|
+
return self._call_api(**http_info)
|
1329
|
+
|
1330
|
+
def list_brokers_async_invoker(self, request):
|
1331
|
+
http_info = self._list_brokers_http_info(request)
|
1332
|
+
return AsyncInvoker(self, http_info)
|
1333
|
+
|
1334
|
+
def _list_brokers_http_info(self, request):
|
1335
|
+
http_info = {
|
1336
|
+
"method": "GET",
|
1337
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/brokers",
|
1338
|
+
"request_type": request.__class__.__name__,
|
1339
|
+
"response_type": "ListBrokersResponse"
|
1340
|
+
}
|
1341
|
+
|
1342
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1343
|
+
|
1344
|
+
cname = None
|
1345
|
+
|
1346
|
+
collection_formats = {}
|
1347
|
+
|
1348
|
+
path_params = {}
|
1349
|
+
if 'instance_id' in local_var_params:
|
1350
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1351
|
+
|
1352
|
+
query_params = []
|
1353
|
+
if 'limit' in local_var_params:
|
1354
|
+
query_params.append(('limit', local_var_params['limit']))
|
1355
|
+
if 'offset' in local_var_params:
|
1356
|
+
query_params.append(('offset', local_var_params['offset']))
|
1357
|
+
|
1358
|
+
header_params = {}
|
1359
|
+
|
1360
|
+
form_params = {}
|
1361
|
+
|
1362
|
+
body = None
|
1363
|
+
if isinstance(request, SdkStreamRequest):
|
1364
|
+
body = request.get_file_stream()
|
1365
|
+
|
1366
|
+
response_headers = []
|
1367
|
+
|
1368
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1369
|
+
['application/json'])
|
1370
|
+
|
1371
|
+
auth_settings = []
|
1372
|
+
|
1373
|
+
http_info["cname"] = cname
|
1374
|
+
http_info["collection_formats"] = collection_formats
|
1375
|
+
http_info["path_params"] = path_params
|
1376
|
+
http_info["query_params"] = query_params
|
1377
|
+
http_info["header_params"] = header_params
|
1378
|
+
http_info["post_params"] = form_params
|
1379
|
+
http_info["body"] = body
|
1380
|
+
http_info["response_headers"] = response_headers
|
1381
|
+
|
1382
|
+
return http_info
|
1383
|
+
|
1384
|
+
def list_consume_group_access_policy_async(self, request):
|
1385
|
+
r"""查询消费组的授权用户列表
|
1386
|
+
|
1387
|
+
查询消费组的授权用户列表。
|
1388
|
+
|
1389
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1390
|
+
|
1391
|
+
|
1392
|
+
:param request: Request instance for ListConsumeGroupAccessPolicy
|
1393
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListConsumeGroupAccessPolicyRequest`
|
1394
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListConsumeGroupAccessPolicyResponse`
|
1395
|
+
"""
|
1396
|
+
http_info = self._list_consume_group_access_policy_http_info(request)
|
1397
|
+
return self._call_api(**http_info)
|
1398
|
+
|
1399
|
+
def list_consume_group_access_policy_async_invoker(self, request):
|
1400
|
+
http_info = self._list_consume_group_access_policy_http_info(request)
|
1401
|
+
return AsyncInvoker(self, http_info)
|
1402
|
+
|
1403
|
+
def _list_consume_group_access_policy_http_info(self, request):
|
1404
|
+
http_info = {
|
1405
|
+
"method": "GET",
|
1406
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/groups/{group_id}/accesspolicy",
|
1407
|
+
"request_type": request.__class__.__name__,
|
1408
|
+
"response_type": "ListConsumeGroupAccessPolicyResponse"
|
1409
|
+
}
|
1410
|
+
|
1411
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1412
|
+
|
1413
|
+
cname = None
|
1414
|
+
|
1415
|
+
collection_formats = {}
|
1416
|
+
|
1417
|
+
path_params = {}
|
1418
|
+
if 'engine' in local_var_params:
|
1419
|
+
path_params['engine'] = local_var_params['engine']
|
1420
|
+
if 'instance_id' in local_var_params:
|
1421
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1422
|
+
if 'group_id' in local_var_params:
|
1423
|
+
path_params['group_id'] = local_var_params['group_id']
|
1424
|
+
|
1425
|
+
query_params = []
|
1426
|
+
if 'offset' in local_var_params:
|
1427
|
+
query_params.append(('offset', local_var_params['offset']))
|
1428
|
+
if 'limit' in local_var_params:
|
1429
|
+
query_params.append(('limit', local_var_params['limit']))
|
1430
|
+
|
1431
|
+
header_params = {}
|
1432
|
+
|
1433
|
+
form_params = {}
|
1434
|
+
|
1435
|
+
body = None
|
1436
|
+
if isinstance(request, SdkStreamRequest):
|
1437
|
+
body = request.get_file_stream()
|
1438
|
+
|
1439
|
+
response_headers = []
|
1440
|
+
|
1441
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1442
|
+
['application/json'])
|
1443
|
+
|
1444
|
+
auth_settings = []
|
1445
|
+
|
1446
|
+
http_info["cname"] = cname
|
1447
|
+
http_info["collection_formats"] = collection_formats
|
1448
|
+
http_info["path_params"] = path_params
|
1449
|
+
http_info["query_params"] = query_params
|
1450
|
+
http_info["header_params"] = header_params
|
1451
|
+
http_info["post_params"] = form_params
|
1452
|
+
http_info["body"] = body
|
1453
|
+
http_info["response_headers"] = response_headers
|
1454
|
+
|
1455
|
+
return http_info
|
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
|
+
|
1528
|
+
def list_engine_products_async(self, request):
|
1529
|
+
r"""查询产品规格列表
|
1530
|
+
|
1531
|
+
查询相应引擎的产品规格列表。
|
1532
|
+
|
1533
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1534
|
+
|
1535
|
+
|
1536
|
+
:param request: Request instance for ListEngineProducts
|
1537
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListEngineProductsRequest`
|
1538
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListEngineProductsResponse`
|
1539
|
+
"""
|
1540
|
+
http_info = self._list_engine_products_http_info(request)
|
1541
|
+
return self._call_api(**http_info)
|
1542
|
+
|
1543
|
+
def list_engine_products_async_invoker(self, request):
|
1544
|
+
http_info = self._list_engine_products_http_info(request)
|
1545
|
+
return AsyncInvoker(self, http_info)
|
1546
|
+
|
1547
|
+
def _list_engine_products_http_info(self, request):
|
1548
|
+
http_info = {
|
1549
|
+
"method": "GET",
|
1550
|
+
"resource_path": "/v2/{engine}/products",
|
1551
|
+
"request_type": request.__class__.__name__,
|
1552
|
+
"response_type": "ListEngineProductsResponse"
|
1553
|
+
}
|
1554
|
+
|
1555
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1556
|
+
|
1557
|
+
cname = None
|
1558
|
+
|
1559
|
+
collection_formats = {}
|
1560
|
+
|
1561
|
+
path_params = {}
|
1562
|
+
if 'engine' in local_var_params:
|
1563
|
+
path_params['engine'] = local_var_params['engine']
|
1564
|
+
|
1565
|
+
query_params = []
|
1566
|
+
if 'type' in local_var_params:
|
1567
|
+
query_params.append(('type', local_var_params['type']))
|
1568
|
+
if 'product_id' in local_var_params:
|
1569
|
+
query_params.append(('product_id', local_var_params['product_id']))
|
1570
|
+
if 'limit' in local_var_params:
|
1571
|
+
query_params.append(('limit', local_var_params['limit']))
|
1572
|
+
if 'offset' in local_var_params:
|
1573
|
+
query_params.append(('offset', local_var_params['offset']))
|
1574
|
+
|
1575
|
+
header_params = {}
|
1576
|
+
|
1577
|
+
form_params = {}
|
1578
|
+
|
1579
|
+
body = None
|
1580
|
+
if isinstance(request, SdkStreamRequest):
|
1581
|
+
body = request.get_file_stream()
|
1582
|
+
|
1583
|
+
response_headers = []
|
1584
|
+
|
1585
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1586
|
+
['application/json'])
|
1587
|
+
|
1588
|
+
auth_settings = []
|
1589
|
+
|
1590
|
+
http_info["cname"] = cname
|
1591
|
+
http_info["collection_formats"] = collection_formats
|
1592
|
+
http_info["path_params"] = path_params
|
1593
|
+
http_info["query_params"] = query_params
|
1594
|
+
http_info["header_params"] = header_params
|
1595
|
+
http_info["post_params"] = form_params
|
1596
|
+
http_info["body"] = body
|
1597
|
+
http_info["response_headers"] = response_headers
|
1598
|
+
|
1599
|
+
return http_info
|
1600
|
+
|
1601
|
+
def list_instance_consumer_groups_async(self, request):
|
1602
|
+
r"""查询消费组列表
|
1603
|
+
|
1604
|
+
查询消费组列表。
|
1605
|
+
|
1606
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1607
|
+
|
1608
|
+
|
1609
|
+
:param request: Request instance for ListInstanceConsumerGroups
|
1610
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListInstanceConsumerGroupsRequest`
|
1611
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListInstanceConsumerGroupsResponse`
|
1612
|
+
"""
|
1613
|
+
http_info = self._list_instance_consumer_groups_http_info(request)
|
1614
|
+
return self._call_api(**http_info)
|
1615
|
+
|
1616
|
+
def list_instance_consumer_groups_async_invoker(self, request):
|
1617
|
+
http_info = self._list_instance_consumer_groups_http_info(request)
|
1618
|
+
return AsyncInvoker(self, http_info)
|
1619
|
+
|
1620
|
+
def _list_instance_consumer_groups_http_info(self, request):
|
1621
|
+
http_info = {
|
1622
|
+
"method": "GET",
|
1623
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/groups",
|
1624
|
+
"request_type": request.__class__.__name__,
|
1625
|
+
"response_type": "ListInstanceConsumerGroupsResponse"
|
1626
|
+
}
|
1627
|
+
|
1628
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1629
|
+
|
1630
|
+
cname = None
|
1631
|
+
|
1632
|
+
collection_formats = {}
|
1633
|
+
|
1634
|
+
path_params = {}
|
1635
|
+
if 'instance_id' in local_var_params:
|
1636
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1637
|
+
|
1638
|
+
query_params = []
|
1639
|
+
if 'group' in local_var_params:
|
1640
|
+
query_params.append(('group', local_var_params['group']))
|
1641
|
+
if 'limit' in local_var_params:
|
1642
|
+
query_params.append(('limit', local_var_params['limit']))
|
1643
|
+
if 'offset' in local_var_params:
|
1644
|
+
query_params.append(('offset', local_var_params['offset']))
|
1645
|
+
|
1646
|
+
header_params = {}
|
1647
|
+
|
1648
|
+
form_params = {}
|
1649
|
+
|
1650
|
+
body = None
|
1651
|
+
if isinstance(request, SdkStreamRequest):
|
1652
|
+
body = request.get_file_stream()
|
1653
|
+
|
1654
|
+
response_headers = []
|
1655
|
+
|
1656
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1657
|
+
['application/json'])
|
1658
|
+
|
1659
|
+
auth_settings = []
|
1660
|
+
|
1661
|
+
http_info["cname"] = cname
|
1662
|
+
http_info["collection_formats"] = collection_formats
|
1663
|
+
http_info["path_params"] = path_params
|
1664
|
+
http_info["query_params"] = query_params
|
1665
|
+
http_info["header_params"] = header_params
|
1666
|
+
http_info["post_params"] = form_params
|
1667
|
+
http_info["body"] = body
|
1668
|
+
http_info["response_headers"] = response_headers
|
1669
|
+
|
1670
|
+
return http_info
|
1671
|
+
|
1672
|
+
def list_instances_async(self, request):
|
1673
|
+
r"""查询所有实例列表
|
1674
|
+
|
1675
|
+
查询租户的实例列表,支持按照条件查询。
|
1676
|
+
|
1677
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1678
|
+
|
1679
|
+
|
1680
|
+
:param request: Request instance for ListInstances
|
1681
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListInstancesRequest`
|
1682
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListInstancesResponse`
|
1683
|
+
"""
|
1684
|
+
http_info = self._list_instances_http_info(request)
|
1685
|
+
return self._call_api(**http_info)
|
1686
|
+
|
1687
|
+
def list_instances_async_invoker(self, request):
|
1688
|
+
http_info = self._list_instances_http_info(request)
|
1689
|
+
return AsyncInvoker(self, http_info)
|
1690
|
+
|
1691
|
+
def _list_instances_http_info(self, request):
|
1692
|
+
http_info = {
|
1693
|
+
"method": "GET",
|
1694
|
+
"resource_path": "/v2/{project_id}/instances",
|
1695
|
+
"request_type": request.__class__.__name__,
|
1696
|
+
"response_type": "ListInstancesResponse"
|
1697
|
+
}
|
1698
|
+
|
1699
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1700
|
+
|
1701
|
+
cname = None
|
1702
|
+
|
1703
|
+
collection_formats = {}
|
1704
|
+
|
1705
|
+
path_params = {}
|
1706
|
+
|
1707
|
+
query_params = []
|
1708
|
+
if 'engine' in local_var_params:
|
1709
|
+
query_params.append(('engine', local_var_params['engine']))
|
1710
|
+
if 'name' in local_var_params:
|
1711
|
+
query_params.append(('name', local_var_params['name']))
|
1712
|
+
if 'instance_id' in local_var_params:
|
1713
|
+
query_params.append(('instance_id', local_var_params['instance_id']))
|
1714
|
+
if 'status' in local_var_params:
|
1715
|
+
query_params.append(('status', local_var_params['status']))
|
1716
|
+
if 'include_failure' in local_var_params:
|
1717
|
+
query_params.append(('include_failure', local_var_params['include_failure']))
|
1718
|
+
if 'exact_match_name' in local_var_params:
|
1719
|
+
query_params.append(('exact_match_name', local_var_params['exact_match_name']))
|
1720
|
+
if 'enterprise_project_id' in local_var_params:
|
1721
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
1722
|
+
if 'limit' in local_var_params:
|
1723
|
+
query_params.append(('limit', local_var_params['limit']))
|
1724
|
+
if 'offset' in local_var_params:
|
1725
|
+
query_params.append(('offset', local_var_params['offset']))
|
1726
|
+
|
1727
|
+
header_params = {}
|
1728
|
+
|
1729
|
+
form_params = {}
|
1730
|
+
|
1731
|
+
body = None
|
1732
|
+
if isinstance(request, SdkStreamRequest):
|
1733
|
+
body = request.get_file_stream()
|
1734
|
+
|
1735
|
+
response_headers = []
|
1736
|
+
|
1737
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1738
|
+
['application/json'])
|
1739
|
+
|
1740
|
+
auth_settings = []
|
1741
|
+
|
1742
|
+
http_info["cname"] = cname
|
1743
|
+
http_info["collection_formats"] = collection_formats
|
1744
|
+
http_info["path_params"] = path_params
|
1745
|
+
http_info["query_params"] = query_params
|
1746
|
+
http_info["header_params"] = header_params
|
1747
|
+
http_info["post_params"] = form_params
|
1748
|
+
http_info["body"] = body
|
1749
|
+
http_info["response_headers"] = response_headers
|
1750
|
+
|
1751
|
+
return http_info
|
1752
|
+
|
1753
|
+
def list_message_trace_async(self, request):
|
1754
|
+
r"""查询消息轨迹
|
1755
|
+
|
1756
|
+
查询消息轨迹。
|
1757
|
+
|
1758
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1759
|
+
|
1760
|
+
|
1761
|
+
:param request: Request instance for ListMessageTrace
|
1762
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListMessageTraceRequest`
|
1763
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListMessageTraceResponse`
|
1764
|
+
"""
|
1765
|
+
http_info = self._list_message_trace_http_info(request)
|
1766
|
+
return self._call_api(**http_info)
|
1767
|
+
|
1768
|
+
def list_message_trace_async_invoker(self, request):
|
1769
|
+
http_info = self._list_message_trace_http_info(request)
|
1770
|
+
return AsyncInvoker(self, http_info)
|
1771
|
+
|
1772
|
+
def _list_message_trace_http_info(self, request):
|
1773
|
+
http_info = {
|
1774
|
+
"method": "GET",
|
1775
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/trace",
|
1776
|
+
"request_type": request.__class__.__name__,
|
1777
|
+
"response_type": "ListMessageTraceResponse"
|
1778
|
+
}
|
1779
|
+
|
1780
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1781
|
+
|
1782
|
+
cname = None
|
1783
|
+
|
1784
|
+
collection_formats = {}
|
1785
|
+
|
1786
|
+
path_params = {}
|
1787
|
+
if 'engine' in local_var_params:
|
1788
|
+
path_params['engine'] = local_var_params['engine']
|
1789
|
+
if 'instance_id' in local_var_params:
|
1790
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1791
|
+
|
1792
|
+
query_params = []
|
1793
|
+
if 'msg_id' in local_var_params:
|
1794
|
+
query_params.append(('msg_id', local_var_params['msg_id']))
|
1795
|
+
if 'limit' in local_var_params:
|
1796
|
+
query_params.append(('limit', local_var_params['limit']))
|
1797
|
+
if 'offset' in local_var_params:
|
1798
|
+
query_params.append(('offset', local_var_params['offset']))
|
1799
|
+
|
1800
|
+
header_params = {}
|
1801
|
+
|
1802
|
+
form_params = {}
|
1803
|
+
|
1804
|
+
body = None
|
1805
|
+
if isinstance(request, SdkStreamRequest):
|
1806
|
+
body = request.get_file_stream()
|
1807
|
+
|
1808
|
+
response_headers = []
|
1809
|
+
|
1810
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1811
|
+
['application/json'])
|
1812
|
+
|
1813
|
+
auth_settings = []
|
1814
|
+
|
1815
|
+
http_info["cname"] = cname
|
1816
|
+
http_info["collection_formats"] = collection_formats
|
1817
|
+
http_info["path_params"] = path_params
|
1818
|
+
http_info["query_params"] = query_params
|
1819
|
+
http_info["header_params"] = header_params
|
1820
|
+
http_info["post_params"] = form_params
|
1821
|
+
http_info["body"] = body
|
1822
|
+
http_info["response_headers"] = response_headers
|
1823
|
+
|
1824
|
+
return http_info
|
1825
|
+
|
1826
|
+
def list_messages_async(self, request):
|
1827
|
+
r"""查询消息
|
1828
|
+
|
1829
|
+
查询消息。
|
1830
|
+
|
1831
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1832
|
+
|
1833
|
+
|
1834
|
+
:param request: Request instance for ListMessages
|
1835
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListMessagesRequest`
|
1836
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListMessagesResponse`
|
1837
|
+
"""
|
1838
|
+
http_info = self._list_messages_http_info(request)
|
1839
|
+
return self._call_api(**http_info)
|
1840
|
+
|
1841
|
+
def list_messages_async_invoker(self, request):
|
1842
|
+
http_info = self._list_messages_http_info(request)
|
1843
|
+
return AsyncInvoker(self, http_info)
|
1844
|
+
|
1845
|
+
def _list_messages_http_info(self, request):
|
1846
|
+
http_info = {
|
1847
|
+
"method": "GET",
|
1848
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/messages",
|
1849
|
+
"request_type": request.__class__.__name__,
|
1850
|
+
"response_type": "ListMessagesResponse"
|
1851
|
+
}
|
1852
|
+
|
1853
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1854
|
+
|
1855
|
+
cname = None
|
1856
|
+
|
1857
|
+
collection_formats = {}
|
1858
|
+
|
1859
|
+
path_params = {}
|
1860
|
+
if 'engine' in local_var_params:
|
1861
|
+
path_params['engine'] = local_var_params['engine']
|
1862
|
+
if 'instance_id' in local_var_params:
|
1863
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1864
|
+
|
1865
|
+
query_params = []
|
1866
|
+
if 'topic' in local_var_params:
|
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']))
|
1870
|
+
if 'limit' in local_var_params:
|
1871
|
+
query_params.append(('limit', local_var_params['limit']))
|
1872
|
+
if 'offset' in local_var_params:
|
1873
|
+
query_params.append(('offset', local_var_params['offset']))
|
1874
|
+
if 'key' in local_var_params:
|
1875
|
+
query_params.append(('key', local_var_params['key']))
|
1876
|
+
if 'start_time' in local_var_params:
|
1877
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
1878
|
+
if 'end_time' in local_var_params:
|
1879
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
1880
|
+
if 'msg_id' in local_var_params:
|
1881
|
+
query_params.append(('msg_id', local_var_params['msg_id']))
|
1882
|
+
|
1883
|
+
header_params = {}
|
1884
|
+
|
1885
|
+
form_params = {}
|
1886
|
+
|
1887
|
+
body = None
|
1888
|
+
if isinstance(request, SdkStreamRequest):
|
1889
|
+
body = request.get_file_stream()
|
1890
|
+
|
1891
|
+
response_headers = []
|
1892
|
+
|
1893
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1894
|
+
['application/json'])
|
1895
|
+
|
1896
|
+
auth_settings = []
|
1897
|
+
|
1898
|
+
http_info["cname"] = cname
|
1899
|
+
http_info["collection_formats"] = collection_formats
|
1900
|
+
http_info["path_params"] = path_params
|
1901
|
+
http_info["query_params"] = query_params
|
1902
|
+
http_info["header_params"] = header_params
|
1903
|
+
http_info["post_params"] = form_params
|
1904
|
+
http_info["body"] = body
|
1905
|
+
http_info["response_headers"] = response_headers
|
1906
|
+
|
1907
|
+
return http_info
|
1908
|
+
|
1909
|
+
def list_rocket_mq_migration_task_async(self, request):
|
1910
|
+
r"""查询实例下所有迁移任务或查询指定迁移任务信息
|
1911
|
+
|
1912
|
+
1. 查询实例下所有迁移任务
|
1913
|
+
2. 查询指定迁移任务信息
|
1914
|
+
|
1915
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1916
|
+
|
1917
|
+
|
1918
|
+
:param request: Request instance for ListRocketMqMigrationTask
|
1919
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListRocketMqMigrationTaskRequest`
|
1920
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListRocketMqMigrationTaskResponse`
|
1921
|
+
"""
|
1922
|
+
http_info = self._list_rocket_mq_migration_task_http_info(request)
|
1923
|
+
return self._call_api(**http_info)
|
1924
|
+
|
1925
|
+
def list_rocket_mq_migration_task_async_invoker(self, request):
|
1926
|
+
http_info = self._list_rocket_mq_migration_task_http_info(request)
|
1927
|
+
return AsyncInvoker(self, http_info)
|
1928
|
+
|
1929
|
+
def _list_rocket_mq_migration_task_http_info(self, request):
|
1930
|
+
http_info = {
|
1931
|
+
"method": "GET",
|
1932
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/metadata",
|
1933
|
+
"request_type": request.__class__.__name__,
|
1934
|
+
"response_type": "ListRocketMqMigrationTaskResponse"
|
1935
|
+
}
|
1936
|
+
|
1937
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1938
|
+
|
1939
|
+
cname = None
|
1940
|
+
|
1941
|
+
collection_formats = {}
|
1942
|
+
|
1943
|
+
path_params = {}
|
1944
|
+
if 'instance_id' in local_var_params:
|
1945
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1946
|
+
|
1947
|
+
query_params = []
|
1948
|
+
if 'id' in local_var_params:
|
1949
|
+
query_params.append(('id', local_var_params['id']))
|
1950
|
+
if 'type' in local_var_params:
|
1951
|
+
query_params.append(('type', local_var_params['type']))
|
1952
|
+
if 'offset' in local_var_params:
|
1953
|
+
query_params.append(('offset', local_var_params['offset']))
|
1954
|
+
if 'limit' in local_var_params:
|
1955
|
+
query_params.append(('limit', local_var_params['limit']))
|
1956
|
+
if 'name' in local_var_params:
|
1957
|
+
query_params.append(('name', local_var_params['name']))
|
1958
|
+
|
1959
|
+
header_params = {}
|
1960
|
+
|
1961
|
+
form_params = {}
|
1962
|
+
|
1963
|
+
body = None
|
1964
|
+
if isinstance(request, SdkStreamRequest):
|
1965
|
+
body = request.get_file_stream()
|
1966
|
+
|
1967
|
+
response_headers = []
|
1968
|
+
|
1969
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1970
|
+
['application/json'])
|
1971
|
+
|
1972
|
+
auth_settings = []
|
1973
|
+
|
1974
|
+
http_info["cname"] = cname
|
1975
|
+
http_info["collection_formats"] = collection_formats
|
1976
|
+
http_info["path_params"] = path_params
|
1977
|
+
http_info["query_params"] = query_params
|
1978
|
+
http_info["header_params"] = header_params
|
1979
|
+
http_info["post_params"] = form_params
|
1980
|
+
http_info["body"] = body
|
1981
|
+
http_info["response_headers"] = response_headers
|
1982
|
+
|
1983
|
+
return http_info
|
1984
|
+
|
1985
|
+
def list_topic_access_policy_async(self, request):
|
1986
|
+
r"""查询主题的授权用户列表
|
1987
|
+
|
1988
|
+
查询主题的授权用户列表。
|
1989
|
+
|
1990
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1991
|
+
|
1992
|
+
|
1993
|
+
:param request: Request instance for ListTopicAccessPolicy
|
1994
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListTopicAccessPolicyRequest`
|
1995
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListTopicAccessPolicyResponse`
|
1996
|
+
"""
|
1997
|
+
http_info = self._list_topic_access_policy_http_info(request)
|
1998
|
+
return self._call_api(**http_info)
|
1999
|
+
|
2000
|
+
def list_topic_access_policy_async_invoker(self, request):
|
2001
|
+
http_info = self._list_topic_access_policy_http_info(request)
|
2002
|
+
return AsyncInvoker(self, http_info)
|
2003
|
+
|
2004
|
+
def _list_topic_access_policy_http_info(self, request):
|
2005
|
+
http_info = {
|
2006
|
+
"method": "GET",
|
2007
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/topics/{topic}/accesspolicy",
|
2008
|
+
"request_type": request.__class__.__name__,
|
2009
|
+
"response_type": "ListTopicAccessPolicyResponse"
|
2010
|
+
}
|
2011
|
+
|
2012
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2013
|
+
|
2014
|
+
cname = None
|
2015
|
+
|
2016
|
+
collection_formats = {}
|
2017
|
+
|
2018
|
+
path_params = {}
|
2019
|
+
if 'instance_id' in local_var_params:
|
2020
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2021
|
+
if 'topic' in local_var_params:
|
2022
|
+
path_params['topic'] = local_var_params['topic']
|
2023
|
+
|
2024
|
+
query_params = []
|
2025
|
+
if 'offset' in local_var_params:
|
2026
|
+
query_params.append(('offset', local_var_params['offset']))
|
2027
|
+
if 'limit' in local_var_params:
|
2028
|
+
query_params.append(('limit', local_var_params['limit']))
|
2029
|
+
|
2030
|
+
header_params = {}
|
2031
|
+
|
2032
|
+
form_params = {}
|
2033
|
+
|
2034
|
+
body = None
|
2035
|
+
if isinstance(request, SdkStreamRequest):
|
2036
|
+
body = request.get_file_stream()
|
2037
|
+
|
2038
|
+
response_headers = []
|
2039
|
+
|
2040
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2041
|
+
['application/json'])
|
2042
|
+
|
2043
|
+
auth_settings = []
|
2044
|
+
|
2045
|
+
http_info["cname"] = cname
|
2046
|
+
http_info["collection_formats"] = collection_formats
|
2047
|
+
http_info["path_params"] = path_params
|
2048
|
+
http_info["query_params"] = query_params
|
2049
|
+
http_info["header_params"] = header_params
|
2050
|
+
http_info["post_params"] = form_params
|
2051
|
+
http_info["body"] = body
|
2052
|
+
http_info["response_headers"] = response_headers
|
2053
|
+
|
2054
|
+
return http_info
|
2055
|
+
|
2056
|
+
def list_user_async(self, request):
|
2057
|
+
r"""查询用户列表
|
2058
|
+
|
2059
|
+
查询用户列表。
|
2060
|
+
|
2061
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2062
|
+
|
2063
|
+
|
2064
|
+
:param request: Request instance for ListUser
|
2065
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListUserRequest`
|
2066
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListUserResponse`
|
2067
|
+
"""
|
2068
|
+
http_info = self._list_user_http_info(request)
|
2069
|
+
return self._call_api(**http_info)
|
2070
|
+
|
2071
|
+
def list_user_async_invoker(self, request):
|
2072
|
+
http_info = self._list_user_http_info(request)
|
2073
|
+
return AsyncInvoker(self, http_info)
|
2074
|
+
|
2075
|
+
def _list_user_http_info(self, request):
|
2076
|
+
http_info = {
|
2077
|
+
"method": "GET",
|
2078
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/users",
|
2079
|
+
"request_type": request.__class__.__name__,
|
2080
|
+
"response_type": "ListUserResponse"
|
2081
|
+
}
|
2082
|
+
|
2083
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2084
|
+
|
2085
|
+
cname = None
|
2086
|
+
|
2087
|
+
collection_formats = {}
|
2088
|
+
|
2089
|
+
path_params = {}
|
2090
|
+
if 'instance_id' in local_var_params:
|
2091
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2092
|
+
|
2093
|
+
query_params = []
|
2094
|
+
if 'offset' in local_var_params:
|
2095
|
+
query_params.append(('offset', local_var_params['offset']))
|
2096
|
+
if 'limit' in local_var_params:
|
2097
|
+
query_params.append(('limit', local_var_params['limit']))
|
2098
|
+
|
2099
|
+
header_params = {}
|
2100
|
+
|
2101
|
+
form_params = {}
|
2102
|
+
|
2103
|
+
body = None
|
2104
|
+
if isinstance(request, SdkStreamRequest):
|
2105
|
+
body = request.get_file_stream()
|
2106
|
+
|
2107
|
+
response_headers = []
|
2108
|
+
|
2109
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2110
|
+
['application/json'])
|
2111
|
+
|
2112
|
+
auth_settings = []
|
2113
|
+
|
2114
|
+
http_info["cname"] = cname
|
2115
|
+
http_info["collection_formats"] = collection_formats
|
2116
|
+
http_info["path_params"] = path_params
|
2117
|
+
http_info["query_params"] = query_params
|
2118
|
+
http_info["header_params"] = header_params
|
2119
|
+
http_info["post_params"] = form_params
|
2120
|
+
http_info["body"] = body
|
2121
|
+
http_info["response_headers"] = response_headers
|
2122
|
+
|
2123
|
+
return http_info
|
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
|
+
|
2194
|
+
def reset_consume_offset_async(self, request):
|
2195
|
+
r"""重置消费进度
|
2196
|
+
|
2197
|
+
重置消费进度。
|
2198
|
+
|
2199
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2200
|
+
|
2201
|
+
|
2202
|
+
:param request: Request instance for ResetConsumeOffset
|
2203
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ResetConsumeOffsetRequest`
|
2204
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ResetConsumeOffsetResponse`
|
2205
|
+
"""
|
2206
|
+
http_info = self._reset_consume_offset_http_info(request)
|
2207
|
+
return self._call_api(**http_info)
|
2208
|
+
|
2209
|
+
def reset_consume_offset_async_invoker(self, request):
|
2210
|
+
http_info = self._reset_consume_offset_http_info(request)
|
2211
|
+
return AsyncInvoker(self, http_info)
|
2212
|
+
|
2213
|
+
def _reset_consume_offset_http_info(self, request):
|
2214
|
+
http_info = {
|
2215
|
+
"method": "POST",
|
2216
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/groups/{group_id}/reset-message-offset",
|
2217
|
+
"request_type": request.__class__.__name__,
|
2218
|
+
"response_type": "ResetConsumeOffsetResponse"
|
2219
|
+
}
|
2220
|
+
|
2221
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2222
|
+
|
2223
|
+
cname = None
|
2224
|
+
|
2225
|
+
collection_formats = {}
|
2226
|
+
|
2227
|
+
path_params = {}
|
2228
|
+
if 'engine' in local_var_params:
|
2229
|
+
path_params['engine'] = local_var_params['engine']
|
2230
|
+
if 'instance_id' in local_var_params:
|
2231
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2232
|
+
if 'group_id' in local_var_params:
|
2233
|
+
path_params['group_id'] = local_var_params['group_id']
|
2234
|
+
|
2235
|
+
query_params = []
|
2236
|
+
|
2237
|
+
header_params = {}
|
2238
|
+
|
2239
|
+
form_params = {}
|
2240
|
+
|
2241
|
+
body = None
|
2242
|
+
if 'body' in local_var_params:
|
2243
|
+
body = local_var_params['body']
|
2244
|
+
if isinstance(request, SdkStreamRequest):
|
2245
|
+
body = request.get_file_stream()
|
2246
|
+
|
2247
|
+
response_headers = []
|
2248
|
+
|
2249
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2250
|
+
['application/json'])
|
2251
|
+
|
2252
|
+
auth_settings = []
|
2253
|
+
|
2254
|
+
http_info["cname"] = cname
|
2255
|
+
http_info["collection_formats"] = collection_formats
|
2256
|
+
http_info["path_params"] = path_params
|
2257
|
+
http_info["query_params"] = query_params
|
2258
|
+
http_info["header_params"] = header_params
|
2259
|
+
http_info["post_params"] = form_params
|
2260
|
+
http_info["body"] = body
|
2261
|
+
http_info["response_headers"] = response_headers
|
2262
|
+
|
2263
|
+
return http_info
|
2264
|
+
|
2265
|
+
def resize_instance_async(self, request):
|
2266
|
+
r"""实例规格变更
|
2267
|
+
|
2268
|
+
实例规格变更。
|
2269
|
+
|
2270
|
+
[**当前通过调用API,只支持按需实例进行实例规格变更。**](tag:hws,hws_hk,ctc)
|
2271
|
+
|
2272
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2273
|
+
|
2274
|
+
|
2275
|
+
:param request: Request instance for ResizeInstance
|
2276
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ResizeInstanceRequest`
|
2277
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ResizeInstanceResponse`
|
2278
|
+
"""
|
2279
|
+
http_info = self._resize_instance_http_info(request)
|
2280
|
+
return self._call_api(**http_info)
|
2281
|
+
|
2282
|
+
def resize_instance_async_invoker(self, request):
|
2283
|
+
http_info = self._resize_instance_http_info(request)
|
2284
|
+
return AsyncInvoker(self, http_info)
|
2285
|
+
|
2286
|
+
def _resize_instance_http_info(self, request):
|
2287
|
+
http_info = {
|
2288
|
+
"method": "POST",
|
2289
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/extend",
|
2290
|
+
"request_type": request.__class__.__name__,
|
2291
|
+
"response_type": "ResizeInstanceResponse"
|
2292
|
+
}
|
2293
|
+
|
2294
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2295
|
+
|
2296
|
+
cname = None
|
2297
|
+
|
2298
|
+
collection_formats = {}
|
2299
|
+
|
2300
|
+
path_params = {}
|
2301
|
+
if 'engine' in local_var_params:
|
2302
|
+
path_params['engine'] = local_var_params['engine']
|
2303
|
+
if 'instance_id' in local_var_params:
|
2304
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2305
|
+
|
2306
|
+
query_params = []
|
2307
|
+
|
2308
|
+
header_params = {}
|
2309
|
+
|
2310
|
+
form_params = {}
|
2311
|
+
|
2312
|
+
body = None
|
2313
|
+
if 'body' in local_var_params:
|
2314
|
+
body = local_var_params['body']
|
2315
|
+
if isinstance(request, SdkStreamRequest):
|
2316
|
+
body = request.get_file_stream()
|
2317
|
+
|
2318
|
+
response_headers = []
|
2319
|
+
|
2320
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2321
|
+
['application/json'])
|
2322
|
+
|
2323
|
+
auth_settings = []
|
2324
|
+
|
2325
|
+
http_info["cname"] = cname
|
2326
|
+
http_info["collection_formats"] = collection_formats
|
2327
|
+
http_info["path_params"] = path_params
|
2328
|
+
http_info["query_params"] = query_params
|
2329
|
+
http_info["header_params"] = header_params
|
2330
|
+
http_info["post_params"] = form_params
|
2331
|
+
http_info["body"] = body
|
2332
|
+
http_info["response_headers"] = response_headers
|
2333
|
+
|
2334
|
+
return http_info
|
2335
|
+
|
2336
|
+
def send_dlq_message_async(self, request):
|
2337
|
+
r"""重发死信消息
|
2338
|
+
|
2339
|
+
重发死信消息。
|
2340
|
+
|
2341
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2342
|
+
|
2343
|
+
|
2344
|
+
:param request: Request instance for SendDlqMessage
|
2345
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageRequest`
|
2346
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.SendDlqMessageResponse`
|
2347
|
+
"""
|
2348
|
+
http_info = self._send_dlq_message_http_info(request)
|
2349
|
+
return self._call_api(**http_info)
|
2350
|
+
|
2351
|
+
def send_dlq_message_async_invoker(self, request):
|
2352
|
+
http_info = self._send_dlq_message_http_info(request)
|
2353
|
+
return AsyncInvoker(self, http_info)
|
2354
|
+
|
2355
|
+
def _send_dlq_message_http_info(self, request):
|
2356
|
+
http_info = {
|
2357
|
+
"method": "POST",
|
2358
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/messages/deadletter-resend",
|
2359
|
+
"request_type": request.__class__.__name__,
|
2360
|
+
"response_type": "SendDlqMessageResponse"
|
2361
|
+
}
|
2362
|
+
|
2363
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2364
|
+
|
2365
|
+
cname = None
|
2366
|
+
|
2367
|
+
collection_formats = {}
|
2368
|
+
|
2369
|
+
path_params = {}
|
2370
|
+
if 'engine' in local_var_params:
|
2371
|
+
path_params['engine'] = local_var_params['engine']
|
2372
|
+
if 'instance_id' in local_var_params:
|
2373
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2374
|
+
|
2375
|
+
query_params = []
|
2376
|
+
|
2377
|
+
header_params = {}
|
2378
|
+
|
2379
|
+
form_params = {}
|
2380
|
+
|
2381
|
+
body = None
|
2382
|
+
if 'body' in local_var_params:
|
2383
|
+
body = local_var_params['body']
|
2384
|
+
if isinstance(request, SdkStreamRequest):
|
2385
|
+
body = request.get_file_stream()
|
2386
|
+
|
2387
|
+
response_headers = []
|
2388
|
+
|
2389
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2390
|
+
['application/json'])
|
2391
|
+
|
2392
|
+
auth_settings = []
|
2393
|
+
|
2394
|
+
http_info["cname"] = cname
|
2395
|
+
http_info["collection_formats"] = collection_formats
|
2396
|
+
http_info["path_params"] = path_params
|
2397
|
+
http_info["query_params"] = query_params
|
2398
|
+
http_info["header_params"] = header_params
|
2399
|
+
http_info["post_params"] = form_params
|
2400
|
+
http_info["body"] = body
|
2401
|
+
http_info["response_headers"] = response_headers
|
2402
|
+
|
2403
|
+
return http_info
|
2404
|
+
|
2405
|
+
def send_message_async(self, request):
|
2406
|
+
r"""发送消息
|
2407
|
+
|
2408
|
+
发送消息。
|
2409
|
+
|
2410
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2411
|
+
|
2412
|
+
|
2413
|
+
:param request: Request instance for SendMessage
|
2414
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.SendMessageRequest`
|
2415
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.SendMessageResponse`
|
2416
|
+
"""
|
2417
|
+
http_info = self._send_message_http_info(request)
|
2418
|
+
return self._call_api(**http_info)
|
2419
|
+
|
2420
|
+
def send_message_async_invoker(self, request):
|
2421
|
+
http_info = self._send_message_http_info(request)
|
2422
|
+
return AsyncInvoker(self, http_info)
|
2423
|
+
|
2424
|
+
def _send_message_http_info(self, request):
|
2425
|
+
http_info = {
|
2426
|
+
"method": "POST",
|
2427
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/messages",
|
2428
|
+
"request_type": request.__class__.__name__,
|
2429
|
+
"response_type": "SendMessageResponse"
|
2430
|
+
}
|
2431
|
+
|
2432
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2433
|
+
|
2434
|
+
cname = None
|
2435
|
+
|
2436
|
+
collection_formats = {}
|
2437
|
+
|
2438
|
+
path_params = {}
|
2439
|
+
if 'engine' in local_var_params:
|
2440
|
+
path_params['engine'] = local_var_params['engine']
|
2441
|
+
if 'instance_id' in local_var_params:
|
2442
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2443
|
+
|
2444
|
+
query_params = []
|
2445
|
+
|
2446
|
+
header_params = {}
|
2447
|
+
|
2448
|
+
form_params = {}
|
2449
|
+
|
2450
|
+
body = None
|
2451
|
+
if 'body' in local_var_params:
|
2452
|
+
body = local_var_params['body']
|
2453
|
+
if isinstance(request, SdkStreamRequest):
|
2454
|
+
body = request.get_file_stream()
|
2455
|
+
|
2456
|
+
response_headers = []
|
2457
|
+
|
2458
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2459
|
+
['application/json'])
|
2460
|
+
|
2461
|
+
auth_settings = []
|
2462
|
+
|
2463
|
+
http_info["cname"] = cname
|
2464
|
+
http_info["collection_formats"] = collection_formats
|
2465
|
+
http_info["path_params"] = path_params
|
2466
|
+
http_info["query_params"] = query_params
|
2467
|
+
http_info["header_params"] = header_params
|
2468
|
+
http_info["post_params"] = form_params
|
2469
|
+
http_info["body"] = body
|
2470
|
+
http_info["response_headers"] = response_headers
|
2471
|
+
|
2472
|
+
return http_info
|
2473
|
+
|
2474
|
+
def show_consumer_connections_async(self, request):
|
2475
|
+
r"""查询消费者列表
|
2476
|
+
|
2477
|
+
查询消费组内消费者列表
|
2478
|
+
|
2479
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2480
|
+
|
2481
|
+
|
2482
|
+
:param request: Request instance for ShowConsumerConnections
|
2483
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowConsumerConnectionsRequest`
|
2484
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowConsumerConnectionsResponse`
|
2485
|
+
"""
|
2486
|
+
http_info = self._show_consumer_connections_http_info(request)
|
2487
|
+
return self._call_api(**http_info)
|
2488
|
+
|
2489
|
+
def show_consumer_connections_async_invoker(self, request):
|
2490
|
+
http_info = self._show_consumer_connections_http_info(request)
|
2491
|
+
return AsyncInvoker(self, http_info)
|
2492
|
+
|
2493
|
+
def _show_consumer_connections_http_info(self, request):
|
2494
|
+
http_info = {
|
2495
|
+
"method": "GET",
|
2496
|
+
"resource_path": "/v2/rocketmq/{project_id}/instances/{instance_id}/groups/{group}/clients",
|
2497
|
+
"request_type": request.__class__.__name__,
|
2498
|
+
"response_type": "ShowConsumerConnectionsResponse"
|
2499
|
+
}
|
2500
|
+
|
2501
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2502
|
+
|
2503
|
+
cname = None
|
2504
|
+
|
2505
|
+
collection_formats = {}
|
2506
|
+
|
2507
|
+
path_params = {}
|
2508
|
+
if 'instance_id' in local_var_params:
|
2509
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2510
|
+
if 'group' in local_var_params:
|
2511
|
+
path_params['group'] = local_var_params['group']
|
2512
|
+
|
2513
|
+
query_params = []
|
2514
|
+
if 'limit' in local_var_params:
|
2515
|
+
query_params.append(('limit', local_var_params['limit']))
|
2516
|
+
if 'offset' in local_var_params:
|
2517
|
+
query_params.append(('offset', local_var_params['offset']))
|
2518
|
+
if 'is_detail' in local_var_params:
|
2519
|
+
query_params.append(('is_detail', local_var_params['is_detail']))
|
2520
|
+
|
2521
|
+
header_params = {}
|
2522
|
+
|
2523
|
+
form_params = {}
|
2524
|
+
|
2525
|
+
body = None
|
2526
|
+
if isinstance(request, SdkStreamRequest):
|
2527
|
+
body = request.get_file_stream()
|
2528
|
+
|
2529
|
+
response_headers = []
|
2530
|
+
|
2531
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2532
|
+
['application/json'])
|
2533
|
+
|
2534
|
+
auth_settings = []
|
2535
|
+
|
2536
|
+
http_info["cname"] = cname
|
2537
|
+
http_info["collection_formats"] = collection_formats
|
2538
|
+
http_info["path_params"] = path_params
|
2539
|
+
http_info["query_params"] = query_params
|
2540
|
+
http_info["header_params"] = header_params
|
2541
|
+
http_info["post_params"] = form_params
|
2542
|
+
http_info["body"] = body
|
2543
|
+
http_info["response_headers"] = response_headers
|
2544
|
+
|
2545
|
+
return http_info
|
2546
|
+
|
2547
|
+
def show_consumer_list_or_details_async(self, request):
|
2548
|
+
r"""查询消费列表或详情
|
2549
|
+
|
2550
|
+
查询消费列表或详情。
|
2551
|
+
|
2552
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2553
|
+
|
2554
|
+
|
2555
|
+
:param request: Request instance for ShowConsumerListOrDetails
|
2556
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowConsumerListOrDetailsRequest`
|
2557
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowConsumerListOrDetailsResponse`
|
2558
|
+
"""
|
2559
|
+
http_info = self._show_consumer_list_or_details_http_info(request)
|
2560
|
+
return self._call_api(**http_info)
|
2561
|
+
|
2562
|
+
def show_consumer_list_or_details_async_invoker(self, request):
|
2563
|
+
http_info = self._show_consumer_list_or_details_http_info(request)
|
2564
|
+
return AsyncInvoker(self, http_info)
|
2565
|
+
|
2566
|
+
def _show_consumer_list_or_details_http_info(self, request):
|
2567
|
+
http_info = {
|
2568
|
+
"method": "GET",
|
2569
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/groups/{group}/topics",
|
2570
|
+
"request_type": request.__class__.__name__,
|
2571
|
+
"response_type": "ShowConsumerListOrDetailsResponse"
|
2572
|
+
}
|
2573
|
+
|
2574
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2575
|
+
|
2576
|
+
cname = None
|
2577
|
+
|
2578
|
+
collection_formats = {}
|
2579
|
+
|
2580
|
+
path_params = {}
|
2581
|
+
if 'instance_id' in local_var_params:
|
2582
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2583
|
+
if 'group' in local_var_params:
|
2584
|
+
path_params['group'] = local_var_params['group']
|
2585
|
+
|
2586
|
+
query_params = []
|
2587
|
+
if 'topic' in local_var_params:
|
2588
|
+
query_params.append(('topic', local_var_params['topic']))
|
2589
|
+
if 'limit' in local_var_params:
|
2590
|
+
query_params.append(('limit', local_var_params['limit']))
|
2591
|
+
if 'offset' in local_var_params:
|
2592
|
+
query_params.append(('offset', local_var_params['offset']))
|
2593
|
+
|
2594
|
+
header_params = {}
|
2595
|
+
|
2596
|
+
form_params = {}
|
2597
|
+
|
2598
|
+
body = None
|
2599
|
+
if isinstance(request, SdkStreamRequest):
|
2600
|
+
body = request.get_file_stream()
|
2601
|
+
|
2602
|
+
response_headers = []
|
2603
|
+
|
2604
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2605
|
+
['application/json'])
|
2606
|
+
|
2607
|
+
auth_settings = []
|
2608
|
+
|
2609
|
+
http_info["cname"] = cname
|
2610
|
+
http_info["collection_formats"] = collection_formats
|
2611
|
+
http_info["path_params"] = path_params
|
2612
|
+
http_info["query_params"] = query_params
|
2613
|
+
http_info["header_params"] = header_params
|
2614
|
+
http_info["post_params"] = form_params
|
2615
|
+
http_info["body"] = body
|
2616
|
+
http_info["response_headers"] = response_headers
|
2617
|
+
|
2618
|
+
return http_info
|
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
|
+
|
2754
|
+
def show_engine_instance_extend_product_info_async(self, request):
|
2755
|
+
r"""查询实例的扩容规格列表
|
2756
|
+
|
2757
|
+
查询实例的扩容规格列表。
|
2758
|
+
|
2759
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2760
|
+
|
2761
|
+
|
2762
|
+
:param request: Request instance for ShowEngineInstanceExtendProductInfo
|
2763
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowEngineInstanceExtendProductInfoRequest`
|
2764
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowEngineInstanceExtendProductInfoResponse`
|
2765
|
+
"""
|
2766
|
+
http_info = self._show_engine_instance_extend_product_info_http_info(request)
|
2767
|
+
return self._call_api(**http_info)
|
2768
|
+
|
2769
|
+
def show_engine_instance_extend_product_info_async_invoker(self, request):
|
2770
|
+
http_info = self._show_engine_instance_extend_product_info_http_info(request)
|
2771
|
+
return AsyncInvoker(self, http_info)
|
2772
|
+
|
2773
|
+
def _show_engine_instance_extend_product_info_http_info(self, request):
|
2774
|
+
http_info = {
|
2775
|
+
"method": "GET",
|
2776
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/extend",
|
2777
|
+
"request_type": request.__class__.__name__,
|
2778
|
+
"response_type": "ShowEngineInstanceExtendProductInfoResponse"
|
2779
|
+
}
|
2780
|
+
|
2781
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2782
|
+
|
2783
|
+
cname = None
|
2784
|
+
|
2785
|
+
collection_formats = {}
|
2786
|
+
|
2787
|
+
path_params = {}
|
2788
|
+
if 'engine' in local_var_params:
|
2789
|
+
path_params['engine'] = local_var_params['engine']
|
2790
|
+
if 'instance_id' in local_var_params:
|
2791
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2792
|
+
|
2793
|
+
query_params = []
|
2794
|
+
if 'type' in local_var_params:
|
2795
|
+
query_params.append(('type', local_var_params['type']))
|
2796
|
+
if 'limit' in local_var_params:
|
2797
|
+
query_params.append(('limit', local_var_params['limit']))
|
2798
|
+
if 'offset' in local_var_params:
|
2799
|
+
query_params.append(('offset', local_var_params['offset']))
|
2800
|
+
|
2801
|
+
header_params = {}
|
2802
|
+
|
2803
|
+
form_params = {}
|
2804
|
+
|
2805
|
+
body = None
|
2806
|
+
if isinstance(request, SdkStreamRequest):
|
2807
|
+
body = request.get_file_stream()
|
2808
|
+
|
2809
|
+
response_headers = []
|
2810
|
+
|
2811
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2812
|
+
['application/json'])
|
2813
|
+
|
2814
|
+
auth_settings = []
|
2815
|
+
|
2816
|
+
http_info["cname"] = cname
|
2817
|
+
http_info["collection_formats"] = collection_formats
|
2818
|
+
http_info["path_params"] = path_params
|
2819
|
+
http_info["query_params"] = query_params
|
2820
|
+
http_info["header_params"] = header_params
|
2821
|
+
http_info["post_params"] = form_params
|
2822
|
+
http_info["body"] = body
|
2823
|
+
http_info["response_headers"] = response_headers
|
2824
|
+
|
2825
|
+
return http_info
|
2826
|
+
|
2827
|
+
def show_group_async(self, request):
|
2828
|
+
r"""查询指定消费组
|
2829
|
+
|
2830
|
+
查询指定消费组详情。
|
2831
|
+
|
2832
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2833
|
+
|
2834
|
+
|
2835
|
+
:param request: Request instance for ShowGroup
|
2836
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowGroupRequest`
|
2837
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowGroupResponse`
|
2838
|
+
"""
|
2839
|
+
http_info = self._show_group_http_info(request)
|
2840
|
+
return self._call_api(**http_info)
|
2841
|
+
|
2842
|
+
def show_group_async_invoker(self, request):
|
2843
|
+
http_info = self._show_group_http_info(request)
|
2844
|
+
return AsyncInvoker(self, http_info)
|
2845
|
+
|
2846
|
+
def _show_group_http_info(self, request):
|
2847
|
+
http_info = {
|
2848
|
+
"method": "GET",
|
2849
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/groups/{group}",
|
2850
|
+
"request_type": request.__class__.__name__,
|
2851
|
+
"response_type": "ShowGroupResponse"
|
2852
|
+
}
|
2853
|
+
|
2854
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2855
|
+
|
2856
|
+
cname = None
|
2857
|
+
|
2858
|
+
collection_formats = {}
|
2859
|
+
|
2860
|
+
path_params = {}
|
2861
|
+
if 'instance_id' in local_var_params:
|
2862
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2863
|
+
if 'group' in local_var_params:
|
2864
|
+
path_params['group'] = local_var_params['group']
|
2865
|
+
|
2866
|
+
query_params = []
|
2867
|
+
|
2868
|
+
header_params = {}
|
2869
|
+
|
2870
|
+
form_params = {}
|
2871
|
+
|
2872
|
+
body = None
|
2873
|
+
if isinstance(request, SdkStreamRequest):
|
2874
|
+
body = request.get_file_stream()
|
2875
|
+
|
2876
|
+
response_headers = []
|
2877
|
+
|
2878
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2879
|
+
['application/json'])
|
2880
|
+
|
2881
|
+
auth_settings = []
|
2882
|
+
|
2883
|
+
http_info["cname"] = cname
|
2884
|
+
http_info["collection_formats"] = collection_formats
|
2885
|
+
http_info["path_params"] = path_params
|
2886
|
+
http_info["query_params"] = query_params
|
2887
|
+
http_info["header_params"] = header_params
|
2888
|
+
http_info["post_params"] = form_params
|
2889
|
+
http_info["body"] = body
|
2890
|
+
http_info["response_headers"] = response_headers
|
2891
|
+
|
2892
|
+
return http_info
|
2893
|
+
|
2894
|
+
def show_instance_async(self, request):
|
2895
|
+
r"""查询指定实例
|
2896
|
+
|
2897
|
+
查询指定实例的详细信息。
|
2898
|
+
|
2899
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2900
|
+
|
2901
|
+
|
2902
|
+
:param request: Request instance for ShowInstance
|
2903
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowInstanceRequest`
|
2904
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowInstanceResponse`
|
2905
|
+
"""
|
2906
|
+
http_info = self._show_instance_http_info(request)
|
2907
|
+
return self._call_api(**http_info)
|
2908
|
+
|
2909
|
+
def show_instance_async_invoker(self, request):
|
2910
|
+
http_info = self._show_instance_http_info(request)
|
2911
|
+
return AsyncInvoker(self, http_info)
|
2912
|
+
|
2913
|
+
def _show_instance_http_info(self, request):
|
2914
|
+
http_info = {
|
2915
|
+
"method": "GET",
|
2916
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}",
|
2917
|
+
"request_type": request.__class__.__name__,
|
2918
|
+
"response_type": "ShowInstanceResponse"
|
2919
|
+
}
|
2920
|
+
|
2921
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2922
|
+
|
2923
|
+
cname = None
|
2924
|
+
|
2925
|
+
collection_formats = {}
|
2926
|
+
|
2927
|
+
path_params = {}
|
2928
|
+
if 'instance_id' in local_var_params:
|
2929
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2930
|
+
|
2931
|
+
query_params = []
|
2932
|
+
|
2933
|
+
header_params = {}
|
2934
|
+
|
2935
|
+
form_params = {}
|
2936
|
+
|
2937
|
+
body = None
|
2938
|
+
if isinstance(request, SdkStreamRequest):
|
2939
|
+
body = request.get_file_stream()
|
2940
|
+
|
2941
|
+
response_headers = []
|
2942
|
+
|
2943
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2944
|
+
['application/json'])
|
2945
|
+
|
2946
|
+
auth_settings = []
|
2947
|
+
|
2948
|
+
http_info["cname"] = cname
|
2949
|
+
http_info["collection_formats"] = collection_formats
|
2950
|
+
http_info["path_params"] = path_params
|
2951
|
+
http_info["query_params"] = query_params
|
2952
|
+
http_info["header_params"] = header_params
|
2953
|
+
http_info["post_params"] = form_params
|
2954
|
+
http_info["body"] = body
|
2955
|
+
http_info["response_headers"] = response_headers
|
2956
|
+
|
2957
|
+
return http_info
|
2958
|
+
|
2959
|
+
def show_instance_nodes_async(self, request):
|
2960
|
+
r"""查询实例节点
|
2961
|
+
|
2962
|
+
查询实例节点信息。
|
2963
|
+
|
2964
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2965
|
+
|
2966
|
+
|
2967
|
+
:param request: Request instance for ShowInstanceNodes
|
2968
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowInstanceNodesRequest`
|
2969
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowInstanceNodesResponse`
|
2970
|
+
"""
|
2971
|
+
http_info = self._show_instance_nodes_http_info(request)
|
2972
|
+
return self._call_api(**http_info)
|
2973
|
+
|
2974
|
+
def show_instance_nodes_async_invoker(self, request):
|
2975
|
+
http_info = self._show_instance_nodes_http_info(request)
|
2976
|
+
return AsyncInvoker(self, http_info)
|
2977
|
+
|
2978
|
+
def _show_instance_nodes_http_info(self, request):
|
2979
|
+
http_info = {
|
2980
|
+
"method": "GET",
|
2981
|
+
"resource_path": "/v2/{project_id}/{engine}/instances/{instance_id}/nodes",
|
2982
|
+
"request_type": request.__class__.__name__,
|
2983
|
+
"response_type": "ShowInstanceNodesResponse"
|
2984
|
+
}
|
2985
|
+
|
2986
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2987
|
+
|
2988
|
+
cname = None
|
2989
|
+
|
2990
|
+
collection_formats = {}
|
2991
|
+
|
2992
|
+
path_params = {}
|
2993
|
+
if 'engine' in local_var_params:
|
2994
|
+
path_params['engine'] = local_var_params['engine']
|
2995
|
+
if 'instance_id' in local_var_params:
|
2996
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2997
|
+
|
2998
|
+
query_params = []
|
2999
|
+
if 'limit' in local_var_params:
|
3000
|
+
query_params.append(('limit', local_var_params['limit']))
|
3001
|
+
if 'offset' in local_var_params:
|
3002
|
+
query_params.append(('offset', local_var_params['offset']))
|
3003
|
+
|
3004
|
+
header_params = {}
|
3005
|
+
|
3006
|
+
form_params = {}
|
3007
|
+
|
3008
|
+
body = None
|
3009
|
+
if isinstance(request, SdkStreamRequest):
|
3010
|
+
body = request.get_file_stream()
|
3011
|
+
|
3012
|
+
response_headers = []
|
3013
|
+
|
3014
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3015
|
+
['application/json'])
|
3016
|
+
|
3017
|
+
auth_settings = []
|
3018
|
+
|
3019
|
+
http_info["cname"] = cname
|
3020
|
+
http_info["collection_formats"] = collection_formats
|
3021
|
+
http_info["path_params"] = path_params
|
3022
|
+
http_info["query_params"] = query_params
|
3023
|
+
http_info["header_params"] = header_params
|
3024
|
+
http_info["post_params"] = form_params
|
3025
|
+
http_info["body"] = body
|
3026
|
+
http_info["response_headers"] = response_headers
|
3027
|
+
|
3028
|
+
return http_info
|
3029
|
+
|
3030
|
+
def show_quotas_async(self, request):
|
3031
|
+
r"""查看租户配额
|
3032
|
+
|
3033
|
+
查询租户最大可以创建的实例个数和已创建的实例个数,以及每个实例最大可以创建标签的个数。
|
3034
|
+
|
3035
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3036
|
+
|
3037
|
+
|
3038
|
+
:param request: Request instance for ShowQuotas
|
3039
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowQuotasRequest`
|
3040
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowQuotasResponse`
|
3041
|
+
"""
|
3042
|
+
http_info = self._show_quotas_http_info(request)
|
3043
|
+
return self._call_api(**http_info)
|
3044
|
+
|
3045
|
+
def show_quotas_async_invoker(self, request):
|
3046
|
+
http_info = self._show_quotas_http_info(request)
|
3047
|
+
return AsyncInvoker(self, http_info)
|
3048
|
+
|
3049
|
+
def _show_quotas_http_info(self, request):
|
3050
|
+
http_info = {
|
3051
|
+
"method": "GET",
|
3052
|
+
"resource_path": "/v2/{project_id}/quotas",
|
3053
|
+
"request_type": request.__class__.__name__,
|
3054
|
+
"response_type": "ShowQuotasResponse"
|
3055
|
+
}
|
3056
|
+
|
3057
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3058
|
+
|
3059
|
+
cname = None
|
3060
|
+
|
3061
|
+
collection_formats = {}
|
3062
|
+
|
3063
|
+
path_params = {}
|
3064
|
+
|
3065
|
+
query_params = []
|
3066
|
+
|
3067
|
+
header_params = {}
|
3068
|
+
|
3069
|
+
form_params = {}
|
3070
|
+
|
3071
|
+
body = None
|
3072
|
+
if isinstance(request, SdkStreamRequest):
|
3073
|
+
body = request.get_file_stream()
|
3074
|
+
|
3075
|
+
response_headers = []
|
3076
|
+
|
3077
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3078
|
+
['application/json'])
|
3079
|
+
|
3080
|
+
auth_settings = []
|
3081
|
+
|
3082
|
+
http_info["cname"] = cname
|
3083
|
+
http_info["collection_formats"] = collection_formats
|
3084
|
+
http_info["path_params"] = path_params
|
3085
|
+
http_info["query_params"] = query_params
|
3086
|
+
http_info["header_params"] = header_params
|
3087
|
+
http_info["post_params"] = form_params
|
3088
|
+
http_info["body"] = body
|
3089
|
+
http_info["response_headers"] = response_headers
|
3090
|
+
|
3091
|
+
return http_info
|
3092
|
+
|
3093
|
+
def show_rocket_mq_configs_async(self, request):
|
3094
|
+
r"""查询RocketMQ配置
|
3095
|
+
|
3096
|
+
该接口用于查询RocketMQ配置,若成功则返回配置的相关信息。
|
3097
|
+
|
3098
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3099
|
+
|
3100
|
+
|
3101
|
+
:param request: Request instance for ShowRocketMqConfigs
|
3102
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowRocketMqConfigsRequest`
|
3103
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowRocketMqConfigsResponse`
|
3104
|
+
"""
|
3105
|
+
http_info = self._show_rocket_mq_configs_http_info(request)
|
3106
|
+
return self._call_api(**http_info)
|
3107
|
+
|
3108
|
+
def show_rocket_mq_configs_async_invoker(self, request):
|
3109
|
+
http_info = self._show_rocket_mq_configs_http_info(request)
|
3110
|
+
return AsyncInvoker(self, http_info)
|
3111
|
+
|
3112
|
+
def _show_rocket_mq_configs_http_info(self, request):
|
3113
|
+
http_info = {
|
3114
|
+
"method": "GET",
|
3115
|
+
"resource_path": "/v2/{project_id}/rocketmq/instances/{instance_id}/configs",
|
3116
|
+
"request_type": request.__class__.__name__,
|
3117
|
+
"response_type": "ShowRocketMqConfigsResponse"
|
3118
|
+
}
|
3119
|
+
|
3120
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3121
|
+
|
3122
|
+
cname = None
|
3123
|
+
|
3124
|
+
collection_formats = {}
|
3125
|
+
|
3126
|
+
path_params = {}
|
3127
|
+
if 'instance_id' in local_var_params:
|
3128
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3129
|
+
|
3130
|
+
query_params = []
|
3131
|
+
if 'limit' in local_var_params:
|
3132
|
+
query_params.append(('limit', local_var_params['limit']))
|
3133
|
+
if 'offset' in local_var_params:
|
3134
|
+
query_params.append(('offset', local_var_params['offset']))
|
3135
|
+
|
3136
|
+
header_params = {}
|
3137
|
+
|
3138
|
+
form_params = {}
|
3139
|
+
|
3140
|
+
body = None
|
3141
|
+
if isinstance(request, SdkStreamRequest):
|
3142
|
+
body = request.get_file_stream()
|
3143
|
+
|
3144
|
+
response_headers = []
|
3145
|
+
|
3146
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3147
|
+
['application/json'])
|
3148
|
+
|
3149
|
+
auth_settings = []
|
3150
|
+
|
3151
|
+
http_info["cname"] = cname
|
3152
|
+
http_info["collection_formats"] = collection_formats
|
3153
|
+
http_info["path_params"] = path_params
|
3154
|
+
http_info["query_params"] = query_params
|
3155
|
+
http_info["header_params"] = header_params
|
3156
|
+
http_info["post_params"] = form_params
|
3157
|
+
http_info["body"] = body
|
3158
|
+
http_info["response_headers"] = response_headers
|
3159
|
+
|
3160
|
+
return http_info
|
3161
|
+
|
3162
|
+
def show_rocketmq_project_tags_async(self, request):
|
3163
|
+
r"""查询项目标签
|
3164
|
+
|
3165
|
+
查询项目标签。
|
3166
|
+
|
3167
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3168
|
+
|
3169
|
+
|
3170
|
+
:param request: Request instance for ShowRocketmqProjectTags
|
3171
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqProjectTagsRequest`
|
3172
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqProjectTagsResponse`
|
3173
|
+
"""
|
3174
|
+
http_info = self._show_rocketmq_project_tags_http_info(request)
|
3175
|
+
return self._call_api(**http_info)
|
3176
|
+
|
3177
|
+
def show_rocketmq_project_tags_async_invoker(self, request):
|
3178
|
+
http_info = self._show_rocketmq_project_tags_http_info(request)
|
3179
|
+
return AsyncInvoker(self, http_info)
|
3180
|
+
|
3181
|
+
def _show_rocketmq_project_tags_http_info(self, request):
|
3182
|
+
http_info = {
|
3183
|
+
"method": "GET",
|
3184
|
+
"resource_path": "/v2/{project_id}/rocketmq/tags",
|
3185
|
+
"request_type": request.__class__.__name__,
|
3186
|
+
"response_type": "ShowRocketmqProjectTagsResponse"
|
3187
|
+
}
|
3188
|
+
|
3189
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3190
|
+
|
3191
|
+
cname = None
|
3192
|
+
|
3193
|
+
collection_formats = {}
|
3194
|
+
|
3195
|
+
path_params = {}
|
3196
|
+
|
3197
|
+
query_params = []
|
3198
|
+
if 'limit' in local_var_params:
|
3199
|
+
query_params.append(('limit', local_var_params['limit']))
|
3200
|
+
if 'offset' in local_var_params:
|
3201
|
+
query_params.append(('offset', local_var_params['offset']))
|
3202
|
+
|
3203
|
+
header_params = {}
|
3204
|
+
|
3205
|
+
form_params = {}
|
3206
|
+
|
3207
|
+
body = None
|
3208
|
+
if isinstance(request, SdkStreamRequest):
|
3209
|
+
body = request.get_file_stream()
|
3210
|
+
|
3211
|
+
response_headers = []
|
3212
|
+
|
3213
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3214
|
+
['application/json'])
|
3215
|
+
|
3216
|
+
auth_settings = []
|
3217
|
+
|
3218
|
+
http_info["cname"] = cname
|
3219
|
+
http_info["collection_formats"] = collection_formats
|
3220
|
+
http_info["path_params"] = path_params
|
3221
|
+
http_info["query_params"] = query_params
|
3222
|
+
http_info["header_params"] = header_params
|
3223
|
+
http_info["post_params"] = form_params
|
3224
|
+
http_info["body"] = body
|
3225
|
+
http_info["response_headers"] = response_headers
|
3226
|
+
|
3227
|
+
return http_info
|
3228
|
+
|
3229
|
+
def show_rocketmq_tags_async(self, request):
|
3230
|
+
r"""查询实例标签
|
3231
|
+
|
3232
|
+
查询实例标签。
|
3233
|
+
|
3234
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3235
|
+
|
3236
|
+
|
3237
|
+
:param request: Request instance for ShowRocketmqTags
|
3238
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqTagsRequest`
|
3239
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqTagsResponse`
|
3240
|
+
"""
|
3241
|
+
http_info = self._show_rocketmq_tags_http_info(request)
|
3242
|
+
return self._call_api(**http_info)
|
3243
|
+
|
3244
|
+
def show_rocketmq_tags_async_invoker(self, request):
|
3245
|
+
http_info = self._show_rocketmq_tags_http_info(request)
|
3246
|
+
return AsyncInvoker(self, http_info)
|
3247
|
+
|
3248
|
+
def _show_rocketmq_tags_http_info(self, request):
|
3249
|
+
http_info = {
|
3250
|
+
"method": "GET",
|
3251
|
+
"resource_path": "/v2/{project_id}/rocketmq/{instance_id}/tags",
|
3252
|
+
"request_type": request.__class__.__name__,
|
3253
|
+
"response_type": "ShowRocketmqTagsResponse"
|
3254
|
+
}
|
3255
|
+
|
3256
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3257
|
+
|
3258
|
+
cname = None
|
3259
|
+
|
3260
|
+
collection_formats = {}
|
3261
|
+
|
3262
|
+
path_params = {}
|
3263
|
+
if 'instance_id' in local_var_params:
|
3264
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3265
|
+
|
3266
|
+
query_params = []
|
3267
|
+
if 'limit' in local_var_params:
|
3268
|
+
query_params.append(('limit', local_var_params['limit']))
|
3269
|
+
if 'offset' in local_var_params:
|
3270
|
+
query_params.append(('offset', local_var_params['offset']))
|
3271
|
+
|
3272
|
+
header_params = {}
|
3273
|
+
|
3274
|
+
form_params = {}
|
3275
|
+
|
3276
|
+
body = None
|
3277
|
+
if isinstance(request, SdkStreamRequest):
|
3278
|
+
body = request.get_file_stream()
|
3279
|
+
|
3280
|
+
response_headers = []
|
3281
|
+
|
3282
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3283
|
+
['application/json'])
|
3284
|
+
|
3285
|
+
auth_settings = []
|
3286
|
+
|
3287
|
+
http_info["cname"] = cname
|
3288
|
+
http_info["collection_formats"] = collection_formats
|
3289
|
+
http_info["path_params"] = path_params
|
3290
|
+
http_info["query_params"] = query_params
|
3291
|
+
http_info["header_params"] = header_params
|
3292
|
+
http_info["post_params"] = form_params
|
3293
|
+
http_info["body"] = body
|
3294
|
+
http_info["response_headers"] = response_headers
|
3295
|
+
|
3296
|
+
return http_info
|
3297
|
+
|
3298
|
+
def show_user_async(self, request):
|
3299
|
+
r"""查询用户详情
|
3300
|
+
|
3301
|
+
查询用户详情。
|
3302
|
+
|
3303
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3304
|
+
|
3305
|
+
|
3306
|
+
:param request: Request instance for ShowUser
|
3307
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowUserRequest`
|
3308
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowUserResponse`
|
3309
|
+
"""
|
3310
|
+
http_info = self._show_user_http_info(request)
|
3311
|
+
return self._call_api(**http_info)
|
3312
|
+
|
3313
|
+
def show_user_async_invoker(self, request):
|
3314
|
+
http_info = self._show_user_http_info(request)
|
3315
|
+
return AsyncInvoker(self, http_info)
|
3316
|
+
|
3317
|
+
def _show_user_http_info(self, request):
|
3318
|
+
http_info = {
|
3319
|
+
"method": "GET",
|
3320
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/users/{user_name}",
|
3321
|
+
"request_type": request.__class__.__name__,
|
3322
|
+
"response_type": "ShowUserResponse"
|
3323
|
+
}
|
3324
|
+
|
3325
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3326
|
+
|
3327
|
+
cname = None
|
3328
|
+
|
3329
|
+
collection_formats = {}
|
3330
|
+
|
3331
|
+
path_params = {}
|
3332
|
+
if 'instance_id' in local_var_params:
|
3333
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3334
|
+
if 'user_name' in local_var_params:
|
3335
|
+
path_params['user_name'] = local_var_params['user_name']
|
3336
|
+
|
3337
|
+
query_params = []
|
3338
|
+
|
3339
|
+
header_params = {}
|
3340
|
+
|
3341
|
+
form_params = {}
|
3342
|
+
|
3343
|
+
body = None
|
3344
|
+
if isinstance(request, SdkStreamRequest):
|
3345
|
+
body = request.get_file_stream()
|
3346
|
+
|
3347
|
+
response_headers = []
|
3348
|
+
|
3349
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3350
|
+
['application/json'])
|
3351
|
+
|
3352
|
+
auth_settings = []
|
3353
|
+
|
3354
|
+
http_info["cname"] = cname
|
3355
|
+
http_info["collection_formats"] = collection_formats
|
3356
|
+
http_info["path_params"] = path_params
|
3357
|
+
http_info["query_params"] = query_params
|
3358
|
+
http_info["header_params"] = header_params
|
3359
|
+
http_info["post_params"] = form_params
|
3360
|
+
http_info["body"] = body
|
3361
|
+
http_info["response_headers"] = response_headers
|
3362
|
+
|
3363
|
+
return http_info
|
3364
|
+
|
3365
|
+
def update_consumer_group_async(self, request):
|
3366
|
+
r"""修改消费组
|
3367
|
+
|
3368
|
+
修改指定消费组参数。
|
3369
|
+
|
3370
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3371
|
+
|
3372
|
+
|
3373
|
+
:param request: Request instance for UpdateConsumerGroup
|
3374
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.UpdateConsumerGroupRequest`
|
3375
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.UpdateConsumerGroupResponse`
|
3376
|
+
"""
|
3377
|
+
http_info = self._update_consumer_group_http_info(request)
|
3378
|
+
return self._call_api(**http_info)
|
3379
|
+
|
3380
|
+
def update_consumer_group_async_invoker(self, request):
|
3381
|
+
http_info = self._update_consumer_group_http_info(request)
|
3382
|
+
return AsyncInvoker(self, http_info)
|
3383
|
+
|
3384
|
+
def _update_consumer_group_http_info(self, request):
|
3385
|
+
http_info = {
|
3386
|
+
"method": "PUT",
|
3387
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/groups/{group}",
|
3388
|
+
"request_type": request.__class__.__name__,
|
3389
|
+
"response_type": "UpdateConsumerGroupResponse"
|
3390
|
+
}
|
3391
|
+
|
3392
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3393
|
+
|
3394
|
+
cname = None
|
3395
|
+
|
3396
|
+
collection_formats = {}
|
3397
|
+
|
3398
|
+
path_params = {}
|
3399
|
+
if 'instance_id' in local_var_params:
|
3400
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3401
|
+
if 'group' in local_var_params:
|
3402
|
+
path_params['group'] = local_var_params['group']
|
3403
|
+
|
3404
|
+
query_params = []
|
3405
|
+
|
3406
|
+
header_params = {}
|
3407
|
+
|
3408
|
+
form_params = {}
|
3409
|
+
|
3410
|
+
body = None
|
3411
|
+
if 'body' in local_var_params:
|
3412
|
+
body = local_var_params['body']
|
3413
|
+
if isinstance(request, SdkStreamRequest):
|
3414
|
+
body = request.get_file_stream()
|
3415
|
+
|
3416
|
+
response_headers = []
|
3417
|
+
|
3418
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3419
|
+
['application/json'])
|
3420
|
+
|
3421
|
+
auth_settings = []
|
3422
|
+
|
3423
|
+
http_info["cname"] = cname
|
3424
|
+
http_info["collection_formats"] = collection_formats
|
3425
|
+
http_info["path_params"] = path_params
|
3426
|
+
http_info["query_params"] = query_params
|
3427
|
+
http_info["header_params"] = header_params
|
3428
|
+
http_info["post_params"] = form_params
|
3429
|
+
http_info["body"] = body
|
3430
|
+
http_info["response_headers"] = response_headers
|
3431
|
+
|
3432
|
+
return http_info
|
3433
|
+
|
3434
|
+
def update_instance_async(self, request):
|
3435
|
+
r"""修改实例信息
|
3436
|
+
|
3437
|
+
修改实例的名称和描述信息。
|
3438
|
+
|
3439
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3440
|
+
|
3441
|
+
|
3442
|
+
:param request: Request instance for UpdateInstance
|
3443
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.UpdateInstanceRequest`
|
3444
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.UpdateInstanceResponse`
|
3445
|
+
"""
|
3446
|
+
http_info = self._update_instance_http_info(request)
|
3447
|
+
return self._call_api(**http_info)
|
3448
|
+
|
3449
|
+
def update_instance_async_invoker(self, request):
|
3450
|
+
http_info = self._update_instance_http_info(request)
|
3451
|
+
return AsyncInvoker(self, http_info)
|
3452
|
+
|
3453
|
+
def _update_instance_http_info(self, request):
|
3454
|
+
http_info = {
|
3455
|
+
"method": "PUT",
|
3456
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}",
|
3457
|
+
"request_type": request.__class__.__name__,
|
3458
|
+
"response_type": "UpdateInstanceResponse"
|
3459
|
+
}
|
3460
|
+
|
3461
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3462
|
+
|
3463
|
+
cname = None
|
3464
|
+
|
3465
|
+
collection_formats = {}
|
3466
|
+
|
3467
|
+
path_params = {}
|
3468
|
+
if 'instance_id' in local_var_params:
|
3469
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3470
|
+
|
3471
|
+
query_params = []
|
3472
|
+
|
3473
|
+
header_params = {}
|
3474
|
+
|
3475
|
+
form_params = {}
|
3476
|
+
|
3477
|
+
body = None
|
3478
|
+
if 'body' in local_var_params:
|
3479
|
+
body = local_var_params['body']
|
3480
|
+
if isinstance(request, SdkStreamRequest):
|
3481
|
+
body = request.get_file_stream()
|
3482
|
+
|
3483
|
+
response_headers = []
|
3484
|
+
|
3485
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3486
|
+
['application/json'])
|
3487
|
+
|
3488
|
+
auth_settings = []
|
3489
|
+
|
3490
|
+
http_info["cname"] = cname
|
3491
|
+
http_info["collection_formats"] = collection_formats
|
3492
|
+
http_info["path_params"] = path_params
|
3493
|
+
http_info["query_params"] = query_params
|
3494
|
+
http_info["header_params"] = header_params
|
3495
|
+
http_info["post_params"] = form_params
|
3496
|
+
http_info["body"] = body
|
3497
|
+
http_info["response_headers"] = response_headers
|
3498
|
+
|
3499
|
+
return http_info
|
3500
|
+
|
3501
|
+
def update_rocket_mq_configs_async(self, request):
|
3502
|
+
r"""修改RocketMQ配置
|
3503
|
+
|
3504
|
+
该接口用于修改RocketMQ配置。
|
3505
|
+
|
3506
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3507
|
+
|
3508
|
+
|
3509
|
+
:param request: Request instance for UpdateRocketMqConfigs
|
3510
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.UpdateRocketMqConfigsRequest`
|
3511
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.UpdateRocketMqConfigsResponse`
|
3512
|
+
"""
|
3513
|
+
http_info = self._update_rocket_mq_configs_http_info(request)
|
3514
|
+
return self._call_api(**http_info)
|
3515
|
+
|
3516
|
+
def update_rocket_mq_configs_async_invoker(self, request):
|
3517
|
+
http_info = self._update_rocket_mq_configs_http_info(request)
|
3518
|
+
return AsyncInvoker(self, http_info)
|
3519
|
+
|
3520
|
+
def _update_rocket_mq_configs_http_info(self, request):
|
3521
|
+
http_info = {
|
3522
|
+
"method": "PUT",
|
3523
|
+
"resource_path": "/v2/{project_id}/rocketmq/instances/{instance_id}/configs",
|
3524
|
+
"request_type": request.__class__.__name__,
|
3525
|
+
"response_type": "UpdateRocketMqConfigsResponse"
|
3526
|
+
}
|
3527
|
+
|
3528
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3529
|
+
|
3530
|
+
cname = None
|
3531
|
+
|
3532
|
+
collection_formats = {}
|
3533
|
+
|
3534
|
+
path_params = {}
|
3535
|
+
if 'instance_id' in local_var_params:
|
3536
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3537
|
+
|
3538
|
+
query_params = []
|
3539
|
+
|
3540
|
+
header_params = {}
|
3541
|
+
|
3542
|
+
form_params = {}
|
3543
|
+
|
3544
|
+
body = None
|
3545
|
+
if 'body' in local_var_params:
|
3546
|
+
body = local_var_params['body']
|
3547
|
+
if isinstance(request, SdkStreamRequest):
|
3548
|
+
body = request.get_file_stream()
|
3549
|
+
|
3550
|
+
response_headers = []
|
3551
|
+
|
3552
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3553
|
+
['application/json'])
|
3554
|
+
|
3555
|
+
auth_settings = []
|
3556
|
+
|
3557
|
+
http_info["cname"] = cname
|
3558
|
+
http_info["collection_formats"] = collection_formats
|
3559
|
+
http_info["path_params"] = path_params
|
3560
|
+
http_info["query_params"] = query_params
|
3561
|
+
http_info["header_params"] = header_params
|
3562
|
+
http_info["post_params"] = form_params
|
3563
|
+
http_info["body"] = body
|
3564
|
+
http_info["response_headers"] = response_headers
|
3565
|
+
|
3566
|
+
return http_info
|
3567
|
+
|
3568
|
+
def update_user_async(self, request):
|
3569
|
+
r"""修改用户参数
|
3570
|
+
|
3571
|
+
修改用户参数。
|
3572
|
+
|
3573
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3574
|
+
|
3575
|
+
|
3576
|
+
:param request: Request instance for UpdateUser
|
3577
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.UpdateUserRequest`
|
3578
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.UpdateUserResponse`
|
3579
|
+
"""
|
3580
|
+
http_info = self._update_user_http_info(request)
|
3581
|
+
return self._call_api(**http_info)
|
3582
|
+
|
3583
|
+
def update_user_async_invoker(self, request):
|
3584
|
+
http_info = self._update_user_http_info(request)
|
3585
|
+
return AsyncInvoker(self, http_info)
|
3586
|
+
|
3587
|
+
def _update_user_http_info(self, request):
|
3588
|
+
http_info = {
|
3589
|
+
"method": "PUT",
|
3590
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/users/{user_name}",
|
3591
|
+
"request_type": request.__class__.__name__,
|
3592
|
+
"response_type": "UpdateUserResponse"
|
3593
|
+
}
|
3594
|
+
|
3595
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3596
|
+
|
3597
|
+
cname = None
|
3598
|
+
|
3599
|
+
collection_formats = {}
|
3600
|
+
|
3601
|
+
path_params = {}
|
3602
|
+
if 'instance_id' in local_var_params:
|
3603
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3604
|
+
if 'user_name' in local_var_params:
|
3605
|
+
path_params['user_name'] = local_var_params['user_name']
|
3606
|
+
|
3607
|
+
query_params = []
|
3608
|
+
|
3609
|
+
header_params = {}
|
3610
|
+
|
3611
|
+
form_params = {}
|
3612
|
+
|
3613
|
+
body = None
|
3614
|
+
if 'body' in local_var_params:
|
3615
|
+
body = local_var_params['body']
|
3616
|
+
if isinstance(request, SdkStreamRequest):
|
3617
|
+
body = request.get_file_stream()
|
3618
|
+
|
3619
|
+
response_headers = []
|
3620
|
+
|
3621
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3622
|
+
['application/json'])
|
3623
|
+
|
3624
|
+
auth_settings = []
|
3625
|
+
|
3626
|
+
http_info["cname"] = cname
|
3627
|
+
http_info["collection_formats"] = collection_formats
|
3628
|
+
http_info["path_params"] = path_params
|
3629
|
+
http_info["query_params"] = query_params
|
3630
|
+
http_info["header_params"] = header_params
|
3631
|
+
http_info["post_params"] = form_params
|
3632
|
+
http_info["body"] = body
|
3633
|
+
http_info["response_headers"] = response_headers
|
3634
|
+
|
3635
|
+
return http_info
|
3636
|
+
|
3637
|
+
def validate_consumed_message_async(self, request):
|
3638
|
+
r"""消费验证
|
3639
|
+
|
3640
|
+
消费验证。
|
3641
|
+
|
3642
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3643
|
+
|
3644
|
+
|
3645
|
+
:param request: Request instance for ValidateConsumedMessage
|
3646
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ValidateConsumedMessageRequest`
|
3647
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ValidateConsumedMessageResponse`
|
3648
|
+
"""
|
3649
|
+
http_info = self._validate_consumed_message_http_info(request)
|
3650
|
+
return self._call_api(**http_info)
|
3651
|
+
|
3652
|
+
def validate_consumed_message_async_invoker(self, request):
|
3653
|
+
http_info = self._validate_consumed_message_http_info(request)
|
3654
|
+
return AsyncInvoker(self, http_info)
|
3655
|
+
|
3656
|
+
def _validate_consumed_message_http_info(self, request):
|
3657
|
+
http_info = {
|
3658
|
+
"method": "POST",
|
3659
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/messages/resend",
|
3660
|
+
"request_type": request.__class__.__name__,
|
3661
|
+
"response_type": "ValidateConsumedMessageResponse"
|
3662
|
+
}
|
3663
|
+
|
3664
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3665
|
+
|
3666
|
+
cname = None
|
3667
|
+
|
3668
|
+
collection_formats = {}
|
3669
|
+
|
3670
|
+
path_params = {}
|
3671
|
+
if 'engine' in local_var_params:
|
3672
|
+
path_params['engine'] = local_var_params['engine']
|
3673
|
+
if 'instance_id' in local_var_params:
|
3674
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3675
|
+
|
3676
|
+
query_params = []
|
3677
|
+
|
3678
|
+
header_params = {}
|
3679
|
+
|
3680
|
+
form_params = {}
|
3681
|
+
|
3682
|
+
body = None
|
3683
|
+
if 'body' in local_var_params:
|
3684
|
+
body = local_var_params['body']
|
3685
|
+
if isinstance(request, SdkStreamRequest):
|
3686
|
+
body = request.get_file_stream()
|
3687
|
+
|
3688
|
+
response_headers = []
|
3689
|
+
|
3690
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3691
|
+
['application/json'])
|
3692
|
+
|
3693
|
+
auth_settings = []
|
3694
|
+
|
3695
|
+
http_info["cname"] = cname
|
3696
|
+
http_info["collection_formats"] = collection_formats
|
3697
|
+
http_info["path_params"] = path_params
|
3698
|
+
http_info["query_params"] = query_params
|
3699
|
+
http_info["header_params"] = header_params
|
3700
|
+
http_info["post_params"] = form_params
|
3701
|
+
http_info["body"] = body
|
3702
|
+
http_info["response_headers"] = response_headers
|
3703
|
+
|
3704
|
+
return http_info
|
3705
|
+
|
3706
|
+
def create_topic_or_batch_delete_topic_async(self, request):
|
3707
|
+
r"""创建主题或批量删除主题
|
3708
|
+
|
3709
|
+
创建主题或批量删除主题。
|
3710
|
+
|
3711
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3712
|
+
|
3713
|
+
|
3714
|
+
:param request: Request instance for CreateTopicOrBatchDeleteTopic
|
3715
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.CreateTopicOrBatchDeleteTopicRequest`
|
3716
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreateTopicOrBatchDeleteTopicResponse`
|
3717
|
+
"""
|
3718
|
+
http_info = self._create_topic_or_batch_delete_topic_http_info(request)
|
3719
|
+
return self._call_api(**http_info)
|
3720
|
+
|
3721
|
+
def create_topic_or_batch_delete_topic_async_invoker(self, request):
|
3722
|
+
http_info = self._create_topic_or_batch_delete_topic_http_info(request)
|
3723
|
+
return AsyncInvoker(self, http_info)
|
3724
|
+
|
3725
|
+
def _create_topic_or_batch_delete_topic_http_info(self, request):
|
3726
|
+
http_info = {
|
3727
|
+
"method": "POST",
|
3728
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/topics",
|
3729
|
+
"request_type": request.__class__.__name__,
|
3730
|
+
"response_type": "CreateTopicOrBatchDeleteTopicResponse"
|
3731
|
+
}
|
3732
|
+
|
3733
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3734
|
+
|
3735
|
+
cname = None
|
3736
|
+
|
3737
|
+
collection_formats = {}
|
3738
|
+
|
3739
|
+
path_params = {}
|
3740
|
+
if 'instance_id' in local_var_params:
|
3741
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3742
|
+
|
3743
|
+
query_params = []
|
3744
|
+
if 'action' in local_var_params:
|
3745
|
+
query_params.append(('action', local_var_params['action']))
|
3746
|
+
|
3747
|
+
header_params = {}
|
3748
|
+
|
3749
|
+
form_params = {}
|
3750
|
+
|
3751
|
+
body = None
|
3752
|
+
if 'body' in local_var_params:
|
3753
|
+
body = local_var_params['body']
|
3754
|
+
if isinstance(request, SdkStreamRequest):
|
3755
|
+
body = request.get_file_stream()
|
3756
|
+
|
3757
|
+
response_headers = []
|
3758
|
+
|
3759
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3760
|
+
['application/json'])
|
3761
|
+
|
3762
|
+
auth_settings = []
|
3763
|
+
|
3764
|
+
http_info["cname"] = cname
|
3765
|
+
http_info["collection_formats"] = collection_formats
|
3766
|
+
http_info["path_params"] = path_params
|
3767
|
+
http_info["query_params"] = query_params
|
3768
|
+
http_info["header_params"] = header_params
|
3769
|
+
http_info["post_params"] = form_params
|
3770
|
+
http_info["body"] = body
|
3771
|
+
http_info["response_headers"] = response_headers
|
3772
|
+
|
3773
|
+
return http_info
|
3774
|
+
|
3775
|
+
def delete_topic_async(self, request):
|
3776
|
+
r"""删除指定主题
|
3777
|
+
|
3778
|
+
删除指定主题。
|
3779
|
+
|
3780
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3781
|
+
|
3782
|
+
|
3783
|
+
:param request: Request instance for DeleteTopic
|
3784
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.DeleteTopicRequest`
|
3785
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.DeleteTopicResponse`
|
3786
|
+
"""
|
3787
|
+
http_info = self._delete_topic_http_info(request)
|
3788
|
+
return self._call_api(**http_info)
|
3789
|
+
|
3790
|
+
def delete_topic_async_invoker(self, request):
|
3791
|
+
http_info = self._delete_topic_http_info(request)
|
3792
|
+
return AsyncInvoker(self, http_info)
|
3793
|
+
|
3794
|
+
def _delete_topic_http_info(self, request):
|
3795
|
+
http_info = {
|
3796
|
+
"method": "DELETE",
|
3797
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/topics/{topic}",
|
3798
|
+
"request_type": request.__class__.__name__,
|
3799
|
+
"response_type": "DeleteTopicResponse"
|
3800
|
+
}
|
3801
|
+
|
3802
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3803
|
+
|
3804
|
+
cname = None
|
3805
|
+
|
3806
|
+
collection_formats = {}
|
3807
|
+
|
3808
|
+
path_params = {}
|
3809
|
+
if 'instance_id' in local_var_params:
|
3810
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3811
|
+
if 'topic' in local_var_params:
|
3812
|
+
path_params['topic'] = local_var_params['topic']
|
3813
|
+
|
3814
|
+
query_params = []
|
3815
|
+
|
3816
|
+
header_params = {}
|
3817
|
+
|
3818
|
+
form_params = {}
|
3819
|
+
|
3820
|
+
body = None
|
3821
|
+
if isinstance(request, SdkStreamRequest):
|
3822
|
+
body = request.get_file_stream()
|
3823
|
+
|
3824
|
+
response_headers = []
|
3825
|
+
|
3826
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3827
|
+
['application/json'])
|
3828
|
+
|
3829
|
+
auth_settings = []
|
3830
|
+
|
3831
|
+
http_info["cname"] = cname
|
3832
|
+
http_info["collection_formats"] = collection_formats
|
3833
|
+
http_info["path_params"] = path_params
|
3834
|
+
http_info["query_params"] = query_params
|
3835
|
+
http_info["header_params"] = header_params
|
3836
|
+
http_info["post_params"] = form_params
|
3837
|
+
http_info["body"] = body
|
3838
|
+
http_info["response_headers"] = response_headers
|
3839
|
+
|
3840
|
+
return http_info
|
3841
|
+
|
3842
|
+
def list_consumer_group_of_topic_async(self, request):
|
3843
|
+
r"""查询主题消费组列表
|
3844
|
+
|
3845
|
+
查询主题消费组列表。
|
3846
|
+
|
3847
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3848
|
+
|
3849
|
+
|
3850
|
+
:param request: Request instance for ListConsumerGroupOfTopic
|
3851
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListConsumerGroupOfTopicRequest`
|
3852
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListConsumerGroupOfTopicResponse`
|
3853
|
+
"""
|
3854
|
+
http_info = self._list_consumer_group_of_topic_http_info(request)
|
3855
|
+
return self._call_api(**http_info)
|
3856
|
+
|
3857
|
+
def list_consumer_group_of_topic_async_invoker(self, request):
|
3858
|
+
http_info = self._list_consumer_group_of_topic_http_info(request)
|
3859
|
+
return AsyncInvoker(self, http_info)
|
3860
|
+
|
3861
|
+
def _list_consumer_group_of_topic_http_info(self, request):
|
3862
|
+
http_info = {
|
3863
|
+
"method": "GET",
|
3864
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/topics/{topic}/groups",
|
3865
|
+
"request_type": request.__class__.__name__,
|
3866
|
+
"response_type": "ListConsumerGroupOfTopicResponse"
|
3867
|
+
}
|
3868
|
+
|
3869
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3870
|
+
|
3871
|
+
cname = None
|
3872
|
+
|
3873
|
+
collection_formats = {}
|
3874
|
+
|
3875
|
+
path_params = {}
|
3876
|
+
if 'instance_id' in local_var_params:
|
3877
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3878
|
+
if 'topic' in local_var_params:
|
3879
|
+
path_params['topic'] = local_var_params['topic']
|
3880
|
+
|
3881
|
+
query_params = []
|
3882
|
+
if 'limit' in local_var_params:
|
3883
|
+
query_params.append(('limit', local_var_params['limit']))
|
3884
|
+
if 'offset' in local_var_params:
|
3885
|
+
query_params.append(('offset', local_var_params['offset']))
|
3886
|
+
|
3887
|
+
header_params = {}
|
3888
|
+
|
3889
|
+
form_params = {}
|
3890
|
+
|
3891
|
+
body = None
|
3892
|
+
if isinstance(request, SdkStreamRequest):
|
3893
|
+
body = request.get_file_stream()
|
3894
|
+
|
3895
|
+
response_headers = []
|
3896
|
+
|
3897
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3898
|
+
['application/json'])
|
3899
|
+
|
3900
|
+
auth_settings = []
|
3901
|
+
|
3902
|
+
http_info["cname"] = cname
|
3903
|
+
http_info["collection_formats"] = collection_formats
|
3904
|
+
http_info["path_params"] = path_params
|
3905
|
+
http_info["query_params"] = query_params
|
3906
|
+
http_info["header_params"] = header_params
|
3907
|
+
http_info["post_params"] = form_params
|
3908
|
+
http_info["body"] = body
|
3909
|
+
http_info["response_headers"] = response_headers
|
3910
|
+
|
3911
|
+
return http_info
|
3912
|
+
|
3913
|
+
def list_rocket_instance_topics_async(self, request):
|
3914
|
+
r"""查询主题列表
|
3915
|
+
|
3916
|
+
该接口用于查询指定RocketMQ实例的Topic列表。
|
3917
|
+
|
3918
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3919
|
+
|
3920
|
+
|
3921
|
+
:param request: Request instance for ListRocketInstanceTopics
|
3922
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ListRocketInstanceTopicsRequest`
|
3923
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ListRocketInstanceTopicsResponse`
|
3924
|
+
"""
|
3925
|
+
http_info = self._list_rocket_instance_topics_http_info(request)
|
3926
|
+
return self._call_api(**http_info)
|
3927
|
+
|
3928
|
+
def list_rocket_instance_topics_async_invoker(self, request):
|
3929
|
+
http_info = self._list_rocket_instance_topics_http_info(request)
|
3930
|
+
return AsyncInvoker(self, http_info)
|
3931
|
+
|
3932
|
+
def _list_rocket_instance_topics_http_info(self, request):
|
3933
|
+
http_info = {
|
3934
|
+
"method": "GET",
|
3935
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/topics",
|
3936
|
+
"request_type": request.__class__.__name__,
|
3937
|
+
"response_type": "ListRocketInstanceTopicsResponse"
|
3938
|
+
}
|
3939
|
+
|
3940
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3941
|
+
|
3942
|
+
cname = None
|
3943
|
+
|
3944
|
+
collection_formats = {}
|
3945
|
+
|
3946
|
+
path_params = {}
|
3947
|
+
if 'instance_id' in local_var_params:
|
3948
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3949
|
+
|
3950
|
+
query_params = []
|
3951
|
+
if 'limit' in local_var_params:
|
3952
|
+
query_params.append(('limit', local_var_params['limit']))
|
3953
|
+
if 'offset' in local_var_params:
|
3954
|
+
query_params.append(('offset', local_var_params['offset']))
|
3955
|
+
|
3956
|
+
header_params = {}
|
3957
|
+
|
3958
|
+
form_params = {}
|
3959
|
+
|
3960
|
+
body = None
|
3961
|
+
if isinstance(request, SdkStreamRequest):
|
3962
|
+
body = request.get_file_stream()
|
3963
|
+
|
3964
|
+
response_headers = []
|
3965
|
+
|
3966
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3967
|
+
['application/json'])
|
3968
|
+
|
3969
|
+
auth_settings = []
|
3970
|
+
|
3971
|
+
http_info["cname"] = cname
|
3972
|
+
http_info["collection_formats"] = collection_formats
|
3973
|
+
http_info["path_params"] = path_params
|
3974
|
+
http_info["query_params"] = query_params
|
3975
|
+
http_info["header_params"] = header_params
|
3976
|
+
http_info["post_params"] = form_params
|
3977
|
+
http_info["body"] = body
|
3978
|
+
http_info["response_headers"] = response_headers
|
3979
|
+
|
3980
|
+
return http_info
|
3981
|
+
|
3982
|
+
def show_one_topic_async(self, request):
|
3983
|
+
r"""查询单个主题
|
3984
|
+
|
3985
|
+
查询单个主题。
|
3986
|
+
|
3987
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3988
|
+
|
3989
|
+
|
3990
|
+
:param request: Request instance for ShowOneTopic
|
3991
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowOneTopicRequest`
|
3992
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowOneTopicResponse`
|
3993
|
+
"""
|
3994
|
+
http_info = self._show_one_topic_http_info(request)
|
3995
|
+
return self._call_api(**http_info)
|
3996
|
+
|
3997
|
+
def show_one_topic_async_invoker(self, request):
|
3998
|
+
http_info = self._show_one_topic_http_info(request)
|
3999
|
+
return AsyncInvoker(self, http_info)
|
4000
|
+
|
4001
|
+
def _show_one_topic_http_info(self, request):
|
4002
|
+
http_info = {
|
4003
|
+
"method": "GET",
|
4004
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/topics/{topic}",
|
4005
|
+
"request_type": request.__class__.__name__,
|
4006
|
+
"response_type": "ShowOneTopicResponse"
|
4007
|
+
}
|
4008
|
+
|
4009
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4010
|
+
|
4011
|
+
cname = None
|
4012
|
+
|
4013
|
+
collection_formats = {}
|
4014
|
+
|
4015
|
+
path_params = {}
|
4016
|
+
if 'instance_id' in local_var_params:
|
4017
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
4018
|
+
if 'topic' in local_var_params:
|
4019
|
+
path_params['topic'] = local_var_params['topic']
|
4020
|
+
|
4021
|
+
query_params = []
|
4022
|
+
|
4023
|
+
header_params = {}
|
4024
|
+
|
4025
|
+
form_params = {}
|
4026
|
+
|
4027
|
+
body = None
|
4028
|
+
if isinstance(request, SdkStreamRequest):
|
4029
|
+
body = request.get_file_stream()
|
4030
|
+
|
4031
|
+
response_headers = []
|
4032
|
+
|
4033
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4034
|
+
['application/json'])
|
4035
|
+
|
4036
|
+
auth_settings = []
|
4037
|
+
|
4038
|
+
http_info["cname"] = cname
|
4039
|
+
http_info["collection_formats"] = collection_formats
|
4040
|
+
http_info["path_params"] = path_params
|
4041
|
+
http_info["query_params"] = query_params
|
4042
|
+
http_info["header_params"] = header_params
|
4043
|
+
http_info["post_params"] = form_params
|
4044
|
+
http_info["body"] = body
|
4045
|
+
http_info["response_headers"] = response_headers
|
4046
|
+
|
4047
|
+
return http_info
|
4048
|
+
|
4049
|
+
def show_topic_status_async(self, request):
|
4050
|
+
r"""查询主题的消息数
|
4051
|
+
|
4052
|
+
查询主题的消息数。
|
4053
|
+
|
4054
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4055
|
+
|
4056
|
+
|
4057
|
+
:param request: Request instance for ShowTopicStatus
|
4058
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowTopicStatusRequest`
|
4059
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowTopicStatusResponse`
|
4060
|
+
"""
|
4061
|
+
http_info = self._show_topic_status_http_info(request)
|
4062
|
+
return self._call_api(**http_info)
|
4063
|
+
|
4064
|
+
def show_topic_status_async_invoker(self, request):
|
4065
|
+
http_info = self._show_topic_status_http_info(request)
|
4066
|
+
return AsyncInvoker(self, http_info)
|
4067
|
+
|
4068
|
+
def _show_topic_status_http_info(self, request):
|
4069
|
+
http_info = {
|
4070
|
+
"method": "GET",
|
4071
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/topics/{topic}/status",
|
4072
|
+
"request_type": request.__class__.__name__,
|
4073
|
+
"response_type": "ShowTopicStatusResponse"
|
4074
|
+
}
|
4075
|
+
|
4076
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4077
|
+
|
4078
|
+
cname = None
|
4079
|
+
|
4080
|
+
collection_formats = {}
|
4081
|
+
|
4082
|
+
path_params = {}
|
4083
|
+
if 'instance_id' in local_var_params:
|
4084
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
4085
|
+
if 'topic' in local_var_params:
|
4086
|
+
path_params['topic'] = local_var_params['topic']
|
4087
|
+
|
4088
|
+
query_params = []
|
4089
|
+
|
4090
|
+
header_params = {}
|
4091
|
+
|
4092
|
+
form_params = {}
|
4093
|
+
|
4094
|
+
body = None
|
4095
|
+
if isinstance(request, SdkStreamRequest):
|
4096
|
+
body = request.get_file_stream()
|
4097
|
+
|
4098
|
+
response_headers = []
|
4099
|
+
|
4100
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4101
|
+
['application/json'])
|
4102
|
+
|
4103
|
+
auth_settings = []
|
4104
|
+
|
4105
|
+
http_info["cname"] = cname
|
4106
|
+
http_info["collection_formats"] = collection_formats
|
4107
|
+
http_info["path_params"] = path_params
|
4108
|
+
http_info["query_params"] = query_params
|
4109
|
+
http_info["header_params"] = header_params
|
4110
|
+
http_info["post_params"] = form_params
|
4111
|
+
http_info["body"] = body
|
4112
|
+
http_info["response_headers"] = response_headers
|
4113
|
+
|
4114
|
+
return http_info
|
4115
|
+
|
4116
|
+
def update_topic_async(self, request):
|
4117
|
+
r"""修改主题
|
4118
|
+
|
4119
|
+
修改主题。
|
4120
|
+
|
4121
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4122
|
+
|
4123
|
+
|
4124
|
+
:param request: Request instance for UpdateTopic
|
4125
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.UpdateTopicRequest`
|
4126
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.UpdateTopicResponse`
|
4127
|
+
"""
|
4128
|
+
http_info = self._update_topic_http_info(request)
|
4129
|
+
return self._call_api(**http_info)
|
4130
|
+
|
4131
|
+
def update_topic_async_invoker(self, request):
|
4132
|
+
http_info = self._update_topic_http_info(request)
|
4133
|
+
return AsyncInvoker(self, http_info)
|
4134
|
+
|
4135
|
+
def _update_topic_http_info(self, request):
|
4136
|
+
http_info = {
|
4137
|
+
"method": "PUT",
|
4138
|
+
"resource_path": "/v2/{project_id}/instances/{instance_id}/topics/{topic}",
|
4139
|
+
"request_type": request.__class__.__name__,
|
4140
|
+
"response_type": "UpdateTopicResponse"
|
4141
|
+
}
|
4142
|
+
|
4143
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4144
|
+
|
4145
|
+
cname = None
|
4146
|
+
|
4147
|
+
collection_formats = {}
|
4148
|
+
|
4149
|
+
path_params = {}
|
4150
|
+
if 'instance_id' in local_var_params:
|
4151
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
4152
|
+
if 'topic' in local_var_params:
|
4153
|
+
path_params['topic'] = local_var_params['topic']
|
4154
|
+
|
4155
|
+
query_params = []
|
4156
|
+
|
4157
|
+
header_params = {}
|
4158
|
+
|
4159
|
+
form_params = {}
|
4160
|
+
|
4161
|
+
body = None
|
4162
|
+
if 'body' in local_var_params:
|
4163
|
+
body = local_var_params['body']
|
4164
|
+
if isinstance(request, SdkStreamRequest):
|
4165
|
+
body = request.get_file_stream()
|
4166
|
+
|
4167
|
+
response_headers = []
|
4168
|
+
|
4169
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4170
|
+
['application/json'])
|
4171
|
+
|
4172
|
+
auth_settings = []
|
4173
|
+
|
4174
|
+
http_info["cname"] = cname
|
4175
|
+
http_info["collection_formats"] = collection_formats
|
4176
|
+
http_info["path_params"] = path_params
|
4177
|
+
http_info["query_params"] = query_params
|
4178
|
+
http_info["header_params"] = header_params
|
4179
|
+
http_info["post_params"] = form_params
|
4180
|
+
http_info["body"] = body
|
4181
|
+
http_info["response_headers"] = response_headers
|
4182
|
+
|
4183
|
+
return http_info
|
4184
|
+
|
4185
|
+
def _call_api(self, **kwargs):
|
4186
|
+
try:
|
4187
|
+
kwargs["async_request"] = True
|
4188
|
+
return self.do_http_request(**kwargs)
|
4189
|
+
except TypeError:
|
4190
|
+
import inspect
|
4191
|
+
params = inspect.signature(self.do_http_request).parameters
|
4192
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
4193
|
+
return self.do_http_request(**http_info)
|
4194
|
+
|
4195
|
+
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
4196
|
+
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
4197
|
+
collection_formats=None, request_type=None):
|
4198
|
+
"""Makes the HTTP request and returns deserialized data.
|
4199
|
+
|
4200
|
+
:param resource_path: Path to method endpoint.
|
4201
|
+
:param method: Method to call.
|
4202
|
+
:param path_params: Path parameters in the url.
|
4203
|
+
:param query_params: Query parameters in the url.
|
4204
|
+
:param header_params: Header parameters to be
|
4205
|
+
placed in the request header.
|
4206
|
+
:param body: Request body.
|
4207
|
+
:param post_params: Request post form parameters,
|
4208
|
+
for `application/x-www-form-urlencoded`, `multipart/form-data`.
|
4209
|
+
:param cname: Used for obs endpoint.
|
4210
|
+
:param auth_settings: Auth Settings names for the request.
|
4211
|
+
:param response_type: Response data type.
|
4212
|
+
:param response_headers: Header should be added to response data.
|
4213
|
+
:param collection_formats: dict of collection formats for path, query,
|
4214
|
+
header, and post parameters.
|
4215
|
+
:param request_type: Request data type.
|
4216
|
+
:return:
|
4217
|
+
Return the response directly.
|
4218
|
+
"""
|
4219
|
+
return self.do_http_request(
|
4220
|
+
method=method,
|
4221
|
+
resource_path=resource_path,
|
4222
|
+
path_params=path_params,
|
4223
|
+
query_params=query_params,
|
4224
|
+
header_params=header_params,
|
4225
|
+
body=body,
|
4226
|
+
post_params=post_params,
|
4227
|
+
cname=cname,
|
4228
|
+
response_type=response_type,
|
4229
|
+
response_headers=response_headers,
|
4230
|
+
collection_formats=collection_formats,
|
4231
|
+
request_type=request_type,
|
4232
|
+
async_request=True)
|