huaweicloudsdkrocketmq 3.1.69__py2.py3-none-any.whl → 3.1.71__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkrocketmq/v2/__init__.py +16 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +16 -0
- huaweicloudsdkrocketmq/v2/model/consumer_group.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/modify_config_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/resize_engine_instance_req.py +201 -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/show_engine_instance_extend_product_info_request.py +171 -0
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py +3 -3
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/tag_entity.py +6 -6
- huaweicloudsdkrocketmq/v2/model/topic.py +3 -3
- huaweicloudsdkrocketmq/v2/model/update_consumer_group.py +6 -6
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_response.py +85 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +272 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +272 -0
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/RECORD +35 -19
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/WHEEL +1 -1
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateRocketMqConfigsRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'instance_id': 'str',
|
21
|
+
'body': 'ModifyConfigReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'instance_id': 'instance_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, instance_id=None, body=None):
|
30
|
+
"""UpdateRocketMqConfigsRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param instance_id: 实例ID。
|
35
|
+
:type instance_id: str
|
36
|
+
:param body: Body of the UpdateRocketMqConfigsRequest
|
37
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.ModifyConfigReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._instance_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.instance_id = instance_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def instance_id(self):
|
52
|
+
"""Gets the instance_id of this UpdateRocketMqConfigsRequest.
|
53
|
+
|
54
|
+
实例ID。
|
55
|
+
|
56
|
+
:return: The instance_id of this UpdateRocketMqConfigsRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._instance_id
|
60
|
+
|
61
|
+
@instance_id.setter
|
62
|
+
def instance_id(self, instance_id):
|
63
|
+
"""Sets the instance_id of this UpdateRocketMqConfigsRequest.
|
64
|
+
|
65
|
+
实例ID。
|
66
|
+
|
67
|
+
:param instance_id: The instance_id of this UpdateRocketMqConfigsRequest.
|
68
|
+
:type instance_id: str
|
69
|
+
"""
|
70
|
+
self._instance_id = instance_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
"""Gets the body of this UpdateRocketMqConfigsRequest.
|
75
|
+
|
76
|
+
:return: The body of this UpdateRocketMqConfigsRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ModifyConfigReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this UpdateRocketMqConfigsRequest.
|
84
|
+
|
85
|
+
:param body: The body of this UpdateRocketMqConfigsRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.ModifyConfigReq`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, UpdateRocketMqConfigsRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class UpdateRocketMqConfigsResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
"""UpdateRocketMqConfigsResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(UpdateRocketMqConfigsResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, UpdateRocketMqConfigsResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -1695,6 +1695,77 @@ class RocketMQAsyncClient(Client):
|
|
1695
1695
|
|
1696
1696
|
return http_info
|
1697
1697
|
|
1698
|
+
def resize_instance_async(self, request):
|
1699
|
+
"""实例规格变更
|
1700
|
+
|
1701
|
+
实例规格变更。
|
1702
|
+
|
1703
|
+
[**当前通过调用API,只支持按需实例进行实例规格变更。**](tag:hws,hws_hk,ctc)
|
1704
|
+
|
1705
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1706
|
+
|
1707
|
+
|
1708
|
+
:param request: Request instance for ResizeInstance
|
1709
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ResizeInstanceRequest`
|
1710
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ResizeInstanceResponse`
|
1711
|
+
"""
|
1712
|
+
http_info = self._resize_instance_http_info(request)
|
1713
|
+
return self._call_api(**http_info)
|
1714
|
+
|
1715
|
+
def resize_instance_async_invoker(self, request):
|
1716
|
+
http_info = self._resize_instance_http_info(request)
|
1717
|
+
return AsyncInvoker(self, http_info)
|
1718
|
+
|
1719
|
+
def _resize_instance_http_info(self, request):
|
1720
|
+
http_info = {
|
1721
|
+
"method": "POST",
|
1722
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/extend",
|
1723
|
+
"request_type": request.__class__.__name__,
|
1724
|
+
"response_type": "ResizeInstanceResponse"
|
1725
|
+
}
|
1726
|
+
|
1727
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1728
|
+
|
1729
|
+
cname = None
|
1730
|
+
|
1731
|
+
collection_formats = {}
|
1732
|
+
|
1733
|
+
path_params = {}
|
1734
|
+
if 'engine' in local_var_params:
|
1735
|
+
path_params['engine'] = local_var_params['engine']
|
1736
|
+
if 'instance_id' in local_var_params:
|
1737
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1738
|
+
|
1739
|
+
query_params = []
|
1740
|
+
|
1741
|
+
header_params = {}
|
1742
|
+
|
1743
|
+
form_params = {}
|
1744
|
+
|
1745
|
+
body = None
|
1746
|
+
if 'body' in local_var_params:
|
1747
|
+
body = local_var_params['body']
|
1748
|
+
if isinstance(request, SdkStreamRequest):
|
1749
|
+
body = request.get_file_stream()
|
1750
|
+
|
1751
|
+
response_headers = []
|
1752
|
+
|
1753
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1754
|
+
['application/json'])
|
1755
|
+
|
1756
|
+
auth_settings = []
|
1757
|
+
|
1758
|
+
http_info["cname"] = cname
|
1759
|
+
http_info["collection_formats"] = collection_formats
|
1760
|
+
http_info["path_params"] = path_params
|
1761
|
+
http_info["query_params"] = query_params
|
1762
|
+
http_info["header_params"] = header_params
|
1763
|
+
http_info["post_params"] = form_params
|
1764
|
+
http_info["body"] = body
|
1765
|
+
http_info["response_headers"] = response_headers
|
1766
|
+
|
1767
|
+
return http_info
|
1768
|
+
|
1698
1769
|
def send_dlq_message_async(self, request):
|
1699
1770
|
"""重发死信消息
|
1700
1771
|
|
@@ -1910,6 +1981,75 @@ class RocketMQAsyncClient(Client):
|
|
1910
1981
|
|
1911
1982
|
return http_info
|
1912
1983
|
|
1984
|
+
def show_engine_instance_extend_product_info_async(self, request):
|
1985
|
+
"""查询实例的扩容规格列表
|
1986
|
+
|
1987
|
+
查询实例的扩容规格列表。
|
1988
|
+
|
1989
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1990
|
+
|
1991
|
+
|
1992
|
+
:param request: Request instance for ShowEngineInstanceExtendProductInfo
|
1993
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowEngineInstanceExtendProductInfoRequest`
|
1994
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowEngineInstanceExtendProductInfoResponse`
|
1995
|
+
"""
|
1996
|
+
http_info = self._show_engine_instance_extend_product_info_http_info(request)
|
1997
|
+
return self._call_api(**http_info)
|
1998
|
+
|
1999
|
+
def show_engine_instance_extend_product_info_async_invoker(self, request):
|
2000
|
+
http_info = self._show_engine_instance_extend_product_info_http_info(request)
|
2001
|
+
return AsyncInvoker(self, http_info)
|
2002
|
+
|
2003
|
+
def _show_engine_instance_extend_product_info_http_info(self, request):
|
2004
|
+
http_info = {
|
2005
|
+
"method": "GET",
|
2006
|
+
"resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/extend",
|
2007
|
+
"request_type": request.__class__.__name__,
|
2008
|
+
"response_type": "ShowEngineInstanceExtendProductInfoResponse"
|
2009
|
+
}
|
2010
|
+
|
2011
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2012
|
+
|
2013
|
+
cname = None
|
2014
|
+
|
2015
|
+
collection_formats = {}
|
2016
|
+
|
2017
|
+
path_params = {}
|
2018
|
+
if 'engine' in local_var_params:
|
2019
|
+
path_params['engine'] = local_var_params['engine']
|
2020
|
+
if 'instance_id' in local_var_params:
|
2021
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2022
|
+
|
2023
|
+
query_params = []
|
2024
|
+
if 'type' in local_var_params:
|
2025
|
+
query_params.append(('type', local_var_params['type']))
|
2026
|
+
|
2027
|
+
header_params = {}
|
2028
|
+
|
2029
|
+
form_params = {}
|
2030
|
+
|
2031
|
+
body = None
|
2032
|
+
if isinstance(request, SdkStreamRequest):
|
2033
|
+
body = request.get_file_stream()
|
2034
|
+
|
2035
|
+
response_headers = []
|
2036
|
+
|
2037
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2038
|
+
['application/json'])
|
2039
|
+
|
2040
|
+
auth_settings = []
|
2041
|
+
|
2042
|
+
http_info["cname"] = cname
|
2043
|
+
http_info["collection_formats"] = collection_formats
|
2044
|
+
http_info["path_params"] = path_params
|
2045
|
+
http_info["query_params"] = query_params
|
2046
|
+
http_info["header_params"] = header_params
|
2047
|
+
http_info["post_params"] = form_params
|
2048
|
+
http_info["body"] = body
|
2049
|
+
http_info["response_headers"] = response_headers
|
2050
|
+
|
2051
|
+
return http_info
|
2052
|
+
|
1913
2053
|
def show_group_async(self, request):
|
1914
2054
|
"""查询指定消费组
|
1915
2055
|
|
@@ -2042,6 +2182,71 @@ class RocketMQAsyncClient(Client):
|
|
2042
2182
|
|
2043
2183
|
return http_info
|
2044
2184
|
|
2185
|
+
def show_rocket_mq_configs_async(self, request):
|
2186
|
+
"""查询RocketMQ配置
|
2187
|
+
|
2188
|
+
该接口用于查询RocketMQ配置,若成功则返回配置的相关信息。
|
2189
|
+
|
2190
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2191
|
+
|
2192
|
+
|
2193
|
+
:param request: Request instance for ShowRocketMqConfigs
|
2194
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowRocketMqConfigsRequest`
|
2195
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowRocketMqConfigsResponse`
|
2196
|
+
"""
|
2197
|
+
http_info = self._show_rocket_mq_configs_http_info(request)
|
2198
|
+
return self._call_api(**http_info)
|
2199
|
+
|
2200
|
+
def show_rocket_mq_configs_async_invoker(self, request):
|
2201
|
+
http_info = self._show_rocket_mq_configs_http_info(request)
|
2202
|
+
return AsyncInvoker(self, http_info)
|
2203
|
+
|
2204
|
+
def _show_rocket_mq_configs_http_info(self, request):
|
2205
|
+
http_info = {
|
2206
|
+
"method": "GET",
|
2207
|
+
"resource_path": "/v2/{project_id}/rocketmq/instances/{instance_id}/configs",
|
2208
|
+
"request_type": request.__class__.__name__,
|
2209
|
+
"response_type": "ShowRocketMqConfigsResponse"
|
2210
|
+
}
|
2211
|
+
|
2212
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2213
|
+
|
2214
|
+
cname = None
|
2215
|
+
|
2216
|
+
collection_formats = {}
|
2217
|
+
|
2218
|
+
path_params = {}
|
2219
|
+
if 'instance_id' in local_var_params:
|
2220
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2221
|
+
|
2222
|
+
query_params = []
|
2223
|
+
|
2224
|
+
header_params = {}
|
2225
|
+
|
2226
|
+
form_params = {}
|
2227
|
+
|
2228
|
+
body = None
|
2229
|
+
if isinstance(request, SdkStreamRequest):
|
2230
|
+
body = request.get_file_stream()
|
2231
|
+
|
2232
|
+
response_headers = []
|
2233
|
+
|
2234
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2235
|
+
['application/json'])
|
2236
|
+
|
2237
|
+
auth_settings = []
|
2238
|
+
|
2239
|
+
http_info["cname"] = cname
|
2240
|
+
http_info["collection_formats"] = collection_formats
|
2241
|
+
http_info["path_params"] = path_params
|
2242
|
+
http_info["query_params"] = query_params
|
2243
|
+
http_info["header_params"] = header_params
|
2244
|
+
http_info["post_params"] = form_params
|
2245
|
+
http_info["body"] = body
|
2246
|
+
http_info["response_headers"] = response_headers
|
2247
|
+
|
2248
|
+
return http_info
|
2249
|
+
|
2045
2250
|
def show_rocketmq_project_tags_async(self, request):
|
2046
2251
|
"""查询项目标签
|
2047
2252
|
|
@@ -2373,6 +2578,73 @@ class RocketMQAsyncClient(Client):
|
|
2373
2578
|
|
2374
2579
|
return http_info
|
2375
2580
|
|
2581
|
+
def update_rocket_mq_configs_async(self, request):
|
2582
|
+
"""修改RocketMQ配置
|
2583
|
+
|
2584
|
+
该接口用于修改RocketMQ配置。
|
2585
|
+
|
2586
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2587
|
+
|
2588
|
+
|
2589
|
+
:param request: Request instance for UpdateRocketMqConfigs
|
2590
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.UpdateRocketMqConfigsRequest`
|
2591
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.UpdateRocketMqConfigsResponse`
|
2592
|
+
"""
|
2593
|
+
http_info = self._update_rocket_mq_configs_http_info(request)
|
2594
|
+
return self._call_api(**http_info)
|
2595
|
+
|
2596
|
+
def update_rocket_mq_configs_async_invoker(self, request):
|
2597
|
+
http_info = self._update_rocket_mq_configs_http_info(request)
|
2598
|
+
return AsyncInvoker(self, http_info)
|
2599
|
+
|
2600
|
+
def _update_rocket_mq_configs_http_info(self, request):
|
2601
|
+
http_info = {
|
2602
|
+
"method": "PUT",
|
2603
|
+
"resource_path": "/v2/{project_id}/rocketmq/instances/{instance_id}/configs",
|
2604
|
+
"request_type": request.__class__.__name__,
|
2605
|
+
"response_type": "UpdateRocketMqConfigsResponse"
|
2606
|
+
}
|
2607
|
+
|
2608
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2609
|
+
|
2610
|
+
cname = None
|
2611
|
+
|
2612
|
+
collection_formats = {}
|
2613
|
+
|
2614
|
+
path_params = {}
|
2615
|
+
if 'instance_id' in local_var_params:
|
2616
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2617
|
+
|
2618
|
+
query_params = []
|
2619
|
+
|
2620
|
+
header_params = {}
|
2621
|
+
|
2622
|
+
form_params = {}
|
2623
|
+
|
2624
|
+
body = None
|
2625
|
+
if 'body' in local_var_params:
|
2626
|
+
body = local_var_params['body']
|
2627
|
+
if isinstance(request, SdkStreamRequest):
|
2628
|
+
body = request.get_file_stream()
|
2629
|
+
|
2630
|
+
response_headers = []
|
2631
|
+
|
2632
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2633
|
+
['application/json'])
|
2634
|
+
|
2635
|
+
auth_settings = []
|
2636
|
+
|
2637
|
+
http_info["cname"] = cname
|
2638
|
+
http_info["collection_formats"] = collection_formats
|
2639
|
+
http_info["path_params"] = path_params
|
2640
|
+
http_info["query_params"] = query_params
|
2641
|
+
http_info["header_params"] = header_params
|
2642
|
+
http_info["post_params"] = form_params
|
2643
|
+
http_info["body"] = body
|
2644
|
+
http_info["response_headers"] = response_headers
|
2645
|
+
|
2646
|
+
return http_info
|
2647
|
+
|
2376
2648
|
def update_user_async(self, request):
|
2377
2649
|
"""修改用户参数
|
2378
2650
|
|