tencentcloud-sdk-python-dlc 3.0.1038__tar.gz → 3.0.1048__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.
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/setup.py +1 -1
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud/dlc/v20210125/errorcodes.py +9 -0
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud/dlc/v20210125/models.py +152 -3
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud_sdk_python_dlc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-dlc-3.0.1048/tencentcloud_sdk_python_dlc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-dlc-3.0.1038/tencentcloud_sdk_python_dlc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/README.rst +0 -0
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/setup.cfg +0 -0
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud/dlc/__init__.py +0 -0
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud/dlc/v20210125/__init__.py +0 -0
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud_sdk_python_dlc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud_sdk_python_dlc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-dlc-3.0.1038 → tencentcloud-sdk-python-dlc-3.0.1048}/tencentcloud_sdk_python_dlc.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-dlc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1048"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Dlc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -141,6 +141,29 @@ class DlcClient(AbstractClient):
|
|
|
141
141
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
142
|
|
|
143
143
|
|
|
144
|
+
def AssignMangedTableProperties(self, request):
|
|
145
|
+
"""分配原生表表属性
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for AssignMangedTableProperties.
|
|
148
|
+
:type request: :class:`tencentcloud.dlc.v20210125.models.AssignMangedTablePropertiesRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.AssignMangedTablePropertiesResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("AssignMangedTableProperties", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.AssignMangedTablePropertiesResponse()
|
|
158
|
+
model._deserialize(response["Response"])
|
|
159
|
+
return model
|
|
160
|
+
except Exception as e:
|
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
|
162
|
+
raise
|
|
163
|
+
else:
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
|
+
|
|
166
|
+
|
|
144
167
|
def AttachUserPolicy(self, request):
|
|
145
168
|
"""绑定鉴权策略到用户
|
|
146
169
|
|
|
@@ -170,6 +170,9 @@ INVALIDPARAMETER_DATAENGINEIMAGEOPERATENOTMATCH = 'InvalidParameter.DataEngineIm
|
|
|
170
170
|
# 指定集群计费模式不匹配,当前仅支持: 1: 按量计费, 2: 包年包月
|
|
171
171
|
INVALIDPARAMETER_DATAENGINEMODENOTMATCH = 'InvalidParameter.DataEngineModeNotMatch'
|
|
172
172
|
|
|
173
|
+
# 当前任务仅支持SQL引擎运行
|
|
174
|
+
INVALIDPARAMETER_DATAENGINEONLYSUPPORTSQL = 'InvalidParameter.DataEngineOnlySupportSQL'
|
|
175
|
+
|
|
173
176
|
# 当前任务仅支持Spark批作业引擎运行
|
|
174
177
|
INVALIDPARAMETER_DATAENGINEONLYSUPPORTSPARKBATCH = 'InvalidParameter.DataEngineOnlySupportSparkBatch'
|
|
175
178
|
|
|
@@ -362,6 +365,9 @@ INVALIDPARAMETER_INVALIDSESSIONKINDTYPE = 'InvalidParameter.InvalidSessionKindTy
|
|
|
362
365
|
# 不支持的排序类型。
|
|
363
366
|
INVALIDPARAMETER_INVALIDSORTBYTYPE = 'InvalidParameter.InvalidSortByType'
|
|
364
367
|
|
|
368
|
+
# Invalid Sorting
|
|
369
|
+
INVALIDPARAMETER_INVALIDSORTING = 'InvalidParameter.InvalidSorting'
|
|
370
|
+
|
|
365
371
|
# SparkAppParam无效。
|
|
366
372
|
INVALIDPARAMETER_INVALIDSPARKAPPPARAM = 'InvalidParameter.InvalidSparkAppParam'
|
|
367
373
|
|
|
@@ -569,6 +575,9 @@ RESOURCENOTFOUND_SESSIONNOTFOUND = 'ResourceNotFound.SessionNotFound'
|
|
|
569
575
|
# session已消亡。
|
|
570
576
|
RESOURCENOTFOUND_SESSIONSTATEDEAD = 'ResourceNotFound.SessionStateDead'
|
|
571
577
|
|
|
578
|
+
# Session正在关闭,请确认任务是否已经取消
|
|
579
|
+
RESOURCENOTFOUND_SESSIONSTATESHUTTINGDOWN = 'ResourceNotFound.SessionStateShuttingDown'
|
|
580
|
+
|
|
572
581
|
# 找不到Spark Shuffle存储路径,请到控制台->数据探索页面->存储配置中设置
|
|
573
582
|
RESOURCENOTFOUND_SHUFFLEDIRNOTFOUND = 'ResourceNotFound.ShuffleDirNotFound'
|
|
574
583
|
|
|
@@ -851,6 +851,129 @@ class Asset(AbstractModel):
|
|
|
851
851
|
|
|
852
852
|
|
|
853
853
|
|
|
854
|
+
class AssignMangedTablePropertiesRequest(AbstractModel):
|
|
855
|
+
"""AssignMangedTableProperties请求参数结构体
|
|
856
|
+
|
|
857
|
+
"""
|
|
858
|
+
|
|
859
|
+
def __init__(self):
|
|
860
|
+
r"""
|
|
861
|
+
:param _TableBaseInfo: 表基本信息
|
|
862
|
+
:type TableBaseInfo: :class:`tencentcloud.dlc.v20210125.models.TableBaseInfo`
|
|
863
|
+
:param _Columns: 表字段信息
|
|
864
|
+
:type Columns: list of TColumn
|
|
865
|
+
:param _Partitions: 表分区信息
|
|
866
|
+
:type Partitions: list of TPartition
|
|
867
|
+
:param _Properties: 表属性信息
|
|
868
|
+
:type Properties: list of Property
|
|
869
|
+
:param _UpsertKeys: V2 upsert表 upsert键
|
|
870
|
+
:type UpsertKeys: list of str
|
|
871
|
+
"""
|
|
872
|
+
self._TableBaseInfo = None
|
|
873
|
+
self._Columns = None
|
|
874
|
+
self._Partitions = None
|
|
875
|
+
self._Properties = None
|
|
876
|
+
self._UpsertKeys = None
|
|
877
|
+
|
|
878
|
+
@property
|
|
879
|
+
def TableBaseInfo(self):
|
|
880
|
+
return self._TableBaseInfo
|
|
881
|
+
|
|
882
|
+
@TableBaseInfo.setter
|
|
883
|
+
def TableBaseInfo(self, TableBaseInfo):
|
|
884
|
+
self._TableBaseInfo = TableBaseInfo
|
|
885
|
+
|
|
886
|
+
@property
|
|
887
|
+
def Columns(self):
|
|
888
|
+
return self._Columns
|
|
889
|
+
|
|
890
|
+
@Columns.setter
|
|
891
|
+
def Columns(self, Columns):
|
|
892
|
+
self._Columns = Columns
|
|
893
|
+
|
|
894
|
+
@property
|
|
895
|
+
def Partitions(self):
|
|
896
|
+
return self._Partitions
|
|
897
|
+
|
|
898
|
+
@Partitions.setter
|
|
899
|
+
def Partitions(self, Partitions):
|
|
900
|
+
self._Partitions = Partitions
|
|
901
|
+
|
|
902
|
+
@property
|
|
903
|
+
def Properties(self):
|
|
904
|
+
return self._Properties
|
|
905
|
+
|
|
906
|
+
@Properties.setter
|
|
907
|
+
def Properties(self, Properties):
|
|
908
|
+
self._Properties = Properties
|
|
909
|
+
|
|
910
|
+
@property
|
|
911
|
+
def UpsertKeys(self):
|
|
912
|
+
return self._UpsertKeys
|
|
913
|
+
|
|
914
|
+
@UpsertKeys.setter
|
|
915
|
+
def UpsertKeys(self, UpsertKeys):
|
|
916
|
+
self._UpsertKeys = UpsertKeys
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
def _deserialize(self, params):
|
|
920
|
+
if params.get("TableBaseInfo") is not None:
|
|
921
|
+
self._TableBaseInfo = TableBaseInfo()
|
|
922
|
+
self._TableBaseInfo._deserialize(params.get("TableBaseInfo"))
|
|
923
|
+
if params.get("Columns") is not None:
|
|
924
|
+
self._Columns = []
|
|
925
|
+
for item in params.get("Columns"):
|
|
926
|
+
obj = TColumn()
|
|
927
|
+
obj._deserialize(item)
|
|
928
|
+
self._Columns.append(obj)
|
|
929
|
+
if params.get("Partitions") is not None:
|
|
930
|
+
self._Partitions = []
|
|
931
|
+
for item in params.get("Partitions"):
|
|
932
|
+
obj = TPartition()
|
|
933
|
+
obj._deserialize(item)
|
|
934
|
+
self._Partitions.append(obj)
|
|
935
|
+
if params.get("Properties") is not None:
|
|
936
|
+
self._Properties = []
|
|
937
|
+
for item in params.get("Properties"):
|
|
938
|
+
obj = Property()
|
|
939
|
+
obj._deserialize(item)
|
|
940
|
+
self._Properties.append(obj)
|
|
941
|
+
self._UpsertKeys = params.get("UpsertKeys")
|
|
942
|
+
memeber_set = set(params.keys())
|
|
943
|
+
for name, value in vars(self).items():
|
|
944
|
+
property_name = name[1:]
|
|
945
|
+
if property_name in memeber_set:
|
|
946
|
+
memeber_set.remove(property_name)
|
|
947
|
+
if len(memeber_set) > 0:
|
|
948
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
class AssignMangedTablePropertiesResponse(AbstractModel):
|
|
953
|
+
"""AssignMangedTableProperties返回参数结构体
|
|
954
|
+
|
|
955
|
+
"""
|
|
956
|
+
|
|
957
|
+
def __init__(self):
|
|
958
|
+
r"""
|
|
959
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
960
|
+
:type RequestId: str
|
|
961
|
+
"""
|
|
962
|
+
self._RequestId = None
|
|
963
|
+
|
|
964
|
+
@property
|
|
965
|
+
def RequestId(self):
|
|
966
|
+
return self._RequestId
|
|
967
|
+
|
|
968
|
+
@RequestId.setter
|
|
969
|
+
def RequestId(self, RequestId):
|
|
970
|
+
self._RequestId = RequestId
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
def _deserialize(self, params):
|
|
974
|
+
self._RequestId = params.get("RequestId")
|
|
975
|
+
|
|
976
|
+
|
|
854
977
|
class AttachUserPolicyRequest(AbstractModel):
|
|
855
978
|
"""AttachUserPolicy请求参数结构体
|
|
856
979
|
|
|
@@ -6725,7 +6848,7 @@ class DataEngineConfigInstanceInfo(AbstractModel):
|
|
|
6725
6848
|
:type DataEngineId: str
|
|
6726
6849
|
:param _DataEngineConfigPairs: 用户自定义配置项集合
|
|
6727
6850
|
:type DataEngineConfigPairs: list of DataEngineConfigPair
|
|
6728
|
-
:param _SessionResourceTemplate:
|
|
6851
|
+
:param _SessionResourceTemplate: 作业集群资源参数配置模板
|
|
6729
6852
|
:type SessionResourceTemplate: :class:`tencentcloud.dlc.v20210125.models.SessionResourceTemplate`
|
|
6730
6853
|
"""
|
|
6731
6854
|
self._DataEngineId = None
|
|
@@ -16511,9 +16634,9 @@ class LakeFileSystemToken(AbstractModel):
|
|
|
16511
16634
|
|
|
16512
16635
|
def __init__(self):
|
|
16513
16636
|
r"""
|
|
16514
|
-
:param _SecretId: Token
|
|
16637
|
+
:param _SecretId: Token使用的临时密钥的ID
|
|
16515
16638
|
:type SecretId: str
|
|
16516
|
-
:param _SecretKey: Token
|
|
16639
|
+
:param _SecretKey: Token使用的临时密钥
|
|
16517
16640
|
:type SecretKey: str
|
|
16518
16641
|
:param _Token: Token信息
|
|
16519
16642
|
:type Token: str
|
|
@@ -22540,6 +22663,9 @@ class TableResponseInfo(AbstractModel):
|
|
|
22540
22663
|
:param _MapMaterializedViewName: xxxx
|
|
22541
22664
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
22542
22665
|
:type MapMaterializedViewName: str
|
|
22666
|
+
:param _HeatValue: 访问热点
|
|
22667
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
22668
|
+
:type HeatValue: int
|
|
22543
22669
|
"""
|
|
22544
22670
|
self._TableBaseInfo = None
|
|
22545
22671
|
self._Columns = None
|
|
@@ -22552,6 +22678,7 @@ class TableResponseInfo(AbstractModel):
|
|
|
22552
22678
|
self._StorageSize = None
|
|
22553
22679
|
self._RecordCount = None
|
|
22554
22680
|
self._MapMaterializedViewName = None
|
|
22681
|
+
self._HeatValue = None
|
|
22555
22682
|
|
|
22556
22683
|
@property
|
|
22557
22684
|
def TableBaseInfo(self):
|
|
@@ -22641,6 +22768,14 @@ class TableResponseInfo(AbstractModel):
|
|
|
22641
22768
|
def MapMaterializedViewName(self, MapMaterializedViewName):
|
|
22642
22769
|
self._MapMaterializedViewName = MapMaterializedViewName
|
|
22643
22770
|
|
|
22771
|
+
@property
|
|
22772
|
+
def HeatValue(self):
|
|
22773
|
+
return self._HeatValue
|
|
22774
|
+
|
|
22775
|
+
@HeatValue.setter
|
|
22776
|
+
def HeatValue(self, HeatValue):
|
|
22777
|
+
self._HeatValue = HeatValue
|
|
22778
|
+
|
|
22644
22779
|
|
|
22645
22780
|
def _deserialize(self, params):
|
|
22646
22781
|
if params.get("TableBaseInfo") is not None:
|
|
@@ -22671,6 +22806,7 @@ class TableResponseInfo(AbstractModel):
|
|
|
22671
22806
|
self._StorageSize = params.get("StorageSize")
|
|
22672
22807
|
self._RecordCount = params.get("RecordCount")
|
|
22673
22808
|
self._MapMaterializedViewName = params.get("MapMaterializedViewName")
|
|
22809
|
+
self._HeatValue = params.get("HeatValue")
|
|
22674
22810
|
memeber_set = set(params.keys())
|
|
22675
22811
|
for name, value in vars(self).items():
|
|
22676
22812
|
property_name = name[1:]
|
|
@@ -22889,6 +23025,9 @@ class TaskResponseInfo(AbstractModel):
|
|
|
22889
23025
|
:param _PrestoMonitorMetrics: presto任务指标数据
|
|
22890
23026
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
22891
23027
|
:type PrestoMonitorMetrics: :class:`tencentcloud.dlc.v20210125.models.PrestoMonitorMetrics`
|
|
23028
|
+
:param _ResultFormat: 结果文件格式:默认为csv
|
|
23029
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23030
|
+
:type ResultFormat: str
|
|
22892
23031
|
"""
|
|
22893
23032
|
self._DatabaseName = None
|
|
22894
23033
|
self._DataAmount = None
|
|
@@ -22930,6 +23069,7 @@ class TaskResponseInfo(AbstractModel):
|
|
|
22930
23069
|
self._CommonMetrics = None
|
|
22931
23070
|
self._SparkMonitorMetrics = None
|
|
22932
23071
|
self._PrestoMonitorMetrics = None
|
|
23072
|
+
self._ResultFormat = None
|
|
22933
23073
|
|
|
22934
23074
|
@property
|
|
22935
23075
|
def DatabaseName(self):
|
|
@@ -23251,6 +23391,14 @@ class TaskResponseInfo(AbstractModel):
|
|
|
23251
23391
|
def PrestoMonitorMetrics(self, PrestoMonitorMetrics):
|
|
23252
23392
|
self._PrestoMonitorMetrics = PrestoMonitorMetrics
|
|
23253
23393
|
|
|
23394
|
+
@property
|
|
23395
|
+
def ResultFormat(self):
|
|
23396
|
+
return self._ResultFormat
|
|
23397
|
+
|
|
23398
|
+
@ResultFormat.setter
|
|
23399
|
+
def ResultFormat(self, ResultFormat):
|
|
23400
|
+
self._ResultFormat = ResultFormat
|
|
23401
|
+
|
|
23254
23402
|
|
|
23255
23403
|
def _deserialize(self, params):
|
|
23256
23404
|
self._DatabaseName = params.get("DatabaseName")
|
|
@@ -23299,6 +23447,7 @@ class TaskResponseInfo(AbstractModel):
|
|
|
23299
23447
|
if params.get("PrestoMonitorMetrics") is not None:
|
|
23300
23448
|
self._PrestoMonitorMetrics = PrestoMonitorMetrics()
|
|
23301
23449
|
self._PrestoMonitorMetrics._deserialize(params.get("PrestoMonitorMetrics"))
|
|
23450
|
+
self._ResultFormat = params.get("ResultFormat")
|
|
23302
23451
|
memeber_set = set(params.keys())
|
|
23303
23452
|
for name, value in vars(self).items():
|
|
23304
23453
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1048
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1038
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|