tencentcloud-sdk-python 3.0.1446__py2.py3-none-any.whl → 3.0.1447__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/bi/v20220105/bi_client.py +23 -0
- tencentcloud/bi/v20220105/models.py +179 -0
- tencentcloud/cdb/v20170320/cdb_client.py +1 -1
- tencentcloud/cdb/v20170320/models.py +30 -6
- tencentcloud/cdwdoris/v20211228/models.py +45 -0
- tencentcloud/cfs/v20190719/models.py +21 -2
- tencentcloud/clb/v20180317/models.py +30 -0
- tencentcloud/cls/v20201016/models.py +98 -24
- tencentcloud/common/abstract_client.py +14 -12
- tencentcloud/common/credential.py +61 -26
- tencentcloud/csip/v20221121/models.py +4 -4
- tencentcloud/ctem/v20231128/models.py +30 -0
- tencentcloud/cwp/v20180228/models.py +53 -14
- tencentcloud/cynosdb/v20190107/models.py +2 -0
- tencentcloud/dc/v20180410/models.py +30 -0
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +30 -0
- tencentcloud/dts/v20211206/dts_client.py +23 -0
- tencentcloud/dts/v20211206/models.py +64 -0
- tencentcloud/ess/v20201111/ess_client.py +56 -0
- tencentcloud/ess/v20201111/models.py +283 -10
- tencentcloud/essbasic/v20210526/models.py +10 -16
- tencentcloud/faceid/v20180301/models.py +2 -2
- tencentcloud/ioa/v20220601/errorcodes.py +6 -0
- tencentcloud/ioa/v20220601/ioa_client.py +46 -0
- tencentcloud/ioa/v20220601/models.py +934 -17
- tencentcloud/iotexplorer/v20190423/models.py +112 -0
- tencentcloud/iss/v20230517/errorcodes.py +3 -0
- tencentcloud/iss/v20230517/iss_client.py +23 -0
- tencentcloud/iss/v20230517/models.py +122 -0
- tencentcloud/live/v20180801/models.py +2 -2
- tencentcloud/lkeap/v20240522/errorcodes.py +16 -10
- tencentcloud/lkeap/v20240522/lkeap_client.py +4 -0
- tencentcloud/lkeap/v20240522/models.py +15 -0
- tencentcloud/mna/v20210119/models.py +2 -2
- tencentcloud/mongodb/v20190725/models.py +19 -0
- tencentcloud/mps/v20190612/models.py +174 -0
- tencentcloud/mqtt/v20240516/errorcodes.py +3 -0
- tencentcloud/mqtt/v20240516/models.py +880 -22
- tencentcloud/mqtt/v20240516/mqtt_client.py +115 -0
- tencentcloud/ocr/v20181119/models.py +4 -4
- tencentcloud/ocr/v20181119/ocr_client.py +7 -23
- tencentcloud/organization/v20210331/models.py +393 -0
- tencentcloud/organization/v20210331/organization_client.py +23 -0
- tencentcloud/partners/v20180321/models.py +8 -8
- tencentcloud/partners/v20180321/partners_client.py +2 -2
- tencentcloud/rce/v20201103/rce_client.py +1 -1
- tencentcloud/smh/v20210712/models.py +19 -4
- tencentcloud/tdmq/v20200217/tdmq_client.py +1 -1
- tencentcloud/tione/v20211111/models.py +333 -10
- tencentcloud/tke/v20180525/models.py +15 -0
- tencentcloud/tke/v20220501/models.py +32 -2
- tencentcloud/trtc/v20190722/errorcodes.py +3 -0
- tencentcloud/trtc/v20190722/trtc_client.py +9 -3
- tencentcloud/tsf/v20180326/errorcodes.py +3 -0
- tencentcloud/tsf/v20180326/models.py +2 -4
- tencentcloud/vpc/v20170312/errorcodes.py +18 -0
- tencentcloud/vpc/v20170312/models.py +15 -0
- {tencentcloud_sdk_python-3.0.1446.dist-info → tencentcloud_sdk_python-3.0.1447.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1446.dist-info → tencentcloud_sdk_python-3.0.1447.dist-info}/RECORD +64 -64
- {tencentcloud_sdk_python-3.0.1446.dist-info → tencentcloud_sdk_python-3.0.1447.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1446.dist-info → tencentcloud_sdk_python-3.0.1447.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1446.dist-info → tencentcloud_sdk_python-3.0.1447.dist-info}/top_level.txt +0 -0
|
@@ -7526,9 +7526,14 @@ class CreateDataTransformRequest(AbstractModel):
|
|
|
7526
7526
|
r"""
|
|
7527
7527
|
:param _FuncType: 任务类型. 1: 指定主题;2:动态创建。详情请参考[创建加工任务文档](https://cloud.tencent.com/document/product/614/63940)。
|
|
7528
7528
|
:type FuncType: int
|
|
7529
|
-
:param _SrcTopicId:
|
|
7529
|
+
:param _SrcTopicId: 日志主题ID
|
|
7530
|
+
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
7530
7531
|
:type SrcTopicId: str
|
|
7531
7532
|
:param _Name: 加工任务名称
|
|
7533
|
+
名称限制
|
|
7534
|
+
- 不能为空字符串
|
|
7535
|
+
- 不能包含字符'|'
|
|
7536
|
+
- 最长 255 个字符
|
|
7532
7537
|
:type Name: str
|
|
7533
7538
|
:param _EtlContent: 加工语句。 当FuncType为2时,EtlContent必须使用[log_auto_output](https://cloud.tencent.com/document/product/614/70733#b3c58797-4825-4807-bef4-68106e25024f)
|
|
7534
7539
|
|
|
@@ -7540,11 +7545,15 @@ class CreateDataTransformRequest(AbstractModel):
|
|
|
7540
7545
|
:param _TaskType: 加工类型。
|
|
7541
7546
|
1:使用源日志主题中的随机数据,进行加工预览;2:使用用户自定义测试数据,进行加工预览;3:创建真实加工任务。
|
|
7542
7547
|
:type TaskType: int
|
|
7543
|
-
:param _DstResources:
|
|
7548
|
+
:param _DstResources: 加工任务目标topic_id以及别名,当FuncType=1时,该参数必填,当FuncType=2时,无需填写。
|
|
7549
|
+
目标topic_id,通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
7550
|
+
别名限制 1.不能为空字符串,2. 不能包含字符'|'。
|
|
7551
|
+
|
|
7544
7552
|
:type DstResources: list of DataTransformResouceInfo
|
|
7545
7553
|
:param _EnableFlag: 任务启动状态. 默认为1:开启, 2:关闭
|
|
7546
7554
|
:type EnableFlag: int
|
|
7547
7555
|
:param _PreviewLogStatistics: 用于预览加工结果的测试数据
|
|
7556
|
+
目标日志主题ID通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
7548
7557
|
:type PreviewLogStatistics: list of PreviewLogStatistic
|
|
7549
7558
|
:param _DataTransformType: 数据加工类型。0:标准加工任务; 1:前置加工任务。前置加工任务将采集的日志处理完成后,再写入日志主题。
|
|
7550
7559
|
:type DataTransformType: int
|
|
@@ -7572,7 +7581,8 @@ class CreateDataTransformRequest(AbstractModel):
|
|
|
7572
7581
|
|
|
7573
7582
|
@property
|
|
7574
7583
|
def SrcTopicId(self):
|
|
7575
|
-
"""
|
|
7584
|
+
"""日志主题ID
|
|
7585
|
+
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
7576
7586
|
:rtype: str
|
|
7577
7587
|
"""
|
|
7578
7588
|
return self._SrcTopicId
|
|
@@ -7584,6 +7594,10 @@ class CreateDataTransformRequest(AbstractModel):
|
|
|
7584
7594
|
@property
|
|
7585
7595
|
def Name(self):
|
|
7586
7596
|
"""加工任务名称
|
|
7597
|
+
名称限制
|
|
7598
|
+
- 不能为空字符串
|
|
7599
|
+
- 不能包含字符'|'
|
|
7600
|
+
- 最长 255 个字符
|
|
7587
7601
|
:rtype: str
|
|
7588
7602
|
"""
|
|
7589
7603
|
return self._Name
|
|
@@ -7622,7 +7636,10 @@ class CreateDataTransformRequest(AbstractModel):
|
|
|
7622
7636
|
|
|
7623
7637
|
@property
|
|
7624
7638
|
def DstResources(self):
|
|
7625
|
-
"""
|
|
7639
|
+
"""加工任务目标topic_id以及别名,当FuncType=1时,该参数必填,当FuncType=2时,无需填写。
|
|
7640
|
+
目标topic_id,通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
7641
|
+
别名限制 1.不能为空字符串,2. 不能包含字符'|'。
|
|
7642
|
+
|
|
7626
7643
|
:rtype: list of DataTransformResouceInfo
|
|
7627
7644
|
"""
|
|
7628
7645
|
return self._DstResources
|
|
@@ -7645,6 +7662,7 @@ class CreateDataTransformRequest(AbstractModel):
|
|
|
7645
7662
|
@property
|
|
7646
7663
|
def PreviewLogStatistics(self):
|
|
7647
7664
|
"""用于预览加工结果的测试数据
|
|
7665
|
+
目标日志主题ID通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
7648
7666
|
:rtype: list of PreviewLogStatistic
|
|
7649
7667
|
"""
|
|
7650
7668
|
return self._PreviewLogStatistics
|
|
@@ -10923,7 +10941,7 @@ class DataTransformTaskInfo(AbstractModel):
|
|
|
10923
10941
|
:type TaskId: str
|
|
10924
10942
|
:param _EnableFlag: 任务启用状态,默认为1,正常开启, 2关闭
|
|
10925
10943
|
:type EnableFlag: int
|
|
10926
|
-
:param _Type: 加工任务类型,1: DSL, 2:SQL
|
|
10944
|
+
:param _Type: 加工任务类型,1: DSL(使用自定义加工语言的加工任务), 2:SQL(使用sql的加工任务)
|
|
10927
10945
|
:type Type: int
|
|
10928
10946
|
:param _SrcTopicId: 源日志主题
|
|
10929
10947
|
:type SrcTopicId: str
|
|
@@ -10932,8 +10950,10 @@ class DataTransformTaskInfo(AbstractModel):
|
|
|
10932
10950
|
:param _CreateTime: 加工任务创建时间
|
|
10933
10951
|
:type CreateTime: str
|
|
10934
10952
|
:param _UpdateTime: 最近修改时间
|
|
10953
|
+
示例值:2025-06-18 16:55:54
|
|
10935
10954
|
:type UpdateTime: str
|
|
10936
10955
|
:param _LastEnableTime: 最后启用时间,如果需要重建集群,修改该时间
|
|
10956
|
+
示例值:2025-06-18 19:55:54
|
|
10937
10957
|
:type LastEnableTime: str
|
|
10938
10958
|
:param _SrcTopicName: 日志主题名称
|
|
10939
10959
|
:type SrcTopicName: str
|
|
@@ -11002,7 +11022,7 @@ class DataTransformTaskInfo(AbstractModel):
|
|
|
11002
11022
|
|
|
11003
11023
|
@property
|
|
11004
11024
|
def Type(self):
|
|
11005
|
-
"""加工任务类型,1: DSL, 2:SQL
|
|
11025
|
+
"""加工任务类型,1: DSL(使用自定义加工语言的加工任务), 2:SQL(使用sql的加工任务)
|
|
11006
11026
|
:rtype: int
|
|
11007
11027
|
"""
|
|
11008
11028
|
return self._Type
|
|
@@ -11047,6 +11067,7 @@ class DataTransformTaskInfo(AbstractModel):
|
|
|
11047
11067
|
@property
|
|
11048
11068
|
def UpdateTime(self):
|
|
11049
11069
|
"""最近修改时间
|
|
11070
|
+
示例值:2025-06-18 16:55:54
|
|
11050
11071
|
:rtype: str
|
|
11051
11072
|
"""
|
|
11052
11073
|
return self._UpdateTime
|
|
@@ -11058,6 +11079,7 @@ class DataTransformTaskInfo(AbstractModel):
|
|
|
11058
11079
|
@property
|
|
11059
11080
|
def LastEnableTime(self):
|
|
11060
11081
|
"""最后启用时间,如果需要重建集群,修改该时间
|
|
11082
|
+
示例值:2025-06-18 19:55:54
|
|
11061
11083
|
:rtype: str
|
|
11062
11084
|
"""
|
|
11063
11085
|
return self._LastEnableTime
|
|
@@ -15020,28 +15042,40 @@ class DescribeDataTransformInfoRequest(AbstractModel):
|
|
|
15020
15042
|
按照【加工任务名称】进行过滤。
|
|
15021
15043
|
类型:String
|
|
15022
15044
|
必选:否
|
|
15045
|
+
示例:test-task
|
|
15023
15046
|
|
|
15024
15047
|
- taskId
|
|
15025
15048
|
按照【加工任务id】进行过滤。
|
|
15026
15049
|
类型:String
|
|
15027
15050
|
必选:否
|
|
15051
|
+
示例:a3622556-6402-4942-b4ff-5ae32ec29810
|
|
15052
|
+
数据加工任务ID- 通过[获取数据加工任务列表基本信息](https://cloud.tencent.com/document/product/614/72182)获取数据加工任务Id。
|
|
15028
15053
|
|
|
15029
15054
|
- topicId
|
|
15030
15055
|
按照【源topicId】进行过滤。
|
|
15031
15056
|
类型:String
|
|
15032
15057
|
必选:否
|
|
15058
|
+
示例:756cec3e-a0a5-44c3-85a8-090870582000
|
|
15059
|
+
日志主题ID
|
|
15060
|
+
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
15061
|
+
|
|
15033
15062
|
- status
|
|
15034
15063
|
按照【 任务运行状态】进行过滤。 1:准备中,2:运行中,3:停止中,4:已停止
|
|
15035
15064
|
类型:String
|
|
15036
15065
|
必选:否
|
|
15066
|
+
示例:1
|
|
15067
|
+
|
|
15037
15068
|
- hasServiceLog
|
|
15038
15069
|
按照【是否开启服务日志】进行过滤。 1:未开启,2:已开启
|
|
15039
15070
|
类型:String
|
|
15040
15071
|
必选:否
|
|
15072
|
+
示例:1
|
|
15073
|
+
|
|
15041
15074
|
- dstTopicType
|
|
15042
15075
|
按照【目标topic类型】进行过滤。 1:固定,2:动态
|
|
15043
15076
|
类型:String
|
|
15044
15077
|
必选:否
|
|
15078
|
+
示例:1
|
|
15045
15079
|
|
|
15046
15080
|
每次请求的Filters的上限为10,Filter.Values的上限为100。
|
|
15047
15081
|
:type Filters: list of Filter
|
|
@@ -15052,6 +15086,7 @@ class DescribeDataTransformInfoRequest(AbstractModel):
|
|
|
15052
15086
|
:param _Type: 默认值为2. 1: 获取单个任务的详细信息 2:获取任务列表
|
|
15053
15087
|
:type Type: int
|
|
15054
15088
|
:param _TaskId: Type为1, 此参数必填
|
|
15089
|
+
数据加工任务ID- 通过[获取数据加工任务列表基本信息](https://cloud.tencent.com/document/product/614/72182)获取数据加工任务Id。
|
|
15055
15090
|
:type TaskId: str
|
|
15056
15091
|
"""
|
|
15057
15092
|
self._Filters = None
|
|
@@ -15066,28 +15101,40 @@ class DescribeDataTransformInfoRequest(AbstractModel):
|
|
|
15066
15101
|
按照【加工任务名称】进行过滤。
|
|
15067
15102
|
类型:String
|
|
15068
15103
|
必选:否
|
|
15104
|
+
示例:test-task
|
|
15069
15105
|
|
|
15070
15106
|
- taskId
|
|
15071
15107
|
按照【加工任务id】进行过滤。
|
|
15072
15108
|
类型:String
|
|
15073
15109
|
必选:否
|
|
15110
|
+
示例:a3622556-6402-4942-b4ff-5ae32ec29810
|
|
15111
|
+
数据加工任务ID- 通过[获取数据加工任务列表基本信息](https://cloud.tencent.com/document/product/614/72182)获取数据加工任务Id。
|
|
15074
15112
|
|
|
15075
15113
|
- topicId
|
|
15076
15114
|
按照【源topicId】进行过滤。
|
|
15077
15115
|
类型:String
|
|
15078
15116
|
必选:否
|
|
15117
|
+
示例:756cec3e-a0a5-44c3-85a8-090870582000
|
|
15118
|
+
日志主题ID
|
|
15119
|
+
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
15120
|
+
|
|
15079
15121
|
- status
|
|
15080
15122
|
按照【 任务运行状态】进行过滤。 1:准备中,2:运行中,3:停止中,4:已停止
|
|
15081
15123
|
类型:String
|
|
15082
15124
|
必选:否
|
|
15125
|
+
示例:1
|
|
15126
|
+
|
|
15083
15127
|
- hasServiceLog
|
|
15084
15128
|
按照【是否开启服务日志】进行过滤。 1:未开启,2:已开启
|
|
15085
15129
|
类型:String
|
|
15086
15130
|
必选:否
|
|
15131
|
+
示例:1
|
|
15132
|
+
|
|
15087
15133
|
- dstTopicType
|
|
15088
15134
|
按照【目标topic类型】进行过滤。 1:固定,2:动态
|
|
15089
15135
|
类型:String
|
|
15090
15136
|
必选:否
|
|
15137
|
+
示例:1
|
|
15091
15138
|
|
|
15092
15139
|
每次请求的Filters的上限为10,Filter.Values的上限为100。
|
|
15093
15140
|
:rtype: list of Filter
|
|
@@ -15134,6 +15181,7 @@ class DescribeDataTransformInfoRequest(AbstractModel):
|
|
|
15134
15181
|
@property
|
|
15135
15182
|
def TaskId(self):
|
|
15136
15183
|
"""Type为1, 此参数必填
|
|
15184
|
+
数据加工任务ID- 通过[获取数据加工任务列表基本信息](https://cloud.tencent.com/document/product/614/72182)获取数据加工任务Id。
|
|
15137
15185
|
:rtype: str
|
|
15138
15186
|
"""
|
|
15139
15187
|
return self._TaskId
|
|
@@ -15802,13 +15850,15 @@ class DescribeLogContextRequest(AbstractModel):
|
|
|
15802
15850
|
|
|
15803
15851
|
def __init__(self):
|
|
15804
15852
|
r"""
|
|
15805
|
-
:param _TopicId: 要查询的日志主题
|
|
15853
|
+
:param _TopicId: 要查询的日志主题Id。
|
|
15854
|
+
- 通过 [获取日志主题列表](https://cloud.tencent.com/document/product/614/56454) 获取日志主题Id。
|
|
15855
|
+
- 通过 [创建日志主题](https://cloud.tencent.com/document/product/614/56456) 获取日志主题Id。
|
|
15806
15856
|
:type TopicId: str
|
|
15807
|
-
:param _BTime: 日志时间, 即
|
|
15857
|
+
:param _BTime: 日志时间, 即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的Time,需按照 UTC+8 时区将该毫秒级Unix时间戳转换为 YYYY-mm-dd HH:MM:SS.FFF 格式的字符串。
|
|
15808
15858
|
:type BTime: str
|
|
15809
|
-
:param _PkgId: 日志包序号,即
|
|
15859
|
+
:param _PkgId: 日志包序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的PkgId。
|
|
15810
15860
|
:type PkgId: str
|
|
15811
|
-
:param _PkgLogId: 日志包内一条日志的序号,即
|
|
15861
|
+
:param _PkgLogId: 日志包内一条日志的序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构中的PkgLogId。
|
|
15812
15862
|
:type PkgLogId: int
|
|
15813
15863
|
:param _PrevLogs: 前${PrevLogs}条日志,默认值10。
|
|
15814
15864
|
:type PrevLogs: int
|
|
@@ -15842,7 +15892,9 @@ class DescribeLogContextRequest(AbstractModel):
|
|
|
15842
15892
|
|
|
15843
15893
|
@property
|
|
15844
15894
|
def TopicId(self):
|
|
15845
|
-
"""要查询的日志主题
|
|
15895
|
+
"""要查询的日志主题Id。
|
|
15896
|
+
- 通过 [获取日志主题列表](https://cloud.tencent.com/document/product/614/56454) 获取日志主题Id。
|
|
15897
|
+
- 通过 [创建日志主题](https://cloud.tencent.com/document/product/614/56456) 获取日志主题Id。
|
|
15846
15898
|
:rtype: str
|
|
15847
15899
|
"""
|
|
15848
15900
|
return self._TopicId
|
|
@@ -15853,7 +15905,7 @@ class DescribeLogContextRequest(AbstractModel):
|
|
|
15853
15905
|
|
|
15854
15906
|
@property
|
|
15855
15907
|
def BTime(self):
|
|
15856
|
-
"""日志时间, 即
|
|
15908
|
+
"""日志时间, 即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的Time,需按照 UTC+8 时区将该毫秒级Unix时间戳转换为 YYYY-mm-dd HH:MM:SS.FFF 格式的字符串。
|
|
15857
15909
|
:rtype: str
|
|
15858
15910
|
"""
|
|
15859
15911
|
return self._BTime
|
|
@@ -15864,7 +15916,7 @@ class DescribeLogContextRequest(AbstractModel):
|
|
|
15864
15916
|
|
|
15865
15917
|
@property
|
|
15866
15918
|
def PkgId(self):
|
|
15867
|
-
"""日志包序号,即
|
|
15919
|
+
"""日志包序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的PkgId。
|
|
15868
15920
|
:rtype: str
|
|
15869
15921
|
"""
|
|
15870
15922
|
return self._PkgId
|
|
@@ -15875,7 +15927,7 @@ class DescribeLogContextRequest(AbstractModel):
|
|
|
15875
15927
|
|
|
15876
15928
|
@property
|
|
15877
15929
|
def PkgLogId(self):
|
|
15878
|
-
"""日志包内一条日志的序号,即
|
|
15930
|
+
"""日志包内一条日志的序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构中的PkgLogId。
|
|
15879
15931
|
:rtype: int
|
|
15880
15932
|
"""
|
|
15881
15933
|
return self._PkgLogId
|
|
@@ -24456,9 +24508,16 @@ class ModifyDataTransformRequest(AbstractModel):
|
|
|
24456
24508
|
|
|
24457
24509
|
def __init__(self):
|
|
24458
24510
|
r"""
|
|
24459
|
-
:param _TaskId:
|
|
24511
|
+
:param _TaskId: 数据加工任务ID
|
|
24512
|
+
- 通过[获取数据加工任务列表基本信息](https://cloud.tencent.com/document/product/614/72182)获取数据加工任务Id。
|
|
24460
24513
|
:type TaskId: str
|
|
24461
24514
|
:param _Name: 加工任务名称
|
|
24515
|
+
- 通过[获取数据加工任务列表基本信息](https://cloud.tencent.com/document/product/614/72182)获取数据加工任务名称。
|
|
24516
|
+
|
|
24517
|
+
名称限制
|
|
24518
|
+
- 不能为空字符串
|
|
24519
|
+
- 不能包含字符'|'
|
|
24520
|
+
- 最长 255 个字符
|
|
24462
24521
|
:type Name: str
|
|
24463
24522
|
:param _EtlContent: 加工语句。 当FuncType为2时,EtlContent必须使用[log_auto_output](https://cloud.tencent.com/document/product/614/70733#b3c58797-4825-4807-bef4-68106e25024f)
|
|
24464
24523
|
|
|
@@ -24483,7 +24542,8 @@ class ModifyDataTransformRequest(AbstractModel):
|
|
|
24483
24542
|
|
|
24484
24543
|
@property
|
|
24485
24544
|
def TaskId(self):
|
|
24486
|
-
"""
|
|
24545
|
+
"""数据加工任务ID
|
|
24546
|
+
- 通过[获取数据加工任务列表基本信息](https://cloud.tencent.com/document/product/614/72182)获取数据加工任务Id。
|
|
24487
24547
|
:rtype: str
|
|
24488
24548
|
"""
|
|
24489
24549
|
return self._TaskId
|
|
@@ -24495,6 +24555,12 @@ class ModifyDataTransformRequest(AbstractModel):
|
|
|
24495
24555
|
@property
|
|
24496
24556
|
def Name(self):
|
|
24497
24557
|
"""加工任务名称
|
|
24558
|
+
- 通过[获取数据加工任务列表基本信息](https://cloud.tencent.com/document/product/614/72182)获取数据加工任务名称。
|
|
24559
|
+
|
|
24560
|
+
名称限制
|
|
24561
|
+
- 不能为空字符串
|
|
24562
|
+
- 不能包含字符'|'
|
|
24563
|
+
- 最长 255 个字符
|
|
24498
24564
|
:rtype: str
|
|
24499
24565
|
"""
|
|
24500
24566
|
return self._Name
|
|
@@ -24610,9 +24676,11 @@ class ModifyIndexRequest(AbstractModel):
|
|
|
24610
24676
|
|
|
24611
24677
|
def __init__(self):
|
|
24612
24678
|
r"""
|
|
24613
|
-
:param _TopicId: 日志主题
|
|
24679
|
+
:param _TopicId: 日志主题Id。
|
|
24680
|
+
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
24614
24681
|
:type TopicId: str
|
|
24615
|
-
:param _Status:
|
|
24682
|
+
:param _Status: 索引状态。false:关闭索引, true:开启索引
|
|
24683
|
+
开启后可对日志进行检索分析,将产生索引流量、索引存储及相应费用。[费用详情](https://cloud.tencent.com/document/product/614/45802#.E8.AE.A1.E8.B4.B9.E9.A1.B9)
|
|
24616
24684
|
:type Status: bool
|
|
24617
24685
|
:param _Rule: 索引规则
|
|
24618
24686
|
:type Rule: :class:`tencentcloud.cls.v20201016.models.RuleInfo`
|
|
@@ -24634,7 +24702,8 @@ class ModifyIndexRequest(AbstractModel):
|
|
|
24634
24702
|
|
|
24635
24703
|
@property
|
|
24636
24704
|
def TopicId(self):
|
|
24637
|
-
"""日志主题
|
|
24705
|
+
"""日志主题Id。
|
|
24706
|
+
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
24638
24707
|
:rtype: str
|
|
24639
24708
|
"""
|
|
24640
24709
|
return self._TopicId
|
|
@@ -24645,7 +24714,8 @@ class ModifyIndexRequest(AbstractModel):
|
|
|
24645
24714
|
|
|
24646
24715
|
@property
|
|
24647
24716
|
def Status(self):
|
|
24648
|
-
"""
|
|
24717
|
+
"""索引状态。false:关闭索引, true:开启索引
|
|
24718
|
+
开启后可对日志进行检索分析,将产生索引流量、索引存储及相应费用。[费用详情](https://cloud.tencent.com/document/product/614/45802#.E8.AE.A1.E8.B4.B9.E9.A1.B9)
|
|
24649
24719
|
:rtype: bool
|
|
24650
24720
|
"""
|
|
24651
24721
|
return self._Status
|
|
@@ -30764,9 +30834,11 @@ class SplitPartitionRequest(AbstractModel):
|
|
|
30764
30834
|
|
|
30765
30835
|
def __init__(self):
|
|
30766
30836
|
r"""
|
|
30767
|
-
:param _TopicId: 日志主题
|
|
30837
|
+
:param _TopicId: 日志主题Id
|
|
30838
|
+
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
30768
30839
|
:type TopicId: str
|
|
30769
|
-
:param _PartitionId: 待分裂分区
|
|
30840
|
+
:param _PartitionId: 待分裂分区Id
|
|
30841
|
+
- 通过[获取分区列表](https://cloud.tencent.com/document/product/614/56470)获取待分裂分区Id。
|
|
30770
30842
|
:type PartitionId: int
|
|
30771
30843
|
:param _SplitKey: 分区切分的哈希key的位置,只在Number=2时有意义
|
|
30772
30844
|
:type SplitKey: str
|
|
@@ -30780,7 +30852,8 @@ class SplitPartitionRequest(AbstractModel):
|
|
|
30780
30852
|
|
|
30781
30853
|
@property
|
|
30782
30854
|
def TopicId(self):
|
|
30783
|
-
"""日志主题
|
|
30855
|
+
"""日志主题Id
|
|
30856
|
+
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
|
|
30784
30857
|
:rtype: str
|
|
30785
30858
|
"""
|
|
30786
30859
|
return self._TopicId
|
|
@@ -30791,7 +30864,8 @@ class SplitPartitionRequest(AbstractModel):
|
|
|
30791
30864
|
|
|
30792
30865
|
@property
|
|
30793
30866
|
def PartitionId(self):
|
|
30794
|
-
"""待分裂分区
|
|
30867
|
+
"""待分裂分区Id
|
|
30868
|
+
- 通过[获取分区列表](https://cloud.tencent.com/document/product/614/56470)获取待分裂分区Id。
|
|
30795
30869
|
:rtype: int
|
|
30796
30870
|
"""
|
|
30797
30871
|
return self._PartitionId
|
|
@@ -147,14 +147,16 @@ class AbstractClient(object):
|
|
|
147
147
|
params['Timestamp'] = int(time.time())
|
|
148
148
|
params['Version'] = self._apiVersion
|
|
149
149
|
|
|
150
|
+
cred_secret_id, cred_secret_key, cred_token = self.credential.get_credential_info()
|
|
151
|
+
|
|
150
152
|
if self.region:
|
|
151
153
|
params['Region'] = self.region
|
|
152
154
|
|
|
153
|
-
if
|
|
154
|
-
params['Token'] =
|
|
155
|
+
if cred_token:
|
|
156
|
+
params['Token'] = cred_token
|
|
155
157
|
|
|
156
|
-
if
|
|
157
|
-
params['SecretId'] =
|
|
158
|
+
if cred_secret_id:
|
|
159
|
+
params['SecretId'] = cred_secret_id
|
|
158
160
|
|
|
159
161
|
if self.profile.signMethod:
|
|
160
162
|
params['SignatureMethod'] = self.profile.signMethod
|
|
@@ -163,7 +165,7 @@ class AbstractClient(object):
|
|
|
163
165
|
params['Language'] = self.profile.language
|
|
164
166
|
|
|
165
167
|
signInParam = self._format_sign_string(params, options)
|
|
166
|
-
params['Signature'] = Sign.sign(str(
|
|
168
|
+
params['Signature'] = Sign.sign(str(cred_secret_key),
|
|
167
169
|
str(signInParam),
|
|
168
170
|
str(self.profile.signMethod))
|
|
169
171
|
|
|
@@ -189,6 +191,7 @@ class AbstractClient(object):
|
|
|
189
191
|
|
|
190
192
|
endpoint = self._get_endpoint(options=options)
|
|
191
193
|
timestamp = int(time.time())
|
|
194
|
+
cred_secret_id, cred_secret_key, cred_token = self.credential.get_credential_info()
|
|
192
195
|
req.header["Host"] = endpoint
|
|
193
196
|
req.header["X-TC-Action"] = action[0].upper() + action[1:]
|
|
194
197
|
req.header["X-TC-RequestClient"] = self.request_client
|
|
@@ -198,8 +201,8 @@ class AbstractClient(object):
|
|
|
198
201
|
req.header["X-TC-Content-SHA256"] = "UNSIGNED-PAYLOAD"
|
|
199
202
|
if self.region:
|
|
200
203
|
req.header['X-TC-Region'] = self.region
|
|
201
|
-
if
|
|
202
|
-
req.header['X-TC-Token'] =
|
|
204
|
+
if cred_token:
|
|
205
|
+
req.header['X-TC-Token'] = cred_token
|
|
203
206
|
if self.profile.language:
|
|
204
207
|
req.header['X-TC-Language'] = self.profile.language
|
|
205
208
|
|
|
@@ -215,13 +218,13 @@ class AbstractClient(object):
|
|
|
215
218
|
|
|
216
219
|
service = self._service
|
|
217
220
|
date = datetime.utcfromtimestamp(timestamp).strftime('%Y-%m-%d')
|
|
218
|
-
signature = self._get_tc3_signature(params, req, date, service, options)
|
|
221
|
+
signature = self._get_tc3_signature(params, req, date, service, cred_secret_key, options)
|
|
219
222
|
|
|
220
223
|
auth = "TC3-HMAC-SHA256 Credential=%s/%s/%s/tc3_request, SignedHeaders=content-type;host, Signature=%s" % (
|
|
221
|
-
|
|
224
|
+
cred_secret_id, date, service, signature)
|
|
222
225
|
req.header["Authorization"] = auth
|
|
223
226
|
|
|
224
|
-
def _get_tc3_signature(self, params, req, date, service, options=None):
|
|
227
|
+
def _get_tc3_signature(self, params, req, date, service, secret_key, options=None):
|
|
225
228
|
options = options or {}
|
|
226
229
|
canonical_uri = req.uri
|
|
227
230
|
canonical_querystring = ""
|
|
@@ -258,8 +261,7 @@ class AbstractClient(object):
|
|
|
258
261
|
req.header["X-TC-Timestamp"],
|
|
259
262
|
credential_scope,
|
|
260
263
|
digest)
|
|
261
|
-
|
|
262
|
-
return Sign.sign_tc3(self.credential.secret_key, date, service, string2sign)
|
|
264
|
+
return Sign.sign_tc3(secret_key, date, service, string2sign)
|
|
263
265
|
|
|
264
266
|
def _build_req_without_signature(self, action, params, req, options=None):
|
|
265
267
|
content_type = self._default_content_type
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import json
|
|
17
17
|
import os
|
|
18
18
|
import time
|
|
19
|
+
import threading
|
|
19
20
|
|
|
20
21
|
try:
|
|
21
22
|
# py3
|
|
@@ -70,6 +71,9 @@ class Credential(object):
|
|
|
70
71
|
@property
|
|
71
72
|
def secretKey(self):
|
|
72
73
|
return self.secret_key
|
|
74
|
+
|
|
75
|
+
def get_credential_info(self):
|
|
76
|
+
return self.secret_id, self.secret_key, self.token
|
|
73
77
|
|
|
74
78
|
|
|
75
79
|
class CVMRoleCredential(object):
|
|
@@ -91,6 +95,7 @@ class CVMRoleCredential(object):
|
|
|
91
95
|
self._secret_key = None
|
|
92
96
|
self._token = None
|
|
93
97
|
self._expired_ts = 0
|
|
98
|
+
self._lock = threading.Lock()
|
|
94
99
|
|
|
95
100
|
@property
|
|
96
101
|
def secretId(self):
|
|
@@ -98,8 +103,9 @@ class CVMRoleCredential(object):
|
|
|
98
103
|
|
|
99
104
|
@property
|
|
100
105
|
def secret_id(self):
|
|
101
|
-
self.
|
|
102
|
-
|
|
106
|
+
with self._lock:
|
|
107
|
+
self.update_credential()
|
|
108
|
+
return self._secret_id
|
|
103
109
|
|
|
104
110
|
@property
|
|
105
111
|
def secretKey(self):
|
|
@@ -107,13 +113,15 @@ class CVMRoleCredential(object):
|
|
|
107
113
|
|
|
108
114
|
@property
|
|
109
115
|
def secret_key(self):
|
|
110
|
-
self.
|
|
111
|
-
|
|
116
|
+
with self._lock:
|
|
117
|
+
self.update_credential()
|
|
118
|
+
return self._secret_key
|
|
112
119
|
|
|
113
120
|
@property
|
|
114
121
|
def token(self):
|
|
115
|
-
self.
|
|
116
|
-
|
|
122
|
+
with self._lock:
|
|
123
|
+
self.update_credential()
|
|
124
|
+
return self._token
|
|
117
125
|
|
|
118
126
|
def get_role_name(self):
|
|
119
127
|
if self.role:
|
|
@@ -159,6 +167,11 @@ class CVMRoleCredential(object):
|
|
|
159
167
|
return None
|
|
160
168
|
return self
|
|
161
169
|
|
|
170
|
+
def get_credential_info(self):
|
|
171
|
+
with self._lock:
|
|
172
|
+
self.update_credential()
|
|
173
|
+
return self._secret_id, self._secret_key, self._token
|
|
174
|
+
|
|
162
175
|
|
|
163
176
|
class STSAssumeRoleCredential(object):
|
|
164
177
|
"""Tencent Cloud Credential via STS service
|
|
@@ -200,31 +213,42 @@ class STSAssumeRoleCredential(object):
|
|
|
200
213
|
self._tmp_credential = None
|
|
201
214
|
if endpoint:
|
|
202
215
|
self._endpoint = endpoint
|
|
216
|
+
self._lock = threading.Lock()
|
|
203
217
|
|
|
204
218
|
@property
|
|
205
219
|
def secretId(self):
|
|
206
|
-
self.
|
|
207
|
-
|
|
220
|
+
with self._lock:
|
|
221
|
+
self._need_refresh()
|
|
222
|
+
return self._tmp_secret_id
|
|
208
223
|
|
|
209
224
|
@property
|
|
210
225
|
def secretKey(self):
|
|
211
|
-
self.
|
|
212
|
-
|
|
226
|
+
with self._lock:
|
|
227
|
+
self._need_refresh()
|
|
228
|
+
return self._tmp_secret_key
|
|
213
229
|
|
|
214
230
|
@property
|
|
215
231
|
def secret_id(self):
|
|
216
|
-
self.
|
|
217
|
-
|
|
232
|
+
with self._lock:
|
|
233
|
+
self._need_refresh()
|
|
234
|
+
return self._tmp_secret_id
|
|
218
235
|
|
|
219
236
|
@property
|
|
220
237
|
def secret_key(self):
|
|
221
|
-
self.
|
|
222
|
-
|
|
238
|
+
with self._lock:
|
|
239
|
+
self._need_refresh()
|
|
240
|
+
return self._tmp_secret_key
|
|
223
241
|
|
|
224
242
|
@property
|
|
225
243
|
def token(self):
|
|
226
|
-
self.
|
|
227
|
-
|
|
244
|
+
with self._lock:
|
|
245
|
+
self._need_refresh()
|
|
246
|
+
return self._token
|
|
247
|
+
|
|
248
|
+
def get_credential_info(self):
|
|
249
|
+
with self._lock:
|
|
250
|
+
self._need_refresh()
|
|
251
|
+
return self._tmp_secret_id, self._tmp_secret_key, self._token
|
|
228
252
|
|
|
229
253
|
def _need_refresh(self):
|
|
230
254
|
if None in [self._token, self._tmp_secret_key, self._tmp_secret_id] or self._expired_time < int(time.time()):
|
|
@@ -405,31 +429,42 @@ class OIDCRoleArnCredential(object):
|
|
|
405
429
|
self._tmp_secret_key = None
|
|
406
430
|
self._expired_time = 0
|
|
407
431
|
self._is_tke = False
|
|
432
|
+
self._lock = threading.Lock()
|
|
408
433
|
|
|
409
434
|
@property
|
|
410
435
|
def secretId(self):
|
|
411
|
-
self.
|
|
412
|
-
|
|
436
|
+
with self._lock:
|
|
437
|
+
self._keep_fresh()
|
|
438
|
+
return self._tmp_secret_id
|
|
413
439
|
|
|
414
440
|
@property
|
|
415
441
|
def secretKey(self):
|
|
416
|
-
self.
|
|
417
|
-
|
|
442
|
+
with self._lock:
|
|
443
|
+
self._keep_fresh()
|
|
444
|
+
return self._tmp_secret_key
|
|
418
445
|
|
|
419
446
|
@property
|
|
420
447
|
def secret_id(self):
|
|
421
|
-
self.
|
|
422
|
-
|
|
448
|
+
with self._lock:
|
|
449
|
+
self._keep_fresh()
|
|
450
|
+
return self._tmp_secret_id
|
|
423
451
|
|
|
424
452
|
@property
|
|
425
453
|
def secret_key(self):
|
|
426
|
-
self.
|
|
427
|
-
|
|
454
|
+
with self._lock:
|
|
455
|
+
self._keep_fresh()
|
|
456
|
+
return self._tmp_secret_key
|
|
428
457
|
|
|
429
458
|
@property
|
|
430
459
|
def token(self):
|
|
431
|
-
self.
|
|
432
|
-
|
|
460
|
+
with self._lock:
|
|
461
|
+
self._keep_fresh()
|
|
462
|
+
return self._token
|
|
463
|
+
|
|
464
|
+
def get_credential_info(self):
|
|
465
|
+
with self._lock:
|
|
466
|
+
self._keep_fresh()
|
|
467
|
+
return self._tmp_secret_id, self._tmp_secret_key, self._token
|
|
433
468
|
|
|
434
469
|
@property
|
|
435
470
|
def endpoint(self):
|
|
@@ -27,7 +27,7 @@ class AKInfo(AbstractModel):
|
|
|
27
27
|
r"""
|
|
28
28
|
:param _ID: ak对应id
|
|
29
29
|
:type ID: int
|
|
30
|
-
:param _Name: ak
|
|
30
|
+
:param _Name: ak具体值\n
|
|
31
31
|
临时密钥时返回临时密钥
|
|
32
32
|
:type Name: str
|
|
33
33
|
:param _User: 所属账号
|
|
@@ -53,7 +53,7 @@ class AKInfo(AbstractModel):
|
|
|
53
53
|
|
|
54
54
|
@property
|
|
55
55
|
def Name(self):
|
|
56
|
-
"""ak
|
|
56
|
+
"""ak具体值\n
|
|
57
57
|
临时密钥时返回临时密钥
|
|
58
58
|
:rtype: str
|
|
59
59
|
"""
|
|
@@ -32876,7 +32876,7 @@ class SubUserInfo(AbstractModel):
|
|
|
32876
32876
|
:type ConfigRiskCount: int
|
|
32877
32877
|
:param _ActionRiskCount: 危险行为告警
|
|
32878
32878
|
:type ActionRiskCount: int
|
|
32879
|
-
:param _IsAccessCloudAudit:
|
|
32879
|
+
:param _IsAccessCloudAudit: 是否接入操作审计日志
|
|
32880
32880
|
:type IsAccessCloudAudit: bool
|
|
32881
32881
|
:param _IsAccessCheck: 是否配置风险的安全体检
|
|
32882
32882
|
:type IsAccessCheck: bool
|
|
@@ -33069,7 +33069,7 @@ class SubUserInfo(AbstractModel):
|
|
|
33069
33069
|
|
|
33070
33070
|
@property
|
|
33071
33071
|
def IsAccessCloudAudit(self):
|
|
33072
|
-
"""
|
|
33072
|
+
"""是否接入操作审计日志
|
|
33073
33073
|
:rtype: bool
|
|
33074
33074
|
"""
|
|
33075
33075
|
return self._IsAccessCloudAudit
|