tencentcloud-sdk-python-cls 3.1.190__tar.gz → 3.1.192__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.192}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/tencentcloud/cls/v20201016/models.py +272 -0
  5. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_cls-3.1.192/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.192}/README.rst +0 -0
  9. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/tencentcloud/cls/__init__.py +0 -0
  11. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/tencentcloud/cls/v20201016/__init__.py +0 -0
  12. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/tencentcloud/cls/v20201016/cls_client.py +0 -0
  13. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/tencentcloud/cls/v20201016/cls_client_async.py +0 -0
  14. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/tencentcloud/cls/v20201016/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cls-3.1.190 → tencentcloud_sdk_python_cls-3.1.192}/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.192}/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.192
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.192
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.192,<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.192'
@@ -4630,6 +4630,241 @@ 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
+ :param _Extends: <p>主题扩展信息</p>
4667
+ :type Extends: :class:`tencentcloud.cls.v20201016.models.TopicExtendInfo`
4668
+ """
4669
+ self._Encryption = None
4670
+ self._PartitionCount = None
4671
+ self._AutoSplit = None
4672
+ self._MaxSplitPartitions = None
4673
+ self._StorageType = None
4674
+ self._Period = None
4675
+ self._HotPeriod = None
4676
+ self._BillingMode = None
4677
+ self._Describes = None
4678
+ self._IsSourceFrom = None
4679
+ self._IsWebTracking = None
4680
+ self._CustomKmsInfo = None
4681
+ self._TopicId = None
4682
+ self._Extends = None
4683
+
4684
+ @property
4685
+ def Encryption(self):
4686
+ r"""<p>加密相关参数。 支持加密地域并且开白用户可以传此参数,其他场景不能传递该参数。</p><p>枚举值:</p><ul><li>0: 不加密</li><li>1: kms-cls 云产品密钥加密</li></ul><p>默认值:0</p>
4687
+ :rtype: int
4688
+ """
4689
+ return self._Encryption
4690
+
4691
+ @Encryption.setter
4692
+ def Encryption(self, Encryption):
4693
+ self._Encryption = Encryption
4694
+
4695
+ @property
4696
+ def PartitionCount(self):
4697
+ r"""<p>主题分区个数。默认创建1个,最大支持创建10个分区。</p>
4698
+ :rtype: int
4699
+ """
4700
+ return self._PartitionCount
4701
+
4702
+ @PartitionCount.setter
4703
+ def PartitionCount(self, PartitionCount):
4704
+ self._PartitionCount = PartitionCount
4705
+
4706
+ @property
4707
+ def AutoSplit(self):
4708
+ r"""<p>是否开启自动分裂,默认值为true</p>
4709
+ :rtype: bool
4710
+ """
4711
+ return self._AutoSplit
4712
+
4713
+ @AutoSplit.setter
4714
+ def AutoSplit(self, AutoSplit):
4715
+ self._AutoSplit = AutoSplit
4716
+
4717
+ @property
4718
+ def MaxSplitPartitions(self):
4719
+ r"""<p>开启自动分裂后,每个主题能够允许的最大分区数</p><p>默认值:50</p>
4720
+ :rtype: int
4721
+ """
4722
+ return self._MaxSplitPartitions
4723
+
4724
+ @MaxSplitPartitions.setter
4725
+ def MaxSplitPartitions(self, MaxSplitPartitions):
4726
+ self._MaxSplitPartitions = MaxSplitPartitions
4727
+
4728
+ @property
4729
+ def StorageType(self):
4730
+ r"""<p>日志主题的存储类型,可选值 hot(标准存储),cold(低频存储)。指标主题不支持该配置。</p><p>默认值:hot</p>
4731
+ :rtype: str
4732
+ """
4733
+ return self._StorageType
4734
+
4735
+ @StorageType.setter
4736
+ def StorageType(self, StorageType):
4737
+ self._StorageType = StorageType
4738
+
4739
+ @property
4740
+ def Period(self):
4741
+ r"""<p>存储时间,单位天。</p><ul><li>日志主题:日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。</li><li>日志主题:日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。</li><li>指标主题:支持1至3600天,值为3640时代表永久保存。</li></ul>
4742
+ :rtype: int
4743
+ """
4744
+ return self._Period
4745
+
4746
+ @Period.setter
4747
+ def Period(self, Period):
4748
+ self._Period = Period
4749
+
4750
+ @property
4751
+ def HotPeriod(self):
4752
+ r"""<p>0:日志主题关闭日志沉降。<br>非0:日志主题开启日志沉降后标准存储的天数,HotPeriod需要大于等于7,且小于Period。<br>仅在StorageType为 hot 时生效,指标主题不支持该配置。</p>
4753
+ :rtype: int
4754
+ """
4755
+ return self._HotPeriod
4756
+
4757
+ @HotPeriod.setter
4758
+ def HotPeriod(self, HotPeriod):
4759
+ self._HotPeriod = HotPeriod
4760
+
4761
+ @property
4762
+ def BillingMode(self):
4763
+ r"""<p>计费模式</p><p>枚举值:</p><ul><li>0: 按使用功能计费</li><li>1: 按原始日志量计费(目前仅面向少部分客户支持)</li></ul>
4764
+ :rtype: int
4765
+ """
4766
+ return self._BillingMode
4767
+
4768
+ @BillingMode.setter
4769
+ def BillingMode(self, BillingMode):
4770
+ self._BillingMode = BillingMode
4771
+
4772
+ @property
4773
+ def Describes(self):
4774
+ r"""<p>主题描述</p>
4775
+ :rtype: str
4776
+ """
4777
+ return self._Describes
4778
+
4779
+ @Describes.setter
4780
+ def Describes(self, Describes):
4781
+ self._Describes = Describes
4782
+
4783
+ @property
4784
+ def IsSourceFrom(self):
4785
+ r"""<p>开启记录公网来源ip和服务端接收时间</p>
4786
+ :rtype: bool
4787
+ """
4788
+ return self._IsSourceFrom
4789
+
4790
+ @IsSourceFrom.setter
4791
+ def IsSourceFrom(self, IsSourceFrom):
4792
+ self._IsSourceFrom = IsSourceFrom
4793
+
4794
+ @property
4795
+ def IsWebTracking(self):
4796
+ r"""<p>免鉴权开关。 false:关闭; true:开启。默认为false。 开启后将支持指定操作匿名访问该日志主题。</p>
4797
+ :rtype: bool
4798
+ """
4799
+ return self._IsWebTracking
4800
+
4801
+ @IsWebTracking.setter
4802
+ def IsWebTracking(self, IsWebTracking):
4803
+ self._IsWebTracking = IsWebTracking
4804
+
4805
+ @property
4806
+ def CustomKmsInfo(self):
4807
+ r"""<p>用户自定义 KMS 密钥信息;为空则使用默认密钥(别名 KMS-CLS)<br>当参数 Encryption为 1 时有效。</p>
4808
+ :rtype: :class:`tencentcloud.cls.v20201016.models.CustomKmsInfo`
4809
+ """
4810
+ return self._CustomKmsInfo
4811
+
4812
+ @CustomKmsInfo.setter
4813
+ def CustomKmsInfo(self, CustomKmsInfo):
4814
+ self._CustomKmsInfo = CustomKmsInfo
4815
+
4816
+ @property
4817
+ def TopicId(self):
4818
+ r"""<p>主题自定义ID,格式为:用户自定义部分-用户APPID。未填写该参数时将自动生成ID。</p><ul><li>用户自定义部分仅支持小写字母、数字和-,且不能以-开头和结尾,长度为3至40字符</li><li>尾部需要使用-拼接用户APPID,APPID可在https://console.cloud.tencent.com/developer页面查询。</li><li>如果指定该字段,需保证全地域唯一</li></ul>
4819
+ :rtype: str
4820
+ """
4821
+ return self._TopicId
4822
+
4823
+ @TopicId.setter
4824
+ def TopicId(self, TopicId):
4825
+ self._TopicId = TopicId
4826
+
4827
+ @property
4828
+ def Extends(self):
4829
+ r"""<p>主题扩展信息</p>
4830
+ :rtype: :class:`tencentcloud.cls.v20201016.models.TopicExtendInfo`
4831
+ """
4832
+ return self._Extends
4833
+
4834
+ @Extends.setter
4835
+ def Extends(self, Extends):
4836
+ self._Extends = Extends
4837
+
4838
+
4839
+ def _deserialize(self, params):
4840
+ self._Encryption = params.get("Encryption")
4841
+ self._PartitionCount = params.get("PartitionCount")
4842
+ self._AutoSplit = params.get("AutoSplit")
4843
+ self._MaxSplitPartitions = params.get("MaxSplitPartitions")
4844
+ self._StorageType = params.get("StorageType")
4845
+ self._Period = params.get("Period")
4846
+ self._HotPeriod = params.get("HotPeriod")
4847
+ self._BillingMode = params.get("BillingMode")
4848
+ self._Describes = params.get("Describes")
4849
+ self._IsSourceFrom = params.get("IsSourceFrom")
4850
+ self._IsWebTracking = params.get("IsWebTracking")
4851
+ if params.get("CustomKmsInfo") is not None:
4852
+ self._CustomKmsInfo = CustomKmsInfo()
4853
+ self._CustomKmsInfo._deserialize(params.get("CustomKmsInfo"))
4854
+ self._TopicId = params.get("TopicId")
4855
+ if params.get("Extends") is not None:
4856
+ self._Extends = TopicExtendInfo()
4857
+ self._Extends._deserialize(params.get("Extends"))
4858
+ memeber_set = set(params.keys())
4859
+ for name, value in vars(self).items():
4860
+ property_name = name[1:]
4861
+ if property_name in memeber_set:
4862
+ memeber_set.remove(property_name)
4863
+ if len(memeber_set) > 0:
4864
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4865
+
4866
+
4867
+
4633
4868
  class CollectConfig(AbstractModel):
4634
4869
  r"""采集配置信息
4635
4870
 
@@ -7889,10 +8124,13 @@ class CreateAgentApplicationRequest(AbstractModel):
7889
8124
  :type AccessType: str
7890
8125
  :param _LogsetId: <p>日志集Id。通过 <a href="https://cloud.tencent.com/document/product/614/58624">获取日志集列表</a>获取日志集Id。</p>
7891
8126
  :type LogsetId: str
8127
+ :param _Tags: <p>标签描述列表,通过指定该参数可以同时绑定标签到应用创建的主题和日志集。</p>
8128
+ :type Tags: list of Tag
7892
8129
  """
7893
8130
  self._ApplicationName = None
7894
8131
  self._AccessType = None
7895
8132
  self._LogsetId = None
8133
+ self._Tags = None
7896
8134
 
7897
8135
  @property
7898
8136
  def ApplicationName(self):
@@ -7927,11 +8165,28 @@ class CreateAgentApplicationRequest(AbstractModel):
7927
8165
  def LogsetId(self, LogsetId):
7928
8166
  self._LogsetId = LogsetId
7929
8167
 
8168
+ @property
8169
+ def Tags(self):
8170
+ r"""<p>标签描述列表,通过指定该参数可以同时绑定标签到应用创建的主题和日志集。</p>
8171
+ :rtype: list of Tag
8172
+ """
8173
+ return self._Tags
8174
+
8175
+ @Tags.setter
8176
+ def Tags(self, Tags):
8177
+ self._Tags = Tags
8178
+
7930
8179
 
7931
8180
  def _deserialize(self, params):
7932
8181
  self._ApplicationName = params.get("ApplicationName")
7933
8182
  self._AccessType = params.get("AccessType")
7934
8183
  self._LogsetId = params.get("LogsetId")
8184
+ if params.get("Tags") is not None:
8185
+ self._Tags = []
8186
+ for item in params.get("Tags"):
8187
+ obj = Tag()
8188
+ obj._deserialize(item)
8189
+ self._Tags.append(obj)
7935
8190
  memeber_set = set(params.keys())
7936
8191
  for name, value in vars(self).items():
7937
8192
  property_name = name[1:]
@@ -9033,6 +9288,8 @@ class CreateCloudProductLogCollectionRequest(AbstractModel):
9033
9288
  :type TopicId: str
9034
9289
  :param _Tags: <p>标签描述列表,通过指定该参数可以同时绑定标签到相应的主题。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。</p>
9035
9290
  :type Tags: list of Tag
9291
+ :param _TopicConfig: <p>日志主题信息。当创建云产品投递任务并传递TopicName时,会创建具备这些属性的日志主题。</p>
9292
+ :type TopicConfig: :class:`tencentcloud.cls.v20201016.models.CloudProductTopicConfig`
9036
9293
  """
9037
9294
  self._InstanceId = None
9038
9295
  self._AssumerName = None
@@ -9045,6 +9302,7 @@ class CreateCloudProductLogCollectionRequest(AbstractModel):
9045
9302
  self._LogsetId = None
9046
9303
  self._TopicId = None
9047
9304
  self._Tags = None
9305
+ self._TopicConfig = None
9048
9306
 
9049
9307
  @property
9050
9308
  def InstanceId(self):
@@ -9167,6 +9425,17 @@ class CreateCloudProductLogCollectionRequest(AbstractModel):
9167
9425
  def Tags(self, Tags):
9168
9426
  self._Tags = Tags
9169
9427
 
9428
+ @property
9429
+ def TopicConfig(self):
9430
+ r"""<p>日志主题信息。当创建云产品投递任务并传递TopicName时,会创建具备这些属性的日志主题。</p>
9431
+ :rtype: :class:`tencentcloud.cls.v20201016.models.CloudProductTopicConfig`
9432
+ """
9433
+ return self._TopicConfig
9434
+
9435
+ @TopicConfig.setter
9436
+ def TopicConfig(self, TopicConfig):
9437
+ self._TopicConfig = TopicConfig
9438
+
9170
9439
 
9171
9440
  def _deserialize(self, params):
9172
9441
  self._InstanceId = params.get("InstanceId")
@@ -9185,6 +9454,9 @@ class CreateCloudProductLogCollectionRequest(AbstractModel):
9185
9454
  obj = Tag()
9186
9455
  obj._deserialize(item)
9187
9456
  self._Tags.append(obj)
9457
+ if params.get("TopicConfig") is not None:
9458
+ self._TopicConfig = CloudProductTopicConfig()
9459
+ self._TopicConfig._deserialize(params.get("TopicConfig"))
9188
9460
  memeber_set = set(params.keys())
9189
9461
  for name, value in vars(self).items():
9190
9462
  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.192
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.192
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.192
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.190