tencentcloud-sdk-python 3.0.1438__py2.py3-none-any.whl → 3.0.1439__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cls/v20201016/models.py +38 -24
- tencentcloud/es/v20180416/errorcodes.py +3 -0
- tencentcloud/es/v20180416/models.py +225 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +3 -0
- tencentcloud/mna/v20210119/errorcodes.py +1 -1
- tencentcloud/ssl/v20191205/models.py +60 -0
- tencentcloud/sts/v20180813/sts_client.py +16 -4
- tencentcloud/tdmq/v20200217/models.py +102 -0
- tencentcloud/thpc/v20230321/errorcodes.py +24 -0
- tencentcloud/thpc/v20230321/models.py +1398 -132
- tencentcloud/thpc/v20230321/thpc_client.py +138 -0
- tencentcloud/trocket/v20230308/models.py +70 -0
- tencentcloud/tsf/v20180326/errorcodes.py +4 -4
- tencentcloud/vod/v20180717/models.py +12 -4
- tencentcloud/wedata/v20210820/models.py +15 -15
- {tencentcloud_sdk_python-3.0.1438.dist-info → tencentcloud_sdk_python-3.0.1439.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1438.dist-info → tencentcloud_sdk_python-3.0.1439.dist-info}/RECORD +21 -21
- {tencentcloud_sdk_python-3.0.1438.dist-info → tencentcloud_sdk_python-3.0.1439.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1438.dist-info → tencentcloud_sdk_python-3.0.1439.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1438.dist-info → tencentcloud_sdk_python-3.0.1439.dist-info}/top_level.txt +0 -0
|
@@ -573,6 +573,146 @@ class AddQueueResponse(AbstractModel):
|
|
|
573
573
|
self._RequestId = params.get("RequestId")
|
|
574
574
|
|
|
575
575
|
|
|
576
|
+
class Application(AbstractModel):
|
|
577
|
+
"""任务的应用环境配置信息。
|
|
578
|
+
|
|
579
|
+
"""
|
|
580
|
+
|
|
581
|
+
def __init__(self):
|
|
582
|
+
r"""
|
|
583
|
+
:param _Commands: 待执行脚本命令。
|
|
584
|
+
:type Commands: list of CommandItem
|
|
585
|
+
:param _StorageMounts: 存储目录挂载配置。
|
|
586
|
+
:type StorageMounts: list of StorageMount
|
|
587
|
+
:param _EnvVars: 用户自定义环境变量。
|
|
588
|
+
:type EnvVars: list of EnvVar
|
|
589
|
+
:param _Docker: 容器配置信息。
|
|
590
|
+
:type Docker: :class:`tencentcloud.thpc.v20230321.models.Docker`
|
|
591
|
+
:param _OutputRedirect: 无
|
|
592
|
+
:type OutputRedirect: :class:`tencentcloud.thpc.v20230321.models.OutputRedirect`
|
|
593
|
+
:param _JobType: 表示所选训练框架,支持可选参数
|
|
594
|
+
|
|
595
|
+
- PyTorch:表示提交PyTorch训练作业
|
|
596
|
+
- Custom:表示用户自定义作业
|
|
597
|
+
|
|
598
|
+
默认参数为:Custom
|
|
599
|
+
:type JobType: str
|
|
600
|
+
"""
|
|
601
|
+
self._Commands = None
|
|
602
|
+
self._StorageMounts = None
|
|
603
|
+
self._EnvVars = None
|
|
604
|
+
self._Docker = None
|
|
605
|
+
self._OutputRedirect = None
|
|
606
|
+
self._JobType = None
|
|
607
|
+
|
|
608
|
+
@property
|
|
609
|
+
def Commands(self):
|
|
610
|
+
"""待执行脚本命令。
|
|
611
|
+
:rtype: list of CommandItem
|
|
612
|
+
"""
|
|
613
|
+
return self._Commands
|
|
614
|
+
|
|
615
|
+
@Commands.setter
|
|
616
|
+
def Commands(self, Commands):
|
|
617
|
+
self._Commands = Commands
|
|
618
|
+
|
|
619
|
+
@property
|
|
620
|
+
def StorageMounts(self):
|
|
621
|
+
"""存储目录挂载配置。
|
|
622
|
+
:rtype: list of StorageMount
|
|
623
|
+
"""
|
|
624
|
+
return self._StorageMounts
|
|
625
|
+
|
|
626
|
+
@StorageMounts.setter
|
|
627
|
+
def StorageMounts(self, StorageMounts):
|
|
628
|
+
self._StorageMounts = StorageMounts
|
|
629
|
+
|
|
630
|
+
@property
|
|
631
|
+
def EnvVars(self):
|
|
632
|
+
"""用户自定义环境变量。
|
|
633
|
+
:rtype: list of EnvVar
|
|
634
|
+
"""
|
|
635
|
+
return self._EnvVars
|
|
636
|
+
|
|
637
|
+
@EnvVars.setter
|
|
638
|
+
def EnvVars(self, EnvVars):
|
|
639
|
+
self._EnvVars = EnvVars
|
|
640
|
+
|
|
641
|
+
@property
|
|
642
|
+
def Docker(self):
|
|
643
|
+
"""容器配置信息。
|
|
644
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.Docker`
|
|
645
|
+
"""
|
|
646
|
+
return self._Docker
|
|
647
|
+
|
|
648
|
+
@Docker.setter
|
|
649
|
+
def Docker(self, Docker):
|
|
650
|
+
self._Docker = Docker
|
|
651
|
+
|
|
652
|
+
@property
|
|
653
|
+
def OutputRedirect(self):
|
|
654
|
+
"""无
|
|
655
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.OutputRedirect`
|
|
656
|
+
"""
|
|
657
|
+
return self._OutputRedirect
|
|
658
|
+
|
|
659
|
+
@OutputRedirect.setter
|
|
660
|
+
def OutputRedirect(self, OutputRedirect):
|
|
661
|
+
self._OutputRedirect = OutputRedirect
|
|
662
|
+
|
|
663
|
+
@property
|
|
664
|
+
def JobType(self):
|
|
665
|
+
"""表示所选训练框架,支持可选参数
|
|
666
|
+
|
|
667
|
+
- PyTorch:表示提交PyTorch训练作业
|
|
668
|
+
- Custom:表示用户自定义作业
|
|
669
|
+
|
|
670
|
+
默认参数为:Custom
|
|
671
|
+
:rtype: str
|
|
672
|
+
"""
|
|
673
|
+
return self._JobType
|
|
674
|
+
|
|
675
|
+
@JobType.setter
|
|
676
|
+
def JobType(self, JobType):
|
|
677
|
+
self._JobType = JobType
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
def _deserialize(self, params):
|
|
681
|
+
if params.get("Commands") is not None:
|
|
682
|
+
self._Commands = []
|
|
683
|
+
for item in params.get("Commands"):
|
|
684
|
+
obj = CommandItem()
|
|
685
|
+
obj._deserialize(item)
|
|
686
|
+
self._Commands.append(obj)
|
|
687
|
+
if params.get("StorageMounts") is not None:
|
|
688
|
+
self._StorageMounts = []
|
|
689
|
+
for item in params.get("StorageMounts"):
|
|
690
|
+
obj = StorageMount()
|
|
691
|
+
obj._deserialize(item)
|
|
692
|
+
self._StorageMounts.append(obj)
|
|
693
|
+
if params.get("EnvVars") is not None:
|
|
694
|
+
self._EnvVars = []
|
|
695
|
+
for item in params.get("EnvVars"):
|
|
696
|
+
obj = EnvVar()
|
|
697
|
+
obj._deserialize(item)
|
|
698
|
+
self._EnvVars.append(obj)
|
|
699
|
+
if params.get("Docker") is not None:
|
|
700
|
+
self._Docker = Docker()
|
|
701
|
+
self._Docker._deserialize(params.get("Docker"))
|
|
702
|
+
if params.get("OutputRedirect") is not None:
|
|
703
|
+
self._OutputRedirect = OutputRedirect()
|
|
704
|
+
self._OutputRedirect._deserialize(params.get("OutputRedirect"))
|
|
705
|
+
self._JobType = params.get("JobType")
|
|
706
|
+
memeber_set = set(params.keys())
|
|
707
|
+
for name, value in vars(self).items():
|
|
708
|
+
property_name = name[1:]
|
|
709
|
+
if property_name in memeber_set:
|
|
710
|
+
memeber_set.remove(property_name)
|
|
711
|
+
if len(memeber_set) > 0:
|
|
712
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
576
716
|
class AttachNodesRequest(AbstractModel):
|
|
577
717
|
"""AttachNodes请求参数结构体
|
|
578
718
|
|
|
@@ -1384,6 +1524,42 @@ class ClusterOverview(AbstractModel):
|
|
|
1384
1524
|
|
|
1385
1525
|
|
|
1386
1526
|
|
|
1527
|
+
class CommandItem(AbstractModel):
|
|
1528
|
+
"""任务执行命令脚本。
|
|
1529
|
+
|
|
1530
|
+
"""
|
|
1531
|
+
|
|
1532
|
+
def __init__(self):
|
|
1533
|
+
r"""
|
|
1534
|
+
:param _Command: 脚本命令
|
|
1535
|
+
:type Command: str
|
|
1536
|
+
"""
|
|
1537
|
+
self._Command = None
|
|
1538
|
+
|
|
1539
|
+
@property
|
|
1540
|
+
def Command(self):
|
|
1541
|
+
"""脚本命令
|
|
1542
|
+
:rtype: str
|
|
1543
|
+
"""
|
|
1544
|
+
return self._Command
|
|
1545
|
+
|
|
1546
|
+
@Command.setter
|
|
1547
|
+
def Command(self, Command):
|
|
1548
|
+
self._Command = Command
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
def _deserialize(self, params):
|
|
1552
|
+
self._Command = params.get("Command")
|
|
1553
|
+
memeber_set = set(params.keys())
|
|
1554
|
+
for name, value in vars(self).items():
|
|
1555
|
+
property_name = name[1:]
|
|
1556
|
+
if property_name in memeber_set:
|
|
1557
|
+
memeber_set.remove(property_name)
|
|
1558
|
+
if len(memeber_set) > 0:
|
|
1559
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
1387
1563
|
class ComputeNode(AbstractModel):
|
|
1388
1564
|
"""计算节点信息。
|
|
1389
1565
|
|
|
@@ -2637,6 +2813,70 @@ class DeleteClusterStorageOptionResponse(AbstractModel):
|
|
|
2637
2813
|
self._RequestId = params.get("RequestId")
|
|
2638
2814
|
|
|
2639
2815
|
|
|
2816
|
+
class DeleteJobRequest(AbstractModel):
|
|
2817
|
+
"""DeleteJob请求参数结构体
|
|
2818
|
+
|
|
2819
|
+
"""
|
|
2820
|
+
|
|
2821
|
+
def __init__(self):
|
|
2822
|
+
r"""
|
|
2823
|
+
:param _JobId: 作业任务ID
|
|
2824
|
+
:type JobId: str
|
|
2825
|
+
"""
|
|
2826
|
+
self._JobId = None
|
|
2827
|
+
|
|
2828
|
+
@property
|
|
2829
|
+
def JobId(self):
|
|
2830
|
+
"""作业任务ID
|
|
2831
|
+
:rtype: str
|
|
2832
|
+
"""
|
|
2833
|
+
return self._JobId
|
|
2834
|
+
|
|
2835
|
+
@JobId.setter
|
|
2836
|
+
def JobId(self, JobId):
|
|
2837
|
+
self._JobId = JobId
|
|
2838
|
+
|
|
2839
|
+
|
|
2840
|
+
def _deserialize(self, params):
|
|
2841
|
+
self._JobId = params.get("JobId")
|
|
2842
|
+
memeber_set = set(params.keys())
|
|
2843
|
+
for name, value in vars(self).items():
|
|
2844
|
+
property_name = name[1:]
|
|
2845
|
+
if property_name in memeber_set:
|
|
2846
|
+
memeber_set.remove(property_name)
|
|
2847
|
+
if len(memeber_set) > 0:
|
|
2848
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2849
|
+
|
|
2850
|
+
|
|
2851
|
+
|
|
2852
|
+
class DeleteJobResponse(AbstractModel):
|
|
2853
|
+
"""DeleteJob返回参数结构体
|
|
2854
|
+
|
|
2855
|
+
"""
|
|
2856
|
+
|
|
2857
|
+
def __init__(self):
|
|
2858
|
+
r"""
|
|
2859
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2860
|
+
:type RequestId: str
|
|
2861
|
+
"""
|
|
2862
|
+
self._RequestId = None
|
|
2863
|
+
|
|
2864
|
+
@property
|
|
2865
|
+
def RequestId(self):
|
|
2866
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2867
|
+
:rtype: str
|
|
2868
|
+
"""
|
|
2869
|
+
return self._RequestId
|
|
2870
|
+
|
|
2871
|
+
@RequestId.setter
|
|
2872
|
+
def RequestId(self, RequestId):
|
|
2873
|
+
self._RequestId = RequestId
|
|
2874
|
+
|
|
2875
|
+
|
|
2876
|
+
def _deserialize(self, params):
|
|
2877
|
+
self._RequestId = params.get("RequestId")
|
|
2878
|
+
|
|
2879
|
+
|
|
2640
2880
|
class DeleteNodesRequest(AbstractModel):
|
|
2641
2881
|
"""DeleteNodes请求参数结构体
|
|
2642
2882
|
|
|
@@ -3381,116 +3621,32 @@ class DescribeInitNodeScriptsResponse(AbstractModel):
|
|
|
3381
3621
|
self._RequestId = params.get("RequestId")
|
|
3382
3622
|
|
|
3383
3623
|
|
|
3384
|
-
class
|
|
3385
|
-
"""
|
|
3624
|
+
class DescribeJobSubmitInfoRequest(AbstractModel):
|
|
3625
|
+
"""DescribeJobSubmitInfo请求参数结构体
|
|
3386
3626
|
|
|
3387
3627
|
"""
|
|
3388
3628
|
|
|
3389
3629
|
def __init__(self):
|
|
3390
3630
|
r"""
|
|
3391
|
-
:param
|
|
3392
|
-
:type
|
|
3393
|
-
:param _Filters: <ul>
|
|
3394
|
-
<li><strong>queue-name</strong>
|
|
3395
|
-
<p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p>
|
|
3396
|
-
<p style="padding-left: 30px;">类型:String</p>
|
|
3397
|
-
<p style="padding-left: 30px;">必选:否</p>
|
|
3398
|
-
</li>
|
|
3399
|
-
<li><strong>node-role</strong>
|
|
3400
|
-
<p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p>
|
|
3401
|
-
<p style="padding-left: 30px;">类型:String</p>
|
|
3402
|
-
<p style="padding-left: 30px;">必选:否</p>
|
|
3403
|
-
</li>
|
|
3404
|
-
<li><strong>node-type</strong>
|
|
3405
|
-
<p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p>
|
|
3406
|
-
<p style="padding-left: 30px;">类型:String</p>
|
|
3407
|
-
<p style="padding-left: 30px;">必选:否</p>
|
|
3408
|
-
</li>
|
|
3409
|
-
</ul>
|
|
3410
|
-
<p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。</p>
|
|
3411
|
-
:type Filters: list of Filter
|
|
3412
|
-
:param _Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3413
|
-
:type Offset: int
|
|
3414
|
-
:param _Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3415
|
-
:type Limit: int
|
|
3631
|
+
:param _JobId: 作业ID
|
|
3632
|
+
:type JobId: str
|
|
3416
3633
|
"""
|
|
3417
|
-
self.
|
|
3418
|
-
self._Filters = None
|
|
3419
|
-
self._Offset = None
|
|
3420
|
-
self._Limit = None
|
|
3634
|
+
self._JobId = None
|
|
3421
3635
|
|
|
3422
3636
|
@property
|
|
3423
|
-
def
|
|
3424
|
-
"""
|
|
3637
|
+
def JobId(self):
|
|
3638
|
+
"""作业ID
|
|
3425
3639
|
:rtype: str
|
|
3426
3640
|
"""
|
|
3427
|
-
return self.
|
|
3428
|
-
|
|
3429
|
-
@ClusterId.setter
|
|
3430
|
-
def ClusterId(self, ClusterId):
|
|
3431
|
-
self._ClusterId = ClusterId
|
|
3432
|
-
|
|
3433
|
-
@property
|
|
3434
|
-
def Filters(self):
|
|
3435
|
-
"""<ul>
|
|
3436
|
-
<li><strong>queue-name</strong>
|
|
3437
|
-
<p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p>
|
|
3438
|
-
<p style="padding-left: 30px;">类型:String</p>
|
|
3439
|
-
<p style="padding-left: 30px;">必选:否</p>
|
|
3440
|
-
</li>
|
|
3441
|
-
<li><strong>node-role</strong>
|
|
3442
|
-
<p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p>
|
|
3443
|
-
<p style="padding-left: 30px;">类型:String</p>
|
|
3444
|
-
<p style="padding-left: 30px;">必选:否</p>
|
|
3445
|
-
</li>
|
|
3446
|
-
<li><strong>node-type</strong>
|
|
3447
|
-
<p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p>
|
|
3448
|
-
<p style="padding-left: 30px;">类型:String</p>
|
|
3449
|
-
<p style="padding-left: 30px;">必选:否</p>
|
|
3450
|
-
</li>
|
|
3451
|
-
</ul>
|
|
3452
|
-
<p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。</p>
|
|
3453
|
-
:rtype: list of Filter
|
|
3454
|
-
"""
|
|
3455
|
-
return self._Filters
|
|
3456
|
-
|
|
3457
|
-
@Filters.setter
|
|
3458
|
-
def Filters(self, Filters):
|
|
3459
|
-
self._Filters = Filters
|
|
3460
|
-
|
|
3461
|
-
@property
|
|
3462
|
-
def Offset(self):
|
|
3463
|
-
"""偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3464
|
-
:rtype: int
|
|
3465
|
-
"""
|
|
3466
|
-
return self._Offset
|
|
3467
|
-
|
|
3468
|
-
@Offset.setter
|
|
3469
|
-
def Offset(self, Offset):
|
|
3470
|
-
self._Offset = Offset
|
|
3471
|
-
|
|
3472
|
-
@property
|
|
3473
|
-
def Limit(self):
|
|
3474
|
-
"""返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3475
|
-
:rtype: int
|
|
3476
|
-
"""
|
|
3477
|
-
return self._Limit
|
|
3641
|
+
return self._JobId
|
|
3478
3642
|
|
|
3479
|
-
@
|
|
3480
|
-
def
|
|
3481
|
-
self.
|
|
3643
|
+
@JobId.setter
|
|
3644
|
+
def JobId(self, JobId):
|
|
3645
|
+
self._JobId = JobId
|
|
3482
3646
|
|
|
3483
3647
|
|
|
3484
3648
|
def _deserialize(self, params):
|
|
3485
|
-
self.
|
|
3486
|
-
if params.get("Filters") is not None:
|
|
3487
|
-
self._Filters = []
|
|
3488
|
-
for item in params.get("Filters"):
|
|
3489
|
-
obj = Filter()
|
|
3490
|
-
obj._deserialize(item)
|
|
3491
|
-
self._Filters.append(obj)
|
|
3492
|
-
self._Offset = params.get("Offset")
|
|
3493
|
-
self._Limit = params.get("Limit")
|
|
3649
|
+
self._JobId = params.get("JobId")
|
|
3494
3650
|
memeber_set = set(params.keys())
|
|
3495
3651
|
for name, value in vars(self).items():
|
|
3496
3652
|
property_name = name[1:]
|
|
@@ -3501,45 +3657,423 @@ class DescribeNodesRequest(AbstractModel):
|
|
|
3501
3657
|
|
|
3502
3658
|
|
|
3503
3659
|
|
|
3504
|
-
class
|
|
3505
|
-
"""
|
|
3660
|
+
class DescribeJobSubmitInfoResponse(AbstractModel):
|
|
3661
|
+
"""DescribeJobSubmitInfo返回参数结构体
|
|
3506
3662
|
|
|
3507
3663
|
"""
|
|
3508
3664
|
|
|
3509
3665
|
def __init__(self):
|
|
3510
3666
|
r"""
|
|
3511
|
-
:param
|
|
3512
|
-
:type
|
|
3513
|
-
:param
|
|
3514
|
-
:type
|
|
3667
|
+
:param _ClusterId: 集群ID
|
|
3668
|
+
:type ClusterId: str
|
|
3669
|
+
:param _QueueName: 队列名称
|
|
3670
|
+
:type QueueName: str
|
|
3671
|
+
:param _Job: 作业信息
|
|
3672
|
+
:type Job: :class:`tencentcloud.thpc.v20230321.models.Job`
|
|
3515
3673
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3516
3674
|
:type RequestId: str
|
|
3517
3675
|
"""
|
|
3518
|
-
self.
|
|
3519
|
-
self.
|
|
3676
|
+
self._ClusterId = None
|
|
3677
|
+
self._QueueName = None
|
|
3678
|
+
self._Job = None
|
|
3520
3679
|
self._RequestId = None
|
|
3521
3680
|
|
|
3522
3681
|
@property
|
|
3523
|
-
def
|
|
3524
|
-
"""
|
|
3525
|
-
:rtype:
|
|
3682
|
+
def ClusterId(self):
|
|
3683
|
+
"""集群ID
|
|
3684
|
+
:rtype: str
|
|
3526
3685
|
"""
|
|
3527
|
-
return self.
|
|
3686
|
+
return self._ClusterId
|
|
3528
3687
|
|
|
3529
|
-
@
|
|
3530
|
-
def
|
|
3531
|
-
self.
|
|
3688
|
+
@ClusterId.setter
|
|
3689
|
+
def ClusterId(self, ClusterId):
|
|
3690
|
+
self._ClusterId = ClusterId
|
|
3532
3691
|
|
|
3533
3692
|
@property
|
|
3534
|
-
def
|
|
3535
|
-
"""
|
|
3536
|
-
:rtype:
|
|
3693
|
+
def QueueName(self):
|
|
3694
|
+
"""队列名称
|
|
3695
|
+
:rtype: str
|
|
3537
3696
|
"""
|
|
3538
|
-
return self.
|
|
3697
|
+
return self._QueueName
|
|
3539
3698
|
|
|
3540
|
-
@
|
|
3541
|
-
def
|
|
3542
|
-
self.
|
|
3699
|
+
@QueueName.setter
|
|
3700
|
+
def QueueName(self, QueueName):
|
|
3701
|
+
self._QueueName = QueueName
|
|
3702
|
+
|
|
3703
|
+
@property
|
|
3704
|
+
def Job(self):
|
|
3705
|
+
"""作业信息
|
|
3706
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.Job`
|
|
3707
|
+
"""
|
|
3708
|
+
return self._Job
|
|
3709
|
+
|
|
3710
|
+
@Job.setter
|
|
3711
|
+
def Job(self, Job):
|
|
3712
|
+
self._Job = Job
|
|
3713
|
+
|
|
3714
|
+
@property
|
|
3715
|
+
def RequestId(self):
|
|
3716
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3717
|
+
:rtype: str
|
|
3718
|
+
"""
|
|
3719
|
+
return self._RequestId
|
|
3720
|
+
|
|
3721
|
+
@RequestId.setter
|
|
3722
|
+
def RequestId(self, RequestId):
|
|
3723
|
+
self._RequestId = RequestId
|
|
3724
|
+
|
|
3725
|
+
|
|
3726
|
+
def _deserialize(self, params):
|
|
3727
|
+
self._ClusterId = params.get("ClusterId")
|
|
3728
|
+
self._QueueName = params.get("QueueName")
|
|
3729
|
+
if params.get("Job") is not None:
|
|
3730
|
+
self._Job = Job()
|
|
3731
|
+
self._Job._deserialize(params.get("Job"))
|
|
3732
|
+
self._RequestId = params.get("RequestId")
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
class DescribeJobsOverviewRequest(AbstractModel):
|
|
3736
|
+
"""DescribeJobsOverview请求参数结构体
|
|
3737
|
+
|
|
3738
|
+
"""
|
|
3739
|
+
|
|
3740
|
+
|
|
3741
|
+
class DescribeJobsOverviewResponse(AbstractModel):
|
|
3742
|
+
"""DescribeJobsOverview返回参数结构体
|
|
3743
|
+
|
|
3744
|
+
"""
|
|
3745
|
+
|
|
3746
|
+
def __init__(self):
|
|
3747
|
+
r"""
|
|
3748
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3749
|
+
:type RequestId: str
|
|
3750
|
+
"""
|
|
3751
|
+
self._RequestId = None
|
|
3752
|
+
|
|
3753
|
+
@property
|
|
3754
|
+
def RequestId(self):
|
|
3755
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3756
|
+
:rtype: str
|
|
3757
|
+
"""
|
|
3758
|
+
return self._RequestId
|
|
3759
|
+
|
|
3760
|
+
@RequestId.setter
|
|
3761
|
+
def RequestId(self, RequestId):
|
|
3762
|
+
self._RequestId = RequestId
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
def _deserialize(self, params):
|
|
3766
|
+
self._RequestId = params.get("RequestId")
|
|
3767
|
+
|
|
3768
|
+
|
|
3769
|
+
class DescribeJobsRequest(AbstractModel):
|
|
3770
|
+
"""DescribeJobs请求参数结构体
|
|
3771
|
+
|
|
3772
|
+
"""
|
|
3773
|
+
|
|
3774
|
+
def __init__(self):
|
|
3775
|
+
r"""
|
|
3776
|
+
:param _JobIds: 作业任务ID列表
|
|
3777
|
+
:type JobIds: list of str
|
|
3778
|
+
:param _Filters: 过滤列表
|
|
3779
|
+
:type Filters: list of Filter
|
|
3780
|
+
:param _Offset: 偏移量,默认为0。 关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3781
|
+
:type Offset: int
|
|
3782
|
+
:param _Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3783
|
+
:type Limit: int
|
|
3784
|
+
"""
|
|
3785
|
+
self._JobIds = None
|
|
3786
|
+
self._Filters = None
|
|
3787
|
+
self._Offset = None
|
|
3788
|
+
self._Limit = None
|
|
3789
|
+
|
|
3790
|
+
@property
|
|
3791
|
+
def JobIds(self):
|
|
3792
|
+
"""作业任务ID列表
|
|
3793
|
+
:rtype: list of str
|
|
3794
|
+
"""
|
|
3795
|
+
return self._JobIds
|
|
3796
|
+
|
|
3797
|
+
@JobIds.setter
|
|
3798
|
+
def JobIds(self, JobIds):
|
|
3799
|
+
self._JobIds = JobIds
|
|
3800
|
+
|
|
3801
|
+
@property
|
|
3802
|
+
def Filters(self):
|
|
3803
|
+
"""过滤列表
|
|
3804
|
+
:rtype: list of Filter
|
|
3805
|
+
"""
|
|
3806
|
+
return self._Filters
|
|
3807
|
+
|
|
3808
|
+
@Filters.setter
|
|
3809
|
+
def Filters(self, Filters):
|
|
3810
|
+
self._Filters = Filters
|
|
3811
|
+
|
|
3812
|
+
@property
|
|
3813
|
+
def Offset(self):
|
|
3814
|
+
"""偏移量,默认为0。 关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3815
|
+
:rtype: int
|
|
3816
|
+
"""
|
|
3817
|
+
return self._Offset
|
|
3818
|
+
|
|
3819
|
+
@Offset.setter
|
|
3820
|
+
def Offset(self, Offset):
|
|
3821
|
+
self._Offset = Offset
|
|
3822
|
+
|
|
3823
|
+
@property
|
|
3824
|
+
def Limit(self):
|
|
3825
|
+
"""返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3826
|
+
:rtype: int
|
|
3827
|
+
"""
|
|
3828
|
+
return self._Limit
|
|
3829
|
+
|
|
3830
|
+
@Limit.setter
|
|
3831
|
+
def Limit(self, Limit):
|
|
3832
|
+
self._Limit = Limit
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
def _deserialize(self, params):
|
|
3836
|
+
self._JobIds = params.get("JobIds")
|
|
3837
|
+
if params.get("Filters") is not None:
|
|
3838
|
+
self._Filters = []
|
|
3839
|
+
for item in params.get("Filters"):
|
|
3840
|
+
obj = Filter()
|
|
3841
|
+
obj._deserialize(item)
|
|
3842
|
+
self._Filters.append(obj)
|
|
3843
|
+
self._Offset = params.get("Offset")
|
|
3844
|
+
self._Limit = params.get("Limit")
|
|
3845
|
+
memeber_set = set(params.keys())
|
|
3846
|
+
for name, value in vars(self).items():
|
|
3847
|
+
property_name = name[1:]
|
|
3848
|
+
if property_name in memeber_set:
|
|
3849
|
+
memeber_set.remove(property_name)
|
|
3850
|
+
if len(memeber_set) > 0:
|
|
3851
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3852
|
+
|
|
3853
|
+
|
|
3854
|
+
|
|
3855
|
+
class DescribeJobsResponse(AbstractModel):
|
|
3856
|
+
"""DescribeJobs返回参数结构体
|
|
3857
|
+
|
|
3858
|
+
"""
|
|
3859
|
+
|
|
3860
|
+
def __init__(self):
|
|
3861
|
+
r"""
|
|
3862
|
+
:param _JobSet: 作业任务概览列表
|
|
3863
|
+
:type JobSet: list of JobView
|
|
3864
|
+
:param _TotalCount: 符合条件的作业任务数量。
|
|
3865
|
+
:type TotalCount: int
|
|
3866
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3867
|
+
:type RequestId: str
|
|
3868
|
+
"""
|
|
3869
|
+
self._JobSet = None
|
|
3870
|
+
self._TotalCount = None
|
|
3871
|
+
self._RequestId = None
|
|
3872
|
+
|
|
3873
|
+
@property
|
|
3874
|
+
def JobSet(self):
|
|
3875
|
+
"""作业任务概览列表
|
|
3876
|
+
:rtype: list of JobView
|
|
3877
|
+
"""
|
|
3878
|
+
return self._JobSet
|
|
3879
|
+
|
|
3880
|
+
@JobSet.setter
|
|
3881
|
+
def JobSet(self, JobSet):
|
|
3882
|
+
self._JobSet = JobSet
|
|
3883
|
+
|
|
3884
|
+
@property
|
|
3885
|
+
def TotalCount(self):
|
|
3886
|
+
"""符合条件的作业任务数量。
|
|
3887
|
+
:rtype: int
|
|
3888
|
+
"""
|
|
3889
|
+
return self._TotalCount
|
|
3890
|
+
|
|
3891
|
+
@TotalCount.setter
|
|
3892
|
+
def TotalCount(self, TotalCount):
|
|
3893
|
+
self._TotalCount = TotalCount
|
|
3894
|
+
|
|
3895
|
+
@property
|
|
3896
|
+
def RequestId(self):
|
|
3897
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3898
|
+
:rtype: str
|
|
3899
|
+
"""
|
|
3900
|
+
return self._RequestId
|
|
3901
|
+
|
|
3902
|
+
@RequestId.setter
|
|
3903
|
+
def RequestId(self, RequestId):
|
|
3904
|
+
self._RequestId = RequestId
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
def _deserialize(self, params):
|
|
3908
|
+
if params.get("JobSet") is not None:
|
|
3909
|
+
self._JobSet = []
|
|
3910
|
+
for item in params.get("JobSet"):
|
|
3911
|
+
obj = JobView()
|
|
3912
|
+
obj._deserialize(item)
|
|
3913
|
+
self._JobSet.append(obj)
|
|
3914
|
+
self._TotalCount = params.get("TotalCount")
|
|
3915
|
+
self._RequestId = params.get("RequestId")
|
|
3916
|
+
|
|
3917
|
+
|
|
3918
|
+
class DescribeNodesRequest(AbstractModel):
|
|
3919
|
+
"""DescribeNodes请求参数结构体
|
|
3920
|
+
|
|
3921
|
+
"""
|
|
3922
|
+
|
|
3923
|
+
def __init__(self):
|
|
3924
|
+
r"""
|
|
3925
|
+
:param _ClusterId: 集群ID。
|
|
3926
|
+
:type ClusterId: str
|
|
3927
|
+
:param _Filters: <ul>
|
|
3928
|
+
<li><strong>queue-name</strong>
|
|
3929
|
+
<p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p>
|
|
3930
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
3931
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
3932
|
+
</li>
|
|
3933
|
+
<li><strong>node-role</strong>
|
|
3934
|
+
<p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p>
|
|
3935
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
3936
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
3937
|
+
</li>
|
|
3938
|
+
<li><strong>node-type</strong>
|
|
3939
|
+
<p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p>
|
|
3940
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
3941
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
3942
|
+
</li>
|
|
3943
|
+
</ul>
|
|
3944
|
+
<p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。</p>
|
|
3945
|
+
:type Filters: list of Filter
|
|
3946
|
+
:param _Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3947
|
+
:type Offset: int
|
|
3948
|
+
:param _Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3949
|
+
:type Limit: int
|
|
3950
|
+
"""
|
|
3951
|
+
self._ClusterId = None
|
|
3952
|
+
self._Filters = None
|
|
3953
|
+
self._Offset = None
|
|
3954
|
+
self._Limit = None
|
|
3955
|
+
|
|
3956
|
+
@property
|
|
3957
|
+
def ClusterId(self):
|
|
3958
|
+
"""集群ID。
|
|
3959
|
+
:rtype: str
|
|
3960
|
+
"""
|
|
3961
|
+
return self._ClusterId
|
|
3962
|
+
|
|
3963
|
+
@ClusterId.setter
|
|
3964
|
+
def ClusterId(self, ClusterId):
|
|
3965
|
+
self._ClusterId = ClusterId
|
|
3966
|
+
|
|
3967
|
+
@property
|
|
3968
|
+
def Filters(self):
|
|
3969
|
+
"""<ul>
|
|
3970
|
+
<li><strong>queue-name</strong>
|
|
3971
|
+
<p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p>
|
|
3972
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
3973
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
3974
|
+
</li>
|
|
3975
|
+
<li><strong>node-role</strong>
|
|
3976
|
+
<p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p>
|
|
3977
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
3978
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
3979
|
+
</li>
|
|
3980
|
+
<li><strong>node-type</strong>
|
|
3981
|
+
<p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p>
|
|
3982
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
3983
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
3984
|
+
</li>
|
|
3985
|
+
</ul>
|
|
3986
|
+
<p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。</p>
|
|
3987
|
+
:rtype: list of Filter
|
|
3988
|
+
"""
|
|
3989
|
+
return self._Filters
|
|
3990
|
+
|
|
3991
|
+
@Filters.setter
|
|
3992
|
+
def Filters(self, Filters):
|
|
3993
|
+
self._Filters = Filters
|
|
3994
|
+
|
|
3995
|
+
@property
|
|
3996
|
+
def Offset(self):
|
|
3997
|
+
"""偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
3998
|
+
:rtype: int
|
|
3999
|
+
"""
|
|
4000
|
+
return self._Offset
|
|
4001
|
+
|
|
4002
|
+
@Offset.setter
|
|
4003
|
+
def Offset(self, Offset):
|
|
4004
|
+
self._Offset = Offset
|
|
4005
|
+
|
|
4006
|
+
@property
|
|
4007
|
+
def Limit(self):
|
|
4008
|
+
"""返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
4009
|
+
:rtype: int
|
|
4010
|
+
"""
|
|
4011
|
+
return self._Limit
|
|
4012
|
+
|
|
4013
|
+
@Limit.setter
|
|
4014
|
+
def Limit(self, Limit):
|
|
4015
|
+
self._Limit = Limit
|
|
4016
|
+
|
|
4017
|
+
|
|
4018
|
+
def _deserialize(self, params):
|
|
4019
|
+
self._ClusterId = params.get("ClusterId")
|
|
4020
|
+
if params.get("Filters") is not None:
|
|
4021
|
+
self._Filters = []
|
|
4022
|
+
for item in params.get("Filters"):
|
|
4023
|
+
obj = Filter()
|
|
4024
|
+
obj._deserialize(item)
|
|
4025
|
+
self._Filters.append(obj)
|
|
4026
|
+
self._Offset = params.get("Offset")
|
|
4027
|
+
self._Limit = params.get("Limit")
|
|
4028
|
+
memeber_set = set(params.keys())
|
|
4029
|
+
for name, value in vars(self).items():
|
|
4030
|
+
property_name = name[1:]
|
|
4031
|
+
if property_name in memeber_set:
|
|
4032
|
+
memeber_set.remove(property_name)
|
|
4033
|
+
if len(memeber_set) > 0:
|
|
4034
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4035
|
+
|
|
4036
|
+
|
|
4037
|
+
|
|
4038
|
+
class DescribeNodesResponse(AbstractModel):
|
|
4039
|
+
"""DescribeNodes返回参数结构体
|
|
4040
|
+
|
|
4041
|
+
"""
|
|
4042
|
+
|
|
4043
|
+
def __init__(self):
|
|
4044
|
+
r"""
|
|
4045
|
+
:param _NodeSet: 节点概览信息列表。
|
|
4046
|
+
:type NodeSet: list of NodeOverview
|
|
4047
|
+
:param _TotalCount: 符合条件的节点数量。
|
|
4048
|
+
:type TotalCount: int
|
|
4049
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4050
|
+
:type RequestId: str
|
|
4051
|
+
"""
|
|
4052
|
+
self._NodeSet = None
|
|
4053
|
+
self._TotalCount = None
|
|
4054
|
+
self._RequestId = None
|
|
4055
|
+
|
|
4056
|
+
@property
|
|
4057
|
+
def NodeSet(self):
|
|
4058
|
+
"""节点概览信息列表。
|
|
4059
|
+
:rtype: list of NodeOverview
|
|
4060
|
+
"""
|
|
4061
|
+
return self._NodeSet
|
|
4062
|
+
|
|
4063
|
+
@NodeSet.setter
|
|
4064
|
+
def NodeSet(self, NodeSet):
|
|
4065
|
+
self._NodeSet = NodeSet
|
|
4066
|
+
|
|
4067
|
+
@property
|
|
4068
|
+
def TotalCount(self):
|
|
4069
|
+
"""符合条件的节点数量。
|
|
4070
|
+
:rtype: int
|
|
4071
|
+
"""
|
|
4072
|
+
return self._TotalCount
|
|
4073
|
+
|
|
4074
|
+
@TotalCount.setter
|
|
4075
|
+
def TotalCount(self, TotalCount):
|
|
4076
|
+
self._TotalCount = TotalCount
|
|
3543
4077
|
|
|
3544
4078
|
@property
|
|
3545
4079
|
def RequestId(self):
|
|
@@ -3921,6 +4455,57 @@ class DetachNodesResponse(AbstractModel):
|
|
|
3921
4455
|
self._RequestId = params.get("RequestId")
|
|
3922
4456
|
|
|
3923
4457
|
|
|
4458
|
+
class Docker(AbstractModel):
|
|
4459
|
+
"""容器配置信息。
|
|
4460
|
+
|
|
4461
|
+
"""
|
|
4462
|
+
|
|
4463
|
+
def __init__(self):
|
|
4464
|
+
r"""
|
|
4465
|
+
:param _Image: 容器镜像地址
|
|
4466
|
+
:type Image: str
|
|
4467
|
+
:param _RunArgs: 容器运行参数
|
|
4468
|
+
:type RunArgs: list of str
|
|
4469
|
+
"""
|
|
4470
|
+
self._Image = None
|
|
4471
|
+
self._RunArgs = None
|
|
4472
|
+
|
|
4473
|
+
@property
|
|
4474
|
+
def Image(self):
|
|
4475
|
+
"""容器镜像地址
|
|
4476
|
+
:rtype: str
|
|
4477
|
+
"""
|
|
4478
|
+
return self._Image
|
|
4479
|
+
|
|
4480
|
+
@Image.setter
|
|
4481
|
+
def Image(self, Image):
|
|
4482
|
+
self._Image = Image
|
|
4483
|
+
|
|
4484
|
+
@property
|
|
4485
|
+
def RunArgs(self):
|
|
4486
|
+
"""容器运行参数
|
|
4487
|
+
:rtype: list of str
|
|
4488
|
+
"""
|
|
4489
|
+
return self._RunArgs
|
|
4490
|
+
|
|
4491
|
+
@RunArgs.setter
|
|
4492
|
+
def RunArgs(self, RunArgs):
|
|
4493
|
+
self._RunArgs = RunArgs
|
|
4494
|
+
|
|
4495
|
+
|
|
4496
|
+
def _deserialize(self, params):
|
|
4497
|
+
self._Image = params.get("Image")
|
|
4498
|
+
self._RunArgs = params.get("RunArgs")
|
|
4499
|
+
memeber_set = set(params.keys())
|
|
4500
|
+
for name, value in vars(self).items():
|
|
4501
|
+
property_name = name[1:]
|
|
4502
|
+
if property_name in memeber_set:
|
|
4503
|
+
memeber_set.remove(property_name)
|
|
4504
|
+
if len(memeber_set) > 0:
|
|
4505
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4506
|
+
|
|
4507
|
+
|
|
4508
|
+
|
|
3924
4509
|
class EnhancedService(AbstractModel):
|
|
3925
4510
|
"""描述了实例的增强服务启用情况与其设置,如云安全,腾讯云可观测平台等实例 Agent
|
|
3926
4511
|
|
|
@@ -3993,6 +4578,57 @@ class EnhancedService(AbstractModel):
|
|
|
3993
4578
|
|
|
3994
4579
|
|
|
3995
4580
|
|
|
4581
|
+
class EnvVar(AbstractModel):
|
|
4582
|
+
"""用户自定义环境变量。
|
|
4583
|
+
|
|
4584
|
+
"""
|
|
4585
|
+
|
|
4586
|
+
def __init__(self):
|
|
4587
|
+
r"""
|
|
4588
|
+
:param _Name: ENV
|
|
4589
|
+
:type Name: str
|
|
4590
|
+
:param _Value: test
|
|
4591
|
+
:type Value: str
|
|
4592
|
+
"""
|
|
4593
|
+
self._Name = None
|
|
4594
|
+
self._Value = None
|
|
4595
|
+
|
|
4596
|
+
@property
|
|
4597
|
+
def Name(self):
|
|
4598
|
+
"""ENV
|
|
4599
|
+
:rtype: str
|
|
4600
|
+
"""
|
|
4601
|
+
return self._Name
|
|
4602
|
+
|
|
4603
|
+
@Name.setter
|
|
4604
|
+
def Name(self, Name):
|
|
4605
|
+
self._Name = Name
|
|
4606
|
+
|
|
4607
|
+
@property
|
|
4608
|
+
def Value(self):
|
|
4609
|
+
"""test
|
|
4610
|
+
:rtype: str
|
|
4611
|
+
"""
|
|
4612
|
+
return self._Value
|
|
4613
|
+
|
|
4614
|
+
@Value.setter
|
|
4615
|
+
def Value(self, Value):
|
|
4616
|
+
self._Value = Value
|
|
4617
|
+
|
|
4618
|
+
|
|
4619
|
+
def _deserialize(self, params):
|
|
4620
|
+
self._Name = params.get("Name")
|
|
4621
|
+
self._Value = params.get("Value")
|
|
4622
|
+
memeber_set = set(params.keys())
|
|
4623
|
+
for name, value in vars(self).items():
|
|
4624
|
+
property_name = name[1:]
|
|
4625
|
+
if property_name in memeber_set:
|
|
4626
|
+
memeber_set.remove(property_name)
|
|
4627
|
+
if len(memeber_set) > 0:
|
|
4628
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4629
|
+
|
|
4630
|
+
|
|
4631
|
+
|
|
3996
4632
|
class ExpansionNodeConfig(AbstractModel):
|
|
3997
4633
|
"""弹性扩容节点配置信息。
|
|
3998
4634
|
|
|
@@ -4686,28 +5322,309 @@ BANDWIDTH_PACKAGE:带宽包用户
|
|
|
4686
5322
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4687
5323
|
:rtype: str
|
|
4688
5324
|
"""
|
|
4689
|
-
return self._InternetChargeType
|
|
5325
|
+
return self._InternetChargeType
|
|
5326
|
+
|
|
5327
|
+
@InternetChargeType.setter
|
|
5328
|
+
def InternetChargeType(self, InternetChargeType):
|
|
5329
|
+
self._InternetChargeType = InternetChargeType
|
|
5330
|
+
|
|
5331
|
+
@property
|
|
5332
|
+
def InternetMaxBandwidthOut(self):
|
|
5333
|
+
"""公网出带宽上限,单位:Mbps。默认值:0Mbps。不同机型带宽上限范围不一致,具体限制详见购买网络带宽。
|
|
5334
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5335
|
+
:rtype: int
|
|
5336
|
+
"""
|
|
5337
|
+
return self._InternetMaxBandwidthOut
|
|
5338
|
+
|
|
5339
|
+
@InternetMaxBandwidthOut.setter
|
|
5340
|
+
def InternetMaxBandwidthOut(self, InternetMaxBandwidthOut):
|
|
5341
|
+
self._InternetMaxBandwidthOut = InternetMaxBandwidthOut
|
|
5342
|
+
|
|
5343
|
+
|
|
5344
|
+
def _deserialize(self, params):
|
|
5345
|
+
self._InternetChargeType = params.get("InternetChargeType")
|
|
5346
|
+
self._InternetMaxBandwidthOut = params.get("InternetMaxBandwidthOut")
|
|
5347
|
+
memeber_set = set(params.keys())
|
|
5348
|
+
for name, value in vars(self).items():
|
|
5349
|
+
property_name = name[1:]
|
|
5350
|
+
if property_name in memeber_set:
|
|
5351
|
+
memeber_set.remove(property_name)
|
|
5352
|
+
if len(memeber_set) > 0:
|
|
5353
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5354
|
+
|
|
5355
|
+
|
|
5356
|
+
|
|
5357
|
+
class Job(AbstractModel):
|
|
5358
|
+
"""提交Job作业信息
|
|
5359
|
+
|
|
5360
|
+
"""
|
|
5361
|
+
|
|
5362
|
+
def __init__(self):
|
|
5363
|
+
r"""
|
|
5364
|
+
:param _Tasks: 任务配置信息。
|
|
5365
|
+
:type Tasks: list of Task
|
|
5366
|
+
:param _JobName: 作业名称。
|
|
5367
|
+
:type JobName: str
|
|
5368
|
+
:param _JobDescription: 作业描述。
|
|
5369
|
+
:type JobDescription: str
|
|
5370
|
+
:param _Priority: 作业优先级,数值越大,优先级越高,数值范围1~100。
|
|
5371
|
+
:type Priority: int
|
|
5372
|
+
:param _TaskDependencies: 描述任务的依赖关系,DAG有向无环图。
|
|
5373
|
+
:type TaskDependencies: list of TaskDependence
|
|
5374
|
+
"""
|
|
5375
|
+
self._Tasks = None
|
|
5376
|
+
self._JobName = None
|
|
5377
|
+
self._JobDescription = None
|
|
5378
|
+
self._Priority = None
|
|
5379
|
+
self._TaskDependencies = None
|
|
5380
|
+
|
|
5381
|
+
@property
|
|
5382
|
+
def Tasks(self):
|
|
5383
|
+
"""任务配置信息。
|
|
5384
|
+
:rtype: list of Task
|
|
5385
|
+
"""
|
|
5386
|
+
return self._Tasks
|
|
5387
|
+
|
|
5388
|
+
@Tasks.setter
|
|
5389
|
+
def Tasks(self, Tasks):
|
|
5390
|
+
self._Tasks = Tasks
|
|
5391
|
+
|
|
5392
|
+
@property
|
|
5393
|
+
def JobName(self):
|
|
5394
|
+
"""作业名称。
|
|
5395
|
+
:rtype: str
|
|
5396
|
+
"""
|
|
5397
|
+
return self._JobName
|
|
5398
|
+
|
|
5399
|
+
@JobName.setter
|
|
5400
|
+
def JobName(self, JobName):
|
|
5401
|
+
self._JobName = JobName
|
|
5402
|
+
|
|
5403
|
+
@property
|
|
5404
|
+
def JobDescription(self):
|
|
5405
|
+
"""作业描述。
|
|
5406
|
+
:rtype: str
|
|
5407
|
+
"""
|
|
5408
|
+
return self._JobDescription
|
|
5409
|
+
|
|
5410
|
+
@JobDescription.setter
|
|
5411
|
+
def JobDescription(self, JobDescription):
|
|
5412
|
+
self._JobDescription = JobDescription
|
|
5413
|
+
|
|
5414
|
+
@property
|
|
5415
|
+
def Priority(self):
|
|
5416
|
+
"""作业优先级,数值越大,优先级越高,数值范围1~100。
|
|
5417
|
+
:rtype: int
|
|
5418
|
+
"""
|
|
5419
|
+
return self._Priority
|
|
5420
|
+
|
|
5421
|
+
@Priority.setter
|
|
5422
|
+
def Priority(self, Priority):
|
|
5423
|
+
self._Priority = Priority
|
|
5424
|
+
|
|
5425
|
+
@property
|
|
5426
|
+
def TaskDependencies(self):
|
|
5427
|
+
"""描述任务的依赖关系,DAG有向无环图。
|
|
5428
|
+
:rtype: list of TaskDependence
|
|
5429
|
+
"""
|
|
5430
|
+
return self._TaskDependencies
|
|
5431
|
+
|
|
5432
|
+
@TaskDependencies.setter
|
|
5433
|
+
def TaskDependencies(self, TaskDependencies):
|
|
5434
|
+
self._TaskDependencies = TaskDependencies
|
|
5435
|
+
|
|
5436
|
+
|
|
5437
|
+
def _deserialize(self, params):
|
|
5438
|
+
if params.get("Tasks") is not None:
|
|
5439
|
+
self._Tasks = []
|
|
5440
|
+
for item in params.get("Tasks"):
|
|
5441
|
+
obj = Task()
|
|
5442
|
+
obj._deserialize(item)
|
|
5443
|
+
self._Tasks.append(obj)
|
|
5444
|
+
self._JobName = params.get("JobName")
|
|
5445
|
+
self._JobDescription = params.get("JobDescription")
|
|
5446
|
+
self._Priority = params.get("Priority")
|
|
5447
|
+
if params.get("TaskDependencies") is not None:
|
|
5448
|
+
self._TaskDependencies = []
|
|
5449
|
+
for item in params.get("TaskDependencies"):
|
|
5450
|
+
obj = TaskDependence()
|
|
5451
|
+
obj._deserialize(item)
|
|
5452
|
+
self._TaskDependencies.append(obj)
|
|
5453
|
+
memeber_set = set(params.keys())
|
|
5454
|
+
for name, value in vars(self).items():
|
|
5455
|
+
property_name = name[1:]
|
|
5456
|
+
if property_name in memeber_set:
|
|
5457
|
+
memeber_set.remove(property_name)
|
|
5458
|
+
if len(memeber_set) > 0:
|
|
5459
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5460
|
+
|
|
5461
|
+
|
|
5462
|
+
|
|
5463
|
+
class JobView(AbstractModel):
|
|
5464
|
+
"""作业概览信息
|
|
5465
|
+
|
|
5466
|
+
"""
|
|
5467
|
+
|
|
5468
|
+
def __init__(self):
|
|
5469
|
+
r"""
|
|
5470
|
+
:param _JobId: 作业ID
|
|
5471
|
+
:type JobId: str
|
|
5472
|
+
:param _JobName: 作业名称
|
|
5473
|
+
:type JobName: str
|
|
5474
|
+
:param _JobDescription: 作业描述
|
|
5475
|
+
:type JobDescription: str
|
|
5476
|
+
:param _Priority: 作业优先级
|
|
5477
|
+
:type Priority: int
|
|
5478
|
+
:param _JobState: 作业状态,包括CREATED, QUEING, STARTNG, RUNING, TERMINATING, TERMINATED, SUCCESS,
|
|
5479
|
+
FAILED
|
|
5480
|
+
|
|
5481
|
+
:type JobState: str
|
|
5482
|
+
:param _ClusterId: 作业所属集群ID
|
|
5483
|
+
:type ClusterId: str
|
|
5484
|
+
:param _QueueName: 作业所属队列名称
|
|
5485
|
+
:type QueueName: str
|
|
5486
|
+
:param _OccupyResources: 完成作业任务所需资源
|
|
5487
|
+
:type OccupyResources: str
|
|
5488
|
+
:param _CreateTime: 作业任务创建时间
|
|
5489
|
+
:type CreateTime: str
|
|
5490
|
+
:param _EndTime: 作业任务结束时间
|
|
5491
|
+
:type EndTime: str
|
|
5492
|
+
"""
|
|
5493
|
+
self._JobId = None
|
|
5494
|
+
self._JobName = None
|
|
5495
|
+
self._JobDescription = None
|
|
5496
|
+
self._Priority = None
|
|
5497
|
+
self._JobState = None
|
|
5498
|
+
self._ClusterId = None
|
|
5499
|
+
self._QueueName = None
|
|
5500
|
+
self._OccupyResources = None
|
|
5501
|
+
self._CreateTime = None
|
|
5502
|
+
self._EndTime = None
|
|
5503
|
+
|
|
5504
|
+
@property
|
|
5505
|
+
def JobId(self):
|
|
5506
|
+
"""作业ID
|
|
5507
|
+
:rtype: str
|
|
5508
|
+
"""
|
|
5509
|
+
return self._JobId
|
|
5510
|
+
|
|
5511
|
+
@JobId.setter
|
|
5512
|
+
def JobId(self, JobId):
|
|
5513
|
+
self._JobId = JobId
|
|
5514
|
+
|
|
5515
|
+
@property
|
|
5516
|
+
def JobName(self):
|
|
5517
|
+
"""作业名称
|
|
5518
|
+
:rtype: str
|
|
5519
|
+
"""
|
|
5520
|
+
return self._JobName
|
|
5521
|
+
|
|
5522
|
+
@JobName.setter
|
|
5523
|
+
def JobName(self, JobName):
|
|
5524
|
+
self._JobName = JobName
|
|
5525
|
+
|
|
5526
|
+
@property
|
|
5527
|
+
def JobDescription(self):
|
|
5528
|
+
"""作业描述
|
|
5529
|
+
:rtype: str
|
|
5530
|
+
"""
|
|
5531
|
+
return self._JobDescription
|
|
5532
|
+
|
|
5533
|
+
@JobDescription.setter
|
|
5534
|
+
def JobDescription(self, JobDescription):
|
|
5535
|
+
self._JobDescription = JobDescription
|
|
5536
|
+
|
|
5537
|
+
@property
|
|
5538
|
+
def Priority(self):
|
|
5539
|
+
"""作业优先级
|
|
5540
|
+
:rtype: int
|
|
5541
|
+
"""
|
|
5542
|
+
return self._Priority
|
|
5543
|
+
|
|
5544
|
+
@Priority.setter
|
|
5545
|
+
def Priority(self, Priority):
|
|
5546
|
+
self._Priority = Priority
|
|
5547
|
+
|
|
5548
|
+
@property
|
|
5549
|
+
def JobState(self):
|
|
5550
|
+
"""作业状态,包括CREATED, QUEING, STARTNG, RUNING, TERMINATING, TERMINATED, SUCCESS,
|
|
5551
|
+
FAILED
|
|
5552
|
+
|
|
5553
|
+
:rtype: str
|
|
5554
|
+
"""
|
|
5555
|
+
return self._JobState
|
|
5556
|
+
|
|
5557
|
+
@JobState.setter
|
|
5558
|
+
def JobState(self, JobState):
|
|
5559
|
+
self._JobState = JobState
|
|
5560
|
+
|
|
5561
|
+
@property
|
|
5562
|
+
def ClusterId(self):
|
|
5563
|
+
"""作业所属集群ID
|
|
5564
|
+
:rtype: str
|
|
5565
|
+
"""
|
|
5566
|
+
return self._ClusterId
|
|
5567
|
+
|
|
5568
|
+
@ClusterId.setter
|
|
5569
|
+
def ClusterId(self, ClusterId):
|
|
5570
|
+
self._ClusterId = ClusterId
|
|
5571
|
+
|
|
5572
|
+
@property
|
|
5573
|
+
def QueueName(self):
|
|
5574
|
+
"""作业所属队列名称
|
|
5575
|
+
:rtype: str
|
|
5576
|
+
"""
|
|
5577
|
+
return self._QueueName
|
|
5578
|
+
|
|
5579
|
+
@QueueName.setter
|
|
5580
|
+
def QueueName(self, QueueName):
|
|
5581
|
+
self._QueueName = QueueName
|
|
5582
|
+
|
|
5583
|
+
@property
|
|
5584
|
+
def OccupyResources(self):
|
|
5585
|
+
"""完成作业任务所需资源
|
|
5586
|
+
:rtype: str
|
|
5587
|
+
"""
|
|
5588
|
+
return self._OccupyResources
|
|
5589
|
+
|
|
5590
|
+
@OccupyResources.setter
|
|
5591
|
+
def OccupyResources(self, OccupyResources):
|
|
5592
|
+
self._OccupyResources = OccupyResources
|
|
5593
|
+
|
|
5594
|
+
@property
|
|
5595
|
+
def CreateTime(self):
|
|
5596
|
+
"""作业任务创建时间
|
|
5597
|
+
:rtype: str
|
|
5598
|
+
"""
|
|
5599
|
+
return self._CreateTime
|
|
4690
5600
|
|
|
4691
|
-
@
|
|
4692
|
-
def
|
|
4693
|
-
self.
|
|
5601
|
+
@CreateTime.setter
|
|
5602
|
+
def CreateTime(self, CreateTime):
|
|
5603
|
+
self._CreateTime = CreateTime
|
|
4694
5604
|
|
|
4695
5605
|
@property
|
|
4696
|
-
def
|
|
4697
|
-
"""
|
|
4698
|
-
|
|
4699
|
-
:rtype: int
|
|
5606
|
+
def EndTime(self):
|
|
5607
|
+
"""作业任务结束时间
|
|
5608
|
+
:rtype: str
|
|
4700
5609
|
"""
|
|
4701
|
-
return self.
|
|
5610
|
+
return self._EndTime
|
|
4702
5611
|
|
|
4703
|
-
@
|
|
4704
|
-
def
|
|
4705
|
-
self.
|
|
5612
|
+
@EndTime.setter
|
|
5613
|
+
def EndTime(self, EndTime):
|
|
5614
|
+
self._EndTime = EndTime
|
|
4706
5615
|
|
|
4707
5616
|
|
|
4708
5617
|
def _deserialize(self, params):
|
|
4709
|
-
self.
|
|
4710
|
-
self.
|
|
5618
|
+
self._JobId = params.get("JobId")
|
|
5619
|
+
self._JobName = params.get("JobName")
|
|
5620
|
+
self._JobDescription = params.get("JobDescription")
|
|
5621
|
+
self._Priority = params.get("Priority")
|
|
5622
|
+
self._JobState = params.get("JobState")
|
|
5623
|
+
self._ClusterId = params.get("ClusterId")
|
|
5624
|
+
self._QueueName = params.get("QueueName")
|
|
5625
|
+
self._OccupyResources = params.get("OccupyResources")
|
|
5626
|
+
self._CreateTime = params.get("CreateTime")
|
|
5627
|
+
self._EndTime = params.get("EndTime")
|
|
4711
5628
|
memeber_set = set(params.keys())
|
|
4712
5629
|
for name, value in vars(self).items():
|
|
4713
5630
|
property_name = name[1:]
|
|
@@ -5767,6 +6684,57 @@ class NodeScript(AbstractModel):
|
|
|
5767
6684
|
|
|
5768
6685
|
|
|
5769
6686
|
|
|
6687
|
+
class OutputRedirect(AbstractModel):
|
|
6688
|
+
"""输出重定向配置
|
|
6689
|
+
|
|
6690
|
+
"""
|
|
6691
|
+
|
|
6692
|
+
def __init__(self):
|
|
6693
|
+
r"""
|
|
6694
|
+
:param _Driver: 输出driver类型
|
|
6695
|
+
:type Driver: str
|
|
6696
|
+
:param _Options: 重定向配置参数
|
|
6697
|
+
:type Options: list of str
|
|
6698
|
+
"""
|
|
6699
|
+
self._Driver = None
|
|
6700
|
+
self._Options = None
|
|
6701
|
+
|
|
6702
|
+
@property
|
|
6703
|
+
def Driver(self):
|
|
6704
|
+
"""输出driver类型
|
|
6705
|
+
:rtype: str
|
|
6706
|
+
"""
|
|
6707
|
+
return self._Driver
|
|
6708
|
+
|
|
6709
|
+
@Driver.setter
|
|
6710
|
+
def Driver(self, Driver):
|
|
6711
|
+
self._Driver = Driver
|
|
6712
|
+
|
|
6713
|
+
@property
|
|
6714
|
+
def Options(self):
|
|
6715
|
+
"""重定向配置参数
|
|
6716
|
+
:rtype: list of str
|
|
6717
|
+
"""
|
|
6718
|
+
return self._Options
|
|
6719
|
+
|
|
6720
|
+
@Options.setter
|
|
6721
|
+
def Options(self, Options):
|
|
6722
|
+
self._Options = Options
|
|
6723
|
+
|
|
6724
|
+
|
|
6725
|
+
def _deserialize(self, params):
|
|
6726
|
+
self._Driver = params.get("Driver")
|
|
6727
|
+
self._Options = params.get("Options")
|
|
6728
|
+
memeber_set = set(params.keys())
|
|
6729
|
+
for name, value in vars(self).items():
|
|
6730
|
+
property_name = name[1:]
|
|
6731
|
+
if property_name in memeber_set:
|
|
6732
|
+
memeber_set.remove(property_name)
|
|
6733
|
+
if len(memeber_set) > 0:
|
|
6734
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6735
|
+
|
|
6736
|
+
|
|
6737
|
+
|
|
5770
6738
|
class Placement(AbstractModel):
|
|
5771
6739
|
"""描述了实例的抽象位置
|
|
5772
6740
|
|
|
@@ -7480,6 +8448,72 @@ class SpaceVirtualPrivateCloud(AbstractModel):
|
|
|
7480
8448
|
|
|
7481
8449
|
|
|
7482
8450
|
|
|
8451
|
+
class StorageMount(AbstractModel):
|
|
8452
|
+
"""存储目录挂载配置。
|
|
8453
|
+
|
|
8454
|
+
"""
|
|
8455
|
+
|
|
8456
|
+
def __init__(self):
|
|
8457
|
+
r"""
|
|
8458
|
+
:param _Source: 挂载源
|
|
8459
|
+
:type Source: str
|
|
8460
|
+
:param _Target: 目标挂载位置
|
|
8461
|
+
:type Target: str
|
|
8462
|
+
:param _StorageType: 挂载的存储类型,目前仅支持:local
|
|
8463
|
+
:type StorageType: str
|
|
8464
|
+
"""
|
|
8465
|
+
self._Source = None
|
|
8466
|
+
self._Target = None
|
|
8467
|
+
self._StorageType = None
|
|
8468
|
+
|
|
8469
|
+
@property
|
|
8470
|
+
def Source(self):
|
|
8471
|
+
"""挂载源
|
|
8472
|
+
:rtype: str
|
|
8473
|
+
"""
|
|
8474
|
+
return self._Source
|
|
8475
|
+
|
|
8476
|
+
@Source.setter
|
|
8477
|
+
def Source(self, Source):
|
|
8478
|
+
self._Source = Source
|
|
8479
|
+
|
|
8480
|
+
@property
|
|
8481
|
+
def Target(self):
|
|
8482
|
+
"""目标挂载位置
|
|
8483
|
+
:rtype: str
|
|
8484
|
+
"""
|
|
8485
|
+
return self._Target
|
|
8486
|
+
|
|
8487
|
+
@Target.setter
|
|
8488
|
+
def Target(self, Target):
|
|
8489
|
+
self._Target = Target
|
|
8490
|
+
|
|
8491
|
+
@property
|
|
8492
|
+
def StorageType(self):
|
|
8493
|
+
"""挂载的存储类型,目前仅支持:local
|
|
8494
|
+
:rtype: str
|
|
8495
|
+
"""
|
|
8496
|
+
return self._StorageType
|
|
8497
|
+
|
|
8498
|
+
@StorageType.setter
|
|
8499
|
+
def StorageType(self, StorageType):
|
|
8500
|
+
self._StorageType = StorageType
|
|
8501
|
+
|
|
8502
|
+
|
|
8503
|
+
def _deserialize(self, params):
|
|
8504
|
+
self._Source = params.get("Source")
|
|
8505
|
+
self._Target = params.get("Target")
|
|
8506
|
+
self._StorageType = params.get("StorageType")
|
|
8507
|
+
memeber_set = set(params.keys())
|
|
8508
|
+
for name, value in vars(self).items():
|
|
8509
|
+
property_name = name[1:]
|
|
8510
|
+
if property_name in memeber_set:
|
|
8511
|
+
memeber_set.remove(property_name)
|
|
8512
|
+
if len(memeber_set) > 0:
|
|
8513
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8514
|
+
|
|
8515
|
+
|
|
8516
|
+
|
|
7483
8517
|
class StorageOption(AbstractModel):
|
|
7484
8518
|
"""描述集群文件系统选项
|
|
7485
8519
|
|
|
@@ -7642,6 +8676,40 @@ class StorageOptionOverview(AbstractModel):
|
|
|
7642
8676
|
|
|
7643
8677
|
|
|
7644
8678
|
|
|
8679
|
+
class SubmitJobRequest(AbstractModel):
|
|
8680
|
+
"""SubmitJob请求参数结构体
|
|
8681
|
+
|
|
8682
|
+
"""
|
|
8683
|
+
|
|
8684
|
+
|
|
8685
|
+
class SubmitJobResponse(AbstractModel):
|
|
8686
|
+
"""SubmitJob返回参数结构体
|
|
8687
|
+
|
|
8688
|
+
"""
|
|
8689
|
+
|
|
8690
|
+
def __init__(self):
|
|
8691
|
+
r"""
|
|
8692
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8693
|
+
:type RequestId: str
|
|
8694
|
+
"""
|
|
8695
|
+
self._RequestId = None
|
|
8696
|
+
|
|
8697
|
+
@property
|
|
8698
|
+
def RequestId(self):
|
|
8699
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8700
|
+
:rtype: str
|
|
8701
|
+
"""
|
|
8702
|
+
return self._RequestId
|
|
8703
|
+
|
|
8704
|
+
@RequestId.setter
|
|
8705
|
+
def RequestId(self, RequestId):
|
|
8706
|
+
self._RequestId = RequestId
|
|
8707
|
+
|
|
8708
|
+
|
|
8709
|
+
def _deserialize(self, params):
|
|
8710
|
+
self._RequestId = params.get("RequestId")
|
|
8711
|
+
|
|
8712
|
+
|
|
7645
8713
|
class SystemDisk(AbstractModel):
|
|
7646
8714
|
"""描述了操作系统所在块设备即系统盘的信息
|
|
7647
8715
|
|
|
@@ -7814,6 +8882,204 @@ class TagSpecification(AbstractModel):
|
|
|
7814
8882
|
|
|
7815
8883
|
|
|
7816
8884
|
|
|
8885
|
+
class Task(AbstractModel):
|
|
8886
|
+
"""作业任务配置信息。
|
|
8887
|
+
|
|
8888
|
+
"""
|
|
8889
|
+
|
|
8890
|
+
def __init__(self):
|
|
8891
|
+
r"""
|
|
8892
|
+
:param _Application: 作业任务的应用环境配置信息。
|
|
8893
|
+
:type Application: :class:`tencentcloud.thpc.v20230321.models.Application`
|
|
8894
|
+
:param _TaskName: 作业任务名称。
|
|
8895
|
+
:type TaskName: str
|
|
8896
|
+
:param _TaskInstanceNum: 作业任务所需的节点数/副本数。
|
|
8897
|
+
:type TaskInstanceNum: int
|
|
8898
|
+
:param _Timeout: 任务超时时间(单位:秒)。
|
|
8899
|
+
:type Timeout: int
|
|
8900
|
+
"""
|
|
8901
|
+
self._Application = None
|
|
8902
|
+
self._TaskName = None
|
|
8903
|
+
self._TaskInstanceNum = None
|
|
8904
|
+
self._Timeout = None
|
|
8905
|
+
|
|
8906
|
+
@property
|
|
8907
|
+
def Application(self):
|
|
8908
|
+
"""作业任务的应用环境配置信息。
|
|
8909
|
+
:rtype: :class:`tencentcloud.thpc.v20230321.models.Application`
|
|
8910
|
+
"""
|
|
8911
|
+
return self._Application
|
|
8912
|
+
|
|
8913
|
+
@Application.setter
|
|
8914
|
+
def Application(self, Application):
|
|
8915
|
+
self._Application = Application
|
|
8916
|
+
|
|
8917
|
+
@property
|
|
8918
|
+
def TaskName(self):
|
|
8919
|
+
"""作业任务名称。
|
|
8920
|
+
:rtype: str
|
|
8921
|
+
"""
|
|
8922
|
+
return self._TaskName
|
|
8923
|
+
|
|
8924
|
+
@TaskName.setter
|
|
8925
|
+
def TaskName(self, TaskName):
|
|
8926
|
+
self._TaskName = TaskName
|
|
8927
|
+
|
|
8928
|
+
@property
|
|
8929
|
+
def TaskInstanceNum(self):
|
|
8930
|
+
"""作业任务所需的节点数/副本数。
|
|
8931
|
+
:rtype: int
|
|
8932
|
+
"""
|
|
8933
|
+
return self._TaskInstanceNum
|
|
8934
|
+
|
|
8935
|
+
@TaskInstanceNum.setter
|
|
8936
|
+
def TaskInstanceNum(self, TaskInstanceNum):
|
|
8937
|
+
self._TaskInstanceNum = TaskInstanceNum
|
|
8938
|
+
|
|
8939
|
+
@property
|
|
8940
|
+
def Timeout(self):
|
|
8941
|
+
"""任务超时时间(单位:秒)。
|
|
8942
|
+
:rtype: int
|
|
8943
|
+
"""
|
|
8944
|
+
return self._Timeout
|
|
8945
|
+
|
|
8946
|
+
@Timeout.setter
|
|
8947
|
+
def Timeout(self, Timeout):
|
|
8948
|
+
self._Timeout = Timeout
|
|
8949
|
+
|
|
8950
|
+
|
|
8951
|
+
def _deserialize(self, params):
|
|
8952
|
+
if params.get("Application") is not None:
|
|
8953
|
+
self._Application = Application()
|
|
8954
|
+
self._Application._deserialize(params.get("Application"))
|
|
8955
|
+
self._TaskName = params.get("TaskName")
|
|
8956
|
+
self._TaskInstanceNum = params.get("TaskInstanceNum")
|
|
8957
|
+
self._Timeout = params.get("Timeout")
|
|
8958
|
+
memeber_set = set(params.keys())
|
|
8959
|
+
for name, value in vars(self).items():
|
|
8960
|
+
property_name = name[1:]
|
|
8961
|
+
if property_name in memeber_set:
|
|
8962
|
+
memeber_set.remove(property_name)
|
|
8963
|
+
if len(memeber_set) > 0:
|
|
8964
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8965
|
+
|
|
8966
|
+
|
|
8967
|
+
|
|
8968
|
+
class TaskDependence(AbstractModel):
|
|
8969
|
+
"""任务的依赖关系。
|
|
8970
|
+
|
|
8971
|
+
"""
|
|
8972
|
+
|
|
8973
|
+
def __init__(self):
|
|
8974
|
+
r"""
|
|
8975
|
+
:param _StartTask: 依赖关系的起点任务名称。
|
|
8976
|
+
:type StartTask: str
|
|
8977
|
+
:param _EndTask: 依赖关系的终点任务名称。
|
|
8978
|
+
:type EndTask: str
|
|
8979
|
+
"""
|
|
8980
|
+
self._StartTask = None
|
|
8981
|
+
self._EndTask = None
|
|
8982
|
+
|
|
8983
|
+
@property
|
|
8984
|
+
def StartTask(self):
|
|
8985
|
+
"""依赖关系的起点任务名称。
|
|
8986
|
+
:rtype: str
|
|
8987
|
+
"""
|
|
8988
|
+
return self._StartTask
|
|
8989
|
+
|
|
8990
|
+
@StartTask.setter
|
|
8991
|
+
def StartTask(self, StartTask):
|
|
8992
|
+
self._StartTask = StartTask
|
|
8993
|
+
|
|
8994
|
+
@property
|
|
8995
|
+
def EndTask(self):
|
|
8996
|
+
"""依赖关系的终点任务名称。
|
|
8997
|
+
:rtype: str
|
|
8998
|
+
"""
|
|
8999
|
+
return self._EndTask
|
|
9000
|
+
|
|
9001
|
+
@EndTask.setter
|
|
9002
|
+
def EndTask(self, EndTask):
|
|
9003
|
+
self._EndTask = EndTask
|
|
9004
|
+
|
|
9005
|
+
|
|
9006
|
+
def _deserialize(self, params):
|
|
9007
|
+
self._StartTask = params.get("StartTask")
|
|
9008
|
+
self._EndTask = params.get("EndTask")
|
|
9009
|
+
memeber_set = set(params.keys())
|
|
9010
|
+
for name, value in vars(self).items():
|
|
9011
|
+
property_name = name[1:]
|
|
9012
|
+
if property_name in memeber_set:
|
|
9013
|
+
memeber_set.remove(property_name)
|
|
9014
|
+
if len(memeber_set) > 0:
|
|
9015
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9016
|
+
|
|
9017
|
+
|
|
9018
|
+
|
|
9019
|
+
class TerminateJobRequest(AbstractModel):
|
|
9020
|
+
"""TerminateJob请求参数结构体
|
|
9021
|
+
|
|
9022
|
+
"""
|
|
9023
|
+
|
|
9024
|
+
def __init__(self):
|
|
9025
|
+
r"""
|
|
9026
|
+
:param _JobId: 作业任务ID
|
|
9027
|
+
:type JobId: str
|
|
9028
|
+
"""
|
|
9029
|
+
self._JobId = None
|
|
9030
|
+
|
|
9031
|
+
@property
|
|
9032
|
+
def JobId(self):
|
|
9033
|
+
"""作业任务ID
|
|
9034
|
+
:rtype: str
|
|
9035
|
+
"""
|
|
9036
|
+
return self._JobId
|
|
9037
|
+
|
|
9038
|
+
@JobId.setter
|
|
9039
|
+
def JobId(self, JobId):
|
|
9040
|
+
self._JobId = JobId
|
|
9041
|
+
|
|
9042
|
+
|
|
9043
|
+
def _deserialize(self, params):
|
|
9044
|
+
self._JobId = params.get("JobId")
|
|
9045
|
+
memeber_set = set(params.keys())
|
|
9046
|
+
for name, value in vars(self).items():
|
|
9047
|
+
property_name = name[1:]
|
|
9048
|
+
if property_name in memeber_set:
|
|
9049
|
+
memeber_set.remove(property_name)
|
|
9050
|
+
if len(memeber_set) > 0:
|
|
9051
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9052
|
+
|
|
9053
|
+
|
|
9054
|
+
|
|
9055
|
+
class TerminateJobResponse(AbstractModel):
|
|
9056
|
+
"""TerminateJob返回参数结构体
|
|
9057
|
+
|
|
9058
|
+
"""
|
|
9059
|
+
|
|
9060
|
+
def __init__(self):
|
|
9061
|
+
r"""
|
|
9062
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9063
|
+
:type RequestId: str
|
|
9064
|
+
"""
|
|
9065
|
+
self._RequestId = None
|
|
9066
|
+
|
|
9067
|
+
@property
|
|
9068
|
+
def RequestId(self):
|
|
9069
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9070
|
+
:rtype: str
|
|
9071
|
+
"""
|
|
9072
|
+
return self._RequestId
|
|
9073
|
+
|
|
9074
|
+
@RequestId.setter
|
|
9075
|
+
def RequestId(self, RequestId):
|
|
9076
|
+
self._RequestId = RequestId
|
|
9077
|
+
|
|
9078
|
+
|
|
9079
|
+
def _deserialize(self, params):
|
|
9080
|
+
self._RequestId = params.get("RequestId")
|
|
9081
|
+
|
|
9082
|
+
|
|
7817
9083
|
class TerminateWorkspacesRequest(AbstractModel):
|
|
7818
9084
|
"""TerminateWorkspaces请求参数结构体
|
|
7819
9085
|
|