tencentcloud-sdk-python-ckafka 3.0.1216__tar.gz → 3.0.1233__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.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/setup.py +1 -1
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud/ckafka/v20190819/ckafka_client.py +24 -1
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud/ckafka/v20190819/models.py +175 -2
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud_sdk_python_ckafka.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ckafka-3.0.1233/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ckafka-3.0.1216/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/README.rst +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud/ckafka/__init__.py +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud/ckafka/v20190819/__init__.py +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud/ckafka/v20190819/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud_sdk_python_ckafka.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud_sdk_python_ckafka.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/tencentcloud_sdk_python_ckafka.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/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.1233"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ckafka SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -717,7 +717,7 @@ class CkafkaClient(AbstractClient):
|
|
|
717
717
|
|
|
718
718
|
|
|
719
719
|
def DeleteInstancePre(self, request):
|
|
720
|
-
"""
|
|
720
|
+
"""删除预付费实例,该接口会对实例执行隔离并删除的动作,执行成功后实例会被直接删除销毁
|
|
721
721
|
|
|
722
722
|
:param request: Request instance for DeleteInstancePre.
|
|
723
723
|
:type request: :class:`tencentcloud.ckafka.v20190819.models.DeleteInstancePreRequest`
|
|
@@ -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
|
|
|
@@ -4532,6 +4532,8 @@ class CreateInstancePostRequest(AbstractModel):
|
|
|
4532
4532
|
:type InstanceNum: int
|
|
4533
4533
|
:param _PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。需要保证传入参数为 3 的整数倍
|
|
4534
4534
|
:type PublicNetworkMonthly: int
|
|
4535
|
+
:param _Tags: 标签
|
|
4536
|
+
:type Tags: list of Tag
|
|
4535
4537
|
"""
|
|
4536
4538
|
self._InstanceName = None
|
|
4537
4539
|
self._VpcId = None
|
|
@@ -4551,6 +4553,7 @@ class CreateInstancePostRequest(AbstractModel):
|
|
|
4551
4553
|
self._ZoneIds = None
|
|
4552
4554
|
self._InstanceNum = None
|
|
4553
4555
|
self._PublicNetworkMonthly = None
|
|
4556
|
+
self._Tags = None
|
|
4554
4557
|
|
|
4555
4558
|
@property
|
|
4556
4559
|
def InstanceName(self):
|
|
@@ -4696,6 +4699,14 @@ class CreateInstancePostRequest(AbstractModel):
|
|
|
4696
4699
|
def PublicNetworkMonthly(self, PublicNetworkMonthly):
|
|
4697
4700
|
self._PublicNetworkMonthly = PublicNetworkMonthly
|
|
4698
4701
|
|
|
4702
|
+
@property
|
|
4703
|
+
def Tags(self):
|
|
4704
|
+
return self._Tags
|
|
4705
|
+
|
|
4706
|
+
@Tags.setter
|
|
4707
|
+
def Tags(self, Tags):
|
|
4708
|
+
self._Tags = Tags
|
|
4709
|
+
|
|
4699
4710
|
|
|
4700
4711
|
def _deserialize(self, params):
|
|
4701
4712
|
self._InstanceName = params.get("InstanceName")
|
|
@@ -4716,6 +4727,12 @@ class CreateInstancePostRequest(AbstractModel):
|
|
|
4716
4727
|
self._ZoneIds = params.get("ZoneIds")
|
|
4717
4728
|
self._InstanceNum = params.get("InstanceNum")
|
|
4718
4729
|
self._PublicNetworkMonthly = params.get("PublicNetworkMonthly")
|
|
4730
|
+
if params.get("Tags") is not None:
|
|
4731
|
+
self._Tags = []
|
|
4732
|
+
for item in params.get("Tags"):
|
|
4733
|
+
obj = Tag()
|
|
4734
|
+
obj._deserialize(item)
|
|
4735
|
+
self._Tags.append(obj)
|
|
4719
4736
|
memeber_set = set(params.keys())
|
|
4720
4737
|
for name, value in vars(self).items():
|
|
4721
4738
|
property_name = name[1:]
|
|
@@ -5414,7 +5431,7 @@ class CreatePostPaidInstanceRequest(AbstractModel):
|
|
|
5414
5431
|
:type ClusterId: int
|
|
5415
5432
|
:param _KafkaVersion: 实例版本。目前支持 "0.10.2","1.1.1","2.4.1","2.4.2","2.8.1"。"2.4.1" 与 "2.4.2" 属于同一个版本,传任意一个均可。
|
|
5416
5433
|
:type KafkaVersion: str
|
|
5417
|
-
:param _SpecificationsType: 实例类型。"standard":标准版,"profession"
|
|
5434
|
+
:param _SpecificationsType: 实例类型。"standard":标准版,"profession":专业版。 (标准版仅国际站支持,国内站目前支持专业版)
|
|
5418
5435
|
:type SpecificationsType: str
|
|
5419
5436
|
:param _DiskType: 专业版实例磁盘类型,标准版实例不需要填写。"CLOUD_SSD":SSD云硬盘;"CLOUD_BASIC":高性能云硬盘。不传默认值为 "CLOUD_BASIC"
|
|
5420
5437
|
:type DiskType: str
|
|
@@ -5436,6 +5453,8 @@ class CreatePostPaidInstanceRequest(AbstractModel):
|
|
|
5436
5453
|
:type InstanceNum: int
|
|
5437
5454
|
:param _PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。需要保证传入参数为 3 的整数倍
|
|
5438
5455
|
:type PublicNetworkMonthly: int
|
|
5456
|
+
:param _Tags: 标签
|
|
5457
|
+
:type Tags: list of Tag
|
|
5439
5458
|
"""
|
|
5440
5459
|
self._InstanceName = None
|
|
5441
5460
|
self._VpcId = None
|
|
@@ -5455,6 +5474,7 @@ class CreatePostPaidInstanceRequest(AbstractModel):
|
|
|
5455
5474
|
self._ZoneIds = None
|
|
5456
5475
|
self._InstanceNum = None
|
|
5457
5476
|
self._PublicNetworkMonthly = None
|
|
5477
|
+
self._Tags = None
|
|
5458
5478
|
|
|
5459
5479
|
@property
|
|
5460
5480
|
def InstanceName(self):
|
|
@@ -5600,6 +5620,14 @@ class CreatePostPaidInstanceRequest(AbstractModel):
|
|
|
5600
5620
|
def PublicNetworkMonthly(self, PublicNetworkMonthly):
|
|
5601
5621
|
self._PublicNetworkMonthly = PublicNetworkMonthly
|
|
5602
5622
|
|
|
5623
|
+
@property
|
|
5624
|
+
def Tags(self):
|
|
5625
|
+
return self._Tags
|
|
5626
|
+
|
|
5627
|
+
@Tags.setter
|
|
5628
|
+
def Tags(self, Tags):
|
|
5629
|
+
self._Tags = Tags
|
|
5630
|
+
|
|
5603
5631
|
|
|
5604
5632
|
def _deserialize(self, params):
|
|
5605
5633
|
self._InstanceName = params.get("InstanceName")
|
|
@@ -5620,6 +5648,12 @@ class CreatePostPaidInstanceRequest(AbstractModel):
|
|
|
5620
5648
|
self._ZoneIds = params.get("ZoneIds")
|
|
5621
5649
|
self._InstanceNum = params.get("InstanceNum")
|
|
5622
5650
|
self._PublicNetworkMonthly = params.get("PublicNetworkMonthly")
|
|
5651
|
+
if params.get("Tags") is not None:
|
|
5652
|
+
self._Tags = []
|
|
5653
|
+
for item in params.get("Tags"):
|
|
5654
|
+
obj = Tag()
|
|
5655
|
+
obj._deserialize(item)
|
|
5656
|
+
self._Tags.append(obj)
|
|
5623
5657
|
memeber_set = set(params.keys())
|
|
5624
5658
|
for name, value in vars(self).items():
|
|
5625
5659
|
property_name = name[1:]
|
|
@@ -8297,11 +8331,22 @@ class DeleteRouteTriggerTimeRequest(AbstractModel):
|
|
|
8297
8331
|
|
|
8298
8332
|
def __init__(self):
|
|
8299
8333
|
r"""
|
|
8334
|
+
:param _InstanceId: 实例id
|
|
8335
|
+
:type InstanceId: str
|
|
8300
8336
|
:param _DelayTime: 修改时间
|
|
8301
8337
|
:type DelayTime: str
|
|
8302
8338
|
"""
|
|
8339
|
+
self._InstanceId = None
|
|
8303
8340
|
self._DelayTime = None
|
|
8304
8341
|
|
|
8342
|
+
@property
|
|
8343
|
+
def InstanceId(self):
|
|
8344
|
+
return self._InstanceId
|
|
8345
|
+
|
|
8346
|
+
@InstanceId.setter
|
|
8347
|
+
def InstanceId(self, InstanceId):
|
|
8348
|
+
self._InstanceId = InstanceId
|
|
8349
|
+
|
|
8305
8350
|
@property
|
|
8306
8351
|
def DelayTime(self):
|
|
8307
8352
|
return self._DelayTime
|
|
@@ -8312,6 +8357,7 @@ class DeleteRouteTriggerTimeRequest(AbstractModel):
|
|
|
8312
8357
|
|
|
8313
8358
|
|
|
8314
8359
|
def _deserialize(self, params):
|
|
8360
|
+
self._InstanceId = params.get("InstanceId")
|
|
8315
8361
|
self._DelayTime = params.get("DelayTime")
|
|
8316
8362
|
memeber_set = set(params.keys())
|
|
8317
8363
|
for name, value in vars(self).items():
|
|
@@ -15131,6 +15177,129 @@ class FetchMessageListByOffsetResponse(AbstractModel):
|
|
|
15131
15177
|
self._RequestId = params.get("RequestId")
|
|
15132
15178
|
|
|
15133
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
|
+
|
|
15134
15303
|
class FieldParam(AbstractModel):
|
|
15135
15304
|
"""数据处理——处理链
|
|
15136
15305
|
|
|
@@ -19917,10 +20086,14 @@ class ModifyInstanceAttributesRequest(AbstractModel):
|
|
|
19917
20086
|
|
|
19918
20087
|
@property
|
|
19919
20088
|
def DynamicDiskConfig(self):
|
|
20089
|
+
warnings.warn("parameter `DynamicDiskConfig` is deprecated", DeprecationWarning)
|
|
20090
|
+
|
|
19920
20091
|
return self._DynamicDiskConfig
|
|
19921
20092
|
|
|
19922
20093
|
@DynamicDiskConfig.setter
|
|
19923
20094
|
def DynamicDiskConfig(self, DynamicDiskConfig):
|
|
20095
|
+
warnings.warn("parameter `DynamicDiskConfig` is deprecated", DeprecationWarning)
|
|
20096
|
+
|
|
19924
20097
|
self._DynamicDiskConfig = DynamicDiskConfig
|
|
19925
20098
|
|
|
19926
20099
|
@property
|
|
@@ -20224,7 +20397,7 @@ class ModifyRoutineMaintenanceTaskRequest(AbstractModel):
|
|
|
20224
20397
|
:type InstanceId: str
|
|
20225
20398
|
:param _MaintenanceType: 自动化运维类别
|
|
20226
20399
|
:type MaintenanceType: str
|
|
20227
|
-
:param _MaintenanceSubtype:
|
|
20400
|
+
:param _MaintenanceSubtype: INSTANCE_STORAGE_CAPACITY(磁盘自动扩容)/MESSAGE_RETENTION_PERIOD(磁盘动态消息保留策略)
|
|
20228
20401
|
:type MaintenanceSubtype: str
|
|
20229
20402
|
:param _TopicName: 主题名称
|
|
20230
20403
|
:type TopicName: str
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1233
|
tencentcloud-sdk-python-ckafka-3.0.1216/tencentcloud_sdk_python_ckafka.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1216
|
{tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-ckafka-3.0.1216 → tencentcloud-sdk-python-ckafka-3.0.1233}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|