huaweicloudsdkrocketmq 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. huaweicloudsdkrocketmq/v2/__init__.py +2 -0
  2. huaweicloudsdkrocketmq/v2/model/__init__.py +2 -0
  3. huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_tag_req.py +3 -3
  4. huaweicloudsdkrocketmq/v2/model/batch_delete_instance_req.py +3 -3
  5. huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group_req.py +4 -4
  6. huaweicloudsdkrocketmq/v2/model/brokers.py +6 -6
  7. huaweicloudsdkrocketmq/v2/model/client_data.py +15 -15
  8. huaweicloudsdkrocketmq/v2/model/consumer_detail_resp.py +12 -12
  9. huaweicloudsdkrocketmq/v2/model/consumer_group.py +7 -7
  10. huaweicloudsdkrocketmq/v2/model/consumer_list.py +6 -6
  11. huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_req.py +97 -155
  12. huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_request.py +3 -3
  13. huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +15 -15
  14. huaweicloudsdkrocketmq/v2/model/create_or_update_consumer_group.py +289 -0
  15. huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +18 -18
  16. huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_req.py +3 -3
  17. huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py +6 -6
  18. huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_response.py +3 -3
  19. huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +39 -10
  20. huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_request.py +3 -3
  21. huaweicloudsdkrocketmq/v2/model/create_topic_req.py +39 -10
  22. huaweicloudsdkrocketmq/v2/model/create_topic_req_queues.py +144 -0
  23. huaweicloudsdkrocketmq/v2/model/deadletter_resend_req.py +3 -3
  24. huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_response.py +1 -28
  25. huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_response.py +16 -16
  26. huaweicloudsdkrocketmq/v2/model/list_instances_request.py +10 -11
  27. huaweicloudsdkrocketmq/v2/model/list_message_trace_resp_trace.py +7 -7
  28. huaweicloudsdkrocketmq/v2/model/list_messages_request.py +3 -3
  29. huaweicloudsdkrocketmq/v2/model/list_rocket_instance_topics_response.py +12 -12
  30. huaweicloudsdkrocketmq/v2/model/list_rocket_mq_migration_task_request.py +12 -12
  31. huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_topic_config.py +12 -12
  32. huaweicloudsdkrocketmq/v2/model/queue.py +15 -15
  33. huaweicloudsdkrocketmq/v2/model/resend_req.py +3 -3
  34. huaweicloudsdkrocketmq/v2/model/resize_engine_instance_req.py +9 -9
  35. huaweicloudsdkrocketmq/v2/model/rocket_mq_config_req.py +6 -6
  36. huaweicloudsdkrocketmq/v2/model/rocket_mq_config_resp.py +18 -18
  37. huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_info_entity.py +27 -27
  38. huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_ios_entity.py +12 -12
  39. huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_properties_entity.py +6 -6
  40. huaweicloudsdkrocketmq/v2/model/rocket_mq_product_support_features_entity.py +6 -6
  41. huaweicloudsdkrocketmq/v2/model/show_consumer_connections_request.py +6 -6
  42. huaweicloudsdkrocketmq/v2/model/show_consumer_connections_response.py +21 -21
  43. huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_request.py +3 -3
  44. huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_response.py +18 -18
  45. huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_request.py +3 -3
  46. huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py +9 -9
  47. huaweicloudsdkrocketmq/v2/model/show_group_response.py +3 -3
  48. huaweicloudsdkrocketmq/v2/model/show_instance_resp.py +65 -7
  49. huaweicloudsdkrocketmq/v2/model/show_instance_response.py +65 -7
  50. huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py +3 -3
  51. huaweicloudsdkrocketmq/v2/model/subscription.py +9 -9
  52. huaweicloudsdkrocketmq/v2/model/topic.py +3 -3
  53. huaweicloudsdkrocketmq/v2/model/update_consumer_group.py +3 -32
  54. huaweicloudsdkrocketmq/v2/model/update_instance_req.py +3 -3
  55. huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +1 -1
  56. huaweicloudsdkrocketmq/v2/rocketmq_client.py +1 -1
  57. {huaweicloudsdkrocketmq-3.1.86.dist-info → huaweicloudsdkrocketmq-3.1.132.dist-info}/METADATA +2 -2
  58. {huaweicloudsdkrocketmq-3.1.86.dist-info → huaweicloudsdkrocketmq-3.1.132.dist-info}/RECORD +61 -59
  59. {huaweicloudsdkrocketmq-3.1.86.dist-info → huaweicloudsdkrocketmq-3.1.132.dist-info}/WHEEL +1 -1
  60. {huaweicloudsdkrocketmq-3.1.86.dist-info → huaweicloudsdkrocketmq-3.1.132.dist-info}/LICENSE +0 -0
  61. {huaweicloudsdkrocketmq-3.1.86.dist-info → huaweicloudsdkrocketmq-3.1.132.dist-info}/top_level.txt +0 -0
@@ -20,6 +20,7 @@ class CreateTopicOrBatchDeleteTopicReq:
20
20
  'name': 'str',
21
21
  'brokers': 'list[str]',
22
22
  'queue_num': 'float',
23
+ 'queues': 'list[CreateTopicReqQueues]',
23
24
  'permission': 'str',
24
25
  'message_type': 'str',
25
26
  'topics': 'list[str]'
@@ -29,25 +30,28 @@ class CreateTopicOrBatchDeleteTopicReq:
29
30
  'name': 'name',
30
31
  'brokers': 'brokers',
31
32
  'queue_num': 'queue_num',
33
+ 'queues': 'queues',
32
34
  'permission': 'permission',
33
35
  'message_type': 'message_type',
34
36
  'topics': 'topics'
35
37
  }
36
38
 
37
- def __init__(self, name=None, brokers=None, queue_num=None, permission=None, message_type=None, topics=None):
39
+ def __init__(self, name=None, brokers=None, queue_num=None, queues=None, permission=None, message_type=None, topics=None):
38
40
  """CreateTopicOrBatchDeleteTopicReq
39
41
 
40
42
  The model defined in huaweicloud sdk
41
43
 
42
44
  :param name: 主题名称,只能由英文字母、数字、百分号、竖线、中划线、下划线组成,长度3~64个字符。
43
45
  :type name: str
44
- :param brokers: 关联的代理。
46
+ :param brokers: 关联的代理(仅RocketMQ实例4.8.0版本需要填写此参数)。
45
47
  :type brokers: list[str]
46
48
  :param queue_num: 队列数,范围1~50。
47
49
  :type queue_num: float
48
- :param permission: 权限。
50
+ :param queues: 队列(仅RocketMQ实例4.8.0版本需要填写此参数)。
51
+ :type queues: list[:class:`huaweicloudsdkrocketmq.v2.CreateTopicReqQueues`]
52
+ :param permission: 权限(仅RocketMQ实例4.8.0版本需要填写此参数)。 取值范围: - pub(发布) - sub(订阅) - all(发布+订阅)
49
53
  :type permission: str
50
- :param message_type: 消息类型(RocketMQ实例5.x版本才包含此参数)。
54
+ :param message_type: 消息类型(仅RocketMQ实例5.x版本需要填写此参数)。 取值范围: - NORMAL(普通消息) - FIFO(顺序消息) - DELAY(定时消息) - TRANSACTION(事务消息)
51
55
  :type message_type: str
52
56
  :param topics: 主题列表,当批量删除主题时使用。
53
57
  :type topics: list[str]
@@ -58,6 +62,7 @@ class CreateTopicOrBatchDeleteTopicReq:
58
62
  self._name = None
59
63
  self._brokers = None
60
64
  self._queue_num = None
65
+ self._queues = None
61
66
  self._permission = None
62
67
  self._message_type = None
63
68
  self._topics = None
@@ -69,6 +74,8 @@ class CreateTopicOrBatchDeleteTopicReq:
69
74
  self.brokers = brokers
70
75
  if queue_num is not None:
71
76
  self.queue_num = queue_num
77
+ if queues is not None:
78
+ self.queues = queues
72
79
  if permission is not None:
73
80
  self.permission = permission
74
81
  if message_type is not None:
@@ -102,7 +109,7 @@ class CreateTopicOrBatchDeleteTopicReq:
102
109
  def brokers(self):
103
110
  """Gets the brokers of this CreateTopicOrBatchDeleteTopicReq.
104
111
 
105
- 关联的代理。
112
+ 关联的代理(仅RocketMQ实例4.8.0版本需要填写此参数)。
106
113
 
107
114
  :return: The brokers of this CreateTopicOrBatchDeleteTopicReq.
108
115
  :rtype: list[str]
@@ -113,7 +120,7 @@ class CreateTopicOrBatchDeleteTopicReq:
113
120
  def brokers(self, brokers):
114
121
  """Sets the brokers of this CreateTopicOrBatchDeleteTopicReq.
115
122
 
116
- 关联的代理。
123
+ 关联的代理(仅RocketMQ实例4.8.0版本需要填写此参数)。
117
124
 
118
125
  :param brokers: The brokers of this CreateTopicOrBatchDeleteTopicReq.
119
126
  :type brokers: list[str]
@@ -142,11 +149,33 @@ class CreateTopicOrBatchDeleteTopicReq:
142
149
  """
143
150
  self._queue_num = queue_num
144
151
 
152
+ @property
153
+ def queues(self):
154
+ """Gets the queues of this CreateTopicOrBatchDeleteTopicReq.
155
+
156
+ 队列(仅RocketMQ实例4.8.0版本需要填写此参数)。
157
+
158
+ :return: The queues of this CreateTopicOrBatchDeleteTopicReq.
159
+ :rtype: list[:class:`huaweicloudsdkrocketmq.v2.CreateTopicReqQueues`]
160
+ """
161
+ return self._queues
162
+
163
+ @queues.setter
164
+ def queues(self, queues):
165
+ """Sets the queues of this CreateTopicOrBatchDeleteTopicReq.
166
+
167
+ 队列(仅RocketMQ实例4.8.0版本需要填写此参数)。
168
+
169
+ :param queues: The queues of this CreateTopicOrBatchDeleteTopicReq.
170
+ :type queues: list[:class:`huaweicloudsdkrocketmq.v2.CreateTopicReqQueues`]
171
+ """
172
+ self._queues = queues
173
+
145
174
  @property
146
175
  def permission(self):
147
176
  """Gets the permission of this CreateTopicOrBatchDeleteTopicReq.
148
177
 
149
- 权限。
178
+ 权限(仅RocketMQ实例4.8.0版本需要填写此参数)。 取值范围: - pub(发布) - sub(订阅) - all(发布+订阅)
150
179
 
151
180
  :return: The permission of this CreateTopicOrBatchDeleteTopicReq.
152
181
  :rtype: str
@@ -157,7 +186,7 @@ class CreateTopicOrBatchDeleteTopicReq:
157
186
  def permission(self, permission):
158
187
  """Sets the permission of this CreateTopicOrBatchDeleteTopicReq.
159
188
 
160
- 权限。
189
+ 权限(仅RocketMQ实例4.8.0版本需要填写此参数)。 取值范围: - pub(发布) - sub(订阅) - all(发布+订阅)
161
190
 
162
191
  :param permission: The permission of this CreateTopicOrBatchDeleteTopicReq.
163
192
  :type permission: str
@@ -168,7 +197,7 @@ class CreateTopicOrBatchDeleteTopicReq:
168
197
  def message_type(self):
169
198
  """Gets the message_type of this CreateTopicOrBatchDeleteTopicReq.
170
199
 
171
- 消息类型(RocketMQ实例5.x版本才包含此参数)。
200
+ 消息类型(仅RocketMQ实例5.x版本需要填写此参数)。 取值范围: - NORMAL(普通消息) - FIFO(顺序消息) - DELAY(定时消息) - TRANSACTION(事务消息)
172
201
 
173
202
  :return: The message_type of this CreateTopicOrBatchDeleteTopicReq.
174
203
  :rtype: str
@@ -179,7 +208,7 @@ class CreateTopicOrBatchDeleteTopicReq:
179
208
  def message_type(self, message_type):
180
209
  """Sets the message_type of this CreateTopicOrBatchDeleteTopicReq.
181
210
 
182
- 消息类型(RocketMQ实例5.x版本才包含此参数)。
211
+ 消息类型(仅RocketMQ实例5.x版本需要填写此参数)。 取值范围: - NORMAL(普通消息) - FIFO(顺序消息) - DELAY(定时消息) - TRANSACTION(事务消息)
183
212
 
184
213
  :param message_type: The message_type of this CreateTopicOrBatchDeleteTopicReq.
185
214
  :type message_type: str
@@ -35,7 +35,7 @@ class CreateTopicOrBatchDeleteTopicRequest:
35
35
 
36
36
  :param instance_id: 实例ID。
37
37
  :type instance_id: str
38
- :param action: 批量删除topic时使用,不配置则为创建接口。
38
+ :param action: 批量删除Topic时使用,不配置则为创建接口。删除操作:delete。
39
39
  :type action: str
40
40
  :param body: Body of the CreateTopicOrBatchDeleteTopicRequest
41
41
  :type body: :class:`huaweicloudsdkrocketmq.v2.CreateTopicOrBatchDeleteTopicReq`
@@ -80,7 +80,7 @@ class CreateTopicOrBatchDeleteTopicRequest:
80
80
  def action(self):
81
81
  """Gets the action of this CreateTopicOrBatchDeleteTopicRequest.
82
82
 
83
- 批量删除topic时使用,不配置则为创建接口。
83
+ 批量删除Topic时使用,不配置则为创建接口。删除操作:delete。
84
84
 
85
85
  :return: The action of this CreateTopicOrBatchDeleteTopicRequest.
86
86
  :rtype: str
@@ -91,7 +91,7 @@ class CreateTopicOrBatchDeleteTopicRequest:
91
91
  def action(self, action):
92
92
  """Sets the action of this CreateTopicOrBatchDeleteTopicRequest.
93
93
 
94
- 批量删除topic时使用,不配置则为创建接口。
94
+ 批量删除Topic时使用,不配置则为创建接口。删除操作:delete。
95
95
 
96
96
  :param action: The action of this CreateTopicOrBatchDeleteTopicRequest.
97
97
  :type action: str
@@ -20,6 +20,7 @@ class CreateTopicReq:
20
20
  'name': 'str',
21
21
  'brokers': 'list[str]',
22
22
  'queue_num': 'float',
23
+ 'queues': 'list[CreateTopicReqQueues]',
23
24
  'permission': 'str',
24
25
  'message_type': 'str'
25
26
  }
@@ -28,24 +29,27 @@ class CreateTopicReq:
28
29
  'name': 'name',
29
30
  'brokers': 'brokers',
30
31
  'queue_num': 'queue_num',
32
+ 'queues': 'queues',
31
33
  'permission': 'permission',
32
34
  'message_type': 'message_type'
33
35
  }
34
36
 
35
- def __init__(self, name=None, brokers=None, queue_num=None, permission=None, message_type=None):
37
+ def __init__(self, name=None, brokers=None, queue_num=None, queues=None, permission=None, message_type=None):
36
38
  """CreateTopicReq
37
39
 
38
40
  The model defined in huaweicloud sdk
39
41
 
40
42
  :param name: 主题名称,只能由英文字母、数字、百分号、竖线、中划线、下划线组成,长度3~64个字符。
41
43
  :type name: str
42
- :param brokers: 关联的代理。
44
+ :param brokers: 关联的代理(仅RocketMQ实例4.8.0版本需要填写此参数)。
43
45
  :type brokers: list[str]
44
46
  :param queue_num: 队列数,范围1~50。
45
47
  :type queue_num: float
46
- :param permission: 权限。
48
+ :param queues: 队列(仅RocketMQ实例4.8.0版本需要填写此参数)。
49
+ :type queues: list[:class:`huaweicloudsdkrocketmq.v2.CreateTopicReqQueues`]
50
+ :param permission: 权限(仅RocketMQ实例4.8.0版本需要填写此参数)。 取值范围: - pub(发布) - sub(订阅) - all(发布+订阅)
47
51
  :type permission: str
48
- :param message_type: 消息类型(RocketMQ实例5.x版本才包含此参数)。
52
+ :param message_type: 消息类型(仅RocketMQ实例5.x版本需要填写此参数)。 取值范围: - NORMAL(普通消息) - FIFO(顺序消息) - DELAY(定时消息) - TRANSACTION(事务消息)
49
53
  :type message_type: str
50
54
  """
51
55
 
@@ -54,6 +58,7 @@ class CreateTopicReq:
54
58
  self._name = None
55
59
  self._brokers = None
56
60
  self._queue_num = None
61
+ self._queues = None
57
62
  self._permission = None
58
63
  self._message_type = None
59
64
  self.discriminator = None
@@ -64,6 +69,8 @@ class CreateTopicReq:
64
69
  self.brokers = brokers
65
70
  if queue_num is not None:
66
71
  self.queue_num = queue_num
72
+ if queues is not None:
73
+ self.queues = queues
67
74
  if permission is not None:
68
75
  self.permission = permission
69
76
  if message_type is not None:
@@ -95,7 +102,7 @@ class CreateTopicReq:
95
102
  def brokers(self):
96
103
  """Gets the brokers of this CreateTopicReq.
97
104
 
98
- 关联的代理。
105
+ 关联的代理(仅RocketMQ实例4.8.0版本需要填写此参数)。
99
106
 
100
107
  :return: The brokers of this CreateTopicReq.
101
108
  :rtype: list[str]
@@ -106,7 +113,7 @@ class CreateTopicReq:
106
113
  def brokers(self, brokers):
107
114
  """Sets the brokers of this CreateTopicReq.
108
115
 
109
- 关联的代理。
116
+ 关联的代理(仅RocketMQ实例4.8.0版本需要填写此参数)。
110
117
 
111
118
  :param brokers: The brokers of this CreateTopicReq.
112
119
  :type brokers: list[str]
@@ -135,11 +142,33 @@ class CreateTopicReq:
135
142
  """
136
143
  self._queue_num = queue_num
137
144
 
145
+ @property
146
+ def queues(self):
147
+ """Gets the queues of this CreateTopicReq.
148
+
149
+ 队列(仅RocketMQ实例4.8.0版本需要填写此参数)。
150
+
151
+ :return: The queues of this CreateTopicReq.
152
+ :rtype: list[:class:`huaweicloudsdkrocketmq.v2.CreateTopicReqQueues`]
153
+ """
154
+ return self._queues
155
+
156
+ @queues.setter
157
+ def queues(self, queues):
158
+ """Sets the queues of this CreateTopicReq.
159
+
160
+ 队列(仅RocketMQ实例4.8.0版本需要填写此参数)。
161
+
162
+ :param queues: The queues of this CreateTopicReq.
163
+ :type queues: list[:class:`huaweicloudsdkrocketmq.v2.CreateTopicReqQueues`]
164
+ """
165
+ self._queues = queues
166
+
138
167
  @property
139
168
  def permission(self):
140
169
  """Gets the permission of this CreateTopicReq.
141
170
 
142
- 权限。
171
+ 权限(仅RocketMQ实例4.8.0版本需要填写此参数)。 取值范围: - pub(发布) - sub(订阅) - all(发布+订阅)
143
172
 
144
173
  :return: The permission of this CreateTopicReq.
145
174
  :rtype: str
@@ -150,7 +179,7 @@ class CreateTopicReq:
150
179
  def permission(self, permission):
151
180
  """Sets the permission of this CreateTopicReq.
152
181
 
153
- 权限。
182
+ 权限(仅RocketMQ实例4.8.0版本需要填写此参数)。 取值范围: - pub(发布) - sub(订阅) - all(发布+订阅)
154
183
 
155
184
  :param permission: The permission of this CreateTopicReq.
156
185
  :type permission: str
@@ -161,7 +190,7 @@ class CreateTopicReq:
161
190
  def message_type(self):
162
191
  """Gets the message_type of this CreateTopicReq.
163
192
 
164
- 消息类型(RocketMQ实例5.x版本才包含此参数)。
193
+ 消息类型(仅RocketMQ实例5.x版本需要填写此参数)。 取值范围: - NORMAL(普通消息) - FIFO(顺序消息) - DELAY(定时消息) - TRANSACTION(事务消息)
165
194
 
166
195
  :return: The message_type of this CreateTopicReq.
167
196
  :rtype: str
@@ -172,7 +201,7 @@ class CreateTopicReq:
172
201
  def message_type(self, message_type):
173
202
  """Sets the message_type of this CreateTopicReq.
174
203
 
175
- 消息类型(RocketMQ实例5.x版本才包含此参数)。
204
+ 消息类型(仅RocketMQ实例5.x版本需要填写此参数)。 取值范围: - NORMAL(普通消息) - FIFO(顺序消息) - DELAY(定时消息) - TRANSACTION(事务消息)
176
205
 
177
206
  :param message_type: The message_type of this CreateTopicReq.
178
207
  :type message_type: str
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateTopicReqQueues:
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
+ 'broker': 'str',
21
+ 'queue_num': 'float'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'broker': 'broker',
26
+ 'queue_num': 'queue_num'
27
+ }
28
+
29
+ def __init__(self, broker=None, queue_num=None):
30
+ """CreateTopicReqQueues
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param broker: 关联的代理。
35
+ :type broker: str
36
+ :param queue_num: 队列数,范围1~50。
37
+ :type queue_num: float
38
+ """
39
+
40
+
41
+
42
+ self._broker = None
43
+ self._queue_num = None
44
+ self.discriminator = None
45
+
46
+ if broker is not None:
47
+ self.broker = broker
48
+ if queue_num is not None:
49
+ self.queue_num = queue_num
50
+
51
+ @property
52
+ def broker(self):
53
+ """Gets the broker of this CreateTopicReqQueues.
54
+
55
+ 关联的代理。
56
+
57
+ :return: The broker of this CreateTopicReqQueues.
58
+ :rtype: str
59
+ """
60
+ return self._broker
61
+
62
+ @broker.setter
63
+ def broker(self, broker):
64
+ """Sets the broker of this CreateTopicReqQueues.
65
+
66
+ 关联的代理。
67
+
68
+ :param broker: The broker of this CreateTopicReqQueues.
69
+ :type broker: str
70
+ """
71
+ self._broker = broker
72
+
73
+ @property
74
+ def queue_num(self):
75
+ """Gets the queue_num of this CreateTopicReqQueues.
76
+
77
+ 队列数,范围1~50。
78
+
79
+ :return: The queue_num of this CreateTopicReqQueues.
80
+ :rtype: float
81
+ """
82
+ return self._queue_num
83
+
84
+ @queue_num.setter
85
+ def queue_num(self, queue_num):
86
+ """Sets the queue_num of this CreateTopicReqQueues.
87
+
88
+ 队列数,范围1~50。
89
+
90
+ :param queue_num: The queue_num of this CreateTopicReqQueues.
91
+ :type queue_num: float
92
+ """
93
+ self._queue_num = queue_num
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, CreateTopicReqQueues):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -31,7 +31,7 @@ class DeadletterResendReq:
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param topic: topic。
34
+ :param topic: Topic名称。
35
35
  :type topic: str
36
36
  :param msg_id_list: 消息列表。
37
37
  :type msg_id_list: list[str]
@@ -52,7 +52,7 @@ class DeadletterResendReq:
52
52
  def topic(self):
53
53
  """Gets the topic of this DeadletterResendReq.
54
54
 
55
- topic。
55
+ Topic名称。
56
56
 
57
57
  :return: The topic of this DeadletterResendReq.
58
58
  :rtype: str
@@ -63,7 +63,7 @@ class DeadletterResendReq:
63
63
  def topic(self, topic):
64
64
  """Sets the topic of this DeadletterResendReq.
65
65
 
66
- topic。
66
+ Topic名称。
67
67
 
68
68
  :param topic: The topic of this DeadletterResendReq.
69
69
  :type topic: str
@@ -18,48 +18,21 @@ class DeleteRocketMqMigrationTaskResponse(SdkResponse):
18
18
  sensitive_list = []
19
19
 
20
20
  openapi_types = {
21
- 'body': 'str'
22
21
  }
23
22
 
24
23
  attribute_map = {
25
- 'body': 'body'
26
24
  }
27
25
 
28
- def __init__(self, body=None):
26
+ def __init__(self):
29
27
  """DeleteRocketMqMigrationTaskResponse
30
28
 
31
29
  The model defined in huaweicloud sdk
32
30
 
33
- :param body:
34
- :type body: str
35
31
  """
36
32
 
37
33
  super(DeleteRocketMqMigrationTaskResponse, self).__init__()
38
-
39
- self._body = None
40
34
  self.discriminator = None
41
35
 
42
- if body is not None:
43
- self.body = body
44
-
45
- @property
46
- def body(self):
47
- """Gets the body of this DeleteRocketMqMigrationTaskResponse.
48
-
49
- :return: The body of this DeleteRocketMqMigrationTaskResponse.
50
- :rtype: str
51
- """
52
- return self._body
53
-
54
- @body.setter
55
- def body(self, body):
56
- """Sets the body of this DeleteRocketMqMigrationTaskResponse.
57
-
58
- :param body: The body of this DeleteRocketMqMigrationTaskResponse.
59
- :type body: str
60
- """
61
- self._body = body
62
-
63
36
  def to_dict(self):
64
37
  """Returns the model properties as a dict"""
65
38
  result = {}
@@ -20,10 +20,10 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
20
20
  openapi_types = {
21
21
  'total': 'float',
22
22
  'groups': 'list[ConsumerGroup]',
23
- 'max': 'float',
24
- 'remaining': 'float',
25
- 'next_offset': 'float',
26
- 'previous_offset': 'float'
23
+ 'max': 'int',
24
+ 'remaining': 'int',
25
+ 'next_offset': 'int',
26
+ 'previous_offset': 'int'
27
27
  }
28
28
 
29
29
  attribute_map = {
@@ -45,13 +45,13 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
45
45
  :param groups: 消费组列表。
46
46
  :type groups: list[:class:`huaweicloudsdkrocketmq.v2.ConsumerGroup`]
47
47
  :param max: 最大可创建消费组数量。
48
- :type max: float
48
+ :type max: int
49
49
  :param remaining: 剩余可创建消费组数量。
50
- :type remaining: float
50
+ :type remaining: int
51
51
  :param next_offset: 下个分页的offset。
52
- :type next_offset: float
52
+ :type next_offset: int
53
53
  :param previous_offset: 上个分页的offset。
54
- :type previous_offset: float
54
+ :type previous_offset: int
55
55
  """
56
56
 
57
57
  super(ListInstanceConsumerGroupsResponse, self).__init__()
@@ -128,7 +128,7 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
128
128
  最大可创建消费组数量。
129
129
 
130
130
  :return: The max of this ListInstanceConsumerGroupsResponse.
131
- :rtype: float
131
+ :rtype: int
132
132
  """
133
133
  return self._max
134
134
 
@@ -139,7 +139,7 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
139
139
  最大可创建消费组数量。
140
140
 
141
141
  :param max: The max of this ListInstanceConsumerGroupsResponse.
142
- :type max: float
142
+ :type max: int
143
143
  """
144
144
  self._max = max
145
145
 
@@ -150,7 +150,7 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
150
150
  剩余可创建消费组数量。
151
151
 
152
152
  :return: The remaining of this ListInstanceConsumerGroupsResponse.
153
- :rtype: float
153
+ :rtype: int
154
154
  """
155
155
  return self._remaining
156
156
 
@@ -161,7 +161,7 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
161
161
  剩余可创建消费组数量。
162
162
 
163
163
  :param remaining: The remaining of this ListInstanceConsumerGroupsResponse.
164
- :type remaining: float
164
+ :type remaining: int
165
165
  """
166
166
  self._remaining = remaining
167
167
 
@@ -172,7 +172,7 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
172
172
  下个分页的offset。
173
173
 
174
174
  :return: The next_offset of this ListInstanceConsumerGroupsResponse.
175
- :rtype: float
175
+ :rtype: int
176
176
  """
177
177
  return self._next_offset
178
178
 
@@ -183,7 +183,7 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
183
183
  下个分页的offset。
184
184
 
185
185
  :param next_offset: The next_offset of this ListInstanceConsumerGroupsResponse.
186
- :type next_offset: float
186
+ :type next_offset: int
187
187
  """
188
188
  self._next_offset = next_offset
189
189
 
@@ -194,7 +194,7 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
194
194
  上个分页的offset。
195
195
 
196
196
  :return: The previous_offset of this ListInstanceConsumerGroupsResponse.
197
- :rtype: float
197
+ :rtype: int
198
198
  """
199
199
  return self._previous_offset
200
200
 
@@ -205,7 +205,7 @@ class ListInstanceConsumerGroupsResponse(SdkResponse):
205
205
  上个分页的offset。
206
206
 
207
207
  :param previous_offset: The previous_offset of this ListInstanceConsumerGroupsResponse.
208
- :type previous_offset: float
208
+ :type previous_offset: int
209
209
  """
210
210
  self._previous_offset = previous_offset
211
211