huaweicloudsdkrocketmq 3.1.150__py2.py3-none-any.whl → 3.1.152__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. huaweicloudsdkrocketmq/v2/__init__.py +26 -2
  2. huaweicloudsdkrocketmq/v2/model/__init__.py +26 -2
  3. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_req.py +115 -0
  4. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_request.py +167 -0
  5. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_response.py +116 -0
  6. huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_request.py +167 -0
  7. huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_response.py +116 -0
  8. huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +88 -1
  9. huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +90 -3
  10. huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +3 -3
  11. huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
  12. huaweicloudsdkrocketmq/v2/model/{restart_instance_response.py → delete_background_task_request.py} +31 -63
  13. huaweicloudsdkrocketmq/v2/model/delete_background_task_response.py +85 -0
  14. huaweicloudsdkrocketmq/v2/model/delete_consumer_group_response.py +32 -1
  15. huaweicloudsdkrocketmq/v2/model/delete_topic_response.py +32 -1
  16. huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py +144 -0
  17. huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py +289 -0
  18. huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py +230 -0
  19. huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py +318 -0
  20. huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py +145 -0
  21. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py +200 -0
  22. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py +116 -0
  23. huaweicloudsdkrocketmq/v2/model/list_messages_request.py +30 -1
  24. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py +167 -0
  25. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py +145 -0
  26. huaweicloudsdkrocketmq/v2/model/{restart_instance_request.py → plain_ssl_switch_rep.py} +23 -50
  27. huaweicloudsdkrocketmq/v2/model/send_message_properties.py +144 -0
  28. huaweicloudsdkrocketmq/v2/model/send_message_request.py +167 -0
  29. huaweicloudsdkrocketmq/v2/model/send_message_resp.py +289 -0
  30. huaweicloudsdkrocketmq/v2/model/send_message_response.py +290 -0
  31. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_request.py +142 -0
  32. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_response.py +435 -0
  33. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_request.py +142 -0
  34. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_response.py +145 -0
  35. huaweicloudsdkrocketmq/v2/model/update_consumer_group_response.py +32 -1
  36. huaweicloudsdkrocketmq/v2/model/update_topic_queue_entity.py +173 -0
  37. huaweicloudsdkrocketmq/v2/model/update_topic_req.py +70 -12
  38. huaweicloudsdkrocketmq/v2/model/update_topic_response.py +32 -1
  39. huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +580 -24
  40. huaweicloudsdkrocketmq/v2/rocketmq_client.py +580 -24
  41. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/METADATA +2 -2
  42. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/RECORD +45 -21
  43. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/LICENSE +0 -0
  44. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/WHEEL +0 -0
  45. {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,290 @@
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 SendMessageResponse(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
+ 'topic': 'str',
22
+ 'body': 'str',
23
+ 'property_list': 'list[SendMessageProperties]',
24
+ 'msg_id': 'str',
25
+ 'queue_id': 'float',
26
+ 'queue_offset': 'float',
27
+ 'broker_name': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'topic': 'topic',
32
+ 'body': 'body',
33
+ 'property_list': 'property_list',
34
+ 'msg_id': 'msg_id',
35
+ 'queue_id': 'queue_id',
36
+ 'queue_offset': 'queue_offset',
37
+ 'broker_name': 'broker_name'
38
+ }
39
+
40
+ def __init__(self, topic=None, body=None, property_list=None, msg_id=None, queue_id=None, queue_offset=None, broker_name=None):
41
+ r"""SendMessageResponse
42
+
43
+ The model defined in huaweicloud sdk
44
+
45
+ :param topic: **参数解释**: 主题名称。 **取值范围**: 不涉及。
46
+ :type topic: str
47
+ :param body: **参数解释**: 消息内容。 **取值范围**: 不涉及。
48
+ :type body: str
49
+ :param property_list: **参数解释**: 特性列表。 **取值范围**: 不涉及。
50
+ :type property_list: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
51
+ :param msg_id: **参数解释**: 消息ID。 **取值范围**: 不涉及。
52
+ :type msg_id: str
53
+ :param queue_id: **参数解释**: 队列ID。 **取值范围**: 不涉及。
54
+ :type queue_id: float
55
+ :param queue_offset: **参数解释**: 队列offset。 **取值范围**: 不涉及。
56
+ :type queue_offset: float
57
+ :param broker_name: **参数解释**: Broker名称。 **取值范围**: 不涉及。
58
+ :type broker_name: str
59
+ """
60
+
61
+ super(SendMessageResponse, self).__init__()
62
+
63
+ self._topic = None
64
+ self._body = None
65
+ self._property_list = None
66
+ self._msg_id = None
67
+ self._queue_id = None
68
+ self._queue_offset = None
69
+ self._broker_name = None
70
+ self.discriminator = None
71
+
72
+ if topic is not None:
73
+ self.topic = topic
74
+ if body is not None:
75
+ self.body = body
76
+ if property_list is not None:
77
+ self.property_list = property_list
78
+ if msg_id is not None:
79
+ self.msg_id = msg_id
80
+ if queue_id is not None:
81
+ self.queue_id = queue_id
82
+ if queue_offset is not None:
83
+ self.queue_offset = queue_offset
84
+ if broker_name is not None:
85
+ self.broker_name = broker_name
86
+
87
+ @property
88
+ def topic(self):
89
+ r"""Gets the topic of this SendMessageResponse.
90
+
91
+ **参数解释**: 主题名称。 **取值范围**: 不涉及。
92
+
93
+ :return: The topic of this SendMessageResponse.
94
+ :rtype: str
95
+ """
96
+ return self._topic
97
+
98
+ @topic.setter
99
+ def topic(self, topic):
100
+ r"""Sets the topic of this SendMessageResponse.
101
+
102
+ **参数解释**: 主题名称。 **取值范围**: 不涉及。
103
+
104
+ :param topic: The topic of this SendMessageResponse.
105
+ :type topic: str
106
+ """
107
+ self._topic = topic
108
+
109
+ @property
110
+ def body(self):
111
+ r"""Gets the body of this SendMessageResponse.
112
+
113
+ **参数解释**: 消息内容。 **取值范围**: 不涉及。
114
+
115
+ :return: The body of this SendMessageResponse.
116
+ :rtype: str
117
+ """
118
+ return self._body
119
+
120
+ @body.setter
121
+ def body(self, body):
122
+ r"""Sets the body of this SendMessageResponse.
123
+
124
+ **参数解释**: 消息内容。 **取值范围**: 不涉及。
125
+
126
+ :param body: The body of this SendMessageResponse.
127
+ :type body: str
128
+ """
129
+ self._body = body
130
+
131
+ @property
132
+ def property_list(self):
133
+ r"""Gets the property_list of this SendMessageResponse.
134
+
135
+ **参数解释**: 特性列表。 **取值范围**: 不涉及。
136
+
137
+ :return: The property_list of this SendMessageResponse.
138
+ :rtype: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
139
+ """
140
+ return self._property_list
141
+
142
+ @property_list.setter
143
+ def property_list(self, property_list):
144
+ r"""Sets the property_list of this SendMessageResponse.
145
+
146
+ **参数解释**: 特性列表。 **取值范围**: 不涉及。
147
+
148
+ :param property_list: The property_list of this SendMessageResponse.
149
+ :type property_list: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
150
+ """
151
+ self._property_list = property_list
152
+
153
+ @property
154
+ def msg_id(self):
155
+ r"""Gets the msg_id of this SendMessageResponse.
156
+
157
+ **参数解释**: 消息ID。 **取值范围**: 不涉及。
158
+
159
+ :return: The msg_id of this SendMessageResponse.
160
+ :rtype: str
161
+ """
162
+ return self._msg_id
163
+
164
+ @msg_id.setter
165
+ def msg_id(self, msg_id):
166
+ r"""Sets the msg_id of this SendMessageResponse.
167
+
168
+ **参数解释**: 消息ID。 **取值范围**: 不涉及。
169
+
170
+ :param msg_id: The msg_id of this SendMessageResponse.
171
+ :type msg_id: str
172
+ """
173
+ self._msg_id = msg_id
174
+
175
+ @property
176
+ def queue_id(self):
177
+ r"""Gets the queue_id of this SendMessageResponse.
178
+
179
+ **参数解释**: 队列ID。 **取值范围**: 不涉及。
180
+
181
+ :return: The queue_id of this SendMessageResponse.
182
+ :rtype: float
183
+ """
184
+ return self._queue_id
185
+
186
+ @queue_id.setter
187
+ def queue_id(self, queue_id):
188
+ r"""Sets the queue_id of this SendMessageResponse.
189
+
190
+ **参数解释**: 队列ID。 **取值范围**: 不涉及。
191
+
192
+ :param queue_id: The queue_id of this SendMessageResponse.
193
+ :type queue_id: float
194
+ """
195
+ self._queue_id = queue_id
196
+
197
+ @property
198
+ def queue_offset(self):
199
+ r"""Gets the queue_offset of this SendMessageResponse.
200
+
201
+ **参数解释**: 队列offset。 **取值范围**: 不涉及。
202
+
203
+ :return: The queue_offset of this SendMessageResponse.
204
+ :rtype: float
205
+ """
206
+ return self._queue_offset
207
+
208
+ @queue_offset.setter
209
+ def queue_offset(self, queue_offset):
210
+ r"""Sets the queue_offset of this SendMessageResponse.
211
+
212
+ **参数解释**: 队列offset。 **取值范围**: 不涉及。
213
+
214
+ :param queue_offset: The queue_offset of this SendMessageResponse.
215
+ :type queue_offset: float
216
+ """
217
+ self._queue_offset = queue_offset
218
+
219
+ @property
220
+ def broker_name(self):
221
+ r"""Gets the broker_name of this SendMessageResponse.
222
+
223
+ **参数解释**: Broker名称。 **取值范围**: 不涉及。
224
+
225
+ :return: The broker_name of this SendMessageResponse.
226
+ :rtype: str
227
+ """
228
+ return self._broker_name
229
+
230
+ @broker_name.setter
231
+ def broker_name(self, broker_name):
232
+ r"""Sets the broker_name of this SendMessageResponse.
233
+
234
+ **参数解释**: Broker名称。 **取值范围**: 不涉及。
235
+
236
+ :param broker_name: The broker_name of this SendMessageResponse.
237
+ :type broker_name: str
238
+ """
239
+ self._broker_name = broker_name
240
+
241
+ def to_dict(self):
242
+ """Returns the model properties as a dict"""
243
+ result = {}
244
+
245
+ for attr, _ in six.iteritems(self.openapi_types):
246
+ value = getattr(self, attr)
247
+ if isinstance(value, list):
248
+ result[attr] = list(map(
249
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
250
+ value
251
+ ))
252
+ elif hasattr(value, "to_dict"):
253
+ result[attr] = value.to_dict()
254
+ elif isinstance(value, dict):
255
+ result[attr] = dict(map(
256
+ lambda item: (item[0], item[1].to_dict())
257
+ if hasattr(item[1], "to_dict") else item,
258
+ value.items()
259
+ ))
260
+ else:
261
+ if attr in self.sensitive_list:
262
+ result[attr] = "****"
263
+ else:
264
+ result[attr] = value
265
+
266
+ return result
267
+
268
+ def to_str(self):
269
+ """Returns the string representation of the model"""
270
+ import simplejson as json
271
+ if six.PY2:
272
+ import sys
273
+ reload(sys)
274
+ sys.setdefaultencoding("utf-8")
275
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
276
+
277
+ def __repr__(self):
278
+ """For `print`"""
279
+ return self.to_str()
280
+
281
+ def __eq__(self, other):
282
+ """Returns true if both objects are equal"""
283
+ if not isinstance(other, SendMessageResponse):
284
+ return False
285
+
286
+ return self.__dict__ == other.__dict__
287
+
288
+ def __ne__(self, other):
289
+ """Returns true if both objects are not equal"""
290
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowDiagnosisReportRequest:
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
+ 'report_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'engine': 'engine',
26
+ 'report_id': 'report_id'
27
+ }
28
+
29
+ def __init__(self, engine=None, report_id=None):
30
+ r"""ShowDiagnosisReportRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param engine: **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
35
+ :type engine: str
36
+ :param report_id: **参数解释**: 报告ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type report_id: str
38
+ """
39
+
40
+
41
+
42
+ self._engine = None
43
+ self._report_id = None
44
+ self.discriminator = None
45
+
46
+ self.engine = engine
47
+ self.report_id = report_id
48
+
49
+ @property
50
+ def engine(self):
51
+ r"""Gets the engine of this ShowDiagnosisReportRequest.
52
+
53
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
54
+
55
+ :return: The engine of this ShowDiagnosisReportRequest.
56
+ :rtype: str
57
+ """
58
+ return self._engine
59
+
60
+ @engine.setter
61
+ def engine(self, engine):
62
+ r"""Sets the engine of this ShowDiagnosisReportRequest.
63
+
64
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
65
+
66
+ :param engine: The engine of this ShowDiagnosisReportRequest.
67
+ :type engine: str
68
+ """
69
+ self._engine = engine
70
+
71
+ @property
72
+ def report_id(self):
73
+ r"""Gets the report_id of this ShowDiagnosisReportRequest.
74
+
75
+ **参数解释**: 报告ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
76
+
77
+ :return: The report_id of this ShowDiagnosisReportRequest.
78
+ :rtype: str
79
+ """
80
+ return self._report_id
81
+
82
+ @report_id.setter
83
+ def report_id(self, report_id):
84
+ r"""Sets the report_id of this ShowDiagnosisReportRequest.
85
+
86
+ **参数解释**: 报告ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
87
+
88
+ :param report_id: The report_id of this ShowDiagnosisReportRequest.
89
+ :type report_id: str
90
+ """
91
+ self._report_id = report_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ShowDiagnosisReportRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other