tencentcloud-sdk-python-ckafka 3.0.1231__tar.gz → 3.0.1235__tar.gz
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-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/setup.py +1 -1
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud/ckafka/v20190819/ckafka_client.py +23 -0
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud/ckafka/v20190819/models.py +123 -0
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud_sdk_python_ckafka.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ckafka-3.0.1235/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ckafka-3.0.1231/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/README.rst +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud/ckafka/__init__.py +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud/ckafka/v20190819/__init__.py +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud/ckafka/v20190819/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud_sdk_python_ckafka.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud_sdk_python_ckafka.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/tencentcloud_sdk_python_ckafka.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ckafka',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1235"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ckafka SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1637,6 +1637,29 @@ class CkafkaClient(AbstractClient):
|
|
|
1637
1637
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1638
1638
|
|
|
1639
1639
|
|
|
1640
|
+
def FetchMessageListByTimestamp(self, request):
|
|
1641
|
+
"""根据时间戳查询消息列表
|
|
1642
|
+
|
|
1643
|
+
:param request: Request instance for FetchMessageListByTimestamp.
|
|
1644
|
+
:type request: :class:`tencentcloud.ckafka.v20190819.models.FetchMessageListByTimestampRequest`
|
|
1645
|
+
:rtype: :class:`tencentcloud.ckafka.v20190819.models.FetchMessageListByTimestampResponse`
|
|
1646
|
+
|
|
1647
|
+
"""
|
|
1648
|
+
try:
|
|
1649
|
+
params = request._serialize()
|
|
1650
|
+
headers = request.headers
|
|
1651
|
+
body = self.call("FetchMessageListByTimestamp", params, headers=headers)
|
|
1652
|
+
response = json.loads(body)
|
|
1653
|
+
model = models.FetchMessageListByTimestampResponse()
|
|
1654
|
+
model._deserialize(response["Response"])
|
|
1655
|
+
return model
|
|
1656
|
+
except Exception as e:
|
|
1657
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1658
|
+
raise
|
|
1659
|
+
else:
|
|
1660
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1661
|
+
|
|
1662
|
+
|
|
1640
1663
|
def InquireCkafkaPrice(self, request):
|
|
1641
1664
|
"""Ckafka实例购买/续费询价
|
|
1642
1665
|
|
|
@@ -15177,6 +15177,129 @@ class FetchMessageListByOffsetResponse(AbstractModel):
|
|
|
15177
15177
|
self._RequestId = params.get("RequestId")
|
|
15178
15178
|
|
|
15179
15179
|
|
|
15180
|
+
class FetchMessageListByTimestampRequest(AbstractModel):
|
|
15181
|
+
"""FetchMessageListByTimestamp请求参数结构体
|
|
15182
|
+
|
|
15183
|
+
"""
|
|
15184
|
+
|
|
15185
|
+
def __init__(self):
|
|
15186
|
+
r"""
|
|
15187
|
+
:param _InstanceId: 实例Id
|
|
15188
|
+
:type InstanceId: str
|
|
15189
|
+
:param _Topic: 主题名
|
|
15190
|
+
:type Topic: str
|
|
15191
|
+
:param _Partition: 分区id
|
|
15192
|
+
:type Partition: int
|
|
15193
|
+
:param _StartTime: 查询开始时间,13位时间戳
|
|
15194
|
+
:type StartTime: int
|
|
15195
|
+
:param _SinglePartitionRecordNumber: 最大查询条数,默认20,最大20
|
|
15196
|
+
:type SinglePartitionRecordNumber: int
|
|
15197
|
+
"""
|
|
15198
|
+
self._InstanceId = None
|
|
15199
|
+
self._Topic = None
|
|
15200
|
+
self._Partition = None
|
|
15201
|
+
self._StartTime = None
|
|
15202
|
+
self._SinglePartitionRecordNumber = None
|
|
15203
|
+
|
|
15204
|
+
@property
|
|
15205
|
+
def InstanceId(self):
|
|
15206
|
+
return self._InstanceId
|
|
15207
|
+
|
|
15208
|
+
@InstanceId.setter
|
|
15209
|
+
def InstanceId(self, InstanceId):
|
|
15210
|
+
self._InstanceId = InstanceId
|
|
15211
|
+
|
|
15212
|
+
@property
|
|
15213
|
+
def Topic(self):
|
|
15214
|
+
return self._Topic
|
|
15215
|
+
|
|
15216
|
+
@Topic.setter
|
|
15217
|
+
def Topic(self, Topic):
|
|
15218
|
+
self._Topic = Topic
|
|
15219
|
+
|
|
15220
|
+
@property
|
|
15221
|
+
def Partition(self):
|
|
15222
|
+
return self._Partition
|
|
15223
|
+
|
|
15224
|
+
@Partition.setter
|
|
15225
|
+
def Partition(self, Partition):
|
|
15226
|
+
self._Partition = Partition
|
|
15227
|
+
|
|
15228
|
+
@property
|
|
15229
|
+
def StartTime(self):
|
|
15230
|
+
return self._StartTime
|
|
15231
|
+
|
|
15232
|
+
@StartTime.setter
|
|
15233
|
+
def StartTime(self, StartTime):
|
|
15234
|
+
self._StartTime = StartTime
|
|
15235
|
+
|
|
15236
|
+
@property
|
|
15237
|
+
def SinglePartitionRecordNumber(self):
|
|
15238
|
+
return self._SinglePartitionRecordNumber
|
|
15239
|
+
|
|
15240
|
+
@SinglePartitionRecordNumber.setter
|
|
15241
|
+
def SinglePartitionRecordNumber(self, SinglePartitionRecordNumber):
|
|
15242
|
+
self._SinglePartitionRecordNumber = SinglePartitionRecordNumber
|
|
15243
|
+
|
|
15244
|
+
|
|
15245
|
+
def _deserialize(self, params):
|
|
15246
|
+
self._InstanceId = params.get("InstanceId")
|
|
15247
|
+
self._Topic = params.get("Topic")
|
|
15248
|
+
self._Partition = params.get("Partition")
|
|
15249
|
+
self._StartTime = params.get("StartTime")
|
|
15250
|
+
self._SinglePartitionRecordNumber = params.get("SinglePartitionRecordNumber")
|
|
15251
|
+
memeber_set = set(params.keys())
|
|
15252
|
+
for name, value in vars(self).items():
|
|
15253
|
+
property_name = name[1:]
|
|
15254
|
+
if property_name in memeber_set:
|
|
15255
|
+
memeber_set.remove(property_name)
|
|
15256
|
+
if len(memeber_set) > 0:
|
|
15257
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15258
|
+
|
|
15259
|
+
|
|
15260
|
+
|
|
15261
|
+
class FetchMessageListByTimestampResponse(AbstractModel):
|
|
15262
|
+
"""FetchMessageListByTimestamp返回参数结构体
|
|
15263
|
+
|
|
15264
|
+
"""
|
|
15265
|
+
|
|
15266
|
+
def __init__(self):
|
|
15267
|
+
r"""
|
|
15268
|
+
:param _Result: 返回结果。注意,列表中不返回具体的消息内容(key、value),如果需要查询具体消息内容,请使用FetchMessageByOffset接口
|
|
15269
|
+
:type Result: list of ConsumerRecord
|
|
15270
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15271
|
+
:type RequestId: str
|
|
15272
|
+
"""
|
|
15273
|
+
self._Result = None
|
|
15274
|
+
self._RequestId = None
|
|
15275
|
+
|
|
15276
|
+
@property
|
|
15277
|
+
def Result(self):
|
|
15278
|
+
return self._Result
|
|
15279
|
+
|
|
15280
|
+
@Result.setter
|
|
15281
|
+
def Result(self, Result):
|
|
15282
|
+
self._Result = Result
|
|
15283
|
+
|
|
15284
|
+
@property
|
|
15285
|
+
def RequestId(self):
|
|
15286
|
+
return self._RequestId
|
|
15287
|
+
|
|
15288
|
+
@RequestId.setter
|
|
15289
|
+
def RequestId(self, RequestId):
|
|
15290
|
+
self._RequestId = RequestId
|
|
15291
|
+
|
|
15292
|
+
|
|
15293
|
+
def _deserialize(self, params):
|
|
15294
|
+
if params.get("Result") is not None:
|
|
15295
|
+
self._Result = []
|
|
15296
|
+
for item in params.get("Result"):
|
|
15297
|
+
obj = ConsumerRecord()
|
|
15298
|
+
obj._deserialize(item)
|
|
15299
|
+
self._Result.append(obj)
|
|
15300
|
+
self._RequestId = params.get("RequestId")
|
|
15301
|
+
|
|
15302
|
+
|
|
15180
15303
|
class FieldParam(AbstractModel):
|
|
15181
15304
|
"""数据处理——处理链
|
|
15182
15305
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1235
|
tencentcloud-sdk-python-ckafka-3.0.1231/tencentcloud_sdk_python_ckafka.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1231
|
{tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-ckafka-3.0.1231 → tencentcloud-sdk-python-ckafka-3.0.1235}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|