huaweicloudsdkrocketmq 3.1.152__py2.py3-none-any.whl → 3.1.153__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 +3 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +3 -0
- huaweicloudsdkrocketmq/v2/model/node_context_entity.py +231 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_nodes_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_nodes_response.py +203 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +71 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +71 -0
- {huaweicloudsdkrocketmq-3.1.152.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.152.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/RECORD +12 -9
- {huaweicloudsdkrocketmq-3.1.152.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.152.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.152.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/top_level.txt +0 -0
@@ -123,6 +123,7 @@ from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_topic_config import Mig
|
|
123
123
|
from huaweicloudsdkrocketmq.v2.model.modify_config_req import ModifyConfigReq
|
124
124
|
from huaweicloudsdkrocketmq.v2.model.modify_instance_ssl_config_request import ModifyInstanceSslConfigRequest
|
125
125
|
from huaweicloudsdkrocketmq.v2.model.modify_instance_ssl_config_response import ModifyInstanceSslConfigResponse
|
126
|
+
from huaweicloudsdkrocketmq.v2.model.node_context_entity import NodeContextEntity
|
126
127
|
from huaweicloudsdkrocketmq.v2.model.plain_ssl_switch_rep import PlainSSLSwitchRep
|
127
128
|
from huaweicloudsdkrocketmq.v2.model.product_entity import ProductEntity
|
128
129
|
from huaweicloudsdkrocketmq.v2.model.queue import Queue
|
@@ -160,6 +161,8 @@ from huaweicloudsdkrocketmq.v2.model.show_engine_instance_extend_product_info_re
|
|
160
161
|
from huaweicloudsdkrocketmq.v2.model.show_engine_instance_extend_product_info_response import ShowEngineInstanceExtendProductInfoResponse
|
161
162
|
from huaweicloudsdkrocketmq.v2.model.show_group_request import ShowGroupRequest
|
162
163
|
from huaweicloudsdkrocketmq.v2.model.show_group_response import ShowGroupResponse
|
164
|
+
from huaweicloudsdkrocketmq.v2.model.show_instance_nodes_request import ShowInstanceNodesRequest
|
165
|
+
from huaweicloudsdkrocketmq.v2.model.show_instance_nodes_response import ShowInstanceNodesResponse
|
163
166
|
from huaweicloudsdkrocketmq.v2.model.show_instance_request import ShowInstanceRequest
|
164
167
|
from huaweicloudsdkrocketmq.v2.model.show_instance_response import ShowInstanceResponse
|
165
168
|
from huaweicloudsdkrocketmq.v2.model.show_one_topic_request import ShowOneTopicRequest
|
@@ -121,6 +121,7 @@ from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_topic_config import Mig
|
|
121
121
|
from huaweicloudsdkrocketmq.v2.model.modify_config_req import ModifyConfigReq
|
122
122
|
from huaweicloudsdkrocketmq.v2.model.modify_instance_ssl_config_request import ModifyInstanceSslConfigRequest
|
123
123
|
from huaweicloudsdkrocketmq.v2.model.modify_instance_ssl_config_response import ModifyInstanceSslConfigResponse
|
124
|
+
from huaweicloudsdkrocketmq.v2.model.node_context_entity import NodeContextEntity
|
124
125
|
from huaweicloudsdkrocketmq.v2.model.plain_ssl_switch_rep import PlainSSLSwitchRep
|
125
126
|
from huaweicloudsdkrocketmq.v2.model.product_entity import ProductEntity
|
126
127
|
from huaweicloudsdkrocketmq.v2.model.queue import Queue
|
@@ -158,6 +159,8 @@ from huaweicloudsdkrocketmq.v2.model.show_engine_instance_extend_product_info_re
|
|
158
159
|
from huaweicloudsdkrocketmq.v2.model.show_engine_instance_extend_product_info_response import ShowEngineInstanceExtendProductInfoResponse
|
159
160
|
from huaweicloudsdkrocketmq.v2.model.show_group_request import ShowGroupRequest
|
160
161
|
from huaweicloudsdkrocketmq.v2.model.show_group_response import ShowGroupResponse
|
162
|
+
from huaweicloudsdkrocketmq.v2.model.show_instance_nodes_request import ShowInstanceNodesRequest
|
163
|
+
from huaweicloudsdkrocketmq.v2.model.show_instance_nodes_response import ShowInstanceNodesResponse
|
161
164
|
from huaweicloudsdkrocketmq.v2.model.show_instance_request import ShowInstanceRequest
|
162
165
|
from huaweicloudsdkrocketmq.v2.model.show_instance_response import ShowInstanceResponse
|
163
166
|
from huaweicloudsdkrocketmq.v2.model.show_one_topic_request import ShowOneTopicRequest
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class NodeContextEntity:
|
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
|
+
'id': 'str',
|
21
|
+
'broker_name': 'str',
|
22
|
+
'broker_id': 'int',
|
23
|
+
'address': 'str',
|
24
|
+
'public_address': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'id': 'id',
|
29
|
+
'broker_name': 'broker_name',
|
30
|
+
'broker_id': 'broker_id',
|
31
|
+
'address': 'address',
|
32
|
+
'public_address': 'public_address'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, id=None, broker_name=None, broker_id=None, address=None, public_address=None):
|
36
|
+
r"""NodeContextEntity
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param id: ID
|
41
|
+
:type id: str
|
42
|
+
:param broker_name: broker名称
|
43
|
+
:type broker_name: str
|
44
|
+
:param broker_id: broker的ID
|
45
|
+
:type broker_id: int
|
46
|
+
:param address: 地址
|
47
|
+
:type address: str
|
48
|
+
:param public_address: 公网地址
|
49
|
+
:type public_address: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._id = None
|
55
|
+
self._broker_name = None
|
56
|
+
self._broker_id = None
|
57
|
+
self._address = None
|
58
|
+
self._public_address = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if id is not None:
|
62
|
+
self.id = id
|
63
|
+
if broker_name is not None:
|
64
|
+
self.broker_name = broker_name
|
65
|
+
if broker_id is not None:
|
66
|
+
self.broker_id = broker_id
|
67
|
+
if address is not None:
|
68
|
+
self.address = address
|
69
|
+
if public_address is not None:
|
70
|
+
self.public_address = public_address
|
71
|
+
|
72
|
+
@property
|
73
|
+
def id(self):
|
74
|
+
r"""Gets the id of this NodeContextEntity.
|
75
|
+
|
76
|
+
ID
|
77
|
+
|
78
|
+
:return: The id of this NodeContextEntity.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._id
|
82
|
+
|
83
|
+
@id.setter
|
84
|
+
def id(self, id):
|
85
|
+
r"""Sets the id of this NodeContextEntity.
|
86
|
+
|
87
|
+
ID
|
88
|
+
|
89
|
+
:param id: The id of this NodeContextEntity.
|
90
|
+
:type id: str
|
91
|
+
"""
|
92
|
+
self._id = id
|
93
|
+
|
94
|
+
@property
|
95
|
+
def broker_name(self):
|
96
|
+
r"""Gets the broker_name of this NodeContextEntity.
|
97
|
+
|
98
|
+
broker名称
|
99
|
+
|
100
|
+
:return: The broker_name of this NodeContextEntity.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._broker_name
|
104
|
+
|
105
|
+
@broker_name.setter
|
106
|
+
def broker_name(self, broker_name):
|
107
|
+
r"""Sets the broker_name of this NodeContextEntity.
|
108
|
+
|
109
|
+
broker名称
|
110
|
+
|
111
|
+
:param broker_name: The broker_name of this NodeContextEntity.
|
112
|
+
:type broker_name: str
|
113
|
+
"""
|
114
|
+
self._broker_name = broker_name
|
115
|
+
|
116
|
+
@property
|
117
|
+
def broker_id(self):
|
118
|
+
r"""Gets the broker_id of this NodeContextEntity.
|
119
|
+
|
120
|
+
broker的ID
|
121
|
+
|
122
|
+
:return: The broker_id of this NodeContextEntity.
|
123
|
+
:rtype: int
|
124
|
+
"""
|
125
|
+
return self._broker_id
|
126
|
+
|
127
|
+
@broker_id.setter
|
128
|
+
def broker_id(self, broker_id):
|
129
|
+
r"""Sets the broker_id of this NodeContextEntity.
|
130
|
+
|
131
|
+
broker的ID
|
132
|
+
|
133
|
+
:param broker_id: The broker_id of this NodeContextEntity.
|
134
|
+
:type broker_id: int
|
135
|
+
"""
|
136
|
+
self._broker_id = broker_id
|
137
|
+
|
138
|
+
@property
|
139
|
+
def address(self):
|
140
|
+
r"""Gets the address of this NodeContextEntity.
|
141
|
+
|
142
|
+
地址
|
143
|
+
|
144
|
+
:return: The address of this NodeContextEntity.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._address
|
148
|
+
|
149
|
+
@address.setter
|
150
|
+
def address(self, address):
|
151
|
+
r"""Sets the address of this NodeContextEntity.
|
152
|
+
|
153
|
+
地址
|
154
|
+
|
155
|
+
:param address: The address of this NodeContextEntity.
|
156
|
+
:type address: str
|
157
|
+
"""
|
158
|
+
self._address = address
|
159
|
+
|
160
|
+
@property
|
161
|
+
def public_address(self):
|
162
|
+
r"""Gets the public_address of this NodeContextEntity.
|
163
|
+
|
164
|
+
公网地址
|
165
|
+
|
166
|
+
:return: The public_address of this NodeContextEntity.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._public_address
|
170
|
+
|
171
|
+
@public_address.setter
|
172
|
+
def public_address(self, public_address):
|
173
|
+
r"""Sets the public_address of this NodeContextEntity.
|
174
|
+
|
175
|
+
公网地址
|
176
|
+
|
177
|
+
:param public_address: The public_address of this NodeContextEntity.
|
178
|
+
:type public_address: str
|
179
|
+
"""
|
180
|
+
self._public_address = public_address
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, NodeContextEntity):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|
@@ -0,0 +1,200 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowInstanceNodesRequest:
|
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
|
+
'engine': 'str',
|
21
|
+
'instance_id': 'str',
|
22
|
+
'limit': 'int',
|
23
|
+
'offset': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'engine': 'engine',
|
28
|
+
'instance_id': 'instance_id',
|
29
|
+
'limit': 'limit',
|
30
|
+
'offset': 'offset'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, engine=None, instance_id=None, limit=None, offset=None):
|
34
|
+
r"""ShowInstanceNodesRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param engine: 消息引擎类型。
|
39
|
+
:type engine: str
|
40
|
+
:param instance_id: 实例id。
|
41
|
+
:type instance_id: str
|
42
|
+
:param limit: 查询数量。
|
43
|
+
:type limit: int
|
44
|
+
:param offset: 偏移量,表示从此偏移量开始查询,offset大于等于0。
|
45
|
+
:type offset: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._engine = None
|
51
|
+
self._instance_id = None
|
52
|
+
self._limit = None
|
53
|
+
self._offset = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.engine = engine
|
57
|
+
self.instance_id = instance_id
|
58
|
+
if limit is not None:
|
59
|
+
self.limit = limit
|
60
|
+
if offset is not None:
|
61
|
+
self.offset = offset
|
62
|
+
|
63
|
+
@property
|
64
|
+
def engine(self):
|
65
|
+
r"""Gets the engine of this ShowInstanceNodesRequest.
|
66
|
+
|
67
|
+
消息引擎类型。
|
68
|
+
|
69
|
+
:return: The engine of this ShowInstanceNodesRequest.
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._engine
|
73
|
+
|
74
|
+
@engine.setter
|
75
|
+
def engine(self, engine):
|
76
|
+
r"""Sets the engine of this ShowInstanceNodesRequest.
|
77
|
+
|
78
|
+
消息引擎类型。
|
79
|
+
|
80
|
+
:param engine: The engine of this ShowInstanceNodesRequest.
|
81
|
+
:type engine: str
|
82
|
+
"""
|
83
|
+
self._engine = engine
|
84
|
+
|
85
|
+
@property
|
86
|
+
def instance_id(self):
|
87
|
+
r"""Gets the instance_id of this ShowInstanceNodesRequest.
|
88
|
+
|
89
|
+
实例id。
|
90
|
+
|
91
|
+
:return: The instance_id of this ShowInstanceNodesRequest.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._instance_id
|
95
|
+
|
96
|
+
@instance_id.setter
|
97
|
+
def instance_id(self, instance_id):
|
98
|
+
r"""Sets the instance_id of this ShowInstanceNodesRequest.
|
99
|
+
|
100
|
+
实例id。
|
101
|
+
|
102
|
+
:param instance_id: The instance_id of this ShowInstanceNodesRequest.
|
103
|
+
:type instance_id: str
|
104
|
+
"""
|
105
|
+
self._instance_id = instance_id
|
106
|
+
|
107
|
+
@property
|
108
|
+
def limit(self):
|
109
|
+
r"""Gets the limit of this ShowInstanceNodesRequest.
|
110
|
+
|
111
|
+
查询数量。
|
112
|
+
|
113
|
+
:return: The limit of this ShowInstanceNodesRequest.
|
114
|
+
:rtype: int
|
115
|
+
"""
|
116
|
+
return self._limit
|
117
|
+
|
118
|
+
@limit.setter
|
119
|
+
def limit(self, limit):
|
120
|
+
r"""Sets the limit of this ShowInstanceNodesRequest.
|
121
|
+
|
122
|
+
查询数量。
|
123
|
+
|
124
|
+
:param limit: The limit of this ShowInstanceNodesRequest.
|
125
|
+
:type limit: int
|
126
|
+
"""
|
127
|
+
self._limit = limit
|
128
|
+
|
129
|
+
@property
|
130
|
+
def offset(self):
|
131
|
+
r"""Gets the offset of this ShowInstanceNodesRequest.
|
132
|
+
|
133
|
+
偏移量,表示从此偏移量开始查询,offset大于等于0。
|
134
|
+
|
135
|
+
:return: The offset of this ShowInstanceNodesRequest.
|
136
|
+
:rtype: int
|
137
|
+
"""
|
138
|
+
return self._offset
|
139
|
+
|
140
|
+
@offset.setter
|
141
|
+
def offset(self, offset):
|
142
|
+
r"""Sets the offset of this ShowInstanceNodesRequest.
|
143
|
+
|
144
|
+
偏移量,表示从此偏移量开始查询,offset大于等于0。
|
145
|
+
|
146
|
+
:param offset: The offset of this ShowInstanceNodesRequest.
|
147
|
+
:type offset: int
|
148
|
+
"""
|
149
|
+
self._offset = offset
|
150
|
+
|
151
|
+
def to_dict(self):
|
152
|
+
"""Returns the model properties as a dict"""
|
153
|
+
result = {}
|
154
|
+
|
155
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
156
|
+
value = getattr(self, attr)
|
157
|
+
if isinstance(value, list):
|
158
|
+
result[attr] = list(map(
|
159
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
160
|
+
value
|
161
|
+
))
|
162
|
+
elif hasattr(value, "to_dict"):
|
163
|
+
result[attr] = value.to_dict()
|
164
|
+
elif isinstance(value, dict):
|
165
|
+
result[attr] = dict(map(
|
166
|
+
lambda item: (item[0], item[1].to_dict())
|
167
|
+
if hasattr(item[1], "to_dict") else item,
|
168
|
+
value.items()
|
169
|
+
))
|
170
|
+
else:
|
171
|
+
if attr in self.sensitive_list:
|
172
|
+
result[attr] = "****"
|
173
|
+
else:
|
174
|
+
result[attr] = value
|
175
|
+
|
176
|
+
return result
|
177
|
+
|
178
|
+
def to_str(self):
|
179
|
+
"""Returns the string representation of the model"""
|
180
|
+
import simplejson as json
|
181
|
+
if six.PY2:
|
182
|
+
import sys
|
183
|
+
reload(sys)
|
184
|
+
sys.setdefaultencoding("utf-8")
|
185
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
186
|
+
|
187
|
+
def __repr__(self):
|
188
|
+
"""For `print`"""
|
189
|
+
return self.to_str()
|
190
|
+
|
191
|
+
def __eq__(self, other):
|
192
|
+
"""Returns true if both objects are equal"""
|
193
|
+
if not isinstance(other, ShowInstanceNodesRequest):
|
194
|
+
return False
|
195
|
+
|
196
|
+
return self.__dict__ == other.__dict__
|
197
|
+
|
198
|
+
def __ne__(self, other):
|
199
|
+
"""Returns true if both objects are not equal"""
|
200
|
+
return not self == other
|
@@ -0,0 +1,203 @@
|
|
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 ShowInstanceNodesResponse(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
|
+
'next_offset': 'int',
|
22
|
+
'previous_offset': 'int',
|
23
|
+
'nodes': 'list[NodeContextEntity]',
|
24
|
+
'total': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'next_offset': 'next_offset',
|
29
|
+
'previous_offset': 'previous_offset',
|
30
|
+
'nodes': 'nodes',
|
31
|
+
'total': 'total'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, next_offset=None, previous_offset=None, nodes=None, total=None):
|
35
|
+
r"""ShowInstanceNodesResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param next_offset: 下个分页的offset。
|
40
|
+
:type next_offset: int
|
41
|
+
:param previous_offset: 上个分页的offset。
|
42
|
+
:type previous_offset: int
|
43
|
+
:param nodes: 后台任务ID
|
44
|
+
:type nodes: list[:class:`huaweicloudsdkrocketmq.v2.NodeContextEntity`]
|
45
|
+
:param total: 总个数
|
46
|
+
:type total: int
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ShowInstanceNodesResponse, self).__init__()
|
50
|
+
|
51
|
+
self._next_offset = None
|
52
|
+
self._previous_offset = None
|
53
|
+
self._nodes = None
|
54
|
+
self._total = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if next_offset is not None:
|
58
|
+
self.next_offset = next_offset
|
59
|
+
if previous_offset is not None:
|
60
|
+
self.previous_offset = previous_offset
|
61
|
+
if nodes is not None:
|
62
|
+
self.nodes = nodes
|
63
|
+
if total is not None:
|
64
|
+
self.total = total
|
65
|
+
|
66
|
+
@property
|
67
|
+
def next_offset(self):
|
68
|
+
r"""Gets the next_offset of this ShowInstanceNodesResponse.
|
69
|
+
|
70
|
+
下个分页的offset。
|
71
|
+
|
72
|
+
:return: The next_offset of this ShowInstanceNodesResponse.
|
73
|
+
:rtype: int
|
74
|
+
"""
|
75
|
+
return self._next_offset
|
76
|
+
|
77
|
+
@next_offset.setter
|
78
|
+
def next_offset(self, next_offset):
|
79
|
+
r"""Sets the next_offset of this ShowInstanceNodesResponse.
|
80
|
+
|
81
|
+
下个分页的offset。
|
82
|
+
|
83
|
+
:param next_offset: The next_offset of this ShowInstanceNodesResponse.
|
84
|
+
:type next_offset: int
|
85
|
+
"""
|
86
|
+
self._next_offset = next_offset
|
87
|
+
|
88
|
+
@property
|
89
|
+
def previous_offset(self):
|
90
|
+
r"""Gets the previous_offset of this ShowInstanceNodesResponse.
|
91
|
+
|
92
|
+
上个分页的offset。
|
93
|
+
|
94
|
+
:return: The previous_offset of this ShowInstanceNodesResponse.
|
95
|
+
:rtype: int
|
96
|
+
"""
|
97
|
+
return self._previous_offset
|
98
|
+
|
99
|
+
@previous_offset.setter
|
100
|
+
def previous_offset(self, previous_offset):
|
101
|
+
r"""Sets the previous_offset of this ShowInstanceNodesResponse.
|
102
|
+
|
103
|
+
上个分页的offset。
|
104
|
+
|
105
|
+
:param previous_offset: The previous_offset of this ShowInstanceNodesResponse.
|
106
|
+
:type previous_offset: int
|
107
|
+
"""
|
108
|
+
self._previous_offset = previous_offset
|
109
|
+
|
110
|
+
@property
|
111
|
+
def nodes(self):
|
112
|
+
r"""Gets the nodes of this ShowInstanceNodesResponse.
|
113
|
+
|
114
|
+
后台任务ID
|
115
|
+
|
116
|
+
:return: The nodes of this ShowInstanceNodesResponse.
|
117
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.NodeContextEntity`]
|
118
|
+
"""
|
119
|
+
return self._nodes
|
120
|
+
|
121
|
+
@nodes.setter
|
122
|
+
def nodes(self, nodes):
|
123
|
+
r"""Sets the nodes of this ShowInstanceNodesResponse.
|
124
|
+
|
125
|
+
后台任务ID
|
126
|
+
|
127
|
+
:param nodes: The nodes of this ShowInstanceNodesResponse.
|
128
|
+
:type nodes: list[:class:`huaweicloudsdkrocketmq.v2.NodeContextEntity`]
|
129
|
+
"""
|
130
|
+
self._nodes = nodes
|
131
|
+
|
132
|
+
@property
|
133
|
+
def total(self):
|
134
|
+
r"""Gets the total of this ShowInstanceNodesResponse.
|
135
|
+
|
136
|
+
总个数
|
137
|
+
|
138
|
+
:return: The total of this ShowInstanceNodesResponse.
|
139
|
+
:rtype: int
|
140
|
+
"""
|
141
|
+
return self._total
|
142
|
+
|
143
|
+
@total.setter
|
144
|
+
def total(self, total):
|
145
|
+
r"""Sets the total of this ShowInstanceNodesResponse.
|
146
|
+
|
147
|
+
总个数
|
148
|
+
|
149
|
+
:param total: The total of this ShowInstanceNodesResponse.
|
150
|
+
:type total: int
|
151
|
+
"""
|
152
|
+
self._total = total
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, ShowInstanceNodesResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|
@@ -2956,6 +2956,77 @@ class RocketMQAsyncClient(Client):
|
|
2956
2956
|
|
2957
2957
|
return http_info
|
2958
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
|
+
|
2959
3030
|
def show_quotas_async(self, request):
|
2960
3031
|
r"""查看租户配额
|
2961
3032
|
|
@@ -2956,6 +2956,77 @@ class RocketMQClient(Client):
|
|
2956
2956
|
|
2957
2957
|
return http_info
|
2958
2958
|
|
2959
|
+
def show_instance_nodes(self, request):
|
2960
|
+
r"""查询实例节点
|
2961
|
+
|
2962
|
+
查询实例节点信息。
|
2963
|
+
|
2964
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2965
|
+
|
2966
|
+
:param request: Request instance for ShowInstanceNodes
|
2967
|
+
:type request: :class:`huaweicloudsdkrocketmq.v2.ShowInstanceNodesRequest`
|
2968
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ShowInstanceNodesResponse`
|
2969
|
+
"""
|
2970
|
+
http_info = self._show_instance_nodes_http_info(request)
|
2971
|
+
return self._call_api(**http_info)
|
2972
|
+
|
2973
|
+
def show_instance_nodes_invoker(self, request):
|
2974
|
+
http_info = self._show_instance_nodes_http_info(request)
|
2975
|
+
return SyncInvoker(self, http_info)
|
2976
|
+
|
2977
|
+
@classmethod
|
2978
|
+
def _show_instance_nodes_http_info(cls, 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
|
+
|
2959
3030
|
def show_quotas(self, request):
|
2960
3031
|
r"""查看租户配额
|
2961
3032
|
|
{huaweicloudsdkrocketmq-3.1.152.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkrocketmq
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.153
|
4
4
|
Summary: RocketMQ
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.153
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
{huaweicloudsdkrocketmq-3.1.152.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/RECORD
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
huaweicloudsdkrocketmq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
huaweicloudsdkrocketmq/v2/__init__.py,sha256=
|
3
|
-
huaweicloudsdkrocketmq/v2/rocketmq_async_client.py,sha256=
|
4
|
-
huaweicloudsdkrocketmq/v2/rocketmq_client.py,sha256=
|
5
|
-
huaweicloudsdkrocketmq/v2/model/__init__.py,sha256=
|
2
|
+
huaweicloudsdkrocketmq/v2/__init__.py,sha256=MIEhZ2nE9invXifksQI6GalcKkqdL5NrUBMV-_fVdOY,19632
|
3
|
+
huaweicloudsdkrocketmq/v2/rocketmq_async_client.py,sha256=uce2h7UFgcas6S2twpL8zTqtuykqb7QumS6v-yIS3Hg,145452
|
4
|
+
huaweicloudsdkrocketmq/v2/rocketmq_client.py,sha256=c2FuC8gOewafgoVheyWR2xbRH9bxvqS0tdL_LbE1hy8,145467
|
5
|
+
huaweicloudsdkrocketmq/v2/model/__init__.py,sha256=NViLXHA0gmUKyh2PiyExcJAhCT4fCFlAvkmFtXBziLM,19516
|
6
6
|
huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_request.py,sha256=Mjez32DrvL6tDPy_EycVLnnuJhUx_g66j9RLFBVTjBo,4156
|
7
7
|
huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_response.py,sha256=8akswd1VwuxnRvENb39rHmYG8Ekv76vP0F8IzCxx5Z4,2504
|
8
8
|
huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_tag_req.py,sha256=u2QbkRiqjYOVISrI4tzyqA8dB0d6eABSQ0puNnaI_jo,4126
|
@@ -121,6 +121,7 @@ huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_topic_config.py,sha256=FGGDF
|
|
121
121
|
huaweicloudsdkrocketmq/v2/model/modify_config_req.py,sha256=COhWlwBr6W-2ibD4CTWawY6-17Tm4HLxdsFM0iYjc_g,3433
|
122
122
|
huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py,sha256=C3iwt7O_a_mIIkc5Yy4_rSuIpoE3ecVQK-hIWd4un34,5748
|
123
123
|
huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py,sha256=UoBrT_XaMgdLq2So1dCTZRhM3y5qVI3UBk8n-Xd5vJg,4054
|
124
|
+
huaweicloudsdkrocketmq/v2/model/node_context_entity.py,sha256=ZqcGVoJrEAWsCy-QDyFFkJCt3obHq7GxpUGmwM4rUTc,6093
|
124
125
|
huaweicloudsdkrocketmq/v2/model/plain_ssl_switch_rep.py,sha256=kajCDmtGELYRfrJVFbXLLY2hEcz34SQR2GigiYQ-QPQ,3072
|
125
126
|
huaweicloudsdkrocketmq/v2/model/product_entity.py,sha256=DiG6M5adw1Jt_jcWMsRjZHta66xAfuUGppy1g9in6ZQ,14287
|
126
127
|
huaweicloudsdkrocketmq/v2/model/queue.py,sha256=eFcqz3FsbfS8ItWAGET_2A87Z5QjUToD2kpNuPYDkqY,7076
|
@@ -158,6 +159,8 @@ huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_request
|
|
158
159
|
huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py,sha256=WTgkmgKLAgAbF9ojnLCDUzA_XmpYRdh1K-rqvWisG10,8252
|
159
160
|
huaweicloudsdkrocketmq/v2/model/show_group_request.py,sha256=MAV6_iAZluMasgxl2Ih13vSYSIsUJIEEakdNpOIXxdE,3746
|
160
161
|
huaweicloudsdkrocketmq/v2/model/show_group_response.py,sha256=i-xMC4cFF-c0SSX3CKqo2M7eIMA6XPBl0CezKfhDUWU,9477
|
162
|
+
huaweicloudsdkrocketmq/v2/model/show_instance_nodes_request.py,sha256=pzExSywTCdufeVHL7QwbxGy5Zz45-s_zMC0joLKTaKo,5495
|
163
|
+
huaweicloudsdkrocketmq/v2/model/show_instance_nodes_response.py,sha256=Tj-MnoMBq4StbhLUoRkBqjc5_f-mtJ-rq7LXFOGjmRo,5938
|
161
164
|
huaweicloudsdkrocketmq/v2/model/show_instance_request.py,sha256=t-OrI_dwPdvVf5qRQHe0hZo8BYehR2fOvb2rnsecPMQ,3739
|
162
165
|
huaweicloudsdkrocketmq/v2/model/show_instance_response.py,sha256=CoXXMxKwUZYIixedzLRyNEPScN8JV5MmcaDS2g-Pi4Y,75881
|
163
166
|
huaweicloudsdkrocketmq/v2/model/show_one_topic_request.py,sha256=LNrtO47hy9_-UNW4dEDlTzlnQ_lpApDrafyde3SO688,3770
|
@@ -202,8 +205,8 @@ huaweicloudsdkrocketmq/v2/model/validate_consumed_message_request.py,sha256=5uFH
|
|
202
205
|
huaweicloudsdkrocketmq/v2/model/validate_consumed_message_response.py,sha256=OZGb6ATbf5BMDRuRXdyfVQ9sxEqjvHDATCoSXng-ww0,3699
|
203
206
|
huaweicloudsdkrocketmq/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
204
207
|
huaweicloudsdkrocketmq/v2/region/rocketmq_region.py,sha256=hbsLPzQiNXEFaAtfMIPmXPZ4BMfrVkFc6timNZHZe4M,5175
|
205
|
-
huaweicloudsdkrocketmq-3.1.
|
206
|
-
huaweicloudsdkrocketmq-3.1.
|
207
|
-
huaweicloudsdkrocketmq-3.1.
|
208
|
-
huaweicloudsdkrocketmq-3.1.
|
209
|
-
huaweicloudsdkrocketmq-3.1.
|
208
|
+
huaweicloudsdkrocketmq-3.1.153.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
209
|
+
huaweicloudsdkrocketmq-3.1.153.dist-info/METADATA,sha256=USDU3XVdTDK-6MLMo2pSciLRxQ19OS8kdpfIOMH8dsI,1150
|
210
|
+
huaweicloudsdkrocketmq-3.1.153.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
|
211
|
+
huaweicloudsdkrocketmq-3.1.153.dist-info/top_level.txt,sha256=eCwsKgy2VRwJ1iDx8iFpYijz9dNun4HRSYfo1QXPEAU,23
|
212
|
+
huaweicloudsdkrocketmq-3.1.153.dist-info/RECORD,,
|
{huaweicloudsdkrocketmq-3.1.152.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|
{huaweicloudsdkrocketmq-3.1.152.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/top_level.txt
RENAMED
File without changes
|