tencentcloud-sdk-python-ckafka 3.0.1223__tar.gz → 3.0.1260__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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud/ckafka/v20190819/ckafka_client.py +23 -0
  5. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud/ckafka/v20190819/models.py +134 -7
  6. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud_sdk_python_ckafka.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-ckafka-3.0.1260/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-ckafka-3.0.1223/tencentcloud_sdk_python_ckafka.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/README.rst +0 -0
  10. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud/ckafka/__init__.py +0 -0
  12. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud/ckafka/v20190819/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud/ckafka/v20190819/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud_sdk_python_ckafka.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud_sdk_python_ckafka.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ckafka-3.0.1223 → tencentcloud-sdk-python-ckafka-3.0.1260}/tencentcloud_sdk_python_ckafka.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-ckafka
3
- Version: 3.0.1223
3
+ Version: 3.0.1260
4
4
  Summary: Tencent Cloud Ckafka SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -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.1223"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1260"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Ckafka SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1223'
17
+ __version__ = '3.0.1260'
@@ -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
 
@@ -1050,7 +1050,7 @@ class BatchModifyTopicAttributesRequest(AbstractModel):
1050
1050
  r"""
1051
1051
  :param _InstanceId: 实例id
1052
1052
  :type InstanceId: str
1053
- :param _Topic: 主题属性列表
1053
+ :param _Topic: 主题属性列表 (同一个批次最多支持10个)
1054
1054
  :type Topic: list of BatchModifyTopicInfo
1055
1055
  """
1056
1056
  self._InstanceId = None
@@ -6177,7 +6177,7 @@ class CreateTopicRequest(AbstractModel):
6177
6177
  :type RetentionMs: int
6178
6178
  :param _SegmentMs: Segment分片滚动的时长,单位ms,当前最小为3600000ms
6179
6179
  :type SegmentMs: int
6180
- :param _MaxMessageBytes: 主题消息最大值,单位为 Byte,最小值1024Byte(即1KB),最大值为8388608Byte(即8MB)。
6180
+ :param _MaxMessageBytes: 主题消息最大值,单位为 Byte,最小值1024Byte(即1KB),最大值为12582912Byte(即12MB)
6181
6181
  :type MaxMessageBytes: int
6182
6182
  :param _EnableAclRule: 预设ACL规则, 1:打开 0:关闭,默认不打开
6183
6183
  :type EnableAclRule: int
@@ -11762,11 +11762,11 @@ class DescribeInstancesRequest(AbstractModel):
11762
11762
 
11763
11763
  def __init__(self):
11764
11764
  r"""
11765
- :param _InstanceId: (过滤条件)按照实例ID过滤
11765
+ :param _InstanceId: (查询条件)按照ckafka集群实例Id过滤
11766
11766
  :type InstanceId: str
11767
- :param _SearchWord: (过滤条件)按照实例名称过滤,支持模糊查询
11767
+ :param _SearchWord: 搜索词 ex:(查询条件)按照实例名称过滤,支持模糊查询
11768
11768
  :type SearchWord: str
11769
- :param _Status: (过滤条件)实例的状态。0:创建中,1:运行中,2:删除中,不填默认返回全部
11769
+ :param _Status: (查询条件)实例的状态 0:创建中,1:运行中,2:删除中,5: 隔离中, 7:升级中 不填默认返回全部
11770
11770
  :type Status: list of int
11771
11771
  :param _Offset: 偏移量,不填默认为0
11772
11772
  :type Offset: int
@@ -11774,7 +11774,7 @@ class DescribeInstancesRequest(AbstractModel):
11774
11774
  :type Limit: int
11775
11775
  :param _TagKey: 已废弃。匹配标签key值。
11776
11776
  :type TagKey: str
11777
- :param _VpcId: 私有网络Id
11777
+ :param _VpcId: (查询条件)私有网络Id
11778
11778
  :type VpcId: str
11779
11779
  """
11780
11780
  self._InstanceId = None
@@ -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
 
@@ -19963,10 +20086,14 @@ class ModifyInstanceAttributesRequest(AbstractModel):
19963
20086
 
19964
20087
  @property
19965
20088
  def DynamicDiskConfig(self):
20089
+ warnings.warn("parameter `DynamicDiskConfig` is deprecated", DeprecationWarning)
20090
+
19966
20091
  return self._DynamicDiskConfig
19967
20092
 
19968
20093
  @DynamicDiskConfig.setter
19969
20094
  def DynamicDiskConfig(self, DynamicDiskConfig):
20095
+ warnings.warn("parameter `DynamicDiskConfig` is deprecated", DeprecationWarning)
20096
+
19970
20097
  self._DynamicDiskConfig = DynamicDiskConfig
19971
20098
 
19972
20099
  @property
@@ -20270,7 +20397,7 @@ class ModifyRoutineMaintenanceTaskRequest(AbstractModel):
20270
20397
  :type InstanceId: str
20271
20398
  :param _MaintenanceType: 自动化运维类别
20272
20399
  :type MaintenanceType: str
20273
- :param _MaintenanceSubtype: 自动化运维子类别
20400
+ :param _MaintenanceSubtype: INSTANCE_STORAGE_CAPACITY(磁盘自动扩容)/MESSAGE_RETENTION_PERIOD(磁盘动态消息保留策略)
20274
20401
  :type MaintenanceSubtype: str
20275
20402
  :param _TopicName: 主题名称
20276
20403
  :type TopicName: str
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-ckafka
3
- Version: 3.0.1223
3
+ Version: 3.0.1260
4
4
  Summary: Tencent Cloud Ckafka SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1260
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1223