tencentcloud-sdk-python 3.0.1395__py2.py3-none-any.whl → 3.0.1396__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apm/v20210622/models.py +17 -2
- tencentcloud/cbs/v20170312/cbs_client.py +3 -1
- tencentcloud/cdb/v20170320/models.py +6 -6
- tencentcloud/cfs/v20190719/models.py +2 -2
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +1 -1
- tencentcloud/dbbrain/v20210527/models.py +4 -4
- tencentcloud/emr/v20190103/models.py +304 -4
- tencentcloud/ess/v20201111/ess_client.py +56 -0
- tencentcloud/ess/v20201111/models.py +255 -0
- tencentcloud/gs/v20191118/gs_client.py +161 -0
- tencentcloud/gs/v20191118/models.py +877 -23
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +2 -2
- tencentcloud/ocr/v20181119/models.py +131 -18
- tencentcloud/ocr/v20181119/ocr_client.py +1 -1
- tencentcloud/tem/v20210701/errorcodes.py +6 -0
- tencentcloud/tem/v20210701/models.py +200 -0
- tencentcloud/tem/v20210701/tem_client.py +23 -0
- tencentcloud/teo/v20220901/models.py +1417 -117
- tencentcloud/vod/v20180717/models.py +4 -0
- tencentcloud/waf/v20180125/models.py +0 -2
- tencentcloud/wedata/v20210820/models.py +1902 -0
- tencentcloud/wedata/v20210820/wedata_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/RECORD +28 -28
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -1756,8 +1756,10 @@ class DescribeApmInstancesRequest(AbstractModel):
|
|
1756
1756
|
r"""
|
1757
1757
|
:param _Tags: Tag 列表
|
1758
1758
|
:type Tags: list of ApmTag
|
1759
|
-
:param _InstanceName:
|
1759
|
+
:param _InstanceName: 按业务系统名过滤,支持模糊检索
|
1760
1760
|
:type InstanceName: str
|
1761
|
+
:param _InstanceId: 按业务系统 ID 过滤,支持模糊检索
|
1762
|
+
:type InstanceId: str
|
1761
1763
|
:param _InstanceIds: 按业务系统 ID 过滤
|
1762
1764
|
:type InstanceIds: list of str
|
1763
1765
|
:param _DemoInstanceFlag: 是否查询官方 Demo 业务系统(0=非 Demo 业务系统,1=Demo 业务系统,默认为0)
|
@@ -1767,6 +1769,7 @@ class DescribeApmInstancesRequest(AbstractModel):
|
|
1767
1769
|
"""
|
1768
1770
|
self._Tags = None
|
1769
1771
|
self._InstanceName = None
|
1772
|
+
self._InstanceId = None
|
1770
1773
|
self._InstanceIds = None
|
1771
1774
|
self._DemoInstanceFlag = None
|
1772
1775
|
self._AllRegionsFlag = None
|
@@ -1784,7 +1787,7 @@ class DescribeApmInstancesRequest(AbstractModel):
|
|
1784
1787
|
|
1785
1788
|
@property
|
1786
1789
|
def InstanceName(self):
|
1787
|
-
"""
|
1790
|
+
"""按业务系统名过滤,支持模糊检索
|
1788
1791
|
:rtype: str
|
1789
1792
|
"""
|
1790
1793
|
return self._InstanceName
|
@@ -1793,6 +1796,17 @@ class DescribeApmInstancesRequest(AbstractModel):
|
|
1793
1796
|
def InstanceName(self, InstanceName):
|
1794
1797
|
self._InstanceName = InstanceName
|
1795
1798
|
|
1799
|
+
@property
|
1800
|
+
def InstanceId(self):
|
1801
|
+
"""按业务系统 ID 过滤,支持模糊检索
|
1802
|
+
:rtype: str
|
1803
|
+
"""
|
1804
|
+
return self._InstanceId
|
1805
|
+
|
1806
|
+
@InstanceId.setter
|
1807
|
+
def InstanceId(self, InstanceId):
|
1808
|
+
self._InstanceId = InstanceId
|
1809
|
+
|
1796
1810
|
@property
|
1797
1811
|
def InstanceIds(self):
|
1798
1812
|
"""按业务系统 ID 过滤
|
@@ -1835,6 +1849,7 @@ class DescribeApmInstancesRequest(AbstractModel):
|
|
1835
1849
|
obj._deserialize(item)
|
1836
1850
|
self._Tags.append(obj)
|
1837
1851
|
self._InstanceName = params.get("InstanceName")
|
1852
|
+
self._InstanceId = params.get("InstanceId")
|
1838
1853
|
self._InstanceIds = params.get("InstanceIds")
|
1839
1854
|
self._DemoInstanceFlag = params.get("DemoInstanceFlag")
|
1840
1855
|
self._AllRegionsFlag = params.get("AllRegionsFlag")
|
@@ -710,7 +710,9 @@ class CbsClient(AbstractClient):
|
|
710
710
|
|
711
711
|
|
712
712
|
def GetSnapOverview(self, request):
|
713
|
-
"""
|
713
|
+
"""为进一步规范化API命名,该接口决定预下线,新接口命名为:DescribeSnapshotOverview
|
714
|
+
|
715
|
+
获取快照概览信息
|
714
716
|
|
715
717
|
:param request: Request instance for GetSnapOverview.
|
716
718
|
:type request: :class:`tencentcloud.cbs.v20170312.models.GetSnapOverviewRequest`
|
@@ -7813,7 +7813,7 @@ class CreateCloneInstanceRequest(AbstractModel):
|
|
7813
7813
|
:param _SpecifiedBackupId: 如果需要克隆实例回档到指定备份集,则指定该值为备份文件的 Id。请使用 [查询数据备份文件列表](/document/api/236/15842)。
|
7814
7814
|
说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。
|
7815
7815
|
:type SpecifiedBackupId: int
|
7816
|
-
:param _UniqVpcId: 私有网络 ID
|
7816
|
+
:param _UniqVpcId: 私有网络 ID,请使用 [查询私有网络列表](/document/api/215/15778)。
|
7817
7817
|
:type UniqVpcId: str
|
7818
7818
|
:param _UniqSubnetId: 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
|
7819
7819
|
:type UniqSubnetId: str
|
@@ -7924,7 +7924,7 @@ class CreateCloneInstanceRequest(AbstractModel):
|
|
7924
7924
|
|
7925
7925
|
@property
|
7926
7926
|
def UniqVpcId(self):
|
7927
|
-
"""私有网络 ID
|
7927
|
+
"""私有网络 ID,请使用 [查询私有网络列表](/document/api/215/15778)。
|
7928
7928
|
:rtype: str
|
7929
7929
|
"""
|
7930
7930
|
return self._UniqVpcId
|
@@ -8433,7 +8433,7 @@ class CreateDBInstanceHourRequest(AbstractModel):
|
|
8433
8433
|
:param _EngineVersion: MySQL 版本,值包括:5.5、5.6、5.7和8.0,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
|
8434
8434
|
说明:创建非集群版实例时,请根据需要指定实例版本(推荐5.7或8.0),若此参数不填,则默认值为5.6;若创建的是集群版实例,则此参数仅能指定为5.7或8.0。
|
8435
8435
|
:type EngineVersion: str
|
8436
|
-
:param _UniqVpcId: 私有网络 ID
|
8436
|
+
:param _UniqVpcId: 私有网络 ID,请使用 [查询私有网络列表](/document/api/215/15778)。
|
8437
8437
|
说明:如果创建的是集群版实例,此参数为必填且为私有网络类型。
|
8438
8438
|
:type UniqVpcId: str
|
8439
8439
|
:param _UniqSubnetId: 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
|
@@ -8607,7 +8607,7 @@ class CreateDBInstanceHourRequest(AbstractModel):
|
|
8607
8607
|
|
8608
8608
|
@property
|
8609
8609
|
def UniqVpcId(self):
|
8610
|
-
"""私有网络 ID
|
8610
|
+
"""私有网络 ID,请使用 [查询私有网络列表](/document/api/215/15778)。
|
8611
8611
|
说明:如果创建的是集群版实例,此参数为必填且为私有网络类型。
|
8612
8612
|
:rtype: str
|
8613
8613
|
"""
|
@@ -9165,7 +9165,7 @@ class CreateDBInstanceRequest(AbstractModel):
|
|
9165
9165
|
:param _Zone: 可用区信息,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。
|
9166
9166
|
说明:若您创建单节点、双节点、三节点实例,此参数为必填项,请指定可用区,若不指定可用区,则系统会自动选择一个可用区(可能不是您希望部署的可用区);若您创建集群版实例,此参数不填,请通过参数 ClusterTopology 进行读写节点和只读节点的可用区配置。
|
9167
9167
|
:type Zone: str
|
9168
|
-
:param _UniqVpcId: 私有网络 ID
|
9168
|
+
:param _UniqVpcId: 私有网络 ID,请使用 [查询私有网络列表](/document/api/215/15778)。
|
9169
9169
|
说明:如果创建的是集群版实例,此参数为必填且为私有网络类型。
|
9170
9170
|
:type UniqVpcId: str
|
9171
9171
|
:param _UniqSubnetId: 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
|
@@ -9349,7 +9349,7 @@ class CreateDBInstanceRequest(AbstractModel):
|
|
9349
9349
|
|
9350
9350
|
@property
|
9351
9351
|
def UniqVpcId(self):
|
9352
|
-
"""私有网络 ID
|
9352
|
+
"""私有网络 ID,请使用 [查询私有网络列表](/document/api/215/15778)。
|
9353
9353
|
说明:如果创建的是集群版实例,此参数为必填且为私有网络类型。
|
9354
9354
|
:rtype: str
|
9355
9355
|
"""
|
@@ -3935,7 +3935,7 @@ class DescribeCfsSnapshotsRequest(AbstractModel):
|
|
3935
3935
|
<br>FileSystemId - Array of String - 是否必填:否 -(过滤条件)按文件系统ID过滤。
|
3936
3936
|
<br>FsName - Array of String - 是否必填:否 -(过滤条件)按文件系统名过滤。
|
3937
3937
|
<br>Status - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤
|
3938
|
-
(creating
|
3938
|
+
(creating:创建中 | available:运行中| deleting: 删除中 | rollbacking_new:由快照创建新文件系统中| create-failed 创建失败)
|
3939
3939
|
<br>tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键进行过滤。
|
3940
3940
|
<br>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
|
3941
3941
|
:type Filters: list of Filter
|
@@ -4004,7 +4004,7 @@ class DescribeCfsSnapshotsRequest(AbstractModel):
|
|
4004
4004
|
<br>FileSystemId - Array of String - 是否必填:否 -(过滤条件)按文件系统ID过滤。
|
4005
4005
|
<br>FsName - Array of String - 是否必填:否 -(过滤条件)按文件系统名过滤。
|
4006
4006
|
<br>Status - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤
|
4007
|
-
(creating
|
4007
|
+
(creating:创建中 | available:运行中| deleting: 删除中 | rollbacking_new:由快照创建新文件系统中| create-failed 创建失败)
|
4008
4008
|
<br>tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键进行过滤。
|
4009
4009
|
<br>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
|
4010
4010
|
:rtype: list of Filter
|
@@ -924,7 +924,7 @@ class DbbrainClient(AbstractClient):
|
|
924
924
|
|
925
925
|
|
926
926
|
def DescribeIndexRecommendAggregationSlowLogs(self, request):
|
927
|
-
"""
|
927
|
+
"""查询某张表的慢查模板概览,这个接口是对用户点击对应的推荐索引后,展示慢日志用的
|
928
928
|
|
929
929
|
:param request: Request instance for DescribeIndexRecommendAggregationSlowLogs.
|
930
930
|
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeIndexRecommendAggregationSlowLogsRequest`
|
@@ -7347,9 +7347,9 @@ class DescribeIndexRecommendAggregationSlowLogsRequest(AbstractModel):
|
|
7347
7347
|
:type InstanceId: str
|
7348
7348
|
:param _Db: 数据库名称。
|
7349
7349
|
:type Db: str
|
7350
|
-
:param _Collection:
|
7350
|
+
:param _Collection: 表名。
|
7351
7351
|
:type Collection: str
|
7352
|
-
:param _Signs:
|
7352
|
+
:param _Signs: 签名。这个值是DescribelndexRecommendInfo接口返回
|
7353
7353
|
:type Signs: list of str
|
7354
7354
|
"""
|
7355
7355
|
self._Product = None
|
@@ -7393,7 +7393,7 @@ class DescribeIndexRecommendAggregationSlowLogsRequest(AbstractModel):
|
|
7393
7393
|
|
7394
7394
|
@property
|
7395
7395
|
def Collection(self):
|
7396
|
-
"""
|
7396
|
+
"""表名。
|
7397
7397
|
:rtype: str
|
7398
7398
|
"""
|
7399
7399
|
return self._Collection
|
@@ -7404,7 +7404,7 @@ class DescribeIndexRecommendAggregationSlowLogsRequest(AbstractModel):
|
|
7404
7404
|
|
7405
7405
|
@property
|
7406
7406
|
def Signs(self):
|
7407
|
-
"""
|
7407
|
+
"""签名。这个值是DescribelndexRecommendInfo接口返回
|
7408
7408
|
:rtype: list of str
|
7409
7409
|
"""
|
7410
7410
|
return self._Signs
|
@@ -1011,6 +1011,44 @@ class AttachDisksResponse(AbstractModel):
|
|
1011
1011
|
self._RequestId = params.get("RequestId")
|
1012
1012
|
|
1013
1013
|
|
1014
|
+
class AutoScaleGroupAdvanceAttrs(AbstractModel):
|
1015
|
+
"""自动伸缩组高级设置
|
1016
|
+
|
1017
|
+
"""
|
1018
|
+
|
1019
|
+
def __init__(self):
|
1020
|
+
r"""
|
1021
|
+
:param _ComputeResourceAdvanceParams: 计算资源高级设置
|
1022
|
+
:type ComputeResourceAdvanceParams: :class:`tencentcloud.emr.v20190103.models.ComputeResourceAdvanceParams`
|
1023
|
+
"""
|
1024
|
+
self._ComputeResourceAdvanceParams = None
|
1025
|
+
|
1026
|
+
@property
|
1027
|
+
def ComputeResourceAdvanceParams(self):
|
1028
|
+
"""计算资源高级设置
|
1029
|
+
:rtype: :class:`tencentcloud.emr.v20190103.models.ComputeResourceAdvanceParams`
|
1030
|
+
"""
|
1031
|
+
return self._ComputeResourceAdvanceParams
|
1032
|
+
|
1033
|
+
@ComputeResourceAdvanceParams.setter
|
1034
|
+
def ComputeResourceAdvanceParams(self, ComputeResourceAdvanceParams):
|
1035
|
+
self._ComputeResourceAdvanceParams = ComputeResourceAdvanceParams
|
1036
|
+
|
1037
|
+
|
1038
|
+
def _deserialize(self, params):
|
1039
|
+
if params.get("ComputeResourceAdvanceParams") is not None:
|
1040
|
+
self._ComputeResourceAdvanceParams = ComputeResourceAdvanceParams()
|
1041
|
+
self._ComputeResourceAdvanceParams._deserialize(params.get("ComputeResourceAdvanceParams"))
|
1042
|
+
memeber_set = set(params.keys())
|
1043
|
+
for name, value in vars(self).items():
|
1044
|
+
property_name = name[1:]
|
1045
|
+
if property_name in memeber_set:
|
1046
|
+
memeber_set.remove(property_name)
|
1047
|
+
if len(memeber_set) > 0:
|
1048
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1014
1052
|
class AutoScaleRecord(AbstractModel):
|
1015
1053
|
"""弹性扩缩容记录
|
1016
1054
|
|
@@ -1274,7 +1312,7 @@ class AutoScaleResourceConf(AbstractModel):
|
|
1274
1312
|
:type ScaleUpperBound: int
|
1275
1313
|
:param _StrategyType: 扩容规则类型,1为按负载指标扩容规则,2为按时间扩容规则
|
1276
1314
|
:type StrategyType: int
|
1277
|
-
:param _NextTimeCanScale:
|
1315
|
+
:param _NextTimeCanScale: 下次可扩容时间。
|
1278
1316
|
:type NextTimeCanScale: int
|
1279
1317
|
:param _GraceDownFlag: 优雅缩容开关
|
1280
1318
|
:type GraceDownFlag: bool
|
@@ -1284,7 +1322,7 @@ class AutoScaleResourceConf(AbstractModel):
|
|
1284
1322
|
:type PayMode: str
|
1285
1323
|
:param _PostPayPercentMin: 竞价实例优先的场景下,按量计费资源数量的最低百分比,整数
|
1286
1324
|
:type PostPayPercentMin: int
|
1287
|
-
:param _ChangeToPod: 预设资源类型为HOST时,支持勾选“资源不足时切换POD
|
1325
|
+
:param _ChangeToPod: 预设资源类型为HOST时,支持勾选“资源不足时切换POD”;支持取消勾选;0表示默认不勾选(0),1表示勾选
|
1288
1326
|
:type ChangeToPod: int
|
1289
1327
|
:param _GroupName: 伸缩组名
|
1290
1328
|
:type GroupName: str
|
@@ -1296,6 +1334,8 @@ class AutoScaleResourceConf(AbstractModel):
|
|
1296
1334
|
:type Parallel: int
|
1297
1335
|
:param _EnableMNode: 是否支持MNode
|
1298
1336
|
:type EnableMNode: int
|
1337
|
+
:param _ExtraAdvanceAttrs: 伸缩组更多设置
|
1338
|
+
:type ExtraAdvanceAttrs: :class:`tencentcloud.emr.v20190103.models.AutoScaleGroupAdvanceAttrs`
|
1299
1339
|
"""
|
1300
1340
|
self._Id = None
|
1301
1341
|
self._ClusterId = None
|
@@ -1313,6 +1353,7 @@ class AutoScaleResourceConf(AbstractModel):
|
|
1313
1353
|
self._GroupStatus = None
|
1314
1354
|
self._Parallel = None
|
1315
1355
|
self._EnableMNode = None
|
1356
|
+
self._ExtraAdvanceAttrs = None
|
1316
1357
|
|
1317
1358
|
@property
|
1318
1359
|
def Id(self):
|
@@ -1371,7 +1412,7 @@ class AutoScaleResourceConf(AbstractModel):
|
|
1371
1412
|
|
1372
1413
|
@property
|
1373
1414
|
def NextTimeCanScale(self):
|
1374
|
-
"""
|
1415
|
+
"""下次可扩容时间。
|
1375
1416
|
:rtype: int
|
1376
1417
|
"""
|
1377
1418
|
return self._NextTimeCanScale
|
@@ -1426,7 +1467,7 @@ class AutoScaleResourceConf(AbstractModel):
|
|
1426
1467
|
|
1427
1468
|
@property
|
1428
1469
|
def ChangeToPod(self):
|
1429
|
-
"""预设资源类型为HOST时,支持勾选“资源不足时切换POD
|
1470
|
+
"""预设资源类型为HOST时,支持勾选“资源不足时切换POD”;支持取消勾选;0表示默认不勾选(0),1表示勾选
|
1430
1471
|
:rtype: int
|
1431
1472
|
"""
|
1432
1473
|
return self._ChangeToPod
|
@@ -1490,6 +1531,17 @@ class AutoScaleResourceConf(AbstractModel):
|
|
1490
1531
|
def EnableMNode(self, EnableMNode):
|
1491
1532
|
self._EnableMNode = EnableMNode
|
1492
1533
|
|
1534
|
+
@property
|
1535
|
+
def ExtraAdvanceAttrs(self):
|
1536
|
+
"""伸缩组更多设置
|
1537
|
+
:rtype: :class:`tencentcloud.emr.v20190103.models.AutoScaleGroupAdvanceAttrs`
|
1538
|
+
"""
|
1539
|
+
return self._ExtraAdvanceAttrs
|
1540
|
+
|
1541
|
+
@ExtraAdvanceAttrs.setter
|
1542
|
+
def ExtraAdvanceAttrs(self, ExtraAdvanceAttrs):
|
1543
|
+
self._ExtraAdvanceAttrs = ExtraAdvanceAttrs
|
1544
|
+
|
1493
1545
|
|
1494
1546
|
def _deserialize(self, params):
|
1495
1547
|
self._Id = params.get("Id")
|
@@ -1508,6 +1560,9 @@ class AutoScaleResourceConf(AbstractModel):
|
|
1508
1560
|
self._GroupStatus = params.get("GroupStatus")
|
1509
1561
|
self._Parallel = params.get("Parallel")
|
1510
1562
|
self._EnableMNode = params.get("EnableMNode")
|
1563
|
+
if params.get("ExtraAdvanceAttrs") is not None:
|
1564
|
+
self._ExtraAdvanceAttrs = AutoScaleGroupAdvanceAttrs()
|
1565
|
+
self._ExtraAdvanceAttrs._deserialize(params.get("ExtraAdvanceAttrs"))
|
1511
1566
|
memeber_set = set(params.keys())
|
1512
1567
|
for name, value in vars(self).items():
|
1513
1568
|
property_name = name[1:]
|
@@ -3783,6 +3838,97 @@ class ComponentBasicRestartInfo(AbstractModel):
|
|
3783
3838
|
|
3784
3839
|
|
3785
3840
|
|
3841
|
+
class ComputeResourceAdvanceParams(AbstractModel):
|
3842
|
+
"""计算资源高级设置
|
3843
|
+
|
3844
|
+
"""
|
3845
|
+
|
3846
|
+
def __init__(self):
|
3847
|
+
r"""
|
3848
|
+
:param _Labels: 节点Label数组
|
3849
|
+
:type Labels: list of TkeLabel
|
3850
|
+
:param _Taints: 节点污点
|
3851
|
+
:type Taints: list of Taint
|
3852
|
+
:param _PreStartUserScript: base64 编码的用户脚本,在初始化节点之前执行
|
3853
|
+
:type PreStartUserScript: str
|
3854
|
+
:param _UserScript: base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看
|
3855
|
+
:type UserScript: str
|
3856
|
+
"""
|
3857
|
+
self._Labels = None
|
3858
|
+
self._Taints = None
|
3859
|
+
self._PreStartUserScript = None
|
3860
|
+
self._UserScript = None
|
3861
|
+
|
3862
|
+
@property
|
3863
|
+
def Labels(self):
|
3864
|
+
"""节点Label数组
|
3865
|
+
:rtype: list of TkeLabel
|
3866
|
+
"""
|
3867
|
+
return self._Labels
|
3868
|
+
|
3869
|
+
@Labels.setter
|
3870
|
+
def Labels(self, Labels):
|
3871
|
+
self._Labels = Labels
|
3872
|
+
|
3873
|
+
@property
|
3874
|
+
def Taints(self):
|
3875
|
+
"""节点污点
|
3876
|
+
:rtype: list of Taint
|
3877
|
+
"""
|
3878
|
+
return self._Taints
|
3879
|
+
|
3880
|
+
@Taints.setter
|
3881
|
+
def Taints(self, Taints):
|
3882
|
+
self._Taints = Taints
|
3883
|
+
|
3884
|
+
@property
|
3885
|
+
def PreStartUserScript(self):
|
3886
|
+
"""base64 编码的用户脚本,在初始化节点之前执行
|
3887
|
+
:rtype: str
|
3888
|
+
"""
|
3889
|
+
return self._PreStartUserScript
|
3890
|
+
|
3891
|
+
@PreStartUserScript.setter
|
3892
|
+
def PreStartUserScript(self, PreStartUserScript):
|
3893
|
+
self._PreStartUserScript = PreStartUserScript
|
3894
|
+
|
3895
|
+
@property
|
3896
|
+
def UserScript(self):
|
3897
|
+
"""base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看
|
3898
|
+
:rtype: str
|
3899
|
+
"""
|
3900
|
+
return self._UserScript
|
3901
|
+
|
3902
|
+
@UserScript.setter
|
3903
|
+
def UserScript(self, UserScript):
|
3904
|
+
self._UserScript = UserScript
|
3905
|
+
|
3906
|
+
|
3907
|
+
def _deserialize(self, params):
|
3908
|
+
if params.get("Labels") is not None:
|
3909
|
+
self._Labels = []
|
3910
|
+
for item in params.get("Labels"):
|
3911
|
+
obj = TkeLabel()
|
3912
|
+
obj._deserialize(item)
|
3913
|
+
self._Labels.append(obj)
|
3914
|
+
if params.get("Taints") is not None:
|
3915
|
+
self._Taints = []
|
3916
|
+
for item in params.get("Taints"):
|
3917
|
+
obj = Taint()
|
3918
|
+
obj._deserialize(item)
|
3919
|
+
self._Taints.append(obj)
|
3920
|
+
self._PreStartUserScript = params.get("PreStartUserScript")
|
3921
|
+
self._UserScript = params.get("UserScript")
|
3922
|
+
memeber_set = set(params.keys())
|
3923
|
+
for name, value in vars(self).items():
|
3924
|
+
property_name = name[1:]
|
3925
|
+
if property_name in memeber_set:
|
3926
|
+
memeber_set.remove(property_name)
|
3927
|
+
if len(memeber_set) > 0:
|
3928
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3929
|
+
|
3930
|
+
|
3931
|
+
|
3786
3932
|
class ConfigModifyInfoV2(AbstractModel):
|
3787
3933
|
"""资源调度 - 队列修改信息
|
3788
3934
|
|
@@ -30430,6 +30576,8 @@ class ScaleOutInstanceRequest(AbstractModel):
|
|
30430
30576
|
:type ResourceBaseType: str
|
30431
30577
|
:param _ComputeResourceId: 计算资源id
|
30432
30578
|
:type ComputeResourceId: str
|
30579
|
+
:param _ComputeResourceAdvanceParams: 计算资源高级设置
|
30580
|
+
:type ComputeResourceAdvanceParams: :class:`tencentcloud.emr.v20190103.models.ComputeResourceAdvanceParams`
|
30433
30581
|
"""
|
30434
30582
|
self._TimeUnit = None
|
30435
30583
|
self._TimeSpan = None
|
@@ -30459,6 +30607,7 @@ class ScaleOutInstanceRequest(AbstractModel):
|
|
30459
30607
|
self._AutoRenew = None
|
30460
30608
|
self._ResourceBaseType = None
|
30461
30609
|
self._ComputeResourceId = None
|
30610
|
+
self._ComputeResourceAdvanceParams = None
|
30462
30611
|
|
30463
30612
|
@property
|
30464
30613
|
def TimeUnit(self):
|
@@ -30779,6 +30928,17 @@ class ScaleOutInstanceRequest(AbstractModel):
|
|
30779
30928
|
def ComputeResourceId(self, ComputeResourceId):
|
30780
30929
|
self._ComputeResourceId = ComputeResourceId
|
30781
30930
|
|
30931
|
+
@property
|
30932
|
+
def ComputeResourceAdvanceParams(self):
|
30933
|
+
"""计算资源高级设置
|
30934
|
+
:rtype: :class:`tencentcloud.emr.v20190103.models.ComputeResourceAdvanceParams`
|
30935
|
+
"""
|
30936
|
+
return self._ComputeResourceAdvanceParams
|
30937
|
+
|
30938
|
+
@ComputeResourceAdvanceParams.setter
|
30939
|
+
def ComputeResourceAdvanceParams(self, ComputeResourceAdvanceParams):
|
30940
|
+
self._ComputeResourceAdvanceParams = ComputeResourceAdvanceParams
|
30941
|
+
|
30782
30942
|
|
30783
30943
|
def _deserialize(self, params):
|
30784
30944
|
self._TimeUnit = params.get("TimeUnit")
|
@@ -30823,6 +30983,9 @@ class ScaleOutInstanceRequest(AbstractModel):
|
|
30823
30983
|
self._AutoRenew = params.get("AutoRenew")
|
30824
30984
|
self._ResourceBaseType = params.get("ResourceBaseType")
|
30825
30985
|
self._ComputeResourceId = params.get("ComputeResourceId")
|
30986
|
+
if params.get("ComputeResourceAdvanceParams") is not None:
|
30987
|
+
self._ComputeResourceAdvanceParams = ComputeResourceAdvanceParams()
|
30988
|
+
self._ComputeResourceAdvanceParams._deserialize(params.get("ComputeResourceAdvanceParams"))
|
30826
30989
|
memeber_set = set(params.keys())
|
30827
30990
|
for name, value in vars(self).items():
|
30828
30991
|
property_name = name[1:]
|
@@ -33833,6 +33996,72 @@ class Tag(AbstractModel):
|
|
33833
33996
|
|
33834
33997
|
|
33835
33998
|
|
33999
|
+
class Taint(AbstractModel):
|
34000
|
+
"""Kubernetes Taint
|
34001
|
+
|
34002
|
+
"""
|
34003
|
+
|
34004
|
+
def __init__(self):
|
34005
|
+
r"""
|
34006
|
+
:param _Key: Taint Key
|
34007
|
+
:type Key: str
|
34008
|
+
:param _Value: Taint Value
|
34009
|
+
:type Value: str
|
34010
|
+
:param _Effect: Taint Effect
|
34011
|
+
:type Effect: str
|
34012
|
+
"""
|
34013
|
+
self._Key = None
|
34014
|
+
self._Value = None
|
34015
|
+
self._Effect = None
|
34016
|
+
|
34017
|
+
@property
|
34018
|
+
def Key(self):
|
34019
|
+
"""Taint Key
|
34020
|
+
:rtype: str
|
34021
|
+
"""
|
34022
|
+
return self._Key
|
34023
|
+
|
34024
|
+
@Key.setter
|
34025
|
+
def Key(self, Key):
|
34026
|
+
self._Key = Key
|
34027
|
+
|
34028
|
+
@property
|
34029
|
+
def Value(self):
|
34030
|
+
"""Taint Value
|
34031
|
+
:rtype: str
|
34032
|
+
"""
|
34033
|
+
return self._Value
|
34034
|
+
|
34035
|
+
@Value.setter
|
34036
|
+
def Value(self, Value):
|
34037
|
+
self._Value = Value
|
34038
|
+
|
34039
|
+
@property
|
34040
|
+
def Effect(self):
|
34041
|
+
"""Taint Effect
|
34042
|
+
:rtype: str
|
34043
|
+
"""
|
34044
|
+
return self._Effect
|
34045
|
+
|
34046
|
+
@Effect.setter
|
34047
|
+
def Effect(self, Effect):
|
34048
|
+
self._Effect = Effect
|
34049
|
+
|
34050
|
+
|
34051
|
+
def _deserialize(self, params):
|
34052
|
+
self._Key = params.get("Key")
|
34053
|
+
self._Value = params.get("Value")
|
34054
|
+
self._Effect = params.get("Effect")
|
34055
|
+
memeber_set = set(params.keys())
|
34056
|
+
for name, value in vars(self).items():
|
34057
|
+
property_name = name[1:]
|
34058
|
+
if property_name in memeber_set:
|
34059
|
+
memeber_set.remove(property_name)
|
34060
|
+
if len(memeber_set) > 0:
|
34061
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
34062
|
+
|
34063
|
+
|
34064
|
+
|
33836
34065
|
class TaskSettings(AbstractModel):
|
33837
34066
|
"""巡检任务参数
|
33838
34067
|
|
@@ -34372,6 +34601,8 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
34372
34601
|
:type CompensateFlag: int
|
34373
34602
|
:param _GroupId: 伸缩组id
|
34374
34603
|
:type GroupId: int
|
34604
|
+
:param _GraceDownLabel: 优雅缩容业务pod标签,当node不存在上述pod或超过优雅缩容时间时,缩容节点
|
34605
|
+
:type GraceDownLabel: list of TkeLabel
|
34375
34606
|
"""
|
34376
34607
|
self._StrategyName = None
|
34377
34608
|
self._IntervalTime = None
|
@@ -34393,6 +34624,7 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
34393
34624
|
self._ServiceNodeInfo = None
|
34394
34625
|
self._CompensateFlag = None
|
34395
34626
|
self._GroupId = None
|
34627
|
+
self._GraceDownLabel = None
|
34396
34628
|
|
34397
34629
|
@property
|
34398
34630
|
def StrategyName(self):
|
@@ -34622,6 +34854,17 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
34622
34854
|
def GroupId(self, GroupId):
|
34623
34855
|
self._GroupId = GroupId
|
34624
34856
|
|
34857
|
+
@property
|
34858
|
+
def GraceDownLabel(self):
|
34859
|
+
"""优雅缩容业务pod标签,当node不存在上述pod或超过优雅缩容时间时,缩容节点
|
34860
|
+
:rtype: list of TkeLabel
|
34861
|
+
"""
|
34862
|
+
return self._GraceDownLabel
|
34863
|
+
|
34864
|
+
@GraceDownLabel.setter
|
34865
|
+
def GraceDownLabel(self, GraceDownLabel):
|
34866
|
+
self._GraceDownLabel = GraceDownLabel
|
34867
|
+
|
34625
34868
|
|
34626
34869
|
def _deserialize(self, params):
|
34627
34870
|
self._StrategyName = params.get("StrategyName")
|
@@ -34651,6 +34894,63 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
34651
34894
|
self._ServiceNodeInfo = params.get("ServiceNodeInfo")
|
34652
34895
|
self._CompensateFlag = params.get("CompensateFlag")
|
34653
34896
|
self._GroupId = params.get("GroupId")
|
34897
|
+
if params.get("GraceDownLabel") is not None:
|
34898
|
+
self._GraceDownLabel = []
|
34899
|
+
for item in params.get("GraceDownLabel"):
|
34900
|
+
obj = TkeLabel()
|
34901
|
+
obj._deserialize(item)
|
34902
|
+
self._GraceDownLabel.append(obj)
|
34903
|
+
memeber_set = set(params.keys())
|
34904
|
+
for name, value in vars(self).items():
|
34905
|
+
property_name = name[1:]
|
34906
|
+
if property_name in memeber_set:
|
34907
|
+
memeber_set.remove(property_name)
|
34908
|
+
if len(memeber_set) > 0:
|
34909
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
34910
|
+
|
34911
|
+
|
34912
|
+
|
34913
|
+
class TkeLabel(AbstractModel):
|
34914
|
+
"""Kubernetes Label
|
34915
|
+
|
34916
|
+
"""
|
34917
|
+
|
34918
|
+
def __init__(self):
|
34919
|
+
r"""
|
34920
|
+
:param _Name: Label Name
|
34921
|
+
:type Name: str
|
34922
|
+
:param _Value: Label Value
|
34923
|
+
:type Value: str
|
34924
|
+
"""
|
34925
|
+
self._Name = None
|
34926
|
+
self._Value = None
|
34927
|
+
|
34928
|
+
@property
|
34929
|
+
def Name(self):
|
34930
|
+
"""Label Name
|
34931
|
+
:rtype: str
|
34932
|
+
"""
|
34933
|
+
return self._Name
|
34934
|
+
|
34935
|
+
@Name.setter
|
34936
|
+
def Name(self, Name):
|
34937
|
+
self._Name = Name
|
34938
|
+
|
34939
|
+
@property
|
34940
|
+
def Value(self):
|
34941
|
+
"""Label Value
|
34942
|
+
:rtype: str
|
34943
|
+
"""
|
34944
|
+
return self._Value
|
34945
|
+
|
34946
|
+
@Value.setter
|
34947
|
+
def Value(self, Value):
|
34948
|
+
self._Value = Value
|
34949
|
+
|
34950
|
+
|
34951
|
+
def _deserialize(self, params):
|
34952
|
+
self._Name = params.get("Name")
|
34953
|
+
self._Value = params.get("Value")
|
34654
34954
|
memeber_set = set(params.keys())
|
34655
34955
|
for name, value in vars(self).items():
|
34656
34956
|
property_name = name[1:]
|