tencentcloud-sdk-python-thpc 3.0.957__tar.gz → 3.0.992__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.
Files changed (24) hide show
  1. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/setup.py +1 -1
  3. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20230321/errorcodes.py +6 -0
  5. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20230321/models.py +225 -0
  6. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud_sdk_python_thpc.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-thpc-3.0.992/tencentcloud_sdk_python_thpc.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-thpc-3.0.957/tencentcloud_sdk_python_thpc.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/README.rst +0 -0
  10. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/__init__.py +0 -0
  12. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20211109/__init__.py +0 -0
  13. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20211109/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20211109/models.py +0 -0
  15. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20211109/thpc_client.py +0 -0
  16. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20220401/__init__.py +0 -0
  17. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20220401/errorcodes.py +0 -0
  18. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20220401/models.py +0 -0
  19. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20220401/thpc_client.py +0 -0
  20. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20230321/__init__.py +0 -0
  21. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud/thpc/v20230321/thpc_client.py +0 -0
  22. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud_sdk_python_thpc.egg-info/SOURCES.txt +0 -0
  23. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud_sdk_python_thpc.egg-info/dependency_links.txt +0 -0
  24. {tencentcloud-sdk-python-thpc-3.0.957 → tencentcloud-sdk-python-thpc-3.0.992}/tencentcloud_sdk_python_thpc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-thpc
3
- Version: 3.0.957
3
+ Version: 3.0.992
4
4
  Summary: Tencent Cloud Thpc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -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.957"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.992"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Thpc SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.957'
17
+ __version__ = '3.0.992'
@@ -26,6 +26,9 @@ FAILEDOPERATION = 'FailedOperation'
26
26
  # 内部错误。
27
27
  INTERNALERROR = 'InternalError'
28
28
 
29
+ # CAM服务调用失败。
30
+ INTERNALERROR_CALLCAM = 'InternalError.CallCAM'
31
+
29
32
  # cvm调用失败。
30
33
  INTERNALERROR_CALLCVM = 'InternalError.CallCvm'
31
34
 
@@ -95,6 +98,9 @@ RESOURCENOTFOUND_CLUSTERID = 'ResourceNotFound.ClusterId'
95
98
  # 无法找到镜像ID。
96
99
  RESOURCENOTFOUND_IMAGEID = 'ResourceNotFound.ImageId'
97
100
 
101
+ # 无法找到本地挂载路径。
102
+ RESOURCENOTFOUND_LOCALPATH = 'ResourceNotFound.LocalPath'
103
+
98
104
  # 无法找到ID对应节点。
99
105
  RESOURCENOTFOUND_NODEID = 'ResourceNotFound.NodeId'
100
106
 
@@ -1228,6 +1228,8 @@ false(默认):发送正常请求,通过检查后直接创建实例
1228
1228
  :type AutoScalingType: str
1229
1229
  :param _InitNodeScripts: 节点初始化脚本信息列表。
1230
1230
  :type InitNodeScripts: list of NodeScript
1231
+ :param _HpcClusterId: 高性能计算集群ID。若创建的实例为高性能计算实例,需指定实例放置的集群,否则不可指定。
1232
+ :type HpcClusterId: str
1231
1233
  """
1232
1234
  self._Placement = None
1233
1235
  self._ManagerNode = None
@@ -1249,6 +1251,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
1249
1251
  self._Tags = None
1250
1252
  self._AutoScalingType = None
1251
1253
  self._InitNodeScripts = None
1254
+ self._HpcClusterId = None
1252
1255
 
1253
1256
  @property
1254
1257
  def Placement(self):
@@ -1410,6 +1413,14 @@ false(默认):发送正常请求,通过检查后直接创建实例
1410
1413
  def InitNodeScripts(self, InitNodeScripts):
1411
1414
  self._InitNodeScripts = InitNodeScripts
1412
1415
 
1416
+ @property
1417
+ def HpcClusterId(self):
1418
+ return self._HpcClusterId
1419
+
1420
+ @HpcClusterId.setter
1421
+ def HpcClusterId(self, HpcClusterId):
1422
+ self._HpcClusterId = HpcClusterId
1423
+
1413
1424
 
1414
1425
  def _deserialize(self, params):
1415
1426
  if params.get("Placement") is not None:
@@ -1456,6 +1467,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
1456
1467
  obj = NodeScript()
1457
1468
  obj._deserialize(item)
1458
1469
  self._InitNodeScripts.append(obj)
1470
+ self._HpcClusterId = params.get("HpcClusterId")
1459
1471
  memeber_set = set(params.keys())
1460
1472
  for name, value in vars(self).items():
1461
1473
  property_name = name[1:]
@@ -2539,6 +2551,72 @@ class DescribeQueuesResponse(AbstractModel):
2539
2551
  self._RequestId = params.get("RequestId")
2540
2552
 
2541
2553
 
2554
+ class EnhancedService(AbstractModel):
2555
+ """描述了实例的增强服务启用情况与其设置,如云安全,云监控等实例 Agent
2556
+
2557
+ """
2558
+
2559
+ def __init__(self):
2560
+ r"""
2561
+ :param _SecurityService: 开启云安全服务。若不指定该参数,则默认开启云安全服务。
2562
+ 注意:此字段可能返回 null,表示取不到有效值。
2563
+ :type SecurityService: :class:`tencentcloud.thpc.v20230321.models.RunSecurityServiceEnabled`
2564
+ :param _MonitorService: 开启云监控服务。若不指定该参数,则默认开启云监控服务。
2565
+ 注意:此字段可能返回 null,表示取不到有效值。
2566
+ :type MonitorService: :class:`tencentcloud.thpc.v20230321.models.RunMonitorServiceEnabled`
2567
+ :param _AutomationService: 开启云自动化助手服务(TencentCloud Automation Tools,TAT)。若不指定该参数,默认开启云自动化助手服务。
2568
+ 注意:此字段可能返回 null,表示取不到有效值。
2569
+ :type AutomationService: :class:`tencentcloud.thpc.v20230321.models.RunAutomationServiceEnabled`
2570
+ """
2571
+ self._SecurityService = None
2572
+ self._MonitorService = None
2573
+ self._AutomationService = None
2574
+
2575
+ @property
2576
+ def SecurityService(self):
2577
+ return self._SecurityService
2578
+
2579
+ @SecurityService.setter
2580
+ def SecurityService(self, SecurityService):
2581
+ self._SecurityService = SecurityService
2582
+
2583
+ @property
2584
+ def MonitorService(self):
2585
+ return self._MonitorService
2586
+
2587
+ @MonitorService.setter
2588
+ def MonitorService(self, MonitorService):
2589
+ self._MonitorService = MonitorService
2590
+
2591
+ @property
2592
+ def AutomationService(self):
2593
+ return self._AutomationService
2594
+
2595
+ @AutomationService.setter
2596
+ def AutomationService(self, AutomationService):
2597
+ self._AutomationService = AutomationService
2598
+
2599
+
2600
+ def _deserialize(self, params):
2601
+ if params.get("SecurityService") is not None:
2602
+ self._SecurityService = RunSecurityServiceEnabled()
2603
+ self._SecurityService._deserialize(params.get("SecurityService"))
2604
+ if params.get("MonitorService") is not None:
2605
+ self._MonitorService = RunMonitorServiceEnabled()
2606
+ self._MonitorService._deserialize(params.get("MonitorService"))
2607
+ if params.get("AutomationService") is not None:
2608
+ self._AutomationService = RunAutomationServiceEnabled()
2609
+ self._AutomationService._deserialize(params.get("AutomationService"))
2610
+ memeber_set = set(params.keys())
2611
+ for name, value in vars(self).items():
2612
+ property_name = name[1:]
2613
+ if property_name in memeber_set:
2614
+ memeber_set.remove(property_name)
2615
+ if len(memeber_set) > 0:
2616
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2617
+
2618
+
2619
+
2542
2620
  class ExpansionNodeConfig(AbstractModel):
2543
2621
  """弹性扩容节点配置信息。
2544
2622
 
@@ -3892,6 +3970,14 @@ class QueueConfig(AbstractModel):
3892
3970
  :type ScaleOutNodeThreshold: int
3893
3971
  :param _MaxNodesPerCycle: 每轮扩容最大节点个数。默认值:100。取值范围:1~100。
3894
3972
  :type MaxNodesPerCycle: int
3973
+ :param _ScaleUpMemRatio: 扩容过程中,作业的内存在匹配实例机型时增大比例(不会影响作业提交的内存大小,只影响匹配计算过程)。<br/>
3974
+ 针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,
3975
+
3976
+ - 当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。
3977
+ - 当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。
3978
+ :type ScaleUpMemRatio: int
3979
+ :param _EnhancedService: 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务、自动化助手服务。
3980
+ :type EnhancedService: :class:`tencentcloud.thpc.v20230321.models.EnhancedService`
3895
3981
  """
3896
3982
  self._QueueName = None
3897
3983
  self._MinSize = None
@@ -3907,6 +3993,8 @@ class QueueConfig(AbstractModel):
3907
3993
  self._ScaleOutRatio = None
3908
3994
  self._ScaleOutNodeThreshold = None
3909
3995
  self._MaxNodesPerCycle = None
3996
+ self._ScaleUpMemRatio = None
3997
+ self._EnhancedService = None
3910
3998
 
3911
3999
  @property
3912
4000
  def QueueName(self):
@@ -4020,6 +4108,22 @@ class QueueConfig(AbstractModel):
4020
4108
  def MaxNodesPerCycle(self, MaxNodesPerCycle):
4021
4109
  self._MaxNodesPerCycle = MaxNodesPerCycle
4022
4110
 
4111
+ @property
4112
+ def ScaleUpMemRatio(self):
4113
+ return self._ScaleUpMemRatio
4114
+
4115
+ @ScaleUpMemRatio.setter
4116
+ def ScaleUpMemRatio(self, ScaleUpMemRatio):
4117
+ self._ScaleUpMemRatio = ScaleUpMemRatio
4118
+
4119
+ @property
4120
+ def EnhancedService(self):
4121
+ return self._EnhancedService
4122
+
4123
+ @EnhancedService.setter
4124
+ def EnhancedService(self, EnhancedService):
4125
+ self._EnhancedService = EnhancedService
4126
+
4023
4127
 
4024
4128
  def _deserialize(self, params):
4025
4129
  self._QueueName = params.get("QueueName")
@@ -4050,6 +4154,10 @@ class QueueConfig(AbstractModel):
4050
4154
  self._ScaleOutRatio = params.get("ScaleOutRatio")
4051
4155
  self._ScaleOutNodeThreshold = params.get("ScaleOutNodeThreshold")
4052
4156
  self._MaxNodesPerCycle = params.get("MaxNodesPerCycle")
4157
+ self._ScaleUpMemRatio = params.get("ScaleUpMemRatio")
4158
+ if params.get("EnhancedService") is not None:
4159
+ self._EnhancedService = EnhancedService()
4160
+ self._EnhancedService._deserialize(params.get("EnhancedService"))
4053
4161
  memeber_set = set(params.keys())
4054
4162
  for name, value in vars(self).items():
4055
4163
  property_name = name[1:]
@@ -4094,6 +4202,13 @@ class QueueConfigOverview(AbstractModel):
4094
4202
  :param _MaxNodesPerCycle: 每轮扩容最大节点个数。
4095
4203
  注意:此字段可能返回 null,表示取不到有效值。
4096
4204
  :type MaxNodesPerCycle: int
4205
+ :param _ScaleUpMemRatio: 扩容过程中,作业的内存在匹配实例机型时增大比例(不会影响作业提交的内存大小,只影响匹配计算过程)。<br/>
4206
+ 针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,
4207
+
4208
+ - 当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。
4209
+ - 当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。
4210
+ 注意:此字段可能返回 null,表示取不到有效值。
4211
+ :type ScaleUpMemRatio: int
4097
4212
  """
4098
4213
  self._QueueName = None
4099
4214
  self._MinSize = None
@@ -4105,6 +4220,7 @@ class QueueConfigOverview(AbstractModel):
4105
4220
  self._ScaleOutRatio = None
4106
4221
  self._ScaleOutNodeThreshold = None
4107
4222
  self._MaxNodesPerCycle = None
4223
+ self._ScaleUpMemRatio = None
4108
4224
 
4109
4225
  @property
4110
4226
  def QueueName(self):
@@ -4186,6 +4302,14 @@ class QueueConfigOverview(AbstractModel):
4186
4302
  def MaxNodesPerCycle(self, MaxNodesPerCycle):
4187
4303
  self._MaxNodesPerCycle = MaxNodesPerCycle
4188
4304
 
4305
+ @property
4306
+ def ScaleUpMemRatio(self):
4307
+ return self._ScaleUpMemRatio
4308
+
4309
+ @ScaleUpMemRatio.setter
4310
+ def ScaleUpMemRatio(self, ScaleUpMemRatio):
4311
+ self._ScaleUpMemRatio = ScaleUpMemRatio
4312
+
4189
4313
 
4190
4314
  def _deserialize(self, params):
4191
4315
  self._QueueName = params.get("QueueName")
@@ -4203,6 +4327,7 @@ class QueueConfigOverview(AbstractModel):
4203
4327
  self._ScaleOutRatio = params.get("ScaleOutRatio")
4204
4328
  self._ScaleOutNodeThreshold = params.get("ScaleOutNodeThreshold")
4205
4329
  self._MaxNodesPerCycle = params.get("MaxNodesPerCycle")
4330
+ self._ScaleUpMemRatio = params.get("ScaleUpMemRatio")
4206
4331
  memeber_set = set(params.keys())
4207
4332
  for name, value in vars(self).items():
4208
4333
  property_name = name[1:]
@@ -4247,6 +4372,106 @@ class QueueOverview(AbstractModel):
4247
4372
 
4248
4373
 
4249
4374
 
4375
+ class RunAutomationServiceEnabled(AbstractModel):
4376
+ """描述了 “云自动化助手” 服务相关的信息。
4377
+
4378
+ """
4379
+
4380
+ def __init__(self):
4381
+ r"""
4382
+ :param _Enabled: 是否开启云自动化助手。取值范围:<br><li>TRUE:表示开启云自动化助手服务<br><li>FALSE:表示不开启云自动化助手服务<br><br>默认取值:TRUE。
4383
+ :type Enabled: bool
4384
+ """
4385
+ self._Enabled = None
4386
+
4387
+ @property
4388
+ def Enabled(self):
4389
+ return self._Enabled
4390
+
4391
+ @Enabled.setter
4392
+ def Enabled(self, Enabled):
4393
+ self._Enabled = Enabled
4394
+
4395
+
4396
+ def _deserialize(self, params):
4397
+ self._Enabled = params.get("Enabled")
4398
+ memeber_set = set(params.keys())
4399
+ for name, value in vars(self).items():
4400
+ property_name = name[1:]
4401
+ if property_name in memeber_set:
4402
+ memeber_set.remove(property_name)
4403
+ if len(memeber_set) > 0:
4404
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4405
+
4406
+
4407
+
4408
+ class RunMonitorServiceEnabled(AbstractModel):
4409
+ """描述了 “云监控” 服务相关的信息。
4410
+
4411
+ """
4412
+
4413
+ def __init__(self):
4414
+ r"""
4415
+ :param _Enabled: 是否开启[云监控](/document/product/248)服务。取值范围:<br><li>TRUE:表示开启云监控服务<br><li>FALSE:表示不开启云监控服务<br><br>默认取值:TRUE。
4416
+ 注意:此字段可能返回 null,表示取不到有效值。
4417
+ :type Enabled: bool
4418
+ """
4419
+ self._Enabled = None
4420
+
4421
+ @property
4422
+ def Enabled(self):
4423
+ return self._Enabled
4424
+
4425
+ @Enabled.setter
4426
+ def Enabled(self, Enabled):
4427
+ self._Enabled = Enabled
4428
+
4429
+
4430
+ def _deserialize(self, params):
4431
+ self._Enabled = params.get("Enabled")
4432
+ memeber_set = set(params.keys())
4433
+ for name, value in vars(self).items():
4434
+ property_name = name[1:]
4435
+ if property_name in memeber_set:
4436
+ memeber_set.remove(property_name)
4437
+ if len(memeber_set) > 0:
4438
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4439
+
4440
+
4441
+
4442
+ class RunSecurityServiceEnabled(AbstractModel):
4443
+ """描述了 “云安全” 服务相关的信息。
4444
+
4445
+ """
4446
+
4447
+ def __init__(self):
4448
+ r"""
4449
+ :param _Enabled: 是否开启[云安全](/document/product/296)服务。取值范围:<br><li>TRUE:表示开启云安全服务<br><li>FALSE:表示不开启云安全服务<br><br>默认取值:TRUE。
4450
+ :type Enabled: bool
4451
+ """
4452
+ self._Enabled = None
4453
+
4454
+ @property
4455
+ def Enabled(self):
4456
+ return self._Enabled
4457
+
4458
+ @Enabled.setter
4459
+ def Enabled(self, Enabled):
4460
+ self._Enabled = Enabled
4461
+
4462
+
4463
+ def _deserialize(self, params):
4464
+ self._Enabled = params.get("Enabled")
4465
+ memeber_set = set(params.keys())
4466
+ for name, value in vars(self).items():
4467
+ property_name = name[1:]
4468
+ if property_name in memeber_set:
4469
+ memeber_set.remove(property_name)
4470
+ if len(memeber_set) > 0:
4471
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4472
+
4473
+
4474
+
4250
4475
  class SetAutoScalingConfigurationRequest(AbstractModel):
4251
4476
  """SetAutoScalingConfiguration请求参数结构体
4252
4477
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-thpc
3
- Version: 3.0.957
3
+ Version: 3.0.992
4
4
  Summary: Tencent Cloud Thpc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.992
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.957