tencentcloud-sdk-python-thpc 3.0.1459__tar.gz → 3.0.1483__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_thpc-3.0.1483/PKG-INFO +46 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/setup.py +1 -1
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20230321/models.py +289 -2
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20230321/thpc_client.py +23 -0
- tencentcloud_sdk_python_thpc-3.0.1483/tencentcloud_sdk_python_thpc.egg-info/PKG-INFO +46 -0
- tencentcloud_sdk_python_thpc-3.0.1483/tencentcloud_sdk_python_thpc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-thpc-3.0.1459/PKG-INFO +0 -45
- tencentcloud-sdk-python-thpc-3.0.1459/tencentcloud_sdk_python_thpc.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-thpc-3.0.1459/tencentcloud_sdk_python_thpc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/README.rst +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/setup.cfg +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/__init__.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20211109/__init__.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20211109/errorcodes.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20211109/models.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20211109/thpc_client.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20220401/__init__.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20220401/errorcodes.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20220401/models.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20220401/thpc_client.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20230321/__init__.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud/thpc/v20230321/errorcodes.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud_sdk_python_thpc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud_sdk_python_thpc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-thpc-3.0.1459 → tencentcloud_sdk_python_thpc-3.0.1483}/tencentcloud_sdk_python_thpc.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-thpc
|
|
3
|
+
Version: 3.0.1483
|
|
4
|
+
Summary: Tencent Cloud Thpc SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1483
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Thpc SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-thpc
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common thpc
|
|
46
|
+
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-thpc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1483,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Thpc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -597,6 +597,13 @@ class Application(AbstractModel):
|
|
|
597
597
|
|
|
598
598
|
默认参数为:Custom
|
|
599
599
|
:type JobType: str
|
|
600
|
+
:param _TaskType: 表示所选训练框架,支持可选参数
|
|
601
|
+
|
|
602
|
+
- PyTorch:表示提交PyTorch训练作业
|
|
603
|
+
- Custom:表示用户自定义作业
|
|
604
|
+
|
|
605
|
+
默认参数为:Custom
|
|
606
|
+
:type TaskType: str
|
|
600
607
|
"""
|
|
601
608
|
self._Commands = None
|
|
602
609
|
self._StorageMounts = None
|
|
@@ -604,6 +611,7 @@ class Application(AbstractModel):
|
|
|
604
611
|
self._Docker = None
|
|
605
612
|
self._OutputRedirect = None
|
|
606
613
|
self._JobType = None
|
|
614
|
+
self._TaskType = None
|
|
607
615
|
|
|
608
616
|
@property
|
|
609
617
|
def Commands(self):
|
|
@@ -662,6 +670,8 @@ class Application(AbstractModel):
|
|
|
662
670
|
|
|
663
671
|
@property
|
|
664
672
|
def JobType(self):
|
|
673
|
+
warnings.warn("parameter `JobType` is deprecated", DeprecationWarning)
|
|
674
|
+
|
|
665
675
|
r"""表示所选训练框架,支持可选参数
|
|
666
676
|
|
|
667
677
|
- PyTorch:表示提交PyTorch训练作业
|
|
@@ -674,8 +684,26 @@ class Application(AbstractModel):
|
|
|
674
684
|
|
|
675
685
|
@JobType.setter
|
|
676
686
|
def JobType(self, JobType):
|
|
687
|
+
warnings.warn("parameter `JobType` is deprecated", DeprecationWarning)
|
|
688
|
+
|
|
677
689
|
self._JobType = JobType
|
|
678
690
|
|
|
691
|
+
@property
|
|
692
|
+
def TaskType(self):
|
|
693
|
+
r"""表示所选训练框架,支持可选参数
|
|
694
|
+
|
|
695
|
+
- PyTorch:表示提交PyTorch训练作业
|
|
696
|
+
- Custom:表示用户自定义作业
|
|
697
|
+
|
|
698
|
+
默认参数为:Custom
|
|
699
|
+
:rtype: str
|
|
700
|
+
"""
|
|
701
|
+
return self._TaskType
|
|
702
|
+
|
|
703
|
+
@TaskType.setter
|
|
704
|
+
def TaskType(self, TaskType):
|
|
705
|
+
self._TaskType = TaskType
|
|
706
|
+
|
|
679
707
|
|
|
680
708
|
def _deserialize(self, params):
|
|
681
709
|
if params.get("Commands") is not None:
|
|
@@ -703,6 +731,7 @@ class Application(AbstractModel):
|
|
|
703
731
|
self._OutputRedirect = OutputRedirect()
|
|
704
732
|
self._OutputRedirect._deserialize(params.get("OutputRedirect"))
|
|
705
733
|
self._JobType = params.get("JobType")
|
|
734
|
+
self._TaskType = params.get("TaskType")
|
|
706
735
|
memeber_set = set(params.keys())
|
|
707
736
|
for name, value in vars(self).items():
|
|
708
737
|
property_name = name[1:]
|
|
@@ -1298,6 +1327,11 @@ class ClusterOverview(AbstractModel):
|
|
|
1298
1327
|
:type VpcId: str
|
|
1299
1328
|
:param _ClusterType: 集群类型
|
|
1300
1329
|
:type ClusterType: str
|
|
1330
|
+
:param _DeletionProtection: 集群销毁保护开关状态,当前支持参数:
|
|
1331
|
+
|
|
1332
|
+
- ON: 集群销毁保护打开
|
|
1333
|
+
- OFF: 集群销毁保护关闭
|
|
1334
|
+
:type DeletionProtection: str
|
|
1301
1335
|
"""
|
|
1302
1336
|
self._ClusterId = None
|
|
1303
1337
|
self._ClusterStatus = None
|
|
@@ -1315,6 +1349,7 @@ class ClusterOverview(AbstractModel):
|
|
|
1315
1349
|
self._AutoScalingType = None
|
|
1316
1350
|
self._VpcId = None
|
|
1317
1351
|
self._ClusterType = None
|
|
1352
|
+
self._DeletionProtection = None
|
|
1318
1353
|
|
|
1319
1354
|
@property
|
|
1320
1355
|
def ClusterId(self):
|
|
@@ -1492,6 +1527,20 @@ class ClusterOverview(AbstractModel):
|
|
|
1492
1527
|
def ClusterType(self, ClusterType):
|
|
1493
1528
|
self._ClusterType = ClusterType
|
|
1494
1529
|
|
|
1530
|
+
@property
|
|
1531
|
+
def DeletionProtection(self):
|
|
1532
|
+
r"""集群销毁保护开关状态,当前支持参数:
|
|
1533
|
+
|
|
1534
|
+
- ON: 集群销毁保护打开
|
|
1535
|
+
- OFF: 集群销毁保护关闭
|
|
1536
|
+
:rtype: str
|
|
1537
|
+
"""
|
|
1538
|
+
return self._DeletionProtection
|
|
1539
|
+
|
|
1540
|
+
@DeletionProtection.setter
|
|
1541
|
+
def DeletionProtection(self, DeletionProtection):
|
|
1542
|
+
self._DeletionProtection = DeletionProtection
|
|
1543
|
+
|
|
1495
1544
|
|
|
1496
1545
|
def _deserialize(self, params):
|
|
1497
1546
|
self._ClusterId = params.get("ClusterId")
|
|
@@ -1527,6 +1576,7 @@ class ClusterOverview(AbstractModel):
|
|
|
1527
1576
|
self._AutoScalingType = params.get("AutoScalingType")
|
|
1528
1577
|
self._VpcId = params.get("VpcId")
|
|
1529
1578
|
self._ClusterType = params.get("ClusterType")
|
|
1579
|
+
self._DeletionProtection = params.get("DeletionProtection")
|
|
1530
1580
|
memeber_set = set(params.keys())
|
|
1531
1581
|
for name, value in vars(self).items():
|
|
1532
1582
|
property_name = name[1:]
|
|
@@ -2241,7 +2291,7 @@ class CreateWorkspacesRequest(AbstractModel):
|
|
|
2241
2291
|
:type SpaceCount: int
|
|
2242
2292
|
:param _SpaceName: 工作空间显示名称
|
|
2243
2293
|
:type SpaceName: str
|
|
2244
|
-
:param _LoginSettings:
|
|
2294
|
+
:param _LoginSettings: 工作空间登录设置
|
|
2245
2295
|
:type LoginSettings: :class:`tencentcloud.thpc.v20230321.models.LoginSettings`
|
|
2246
2296
|
:param _SecurityGroupIds: 工作空间所属安全组
|
|
2247
2297
|
:type SecurityGroupIds: list of str
|
|
@@ -2419,7 +2469,7 @@ class CreateWorkspacesRequest(AbstractModel):
|
|
|
2419
2469
|
|
|
2420
2470
|
@property
|
|
2421
2471
|
def LoginSettings(self):
|
|
2422
|
-
r"""
|
|
2472
|
+
r"""工作空间登录设置
|
|
2423
2473
|
:rtype: :class:`tencentcloud.thpc.v20230321.models.LoginSettings`
|
|
2424
2474
|
"""
|
|
2425
2475
|
return self._LoginSettings
|
|
@@ -3750,6 +3800,36 @@ class DescribeJobsOverviewRequest(AbstractModel):
|
|
|
3750
3800
|
|
|
3751
3801
|
"""
|
|
3752
3802
|
|
|
3803
|
+
def __init__(self):
|
|
3804
|
+
r"""
|
|
3805
|
+
:param _ClusterId: 集群ID
|
|
3806
|
+
:type ClusterId: str
|
|
3807
|
+
"""
|
|
3808
|
+
self._ClusterId = None
|
|
3809
|
+
|
|
3810
|
+
@property
|
|
3811
|
+
def ClusterId(self):
|
|
3812
|
+
r"""集群ID
|
|
3813
|
+
:rtype: str
|
|
3814
|
+
"""
|
|
3815
|
+
return self._ClusterId
|
|
3816
|
+
|
|
3817
|
+
@ClusterId.setter
|
|
3818
|
+
def ClusterId(self, ClusterId):
|
|
3819
|
+
self._ClusterId = ClusterId
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
def _deserialize(self, params):
|
|
3823
|
+
self._ClusterId = params.get("ClusterId")
|
|
3824
|
+
memeber_set = set(params.keys())
|
|
3825
|
+
for name, value in vars(self).items():
|
|
3826
|
+
property_name = name[1:]
|
|
3827
|
+
if property_name in memeber_set:
|
|
3828
|
+
memeber_set.remove(property_name)
|
|
3829
|
+
if len(memeber_set) > 0:
|
|
3830
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3831
|
+
|
|
3832
|
+
|
|
3753
3833
|
|
|
3754
3834
|
class DescribeJobsOverviewResponse(AbstractModel):
|
|
3755
3835
|
r"""DescribeJobsOverview返回参数结构体
|
|
@@ -3758,11 +3838,53 @@ class DescribeJobsOverviewResponse(AbstractModel):
|
|
|
3758
3838
|
|
|
3759
3839
|
def __init__(self):
|
|
3760
3840
|
r"""
|
|
3841
|
+
:param _JobTotal: 作业任务数量
|
|
3842
|
+
:type JobTotal: int
|
|
3843
|
+
:param _QueuingJobTotal: 排队中的作业任务数量
|
|
3844
|
+
:type QueuingJobTotal: int
|
|
3845
|
+
:param _RunningJobTotal: 运行中的作业数量
|
|
3846
|
+
:type RunningJobTotal: int
|
|
3761
3847
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3762
3848
|
:type RequestId: str
|
|
3763
3849
|
"""
|
|
3850
|
+
self._JobTotal = None
|
|
3851
|
+
self._QueuingJobTotal = None
|
|
3852
|
+
self._RunningJobTotal = None
|
|
3764
3853
|
self._RequestId = None
|
|
3765
3854
|
|
|
3855
|
+
@property
|
|
3856
|
+
def JobTotal(self):
|
|
3857
|
+
r"""作业任务数量
|
|
3858
|
+
:rtype: int
|
|
3859
|
+
"""
|
|
3860
|
+
return self._JobTotal
|
|
3861
|
+
|
|
3862
|
+
@JobTotal.setter
|
|
3863
|
+
def JobTotal(self, JobTotal):
|
|
3864
|
+
self._JobTotal = JobTotal
|
|
3865
|
+
|
|
3866
|
+
@property
|
|
3867
|
+
def QueuingJobTotal(self):
|
|
3868
|
+
r"""排队中的作业任务数量
|
|
3869
|
+
:rtype: int
|
|
3870
|
+
"""
|
|
3871
|
+
return self._QueuingJobTotal
|
|
3872
|
+
|
|
3873
|
+
@QueuingJobTotal.setter
|
|
3874
|
+
def QueuingJobTotal(self, QueuingJobTotal):
|
|
3875
|
+
self._QueuingJobTotal = QueuingJobTotal
|
|
3876
|
+
|
|
3877
|
+
@property
|
|
3878
|
+
def RunningJobTotal(self):
|
|
3879
|
+
r"""运行中的作业数量
|
|
3880
|
+
:rtype: int
|
|
3881
|
+
"""
|
|
3882
|
+
return self._RunningJobTotal
|
|
3883
|
+
|
|
3884
|
+
@RunningJobTotal.setter
|
|
3885
|
+
def RunningJobTotal(self, RunningJobTotal):
|
|
3886
|
+
self._RunningJobTotal = RunningJobTotal
|
|
3887
|
+
|
|
3766
3888
|
@property
|
|
3767
3889
|
def RequestId(self):
|
|
3768
3890
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -3776,6 +3898,9 @@ class DescribeJobsOverviewResponse(AbstractModel):
|
|
|
3776
3898
|
|
|
3777
3899
|
|
|
3778
3900
|
def _deserialize(self, params):
|
|
3901
|
+
self._JobTotal = params.get("JobTotal")
|
|
3902
|
+
self._QueuingJobTotal = params.get("QueuingJobTotal")
|
|
3903
|
+
self._RunningJobTotal = params.get("RunningJobTotal")
|
|
3779
3904
|
self._RequestId = params.get("RequestId")
|
|
3780
3905
|
|
|
3781
3906
|
|
|
@@ -6098,6 +6223,87 @@ class ManagerNodeOverview(AbstractModel):
|
|
|
6098
6223
|
|
|
6099
6224
|
|
|
6100
6225
|
|
|
6226
|
+
class ModifyClusterDeletionProtectionRequest(AbstractModel):
|
|
6227
|
+
r"""ModifyClusterDeletionProtection请求参数结构体
|
|
6228
|
+
|
|
6229
|
+
"""
|
|
6230
|
+
|
|
6231
|
+
def __init__(self):
|
|
6232
|
+
r"""
|
|
6233
|
+
:param _ClusterId: 集群ID。
|
|
6234
|
+
:type ClusterId: str
|
|
6235
|
+
:param _DeletionProtection: 集群删除保护开关。
|
|
6236
|
+
可选值:<li>OFF:关闭集群删除保护。</li><li>ON:打开集群删除保护。</li>
|
|
6237
|
+
:type DeletionProtection: str
|
|
6238
|
+
"""
|
|
6239
|
+
self._ClusterId = None
|
|
6240
|
+
self._DeletionProtection = None
|
|
6241
|
+
|
|
6242
|
+
@property
|
|
6243
|
+
def ClusterId(self):
|
|
6244
|
+
r"""集群ID。
|
|
6245
|
+
:rtype: str
|
|
6246
|
+
"""
|
|
6247
|
+
return self._ClusterId
|
|
6248
|
+
|
|
6249
|
+
@ClusterId.setter
|
|
6250
|
+
def ClusterId(self, ClusterId):
|
|
6251
|
+
self._ClusterId = ClusterId
|
|
6252
|
+
|
|
6253
|
+
@property
|
|
6254
|
+
def DeletionProtection(self):
|
|
6255
|
+
r"""集群删除保护开关。
|
|
6256
|
+
可选值:<li>OFF:关闭集群删除保护。</li><li>ON:打开集群删除保护。</li>
|
|
6257
|
+
:rtype: str
|
|
6258
|
+
"""
|
|
6259
|
+
return self._DeletionProtection
|
|
6260
|
+
|
|
6261
|
+
@DeletionProtection.setter
|
|
6262
|
+
def DeletionProtection(self, DeletionProtection):
|
|
6263
|
+
self._DeletionProtection = DeletionProtection
|
|
6264
|
+
|
|
6265
|
+
|
|
6266
|
+
def _deserialize(self, params):
|
|
6267
|
+
self._ClusterId = params.get("ClusterId")
|
|
6268
|
+
self._DeletionProtection = params.get("DeletionProtection")
|
|
6269
|
+
memeber_set = set(params.keys())
|
|
6270
|
+
for name, value in vars(self).items():
|
|
6271
|
+
property_name = name[1:]
|
|
6272
|
+
if property_name in memeber_set:
|
|
6273
|
+
memeber_set.remove(property_name)
|
|
6274
|
+
if len(memeber_set) > 0:
|
|
6275
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6276
|
+
|
|
6277
|
+
|
|
6278
|
+
|
|
6279
|
+
class ModifyClusterDeletionProtectionResponse(AbstractModel):
|
|
6280
|
+
r"""ModifyClusterDeletionProtection返回参数结构体
|
|
6281
|
+
|
|
6282
|
+
"""
|
|
6283
|
+
|
|
6284
|
+
def __init__(self):
|
|
6285
|
+
r"""
|
|
6286
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6287
|
+
:type RequestId: str
|
|
6288
|
+
"""
|
|
6289
|
+
self._RequestId = None
|
|
6290
|
+
|
|
6291
|
+
@property
|
|
6292
|
+
def RequestId(self):
|
|
6293
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6294
|
+
:rtype: str
|
|
6295
|
+
"""
|
|
6296
|
+
return self._RequestId
|
|
6297
|
+
|
|
6298
|
+
@RequestId.setter
|
|
6299
|
+
def RequestId(self, RequestId):
|
|
6300
|
+
self._RequestId = RequestId
|
|
6301
|
+
|
|
6302
|
+
|
|
6303
|
+
def _deserialize(self, params):
|
|
6304
|
+
self._RequestId = params.get("RequestId")
|
|
6305
|
+
|
|
6306
|
+
|
|
6101
6307
|
class ModifyInitNodeScriptsRequest(AbstractModel):
|
|
6102
6308
|
r"""ModifyInitNodeScripts请求参数结构体
|
|
6103
6309
|
|
|
@@ -8694,6 +8900,72 @@ class SubmitJobRequest(AbstractModel):
|
|
|
8694
8900
|
|
|
8695
8901
|
"""
|
|
8696
8902
|
|
|
8903
|
+
def __init__(self):
|
|
8904
|
+
r"""
|
|
8905
|
+
:param _ClusterId: 集群id
|
|
8906
|
+
:type ClusterId: str
|
|
8907
|
+
:param _Job: 作业任务参数配置
|
|
8908
|
+
:type Job: :class:`tencentcloud.thpc.v20230321.models.Job`
|
|
8909
|
+
:param _QueueName: 队列名称。不指定则为默认队列:
|
|
8910
|
+
SLURM默认队列为:compute。
|
|
8911
|
+
SGE默认队列为:all.q。
|
|
8912
|
+
:type QueueName: str
|
|
8913
|
+
"""
|
|
8914
|
+
self._ClusterId = None
|
|
8915
|
+
self._Job = None
|
|
8916
|
+
self._QueueName = None
|
|
8917
|
+
|
|
8918
|
+
@property
|
|
8919
|
+
def ClusterId(self):
|
|
8920
|
+
r"""集群id
|
|
8921
|
+
:rtype: str
|
|
8922
|
+
"""
|
|
8923
|
+
return self._ClusterId
|
|
8924
|
+
|
|
8925
|
+
@ClusterId.setter
|
|
8926
|
+
def ClusterId(self, ClusterId):
|
|
8927
|
+
self._ClusterId = ClusterId
|
|
8928
|
+
|
|
8929
|
+
@property
|
|
8930
|
+
def Job(self):
|
|
8931
|
+
r"""作业任务参数配置
|
|
8932
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.Job`
|
|
8933
|
+
"""
|
|
8934
|
+
return self._Job
|
|
8935
|
+
|
|
8936
|
+
@Job.setter
|
|
8937
|
+
def Job(self, Job):
|
|
8938
|
+
self._Job = Job
|
|
8939
|
+
|
|
8940
|
+
@property
|
|
8941
|
+
def QueueName(self):
|
|
8942
|
+
r"""队列名称。不指定则为默认队列:
|
|
8943
|
+
SLURM默认队列为:compute。
|
|
8944
|
+
SGE默认队列为:all.q。
|
|
8945
|
+
:rtype: str
|
|
8946
|
+
"""
|
|
8947
|
+
return self._QueueName
|
|
8948
|
+
|
|
8949
|
+
@QueueName.setter
|
|
8950
|
+
def QueueName(self, QueueName):
|
|
8951
|
+
self._QueueName = QueueName
|
|
8952
|
+
|
|
8953
|
+
|
|
8954
|
+
def _deserialize(self, params):
|
|
8955
|
+
self._ClusterId = params.get("ClusterId")
|
|
8956
|
+
if params.get("Job") is not None:
|
|
8957
|
+
self._Job = Job()
|
|
8958
|
+
self._Job._deserialize(params.get("Job"))
|
|
8959
|
+
self._QueueName = params.get("QueueName")
|
|
8960
|
+
memeber_set = set(params.keys())
|
|
8961
|
+
for name, value in vars(self).items():
|
|
8962
|
+
property_name = name[1:]
|
|
8963
|
+
if property_name in memeber_set:
|
|
8964
|
+
memeber_set.remove(property_name)
|
|
8965
|
+
if len(memeber_set) > 0:
|
|
8966
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8967
|
+
|
|
8968
|
+
|
|
8697
8969
|
|
|
8698
8970
|
class SubmitJobResponse(AbstractModel):
|
|
8699
8971
|
r"""SubmitJob返回参数结构体
|
|
@@ -8702,11 +8974,25 @@ class SubmitJobResponse(AbstractModel):
|
|
|
8702
8974
|
|
|
8703
8975
|
def __init__(self):
|
|
8704
8976
|
r"""
|
|
8977
|
+
:param _JobId: 作业任务ID
|
|
8978
|
+
:type JobId: str
|
|
8705
8979
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8706
8980
|
:type RequestId: str
|
|
8707
8981
|
"""
|
|
8982
|
+
self._JobId = None
|
|
8708
8983
|
self._RequestId = None
|
|
8709
8984
|
|
|
8985
|
+
@property
|
|
8986
|
+
def JobId(self):
|
|
8987
|
+
r"""作业任务ID
|
|
8988
|
+
:rtype: str
|
|
8989
|
+
"""
|
|
8990
|
+
return self._JobId
|
|
8991
|
+
|
|
8992
|
+
@JobId.setter
|
|
8993
|
+
def JobId(self, JobId):
|
|
8994
|
+
self._JobId = JobId
|
|
8995
|
+
|
|
8710
8996
|
@property
|
|
8711
8997
|
def RequestId(self):
|
|
8712
8998
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -8720,6 +9006,7 @@ class SubmitJobResponse(AbstractModel):
|
|
|
8720
9006
|
|
|
8721
9007
|
|
|
8722
9008
|
def _deserialize(self, params):
|
|
9009
|
+
self._JobId = params.get("JobId")
|
|
8723
9010
|
self._RequestId = params.get("RequestId")
|
|
8724
9011
|
|
|
8725
9012
|
|
|
@@ -562,6 +562,29 @@ class ThpcClient(AbstractClient):
|
|
|
562
562
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
563
563
|
|
|
564
564
|
|
|
565
|
+
def ModifyClusterDeletionProtection(self, request):
|
|
566
|
+
r"""修改集群删除保护状态
|
|
567
|
+
|
|
568
|
+
:param request: Request instance for ModifyClusterDeletionProtection.
|
|
569
|
+
:type request: :class:`tencentcloud.thpc.v20230321.models.ModifyClusterDeletionProtectionRequest`
|
|
570
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.ModifyClusterDeletionProtectionResponse`
|
|
571
|
+
|
|
572
|
+
"""
|
|
573
|
+
try:
|
|
574
|
+
params = request._serialize()
|
|
575
|
+
headers = request.headers
|
|
576
|
+
body = self.call("ModifyClusterDeletionProtection", params, headers=headers)
|
|
577
|
+
response = json.loads(body)
|
|
578
|
+
model = models.ModifyClusterDeletionProtectionResponse()
|
|
579
|
+
model._deserialize(response["Response"])
|
|
580
|
+
return model
|
|
581
|
+
except Exception as e:
|
|
582
|
+
if isinstance(e, TencentCloudSDKException):
|
|
583
|
+
raise
|
|
584
|
+
else:
|
|
585
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
586
|
+
|
|
587
|
+
|
|
565
588
|
def ModifyInitNodeScripts(self, request):
|
|
566
589
|
r"""本接口 (ModifyInitNodeScripts) 用于修改节点初始化脚本。
|
|
567
590
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-thpc
|
|
3
|
+
Version: 3.0.1483
|
|
4
|
+
Summary: Tencent Cloud Thpc SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1483
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Thpc SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-thpc
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common thpc
|
|
46
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1483
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-thpc
|
|
3
|
-
Version: 3.0.1459
|
|
4
|
-
Summary: Tencent Cloud Thpc SDK for Python
|
|
5
|
-
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
-
Author: Tencent Cloud
|
|
7
|
-
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Thpc SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-thpc
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common thpc
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-thpc
|
|
3
|
-
Version: 3.0.1459
|
|
4
|
-
Summary: Tencent Cloud Thpc SDK for Python
|
|
5
|
-
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
-
Author: Tencent Cloud
|
|
7
|
-
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Thpc SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-thpc
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common thpc
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1459
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|