tencentcloud-sdk-python-emr 3.0.1393__tar.gz → 3.0.1396__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/setup.py +1 -1
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud/emr/v20190103/models.py +334 -4
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud_sdk_python_emr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-emr-3.0.1396/tencentcloud_sdk_python_emr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-emr-3.0.1393/tencentcloud_sdk_python_emr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/README.rst +0 -0
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/setup.cfg +0 -0
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud/emr/__init__.py +0 -0
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud/emr/v20190103/__init__.py +0 -0
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud/emr/v20190103/emr_client.py +0 -0
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud/emr/v20190103/errorcodes.py +0 -0
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud_sdk_python_emr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud_sdk_python_emr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-emr-3.0.1393 → tencentcloud-sdk-python-emr-3.0.1396}/tencentcloud_sdk_python_emr.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-emr',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1396"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Emr SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -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
|
|
|
@@ -19001,6 +19147,8 @@ class InspectionTaskSettings(AbstractModel):
|
|
|
19001
19147
|
:type Selected: str
|
|
19002
19148
|
:param _Enable: 是否开启监控
|
|
19003
19149
|
:type Enable: str
|
|
19150
|
+
:param _SettingsJson: 事件Json模板
|
|
19151
|
+
:type SettingsJson: str
|
|
19004
19152
|
"""
|
|
19005
19153
|
self._TaskType = None
|
|
19006
19154
|
self._Group = None
|
|
@@ -19008,6 +19156,7 @@ class InspectionTaskSettings(AbstractModel):
|
|
|
19008
19156
|
self._TaskSettings = None
|
|
19009
19157
|
self._Selected = None
|
|
19010
19158
|
self._Enable = None
|
|
19159
|
+
self._SettingsJson = None
|
|
19011
19160
|
|
|
19012
19161
|
@property
|
|
19013
19162
|
def TaskType(self):
|
|
@@ -19075,6 +19224,17 @@ class InspectionTaskSettings(AbstractModel):
|
|
|
19075
19224
|
def Enable(self, Enable):
|
|
19076
19225
|
self._Enable = Enable
|
|
19077
19226
|
|
|
19227
|
+
@property
|
|
19228
|
+
def SettingsJson(self):
|
|
19229
|
+
"""事件Json模板
|
|
19230
|
+
:rtype: str
|
|
19231
|
+
"""
|
|
19232
|
+
return self._SettingsJson
|
|
19233
|
+
|
|
19234
|
+
@SettingsJson.setter
|
|
19235
|
+
def SettingsJson(self, SettingsJson):
|
|
19236
|
+
self._SettingsJson = SettingsJson
|
|
19237
|
+
|
|
19078
19238
|
|
|
19079
19239
|
def _deserialize(self, params):
|
|
19080
19240
|
self._TaskType = params.get("TaskType")
|
|
@@ -19088,6 +19248,7 @@ class InspectionTaskSettings(AbstractModel):
|
|
|
19088
19248
|
self._TaskSettings.append(obj)
|
|
19089
19249
|
self._Selected = params.get("Selected")
|
|
19090
19250
|
self._Enable = params.get("Enable")
|
|
19251
|
+
self._SettingsJson = params.get("SettingsJson")
|
|
19091
19252
|
memeber_set = set(params.keys())
|
|
19092
19253
|
for name, value in vars(self).items():
|
|
19093
19254
|
property_name = name[1:]
|
|
@@ -25521,6 +25682,8 @@ class OverviewRow(AbstractModel):
|
|
|
25521
25682
|
:type StoreFileSize: float
|
|
25522
25683
|
:param _Operation: regions,点击可跳转
|
|
25523
25684
|
:type Operation: str
|
|
25685
|
+
:param _StoreFileNum: StoreFile数量
|
|
25686
|
+
:type StoreFileNum: float
|
|
25524
25687
|
"""
|
|
25525
25688
|
self._Table = None
|
|
25526
25689
|
self._ReadRequestCount = None
|
|
@@ -25528,6 +25691,7 @@ class OverviewRow(AbstractModel):
|
|
|
25528
25691
|
self._MemstoreSize = None
|
|
25529
25692
|
self._StoreFileSize = None
|
|
25530
25693
|
self._Operation = None
|
|
25694
|
+
self._StoreFileNum = None
|
|
25531
25695
|
|
|
25532
25696
|
@property
|
|
25533
25697
|
def Table(self):
|
|
@@ -25595,6 +25759,17 @@ class OverviewRow(AbstractModel):
|
|
|
25595
25759
|
def Operation(self, Operation):
|
|
25596
25760
|
self._Operation = Operation
|
|
25597
25761
|
|
|
25762
|
+
@property
|
|
25763
|
+
def StoreFileNum(self):
|
|
25764
|
+
"""StoreFile数量
|
|
25765
|
+
:rtype: float
|
|
25766
|
+
"""
|
|
25767
|
+
return self._StoreFileNum
|
|
25768
|
+
|
|
25769
|
+
@StoreFileNum.setter
|
|
25770
|
+
def StoreFileNum(self, StoreFileNum):
|
|
25771
|
+
self._StoreFileNum = StoreFileNum
|
|
25772
|
+
|
|
25598
25773
|
|
|
25599
25774
|
def _deserialize(self, params):
|
|
25600
25775
|
self._Table = params.get("Table")
|
|
@@ -25603,6 +25778,7 @@ class OverviewRow(AbstractModel):
|
|
|
25603
25778
|
self._MemstoreSize = params.get("MemstoreSize")
|
|
25604
25779
|
self._StoreFileSize = params.get("StoreFileSize")
|
|
25605
25780
|
self._Operation = params.get("Operation")
|
|
25781
|
+
self._StoreFileNum = params.get("StoreFileNum")
|
|
25606
25782
|
memeber_set = set(params.keys())
|
|
25607
25783
|
for name, value in vars(self).items():
|
|
25608
25784
|
property_name = name[1:]
|
|
@@ -30400,6 +30576,8 @@ class ScaleOutInstanceRequest(AbstractModel):
|
|
|
30400
30576
|
:type ResourceBaseType: str
|
|
30401
30577
|
:param _ComputeResourceId: 计算资源id
|
|
30402
30578
|
:type ComputeResourceId: str
|
|
30579
|
+
:param _ComputeResourceAdvanceParams: 计算资源高级设置
|
|
30580
|
+
:type ComputeResourceAdvanceParams: :class:`tencentcloud.emr.v20190103.models.ComputeResourceAdvanceParams`
|
|
30403
30581
|
"""
|
|
30404
30582
|
self._TimeUnit = None
|
|
30405
30583
|
self._TimeSpan = None
|
|
@@ -30429,6 +30607,7 @@ class ScaleOutInstanceRequest(AbstractModel):
|
|
|
30429
30607
|
self._AutoRenew = None
|
|
30430
30608
|
self._ResourceBaseType = None
|
|
30431
30609
|
self._ComputeResourceId = None
|
|
30610
|
+
self._ComputeResourceAdvanceParams = None
|
|
30432
30611
|
|
|
30433
30612
|
@property
|
|
30434
30613
|
def TimeUnit(self):
|
|
@@ -30749,6 +30928,17 @@ class ScaleOutInstanceRequest(AbstractModel):
|
|
|
30749
30928
|
def ComputeResourceId(self, ComputeResourceId):
|
|
30750
30929
|
self._ComputeResourceId = ComputeResourceId
|
|
30751
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
|
+
|
|
30752
30942
|
|
|
30753
30943
|
def _deserialize(self, params):
|
|
30754
30944
|
self._TimeUnit = params.get("TimeUnit")
|
|
@@ -30793,6 +30983,9 @@ class ScaleOutInstanceRequest(AbstractModel):
|
|
|
30793
30983
|
self._AutoRenew = params.get("AutoRenew")
|
|
30794
30984
|
self._ResourceBaseType = params.get("ResourceBaseType")
|
|
30795
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"))
|
|
30796
30989
|
memeber_set = set(params.keys())
|
|
30797
30990
|
for name, value in vars(self).items():
|
|
30798
30991
|
property_name = name[1:]
|
|
@@ -33803,6 +33996,72 @@ class Tag(AbstractModel):
|
|
|
33803
33996
|
|
|
33804
33997
|
|
|
33805
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
|
+
|
|
33806
34065
|
class TaskSettings(AbstractModel):
|
|
33807
34066
|
"""巡检任务参数
|
|
33808
34067
|
|
|
@@ -34342,6 +34601,8 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
|
34342
34601
|
:type CompensateFlag: int
|
|
34343
34602
|
:param _GroupId: 伸缩组id
|
|
34344
34603
|
:type GroupId: int
|
|
34604
|
+
:param _GraceDownLabel: 优雅缩容业务pod标签,当node不存在上述pod或超过优雅缩容时间时,缩容节点
|
|
34605
|
+
:type GraceDownLabel: list of TkeLabel
|
|
34345
34606
|
"""
|
|
34346
34607
|
self._StrategyName = None
|
|
34347
34608
|
self._IntervalTime = None
|
|
@@ -34363,6 +34624,7 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
|
34363
34624
|
self._ServiceNodeInfo = None
|
|
34364
34625
|
self._CompensateFlag = None
|
|
34365
34626
|
self._GroupId = None
|
|
34627
|
+
self._GraceDownLabel = None
|
|
34366
34628
|
|
|
34367
34629
|
@property
|
|
34368
34630
|
def StrategyName(self):
|
|
@@ -34592,6 +34854,17 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
|
34592
34854
|
def GroupId(self, GroupId):
|
|
34593
34855
|
self._GroupId = GroupId
|
|
34594
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
|
+
|
|
34595
34868
|
|
|
34596
34869
|
def _deserialize(self, params):
|
|
34597
34870
|
self._StrategyName = params.get("StrategyName")
|
|
@@ -34621,6 +34894,63 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
|
34621
34894
|
self._ServiceNodeInfo = params.get("ServiceNodeInfo")
|
|
34622
34895
|
self._CompensateFlag = params.get("CompensateFlag")
|
|
34623
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")
|
|
34624
34954
|
memeber_set = set(params.keys())
|
|
34625
34955
|
for name, value in vars(self).items():
|
|
34626
34956
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1396
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1393
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|