tencentcloud-sdk-python-cls 3.1.190__tar.gz → 3.1.191__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 (17) hide show
  1. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud/cls/v20201016/models.py +255 -0
  5. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_cls-3.1.191/tencentcloud_sdk_python_cls.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_cls-3.1.190/tencentcloud_sdk_python_cls.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/README.rst +0 -0
  9. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud/cls/__init__.py +0 -0
  11. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud/cls/v20201016/__init__.py +0 -0
  12. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud/cls/v20201016/cls_client.py +0 -0
  13. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud/cls/v20201016/cls_client_async.py +0 -0
  14. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud/cls/v20201016/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud_sdk_python_cls.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.191}/tencentcloud_sdk_python_cls.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cls
3
- Version: 3.1.190
3
+ Version: 3.1.191
4
4
  Summary: Tencent Cloud Cls SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.190
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.191
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-cls',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.190,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.191,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cls SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.190'
17
+ __version__ = '3.1.191'
@@ -4630,6 +4630,224 @@ class CloudProductLogTaskInfo(AbstractModel):
4630
4630
 
4631
4631
 
4632
4632
 
4633
+ class CloudProductTopicConfig(AbstractModel):
4634
+ r"""云产品投递任务topic配置信息
4635
+
4636
+ """
4637
+
4638
+ def __init__(self):
4639
+ r"""
4640
+ :param _Encryption: <p>加密相关参数。 支持加密地域并且开白用户可以传此参数,其他场景不能传递该参数。</p><p>枚举值:</p><ul><li>0: 不加密</li><li>1: kms-cls 云产品密钥加密</li></ul><p>默认值:0</p>
4641
+ :type Encryption: int
4642
+ :param _PartitionCount: <p>主题分区个数。默认创建1个,最大支持创建10个分区。</p>
4643
+ :type PartitionCount: int
4644
+ :param _AutoSplit: <p>是否开启自动分裂,默认值为true</p>
4645
+ :type AutoSplit: bool
4646
+ :param _MaxSplitPartitions: <p>开启自动分裂后,每个主题能够允许的最大分区数</p><p>默认值:50</p>
4647
+ :type MaxSplitPartitions: int
4648
+ :param _StorageType: <p>日志主题的存储类型,可选值 hot(标准存储),cold(低频存储)。指标主题不支持该配置。</p><p>默认值:hot</p>
4649
+ :type StorageType: str
4650
+ :param _Period: <p>存储时间,单位天。</p><ul><li>日志主题:日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。</li><li>日志主题:日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。</li><li>指标主题:支持1至3600天,值为3640时代表永久保存。</li></ul>
4651
+ :type Period: int
4652
+ :param _HotPeriod: <p>0:日志主题关闭日志沉降。<br>非0:日志主题开启日志沉降后标准存储的天数,HotPeriod需要大于等于7,且小于Period。<br>仅在StorageType为 hot 时生效,指标主题不支持该配置。</p>
4653
+ :type HotPeriod: int
4654
+ :param _BillingMode: <p>计费模式</p><p>枚举值:</p><ul><li>0: 按使用功能计费</li><li>1: 按原始日志量计费(目前仅面向少部分客户支持)</li></ul>
4655
+ :type BillingMode: int
4656
+ :param _Describes: <p>主题描述</p>
4657
+ :type Describes: str
4658
+ :param _IsSourceFrom: <p>开启记录公网来源ip和服务端接收时间</p>
4659
+ :type IsSourceFrom: bool
4660
+ :param _IsWebTracking: <p>免鉴权开关。 false:关闭; true:开启。默认为false。 开启后将支持指定操作匿名访问该日志主题。</p>
4661
+ :type IsWebTracking: bool
4662
+ :param _CustomKmsInfo: <p>用户自定义 KMS 密钥信息;为空则使用默认密钥(别名 KMS-CLS)<br>当参数 Encryption为 1 时有效。</p>
4663
+ :type CustomKmsInfo: :class:`tencentcloud.cls.v20201016.models.CustomKmsInfo`
4664
+ :param _TopicId: <p>主题自定义ID,格式为:用户自定义部分-用户APPID。未填写该参数时将自动生成ID。</p><ul><li>用户自定义部分仅支持小写字母、数字和-,且不能以-开头和结尾,长度为3至40字符</li><li>尾部需要使用-拼接用户APPID,APPID可在https://console.cloud.tencent.com/developer页面查询。</li><li>如果指定该字段,需保证全地域唯一</li></ul>
4665
+ :type TopicId: str
4666
+ """
4667
+ self._Encryption = None
4668
+ self._PartitionCount = None
4669
+ self._AutoSplit = None
4670
+ self._MaxSplitPartitions = None
4671
+ self._StorageType = None
4672
+ self._Period = None
4673
+ self._HotPeriod = None
4674
+ self._BillingMode = None
4675
+ self._Describes = None
4676
+ self._IsSourceFrom = None
4677
+ self._IsWebTracking = None
4678
+ self._CustomKmsInfo = None
4679
+ self._TopicId = None
4680
+
4681
+ @property
4682
+ def Encryption(self):
4683
+ r"""<p>加密相关参数。 支持加密地域并且开白用户可以传此参数,其他场景不能传递该参数。</p><p>枚举值:</p><ul><li>0: 不加密</li><li>1: kms-cls 云产品密钥加密</li></ul><p>默认值:0</p>
4684
+ :rtype: int
4685
+ """
4686
+ return self._Encryption
4687
+
4688
+ @Encryption.setter
4689
+ def Encryption(self, Encryption):
4690
+ self._Encryption = Encryption
4691
+
4692
+ @property
4693
+ def PartitionCount(self):
4694
+ r"""<p>主题分区个数。默认创建1个,最大支持创建10个分区。</p>
4695
+ :rtype: int
4696
+ """
4697
+ return self._PartitionCount
4698
+
4699
+ @PartitionCount.setter
4700
+ def PartitionCount(self, PartitionCount):
4701
+ self._PartitionCount = PartitionCount
4702
+
4703
+ @property
4704
+ def AutoSplit(self):
4705
+ r"""<p>是否开启自动分裂,默认值为true</p>
4706
+ :rtype: bool
4707
+ """
4708
+ return self._AutoSplit
4709
+
4710
+ @AutoSplit.setter
4711
+ def AutoSplit(self, AutoSplit):
4712
+ self._AutoSplit = AutoSplit
4713
+
4714
+ @property
4715
+ def MaxSplitPartitions(self):
4716
+ r"""<p>开启自动分裂后,每个主题能够允许的最大分区数</p><p>默认值:50</p>
4717
+ :rtype: int
4718
+ """
4719
+ return self._MaxSplitPartitions
4720
+
4721
+ @MaxSplitPartitions.setter
4722
+ def MaxSplitPartitions(self, MaxSplitPartitions):
4723
+ self._MaxSplitPartitions = MaxSplitPartitions
4724
+
4725
+ @property
4726
+ def StorageType(self):
4727
+ r"""<p>日志主题的存储类型,可选值 hot(标准存储),cold(低频存储)。指标主题不支持该配置。</p><p>默认值:hot</p>
4728
+ :rtype: str
4729
+ """
4730
+ return self._StorageType
4731
+
4732
+ @StorageType.setter
4733
+ def StorageType(self, StorageType):
4734
+ self._StorageType = StorageType
4735
+
4736
+ @property
4737
+ def Period(self):
4738
+ r"""<p>存储时间,单位天。</p><ul><li>日志主题:日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。</li><li>日志主题:日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。</li><li>指标主题:支持1至3600天,值为3640时代表永久保存。</li></ul>
4739
+ :rtype: int
4740
+ """
4741
+ return self._Period
4742
+
4743
+ @Period.setter
4744
+ def Period(self, Period):
4745
+ self._Period = Period
4746
+
4747
+ @property
4748
+ def HotPeriod(self):
4749
+ r"""<p>0:日志主题关闭日志沉降。<br>非0:日志主题开启日志沉降后标准存储的天数,HotPeriod需要大于等于7,且小于Period。<br>仅在StorageType为 hot 时生效,指标主题不支持该配置。</p>
4750
+ :rtype: int
4751
+ """
4752
+ return self._HotPeriod
4753
+
4754
+ @HotPeriod.setter
4755
+ def HotPeriod(self, HotPeriod):
4756
+ self._HotPeriod = HotPeriod
4757
+
4758
+ @property
4759
+ def BillingMode(self):
4760
+ r"""<p>计费模式</p><p>枚举值:</p><ul><li>0: 按使用功能计费</li><li>1: 按原始日志量计费(目前仅面向少部分客户支持)</li></ul>
4761
+ :rtype: int
4762
+ """
4763
+ return self._BillingMode
4764
+
4765
+ @BillingMode.setter
4766
+ def BillingMode(self, BillingMode):
4767
+ self._BillingMode = BillingMode
4768
+
4769
+ @property
4770
+ def Describes(self):
4771
+ r"""<p>主题描述</p>
4772
+ :rtype: str
4773
+ """
4774
+ return self._Describes
4775
+
4776
+ @Describes.setter
4777
+ def Describes(self, Describes):
4778
+ self._Describes = Describes
4779
+
4780
+ @property
4781
+ def IsSourceFrom(self):
4782
+ r"""<p>开启记录公网来源ip和服务端接收时间</p>
4783
+ :rtype: bool
4784
+ """
4785
+ return self._IsSourceFrom
4786
+
4787
+ @IsSourceFrom.setter
4788
+ def IsSourceFrom(self, IsSourceFrom):
4789
+ self._IsSourceFrom = IsSourceFrom
4790
+
4791
+ @property
4792
+ def IsWebTracking(self):
4793
+ r"""<p>免鉴权开关。 false:关闭; true:开启。默认为false。 开启后将支持指定操作匿名访问该日志主题。</p>
4794
+ :rtype: bool
4795
+ """
4796
+ return self._IsWebTracking
4797
+
4798
+ @IsWebTracking.setter
4799
+ def IsWebTracking(self, IsWebTracking):
4800
+ self._IsWebTracking = IsWebTracking
4801
+
4802
+ @property
4803
+ def CustomKmsInfo(self):
4804
+ r"""<p>用户自定义 KMS 密钥信息;为空则使用默认密钥(别名 KMS-CLS)<br>当参数 Encryption为 1 时有效。</p>
4805
+ :rtype: :class:`tencentcloud.cls.v20201016.models.CustomKmsInfo`
4806
+ """
4807
+ return self._CustomKmsInfo
4808
+
4809
+ @CustomKmsInfo.setter
4810
+ def CustomKmsInfo(self, CustomKmsInfo):
4811
+ self._CustomKmsInfo = CustomKmsInfo
4812
+
4813
+ @property
4814
+ def TopicId(self):
4815
+ r"""<p>主题自定义ID,格式为:用户自定义部分-用户APPID。未填写该参数时将自动生成ID。</p><ul><li>用户自定义部分仅支持小写字母、数字和-,且不能以-开头和结尾,长度为3至40字符</li><li>尾部需要使用-拼接用户APPID,APPID可在https://console.cloud.tencent.com/developer页面查询。</li><li>如果指定该字段,需保证全地域唯一</li></ul>
4816
+ :rtype: str
4817
+ """
4818
+ return self._TopicId
4819
+
4820
+ @TopicId.setter
4821
+ def TopicId(self, TopicId):
4822
+ self._TopicId = TopicId
4823
+
4824
+
4825
+ def _deserialize(self, params):
4826
+ self._Encryption = params.get("Encryption")
4827
+ self._PartitionCount = params.get("PartitionCount")
4828
+ self._AutoSplit = params.get("AutoSplit")
4829
+ self._MaxSplitPartitions = params.get("MaxSplitPartitions")
4830
+ self._StorageType = params.get("StorageType")
4831
+ self._Period = params.get("Period")
4832
+ self._HotPeriod = params.get("HotPeriod")
4833
+ self._BillingMode = params.get("BillingMode")
4834
+ self._Describes = params.get("Describes")
4835
+ self._IsSourceFrom = params.get("IsSourceFrom")
4836
+ self._IsWebTracking = params.get("IsWebTracking")
4837
+ if params.get("CustomKmsInfo") is not None:
4838
+ self._CustomKmsInfo = CustomKmsInfo()
4839
+ self._CustomKmsInfo._deserialize(params.get("CustomKmsInfo"))
4840
+ self._TopicId = params.get("TopicId")
4841
+ memeber_set = set(params.keys())
4842
+ for name, value in vars(self).items():
4843
+ property_name = name[1:]
4844
+ if property_name in memeber_set:
4845
+ memeber_set.remove(property_name)
4846
+ if len(memeber_set) > 0:
4847
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4848
+
4849
+
4850
+
4633
4851
  class CollectConfig(AbstractModel):
4634
4852
  r"""采集配置信息
4635
4853
 
@@ -7889,10 +8107,13 @@ class CreateAgentApplicationRequest(AbstractModel):
7889
8107
  :type AccessType: str
7890
8108
  :param _LogsetId: <p>日志集Id。通过 <a href="https://cloud.tencent.com/document/product/614/58624">获取日志集列表</a>获取日志集Id。</p>
7891
8109
  :type LogsetId: str
8110
+ :param _Tags: <p>标签描述列表,通过指定该参数可以同时绑定标签到应用创建的主题和日志集。</p>
8111
+ :type Tags: list of Tag
7892
8112
  """
7893
8113
  self._ApplicationName = None
7894
8114
  self._AccessType = None
7895
8115
  self._LogsetId = None
8116
+ self._Tags = None
7896
8117
 
7897
8118
  @property
7898
8119
  def ApplicationName(self):
@@ -7927,11 +8148,28 @@ class CreateAgentApplicationRequest(AbstractModel):
7927
8148
  def LogsetId(self, LogsetId):
7928
8149
  self._LogsetId = LogsetId
7929
8150
 
8151
+ @property
8152
+ def Tags(self):
8153
+ r"""<p>标签描述列表,通过指定该参数可以同时绑定标签到应用创建的主题和日志集。</p>
8154
+ :rtype: list of Tag
8155
+ """
8156
+ return self._Tags
8157
+
8158
+ @Tags.setter
8159
+ def Tags(self, Tags):
8160
+ self._Tags = Tags
8161
+
7930
8162
 
7931
8163
  def _deserialize(self, params):
7932
8164
  self._ApplicationName = params.get("ApplicationName")
7933
8165
  self._AccessType = params.get("AccessType")
7934
8166
  self._LogsetId = params.get("LogsetId")
8167
+ if params.get("Tags") is not None:
8168
+ self._Tags = []
8169
+ for item in params.get("Tags"):
8170
+ obj = Tag()
8171
+ obj._deserialize(item)
8172
+ self._Tags.append(obj)
7935
8173
  memeber_set = set(params.keys())
7936
8174
  for name, value in vars(self).items():
7937
8175
  property_name = name[1:]
@@ -9033,6 +9271,8 @@ class CreateCloudProductLogCollectionRequest(AbstractModel):
9033
9271
  :type TopicId: str
9034
9272
  :param _Tags: <p>标签描述列表,通过指定该参数可以同时绑定标签到相应的主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。</p>
9035
9273
  :type Tags: list of Tag
9274
+ :param _TopicConfig: <p>日志主题信息。当创建云产品投递任务并传递TopicName时,会创建具备这些属性的日志主题。</p>
9275
+ :type TopicConfig: :class:`tencentcloud.cls.v20201016.models.CloudProductTopicConfig`
9036
9276
  """
9037
9277
  self._InstanceId = None
9038
9278
  self._AssumerName = None
@@ -9045,6 +9285,7 @@ class CreateCloudProductLogCollectionRequest(AbstractModel):
9045
9285
  self._LogsetId = None
9046
9286
  self._TopicId = None
9047
9287
  self._Tags = None
9288
+ self._TopicConfig = None
9048
9289
 
9049
9290
  @property
9050
9291
  def InstanceId(self):
@@ -9167,6 +9408,17 @@ class CreateCloudProductLogCollectionRequest(AbstractModel):
9167
9408
  def Tags(self, Tags):
9168
9409
  self._Tags = Tags
9169
9410
 
9411
+ @property
9412
+ def TopicConfig(self):
9413
+ r"""<p>日志主题信息。当创建云产品投递任务并传递TopicName时,会创建具备这些属性的日志主题。</p>
9414
+ :rtype: :class:`tencentcloud.cls.v20201016.models.CloudProductTopicConfig`
9415
+ """
9416
+ return self._TopicConfig
9417
+
9418
+ @TopicConfig.setter
9419
+ def TopicConfig(self, TopicConfig):
9420
+ self._TopicConfig = TopicConfig
9421
+
9170
9422
 
9171
9423
  def _deserialize(self, params):
9172
9424
  self._InstanceId = params.get("InstanceId")
@@ -9185,6 +9437,9 @@ class CreateCloudProductLogCollectionRequest(AbstractModel):
9185
9437
  obj = Tag()
9186
9438
  obj._deserialize(item)
9187
9439
  self._Tags.append(obj)
9440
+ if params.get("TopicConfig") is not None:
9441
+ self._TopicConfig = CloudProductTopicConfig()
9442
+ self._TopicConfig._deserialize(params.get("TopicConfig"))
9188
9443
  memeber_set = set(params.keys())
9189
9444
  for name, value in vars(self).items():
9190
9445
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cls
3
- Version: 3.1.190
3
+ Version: 3.1.191
4
4
  Summary: Tencent Cloud Cls SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.190
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.191
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.191
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.190