tencentcloud-sdk-python 3.0.1298__py2.py3-none-any.whl → 3.0.1300__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/aca/v20210323/models.py +2 -2
- tencentcloud/aiart/v20221229/aiart_client.py +55 -0
- tencentcloud/aiart/v20221229/models.py +367 -0
- tencentcloud/autoscaling/v20180419/models.py +21 -0
- tencentcloud/batch/v20170312/models.py +2 -2
- tencentcloud/bh/v20230418/models.py +4 -4
- tencentcloud/cdb/v20170320/models.py +27 -0
- tencentcloud/cfs/v20190719/errorcodes.py +1 -1
- tencentcloud/clb/v20180317/models.py +68 -0
- tencentcloud/cloudapp/v20220530/errorcodes.py +3 -0
- tencentcloud/cloudapp/v20220530/models.py +66 -17
- tencentcloud/cls/v20201016/models.py +22 -0
- tencentcloud/cmq/v20190304/cmq_client.py +0 -365
- tencentcloud/cmq/v20190304/models.py +324 -2473
- tencentcloud/config/v20220802/config_client.py +46 -0
- tencentcloud/config/v20220802/errorcodes.py +3 -0
- tencentcloud/config/v20220802/models.py +716 -26
- tencentcloud/csxg/v20230303/errorcodes.py +48 -0
- tencentcloud/cvm/v20170312/models.py +2 -2
- tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
- tencentcloud/cynosdb/v20190107/models.py +113 -0
- tencentcloud/dc/v20180410/models.py +50 -121
- tencentcloud/drm/v20181115/models.py +17 -0
- tencentcloud/dts/v20211206/models.py +68 -2
- tencentcloud/ecm/v20190719/models.py +0 -18
- tencentcloud/emr/v20190103/models.py +136 -340
- tencentcloud/ess/v20201111/ess_client.py +25 -4
- tencentcloud/ess/v20201111/models.py +44 -46
- tencentcloud/essbasic/v20210526/models.py +42 -18
- tencentcloud/gaap/v20180529/gaap_client.py +9 -3
- tencentcloud/gwlb/v20240906/models.py +2 -2
- tencentcloud/hai/v20230812/errorcodes.py +6 -0
- tencentcloud/hai/v20230812/hai_client.py +46 -0
- tencentcloud/hai/v20230812/models.py +435 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +92 -0
- tencentcloud/iotexplorer/v20190423/models.py +1012 -36
- tencentcloud/iotvideo/v20211125/iotvideo_client.py +23 -0
- tencentcloud/iotvideo/v20211125/models.py +135 -0
- tencentcloud/keewidb/v20220308/models.py +1 -1
- tencentcloud/lcic/v20220817/models.py +2 -2
- tencentcloud/lkeap/v20240522/errorcodes.py +3 -0
- tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
- tencentcloud/lkeap/v20240522/models.py +54 -16
- tencentcloud/mna/v20210119/models.py +0 -20
- tencentcloud/mongodb/v20180408/models.py +2 -44
- tencentcloud/mongodb/v20190725/models.py +2 -22
- tencentcloud/ocr/v20181119/models.py +14 -14
- tencentcloud/postgres/v20170312/models.py +233 -0
- tencentcloud/postgres/v20170312/postgres_client.py +46 -0
- tencentcloud/redis/v20180412/models.py +12 -8
- tencentcloud/redis/v20180412/redis_client.py +8 -8
- tencentcloud/scf/v20180416/models.py +44 -4
- tencentcloud/sms/v20190711/errorcodes.py +6 -0
- tencentcloud/sms/v20190711/models.py +81 -0
- tencentcloud/sms/v20210111/errorcodes.py +6 -0
- tencentcloud/sms/v20210111/models.py +81 -0
- tencentcloud/ssl/v20191205/models.py +64 -8
- tencentcloud/ssl/v20191205/ssl_client.py +8 -1
- tencentcloud/tcb/v20180608/models.py +207 -403
- tencentcloud/tcb/v20180608/tcb_client.py +1 -1
- tencentcloud/tione/v20211111/models.py +34 -0
- tencentcloud/trro/v20220325/models.py +15 -0
- tencentcloud/trtc/v20190722/models.py +0 -8
- tencentcloud/tse/v20201207/models.py +30 -0
- tencentcloud/vpc/v20170312/errorcodes.py +12 -0
- tencentcloud/vpc/v20170312/models.py +17 -18
- tencentcloud/wedata/v20210820/models.py +126 -0
- {tencentcloud_sdk_python-3.0.1298.dist-info → tencentcloud_sdk_python-3.0.1300.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1298.dist-info → tencentcloud_sdk_python-3.0.1300.dist-info}/RECORD +73 -73
- {tencentcloud_sdk_python-3.0.1298.dist-info → tencentcloud_sdk_python-3.0.1300.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1298.dist-info → tencentcloud_sdk_python-3.0.1300.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1298.dist-info → tencentcloud_sdk_python-3.0.1300.dist-info}/top_level.txt +0 -0
@@ -18,1961 +18,51 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
-
class
|
22
|
-
"""
|
23
|
-
|
24
|
-
"""
|
25
|
-
|
26
|
-
def __init__(self):
|
27
|
-
r"""
|
28
|
-
:param _QueueName: 队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
29
|
-
:type QueueName: str
|
30
|
-
"""
|
31
|
-
self._QueueName = None
|
32
|
-
|
33
|
-
@property
|
34
|
-
def QueueName(self):
|
35
|
-
"""队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
36
|
-
:rtype: str
|
37
|
-
"""
|
38
|
-
return self._QueueName
|
39
|
-
|
40
|
-
@QueueName.setter
|
41
|
-
def QueueName(self, QueueName):
|
42
|
-
self._QueueName = QueueName
|
43
|
-
|
44
|
-
|
45
|
-
def _deserialize(self, params):
|
46
|
-
self._QueueName = params.get("QueueName")
|
47
|
-
memeber_set = set(params.keys())
|
48
|
-
for name, value in vars(self).items():
|
49
|
-
property_name = name[1:]
|
50
|
-
if property_name in memeber_set:
|
51
|
-
memeber_set.remove(property_name)
|
52
|
-
if len(memeber_set) > 0:
|
53
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
class ClearQueueResponse(AbstractModel):
|
58
|
-
"""ClearQueue返回参数结构体
|
59
|
-
|
60
|
-
"""
|
61
|
-
|
62
|
-
def __init__(self):
|
63
|
-
r"""
|
64
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
65
|
-
:type RequestId: str
|
66
|
-
"""
|
67
|
-
self._RequestId = None
|
68
|
-
|
69
|
-
@property
|
70
|
-
def RequestId(self):
|
71
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
72
|
-
:rtype: str
|
73
|
-
"""
|
74
|
-
return self._RequestId
|
75
|
-
|
76
|
-
@RequestId.setter
|
77
|
-
def RequestId(self, RequestId):
|
78
|
-
self._RequestId = RequestId
|
79
|
-
|
80
|
-
|
81
|
-
def _deserialize(self, params):
|
82
|
-
self._RequestId = params.get("RequestId")
|
83
|
-
|
84
|
-
|
85
|
-
class ClearSubscriptionFilterTagsRequest(AbstractModel):
|
86
|
-
"""ClearSubscriptionFilterTags请求参数结构体
|
87
|
-
|
88
|
-
"""
|
89
|
-
|
90
|
-
def __init__(self):
|
91
|
-
r"""
|
92
|
-
:param _TopicName: 主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
93
|
-
:type TopicName: str
|
94
|
-
:param _SubscriptionName: 订阅名字,在单个地域同一帐号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
95
|
-
:type SubscriptionName: str
|
96
|
-
"""
|
97
|
-
self._TopicName = None
|
98
|
-
self._SubscriptionName = None
|
99
|
-
|
100
|
-
@property
|
101
|
-
def TopicName(self):
|
102
|
-
"""主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
103
|
-
:rtype: str
|
104
|
-
"""
|
105
|
-
return self._TopicName
|
106
|
-
|
107
|
-
@TopicName.setter
|
108
|
-
def TopicName(self, TopicName):
|
109
|
-
self._TopicName = TopicName
|
110
|
-
|
111
|
-
@property
|
112
|
-
def SubscriptionName(self):
|
113
|
-
"""订阅名字,在单个地域同一帐号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
114
|
-
:rtype: str
|
115
|
-
"""
|
116
|
-
return self._SubscriptionName
|
117
|
-
|
118
|
-
@SubscriptionName.setter
|
119
|
-
def SubscriptionName(self, SubscriptionName):
|
120
|
-
self._SubscriptionName = SubscriptionName
|
121
|
-
|
122
|
-
|
123
|
-
def _deserialize(self, params):
|
124
|
-
self._TopicName = params.get("TopicName")
|
125
|
-
self._SubscriptionName = params.get("SubscriptionName")
|
126
|
-
memeber_set = set(params.keys())
|
127
|
-
for name, value in vars(self).items():
|
128
|
-
property_name = name[1:]
|
129
|
-
if property_name in memeber_set:
|
130
|
-
memeber_set.remove(property_name)
|
131
|
-
if len(memeber_set) > 0:
|
132
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
class ClearSubscriptionFilterTagsResponse(AbstractModel):
|
137
|
-
"""ClearSubscriptionFilterTags返回参数结构体
|
138
|
-
|
139
|
-
"""
|
140
|
-
|
141
|
-
def __init__(self):
|
142
|
-
r"""
|
143
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
144
|
-
:type RequestId: str
|
145
|
-
"""
|
146
|
-
self._RequestId = None
|
147
|
-
|
148
|
-
@property
|
149
|
-
def RequestId(self):
|
150
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
151
|
-
:rtype: str
|
152
|
-
"""
|
153
|
-
return self._RequestId
|
154
|
-
|
155
|
-
@RequestId.setter
|
156
|
-
def RequestId(self, RequestId):
|
157
|
-
self._RequestId = RequestId
|
158
|
-
|
159
|
-
|
160
|
-
def _deserialize(self, params):
|
161
|
-
self._RequestId = params.get("RequestId")
|
162
|
-
|
163
|
-
|
164
|
-
class CreateQueueRequest(AbstractModel):
|
165
|
-
"""CreateQueue请求参数结构体
|
166
|
-
|
167
|
-
"""
|
168
|
-
|
169
|
-
def __init__(self):
|
170
|
-
r"""
|
171
|
-
:param _QueueName: 队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
172
|
-
:type QueueName: str
|
173
|
-
:param _MaxMsgHeapNum: 最大堆积消息数。取值范围在公测期间为 1,000,000 - 10,000,000,正式上线后范围可达到 1000,000-1000,000,000。默认取值在公测期间为 10,000,000,正式上线后为 100,000,000。
|
174
|
-
:type MaxMsgHeapNum: int
|
175
|
-
:param _PollingWaitSeconds: 消息接收长轮询等待时间。取值范围 0-30 秒,默认值 0。
|
176
|
-
:type PollingWaitSeconds: int
|
177
|
-
:param _VisibilityTimeout: 消息可见性超时。取值范围 1-43200 秒(即12小时内),默认值 30。
|
178
|
-
:type VisibilityTimeout: int
|
179
|
-
:param _MaxMsgSize: 消息最大长度。取值范围 1024-65536 Byte(即1-64K),默认值 65536。
|
180
|
-
:type MaxMsgSize: int
|
181
|
-
:param _MsgRetentionSeconds: 消息保留周期。取值范围 60-1296000 秒(1min-15天),默认值 345600 (4 天)。
|
182
|
-
:type MsgRetentionSeconds: int
|
183
|
-
:param _RewindSeconds: 队列是否开启回溯消息能力,该参数取值范围0-msgRetentionSeconds,即最大的回溯时间为消息在队列中的保留周期,0表示不开启。
|
184
|
-
:type RewindSeconds: int
|
185
|
-
:param _Transaction: 1 表示事务队列,0 表示普通队列
|
186
|
-
:type Transaction: int
|
187
|
-
:param _FirstQueryInterval: 第一次回查间隔
|
188
|
-
:type FirstQueryInterval: int
|
189
|
-
:param _MaxQueryCount: 最大回查次数
|
190
|
-
:type MaxQueryCount: int
|
191
|
-
:param _DeadLetterQueueName: 死信队列名称
|
192
|
-
:type DeadLetterQueueName: str
|
193
|
-
:param _Policy: 死信策略。0为消息被多次消费未删除,1为Time-To-Live过期
|
194
|
-
:type Policy: int
|
195
|
-
:param _MaxReceiveCount: 最大接收次数 1-1000
|
196
|
-
:type MaxReceiveCount: int
|
197
|
-
:param _MaxTimeToLive: policy为1时必选。最大未消费过期时间。范围300-43200,单位秒,需要小于消息最大保留时间msgRetentionSeconds
|
198
|
-
:type MaxTimeToLive: int
|
199
|
-
:param _Trace: 是否开启消息轨迹追踪,当不设置字段时,默认为不开启,该字段为true表示开启,为false表示不开启
|
200
|
-
:type Trace: bool
|
201
|
-
"""
|
202
|
-
self._QueueName = None
|
203
|
-
self._MaxMsgHeapNum = None
|
204
|
-
self._PollingWaitSeconds = None
|
205
|
-
self._VisibilityTimeout = None
|
206
|
-
self._MaxMsgSize = None
|
207
|
-
self._MsgRetentionSeconds = None
|
208
|
-
self._RewindSeconds = None
|
209
|
-
self._Transaction = None
|
210
|
-
self._FirstQueryInterval = None
|
211
|
-
self._MaxQueryCount = None
|
212
|
-
self._DeadLetterQueueName = None
|
213
|
-
self._Policy = None
|
214
|
-
self._MaxReceiveCount = None
|
215
|
-
self._MaxTimeToLive = None
|
216
|
-
self._Trace = None
|
217
|
-
|
218
|
-
@property
|
219
|
-
def QueueName(self):
|
220
|
-
"""队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
221
|
-
:rtype: str
|
222
|
-
"""
|
223
|
-
return self._QueueName
|
224
|
-
|
225
|
-
@QueueName.setter
|
226
|
-
def QueueName(self, QueueName):
|
227
|
-
self._QueueName = QueueName
|
228
|
-
|
229
|
-
@property
|
230
|
-
def MaxMsgHeapNum(self):
|
231
|
-
"""最大堆积消息数。取值范围在公测期间为 1,000,000 - 10,000,000,正式上线后范围可达到 1000,000-1000,000,000。默认取值在公测期间为 10,000,000,正式上线后为 100,000,000。
|
232
|
-
:rtype: int
|
233
|
-
"""
|
234
|
-
return self._MaxMsgHeapNum
|
235
|
-
|
236
|
-
@MaxMsgHeapNum.setter
|
237
|
-
def MaxMsgHeapNum(self, MaxMsgHeapNum):
|
238
|
-
self._MaxMsgHeapNum = MaxMsgHeapNum
|
239
|
-
|
240
|
-
@property
|
241
|
-
def PollingWaitSeconds(self):
|
242
|
-
"""消息接收长轮询等待时间。取值范围 0-30 秒,默认值 0。
|
243
|
-
:rtype: int
|
244
|
-
"""
|
245
|
-
return self._PollingWaitSeconds
|
246
|
-
|
247
|
-
@PollingWaitSeconds.setter
|
248
|
-
def PollingWaitSeconds(self, PollingWaitSeconds):
|
249
|
-
self._PollingWaitSeconds = PollingWaitSeconds
|
250
|
-
|
251
|
-
@property
|
252
|
-
def VisibilityTimeout(self):
|
253
|
-
"""消息可见性超时。取值范围 1-43200 秒(即12小时内),默认值 30。
|
254
|
-
:rtype: int
|
255
|
-
"""
|
256
|
-
return self._VisibilityTimeout
|
257
|
-
|
258
|
-
@VisibilityTimeout.setter
|
259
|
-
def VisibilityTimeout(self, VisibilityTimeout):
|
260
|
-
self._VisibilityTimeout = VisibilityTimeout
|
261
|
-
|
262
|
-
@property
|
263
|
-
def MaxMsgSize(self):
|
264
|
-
"""消息最大长度。取值范围 1024-65536 Byte(即1-64K),默认值 65536。
|
265
|
-
:rtype: int
|
266
|
-
"""
|
267
|
-
return self._MaxMsgSize
|
268
|
-
|
269
|
-
@MaxMsgSize.setter
|
270
|
-
def MaxMsgSize(self, MaxMsgSize):
|
271
|
-
self._MaxMsgSize = MaxMsgSize
|
272
|
-
|
273
|
-
@property
|
274
|
-
def MsgRetentionSeconds(self):
|
275
|
-
"""消息保留周期。取值范围 60-1296000 秒(1min-15天),默认值 345600 (4 天)。
|
276
|
-
:rtype: int
|
277
|
-
"""
|
278
|
-
return self._MsgRetentionSeconds
|
279
|
-
|
280
|
-
@MsgRetentionSeconds.setter
|
281
|
-
def MsgRetentionSeconds(self, MsgRetentionSeconds):
|
282
|
-
self._MsgRetentionSeconds = MsgRetentionSeconds
|
283
|
-
|
284
|
-
@property
|
285
|
-
def RewindSeconds(self):
|
286
|
-
"""队列是否开启回溯消息能力,该参数取值范围0-msgRetentionSeconds,即最大的回溯时间为消息在队列中的保留周期,0表示不开启。
|
287
|
-
:rtype: int
|
288
|
-
"""
|
289
|
-
return self._RewindSeconds
|
290
|
-
|
291
|
-
@RewindSeconds.setter
|
292
|
-
def RewindSeconds(self, RewindSeconds):
|
293
|
-
self._RewindSeconds = RewindSeconds
|
294
|
-
|
295
|
-
@property
|
296
|
-
def Transaction(self):
|
297
|
-
"""1 表示事务队列,0 表示普通队列
|
298
|
-
:rtype: int
|
299
|
-
"""
|
300
|
-
return self._Transaction
|
301
|
-
|
302
|
-
@Transaction.setter
|
303
|
-
def Transaction(self, Transaction):
|
304
|
-
self._Transaction = Transaction
|
305
|
-
|
306
|
-
@property
|
307
|
-
def FirstQueryInterval(self):
|
308
|
-
"""第一次回查间隔
|
309
|
-
:rtype: int
|
310
|
-
"""
|
311
|
-
return self._FirstQueryInterval
|
312
|
-
|
313
|
-
@FirstQueryInterval.setter
|
314
|
-
def FirstQueryInterval(self, FirstQueryInterval):
|
315
|
-
self._FirstQueryInterval = FirstQueryInterval
|
316
|
-
|
317
|
-
@property
|
318
|
-
def MaxQueryCount(self):
|
319
|
-
"""最大回查次数
|
320
|
-
:rtype: int
|
321
|
-
"""
|
322
|
-
return self._MaxQueryCount
|
323
|
-
|
324
|
-
@MaxQueryCount.setter
|
325
|
-
def MaxQueryCount(self, MaxQueryCount):
|
326
|
-
self._MaxQueryCount = MaxQueryCount
|
327
|
-
|
328
|
-
@property
|
329
|
-
def DeadLetterQueueName(self):
|
330
|
-
"""死信队列名称
|
331
|
-
:rtype: str
|
332
|
-
"""
|
333
|
-
return self._DeadLetterQueueName
|
334
|
-
|
335
|
-
@DeadLetterQueueName.setter
|
336
|
-
def DeadLetterQueueName(self, DeadLetterQueueName):
|
337
|
-
self._DeadLetterQueueName = DeadLetterQueueName
|
338
|
-
|
339
|
-
@property
|
340
|
-
def Policy(self):
|
341
|
-
"""死信策略。0为消息被多次消费未删除,1为Time-To-Live过期
|
342
|
-
:rtype: int
|
343
|
-
"""
|
344
|
-
return self._Policy
|
345
|
-
|
346
|
-
@Policy.setter
|
347
|
-
def Policy(self, Policy):
|
348
|
-
self._Policy = Policy
|
349
|
-
|
350
|
-
@property
|
351
|
-
def MaxReceiveCount(self):
|
352
|
-
"""最大接收次数 1-1000
|
353
|
-
:rtype: int
|
354
|
-
"""
|
355
|
-
return self._MaxReceiveCount
|
356
|
-
|
357
|
-
@MaxReceiveCount.setter
|
358
|
-
def MaxReceiveCount(self, MaxReceiveCount):
|
359
|
-
self._MaxReceiveCount = MaxReceiveCount
|
360
|
-
|
361
|
-
@property
|
362
|
-
def MaxTimeToLive(self):
|
363
|
-
"""policy为1时必选。最大未消费过期时间。范围300-43200,单位秒,需要小于消息最大保留时间msgRetentionSeconds
|
364
|
-
:rtype: int
|
365
|
-
"""
|
366
|
-
return self._MaxTimeToLive
|
367
|
-
|
368
|
-
@MaxTimeToLive.setter
|
369
|
-
def MaxTimeToLive(self, MaxTimeToLive):
|
370
|
-
self._MaxTimeToLive = MaxTimeToLive
|
371
|
-
|
372
|
-
@property
|
373
|
-
def Trace(self):
|
374
|
-
"""是否开启消息轨迹追踪,当不设置字段时,默认为不开启,该字段为true表示开启,为false表示不开启
|
375
|
-
:rtype: bool
|
376
|
-
"""
|
377
|
-
return self._Trace
|
378
|
-
|
379
|
-
@Trace.setter
|
380
|
-
def Trace(self, Trace):
|
381
|
-
self._Trace = Trace
|
382
|
-
|
383
|
-
|
384
|
-
def _deserialize(self, params):
|
385
|
-
self._QueueName = params.get("QueueName")
|
386
|
-
self._MaxMsgHeapNum = params.get("MaxMsgHeapNum")
|
387
|
-
self._PollingWaitSeconds = params.get("PollingWaitSeconds")
|
388
|
-
self._VisibilityTimeout = params.get("VisibilityTimeout")
|
389
|
-
self._MaxMsgSize = params.get("MaxMsgSize")
|
390
|
-
self._MsgRetentionSeconds = params.get("MsgRetentionSeconds")
|
391
|
-
self._RewindSeconds = params.get("RewindSeconds")
|
392
|
-
self._Transaction = params.get("Transaction")
|
393
|
-
self._FirstQueryInterval = params.get("FirstQueryInterval")
|
394
|
-
self._MaxQueryCount = params.get("MaxQueryCount")
|
395
|
-
self._DeadLetterQueueName = params.get("DeadLetterQueueName")
|
396
|
-
self._Policy = params.get("Policy")
|
397
|
-
self._MaxReceiveCount = params.get("MaxReceiveCount")
|
398
|
-
self._MaxTimeToLive = params.get("MaxTimeToLive")
|
399
|
-
self._Trace = params.get("Trace")
|
400
|
-
memeber_set = set(params.keys())
|
401
|
-
for name, value in vars(self).items():
|
402
|
-
property_name = name[1:]
|
403
|
-
if property_name in memeber_set:
|
404
|
-
memeber_set.remove(property_name)
|
405
|
-
if len(memeber_set) > 0:
|
406
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
class CreateQueueResponse(AbstractModel):
|
411
|
-
"""CreateQueue返回参数结构体
|
412
|
-
|
413
|
-
"""
|
414
|
-
|
415
|
-
def __init__(self):
|
416
|
-
r"""
|
417
|
-
:param _QueueId: 创建成功的queueId
|
418
|
-
:type QueueId: str
|
419
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
420
|
-
:type RequestId: str
|
421
|
-
"""
|
422
|
-
self._QueueId = None
|
423
|
-
self._RequestId = None
|
424
|
-
|
425
|
-
@property
|
426
|
-
def QueueId(self):
|
427
|
-
"""创建成功的queueId
|
428
|
-
:rtype: str
|
429
|
-
"""
|
430
|
-
return self._QueueId
|
431
|
-
|
432
|
-
@QueueId.setter
|
433
|
-
def QueueId(self, QueueId):
|
434
|
-
self._QueueId = QueueId
|
435
|
-
|
436
|
-
@property
|
437
|
-
def RequestId(self):
|
438
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
439
|
-
:rtype: str
|
440
|
-
"""
|
441
|
-
return self._RequestId
|
442
|
-
|
443
|
-
@RequestId.setter
|
444
|
-
def RequestId(self, RequestId):
|
445
|
-
self._RequestId = RequestId
|
446
|
-
|
447
|
-
|
448
|
-
def _deserialize(self, params):
|
449
|
-
self._QueueId = params.get("QueueId")
|
450
|
-
self._RequestId = params.get("RequestId")
|
451
|
-
|
452
|
-
|
453
|
-
class CreateSubscribeRequest(AbstractModel):
|
454
|
-
"""CreateSubscribe请求参数结构体
|
455
|
-
|
456
|
-
"""
|
457
|
-
|
458
|
-
def __init__(self):
|
459
|
-
r"""
|
460
|
-
:param _TopicName: 主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
461
|
-
:type TopicName: str
|
462
|
-
:param _SubscriptionName: 订阅名字,在单个地域同一帐号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
463
|
-
:type SubscriptionName: str
|
464
|
-
:param _Protocol: 订阅的协议,目前支持两种协议:http、queue。使用http协议,用户需自己搭建接受消息的web server。使用queue,消息会自动推送到CMQ queue,用户可以并发地拉取消息。
|
465
|
-
:type Protocol: str
|
466
|
-
:param _Endpoint: 接收通知的Endpoint,根据协议Protocol区分:对于http,Endpoint必须以“`http://`”开头,host可以是域名或IP;对于Queue,则填QueueName。 请注意,目前推送服务不能推送到私有网络中,因此Endpoint填写为私有网络域名或地址将接收不到推送的消息,目前支持推送到公网和基础网络。
|
467
|
-
:type Endpoint: str
|
468
|
-
:param _NotifyStrategy: 向Endpoint推送消息出现错误时,CMQ推送服务器的重试策略。取值有:1)BACKOFF_RETRY,退避重试。每隔一定时间重试一次,重试够一定次数后,就把该消息丢弃,继续推送下一条消息;2)EXPONENTIAL_DECAY_RETRY,指数衰退重试。每次重试的间隔是指数递增的,例如开始1s,后面是2s,4s,8s...由于Topic消息的周期是一天,所以最多重试一天就把消息丢弃。默认值是EXPONENTIAL_DECAY_RETRY。
|
469
|
-
:type NotifyStrategy: str
|
470
|
-
:param _FilterTag: 消息正文。消息标签(用于消息过滤)。标签数量不能超过5个,每个标签不超过16个字符。与(Batch)PublishMessage的MsgTag参数配合使用,规则:1)如果FilterTag没有设置,则无论MsgTag是否有设置,订阅接收所有发布到Topic的消息;2)如果FilterTag数组有值,则只有数组中至少有一个值在MsgTag数组中也存在时(即FilterTag和MsgTag有交集),订阅才接收该发布到Topic的消息;3)如果FilterTag数组有值,但MsgTag没设置,则不接收任何发布到Topic的消息,可以认为是2)的一种特例,此时FilterTag和MsgTag没有交集。规则整体的设计思想是以订阅者的意愿为主。
|
471
|
-
:type FilterTag: list of str
|
472
|
-
:param _BindingKey: BindingKey数量不超过5个, 每个BindingKey长度不超过64字节,该字段表示订阅接收消息的过滤策略,每个BindingKey最多含有15个“.”, 即最多16个词组。
|
473
|
-
:type BindingKey: list of str
|
474
|
-
:param _NotifyContentFormat: 推送内容的格式。取值:1)JSON;2)SIMPLIFIED,即raw格式。如果Protocol是queue,则取值必须为SIMPLIFIED。如果Protocol是http,两个值均可以,默认值是JSON。
|
475
|
-
:type NotifyContentFormat: str
|
476
|
-
"""
|
477
|
-
self._TopicName = None
|
478
|
-
self._SubscriptionName = None
|
479
|
-
self._Protocol = None
|
480
|
-
self._Endpoint = None
|
481
|
-
self._NotifyStrategy = None
|
482
|
-
self._FilterTag = None
|
483
|
-
self._BindingKey = None
|
484
|
-
self._NotifyContentFormat = None
|
485
|
-
|
486
|
-
@property
|
487
|
-
def TopicName(self):
|
488
|
-
"""主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
489
|
-
:rtype: str
|
490
|
-
"""
|
491
|
-
return self._TopicName
|
492
|
-
|
493
|
-
@TopicName.setter
|
494
|
-
def TopicName(self, TopicName):
|
495
|
-
self._TopicName = TopicName
|
496
|
-
|
497
|
-
@property
|
498
|
-
def SubscriptionName(self):
|
499
|
-
"""订阅名字,在单个地域同一帐号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
500
|
-
:rtype: str
|
501
|
-
"""
|
502
|
-
return self._SubscriptionName
|
503
|
-
|
504
|
-
@SubscriptionName.setter
|
505
|
-
def SubscriptionName(self, SubscriptionName):
|
506
|
-
self._SubscriptionName = SubscriptionName
|
507
|
-
|
508
|
-
@property
|
509
|
-
def Protocol(self):
|
510
|
-
"""订阅的协议,目前支持两种协议:http、queue。使用http协议,用户需自己搭建接受消息的web server。使用queue,消息会自动推送到CMQ queue,用户可以并发地拉取消息。
|
511
|
-
:rtype: str
|
512
|
-
"""
|
513
|
-
return self._Protocol
|
514
|
-
|
515
|
-
@Protocol.setter
|
516
|
-
def Protocol(self, Protocol):
|
517
|
-
self._Protocol = Protocol
|
518
|
-
|
519
|
-
@property
|
520
|
-
def Endpoint(self):
|
521
|
-
"""接收通知的Endpoint,根据协议Protocol区分:对于http,Endpoint必须以“`http://`”开头,host可以是域名或IP;对于Queue,则填QueueName。 请注意,目前推送服务不能推送到私有网络中,因此Endpoint填写为私有网络域名或地址将接收不到推送的消息,目前支持推送到公网和基础网络。
|
522
|
-
:rtype: str
|
523
|
-
"""
|
524
|
-
return self._Endpoint
|
525
|
-
|
526
|
-
@Endpoint.setter
|
527
|
-
def Endpoint(self, Endpoint):
|
528
|
-
self._Endpoint = Endpoint
|
529
|
-
|
530
|
-
@property
|
531
|
-
def NotifyStrategy(self):
|
532
|
-
"""向Endpoint推送消息出现错误时,CMQ推送服务器的重试策略。取值有:1)BACKOFF_RETRY,退避重试。每隔一定时间重试一次,重试够一定次数后,就把该消息丢弃,继续推送下一条消息;2)EXPONENTIAL_DECAY_RETRY,指数衰退重试。每次重试的间隔是指数递增的,例如开始1s,后面是2s,4s,8s...由于Topic消息的周期是一天,所以最多重试一天就把消息丢弃。默认值是EXPONENTIAL_DECAY_RETRY。
|
533
|
-
:rtype: str
|
534
|
-
"""
|
535
|
-
return self._NotifyStrategy
|
536
|
-
|
537
|
-
@NotifyStrategy.setter
|
538
|
-
def NotifyStrategy(self, NotifyStrategy):
|
539
|
-
self._NotifyStrategy = NotifyStrategy
|
540
|
-
|
541
|
-
@property
|
542
|
-
def FilterTag(self):
|
543
|
-
"""消息正文。消息标签(用于消息过滤)。标签数量不能超过5个,每个标签不超过16个字符。与(Batch)PublishMessage的MsgTag参数配合使用,规则:1)如果FilterTag没有设置,则无论MsgTag是否有设置,订阅接收所有发布到Topic的消息;2)如果FilterTag数组有值,则只有数组中至少有一个值在MsgTag数组中也存在时(即FilterTag和MsgTag有交集),订阅才接收该发布到Topic的消息;3)如果FilterTag数组有值,但MsgTag没设置,则不接收任何发布到Topic的消息,可以认为是2)的一种特例,此时FilterTag和MsgTag没有交集。规则整体的设计思想是以订阅者的意愿为主。
|
544
|
-
:rtype: list of str
|
545
|
-
"""
|
546
|
-
return self._FilterTag
|
547
|
-
|
548
|
-
@FilterTag.setter
|
549
|
-
def FilterTag(self, FilterTag):
|
550
|
-
self._FilterTag = FilterTag
|
551
|
-
|
552
|
-
@property
|
553
|
-
def BindingKey(self):
|
554
|
-
"""BindingKey数量不超过5个, 每个BindingKey长度不超过64字节,该字段表示订阅接收消息的过滤策略,每个BindingKey最多含有15个“.”, 即最多16个词组。
|
555
|
-
:rtype: list of str
|
556
|
-
"""
|
557
|
-
return self._BindingKey
|
558
|
-
|
559
|
-
@BindingKey.setter
|
560
|
-
def BindingKey(self, BindingKey):
|
561
|
-
self._BindingKey = BindingKey
|
562
|
-
|
563
|
-
@property
|
564
|
-
def NotifyContentFormat(self):
|
565
|
-
"""推送内容的格式。取值:1)JSON;2)SIMPLIFIED,即raw格式。如果Protocol是queue,则取值必须为SIMPLIFIED。如果Protocol是http,两个值均可以,默认值是JSON。
|
566
|
-
:rtype: str
|
567
|
-
"""
|
568
|
-
return self._NotifyContentFormat
|
569
|
-
|
570
|
-
@NotifyContentFormat.setter
|
571
|
-
def NotifyContentFormat(self, NotifyContentFormat):
|
572
|
-
self._NotifyContentFormat = NotifyContentFormat
|
573
|
-
|
574
|
-
|
575
|
-
def _deserialize(self, params):
|
576
|
-
self._TopicName = params.get("TopicName")
|
577
|
-
self._SubscriptionName = params.get("SubscriptionName")
|
578
|
-
self._Protocol = params.get("Protocol")
|
579
|
-
self._Endpoint = params.get("Endpoint")
|
580
|
-
self._NotifyStrategy = params.get("NotifyStrategy")
|
581
|
-
self._FilterTag = params.get("FilterTag")
|
582
|
-
self._BindingKey = params.get("BindingKey")
|
583
|
-
self._NotifyContentFormat = params.get("NotifyContentFormat")
|
584
|
-
memeber_set = set(params.keys())
|
585
|
-
for name, value in vars(self).items():
|
586
|
-
property_name = name[1:]
|
587
|
-
if property_name in memeber_set:
|
588
|
-
memeber_set.remove(property_name)
|
589
|
-
if len(memeber_set) > 0:
|
590
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
class CreateSubscribeResponse(AbstractModel):
|
595
|
-
"""CreateSubscribe返回参数结构体
|
596
|
-
|
597
|
-
"""
|
598
|
-
|
599
|
-
def __init__(self):
|
600
|
-
r"""
|
601
|
-
:param _SubscriptionId: SubscriptionId
|
602
|
-
:type SubscriptionId: str
|
603
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
604
|
-
:type RequestId: str
|
605
|
-
"""
|
606
|
-
self._SubscriptionId = None
|
607
|
-
self._RequestId = None
|
608
|
-
|
609
|
-
@property
|
610
|
-
def SubscriptionId(self):
|
611
|
-
"""SubscriptionId
|
612
|
-
:rtype: str
|
613
|
-
"""
|
614
|
-
return self._SubscriptionId
|
615
|
-
|
616
|
-
@SubscriptionId.setter
|
617
|
-
def SubscriptionId(self, SubscriptionId):
|
618
|
-
self._SubscriptionId = SubscriptionId
|
619
|
-
|
620
|
-
@property
|
621
|
-
def RequestId(self):
|
622
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
623
|
-
:rtype: str
|
624
|
-
"""
|
625
|
-
return self._RequestId
|
626
|
-
|
627
|
-
@RequestId.setter
|
628
|
-
def RequestId(self, RequestId):
|
629
|
-
self._RequestId = RequestId
|
630
|
-
|
631
|
-
|
632
|
-
def _deserialize(self, params):
|
633
|
-
self._SubscriptionId = params.get("SubscriptionId")
|
634
|
-
self._RequestId = params.get("RequestId")
|
635
|
-
|
636
|
-
|
637
|
-
class CreateTopicRequest(AbstractModel):
|
638
|
-
"""CreateTopic请求参数结构体
|
639
|
-
|
640
|
-
"""
|
641
|
-
|
642
|
-
def __init__(self):
|
643
|
-
r"""
|
644
|
-
:param _TopicName: 主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
645
|
-
:type TopicName: str
|
646
|
-
:param _MaxMsgSize: 消息最大长度。取值范围 1024-65536 Byte(即1-64K),默认值 65536。
|
647
|
-
:type MaxMsgSize: int
|
648
|
-
:param _FilterType: 用于指定主题的消息匹配策略。1:表示标签匹配策略;2:表示路由匹配策略,默认值为标签匹配策略。
|
649
|
-
:type FilterType: int
|
650
|
-
:param _MsgRetentionSeconds: 消息保存时间。取值范围60 - 86400 s(即1分钟 - 1天),默认值86400。
|
651
|
-
:type MsgRetentionSeconds: int
|
652
|
-
:param _Trace: 是否开启消息轨迹标识,true表示开启,false表示不开启,不填表示不开启。
|
653
|
-
:type Trace: bool
|
654
|
-
"""
|
655
|
-
self._TopicName = None
|
656
|
-
self._MaxMsgSize = None
|
657
|
-
self._FilterType = None
|
658
|
-
self._MsgRetentionSeconds = None
|
659
|
-
self._Trace = None
|
660
|
-
|
661
|
-
@property
|
662
|
-
def TopicName(self):
|
663
|
-
"""主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
664
|
-
:rtype: str
|
665
|
-
"""
|
666
|
-
return self._TopicName
|
667
|
-
|
668
|
-
@TopicName.setter
|
669
|
-
def TopicName(self, TopicName):
|
670
|
-
self._TopicName = TopicName
|
671
|
-
|
672
|
-
@property
|
673
|
-
def MaxMsgSize(self):
|
674
|
-
"""消息最大长度。取值范围 1024-65536 Byte(即1-64K),默认值 65536。
|
675
|
-
:rtype: int
|
676
|
-
"""
|
677
|
-
return self._MaxMsgSize
|
678
|
-
|
679
|
-
@MaxMsgSize.setter
|
680
|
-
def MaxMsgSize(self, MaxMsgSize):
|
681
|
-
self._MaxMsgSize = MaxMsgSize
|
682
|
-
|
683
|
-
@property
|
684
|
-
def FilterType(self):
|
685
|
-
"""用于指定主题的消息匹配策略。1:表示标签匹配策略;2:表示路由匹配策略,默认值为标签匹配策略。
|
686
|
-
:rtype: int
|
687
|
-
"""
|
688
|
-
return self._FilterType
|
689
|
-
|
690
|
-
@FilterType.setter
|
691
|
-
def FilterType(self, FilterType):
|
692
|
-
self._FilterType = FilterType
|
693
|
-
|
694
|
-
@property
|
695
|
-
def MsgRetentionSeconds(self):
|
696
|
-
"""消息保存时间。取值范围60 - 86400 s(即1分钟 - 1天),默认值86400。
|
697
|
-
:rtype: int
|
698
|
-
"""
|
699
|
-
return self._MsgRetentionSeconds
|
700
|
-
|
701
|
-
@MsgRetentionSeconds.setter
|
702
|
-
def MsgRetentionSeconds(self, MsgRetentionSeconds):
|
703
|
-
self._MsgRetentionSeconds = MsgRetentionSeconds
|
704
|
-
|
705
|
-
@property
|
706
|
-
def Trace(self):
|
707
|
-
"""是否开启消息轨迹标识,true表示开启,false表示不开启,不填表示不开启。
|
708
|
-
:rtype: bool
|
709
|
-
"""
|
710
|
-
return self._Trace
|
711
|
-
|
712
|
-
@Trace.setter
|
713
|
-
def Trace(self, Trace):
|
714
|
-
self._Trace = Trace
|
715
|
-
|
716
|
-
|
717
|
-
def _deserialize(self, params):
|
718
|
-
self._TopicName = params.get("TopicName")
|
719
|
-
self._MaxMsgSize = params.get("MaxMsgSize")
|
720
|
-
self._FilterType = params.get("FilterType")
|
721
|
-
self._MsgRetentionSeconds = params.get("MsgRetentionSeconds")
|
722
|
-
self._Trace = params.get("Trace")
|
723
|
-
memeber_set = set(params.keys())
|
724
|
-
for name, value in vars(self).items():
|
725
|
-
property_name = name[1:]
|
726
|
-
if property_name in memeber_set:
|
727
|
-
memeber_set.remove(property_name)
|
728
|
-
if len(memeber_set) > 0:
|
729
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
class CreateTopicResponse(AbstractModel):
|
734
|
-
"""CreateTopic返回参数结构体
|
735
|
-
|
736
|
-
"""
|
737
|
-
|
738
|
-
def __init__(self):
|
739
|
-
r"""
|
740
|
-
:param _TopicId: TopicName
|
741
|
-
:type TopicId: str
|
742
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
743
|
-
:type RequestId: str
|
744
|
-
"""
|
745
|
-
self._TopicId = None
|
746
|
-
self._RequestId = None
|
747
|
-
|
748
|
-
@property
|
749
|
-
def TopicId(self):
|
750
|
-
"""TopicName
|
751
|
-
:rtype: str
|
752
|
-
"""
|
753
|
-
return self._TopicId
|
754
|
-
|
755
|
-
@TopicId.setter
|
756
|
-
def TopicId(self, TopicId):
|
757
|
-
self._TopicId = TopicId
|
758
|
-
|
759
|
-
@property
|
760
|
-
def RequestId(self):
|
761
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
762
|
-
:rtype: str
|
763
|
-
"""
|
764
|
-
return self._RequestId
|
765
|
-
|
766
|
-
@RequestId.setter
|
767
|
-
def RequestId(self, RequestId):
|
768
|
-
self._RequestId = RequestId
|
769
|
-
|
770
|
-
|
771
|
-
def _deserialize(self, params):
|
772
|
-
self._TopicId = params.get("TopicId")
|
773
|
-
self._RequestId = params.get("RequestId")
|
774
|
-
|
775
|
-
|
776
|
-
class DeadLetterPolicy(AbstractModel):
|
777
|
-
"""死信队列策略
|
778
|
-
|
779
|
-
"""
|
780
|
-
|
781
|
-
def __init__(self):
|
782
|
-
r"""
|
783
|
-
:param _DeadLetterQueue: 死信队列。
|
784
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
785
|
-
:type DeadLetterQueue: str
|
786
|
-
:param _DeadLetterQueueName: 死信队列名字。
|
787
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
788
|
-
:type DeadLetterQueueName: str
|
789
|
-
:param _MaxTimeToLive: 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。
|
790
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
791
|
-
:type MaxTimeToLive: int
|
792
|
-
:param _Policy: 死信队列策略。
|
793
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
794
|
-
:type Policy: int
|
795
|
-
:param _MaxReceiveCount: 最大接收次数。
|
796
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
797
|
-
:type MaxReceiveCount: int
|
798
|
-
"""
|
799
|
-
self._DeadLetterQueue = None
|
800
|
-
self._DeadLetterQueueName = None
|
801
|
-
self._MaxTimeToLive = None
|
802
|
-
self._Policy = None
|
803
|
-
self._MaxReceiveCount = None
|
804
|
-
|
805
|
-
@property
|
806
|
-
def DeadLetterQueue(self):
|
807
|
-
"""死信队列。
|
808
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
809
|
-
:rtype: str
|
810
|
-
"""
|
811
|
-
return self._DeadLetterQueue
|
812
|
-
|
813
|
-
@DeadLetterQueue.setter
|
814
|
-
def DeadLetterQueue(self, DeadLetterQueue):
|
815
|
-
self._DeadLetterQueue = DeadLetterQueue
|
816
|
-
|
817
|
-
@property
|
818
|
-
def DeadLetterQueueName(self):
|
819
|
-
"""死信队列名字。
|
820
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
821
|
-
:rtype: str
|
822
|
-
"""
|
823
|
-
return self._DeadLetterQueueName
|
824
|
-
|
825
|
-
@DeadLetterQueueName.setter
|
826
|
-
def DeadLetterQueueName(self, DeadLetterQueueName):
|
827
|
-
self._DeadLetterQueueName = DeadLetterQueueName
|
828
|
-
|
829
|
-
@property
|
830
|
-
def MaxTimeToLive(self):
|
831
|
-
"""最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。
|
832
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
833
|
-
:rtype: int
|
834
|
-
"""
|
835
|
-
return self._MaxTimeToLive
|
836
|
-
|
837
|
-
@MaxTimeToLive.setter
|
838
|
-
def MaxTimeToLive(self, MaxTimeToLive):
|
839
|
-
self._MaxTimeToLive = MaxTimeToLive
|
840
|
-
|
841
|
-
@property
|
842
|
-
def Policy(self):
|
843
|
-
"""死信队列策略。
|
844
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
845
|
-
:rtype: int
|
846
|
-
"""
|
847
|
-
return self._Policy
|
848
|
-
|
849
|
-
@Policy.setter
|
850
|
-
def Policy(self, Policy):
|
851
|
-
self._Policy = Policy
|
852
|
-
|
853
|
-
@property
|
854
|
-
def MaxReceiveCount(self):
|
855
|
-
"""最大接收次数。
|
856
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
857
|
-
:rtype: int
|
858
|
-
"""
|
859
|
-
return self._MaxReceiveCount
|
860
|
-
|
861
|
-
@MaxReceiveCount.setter
|
862
|
-
def MaxReceiveCount(self, MaxReceiveCount):
|
863
|
-
self._MaxReceiveCount = MaxReceiveCount
|
864
|
-
|
865
|
-
|
866
|
-
def _deserialize(self, params):
|
867
|
-
self._DeadLetterQueue = params.get("DeadLetterQueue")
|
868
|
-
self._DeadLetterQueueName = params.get("DeadLetterQueueName")
|
869
|
-
self._MaxTimeToLive = params.get("MaxTimeToLive")
|
870
|
-
self._Policy = params.get("Policy")
|
871
|
-
self._MaxReceiveCount = params.get("MaxReceiveCount")
|
872
|
-
memeber_set = set(params.keys())
|
873
|
-
for name, value in vars(self).items():
|
874
|
-
property_name = name[1:]
|
875
|
-
if property_name in memeber_set:
|
876
|
-
memeber_set.remove(property_name)
|
877
|
-
if len(memeber_set) > 0:
|
878
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
class DeadLetterSource(AbstractModel):
|
883
|
-
"""死信源队列信息
|
884
|
-
|
885
|
-
"""
|
886
|
-
|
887
|
-
def __init__(self):
|
888
|
-
r"""
|
889
|
-
:param _QueueId: 消息队列ID。
|
890
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
891
|
-
:type QueueId: str
|
892
|
-
:param _QueueName: 消息队列名字。
|
893
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
894
|
-
:type QueueName: str
|
895
|
-
"""
|
896
|
-
self._QueueId = None
|
897
|
-
self._QueueName = None
|
898
|
-
|
899
|
-
@property
|
900
|
-
def QueueId(self):
|
901
|
-
"""消息队列ID。
|
902
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
903
|
-
:rtype: str
|
904
|
-
"""
|
905
|
-
return self._QueueId
|
906
|
-
|
907
|
-
@QueueId.setter
|
908
|
-
def QueueId(self, QueueId):
|
909
|
-
self._QueueId = QueueId
|
910
|
-
|
911
|
-
@property
|
912
|
-
def QueueName(self):
|
913
|
-
"""消息队列名字。
|
914
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
915
|
-
:rtype: str
|
916
|
-
"""
|
917
|
-
return self._QueueName
|
918
|
-
|
919
|
-
@QueueName.setter
|
920
|
-
def QueueName(self, QueueName):
|
921
|
-
self._QueueName = QueueName
|
922
|
-
|
923
|
-
|
924
|
-
def _deserialize(self, params):
|
925
|
-
self._QueueId = params.get("QueueId")
|
926
|
-
self._QueueName = params.get("QueueName")
|
927
|
-
memeber_set = set(params.keys())
|
928
|
-
for name, value in vars(self).items():
|
929
|
-
property_name = name[1:]
|
930
|
-
if property_name in memeber_set:
|
931
|
-
memeber_set.remove(property_name)
|
932
|
-
if len(memeber_set) > 0:
|
933
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
class DeleteQueueRequest(AbstractModel):
|
938
|
-
"""DeleteQueue请求参数结构体
|
939
|
-
|
940
|
-
"""
|
941
|
-
|
942
|
-
def __init__(self):
|
943
|
-
r"""
|
944
|
-
:param _QueueName: 队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
945
|
-
:type QueueName: str
|
946
|
-
"""
|
947
|
-
self._QueueName = None
|
948
|
-
|
949
|
-
@property
|
950
|
-
def QueueName(self):
|
951
|
-
"""队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
952
|
-
:rtype: str
|
953
|
-
"""
|
954
|
-
return self._QueueName
|
955
|
-
|
956
|
-
@QueueName.setter
|
957
|
-
def QueueName(self, QueueName):
|
958
|
-
self._QueueName = QueueName
|
959
|
-
|
960
|
-
|
961
|
-
def _deserialize(self, params):
|
962
|
-
self._QueueName = params.get("QueueName")
|
963
|
-
memeber_set = set(params.keys())
|
964
|
-
for name, value in vars(self).items():
|
965
|
-
property_name = name[1:]
|
966
|
-
if property_name in memeber_set:
|
967
|
-
memeber_set.remove(property_name)
|
968
|
-
if len(memeber_set) > 0:
|
969
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
class DeleteQueueResponse(AbstractModel):
|
974
|
-
"""DeleteQueue返回参数结构体
|
975
|
-
|
976
|
-
"""
|
977
|
-
|
978
|
-
def __init__(self):
|
979
|
-
r"""
|
980
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
981
|
-
:type RequestId: str
|
982
|
-
"""
|
983
|
-
self._RequestId = None
|
984
|
-
|
985
|
-
@property
|
986
|
-
def RequestId(self):
|
987
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
988
|
-
:rtype: str
|
989
|
-
"""
|
990
|
-
return self._RequestId
|
991
|
-
|
992
|
-
@RequestId.setter
|
993
|
-
def RequestId(self, RequestId):
|
994
|
-
self._RequestId = RequestId
|
995
|
-
|
996
|
-
|
997
|
-
def _deserialize(self, params):
|
998
|
-
self._RequestId = params.get("RequestId")
|
999
|
-
|
1000
|
-
|
1001
|
-
class DeleteSubscribeRequest(AbstractModel):
|
1002
|
-
"""DeleteSubscribe请求参数结构体
|
1003
|
-
|
1004
|
-
"""
|
1005
|
-
|
1006
|
-
def __init__(self):
|
1007
|
-
r"""
|
1008
|
-
:param _TopicName: 主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
1009
|
-
:type TopicName: str
|
1010
|
-
:param _SubscriptionName: 订阅名字,在单个地域同一帐号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
1011
|
-
:type SubscriptionName: str
|
1012
|
-
"""
|
1013
|
-
self._TopicName = None
|
1014
|
-
self._SubscriptionName = None
|
1015
|
-
|
1016
|
-
@property
|
1017
|
-
def TopicName(self):
|
1018
|
-
"""主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
1019
|
-
:rtype: str
|
1020
|
-
"""
|
1021
|
-
return self._TopicName
|
1022
|
-
|
1023
|
-
@TopicName.setter
|
1024
|
-
def TopicName(self, TopicName):
|
1025
|
-
self._TopicName = TopicName
|
1026
|
-
|
1027
|
-
@property
|
1028
|
-
def SubscriptionName(self):
|
1029
|
-
"""订阅名字,在单个地域同一帐号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
1030
|
-
:rtype: str
|
1031
|
-
"""
|
1032
|
-
return self._SubscriptionName
|
1033
|
-
|
1034
|
-
@SubscriptionName.setter
|
1035
|
-
def SubscriptionName(self, SubscriptionName):
|
1036
|
-
self._SubscriptionName = SubscriptionName
|
1037
|
-
|
1038
|
-
|
1039
|
-
def _deserialize(self, params):
|
1040
|
-
self._TopicName = params.get("TopicName")
|
1041
|
-
self._SubscriptionName = params.get("SubscriptionName")
|
1042
|
-
memeber_set = set(params.keys())
|
1043
|
-
for name, value in vars(self).items():
|
1044
|
-
property_name = name[1:]
|
1045
|
-
if property_name in memeber_set:
|
1046
|
-
memeber_set.remove(property_name)
|
1047
|
-
if len(memeber_set) > 0:
|
1048
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
class DeleteSubscribeResponse(AbstractModel):
|
1053
|
-
"""DeleteSubscribe返回参数结构体
|
1054
|
-
|
1055
|
-
"""
|
1056
|
-
|
1057
|
-
def __init__(self):
|
1058
|
-
r"""
|
1059
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1060
|
-
:type RequestId: str
|
1061
|
-
"""
|
1062
|
-
self._RequestId = None
|
1063
|
-
|
1064
|
-
@property
|
1065
|
-
def RequestId(self):
|
1066
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1067
|
-
:rtype: str
|
1068
|
-
"""
|
1069
|
-
return self._RequestId
|
1070
|
-
|
1071
|
-
@RequestId.setter
|
1072
|
-
def RequestId(self, RequestId):
|
1073
|
-
self._RequestId = RequestId
|
1074
|
-
|
1075
|
-
|
1076
|
-
def _deserialize(self, params):
|
1077
|
-
self._RequestId = params.get("RequestId")
|
1078
|
-
|
1079
|
-
|
1080
|
-
class DeleteTopicRequest(AbstractModel):
|
1081
|
-
"""DeleteTopic请求参数结构体
|
1082
|
-
|
1083
|
-
"""
|
1084
|
-
|
1085
|
-
def __init__(self):
|
1086
|
-
r"""
|
1087
|
-
:param _TopicName: 主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
1088
|
-
:type TopicName: str
|
1089
|
-
"""
|
1090
|
-
self._TopicName = None
|
1091
|
-
|
1092
|
-
@property
|
1093
|
-
def TopicName(self):
|
1094
|
-
"""主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
1095
|
-
:rtype: str
|
1096
|
-
"""
|
1097
|
-
return self._TopicName
|
1098
|
-
|
1099
|
-
@TopicName.setter
|
1100
|
-
def TopicName(self, TopicName):
|
1101
|
-
self._TopicName = TopicName
|
1102
|
-
|
1103
|
-
|
1104
|
-
def _deserialize(self, params):
|
1105
|
-
self._TopicName = params.get("TopicName")
|
1106
|
-
memeber_set = set(params.keys())
|
1107
|
-
for name, value in vars(self).items():
|
1108
|
-
property_name = name[1:]
|
1109
|
-
if property_name in memeber_set:
|
1110
|
-
memeber_set.remove(property_name)
|
1111
|
-
if len(memeber_set) > 0:
|
1112
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
class DeleteTopicResponse(AbstractModel):
|
1117
|
-
"""DeleteTopic返回参数结构体
|
1118
|
-
|
1119
|
-
"""
|
1120
|
-
|
1121
|
-
def __init__(self):
|
1122
|
-
r"""
|
1123
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1124
|
-
:type RequestId: str
|
1125
|
-
"""
|
1126
|
-
self._RequestId = None
|
1127
|
-
|
1128
|
-
@property
|
1129
|
-
def RequestId(self):
|
1130
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1131
|
-
:rtype: str
|
1132
|
-
"""
|
1133
|
-
return self._RequestId
|
1134
|
-
|
1135
|
-
@RequestId.setter
|
1136
|
-
def RequestId(self, RequestId):
|
1137
|
-
self._RequestId = RequestId
|
1138
|
-
|
1139
|
-
|
1140
|
-
def _deserialize(self, params):
|
1141
|
-
self._RequestId = params.get("RequestId")
|
1142
|
-
|
1143
|
-
|
1144
|
-
class DescribeDeadLetterSourceQueuesRequest(AbstractModel):
|
1145
|
-
"""DescribeDeadLetterSourceQueues请求参数结构体
|
1146
|
-
|
1147
|
-
"""
|
1148
|
-
|
1149
|
-
def __init__(self):
|
1150
|
-
r"""
|
1151
|
-
:param _DeadLetterQueueName: 死信队列名称
|
1152
|
-
:type DeadLetterQueueName: str
|
1153
|
-
:param _Limit: 分页时本页获取主题列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0。
|
1154
|
-
:type Limit: int
|
1155
|
-
:param _Offset: 分页时本页获取主题的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
1156
|
-
:type Offset: int
|
1157
|
-
:param _Filters: 过滤死信队列源队列名称,目前仅支持SourceQueueName过滤
|
1158
|
-
:type Filters: list of Filter
|
1159
|
-
"""
|
1160
|
-
self._DeadLetterQueueName = None
|
1161
|
-
self._Limit = None
|
1162
|
-
self._Offset = None
|
1163
|
-
self._Filters = None
|
1164
|
-
|
1165
|
-
@property
|
1166
|
-
def DeadLetterQueueName(self):
|
1167
|
-
"""死信队列名称
|
1168
|
-
:rtype: str
|
1169
|
-
"""
|
1170
|
-
return self._DeadLetterQueueName
|
1171
|
-
|
1172
|
-
@DeadLetterQueueName.setter
|
1173
|
-
def DeadLetterQueueName(self, DeadLetterQueueName):
|
1174
|
-
self._DeadLetterQueueName = DeadLetterQueueName
|
1175
|
-
|
1176
|
-
@property
|
1177
|
-
def Limit(self):
|
1178
|
-
"""分页时本页获取主题列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0。
|
1179
|
-
:rtype: int
|
1180
|
-
"""
|
1181
|
-
return self._Limit
|
1182
|
-
|
1183
|
-
@Limit.setter
|
1184
|
-
def Limit(self, Limit):
|
1185
|
-
self._Limit = Limit
|
1186
|
-
|
1187
|
-
@property
|
1188
|
-
def Offset(self):
|
1189
|
-
"""分页时本页获取主题的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
1190
|
-
:rtype: int
|
1191
|
-
"""
|
1192
|
-
return self._Offset
|
1193
|
-
|
1194
|
-
@Offset.setter
|
1195
|
-
def Offset(self, Offset):
|
1196
|
-
self._Offset = Offset
|
1197
|
-
|
1198
|
-
@property
|
1199
|
-
def Filters(self):
|
1200
|
-
"""过滤死信队列源队列名称,目前仅支持SourceQueueName过滤
|
1201
|
-
:rtype: list of Filter
|
1202
|
-
"""
|
1203
|
-
return self._Filters
|
1204
|
-
|
1205
|
-
@Filters.setter
|
1206
|
-
def Filters(self, Filters):
|
1207
|
-
self._Filters = Filters
|
1208
|
-
|
1209
|
-
|
1210
|
-
def _deserialize(self, params):
|
1211
|
-
self._DeadLetterQueueName = params.get("DeadLetterQueueName")
|
1212
|
-
self._Limit = params.get("Limit")
|
1213
|
-
self._Offset = params.get("Offset")
|
1214
|
-
if params.get("Filters") is not None:
|
1215
|
-
self._Filters = []
|
1216
|
-
for item in params.get("Filters"):
|
1217
|
-
obj = Filter()
|
1218
|
-
obj._deserialize(item)
|
1219
|
-
self._Filters.append(obj)
|
1220
|
-
memeber_set = set(params.keys())
|
1221
|
-
for name, value in vars(self).items():
|
1222
|
-
property_name = name[1:]
|
1223
|
-
if property_name in memeber_set:
|
1224
|
-
memeber_set.remove(property_name)
|
1225
|
-
if len(memeber_set) > 0:
|
1226
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
class DescribeDeadLetterSourceQueuesResponse(AbstractModel):
|
1231
|
-
"""DescribeDeadLetterSourceQueues返回参数结构体
|
1232
|
-
|
1233
|
-
"""
|
1234
|
-
|
1235
|
-
def __init__(self):
|
1236
|
-
r"""
|
1237
|
-
:param _TotalCount: 满足本次条件的队列个数
|
1238
|
-
:type TotalCount: int
|
1239
|
-
:param _QueueSet: 死信队列源队列
|
1240
|
-
:type QueueSet: list of DeadLetterSource
|
1241
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1242
|
-
:type RequestId: str
|
1243
|
-
"""
|
1244
|
-
self._TotalCount = None
|
1245
|
-
self._QueueSet = None
|
1246
|
-
self._RequestId = None
|
1247
|
-
|
1248
|
-
@property
|
1249
|
-
def TotalCount(self):
|
1250
|
-
"""满足本次条件的队列个数
|
1251
|
-
:rtype: int
|
1252
|
-
"""
|
1253
|
-
return self._TotalCount
|
1254
|
-
|
1255
|
-
@TotalCount.setter
|
1256
|
-
def TotalCount(self, TotalCount):
|
1257
|
-
self._TotalCount = TotalCount
|
1258
|
-
|
1259
|
-
@property
|
1260
|
-
def QueueSet(self):
|
1261
|
-
"""死信队列源队列
|
1262
|
-
:rtype: list of DeadLetterSource
|
1263
|
-
"""
|
1264
|
-
return self._QueueSet
|
1265
|
-
|
1266
|
-
@QueueSet.setter
|
1267
|
-
def QueueSet(self, QueueSet):
|
1268
|
-
self._QueueSet = QueueSet
|
1269
|
-
|
1270
|
-
@property
|
1271
|
-
def RequestId(self):
|
1272
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1273
|
-
:rtype: str
|
1274
|
-
"""
|
1275
|
-
return self._RequestId
|
1276
|
-
|
1277
|
-
@RequestId.setter
|
1278
|
-
def RequestId(self, RequestId):
|
1279
|
-
self._RequestId = RequestId
|
1280
|
-
|
1281
|
-
|
1282
|
-
def _deserialize(self, params):
|
1283
|
-
self._TotalCount = params.get("TotalCount")
|
1284
|
-
if params.get("QueueSet") is not None:
|
1285
|
-
self._QueueSet = []
|
1286
|
-
for item in params.get("QueueSet"):
|
1287
|
-
obj = DeadLetterSource()
|
1288
|
-
obj._deserialize(item)
|
1289
|
-
self._QueueSet.append(obj)
|
1290
|
-
self._RequestId = params.get("RequestId")
|
1291
|
-
|
1292
|
-
|
1293
|
-
class DescribeQueueDetailRequest(AbstractModel):
|
1294
|
-
"""DescribeQueueDetail请求参数结构体
|
1295
|
-
|
1296
|
-
"""
|
1297
|
-
|
1298
|
-
def __init__(self):
|
1299
|
-
r"""
|
1300
|
-
:param _TagKey: 标签搜索
|
1301
|
-
:type TagKey: str
|
1302
|
-
:param _Limit: 分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
1303
|
-
:type Limit: int
|
1304
|
-
:param _QueueName: 精确匹配QueueName
|
1305
|
-
:type QueueName: str
|
1306
|
-
:param _Filters: 筛选参数,目前支持QueueName筛选,且仅支持一个关键字
|
1307
|
-
:type Filters: list of Filter
|
1308
|
-
:param _Offset: 分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0
|
1309
|
-
:type Offset: int
|
1310
|
-
"""
|
1311
|
-
self._TagKey = None
|
1312
|
-
self._Limit = None
|
1313
|
-
self._QueueName = None
|
1314
|
-
self._Filters = None
|
1315
|
-
self._Offset = None
|
1316
|
-
|
1317
|
-
@property
|
1318
|
-
def TagKey(self):
|
1319
|
-
"""标签搜索
|
1320
|
-
:rtype: str
|
1321
|
-
"""
|
1322
|
-
return self._TagKey
|
1323
|
-
|
1324
|
-
@TagKey.setter
|
1325
|
-
def TagKey(self, TagKey):
|
1326
|
-
self._TagKey = TagKey
|
1327
|
-
|
1328
|
-
@property
|
1329
|
-
def Limit(self):
|
1330
|
-
"""分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
1331
|
-
:rtype: int
|
1332
|
-
"""
|
1333
|
-
return self._Limit
|
1334
|
-
|
1335
|
-
@Limit.setter
|
1336
|
-
def Limit(self, Limit):
|
1337
|
-
self._Limit = Limit
|
1338
|
-
|
1339
|
-
@property
|
1340
|
-
def QueueName(self):
|
1341
|
-
"""精确匹配QueueName
|
1342
|
-
:rtype: str
|
1343
|
-
"""
|
1344
|
-
return self._QueueName
|
1345
|
-
|
1346
|
-
@QueueName.setter
|
1347
|
-
def QueueName(self, QueueName):
|
1348
|
-
self._QueueName = QueueName
|
1349
|
-
|
1350
|
-
@property
|
1351
|
-
def Filters(self):
|
1352
|
-
"""筛选参数,目前支持QueueName筛选,且仅支持一个关键字
|
1353
|
-
:rtype: list of Filter
|
1354
|
-
"""
|
1355
|
-
return self._Filters
|
1356
|
-
|
1357
|
-
@Filters.setter
|
1358
|
-
def Filters(self, Filters):
|
1359
|
-
self._Filters = Filters
|
1360
|
-
|
1361
|
-
@property
|
1362
|
-
def Offset(self):
|
1363
|
-
"""分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0
|
1364
|
-
:rtype: int
|
1365
|
-
"""
|
1366
|
-
return self._Offset
|
1367
|
-
|
1368
|
-
@Offset.setter
|
1369
|
-
def Offset(self, Offset):
|
1370
|
-
self._Offset = Offset
|
1371
|
-
|
1372
|
-
|
1373
|
-
def _deserialize(self, params):
|
1374
|
-
self._TagKey = params.get("TagKey")
|
1375
|
-
self._Limit = params.get("Limit")
|
1376
|
-
self._QueueName = params.get("QueueName")
|
1377
|
-
if params.get("Filters") is not None:
|
1378
|
-
self._Filters = []
|
1379
|
-
for item in params.get("Filters"):
|
1380
|
-
obj = Filter()
|
1381
|
-
obj._deserialize(item)
|
1382
|
-
self._Filters.append(obj)
|
1383
|
-
self._Offset = params.get("Offset")
|
1384
|
-
memeber_set = set(params.keys())
|
1385
|
-
for name, value in vars(self).items():
|
1386
|
-
property_name = name[1:]
|
1387
|
-
if property_name in memeber_set:
|
1388
|
-
memeber_set.remove(property_name)
|
1389
|
-
if len(memeber_set) > 0:
|
1390
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
class DescribeQueueDetailResponse(AbstractModel):
|
1395
|
-
"""DescribeQueueDetail返回参数结构体
|
1396
|
-
|
1397
|
-
"""
|
1398
|
-
|
1399
|
-
def __init__(self):
|
1400
|
-
r"""
|
1401
|
-
:param _TotalCount: 总队列数。
|
1402
|
-
:type TotalCount: int
|
1403
|
-
:param _QueueSet: 队列详情列表。
|
1404
|
-
:type QueueSet: list of QueueSet
|
1405
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1406
|
-
:type RequestId: str
|
1407
|
-
"""
|
1408
|
-
self._TotalCount = None
|
1409
|
-
self._QueueSet = None
|
1410
|
-
self._RequestId = None
|
1411
|
-
|
1412
|
-
@property
|
1413
|
-
def TotalCount(self):
|
1414
|
-
"""总队列数。
|
1415
|
-
:rtype: int
|
1416
|
-
"""
|
1417
|
-
return self._TotalCount
|
1418
|
-
|
1419
|
-
@TotalCount.setter
|
1420
|
-
def TotalCount(self, TotalCount):
|
1421
|
-
self._TotalCount = TotalCount
|
1422
|
-
|
1423
|
-
@property
|
1424
|
-
def QueueSet(self):
|
1425
|
-
"""队列详情列表。
|
1426
|
-
:rtype: list of QueueSet
|
1427
|
-
"""
|
1428
|
-
return self._QueueSet
|
1429
|
-
|
1430
|
-
@QueueSet.setter
|
1431
|
-
def QueueSet(self, QueueSet):
|
1432
|
-
self._QueueSet = QueueSet
|
1433
|
-
|
1434
|
-
@property
|
1435
|
-
def RequestId(self):
|
1436
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1437
|
-
:rtype: str
|
1438
|
-
"""
|
1439
|
-
return self._RequestId
|
1440
|
-
|
1441
|
-
@RequestId.setter
|
1442
|
-
def RequestId(self, RequestId):
|
1443
|
-
self._RequestId = RequestId
|
1444
|
-
|
1445
|
-
|
1446
|
-
def _deserialize(self, params):
|
1447
|
-
self._TotalCount = params.get("TotalCount")
|
1448
|
-
if params.get("QueueSet") is not None:
|
1449
|
-
self._QueueSet = []
|
1450
|
-
for item in params.get("QueueSet"):
|
1451
|
-
obj = QueueSet()
|
1452
|
-
obj._deserialize(item)
|
1453
|
-
self._QueueSet.append(obj)
|
1454
|
-
self._RequestId = params.get("RequestId")
|
1455
|
-
|
1456
|
-
|
1457
|
-
class DescribeSubscriptionDetailRequest(AbstractModel):
|
1458
|
-
"""DescribeSubscriptionDetail请求参数结构体
|
1459
|
-
|
1460
|
-
"""
|
1461
|
-
|
1462
|
-
def __init__(self):
|
1463
|
-
r"""
|
1464
|
-
:param _TopicName: 主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
1465
|
-
:type TopicName: str
|
1466
|
-
:param _Offset: 分页时本页获取主题列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0
|
1467
|
-
:type Offset: int
|
1468
|
-
:param _Limit: 分页时本页获取主题的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
1469
|
-
:type Limit: int
|
1470
|
-
:param _Filters: 筛选参数,目前只支持SubscriptionName,且仅支持一个关键字。
|
1471
|
-
:type Filters: list of Filter
|
1472
|
-
"""
|
1473
|
-
self._TopicName = None
|
1474
|
-
self._Offset = None
|
1475
|
-
self._Limit = None
|
1476
|
-
self._Filters = None
|
1477
|
-
|
1478
|
-
@property
|
1479
|
-
def TopicName(self):
|
1480
|
-
"""主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
1481
|
-
:rtype: str
|
1482
|
-
"""
|
1483
|
-
return self._TopicName
|
1484
|
-
|
1485
|
-
@TopicName.setter
|
1486
|
-
def TopicName(self, TopicName):
|
1487
|
-
self._TopicName = TopicName
|
1488
|
-
|
1489
|
-
@property
|
1490
|
-
def Offset(self):
|
1491
|
-
"""分页时本页获取主题列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0
|
1492
|
-
:rtype: int
|
1493
|
-
"""
|
1494
|
-
return self._Offset
|
1495
|
-
|
1496
|
-
@Offset.setter
|
1497
|
-
def Offset(self, Offset):
|
1498
|
-
self._Offset = Offset
|
1499
|
-
|
1500
|
-
@property
|
1501
|
-
def Limit(self):
|
1502
|
-
"""分页时本页获取主题的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
1503
|
-
:rtype: int
|
1504
|
-
"""
|
1505
|
-
return self._Limit
|
1506
|
-
|
1507
|
-
@Limit.setter
|
1508
|
-
def Limit(self, Limit):
|
1509
|
-
self._Limit = Limit
|
1510
|
-
|
1511
|
-
@property
|
1512
|
-
def Filters(self):
|
1513
|
-
"""筛选参数,目前只支持SubscriptionName,且仅支持一个关键字。
|
1514
|
-
:rtype: list of Filter
|
1515
|
-
"""
|
1516
|
-
return self._Filters
|
1517
|
-
|
1518
|
-
@Filters.setter
|
1519
|
-
def Filters(self, Filters):
|
1520
|
-
self._Filters = Filters
|
1521
|
-
|
1522
|
-
|
1523
|
-
def _deserialize(self, params):
|
1524
|
-
self._TopicName = params.get("TopicName")
|
1525
|
-
self._Offset = params.get("Offset")
|
1526
|
-
self._Limit = params.get("Limit")
|
1527
|
-
if params.get("Filters") is not None:
|
1528
|
-
self._Filters = []
|
1529
|
-
for item in params.get("Filters"):
|
1530
|
-
obj = Filter()
|
1531
|
-
obj._deserialize(item)
|
1532
|
-
self._Filters.append(obj)
|
1533
|
-
memeber_set = set(params.keys())
|
1534
|
-
for name, value in vars(self).items():
|
1535
|
-
property_name = name[1:]
|
1536
|
-
if property_name in memeber_set:
|
1537
|
-
memeber_set.remove(property_name)
|
1538
|
-
if len(memeber_set) > 0:
|
1539
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
class DescribeSubscriptionDetailResponse(AbstractModel):
|
1544
|
-
"""DescribeSubscriptionDetail返回参数结构体
|
1545
|
-
|
1546
|
-
"""
|
1547
|
-
|
1548
|
-
def __init__(self):
|
1549
|
-
r"""
|
1550
|
-
:param _TotalCount: 总数
|
1551
|
-
:type TotalCount: int
|
1552
|
-
:param _SubscriptionSet: Subscription属性集合
|
1553
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1554
|
-
:type SubscriptionSet: list of Subscription
|
1555
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1556
|
-
:type RequestId: str
|
1557
|
-
"""
|
1558
|
-
self._TotalCount = None
|
1559
|
-
self._SubscriptionSet = None
|
1560
|
-
self._RequestId = None
|
1561
|
-
|
1562
|
-
@property
|
1563
|
-
def TotalCount(self):
|
1564
|
-
"""总数
|
1565
|
-
:rtype: int
|
1566
|
-
"""
|
1567
|
-
return self._TotalCount
|
1568
|
-
|
1569
|
-
@TotalCount.setter
|
1570
|
-
def TotalCount(self, TotalCount):
|
1571
|
-
self._TotalCount = TotalCount
|
1572
|
-
|
1573
|
-
@property
|
1574
|
-
def SubscriptionSet(self):
|
1575
|
-
"""Subscription属性集合
|
1576
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1577
|
-
:rtype: list of Subscription
|
1578
|
-
"""
|
1579
|
-
return self._SubscriptionSet
|
1580
|
-
|
1581
|
-
@SubscriptionSet.setter
|
1582
|
-
def SubscriptionSet(self, SubscriptionSet):
|
1583
|
-
self._SubscriptionSet = SubscriptionSet
|
1584
|
-
|
1585
|
-
@property
|
1586
|
-
def RequestId(self):
|
1587
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1588
|
-
:rtype: str
|
1589
|
-
"""
|
1590
|
-
return self._RequestId
|
1591
|
-
|
1592
|
-
@RequestId.setter
|
1593
|
-
def RequestId(self, RequestId):
|
1594
|
-
self._RequestId = RequestId
|
1595
|
-
|
1596
|
-
|
1597
|
-
def _deserialize(self, params):
|
1598
|
-
self._TotalCount = params.get("TotalCount")
|
1599
|
-
if params.get("SubscriptionSet") is not None:
|
1600
|
-
self._SubscriptionSet = []
|
1601
|
-
for item in params.get("SubscriptionSet"):
|
1602
|
-
obj = Subscription()
|
1603
|
-
obj._deserialize(item)
|
1604
|
-
self._SubscriptionSet.append(obj)
|
1605
|
-
self._RequestId = params.get("RequestId")
|
1606
|
-
|
1607
|
-
|
1608
|
-
class DescribeTopicDetailRequest(AbstractModel):
|
1609
|
-
"""DescribeTopicDetail请求参数结构体
|
1610
|
-
|
1611
|
-
"""
|
1612
|
-
|
1613
|
-
def __init__(self):
|
1614
|
-
r"""
|
1615
|
-
:param _TagKey: 标签匹配。
|
1616
|
-
:type TagKey: str
|
1617
|
-
:param _Limit: 分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
1618
|
-
:type Limit: int
|
1619
|
-
:param _TopicName: 精确匹配TopicName。
|
1620
|
-
:type TopicName: str
|
1621
|
-
:param _Filters: 目前只支持过滤TopicName , 且只能填一个过滤值。
|
1622
|
-
:type Filters: list of Filter
|
1623
|
-
:param _Offset: 分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0。
|
1624
|
-
:type Offset: int
|
1625
|
-
"""
|
1626
|
-
self._TagKey = None
|
1627
|
-
self._Limit = None
|
1628
|
-
self._TopicName = None
|
1629
|
-
self._Filters = None
|
1630
|
-
self._Offset = None
|
1631
|
-
|
1632
|
-
@property
|
1633
|
-
def TagKey(self):
|
1634
|
-
"""标签匹配。
|
1635
|
-
:rtype: str
|
1636
|
-
"""
|
1637
|
-
return self._TagKey
|
1638
|
-
|
1639
|
-
@TagKey.setter
|
1640
|
-
def TagKey(self, TagKey):
|
1641
|
-
self._TagKey = TagKey
|
1642
|
-
|
1643
|
-
@property
|
1644
|
-
def Limit(self):
|
1645
|
-
"""分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
1646
|
-
:rtype: int
|
1647
|
-
"""
|
1648
|
-
return self._Limit
|
1649
|
-
|
1650
|
-
@Limit.setter
|
1651
|
-
def Limit(self, Limit):
|
1652
|
-
self._Limit = Limit
|
1653
|
-
|
1654
|
-
@property
|
1655
|
-
def TopicName(self):
|
1656
|
-
"""精确匹配TopicName。
|
1657
|
-
:rtype: str
|
1658
|
-
"""
|
1659
|
-
return self._TopicName
|
1660
|
-
|
1661
|
-
@TopicName.setter
|
1662
|
-
def TopicName(self, TopicName):
|
1663
|
-
self._TopicName = TopicName
|
1664
|
-
|
1665
|
-
@property
|
1666
|
-
def Filters(self):
|
1667
|
-
"""目前只支持过滤TopicName , 且只能填一个过滤值。
|
1668
|
-
:rtype: list of Filter
|
1669
|
-
"""
|
1670
|
-
return self._Filters
|
1671
|
-
|
1672
|
-
@Filters.setter
|
1673
|
-
def Filters(self, Filters):
|
1674
|
-
self._Filters = Filters
|
1675
|
-
|
1676
|
-
@property
|
1677
|
-
def Offset(self):
|
1678
|
-
"""分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0。
|
1679
|
-
:rtype: int
|
1680
|
-
"""
|
1681
|
-
return self._Offset
|
1682
|
-
|
1683
|
-
@Offset.setter
|
1684
|
-
def Offset(self, Offset):
|
1685
|
-
self._Offset = Offset
|
1686
|
-
|
1687
|
-
|
1688
|
-
def _deserialize(self, params):
|
1689
|
-
self._TagKey = params.get("TagKey")
|
1690
|
-
self._Limit = params.get("Limit")
|
1691
|
-
self._TopicName = params.get("TopicName")
|
1692
|
-
if params.get("Filters") is not None:
|
1693
|
-
self._Filters = []
|
1694
|
-
for item in params.get("Filters"):
|
1695
|
-
obj = Filter()
|
1696
|
-
obj._deserialize(item)
|
1697
|
-
self._Filters.append(obj)
|
1698
|
-
self._Offset = params.get("Offset")
|
1699
|
-
memeber_set = set(params.keys())
|
1700
|
-
for name, value in vars(self).items():
|
1701
|
-
property_name = name[1:]
|
1702
|
-
if property_name in memeber_set:
|
1703
|
-
memeber_set.remove(property_name)
|
1704
|
-
if len(memeber_set) > 0:
|
1705
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
class DescribeTopicDetailResponse(AbstractModel):
|
1710
|
-
"""DescribeTopicDetail返回参数结构体
|
1711
|
-
|
1712
|
-
"""
|
1713
|
-
|
1714
|
-
def __init__(self):
|
1715
|
-
r"""
|
1716
|
-
:param _TotalCount: 主题列表总数。
|
1717
|
-
:type TotalCount: int
|
1718
|
-
:param _TopicSet: 主题详情列表。
|
1719
|
-
:type TopicSet: list of TopicSet
|
1720
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1721
|
-
:type RequestId: str
|
1722
|
-
"""
|
1723
|
-
self._TotalCount = None
|
1724
|
-
self._TopicSet = None
|
1725
|
-
self._RequestId = None
|
1726
|
-
|
1727
|
-
@property
|
1728
|
-
def TotalCount(self):
|
1729
|
-
"""主题列表总数。
|
1730
|
-
:rtype: int
|
1731
|
-
"""
|
1732
|
-
return self._TotalCount
|
1733
|
-
|
1734
|
-
@TotalCount.setter
|
1735
|
-
def TotalCount(self, TotalCount):
|
1736
|
-
self._TotalCount = TotalCount
|
1737
|
-
|
1738
|
-
@property
|
1739
|
-
def TopicSet(self):
|
1740
|
-
"""主题详情列表。
|
1741
|
-
:rtype: list of TopicSet
|
1742
|
-
"""
|
1743
|
-
return self._TopicSet
|
1744
|
-
|
1745
|
-
@TopicSet.setter
|
1746
|
-
def TopicSet(self, TopicSet):
|
1747
|
-
self._TopicSet = TopicSet
|
1748
|
-
|
1749
|
-
@property
|
1750
|
-
def RequestId(self):
|
1751
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1752
|
-
:rtype: str
|
1753
|
-
"""
|
1754
|
-
return self._RequestId
|
1755
|
-
|
1756
|
-
@RequestId.setter
|
1757
|
-
def RequestId(self, RequestId):
|
1758
|
-
self._RequestId = RequestId
|
1759
|
-
|
1760
|
-
|
1761
|
-
def _deserialize(self, params):
|
1762
|
-
self._TotalCount = params.get("TotalCount")
|
1763
|
-
if params.get("TopicSet") is not None:
|
1764
|
-
self._TopicSet = []
|
1765
|
-
for item in params.get("TopicSet"):
|
1766
|
-
obj = TopicSet()
|
1767
|
-
obj._deserialize(item)
|
1768
|
-
self._TopicSet.append(obj)
|
1769
|
-
self._RequestId = params.get("RequestId")
|
1770
|
-
|
1771
|
-
|
1772
|
-
class Filter(AbstractModel):
|
1773
|
-
"""过滤参数
|
1774
|
-
|
1775
|
-
"""
|
1776
|
-
|
1777
|
-
def __init__(self):
|
1778
|
-
r"""
|
1779
|
-
:param _Values: 数值
|
1780
|
-
:type Values: list of str
|
1781
|
-
:param _Name: 过滤参数的名字
|
1782
|
-
:type Name: str
|
1783
|
-
"""
|
1784
|
-
self._Values = None
|
1785
|
-
self._Name = None
|
1786
|
-
|
1787
|
-
@property
|
1788
|
-
def Values(self):
|
1789
|
-
"""数值
|
1790
|
-
:rtype: list of str
|
1791
|
-
"""
|
1792
|
-
return self._Values
|
1793
|
-
|
1794
|
-
@Values.setter
|
1795
|
-
def Values(self, Values):
|
1796
|
-
self._Values = Values
|
1797
|
-
|
1798
|
-
@property
|
1799
|
-
def Name(self):
|
1800
|
-
"""过滤参数的名字
|
1801
|
-
:rtype: str
|
1802
|
-
"""
|
1803
|
-
return self._Name
|
1804
|
-
|
1805
|
-
@Name.setter
|
1806
|
-
def Name(self, Name):
|
1807
|
-
self._Name = Name
|
1808
|
-
|
1809
|
-
|
1810
|
-
def _deserialize(self, params):
|
1811
|
-
self._Values = params.get("Values")
|
1812
|
-
self._Name = params.get("Name")
|
1813
|
-
memeber_set = set(params.keys())
|
1814
|
-
for name, value in vars(self).items():
|
1815
|
-
property_name = name[1:]
|
1816
|
-
if property_name in memeber_set:
|
1817
|
-
memeber_set.remove(property_name)
|
1818
|
-
if len(memeber_set) > 0:
|
1819
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1823
|
-
class ModifyQueueAttributeRequest(AbstractModel):
|
1824
|
-
"""ModifyQueueAttribute请求参数结构体
|
21
|
+
class DeadLetterPolicy(AbstractModel):
|
22
|
+
"""死信队列策略
|
1825
23
|
|
1826
24
|
"""
|
1827
25
|
|
1828
26
|
def __init__(self):
|
1829
27
|
r"""
|
1830
|
-
:param
|
1831
|
-
|
1832
|
-
:
|
1833
|
-
:
|
1834
|
-
|
1835
|
-
:type PollingWaitSeconds: int
|
1836
|
-
:param _VisibilityTimeout: 消息可见性超时。取值范围 1-43200 秒(即12小时内),默认值 30。
|
1837
|
-
:type VisibilityTimeout: int
|
1838
|
-
:param _MaxMsgSize: 消息最大长度。取值范围 1024-65536 Byte(即1-64K),默认值 65536。
|
1839
|
-
:type MaxMsgSize: int
|
1840
|
-
:param _MsgRetentionSeconds: 消息保留周期。取值范围 60-1296000 秒(1min-15天),默认值 345600 (4 天)。
|
1841
|
-
:type MsgRetentionSeconds: int
|
1842
|
-
:param _RewindSeconds: 消息最长回溯时间,取值范围0-msgRetentionSeconds,消息的最大回溯之间为消息在队列中的保存周期,0表示不开启消息回溯。
|
1843
|
-
:type RewindSeconds: int
|
1844
|
-
:param _FirstQueryInterval: 第一次查询时间
|
1845
|
-
:type FirstQueryInterval: int
|
1846
|
-
:param _MaxQueryCount: 最大查询次数
|
1847
|
-
:type MaxQueryCount: int
|
1848
|
-
:param _DeadLetterQueueName: 死信队列名称
|
28
|
+
:param _DeadLetterQueue: 死信队列。
|
29
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30
|
+
:type DeadLetterQueue: str
|
31
|
+
:param _DeadLetterQueueName: 死信队列名字。
|
32
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1849
33
|
:type DeadLetterQueueName: str
|
1850
|
-
:param _MaxTimeToLive:
|
34
|
+
:param _MaxTimeToLive: 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。
|
35
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1851
36
|
:type MaxTimeToLive: int
|
1852
|
-
:param
|
1853
|
-
|
1854
|
-
:param _Policy: 死信队列策略
|
37
|
+
:param _Policy: 死信队列策略。
|
38
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1855
39
|
:type Policy: int
|
1856
|
-
:param
|
1857
|
-
|
40
|
+
:param _MaxReceiveCount: 最大接收次数。
|
41
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
42
|
+
:type MaxReceiveCount: int
|
1858
43
|
"""
|
1859
|
-
self.
|
1860
|
-
self._MaxMsgHeapNum = None
|
1861
|
-
self._PollingWaitSeconds = None
|
1862
|
-
self._VisibilityTimeout = None
|
1863
|
-
self._MaxMsgSize = None
|
1864
|
-
self._MsgRetentionSeconds = None
|
1865
|
-
self._RewindSeconds = None
|
1866
|
-
self._FirstQueryInterval = None
|
1867
|
-
self._MaxQueryCount = None
|
44
|
+
self._DeadLetterQueue = None
|
1868
45
|
self._DeadLetterQueueName = None
|
1869
46
|
self._MaxTimeToLive = None
|
1870
|
-
self._MaxReceiveCount = None
|
1871
47
|
self._Policy = None
|
1872
|
-
self.
|
48
|
+
self._MaxReceiveCount = None
|
1873
49
|
|
1874
50
|
@property
|
1875
|
-
def
|
1876
|
-
"""
|
51
|
+
def DeadLetterQueue(self):
|
52
|
+
"""死信队列。
|
53
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1877
54
|
:rtype: str
|
1878
55
|
"""
|
1879
|
-
return self.
|
1880
|
-
|
1881
|
-
@QueueName.setter
|
1882
|
-
def QueueName(self, QueueName):
|
1883
|
-
self._QueueName = QueueName
|
1884
|
-
|
1885
|
-
@property
|
1886
|
-
def MaxMsgHeapNum(self):
|
1887
|
-
"""最大堆积消息数。取值范围在公测期间为 1,000,000 - 10,000,000,正式上线后范围可达到 1000,000-1000,000,000。默认取值在公测期间为 10,000,000,正式上线后为 100,000,000。
|
1888
|
-
:rtype: int
|
1889
|
-
"""
|
1890
|
-
return self._MaxMsgHeapNum
|
1891
|
-
|
1892
|
-
@MaxMsgHeapNum.setter
|
1893
|
-
def MaxMsgHeapNum(self, MaxMsgHeapNum):
|
1894
|
-
self._MaxMsgHeapNum = MaxMsgHeapNum
|
1895
|
-
|
1896
|
-
@property
|
1897
|
-
def PollingWaitSeconds(self):
|
1898
|
-
"""消息接收长轮询等待时间。取值范围 0-30 秒,默认值 0。
|
1899
|
-
:rtype: int
|
1900
|
-
"""
|
1901
|
-
return self._PollingWaitSeconds
|
1902
|
-
|
1903
|
-
@PollingWaitSeconds.setter
|
1904
|
-
def PollingWaitSeconds(self, PollingWaitSeconds):
|
1905
|
-
self._PollingWaitSeconds = PollingWaitSeconds
|
1906
|
-
|
1907
|
-
@property
|
1908
|
-
def VisibilityTimeout(self):
|
1909
|
-
"""消息可见性超时。取值范围 1-43200 秒(即12小时内),默认值 30。
|
1910
|
-
:rtype: int
|
1911
|
-
"""
|
1912
|
-
return self._VisibilityTimeout
|
1913
|
-
|
1914
|
-
@VisibilityTimeout.setter
|
1915
|
-
def VisibilityTimeout(self, VisibilityTimeout):
|
1916
|
-
self._VisibilityTimeout = VisibilityTimeout
|
1917
|
-
|
1918
|
-
@property
|
1919
|
-
def MaxMsgSize(self):
|
1920
|
-
"""消息最大长度。取值范围 1024-65536 Byte(即1-64K),默认值 65536。
|
1921
|
-
:rtype: int
|
1922
|
-
"""
|
1923
|
-
return self._MaxMsgSize
|
1924
|
-
|
1925
|
-
@MaxMsgSize.setter
|
1926
|
-
def MaxMsgSize(self, MaxMsgSize):
|
1927
|
-
self._MaxMsgSize = MaxMsgSize
|
1928
|
-
|
1929
|
-
@property
|
1930
|
-
def MsgRetentionSeconds(self):
|
1931
|
-
"""消息保留周期。取值范围 60-1296000 秒(1min-15天),默认值 345600 (4 天)。
|
1932
|
-
:rtype: int
|
1933
|
-
"""
|
1934
|
-
return self._MsgRetentionSeconds
|
1935
|
-
|
1936
|
-
@MsgRetentionSeconds.setter
|
1937
|
-
def MsgRetentionSeconds(self, MsgRetentionSeconds):
|
1938
|
-
self._MsgRetentionSeconds = MsgRetentionSeconds
|
1939
|
-
|
1940
|
-
@property
|
1941
|
-
def RewindSeconds(self):
|
1942
|
-
"""消息最长回溯时间,取值范围0-msgRetentionSeconds,消息的最大回溯之间为消息在队列中的保存周期,0表示不开启消息回溯。
|
1943
|
-
:rtype: int
|
1944
|
-
"""
|
1945
|
-
return self._RewindSeconds
|
1946
|
-
|
1947
|
-
@RewindSeconds.setter
|
1948
|
-
def RewindSeconds(self, RewindSeconds):
|
1949
|
-
self._RewindSeconds = RewindSeconds
|
1950
|
-
|
1951
|
-
@property
|
1952
|
-
def FirstQueryInterval(self):
|
1953
|
-
"""第一次查询时间
|
1954
|
-
:rtype: int
|
1955
|
-
"""
|
1956
|
-
return self._FirstQueryInterval
|
1957
|
-
|
1958
|
-
@FirstQueryInterval.setter
|
1959
|
-
def FirstQueryInterval(self, FirstQueryInterval):
|
1960
|
-
self._FirstQueryInterval = FirstQueryInterval
|
1961
|
-
|
1962
|
-
@property
|
1963
|
-
def MaxQueryCount(self):
|
1964
|
-
"""最大查询次数
|
1965
|
-
:rtype: int
|
1966
|
-
"""
|
1967
|
-
return self._MaxQueryCount
|
56
|
+
return self._DeadLetterQueue
|
1968
57
|
|
1969
|
-
@
|
1970
|
-
def
|
1971
|
-
self.
|
58
|
+
@DeadLetterQueue.setter
|
59
|
+
def DeadLetterQueue(self, DeadLetterQueue):
|
60
|
+
self._DeadLetterQueue = DeadLetterQueue
|
1972
61
|
|
1973
62
|
@property
|
1974
63
|
def DeadLetterQueueName(self):
|
1975
|
-
"""
|
64
|
+
"""死信队列名字。
|
65
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1976
66
|
:rtype: str
|
1977
67
|
"""
|
1978
68
|
return self._DeadLetterQueueName
|
@@ -1983,7 +73,8 @@ class ModifyQueueAttributeRequest(AbstractModel):
|
|
1983
73
|
|
1984
74
|
@property
|
1985
75
|
def MaxTimeToLive(self):
|
1986
|
-
"""
|
76
|
+
"""最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。
|
77
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1987
78
|
:rtype: int
|
1988
79
|
"""
|
1989
80
|
return self._MaxTimeToLive
|
@@ -1992,20 +83,10 @@ class ModifyQueueAttributeRequest(AbstractModel):
|
|
1992
83
|
def MaxTimeToLive(self, MaxTimeToLive):
|
1993
84
|
self._MaxTimeToLive = MaxTimeToLive
|
1994
85
|
|
1995
|
-
@property
|
1996
|
-
def MaxReceiveCount(self):
|
1997
|
-
"""最大接收次数
|
1998
|
-
:rtype: int
|
1999
|
-
"""
|
2000
|
-
return self._MaxReceiveCount
|
2001
|
-
|
2002
|
-
@MaxReceiveCount.setter
|
2003
|
-
def MaxReceiveCount(self, MaxReceiveCount):
|
2004
|
-
self._MaxReceiveCount = MaxReceiveCount
|
2005
|
-
|
2006
86
|
@property
|
2007
87
|
def Policy(self):
|
2008
|
-
"""
|
88
|
+
"""死信队列策略。
|
89
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2009
90
|
:rtype: int
|
2010
91
|
"""
|
2011
92
|
return self._Policy
|
@@ -2015,32 +96,24 @@ class ModifyQueueAttributeRequest(AbstractModel):
|
|
2015
96
|
self._Policy = Policy
|
2016
97
|
|
2017
98
|
@property
|
2018
|
-
def
|
2019
|
-
"""
|
2020
|
-
|
99
|
+
def MaxReceiveCount(self):
|
100
|
+
"""最大接收次数。
|
101
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
102
|
+
:rtype: int
|
2021
103
|
"""
|
2022
|
-
return self.
|
104
|
+
return self._MaxReceiveCount
|
2023
105
|
|
2024
|
-
@
|
2025
|
-
def
|
2026
|
-
self.
|
106
|
+
@MaxReceiveCount.setter
|
107
|
+
def MaxReceiveCount(self, MaxReceiveCount):
|
108
|
+
self._MaxReceiveCount = MaxReceiveCount
|
2027
109
|
|
2028
110
|
|
2029
111
|
def _deserialize(self, params):
|
2030
|
-
self.
|
2031
|
-
self._MaxMsgHeapNum = params.get("MaxMsgHeapNum")
|
2032
|
-
self._PollingWaitSeconds = params.get("PollingWaitSeconds")
|
2033
|
-
self._VisibilityTimeout = params.get("VisibilityTimeout")
|
2034
|
-
self._MaxMsgSize = params.get("MaxMsgSize")
|
2035
|
-
self._MsgRetentionSeconds = params.get("MsgRetentionSeconds")
|
2036
|
-
self._RewindSeconds = params.get("RewindSeconds")
|
2037
|
-
self._FirstQueryInterval = params.get("FirstQueryInterval")
|
2038
|
-
self._MaxQueryCount = params.get("MaxQueryCount")
|
112
|
+
self._DeadLetterQueue = params.get("DeadLetterQueue")
|
2039
113
|
self._DeadLetterQueueName = params.get("DeadLetterQueueName")
|
2040
114
|
self._MaxTimeToLive = params.get("MaxTimeToLive")
|
2041
|
-
self._MaxReceiveCount = params.get("MaxReceiveCount")
|
2042
115
|
self._Policy = params.get("Policy")
|
2043
|
-
self.
|
116
|
+
self._MaxReceiveCount = params.get("MaxReceiveCount")
|
2044
117
|
memeber_set = set(params.keys())
|
2045
118
|
for name, value in vars(self).items():
|
2046
119
|
property_name = name[1:]
|
@@ -2051,139 +124,152 @@ class ModifyQueueAttributeRequest(AbstractModel):
|
|
2051
124
|
|
2052
125
|
|
2053
126
|
|
2054
|
-
class
|
2055
|
-
"""
|
127
|
+
class DeadLetterSource(AbstractModel):
|
128
|
+
"""死信源队列信息
|
2056
129
|
|
2057
130
|
"""
|
2058
131
|
|
2059
132
|
def __init__(self):
|
2060
133
|
r"""
|
2061
|
-
:param
|
2062
|
-
|
134
|
+
:param _QueueId: 消息队列ID。
|
135
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
136
|
+
:type QueueId: str
|
137
|
+
:param _QueueName: 消息队列名字。
|
138
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
139
|
+
:type QueueName: str
|
2063
140
|
"""
|
2064
|
-
self.
|
141
|
+
self._QueueId = None
|
142
|
+
self._QueueName = None
|
2065
143
|
|
2066
144
|
@property
|
2067
|
-
def
|
2068
|
-
"""
|
145
|
+
def QueueId(self):
|
146
|
+
"""消息队列ID。
|
147
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2069
148
|
:rtype: str
|
2070
149
|
"""
|
2071
|
-
return self.
|
150
|
+
return self._QueueId
|
2072
151
|
|
2073
|
-
@
|
2074
|
-
def
|
2075
|
-
self.
|
152
|
+
@QueueId.setter
|
153
|
+
def QueueId(self, QueueId):
|
154
|
+
self._QueueId = QueueId
|
155
|
+
|
156
|
+
@property
|
157
|
+
def QueueName(self):
|
158
|
+
"""消息队列名字。
|
159
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
160
|
+
:rtype: str
|
161
|
+
"""
|
162
|
+
return self._QueueName
|
163
|
+
|
164
|
+
@QueueName.setter
|
165
|
+
def QueueName(self, QueueName):
|
166
|
+
self._QueueName = QueueName
|
2076
167
|
|
2077
168
|
|
2078
169
|
def _deserialize(self, params):
|
2079
|
-
self.
|
170
|
+
self._QueueId = params.get("QueueId")
|
171
|
+
self._QueueName = params.get("QueueName")
|
172
|
+
memeber_set = set(params.keys())
|
173
|
+
for name, value in vars(self).items():
|
174
|
+
property_name = name[1:]
|
175
|
+
if property_name in memeber_set:
|
176
|
+
memeber_set.remove(property_name)
|
177
|
+
if len(memeber_set) > 0:
|
178
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
179
|
+
|
2080
180
|
|
2081
181
|
|
2082
|
-
class
|
2083
|
-
"""
|
182
|
+
class DescribeQueueDetailRequest(AbstractModel):
|
183
|
+
"""DescribeQueueDetail请求参数结构体
|
2084
184
|
|
2085
185
|
"""
|
2086
186
|
|
2087
187
|
def __init__(self):
|
2088
188
|
r"""
|
2089
|
-
:param
|
2090
|
-
:type
|
2091
|
-
:param
|
2092
|
-
:type
|
2093
|
-
:param
|
2094
|
-
|
2095
|
-
|
2096
|
-
:type
|
2097
|
-
:param
|
2098
|
-
:type
|
2099
|
-
:param _FilterTags: 消息正文。消息标签(用于消息过滤)。标签数量不能超过5个,每个标签不超过16个字符。与(Batch)PublishMessage的MsgTag参数配合使用,规则:1)如果FilterTag没有设置,则无论MsgTag是否有设置,订阅接收所有发布到Topic的消息;2)如果FilterTag数组有值,则只有数组中至少有一个值在MsgTag数组中也存在时(即FilterTag和MsgTag有交集),订阅才接收该发布到Topic的消息;3)如果FilterTag数组有值,但MsgTag没设置,则不接收任何发布到Topic的消息,可以认为是2)的一种特例,此时FilterTag和MsgTag没有交集。规则整体的设计思想是以订阅者的意愿为主。
|
2100
|
-
:type FilterTags: list of str
|
2101
|
-
:param _BindingKey: BindingKey数量不超过5个, 每个BindingKey长度不超过64字节,该字段表示订阅接收消息的过滤策略,每个BindingKey最多含有15个“.”, 即最多16个词组。
|
2102
|
-
:type BindingKey: list of str
|
2103
|
-
"""
|
2104
|
-
self._TopicName = None
|
2105
|
-
self._SubscriptionName = None
|
2106
|
-
self._NotifyStrategy = None
|
2107
|
-
self._NotifyContentFormat = None
|
2108
|
-
self._FilterTags = None
|
2109
|
-
self._BindingKey = None
|
2110
|
-
|
2111
|
-
@property
|
2112
|
-
def TopicName(self):
|
2113
|
-
"""主题名字,在单个地域同一帐号下唯一。主题名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
2114
|
-
:rtype: str
|
189
|
+
:param _TagKey: 标签搜索
|
190
|
+
:type TagKey: str
|
191
|
+
:param _Limit: 分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
192
|
+
:type Limit: int
|
193
|
+
:param _QueueName: 精确匹配QueueName
|
194
|
+
:type QueueName: str
|
195
|
+
:param _Filters: 筛选参数,目前支持QueueName筛选,且仅支持一个关键字
|
196
|
+
:type Filters: list of Filter
|
197
|
+
:param _Offset: 分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0
|
198
|
+
:type Offset: int
|
2115
199
|
"""
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
self.
|
200
|
+
self._TagKey = None
|
201
|
+
self._Limit = None
|
202
|
+
self._QueueName = None
|
203
|
+
self._Filters = None
|
204
|
+
self._Offset = None
|
2121
205
|
|
2122
206
|
@property
|
2123
|
-
def
|
2124
|
-
"""
|
207
|
+
def TagKey(self):
|
208
|
+
"""标签搜索
|
2125
209
|
:rtype: str
|
2126
210
|
"""
|
2127
|
-
return self.
|
211
|
+
return self._TagKey
|
2128
212
|
|
2129
|
-
@
|
2130
|
-
def
|
2131
|
-
self.
|
213
|
+
@TagKey.setter
|
214
|
+
def TagKey(self, TagKey):
|
215
|
+
self._TagKey = TagKey
|
2132
216
|
|
2133
217
|
@property
|
2134
|
-
def
|
2135
|
-
"""
|
2136
|
-
|
2137
|
-
(2)EXPONENTIAL_DECAY_RETRY,指数衰退重试。每次重试的间隔是指数递增的,例如开始1s,后面是2s,4s,8s···由于 Topic 消息的周期是一天,所以最多重试一天就把消息丢弃。默认值是 EXPONENTIAL_DECAY_RETRY。
|
2138
|
-
:rtype: str
|
218
|
+
def Limit(self):
|
219
|
+
"""分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
220
|
+
:rtype: int
|
2139
221
|
"""
|
2140
|
-
return self.
|
222
|
+
return self._Limit
|
2141
223
|
|
2142
|
-
@
|
2143
|
-
def
|
2144
|
-
self.
|
224
|
+
@Limit.setter
|
225
|
+
def Limit(self, Limit):
|
226
|
+
self._Limit = Limit
|
2145
227
|
|
2146
228
|
@property
|
2147
|
-
def
|
2148
|
-
"""
|
229
|
+
def QueueName(self):
|
230
|
+
"""精确匹配QueueName
|
2149
231
|
:rtype: str
|
2150
232
|
"""
|
2151
|
-
return self.
|
233
|
+
return self._QueueName
|
2152
234
|
|
2153
|
-
@
|
2154
|
-
def
|
2155
|
-
self.
|
235
|
+
@QueueName.setter
|
236
|
+
def QueueName(self, QueueName):
|
237
|
+
self._QueueName = QueueName
|
2156
238
|
|
2157
239
|
@property
|
2158
|
-
def
|
2159
|
-
"""
|
2160
|
-
:rtype: list of
|
240
|
+
def Filters(self):
|
241
|
+
"""筛选参数,目前支持QueueName筛选,且仅支持一个关键字
|
242
|
+
:rtype: list of Filter
|
2161
243
|
"""
|
2162
|
-
return self.
|
244
|
+
return self._Filters
|
2163
245
|
|
2164
|
-
@
|
2165
|
-
def
|
2166
|
-
self.
|
246
|
+
@Filters.setter
|
247
|
+
def Filters(self, Filters):
|
248
|
+
self._Filters = Filters
|
2167
249
|
|
2168
250
|
@property
|
2169
|
-
def
|
2170
|
-
"""
|
2171
|
-
:rtype:
|
251
|
+
def Offset(self):
|
252
|
+
"""分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0
|
253
|
+
:rtype: int
|
2172
254
|
"""
|
2173
|
-
return self.
|
255
|
+
return self._Offset
|
2174
256
|
|
2175
|
-
@
|
2176
|
-
def
|
2177
|
-
self.
|
257
|
+
@Offset.setter
|
258
|
+
def Offset(self, Offset):
|
259
|
+
self._Offset = Offset
|
2178
260
|
|
2179
261
|
|
2180
262
|
def _deserialize(self, params):
|
2181
|
-
self.
|
2182
|
-
self.
|
2183
|
-
self.
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
263
|
+
self._TagKey = params.get("TagKey")
|
264
|
+
self._Limit = params.get("Limit")
|
265
|
+
self._QueueName = params.get("QueueName")
|
266
|
+
if params.get("Filters") is not None:
|
267
|
+
self._Filters = []
|
268
|
+
for item in params.get("Filters"):
|
269
|
+
obj = Filter()
|
270
|
+
obj._deserialize(item)
|
271
|
+
self._Filters.append(obj)
|
272
|
+
self._Offset = params.get("Offset")
|
2187
273
|
memeber_set = set(params.keys())
|
2188
274
|
for name, value in vars(self).items():
|
2189
275
|
property_name = name[1:]
|
@@ -2194,18 +280,46 @@ class ModifySubscriptionAttributeRequest(AbstractModel):
|
|
2194
280
|
|
2195
281
|
|
2196
282
|
|
2197
|
-
class
|
2198
|
-
"""
|
283
|
+
class DescribeQueueDetailResponse(AbstractModel):
|
284
|
+
"""DescribeQueueDetail返回参数结构体
|
2199
285
|
|
2200
286
|
"""
|
2201
287
|
|
2202
288
|
def __init__(self):
|
2203
289
|
r"""
|
290
|
+
:param _TotalCount: 总队列数。
|
291
|
+
:type TotalCount: int
|
292
|
+
:param _QueueSet: 队列详情列表。
|
293
|
+
:type QueueSet: list of QueueSet
|
2204
294
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2205
295
|
:type RequestId: str
|
2206
296
|
"""
|
297
|
+
self._TotalCount = None
|
298
|
+
self._QueueSet = None
|
2207
299
|
self._RequestId = None
|
2208
300
|
|
301
|
+
@property
|
302
|
+
def TotalCount(self):
|
303
|
+
"""总队列数。
|
304
|
+
:rtype: int
|
305
|
+
"""
|
306
|
+
return self._TotalCount
|
307
|
+
|
308
|
+
@TotalCount.setter
|
309
|
+
def TotalCount(self, TotalCount):
|
310
|
+
self._TotalCount = TotalCount
|
311
|
+
|
312
|
+
@property
|
313
|
+
def QueueSet(self):
|
314
|
+
"""队列详情列表。
|
315
|
+
:rtype: list of QueueSet
|
316
|
+
"""
|
317
|
+
return self._QueueSet
|
318
|
+
|
319
|
+
@QueueSet.setter
|
320
|
+
def QueueSet(self, QueueSet):
|
321
|
+
self._QueueSet = QueueSet
|
322
|
+
|
2209
323
|
@property
|
2210
324
|
def RequestId(self):
|
2211
325
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -2219,33 +333,65 @@ class ModifySubscriptionAttributeResponse(AbstractModel):
|
|
2219
333
|
|
2220
334
|
|
2221
335
|
def _deserialize(self, params):
|
336
|
+
self._TotalCount = params.get("TotalCount")
|
337
|
+
if params.get("QueueSet") is not None:
|
338
|
+
self._QueueSet = []
|
339
|
+
for item in params.get("QueueSet"):
|
340
|
+
obj = QueueSet()
|
341
|
+
obj._deserialize(item)
|
342
|
+
self._QueueSet.append(obj)
|
2222
343
|
self._RequestId = params.get("RequestId")
|
2223
344
|
|
2224
345
|
|
2225
|
-
class
|
2226
|
-
"""
|
346
|
+
class DescribeTopicDetailRequest(AbstractModel):
|
347
|
+
"""DescribeTopicDetail请求参数结构体
|
2227
348
|
|
2228
349
|
"""
|
2229
350
|
|
2230
351
|
def __init__(self):
|
2231
352
|
r"""
|
2232
|
-
:param
|
353
|
+
:param _TagKey: 标签匹配。
|
354
|
+
:type TagKey: str
|
355
|
+
:param _Limit: 分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
356
|
+
:type Limit: int
|
357
|
+
:param _TopicName: 精确匹配TopicName。
|
2233
358
|
:type TopicName: str
|
2234
|
-
:param
|
2235
|
-
:type
|
2236
|
-
:param
|
2237
|
-
:type
|
2238
|
-
:param _Trace: 是否开启消息轨迹标识,true表示开启,false表示不开启,不填表示不开启。
|
2239
|
-
:type Trace: bool
|
359
|
+
:param _Filters: 目前只支持过滤TopicName , 且只能填一个过滤值。
|
360
|
+
:type Filters: list of Filter
|
361
|
+
:param _Offset: 分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0。
|
362
|
+
:type Offset: int
|
2240
363
|
"""
|
364
|
+
self._TagKey = None
|
365
|
+
self._Limit = None
|
2241
366
|
self._TopicName = None
|
2242
|
-
self.
|
2243
|
-
self.
|
2244
|
-
|
367
|
+
self._Filters = None
|
368
|
+
self._Offset = None
|
369
|
+
|
370
|
+
@property
|
371
|
+
def TagKey(self):
|
372
|
+
"""标签匹配。
|
373
|
+
:rtype: str
|
374
|
+
"""
|
375
|
+
return self._TagKey
|
376
|
+
|
377
|
+
@TagKey.setter
|
378
|
+
def TagKey(self, TagKey):
|
379
|
+
self._TagKey = TagKey
|
380
|
+
|
381
|
+
@property
|
382
|
+
def Limit(self):
|
383
|
+
"""分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。
|
384
|
+
:rtype: int
|
385
|
+
"""
|
386
|
+
return self._Limit
|
387
|
+
|
388
|
+
@Limit.setter
|
389
|
+
def Limit(self, Limit):
|
390
|
+
self._Limit = Limit
|
2245
391
|
|
2246
392
|
@property
|
2247
393
|
def TopicName(self):
|
2248
|
-
"""
|
394
|
+
"""精确匹配TopicName。
|
2249
395
|
:rtype: str
|
2250
396
|
"""
|
2251
397
|
return self._TopicName
|
@@ -2255,44 +401,39 @@ class ModifyTopicAttributeRequest(AbstractModel):
|
|
2255
401
|
self._TopicName = TopicName
|
2256
402
|
|
2257
403
|
@property
|
2258
|
-
def
|
2259
|
-
"""
|
2260
|
-
:rtype:
|
404
|
+
def Filters(self):
|
405
|
+
"""目前只支持过滤TopicName , 且只能填一个过滤值。
|
406
|
+
:rtype: list of Filter
|
2261
407
|
"""
|
2262
|
-
return self.
|
408
|
+
return self._Filters
|
2263
409
|
|
2264
|
-
@
|
2265
|
-
def
|
2266
|
-
self.
|
410
|
+
@Filters.setter
|
411
|
+
def Filters(self, Filters):
|
412
|
+
self._Filters = Filters
|
2267
413
|
|
2268
414
|
@property
|
2269
|
-
def
|
2270
|
-
"""
|
415
|
+
def Offset(self):
|
416
|
+
"""分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0。
|
2271
417
|
:rtype: int
|
2272
418
|
"""
|
2273
|
-
return self.
|
2274
|
-
|
2275
|
-
@MsgRetentionSeconds.setter
|
2276
|
-
def MsgRetentionSeconds(self, MsgRetentionSeconds):
|
2277
|
-
self._MsgRetentionSeconds = MsgRetentionSeconds
|
2278
|
-
|
2279
|
-
@property
|
2280
|
-
def Trace(self):
|
2281
|
-
"""是否开启消息轨迹标识,true表示开启,false表示不开启,不填表示不开启。
|
2282
|
-
:rtype: bool
|
2283
|
-
"""
|
2284
|
-
return self._Trace
|
419
|
+
return self._Offset
|
2285
420
|
|
2286
|
-
@
|
2287
|
-
def
|
2288
|
-
self.
|
421
|
+
@Offset.setter
|
422
|
+
def Offset(self, Offset):
|
423
|
+
self._Offset = Offset
|
2289
424
|
|
2290
425
|
|
2291
426
|
def _deserialize(self, params):
|
427
|
+
self._TagKey = params.get("TagKey")
|
428
|
+
self._Limit = params.get("Limit")
|
2292
429
|
self._TopicName = params.get("TopicName")
|
2293
|
-
|
2294
|
-
|
2295
|
-
|
430
|
+
if params.get("Filters") is not None:
|
431
|
+
self._Filters = []
|
432
|
+
for item in params.get("Filters"):
|
433
|
+
obj = Filter()
|
434
|
+
obj._deserialize(item)
|
435
|
+
self._Filters.append(obj)
|
436
|
+
self._Offset = params.get("Offset")
|
2296
437
|
memeber_set = set(params.keys())
|
2297
438
|
for name, value in vars(self).items():
|
2298
439
|
property_name = name[1:]
|
@@ -2303,18 +444,46 @@ class ModifyTopicAttributeRequest(AbstractModel):
|
|
2303
444
|
|
2304
445
|
|
2305
446
|
|
2306
|
-
class
|
2307
|
-
"""
|
447
|
+
class DescribeTopicDetailResponse(AbstractModel):
|
448
|
+
"""DescribeTopicDetail返回参数结构体
|
2308
449
|
|
2309
450
|
"""
|
2310
451
|
|
2311
452
|
def __init__(self):
|
2312
453
|
r"""
|
454
|
+
:param _TotalCount: 主题列表总数。
|
455
|
+
:type TotalCount: int
|
456
|
+
:param _TopicSet: 主题详情列表。
|
457
|
+
:type TopicSet: list of TopicSet
|
2313
458
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2314
459
|
:type RequestId: str
|
2315
460
|
"""
|
461
|
+
self._TotalCount = None
|
462
|
+
self._TopicSet = None
|
2316
463
|
self._RequestId = None
|
2317
464
|
|
465
|
+
@property
|
466
|
+
def TotalCount(self):
|
467
|
+
"""主题列表总数。
|
468
|
+
:rtype: int
|
469
|
+
"""
|
470
|
+
return self._TotalCount
|
471
|
+
|
472
|
+
@TotalCount.setter
|
473
|
+
def TotalCount(self, TotalCount):
|
474
|
+
self._TotalCount = TotalCount
|
475
|
+
|
476
|
+
@property
|
477
|
+
def TopicSet(self):
|
478
|
+
"""主题详情列表。
|
479
|
+
:rtype: list of TopicSet
|
480
|
+
"""
|
481
|
+
return self._TopicSet
|
482
|
+
|
483
|
+
@TopicSet.setter
|
484
|
+
def TopicSet(self, TopicSet):
|
485
|
+
self._TopicSet = TopicSet
|
486
|
+
|
2318
487
|
@property
|
2319
488
|
def RequestId(self):
|
2320
489
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -2328,9 +497,67 @@ class ModifyTopicAttributeResponse(AbstractModel):
|
|
2328
497
|
|
2329
498
|
|
2330
499
|
def _deserialize(self, params):
|
500
|
+
self._TotalCount = params.get("TotalCount")
|
501
|
+
if params.get("TopicSet") is not None:
|
502
|
+
self._TopicSet = []
|
503
|
+
for item in params.get("TopicSet"):
|
504
|
+
obj = TopicSet()
|
505
|
+
obj._deserialize(item)
|
506
|
+
self._TopicSet.append(obj)
|
2331
507
|
self._RequestId = params.get("RequestId")
|
2332
508
|
|
2333
509
|
|
510
|
+
class Filter(AbstractModel):
|
511
|
+
"""过滤参数
|
512
|
+
|
513
|
+
"""
|
514
|
+
|
515
|
+
def __init__(self):
|
516
|
+
r"""
|
517
|
+
:param _Values: 数值
|
518
|
+
:type Values: list of str
|
519
|
+
:param _Name: 过滤参数的名字
|
520
|
+
:type Name: str
|
521
|
+
"""
|
522
|
+
self._Values = None
|
523
|
+
self._Name = None
|
524
|
+
|
525
|
+
@property
|
526
|
+
def Values(self):
|
527
|
+
"""数值
|
528
|
+
:rtype: list of str
|
529
|
+
"""
|
530
|
+
return self._Values
|
531
|
+
|
532
|
+
@Values.setter
|
533
|
+
def Values(self, Values):
|
534
|
+
self._Values = Values
|
535
|
+
|
536
|
+
@property
|
537
|
+
def Name(self):
|
538
|
+
"""过滤参数的名字
|
539
|
+
:rtype: str
|
540
|
+
"""
|
541
|
+
return self._Name
|
542
|
+
|
543
|
+
@Name.setter
|
544
|
+
def Name(self, Name):
|
545
|
+
self._Name = Name
|
546
|
+
|
547
|
+
|
548
|
+
def _deserialize(self, params):
|
549
|
+
self._Values = params.get("Values")
|
550
|
+
self._Name = params.get("Name")
|
551
|
+
memeber_set = set(params.keys())
|
552
|
+
for name, value in vars(self).items():
|
553
|
+
property_name = name[1:]
|
554
|
+
if property_name in memeber_set:
|
555
|
+
memeber_set.remove(property_name)
|
556
|
+
if len(memeber_set) > 0:
|
557
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
558
|
+
|
559
|
+
|
560
|
+
|
2334
561
|
class QueueSet(AbstractModel):
|
2335
562
|
"""批量queue属性信息
|
2336
563
|
|
@@ -2804,318 +1031,6 @@ class QueueSet(AbstractModel):
|
|
2804
1031
|
|
2805
1032
|
|
2806
1033
|
|
2807
|
-
class RewindQueueRequest(AbstractModel):
|
2808
|
-
"""RewindQueue请求参数结构体
|
2809
|
-
|
2810
|
-
"""
|
2811
|
-
|
2812
|
-
def __init__(self):
|
2813
|
-
r"""
|
2814
|
-
:param _QueueName: 队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
2815
|
-
:type QueueName: str
|
2816
|
-
:param _StartConsumeTime: 设定该时间,则(Batch)receiveMessage接口,会按照生产消息的先后顺序消费该时间戳以后的消息。
|
2817
|
-
:type StartConsumeTime: int
|
2818
|
-
"""
|
2819
|
-
self._QueueName = None
|
2820
|
-
self._StartConsumeTime = None
|
2821
|
-
|
2822
|
-
@property
|
2823
|
-
def QueueName(self):
|
2824
|
-
"""队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
2825
|
-
:rtype: str
|
2826
|
-
"""
|
2827
|
-
return self._QueueName
|
2828
|
-
|
2829
|
-
@QueueName.setter
|
2830
|
-
def QueueName(self, QueueName):
|
2831
|
-
self._QueueName = QueueName
|
2832
|
-
|
2833
|
-
@property
|
2834
|
-
def StartConsumeTime(self):
|
2835
|
-
"""设定该时间,则(Batch)receiveMessage接口,会按照生产消息的先后顺序消费该时间戳以后的消息。
|
2836
|
-
:rtype: int
|
2837
|
-
"""
|
2838
|
-
return self._StartConsumeTime
|
2839
|
-
|
2840
|
-
@StartConsumeTime.setter
|
2841
|
-
def StartConsumeTime(self, StartConsumeTime):
|
2842
|
-
self._StartConsumeTime = StartConsumeTime
|
2843
|
-
|
2844
|
-
|
2845
|
-
def _deserialize(self, params):
|
2846
|
-
self._QueueName = params.get("QueueName")
|
2847
|
-
self._StartConsumeTime = params.get("StartConsumeTime")
|
2848
|
-
memeber_set = set(params.keys())
|
2849
|
-
for name, value in vars(self).items():
|
2850
|
-
property_name = name[1:]
|
2851
|
-
if property_name in memeber_set:
|
2852
|
-
memeber_set.remove(property_name)
|
2853
|
-
if len(memeber_set) > 0:
|
2854
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2855
|
-
|
2856
|
-
|
2857
|
-
|
2858
|
-
class RewindQueueResponse(AbstractModel):
|
2859
|
-
"""RewindQueue返回参数结构体
|
2860
|
-
|
2861
|
-
"""
|
2862
|
-
|
2863
|
-
def __init__(self):
|
2864
|
-
r"""
|
2865
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2866
|
-
:type RequestId: str
|
2867
|
-
"""
|
2868
|
-
self._RequestId = None
|
2869
|
-
|
2870
|
-
@property
|
2871
|
-
def RequestId(self):
|
2872
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2873
|
-
:rtype: str
|
2874
|
-
"""
|
2875
|
-
return self._RequestId
|
2876
|
-
|
2877
|
-
@RequestId.setter
|
2878
|
-
def RequestId(self, RequestId):
|
2879
|
-
self._RequestId = RequestId
|
2880
|
-
|
2881
|
-
|
2882
|
-
def _deserialize(self, params):
|
2883
|
-
self._RequestId = params.get("RequestId")
|
2884
|
-
|
2885
|
-
|
2886
|
-
class Subscription(AbstractModel):
|
2887
|
-
"""订阅返回参数
|
2888
|
-
|
2889
|
-
"""
|
2890
|
-
|
2891
|
-
def __init__(self):
|
2892
|
-
r"""
|
2893
|
-
:param _MsgCount: 该订阅待投递的消息数。
|
2894
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2895
|
-
:type MsgCount: int
|
2896
|
-
:param _BindingKey: 表示订阅接收消息的过滤策略。
|
2897
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2898
|
-
:type BindingKey: list of str
|
2899
|
-
:param _Endpoint: 接收通知的 endpoint,根据协议 protocol 区分:对于 HTTP,endpoint 必须以http://开头,host 可以是域名或 IP;对于 queue,则填 queueName。
|
2900
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2901
|
-
:type Endpoint: str
|
2902
|
-
:param _TopicOwner: 订阅拥有者的 APPID。
|
2903
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2904
|
-
:type TopicOwner: int
|
2905
|
-
:param _NotifyStrategy: 向 endpoint 推送消息出现错误时,CMQ 推送服务器的重试策略。取值有:
|
2906
|
-
(1)BACKOFF_RETRY,退避重试。每隔一定时间重试一次,重试够一定次数后,就把该消息丢弃,继续推送下一条消息;
|
2907
|
-
(2)EXPONENTIAL_DECAY_RETRY,指数衰退重试。每次重试的间隔是指数递增的,例如开始 1s,后面是 2s,4s,8s...由于 Topic 消息的周期是一天,所以最多重试一天就把消息丢弃。默认值是 EXPONENTIAL_DECAY_RETRY。
|
2908
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2909
|
-
:type NotifyStrategy: str
|
2910
|
-
:param _NotifyContentFormat: 推送内容的格式。取值:(1)JSON;(2)SIMPLIFIED,即 raw 格式。如果 protocol 是 queue,则取值必须为 SIMPLIFIED。如果 protocol 是 HTTP,两个值均可以,默认值是 JSON。
|
2911
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2912
|
-
:type NotifyContentFormat: str
|
2913
|
-
:param _LastModifyTime: 最后一次修改订阅属性的时间。返回 Unix 时间戳,精确到秒。
|
2914
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2915
|
-
:type LastModifyTime: int
|
2916
|
-
:param _FilterTags: 描述用户创建订阅时选择的过滤策略:
|
2917
|
-
filterType = 1表示用户使用 filterTag 标签过滤
|
2918
|
-
filterType = 2表示用户使用 bindingKey 过滤。
|
2919
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2920
|
-
:type FilterTags: list of str
|
2921
|
-
:param _SubscriptionName: 订阅名字,在单个地域同一账号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
2922
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2923
|
-
:type SubscriptionName: str
|
2924
|
-
:param _Protocol: 订阅的协议,目前支持两种协议:HTTP、queue。使用 HTTP 协议,用户需自己搭建接受消息的 Web Server。使用 queue,消息会自动推送到 CMQ queue,用户可以并发地拉取消息。
|
2925
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2926
|
-
:type Protocol: str
|
2927
|
-
:param _SubscriptionId: 订阅 ID。订阅 ID 在拉取监控数据时会用到。
|
2928
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2929
|
-
:type SubscriptionId: str
|
2930
|
-
:param _CreateTime: 订阅的创建时间。返回 Unix 时间戳,精确到秒。
|
2931
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2932
|
-
:type CreateTime: int
|
2933
|
-
"""
|
2934
|
-
self._MsgCount = None
|
2935
|
-
self._BindingKey = None
|
2936
|
-
self._Endpoint = None
|
2937
|
-
self._TopicOwner = None
|
2938
|
-
self._NotifyStrategy = None
|
2939
|
-
self._NotifyContentFormat = None
|
2940
|
-
self._LastModifyTime = None
|
2941
|
-
self._FilterTags = None
|
2942
|
-
self._SubscriptionName = None
|
2943
|
-
self._Protocol = None
|
2944
|
-
self._SubscriptionId = None
|
2945
|
-
self._CreateTime = None
|
2946
|
-
|
2947
|
-
@property
|
2948
|
-
def MsgCount(self):
|
2949
|
-
"""该订阅待投递的消息数。
|
2950
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2951
|
-
:rtype: int
|
2952
|
-
"""
|
2953
|
-
return self._MsgCount
|
2954
|
-
|
2955
|
-
@MsgCount.setter
|
2956
|
-
def MsgCount(self, MsgCount):
|
2957
|
-
self._MsgCount = MsgCount
|
2958
|
-
|
2959
|
-
@property
|
2960
|
-
def BindingKey(self):
|
2961
|
-
"""表示订阅接收消息的过滤策略。
|
2962
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2963
|
-
:rtype: list of str
|
2964
|
-
"""
|
2965
|
-
return self._BindingKey
|
2966
|
-
|
2967
|
-
@BindingKey.setter
|
2968
|
-
def BindingKey(self, BindingKey):
|
2969
|
-
self._BindingKey = BindingKey
|
2970
|
-
|
2971
|
-
@property
|
2972
|
-
def Endpoint(self):
|
2973
|
-
"""接收通知的 endpoint,根据协议 protocol 区分:对于 HTTP,endpoint 必须以http://开头,host 可以是域名或 IP;对于 queue,则填 queueName。
|
2974
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2975
|
-
:rtype: str
|
2976
|
-
"""
|
2977
|
-
return self._Endpoint
|
2978
|
-
|
2979
|
-
@Endpoint.setter
|
2980
|
-
def Endpoint(self, Endpoint):
|
2981
|
-
self._Endpoint = Endpoint
|
2982
|
-
|
2983
|
-
@property
|
2984
|
-
def TopicOwner(self):
|
2985
|
-
"""订阅拥有者的 APPID。
|
2986
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2987
|
-
:rtype: int
|
2988
|
-
"""
|
2989
|
-
return self._TopicOwner
|
2990
|
-
|
2991
|
-
@TopicOwner.setter
|
2992
|
-
def TopicOwner(self, TopicOwner):
|
2993
|
-
self._TopicOwner = TopicOwner
|
2994
|
-
|
2995
|
-
@property
|
2996
|
-
def NotifyStrategy(self):
|
2997
|
-
"""向 endpoint 推送消息出现错误时,CMQ 推送服务器的重试策略。取值有:
|
2998
|
-
(1)BACKOFF_RETRY,退避重试。每隔一定时间重试一次,重试够一定次数后,就把该消息丢弃,继续推送下一条消息;
|
2999
|
-
(2)EXPONENTIAL_DECAY_RETRY,指数衰退重试。每次重试的间隔是指数递增的,例如开始 1s,后面是 2s,4s,8s...由于 Topic 消息的周期是一天,所以最多重试一天就把消息丢弃。默认值是 EXPONENTIAL_DECAY_RETRY。
|
3000
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3001
|
-
:rtype: str
|
3002
|
-
"""
|
3003
|
-
return self._NotifyStrategy
|
3004
|
-
|
3005
|
-
@NotifyStrategy.setter
|
3006
|
-
def NotifyStrategy(self, NotifyStrategy):
|
3007
|
-
self._NotifyStrategy = NotifyStrategy
|
3008
|
-
|
3009
|
-
@property
|
3010
|
-
def NotifyContentFormat(self):
|
3011
|
-
"""推送内容的格式。取值:(1)JSON;(2)SIMPLIFIED,即 raw 格式。如果 protocol 是 queue,则取值必须为 SIMPLIFIED。如果 protocol 是 HTTP,两个值均可以,默认值是 JSON。
|
3012
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3013
|
-
:rtype: str
|
3014
|
-
"""
|
3015
|
-
return self._NotifyContentFormat
|
3016
|
-
|
3017
|
-
@NotifyContentFormat.setter
|
3018
|
-
def NotifyContentFormat(self, NotifyContentFormat):
|
3019
|
-
self._NotifyContentFormat = NotifyContentFormat
|
3020
|
-
|
3021
|
-
@property
|
3022
|
-
def LastModifyTime(self):
|
3023
|
-
"""最后一次修改订阅属性的时间。返回 Unix 时间戳,精确到秒。
|
3024
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3025
|
-
:rtype: int
|
3026
|
-
"""
|
3027
|
-
return self._LastModifyTime
|
3028
|
-
|
3029
|
-
@LastModifyTime.setter
|
3030
|
-
def LastModifyTime(self, LastModifyTime):
|
3031
|
-
self._LastModifyTime = LastModifyTime
|
3032
|
-
|
3033
|
-
@property
|
3034
|
-
def FilterTags(self):
|
3035
|
-
"""描述用户创建订阅时选择的过滤策略:
|
3036
|
-
filterType = 1表示用户使用 filterTag 标签过滤
|
3037
|
-
filterType = 2表示用户使用 bindingKey 过滤。
|
3038
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3039
|
-
:rtype: list of str
|
3040
|
-
"""
|
3041
|
-
return self._FilterTags
|
3042
|
-
|
3043
|
-
@FilterTags.setter
|
3044
|
-
def FilterTags(self, FilterTags):
|
3045
|
-
self._FilterTags = FilterTags
|
3046
|
-
|
3047
|
-
@property
|
3048
|
-
def SubscriptionName(self):
|
3049
|
-
"""订阅名字,在单个地域同一账号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
3050
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3051
|
-
:rtype: str
|
3052
|
-
"""
|
3053
|
-
return self._SubscriptionName
|
3054
|
-
|
3055
|
-
@SubscriptionName.setter
|
3056
|
-
def SubscriptionName(self, SubscriptionName):
|
3057
|
-
self._SubscriptionName = SubscriptionName
|
3058
|
-
|
3059
|
-
@property
|
3060
|
-
def Protocol(self):
|
3061
|
-
"""订阅的协议,目前支持两种协议:HTTP、queue。使用 HTTP 协议,用户需自己搭建接受消息的 Web Server。使用 queue,消息会自动推送到 CMQ queue,用户可以并发地拉取消息。
|
3062
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3063
|
-
:rtype: str
|
3064
|
-
"""
|
3065
|
-
return self._Protocol
|
3066
|
-
|
3067
|
-
@Protocol.setter
|
3068
|
-
def Protocol(self, Protocol):
|
3069
|
-
self._Protocol = Protocol
|
3070
|
-
|
3071
|
-
@property
|
3072
|
-
def SubscriptionId(self):
|
3073
|
-
"""订阅 ID。订阅 ID 在拉取监控数据时会用到。
|
3074
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3075
|
-
:rtype: str
|
3076
|
-
"""
|
3077
|
-
return self._SubscriptionId
|
3078
|
-
|
3079
|
-
@SubscriptionId.setter
|
3080
|
-
def SubscriptionId(self, SubscriptionId):
|
3081
|
-
self._SubscriptionId = SubscriptionId
|
3082
|
-
|
3083
|
-
@property
|
3084
|
-
def CreateTime(self):
|
3085
|
-
"""订阅的创建时间。返回 Unix 时间戳,精确到秒。
|
3086
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
3087
|
-
:rtype: int
|
3088
|
-
"""
|
3089
|
-
return self._CreateTime
|
3090
|
-
|
3091
|
-
@CreateTime.setter
|
3092
|
-
def CreateTime(self, CreateTime):
|
3093
|
-
self._CreateTime = CreateTime
|
3094
|
-
|
3095
|
-
|
3096
|
-
def _deserialize(self, params):
|
3097
|
-
self._MsgCount = params.get("MsgCount")
|
3098
|
-
self._BindingKey = params.get("BindingKey")
|
3099
|
-
self._Endpoint = params.get("Endpoint")
|
3100
|
-
self._TopicOwner = params.get("TopicOwner")
|
3101
|
-
self._NotifyStrategy = params.get("NotifyStrategy")
|
3102
|
-
self._NotifyContentFormat = params.get("NotifyContentFormat")
|
3103
|
-
self._LastModifyTime = params.get("LastModifyTime")
|
3104
|
-
self._FilterTags = params.get("FilterTags")
|
3105
|
-
self._SubscriptionName = params.get("SubscriptionName")
|
3106
|
-
self._Protocol = params.get("Protocol")
|
3107
|
-
self._SubscriptionId = params.get("SubscriptionId")
|
3108
|
-
self._CreateTime = params.get("CreateTime")
|
3109
|
-
memeber_set = set(params.keys())
|
3110
|
-
for name, value in vars(self).items():
|
3111
|
-
property_name = name[1:]
|
3112
|
-
if property_name in memeber_set:
|
3113
|
-
memeber_set.remove(property_name)
|
3114
|
-
if len(memeber_set) > 0:
|
3115
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
1034
|
class Tag(AbstractModel):
|
3120
1035
|
"""标签
|
3121
1036
|
|
@@ -3474,68 +1389,4 @@ class TransactionPolicy(AbstractModel):
|
|
3474
1389
|
memeber_set.remove(property_name)
|
3475
1390
|
if len(memeber_set) > 0:
|
3476
1391
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3477
|
-
|
3478
|
-
|
3479
|
-
|
3480
|
-
class UnbindDeadLetterRequest(AbstractModel):
|
3481
|
-
"""UnbindDeadLetter请求参数结构体
|
3482
|
-
|
3483
|
-
"""
|
3484
|
-
|
3485
|
-
def __init__(self):
|
3486
|
-
r"""
|
3487
|
-
:param _QueueName: 死信策略源队列名称,调用本接口会清空该队列的死信队列策略。
|
3488
|
-
:type QueueName: str
|
3489
|
-
"""
|
3490
|
-
self._QueueName = None
|
3491
|
-
|
3492
|
-
@property
|
3493
|
-
def QueueName(self):
|
3494
|
-
"""死信策略源队列名称,调用本接口会清空该队列的死信队列策略。
|
3495
|
-
:rtype: str
|
3496
|
-
"""
|
3497
|
-
return self._QueueName
|
3498
|
-
|
3499
|
-
@QueueName.setter
|
3500
|
-
def QueueName(self, QueueName):
|
3501
|
-
self._QueueName = QueueName
|
3502
|
-
|
3503
|
-
|
3504
|
-
def _deserialize(self, params):
|
3505
|
-
self._QueueName = params.get("QueueName")
|
3506
|
-
memeber_set = set(params.keys())
|
3507
|
-
for name, value in vars(self).items():
|
3508
|
-
property_name = name[1:]
|
3509
|
-
if property_name in memeber_set:
|
3510
|
-
memeber_set.remove(property_name)
|
3511
|
-
if len(memeber_set) > 0:
|
3512
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3513
|
-
|
3514
|
-
|
3515
|
-
|
3516
|
-
class UnbindDeadLetterResponse(AbstractModel):
|
3517
|
-
"""UnbindDeadLetter返回参数结构体
|
3518
|
-
|
3519
|
-
"""
|
3520
|
-
|
3521
|
-
def __init__(self):
|
3522
|
-
r"""
|
3523
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3524
|
-
:type RequestId: str
|
3525
|
-
"""
|
3526
|
-
self._RequestId = None
|
3527
|
-
|
3528
|
-
@property
|
3529
|
-
def RequestId(self):
|
3530
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3531
|
-
:rtype: str
|
3532
|
-
"""
|
3533
|
-
return self._RequestId
|
3534
|
-
|
3535
|
-
@RequestId.setter
|
3536
|
-
def RequestId(self, RequestId):
|
3537
|
-
self._RequestId = RequestId
|
3538
|
-
|
3539
|
-
|
3540
|
-
def _deserialize(self, params):
|
3541
|
-
self._RequestId = params.get("RequestId")
|
1392
|
+
|