tencentcloud-sdk-python 3.0.1351__py2.py3-none-any.whl → 3.0.1352__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/cls/v20201016/cls_client.py +92 -0
- tencentcloud/cls/v20201016/models.py +908 -26
- tencentcloud/cvm/v20170312/cvm_client.py +1 -1
- tencentcloud/cvm/v20170312/models.py +2 -6
- tencentcloud/dbbrain/v20191016/models.py +228 -10
- tencentcloud/dbbrain/v20210527/models.py +228 -10
- tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +284 -0
- tencentcloud/ess/v20201111/models.py +6 -6
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/gs/v20191118/models.py +35 -0
- tencentcloud/hai/v20230812/models.py +2 -18
- tencentcloud/iotexplorer/v20190423/models.py +92 -8
- tencentcloud/live/v20180801/models.py +4 -6
- tencentcloud/mps/v20190612/models.py +8 -8
- tencentcloud/mqtt/v20240516/models.py +89 -12
- tencentcloud/ocr/v20181119/models.py +143 -0
- tencentcloud/partners/v20180321/models.py +15 -0
- tencentcloud/tdmq/v20200217/models.py +45 -0
- tencentcloud/teo/v20220901/models.py +85 -12
- tencentcloud/trro/v20220325/models.py +992 -44
- tencentcloud/trro/v20220325/trro_client.py +117 -0
- tencentcloud/vdb/v20230616/models.py +1438 -40
- tencentcloud/vdb/v20230616/vdb_client.py +184 -0
- tencentcloud/vod/v20180717/models.py +15 -0
- tencentcloud/vod/v20240718/errorcodes.py +33 -0
- tencentcloud/vod/v20240718/models.py +1841 -0
- tencentcloud/vod/v20240718/vod_client.py +146 -0
- tencentcloud/wedata/v20210820/models.py +791 -0
- tencentcloud/wedata/v20210820/wedata_client.py +46 -0
- tencentcloud/weilingwith/v20230427/weilingwith_client.py +3 -1
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/RECORD +38 -38
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/top_level.txt +0 -0
@@ -2424,7 +2424,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
2424
2424
|
:type ContactPerson: list of int
|
2425
2425
|
:param _ContactGroup: 接收邮件的联系组ID数组。
|
2426
2426
|
:type ContactGroup: list of int
|
2427
|
-
:param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认值为"mysql"。
|
2427
|
+
:param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认值为"mysql"。
|
2428
2428
|
:type Product: str
|
2429
2429
|
"""
|
2430
2430
|
self._InstanceId = None
|
@@ -2503,7 +2503,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
2503
2503
|
|
2504
2504
|
@property
|
2505
2505
|
def Product(self):
|
2506
|
-
"""服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认值为"mysql"。
|
2506
|
+
"""服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认值为"mysql"。
|
2507
2507
|
:rtype: str
|
2508
2508
|
"""
|
2509
2509
|
return self._Product
|
@@ -2585,7 +2585,7 @@ class CreateDBDiagReportUrlRequest(AbstractModel):
|
|
2585
2585
|
:type InstanceId: str
|
2586
2586
|
:param _AsyncRequestId: 健康报告相应的任务ID,可通过DescribeDBDiagReportTasks查询。
|
2587
2587
|
:type AsyncRequestId: int
|
2588
|
-
:param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
2588
|
+
:param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
|
2589
2589
|
:type Product: str
|
2590
2590
|
"""
|
2591
2591
|
self._InstanceId = None
|
@@ -2616,7 +2616,7 @@ class CreateDBDiagReportUrlRequest(AbstractModel):
|
|
2616
2616
|
|
2617
2617
|
@property
|
2618
2618
|
def Product(self):
|
2619
|
-
"""服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
2619
|
+
"""服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
|
2620
2620
|
:rtype: str
|
2621
2621
|
"""
|
2622
2622
|
return self._Product
|
@@ -5387,7 +5387,7 @@ class DescribeDBDiagEventRequest(AbstractModel):
|
|
5387
5387
|
:type InstanceId: str
|
5388
5388
|
:param _EventId: 事件 ID 。通过“获取实例诊断历史DescribeDBDiagHistory”获取。
|
5389
5389
|
:type EventId: int
|
5390
|
-
:param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
|
5390
|
+
:param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
|
5391
5391
|
:type Product: str
|
5392
5392
|
"""
|
5393
5393
|
self._InstanceId = None
|
@@ -5418,7 +5418,7 @@ class DescribeDBDiagEventRequest(AbstractModel):
|
|
5418
5418
|
|
5419
5419
|
@property
|
5420
5420
|
def Product(self):
|
5421
|
-
"""服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
|
5421
|
+
"""服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
|
5422
5422
|
:rtype: str
|
5423
5423
|
"""
|
5424
5424
|
return self._Product
|
@@ -5966,7 +5966,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
5966
5966
|
:type EndTime: str
|
5967
5967
|
:param _InstanceIds: 实例ID数组,用于筛选指定实例的任务列表。
|
5968
5968
|
:type InstanceIds: list of str
|
5969
|
-
:param _Sources: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" -
|
5969
|
+
:param _Sources: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。
|
5970
5970
|
:type Sources: list of str
|
5971
5971
|
:param _HealthLevels: 报告的健康等级,支持的取值包括:"HEALTH" - 健康;"SUB_HEALTH" - 亚健康;"RISK" - 危险;"HIGH_RISK" - 高危。
|
5972
5972
|
:type HealthLevels: str
|
@@ -5976,7 +5976,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
5976
5976
|
:type Offset: int
|
5977
5977
|
:param _Limit: 返回数量,默认20,最大值为100。
|
5978
5978
|
:type Limit: int
|
5979
|
-
:param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
5979
|
+
:param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
|
5980
5980
|
:type Product: str
|
5981
5981
|
"""
|
5982
5982
|
self._StartTime = None
|
@@ -6024,7 +6024,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
6024
6024
|
|
6025
6025
|
@property
|
6026
6026
|
def Sources(self):
|
6027
|
-
"""任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" -
|
6027
|
+
"""任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。
|
6028
6028
|
:rtype: list of str
|
6029
6029
|
"""
|
6030
6030
|
return self._Sources
|
@@ -6079,7 +6079,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
6079
6079
|
|
6080
6080
|
@property
|
6081
6081
|
def Product(self):
|
6082
|
-
"""服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
6082
|
+
"""服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
|
6083
6083
|
:rtype: str
|
6084
6084
|
"""
|
6085
6085
|
return self._Product
|
@@ -12435,11 +12435,14 @@ class HealthStatus(AbstractModel):
|
|
12435
12435
|
:type ScoreLost: int
|
12436
12436
|
:param _ScoreDetails: 扣分详情。
|
12437
12437
|
:type ScoreDetails: list of ScoreDetail
|
12438
|
+
:param _HealthLevelVersion: 健康等级版本,默认为"V1"
|
12439
|
+
:type HealthLevelVersion: str
|
12438
12440
|
"""
|
12439
12441
|
self._HealthScore = None
|
12440
12442
|
self._HealthLevel = None
|
12441
12443
|
self._ScoreLost = None
|
12442
12444
|
self._ScoreDetails = None
|
12445
|
+
self._HealthLevelVersion = None
|
12443
12446
|
|
12444
12447
|
@property
|
12445
12448
|
def HealthScore(self):
|
@@ -12485,6 +12488,17 @@ class HealthStatus(AbstractModel):
|
|
12485
12488
|
def ScoreDetails(self, ScoreDetails):
|
12486
12489
|
self._ScoreDetails = ScoreDetails
|
12487
12490
|
|
12491
|
+
@property
|
12492
|
+
def HealthLevelVersion(self):
|
12493
|
+
"""健康等级版本,默认为"V1"
|
12494
|
+
:rtype: str
|
12495
|
+
"""
|
12496
|
+
return self._HealthLevelVersion
|
12497
|
+
|
12498
|
+
@HealthLevelVersion.setter
|
12499
|
+
def HealthLevelVersion(self, HealthLevelVersion):
|
12500
|
+
self._HealthLevelVersion = HealthLevelVersion
|
12501
|
+
|
12488
12502
|
|
12489
12503
|
def _deserialize(self, params):
|
12490
12504
|
self._HealthScore = params.get("HealthScore")
|
@@ -12496,6 +12510,7 @@ class HealthStatus(AbstractModel):
|
|
12496
12510
|
obj = ScoreDetail()
|
12497
12511
|
obj._deserialize(item)
|
12498
12512
|
self._ScoreDetails.append(obj)
|
12513
|
+
self._HealthLevelVersion = params.get("HealthLevelVersion")
|
12499
12514
|
memeber_set = set(params.keys())
|
12500
12515
|
for name, value in vars(self).items():
|
12501
12516
|
property_name = name[1:]
|
@@ -12747,6 +12762,24 @@ class InstanceBasicInfo(AbstractModel):
|
|
12747
12762
|
:type Product: str
|
12748
12763
|
:param _EngineVersion: 实例引擎版本。
|
12749
12764
|
:type EngineVersion: str
|
12765
|
+
:param _Cpu: CPU数量,对于Redis为0。
|
12766
|
+
:type Cpu: int
|
12767
|
+
:param _DeployMode: 实例部署模式。
|
12768
|
+
:type DeployMode: str
|
12769
|
+
:param _InstanceConf: 实例内存配置。
|
12770
|
+
:type InstanceConf: :class:`tencentcloud.dbbrain.v20210527.models.RedisInstanceConf`
|
12771
|
+
:param _IsSupported: DBbrain是否支持该实例。
|
12772
|
+
:type IsSupported: bool
|
12773
|
+
:param _Memory: 实例内存,单位MB。
|
12774
|
+
:type Memory: int
|
12775
|
+
:param _Region: 实例地域。
|
12776
|
+
:type Region: str
|
12777
|
+
:param _UniqSubnetId: 实例子网统一ID,对于redis为空字符串。
|
12778
|
+
:type UniqSubnetId: str
|
12779
|
+
:param _UniqVpcId: 实例私有网络统一ID,对于redis为空字符串。
|
12780
|
+
:type UniqVpcId: str
|
12781
|
+
:param _Volume: 实例磁盘容量,对于Redis为0。
|
12782
|
+
:type Volume: int
|
12750
12783
|
"""
|
12751
12784
|
self._InstanceId = None
|
12752
12785
|
self._InstanceName = None
|
@@ -12754,6 +12787,15 @@ class InstanceBasicInfo(AbstractModel):
|
|
12754
12787
|
self._Vport = None
|
12755
12788
|
self._Product = None
|
12756
12789
|
self._EngineVersion = None
|
12790
|
+
self._Cpu = None
|
12791
|
+
self._DeployMode = None
|
12792
|
+
self._InstanceConf = None
|
12793
|
+
self._IsSupported = None
|
12794
|
+
self._Memory = None
|
12795
|
+
self._Region = None
|
12796
|
+
self._UniqSubnetId = None
|
12797
|
+
self._UniqVpcId = None
|
12798
|
+
self._Volume = None
|
12757
12799
|
|
12758
12800
|
@property
|
12759
12801
|
def InstanceId(self):
|
@@ -12821,6 +12863,105 @@ class InstanceBasicInfo(AbstractModel):
|
|
12821
12863
|
def EngineVersion(self, EngineVersion):
|
12822
12864
|
self._EngineVersion = EngineVersion
|
12823
12865
|
|
12866
|
+
@property
|
12867
|
+
def Cpu(self):
|
12868
|
+
"""CPU数量,对于Redis为0。
|
12869
|
+
:rtype: int
|
12870
|
+
"""
|
12871
|
+
return self._Cpu
|
12872
|
+
|
12873
|
+
@Cpu.setter
|
12874
|
+
def Cpu(self, Cpu):
|
12875
|
+
self._Cpu = Cpu
|
12876
|
+
|
12877
|
+
@property
|
12878
|
+
def DeployMode(self):
|
12879
|
+
"""实例部署模式。
|
12880
|
+
:rtype: str
|
12881
|
+
"""
|
12882
|
+
return self._DeployMode
|
12883
|
+
|
12884
|
+
@DeployMode.setter
|
12885
|
+
def DeployMode(self, DeployMode):
|
12886
|
+
self._DeployMode = DeployMode
|
12887
|
+
|
12888
|
+
@property
|
12889
|
+
def InstanceConf(self):
|
12890
|
+
"""实例内存配置。
|
12891
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.RedisInstanceConf`
|
12892
|
+
"""
|
12893
|
+
return self._InstanceConf
|
12894
|
+
|
12895
|
+
@InstanceConf.setter
|
12896
|
+
def InstanceConf(self, InstanceConf):
|
12897
|
+
self._InstanceConf = InstanceConf
|
12898
|
+
|
12899
|
+
@property
|
12900
|
+
def IsSupported(self):
|
12901
|
+
"""DBbrain是否支持该实例。
|
12902
|
+
:rtype: bool
|
12903
|
+
"""
|
12904
|
+
return self._IsSupported
|
12905
|
+
|
12906
|
+
@IsSupported.setter
|
12907
|
+
def IsSupported(self, IsSupported):
|
12908
|
+
self._IsSupported = IsSupported
|
12909
|
+
|
12910
|
+
@property
|
12911
|
+
def Memory(self):
|
12912
|
+
"""实例内存,单位MB。
|
12913
|
+
:rtype: int
|
12914
|
+
"""
|
12915
|
+
return self._Memory
|
12916
|
+
|
12917
|
+
@Memory.setter
|
12918
|
+
def Memory(self, Memory):
|
12919
|
+
self._Memory = Memory
|
12920
|
+
|
12921
|
+
@property
|
12922
|
+
def Region(self):
|
12923
|
+
"""实例地域。
|
12924
|
+
:rtype: str
|
12925
|
+
"""
|
12926
|
+
return self._Region
|
12927
|
+
|
12928
|
+
@Region.setter
|
12929
|
+
def Region(self, Region):
|
12930
|
+
self._Region = Region
|
12931
|
+
|
12932
|
+
@property
|
12933
|
+
def UniqSubnetId(self):
|
12934
|
+
"""实例子网统一ID,对于redis为空字符串。
|
12935
|
+
:rtype: str
|
12936
|
+
"""
|
12937
|
+
return self._UniqSubnetId
|
12938
|
+
|
12939
|
+
@UniqSubnetId.setter
|
12940
|
+
def UniqSubnetId(self, UniqSubnetId):
|
12941
|
+
self._UniqSubnetId = UniqSubnetId
|
12942
|
+
|
12943
|
+
@property
|
12944
|
+
def UniqVpcId(self):
|
12945
|
+
"""实例私有网络统一ID,对于redis为空字符串。
|
12946
|
+
:rtype: str
|
12947
|
+
"""
|
12948
|
+
return self._UniqVpcId
|
12949
|
+
|
12950
|
+
@UniqVpcId.setter
|
12951
|
+
def UniqVpcId(self, UniqVpcId):
|
12952
|
+
self._UniqVpcId = UniqVpcId
|
12953
|
+
|
12954
|
+
@property
|
12955
|
+
def Volume(self):
|
12956
|
+
"""实例磁盘容量,对于Redis为0。
|
12957
|
+
:rtype: int
|
12958
|
+
"""
|
12959
|
+
return self._Volume
|
12960
|
+
|
12961
|
+
@Volume.setter
|
12962
|
+
def Volume(self, Volume):
|
12963
|
+
self._Volume = Volume
|
12964
|
+
|
12824
12965
|
|
12825
12966
|
def _deserialize(self, params):
|
12826
12967
|
self._InstanceId = params.get("InstanceId")
|
@@ -12829,6 +12970,17 @@ class InstanceBasicInfo(AbstractModel):
|
|
12829
12970
|
self._Vport = params.get("Vport")
|
12830
12971
|
self._Product = params.get("Product")
|
12831
12972
|
self._EngineVersion = params.get("EngineVersion")
|
12973
|
+
self._Cpu = params.get("Cpu")
|
12974
|
+
self._DeployMode = params.get("DeployMode")
|
12975
|
+
if params.get("InstanceConf") is not None:
|
12976
|
+
self._InstanceConf = RedisInstanceConf()
|
12977
|
+
self._InstanceConf._deserialize(params.get("InstanceConf"))
|
12978
|
+
self._IsSupported = params.get("IsSupported")
|
12979
|
+
self._Memory = params.get("Memory")
|
12980
|
+
self._Region = params.get("Region")
|
12981
|
+
self._UniqSubnetId = params.get("UniqSubnetId")
|
12982
|
+
self._UniqVpcId = params.get("UniqVpcId")
|
12983
|
+
self._Volume = params.get("Volume")
|
12832
12984
|
memeber_set = set(params.keys())
|
12833
12985
|
for name, value in vars(self).items():
|
12834
12986
|
property_name = name[1:]
|
@@ -15923,6 +16075,72 @@ class RedisCmdInfo(AbstractModel):
|
|
15923
16075
|
|
15924
16076
|
|
15925
16077
|
|
16078
|
+
class RedisInstanceConf(AbstractModel):
|
16079
|
+
"""Redis实例内存配置参数
|
16080
|
+
|
16081
|
+
"""
|
16082
|
+
|
16083
|
+
def __init__(self):
|
16084
|
+
r"""
|
16085
|
+
:param _ReplicasNum: 副本数量
|
16086
|
+
:type ReplicasNum: str
|
16087
|
+
:param _ShardNum: 分片数量
|
16088
|
+
:type ShardNum: str
|
16089
|
+
:param _ShardSize: 分片内存大小,单位MB
|
16090
|
+
:type ShardSize: str
|
16091
|
+
"""
|
16092
|
+
self._ReplicasNum = None
|
16093
|
+
self._ShardNum = None
|
16094
|
+
self._ShardSize = None
|
16095
|
+
|
16096
|
+
@property
|
16097
|
+
def ReplicasNum(self):
|
16098
|
+
"""副本数量
|
16099
|
+
:rtype: str
|
16100
|
+
"""
|
16101
|
+
return self._ReplicasNum
|
16102
|
+
|
16103
|
+
@ReplicasNum.setter
|
16104
|
+
def ReplicasNum(self, ReplicasNum):
|
16105
|
+
self._ReplicasNum = ReplicasNum
|
16106
|
+
|
16107
|
+
@property
|
16108
|
+
def ShardNum(self):
|
16109
|
+
"""分片数量
|
16110
|
+
:rtype: str
|
16111
|
+
"""
|
16112
|
+
return self._ShardNum
|
16113
|
+
|
16114
|
+
@ShardNum.setter
|
16115
|
+
def ShardNum(self, ShardNum):
|
16116
|
+
self._ShardNum = ShardNum
|
16117
|
+
|
16118
|
+
@property
|
16119
|
+
def ShardSize(self):
|
16120
|
+
"""分片内存大小,单位MB
|
16121
|
+
:rtype: str
|
16122
|
+
"""
|
16123
|
+
return self._ShardSize
|
16124
|
+
|
16125
|
+
@ShardSize.setter
|
16126
|
+
def ShardSize(self, ShardSize):
|
16127
|
+
self._ShardSize = ShardSize
|
16128
|
+
|
16129
|
+
|
16130
|
+
def _deserialize(self, params):
|
16131
|
+
self._ReplicasNum = params.get("ReplicasNum")
|
16132
|
+
self._ShardNum = params.get("ShardNum")
|
16133
|
+
self._ShardSize = params.get("ShardSize")
|
16134
|
+
memeber_set = set(params.keys())
|
16135
|
+
for name, value in vars(self).items():
|
16136
|
+
property_name = name[1:]
|
16137
|
+
if property_name in memeber_set:
|
16138
|
+
memeber_set.remove(property_name)
|
16139
|
+
if len(memeber_set) > 0:
|
16140
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16141
|
+
|
16142
|
+
|
16143
|
+
|
15926
16144
|
class RedisKeySpaceData(AbstractModel):
|
15927
16145
|
"""redis key空间信息。
|
15928
16146
|
|
@@ -808,6 +808,29 @@ class DlcClient(AbstractClient):
|
|
808
808
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
809
809
|
|
810
810
|
|
811
|
+
def CreateSparkSubmitTask(self, request):
|
812
|
+
"""本接口(CreateSparkSubmitTask)用于提交SparkSbumit批流任务。
|
813
|
+
|
814
|
+
:param request: Request instance for CreateSparkSubmitTask.
|
815
|
+
:type request: :class:`tencentcloud.dlc.v20210125.models.CreateSparkSubmitTaskRequest`
|
816
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.CreateSparkSubmitTaskResponse`
|
817
|
+
|
818
|
+
"""
|
819
|
+
try:
|
820
|
+
params = request._serialize()
|
821
|
+
headers = request.headers
|
822
|
+
body = self.call("CreateSparkSubmitTask", params, headers=headers)
|
823
|
+
response = json.loads(body)
|
824
|
+
model = models.CreateSparkSubmitTaskResponse()
|
825
|
+
model._deserialize(response["Response"])
|
826
|
+
return model
|
827
|
+
except Exception as e:
|
828
|
+
if isinstance(e, TencentCloudSDKException):
|
829
|
+
raise
|
830
|
+
else:
|
831
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
832
|
+
|
833
|
+
|
811
834
|
def CreateStoreLocation(self, request):
|
812
835
|
"""该接口(CreateStoreLocation)新增或覆盖计算结果存储位置。
|
813
836
|
|
@@ -335,6 +335,9 @@ INVALIDPARAMETER_INVALIDGROUPID = 'InvalidParameter.InvalidGroupId'
|
|
335
335
|
# 请求的消息类型无效。
|
336
336
|
INVALIDPARAMETER_INVALIDINFOTYPE = 'InvalidParameter.InvalidInfoType'
|
337
337
|
|
338
|
+
# 指定参数int类型转换失败
|
339
|
+
INVALIDPARAMETER_INVALIDINTFORMAT = 'InvalidParameter.InvalidIntFormat'
|
340
|
+
|
338
341
|
# 无效的最大结果数。
|
339
342
|
INVALIDPARAMETER_INVALIDMAXRESULTS = 'InvalidParameter.InvalidMaxResults'
|
340
343
|
|
@@ -6990,6 +6990,290 @@ class CreateSparkSessionBatchSQLResponse(AbstractModel):
|
|
6990
6990
|
self._RequestId = params.get("RequestId")
|
6991
6991
|
|
6992
6992
|
|
6993
|
+
class CreateSparkSubmitTaskRequest(AbstractModel):
|
6994
|
+
"""CreateSparkSubmitTask请求参数结构体
|
6995
|
+
|
6996
|
+
"""
|
6997
|
+
|
6998
|
+
def __init__(self):
|
6999
|
+
r"""
|
7000
|
+
:param _TaskName: 任务名称
|
7001
|
+
:type TaskName: str
|
7002
|
+
:param _TaskType: 任务类型:当前支持1: BatchType, 2: StreamingType, 4: SQLType
|
7003
|
+
:type TaskType: int
|
7004
|
+
:param _DataEngineName: 引擎名称,当前仅支持Spark批作业集群
|
7005
|
+
:type DataEngineName: str
|
7006
|
+
:param _PackagePath: 指定运行的程序脚本路径,当前仅支持jar和py,对于SQLType该值设为空字符串
|
7007
|
+
:type PackagePath: str
|
7008
|
+
:param _RoleArn: 指定的鉴权信息
|
7009
|
+
:type RoleArn: int
|
7010
|
+
:param _IsInherit: 运行任务所需资源是否继承自集群上配置资源信息,0(默认,不继承)、1(继承,当设置为该值,则任务级资源配置可不额外指定)
|
7011
|
+
:type IsInherit: int
|
7012
|
+
:param _MainClass: jar任务时需要指定主程序
|
7013
|
+
:type MainClass: str
|
7014
|
+
:param _DriverSize: 当前DriverSize规格仅支持(内存型集群则使用m前缀的枚举值): small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge
|
7015
|
+
:type DriverSize: str
|
7016
|
+
:param _ExecutorSize: 当前ExecutorSize规格仅支持(内存型集群则使用m前缀的枚举值): small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge
|
7017
|
+
:type ExecutorSize: str
|
7018
|
+
:param _ExecutorNumbers: 指定使用的executor数量,最小为1
|
7019
|
+
:type ExecutorNumbers: int
|
7020
|
+
:param _ExecutorMaxNumbers: 指定使用的executor最大数量, 当该值大于ExecutorNums则自动开启动态
|
7021
|
+
:type ExecutorMaxNumbers: int
|
7022
|
+
:param _CmdArgs: 提交任务的附加配置集合,当前支持Key包含:MAINARGS:程序入口参数,空格分割(SqlType任务通过该值指定base64加密后的sql)、SPARKCONFIG:Spark配置,以换行符分隔、ENI:Eni连接信息、DEPENDENCYPACKAGEPATH:依赖的程序包(--jars、--py-files:支持py/zip/egg等归档格式),多文件以逗号分隔、DEPENDENCYFILEPATH:依赖文件资源(--files: 非jar、zip),多文件以逗号分隔、DEPENDENCYARCHIVESPATH:依赖archives资源(--archives: 支持tar.gz/tgz/tar等归档格式),多文件以逗号分隔、MAXRETRIES:任务重试次数,非流任务默认为1、SPARKIMAGE:Spark镜像版本号,支持使用dlc镜像/用户自定的tcr镜像运行任务、SPARKIMAGEVERSION:Spark镜像版本名称,与SPARKIMAGE一一对应
|
7023
|
+
:type CmdArgs: list of KVPair
|
7024
|
+
:param _SourceInfo: 任务来源信息
|
7025
|
+
:type SourceInfo: list of KVPair
|
7026
|
+
"""
|
7027
|
+
self._TaskName = None
|
7028
|
+
self._TaskType = None
|
7029
|
+
self._DataEngineName = None
|
7030
|
+
self._PackagePath = None
|
7031
|
+
self._RoleArn = None
|
7032
|
+
self._IsInherit = None
|
7033
|
+
self._MainClass = None
|
7034
|
+
self._DriverSize = None
|
7035
|
+
self._ExecutorSize = None
|
7036
|
+
self._ExecutorNumbers = None
|
7037
|
+
self._ExecutorMaxNumbers = None
|
7038
|
+
self._CmdArgs = None
|
7039
|
+
self._SourceInfo = None
|
7040
|
+
|
7041
|
+
@property
|
7042
|
+
def TaskName(self):
|
7043
|
+
"""任务名称
|
7044
|
+
:rtype: str
|
7045
|
+
"""
|
7046
|
+
return self._TaskName
|
7047
|
+
|
7048
|
+
@TaskName.setter
|
7049
|
+
def TaskName(self, TaskName):
|
7050
|
+
self._TaskName = TaskName
|
7051
|
+
|
7052
|
+
@property
|
7053
|
+
def TaskType(self):
|
7054
|
+
"""任务类型:当前支持1: BatchType, 2: StreamingType, 4: SQLType
|
7055
|
+
:rtype: int
|
7056
|
+
"""
|
7057
|
+
return self._TaskType
|
7058
|
+
|
7059
|
+
@TaskType.setter
|
7060
|
+
def TaskType(self, TaskType):
|
7061
|
+
self._TaskType = TaskType
|
7062
|
+
|
7063
|
+
@property
|
7064
|
+
def DataEngineName(self):
|
7065
|
+
"""引擎名称,当前仅支持Spark批作业集群
|
7066
|
+
:rtype: str
|
7067
|
+
"""
|
7068
|
+
return self._DataEngineName
|
7069
|
+
|
7070
|
+
@DataEngineName.setter
|
7071
|
+
def DataEngineName(self, DataEngineName):
|
7072
|
+
self._DataEngineName = DataEngineName
|
7073
|
+
|
7074
|
+
@property
|
7075
|
+
def PackagePath(self):
|
7076
|
+
"""指定运行的程序脚本路径,当前仅支持jar和py,对于SQLType该值设为空字符串
|
7077
|
+
:rtype: str
|
7078
|
+
"""
|
7079
|
+
return self._PackagePath
|
7080
|
+
|
7081
|
+
@PackagePath.setter
|
7082
|
+
def PackagePath(self, PackagePath):
|
7083
|
+
self._PackagePath = PackagePath
|
7084
|
+
|
7085
|
+
@property
|
7086
|
+
def RoleArn(self):
|
7087
|
+
"""指定的鉴权信息
|
7088
|
+
:rtype: int
|
7089
|
+
"""
|
7090
|
+
return self._RoleArn
|
7091
|
+
|
7092
|
+
@RoleArn.setter
|
7093
|
+
def RoleArn(self, RoleArn):
|
7094
|
+
self._RoleArn = RoleArn
|
7095
|
+
|
7096
|
+
@property
|
7097
|
+
def IsInherit(self):
|
7098
|
+
"""运行任务所需资源是否继承自集群上配置资源信息,0(默认,不继承)、1(继承,当设置为该值,则任务级资源配置可不额外指定)
|
7099
|
+
:rtype: int
|
7100
|
+
"""
|
7101
|
+
return self._IsInherit
|
7102
|
+
|
7103
|
+
@IsInherit.setter
|
7104
|
+
def IsInherit(self, IsInherit):
|
7105
|
+
self._IsInherit = IsInherit
|
7106
|
+
|
7107
|
+
@property
|
7108
|
+
def MainClass(self):
|
7109
|
+
"""jar任务时需要指定主程序
|
7110
|
+
:rtype: str
|
7111
|
+
"""
|
7112
|
+
return self._MainClass
|
7113
|
+
|
7114
|
+
@MainClass.setter
|
7115
|
+
def MainClass(self, MainClass):
|
7116
|
+
self._MainClass = MainClass
|
7117
|
+
|
7118
|
+
@property
|
7119
|
+
def DriverSize(self):
|
7120
|
+
"""当前DriverSize规格仅支持(内存型集群则使用m前缀的枚举值): small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge
|
7121
|
+
:rtype: str
|
7122
|
+
"""
|
7123
|
+
return self._DriverSize
|
7124
|
+
|
7125
|
+
@DriverSize.setter
|
7126
|
+
def DriverSize(self, DriverSize):
|
7127
|
+
self._DriverSize = DriverSize
|
7128
|
+
|
7129
|
+
@property
|
7130
|
+
def ExecutorSize(self):
|
7131
|
+
"""当前ExecutorSize规格仅支持(内存型集群则使用m前缀的枚举值): small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge
|
7132
|
+
:rtype: str
|
7133
|
+
"""
|
7134
|
+
return self._ExecutorSize
|
7135
|
+
|
7136
|
+
@ExecutorSize.setter
|
7137
|
+
def ExecutorSize(self, ExecutorSize):
|
7138
|
+
self._ExecutorSize = ExecutorSize
|
7139
|
+
|
7140
|
+
@property
|
7141
|
+
def ExecutorNumbers(self):
|
7142
|
+
"""指定使用的executor数量,最小为1
|
7143
|
+
:rtype: int
|
7144
|
+
"""
|
7145
|
+
return self._ExecutorNumbers
|
7146
|
+
|
7147
|
+
@ExecutorNumbers.setter
|
7148
|
+
def ExecutorNumbers(self, ExecutorNumbers):
|
7149
|
+
self._ExecutorNumbers = ExecutorNumbers
|
7150
|
+
|
7151
|
+
@property
|
7152
|
+
def ExecutorMaxNumbers(self):
|
7153
|
+
"""指定使用的executor最大数量, 当该值大于ExecutorNums则自动开启动态
|
7154
|
+
:rtype: int
|
7155
|
+
"""
|
7156
|
+
return self._ExecutorMaxNumbers
|
7157
|
+
|
7158
|
+
@ExecutorMaxNumbers.setter
|
7159
|
+
def ExecutorMaxNumbers(self, ExecutorMaxNumbers):
|
7160
|
+
self._ExecutorMaxNumbers = ExecutorMaxNumbers
|
7161
|
+
|
7162
|
+
@property
|
7163
|
+
def CmdArgs(self):
|
7164
|
+
"""提交任务的附加配置集合,当前支持Key包含:MAINARGS:程序入口参数,空格分割(SqlType任务通过该值指定base64加密后的sql)、SPARKCONFIG:Spark配置,以换行符分隔、ENI:Eni连接信息、DEPENDENCYPACKAGEPATH:依赖的程序包(--jars、--py-files:支持py/zip/egg等归档格式),多文件以逗号分隔、DEPENDENCYFILEPATH:依赖文件资源(--files: 非jar、zip),多文件以逗号分隔、DEPENDENCYARCHIVESPATH:依赖archives资源(--archives: 支持tar.gz/tgz/tar等归档格式),多文件以逗号分隔、MAXRETRIES:任务重试次数,非流任务默认为1、SPARKIMAGE:Spark镜像版本号,支持使用dlc镜像/用户自定的tcr镜像运行任务、SPARKIMAGEVERSION:Spark镜像版本名称,与SPARKIMAGE一一对应
|
7165
|
+
:rtype: list of KVPair
|
7166
|
+
"""
|
7167
|
+
return self._CmdArgs
|
7168
|
+
|
7169
|
+
@CmdArgs.setter
|
7170
|
+
def CmdArgs(self, CmdArgs):
|
7171
|
+
self._CmdArgs = CmdArgs
|
7172
|
+
|
7173
|
+
@property
|
7174
|
+
def SourceInfo(self):
|
7175
|
+
"""任务来源信息
|
7176
|
+
:rtype: list of KVPair
|
7177
|
+
"""
|
7178
|
+
return self._SourceInfo
|
7179
|
+
|
7180
|
+
@SourceInfo.setter
|
7181
|
+
def SourceInfo(self, SourceInfo):
|
7182
|
+
self._SourceInfo = SourceInfo
|
7183
|
+
|
7184
|
+
|
7185
|
+
def _deserialize(self, params):
|
7186
|
+
self._TaskName = params.get("TaskName")
|
7187
|
+
self._TaskType = params.get("TaskType")
|
7188
|
+
self._DataEngineName = params.get("DataEngineName")
|
7189
|
+
self._PackagePath = params.get("PackagePath")
|
7190
|
+
self._RoleArn = params.get("RoleArn")
|
7191
|
+
self._IsInherit = params.get("IsInherit")
|
7192
|
+
self._MainClass = params.get("MainClass")
|
7193
|
+
self._DriverSize = params.get("DriverSize")
|
7194
|
+
self._ExecutorSize = params.get("ExecutorSize")
|
7195
|
+
self._ExecutorNumbers = params.get("ExecutorNumbers")
|
7196
|
+
self._ExecutorMaxNumbers = params.get("ExecutorMaxNumbers")
|
7197
|
+
if params.get("CmdArgs") is not None:
|
7198
|
+
self._CmdArgs = []
|
7199
|
+
for item in params.get("CmdArgs"):
|
7200
|
+
obj = KVPair()
|
7201
|
+
obj._deserialize(item)
|
7202
|
+
self._CmdArgs.append(obj)
|
7203
|
+
if params.get("SourceInfo") is not None:
|
7204
|
+
self._SourceInfo = []
|
7205
|
+
for item in params.get("SourceInfo"):
|
7206
|
+
obj = KVPair()
|
7207
|
+
obj._deserialize(item)
|
7208
|
+
self._SourceInfo.append(obj)
|
7209
|
+
memeber_set = set(params.keys())
|
7210
|
+
for name, value in vars(self).items():
|
7211
|
+
property_name = name[1:]
|
7212
|
+
if property_name in memeber_set:
|
7213
|
+
memeber_set.remove(property_name)
|
7214
|
+
if len(memeber_set) > 0:
|
7215
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7216
|
+
|
7217
|
+
|
7218
|
+
|
7219
|
+
class CreateSparkSubmitTaskResponse(AbstractModel):
|
7220
|
+
"""CreateSparkSubmitTask返回参数结构体
|
7221
|
+
|
7222
|
+
"""
|
7223
|
+
|
7224
|
+
def __init__(self):
|
7225
|
+
r"""
|
7226
|
+
:param _BatchId: 批作业ID
|
7227
|
+
:type BatchId: str
|
7228
|
+
:param _TaskId: 批任务ID,用改ID进行任务的查询与删除等
|
7229
|
+
:type TaskId: str
|
7230
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7231
|
+
:type RequestId: str
|
7232
|
+
"""
|
7233
|
+
self._BatchId = None
|
7234
|
+
self._TaskId = None
|
7235
|
+
self._RequestId = None
|
7236
|
+
|
7237
|
+
@property
|
7238
|
+
def BatchId(self):
|
7239
|
+
"""批作业ID
|
7240
|
+
:rtype: str
|
7241
|
+
"""
|
7242
|
+
return self._BatchId
|
7243
|
+
|
7244
|
+
@BatchId.setter
|
7245
|
+
def BatchId(self, BatchId):
|
7246
|
+
self._BatchId = BatchId
|
7247
|
+
|
7248
|
+
@property
|
7249
|
+
def TaskId(self):
|
7250
|
+
"""批任务ID,用改ID进行任务的查询与删除等
|
7251
|
+
:rtype: str
|
7252
|
+
"""
|
7253
|
+
return self._TaskId
|
7254
|
+
|
7255
|
+
@TaskId.setter
|
7256
|
+
def TaskId(self, TaskId):
|
7257
|
+
self._TaskId = TaskId
|
7258
|
+
|
7259
|
+
@property
|
7260
|
+
def RequestId(self):
|
7261
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7262
|
+
:rtype: str
|
7263
|
+
"""
|
7264
|
+
return self._RequestId
|
7265
|
+
|
7266
|
+
@RequestId.setter
|
7267
|
+
def RequestId(self, RequestId):
|
7268
|
+
self._RequestId = RequestId
|
7269
|
+
|
7270
|
+
|
7271
|
+
def _deserialize(self, params):
|
7272
|
+
self._BatchId = params.get("BatchId")
|
7273
|
+
self._TaskId = params.get("TaskId")
|
7274
|
+
self._RequestId = params.get("RequestId")
|
7275
|
+
|
7276
|
+
|
6993
7277
|
class CreateStoreLocationRequest(AbstractModel):
|
6994
7278
|
"""CreateStoreLocation请求参数结构体
|
6995
7279
|
|