tencentcloud-sdk-python-dlc 3.1.189__tar.gz → 3.1.201__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.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/setup.py +1 -1
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud/dlc/v20210125/dlc_client.py +69 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud/dlc/v20210125/dlc_client_async.py +54 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud/dlc/v20210125/errorcodes.py +6 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud/dlc/v20210125/models.py +1216 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud_sdk_python_dlc.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_dlc-3.1.201/tencentcloud_sdk_python_dlc.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_dlc-3.1.189/tencentcloud_sdk_python_dlc.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/README.rst +0 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/setup.cfg +0 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud/dlc/__init__.py +0 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud/dlc/v20210125/__init__.py +0 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud_sdk_python_dlc.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud_sdk_python_dlc.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_dlc-3.1.189 → tencentcloud_sdk_python_dlc-3.1.201}/tencentcloud_sdk_python_dlc.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dlc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.201
|
|
4
4
|
Summary: Tencent Cloud Dlc 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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.201
|
|
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-dlc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.201,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Dlc SDK for Python',
|
|
@@ -6103,6 +6103,29 @@ class DlcClient(AbstractClient):
|
|
|
6103
6103
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
6104
6104
|
|
|
6105
6105
|
|
|
6106
|
+
def GetRayServeEvent(self, request):
|
|
6107
|
+
r"""通过 ResourceManager 调用 CLS SearchLog API 查询 RayServe 部署相关事件日志。不返回总数,使用 Context 进行翻页,ListOver 标识是否还有更多数据。
|
|
6108
|
+
|
|
6109
|
+
:param request: Request instance for GetRayServeEvent.
|
|
6110
|
+
:type request: :class:`tencentcloud.dlc.v20210125.models.GetRayServeEventRequest`
|
|
6111
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.GetRayServeEventResponse`
|
|
6112
|
+
|
|
6113
|
+
"""
|
|
6114
|
+
try:
|
|
6115
|
+
params = request._serialize()
|
|
6116
|
+
headers = request.headers
|
|
6117
|
+
body = self.call("GetRayServeEvent", params, headers=headers)
|
|
6118
|
+
response = json.loads(body)
|
|
6119
|
+
model = models.GetRayServeEventResponse()
|
|
6120
|
+
model._deserialize(response["Response"])
|
|
6121
|
+
return model
|
|
6122
|
+
except Exception as e:
|
|
6123
|
+
if isinstance(e, TencentCloudSDKException):
|
|
6124
|
+
raise
|
|
6125
|
+
else:
|
|
6126
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
6127
|
+
|
|
6128
|
+
|
|
6106
6129
|
def GetResourceConfig(self, request):
|
|
6107
6130
|
r"""获取资源配置模板详情
|
|
6108
6131
|
|
|
@@ -6862,6 +6885,29 @@ class DlcClient(AbstractClient):
|
|
|
6862
6885
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
6863
6886
|
|
|
6864
6887
|
|
|
6888
|
+
def ListStorages(self, request):
|
|
6889
|
+
r"""根据集群ID列出所有Ray任务
|
|
6890
|
+
|
|
6891
|
+
:param request: Request instance for ListStorages.
|
|
6892
|
+
:type request: :class:`tencentcloud.dlc.v20210125.models.ListStoragesRequest`
|
|
6893
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.ListStoragesResponse`
|
|
6894
|
+
|
|
6895
|
+
"""
|
|
6896
|
+
try:
|
|
6897
|
+
params = request._serialize()
|
|
6898
|
+
headers = request.headers
|
|
6899
|
+
body = self.call("ListStorages", params, headers=headers)
|
|
6900
|
+
response = json.loads(body)
|
|
6901
|
+
model = models.ListStoragesResponse()
|
|
6902
|
+
model._deserialize(response["Response"])
|
|
6903
|
+
return model
|
|
6904
|
+
except Exception as e:
|
|
6905
|
+
if isinstance(e, TencentCloudSDKException):
|
|
6906
|
+
raise
|
|
6907
|
+
else:
|
|
6908
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
6909
|
+
|
|
6910
|
+
|
|
6865
6911
|
def ListTaskJobLogDetail(self, request):
|
|
6866
6912
|
r"""本接口(ListTaskJobLogDetail)用于获取spark 作业任务日志详情
|
|
6867
6913
|
|
|
@@ -7989,6 +8035,29 @@ class DlcClient(AbstractClient):
|
|
|
7989
8035
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
7990
8036
|
|
|
7991
8037
|
|
|
8038
|
+
def SubmitRayJob(self, request):
|
|
8039
|
+
r"""提交新的Ray任务到指定集群
|
|
8040
|
+
|
|
8041
|
+
:param request: Request instance for SubmitRayJob.
|
|
8042
|
+
:type request: :class:`tencentcloud.dlc.v20210125.models.SubmitRayJobRequest`
|
|
8043
|
+
:rtype: :class:`tencentcloud.dlc.v20210125.models.SubmitRayJobResponse`
|
|
8044
|
+
|
|
8045
|
+
"""
|
|
8046
|
+
try:
|
|
8047
|
+
params = request._serialize()
|
|
8048
|
+
headers = request.headers
|
|
8049
|
+
body = self.call("SubmitRayJob", params, headers=headers)
|
|
8050
|
+
response = json.loads(body)
|
|
8051
|
+
model = models.SubmitRayJobResponse()
|
|
8052
|
+
model._deserialize(response["Response"])
|
|
8053
|
+
return model
|
|
8054
|
+
except Exception as e:
|
|
8055
|
+
if isinstance(e, TencentCloudSDKException):
|
|
8056
|
+
raise
|
|
8057
|
+
else:
|
|
8058
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
8059
|
+
|
|
8060
|
+
|
|
7992
8061
|
def SubmitTrainingJob(self, request):
|
|
7993
8062
|
r"""断点续训(克隆实例)
|
|
7994
8063
|
|
|
@@ -4782,6 +4782,24 @@ class DlcClient(AbstractClient):
|
|
|
4782
4782
|
|
|
4783
4783
|
return await self.call_and_deserialize(**kwargs)
|
|
4784
4784
|
|
|
4785
|
+
async def GetRayServeEvent(
|
|
4786
|
+
self,
|
|
4787
|
+
request: models.GetRayServeEventRequest,
|
|
4788
|
+
opts: Dict = None,
|
|
4789
|
+
) -> models.GetRayServeEventResponse:
|
|
4790
|
+
"""
|
|
4791
|
+
通过 ResourceManager 调用 CLS SearchLog API 查询 RayServe 部署相关事件日志。不返回总数,使用 Context 进行翻页,ListOver 标识是否还有更多数据。
|
|
4792
|
+
"""
|
|
4793
|
+
|
|
4794
|
+
kwargs = {}
|
|
4795
|
+
kwargs["action"] = "GetRayServeEvent"
|
|
4796
|
+
kwargs["params"] = request._serialize()
|
|
4797
|
+
kwargs["resp_cls"] = models.GetRayServeEventResponse
|
|
4798
|
+
kwargs["headers"] = request.headers
|
|
4799
|
+
kwargs["opts"] = opts or {}
|
|
4800
|
+
|
|
4801
|
+
return await self.call_and_deserialize(**kwargs)
|
|
4802
|
+
|
|
4785
4803
|
async def GetResourceConfig(
|
|
4786
4804
|
self,
|
|
4787
4805
|
request: models.GetResourceConfigRequest,
|
|
@@ -5376,6 +5394,24 @@ class DlcClient(AbstractClient):
|
|
|
5376
5394
|
|
|
5377
5395
|
return await self.call_and_deserialize(**kwargs)
|
|
5378
5396
|
|
|
5397
|
+
async def ListStorages(
|
|
5398
|
+
self,
|
|
5399
|
+
request: models.ListStoragesRequest,
|
|
5400
|
+
opts: Dict = None,
|
|
5401
|
+
) -> models.ListStoragesResponse:
|
|
5402
|
+
"""
|
|
5403
|
+
根据集群ID列出所有Ray任务
|
|
5404
|
+
"""
|
|
5405
|
+
|
|
5406
|
+
kwargs = {}
|
|
5407
|
+
kwargs["action"] = "ListStorages"
|
|
5408
|
+
kwargs["params"] = request._serialize()
|
|
5409
|
+
kwargs["resp_cls"] = models.ListStoragesResponse
|
|
5410
|
+
kwargs["headers"] = request.headers
|
|
5411
|
+
kwargs["opts"] = opts or {}
|
|
5412
|
+
|
|
5413
|
+
return await self.call_and_deserialize(**kwargs)
|
|
5414
|
+
|
|
5379
5415
|
async def ListTaskJobLogDetail(
|
|
5380
5416
|
self,
|
|
5381
5417
|
request: models.ListTaskJobLogDetailRequest,
|
|
@@ -6258,6 +6294,24 @@ class DlcClient(AbstractClient):
|
|
|
6258
6294
|
|
|
6259
6295
|
return await self.call_and_deserialize(**kwargs)
|
|
6260
6296
|
|
|
6297
|
+
async def SubmitRayJob(
|
|
6298
|
+
self,
|
|
6299
|
+
request: models.SubmitRayJobRequest,
|
|
6300
|
+
opts: Dict = None,
|
|
6301
|
+
) -> models.SubmitRayJobResponse:
|
|
6302
|
+
"""
|
|
6303
|
+
提交新的Ray任务到指定集群
|
|
6304
|
+
"""
|
|
6305
|
+
|
|
6306
|
+
kwargs = {}
|
|
6307
|
+
kwargs["action"] = "SubmitRayJob"
|
|
6308
|
+
kwargs["params"] = request._serialize()
|
|
6309
|
+
kwargs["resp_cls"] = models.SubmitRayJobResponse
|
|
6310
|
+
kwargs["headers"] = request.headers
|
|
6311
|
+
kwargs["opts"] = opts or {}
|
|
6312
|
+
|
|
6313
|
+
return await self.call_and_deserialize(**kwargs)
|
|
6314
|
+
|
|
6261
6315
|
async def SubmitTrainingJob(
|
|
6262
6316
|
self,
|
|
6263
6317
|
request: models.SubmitTrainingJobRequest,
|
|
@@ -590,6 +590,9 @@ INVALIDPARAMETER_SPARKJOBSORTBYTYPENOTMATCH = 'InvalidParameter.SparkJobSortByTy
|
|
|
590
590
|
# 任务已经结束,不能取消。
|
|
591
591
|
INVALIDPARAMETER_TASKALREADYFINISHED = 'InvalidParameter.TaskAlreadyFinished'
|
|
592
592
|
|
|
593
|
+
# 超过最大查询范围,请缩小查询时间范围或增加过滤条件
|
|
594
|
+
INVALIDPARAMETER_TASKLIMITEXCEEDEDCODE = 'InvalidParameter.TaskLimitExceededCode'
|
|
595
|
+
|
|
593
596
|
# 筛选参数不匹配
|
|
594
597
|
INVALIDPARAMETER_TASKLISTFILTERSKEYTYPENOTMATH = 'InvalidParameter.TaskListFiltersKeyTypeNotMath'
|
|
595
598
|
|
|
@@ -878,6 +881,9 @@ UNAUTHORIZEDOPERATION_DELETEUSERSFROMWORKGROUP = 'UnauthorizedOperation.DeleteUs
|
|
|
878
881
|
# 子用户不是管理员,无权删除工作组。
|
|
879
882
|
UNAUTHORIZEDOPERATION_DELETEWORKGROUP = 'UnauthorizedOperation.DeleteWorkgroup'
|
|
880
883
|
|
|
884
|
+
# 权限不足:当前角色未授权 goosefs:DescribeClusters,请在 CAM 控制台为关联角色追加 GooseFS 只读策略后重试
|
|
885
|
+
UNAUTHORIZEDOPERATION_GOOSEFSDESCRIBECLUSTERS = 'UnauthorizedOperation.GooseFSDescribeClusters'
|
|
886
|
+
|
|
881
887
|
# 子用户无权授予特定权限。
|
|
882
888
|
UNAUTHORIZEDOPERATION_GRANTPOLICY = 'UnauthorizedOperation.GrantPolicy'
|
|
883
889
|
|