tencentcloud-sdk-python-tke 3.0.1264__tar.gz → 3.0.1269__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-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/PKG-INFO +3 -3
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/setup.cfg +0 -1
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/setup.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/tke/v20180525/models.py +2 -4
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/tke/v20220501/errorcodes.py +3 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/tke/v20220501/models.py +302 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/tke/v20220501/tke_client.py +80 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +3 -3
- tencentcloud-sdk-python-tke-3.0.1269/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tke-3.0.1264/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/README.rst +0 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/tke/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/tke/v20180525/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/tke/v20180525/errorcodes.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/tke/v20180525/tke_client.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud/tke/v20220501/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tke-3.0.1264 → tencentcloud-sdk-python-tke-3.0.1269}/tencentcloud_sdk_python_tke.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-tke
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1269
|
|
4
4
|
Summary: Tencent Cloud Tke SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
7
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-tke',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1269"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Tke SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -5455,7 +5455,7 @@ class CreateClusterEndpointRequest(AbstractModel):
|
|
|
5455
5455
|
:type IsExtranet: bool
|
|
5456
5456
|
:param _Domain: 设置域名
|
|
5457
5457
|
:type Domain: str
|
|
5458
|
-
:param _SecurityGroup:
|
|
5458
|
+
:param _SecurityGroup: 使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)
|
|
5459
5459
|
:type SecurityGroup: str
|
|
5460
5460
|
:param _ExtensiveParameters: 创建lb参数,只有外网访问需要设置,是一个json格式化后的字符串:{"InternetAccessible":{"InternetChargeType":"TRAFFIC_POSTPAID_BY_HOUR","InternetMaxBandwidthOut":200},"VipIsp":"","BandwidthPackageId":""}。
|
|
5461
5461
|
各个参数意义:
|
|
@@ -5518,7 +5518,7 @@ BandwidthPackageId含义:带宽包ID,指定此参数时,网络计费方式
|
|
|
5518
5518
|
|
|
5519
5519
|
@property
|
|
5520
5520
|
def SecurityGroup(self):
|
|
5521
|
-
"""
|
|
5521
|
+
"""使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)
|
|
5522
5522
|
:rtype: str
|
|
5523
5523
|
"""
|
|
5524
5524
|
return self._SecurityGroup
|
|
@@ -33346,7 +33346,6 @@ class LoginSettings(AbstractModel):
|
|
|
33346
33346
|
def __init__(self):
|
|
33347
33347
|
r"""
|
|
33348
33348
|
:param _Password: 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。</li><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。</li>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
|
|
33349
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
33350
33349
|
:type Password: str
|
|
33351
33350
|
:param _KeyIds: 密钥ID列表。关联密钥后,就可以通过对应的私钥来访问实例;KeyId可通过接口[DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699)获取,密钥与密码不能同时指定,同时Windows操作系统不支持指定密钥。
|
|
33352
33351
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -33362,7 +33361,6 @@ class LoginSettings(AbstractModel):
|
|
|
33362
33361
|
@property
|
|
33363
33362
|
def Password(self):
|
|
33364
33363
|
"""实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。</li><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。</li>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
|
|
33365
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
33366
33364
|
:rtype: str
|
|
33367
33365
|
"""
|
|
33368
33366
|
return self._Password
|
|
@@ -4026,6 +4026,12 @@ class NativeNodeInfo(AbstractModel):
|
|
|
4026
4026
|
:param _OsImage: OS的名称
|
|
4027
4027
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4028
4028
|
:type OsImage: str
|
|
4029
|
+
:param _InstanceId: **原生节点对应的实例 ID**
|
|
4030
|
+
|
|
4031
|
+
- ins-q47ofw6 表示这个实例是一个 CVM 的实例
|
|
4032
|
+
- eks-f8mvyaep 表示这个实例是一个 CXM 的实例
|
|
4033
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4034
|
+
:type InstanceId: str
|
|
4029
4035
|
"""
|
|
4030
4036
|
self._MachineName = None
|
|
4031
4037
|
self._MachineState = None
|
|
@@ -4049,6 +4055,7 @@ class NativeNodeInfo(AbstractModel):
|
|
|
4049
4055
|
self._VpcId = None
|
|
4050
4056
|
self._SubnetId = None
|
|
4051
4057
|
self._OsImage = None
|
|
4058
|
+
self._InstanceId = None
|
|
4052
4059
|
|
|
4053
4060
|
@property
|
|
4054
4061
|
def MachineName(self):
|
|
@@ -4301,6 +4308,21 @@ class NativeNodeInfo(AbstractModel):
|
|
|
4301
4308
|
def OsImage(self, OsImage):
|
|
4302
4309
|
self._OsImage = OsImage
|
|
4303
4310
|
|
|
4311
|
+
@property
|
|
4312
|
+
def InstanceId(self):
|
|
4313
|
+
"""**原生节点对应的实例 ID**
|
|
4314
|
+
|
|
4315
|
+
- ins-q47ofw6 表示这个实例是一个 CVM 的实例
|
|
4316
|
+
- eks-f8mvyaep 表示这个实例是一个 CXM 的实例
|
|
4317
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4318
|
+
:rtype: str
|
|
4319
|
+
"""
|
|
4320
|
+
return self._InstanceId
|
|
4321
|
+
|
|
4322
|
+
@InstanceId.setter
|
|
4323
|
+
def InstanceId(self, InstanceId):
|
|
4324
|
+
self._InstanceId = InstanceId
|
|
4325
|
+
|
|
4304
4326
|
|
|
4305
4327
|
def _deserialize(self, params):
|
|
4306
4328
|
self._MachineName = params.get("MachineName")
|
|
@@ -4327,6 +4349,7 @@ class NativeNodeInfo(AbstractModel):
|
|
|
4327
4349
|
self._VpcId = params.get("VpcId")
|
|
4328
4350
|
self._SubnetId = params.get("SubnetId")
|
|
4329
4351
|
self._OsImage = params.get("OsImage")
|
|
4352
|
+
self._InstanceId = params.get("InstanceId")
|
|
4330
4353
|
memeber_set = set(params.keys())
|
|
4331
4354
|
for name, value in vars(self).items():
|
|
4332
4355
|
property_name = name[1:]
|
|
@@ -5109,6 +5132,106 @@ class NodePool(AbstractModel):
|
|
|
5109
5132
|
|
|
5110
5133
|
|
|
5111
5134
|
|
|
5135
|
+
class RebootMachinesRequest(AbstractModel):
|
|
5136
|
+
"""RebootMachines请求参数结构体
|
|
5137
|
+
|
|
5138
|
+
"""
|
|
5139
|
+
|
|
5140
|
+
def __init__(self):
|
|
5141
|
+
r"""
|
|
5142
|
+
:param _ClusterId: 集群 ID
|
|
5143
|
+
:type ClusterId: str
|
|
5144
|
+
:param _MachineNames: 节点名字列表,一次请求,传入节点数量上限为100个
|
|
5145
|
+
:type MachineNames: list of str
|
|
5146
|
+
:param _StopType: 实例的关闭模式。取值范围:
|
|
5147
|
+
soft_first:表示在正常关闭失败后进行强制关闭
|
|
5148
|
+
hard:直接强制关闭
|
|
5149
|
+
soft:仅软关机默认取值:soft。
|
|
5150
|
+
:type StopType: str
|
|
5151
|
+
"""
|
|
5152
|
+
self._ClusterId = None
|
|
5153
|
+
self._MachineNames = None
|
|
5154
|
+
self._StopType = None
|
|
5155
|
+
|
|
5156
|
+
@property
|
|
5157
|
+
def ClusterId(self):
|
|
5158
|
+
"""集群 ID
|
|
5159
|
+
:rtype: str
|
|
5160
|
+
"""
|
|
5161
|
+
return self._ClusterId
|
|
5162
|
+
|
|
5163
|
+
@ClusterId.setter
|
|
5164
|
+
def ClusterId(self, ClusterId):
|
|
5165
|
+
self._ClusterId = ClusterId
|
|
5166
|
+
|
|
5167
|
+
@property
|
|
5168
|
+
def MachineNames(self):
|
|
5169
|
+
"""节点名字列表,一次请求,传入节点数量上限为100个
|
|
5170
|
+
:rtype: list of str
|
|
5171
|
+
"""
|
|
5172
|
+
return self._MachineNames
|
|
5173
|
+
|
|
5174
|
+
@MachineNames.setter
|
|
5175
|
+
def MachineNames(self, MachineNames):
|
|
5176
|
+
self._MachineNames = MachineNames
|
|
5177
|
+
|
|
5178
|
+
@property
|
|
5179
|
+
def StopType(self):
|
|
5180
|
+
"""实例的关闭模式。取值范围:
|
|
5181
|
+
soft_first:表示在正常关闭失败后进行强制关闭
|
|
5182
|
+
hard:直接强制关闭
|
|
5183
|
+
soft:仅软关机默认取值:soft。
|
|
5184
|
+
:rtype: str
|
|
5185
|
+
"""
|
|
5186
|
+
return self._StopType
|
|
5187
|
+
|
|
5188
|
+
@StopType.setter
|
|
5189
|
+
def StopType(self, StopType):
|
|
5190
|
+
self._StopType = StopType
|
|
5191
|
+
|
|
5192
|
+
|
|
5193
|
+
def _deserialize(self, params):
|
|
5194
|
+
self._ClusterId = params.get("ClusterId")
|
|
5195
|
+
self._MachineNames = params.get("MachineNames")
|
|
5196
|
+
self._StopType = params.get("StopType")
|
|
5197
|
+
memeber_set = set(params.keys())
|
|
5198
|
+
for name, value in vars(self).items():
|
|
5199
|
+
property_name = name[1:]
|
|
5200
|
+
if property_name in memeber_set:
|
|
5201
|
+
memeber_set.remove(property_name)
|
|
5202
|
+
if len(memeber_set) > 0:
|
|
5203
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5204
|
+
|
|
5205
|
+
|
|
5206
|
+
|
|
5207
|
+
class RebootMachinesResponse(AbstractModel):
|
|
5208
|
+
"""RebootMachines返回参数结构体
|
|
5209
|
+
|
|
5210
|
+
"""
|
|
5211
|
+
|
|
5212
|
+
def __init__(self):
|
|
5213
|
+
r"""
|
|
5214
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5215
|
+
:type RequestId: str
|
|
5216
|
+
"""
|
|
5217
|
+
self._RequestId = None
|
|
5218
|
+
|
|
5219
|
+
@property
|
|
5220
|
+
def RequestId(self):
|
|
5221
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5222
|
+
:rtype: str
|
|
5223
|
+
"""
|
|
5224
|
+
return self._RequestId
|
|
5225
|
+
|
|
5226
|
+
@RequestId.setter
|
|
5227
|
+
def RequestId(self, RequestId):
|
|
5228
|
+
self._RequestId = RequestId
|
|
5229
|
+
|
|
5230
|
+
|
|
5231
|
+
def _deserialize(self, params):
|
|
5232
|
+
self._RequestId = params.get("RequestId")
|
|
5233
|
+
|
|
5234
|
+
|
|
5112
5235
|
class RegularNodeInfo(AbstractModel):
|
|
5113
5236
|
"""普通节点信息
|
|
5114
5237
|
|
|
@@ -5461,6 +5584,185 @@ class SortBy(AbstractModel):
|
|
|
5461
5584
|
|
|
5462
5585
|
|
|
5463
5586
|
|
|
5587
|
+
class StartMachinesRequest(AbstractModel):
|
|
5588
|
+
"""StartMachines请求参数结构体
|
|
5589
|
+
|
|
5590
|
+
"""
|
|
5591
|
+
|
|
5592
|
+
def __init__(self):
|
|
5593
|
+
r"""
|
|
5594
|
+
:param _ClusterId: 集群 ID
|
|
5595
|
+
:type ClusterId: str
|
|
5596
|
+
:param _MachineNames: 节点名字列表,一次请求,传入节点数量上限为100个
|
|
5597
|
+
:type MachineNames: list of str
|
|
5598
|
+
"""
|
|
5599
|
+
self._ClusterId = None
|
|
5600
|
+
self._MachineNames = None
|
|
5601
|
+
|
|
5602
|
+
@property
|
|
5603
|
+
def ClusterId(self):
|
|
5604
|
+
"""集群 ID
|
|
5605
|
+
:rtype: str
|
|
5606
|
+
"""
|
|
5607
|
+
return self._ClusterId
|
|
5608
|
+
|
|
5609
|
+
@ClusterId.setter
|
|
5610
|
+
def ClusterId(self, ClusterId):
|
|
5611
|
+
self._ClusterId = ClusterId
|
|
5612
|
+
|
|
5613
|
+
@property
|
|
5614
|
+
def MachineNames(self):
|
|
5615
|
+
"""节点名字列表,一次请求,传入节点数量上限为100个
|
|
5616
|
+
:rtype: list of str
|
|
5617
|
+
"""
|
|
5618
|
+
return self._MachineNames
|
|
5619
|
+
|
|
5620
|
+
@MachineNames.setter
|
|
5621
|
+
def MachineNames(self, MachineNames):
|
|
5622
|
+
self._MachineNames = MachineNames
|
|
5623
|
+
|
|
5624
|
+
|
|
5625
|
+
def _deserialize(self, params):
|
|
5626
|
+
self._ClusterId = params.get("ClusterId")
|
|
5627
|
+
self._MachineNames = params.get("MachineNames")
|
|
5628
|
+
memeber_set = set(params.keys())
|
|
5629
|
+
for name, value in vars(self).items():
|
|
5630
|
+
property_name = name[1:]
|
|
5631
|
+
if property_name in memeber_set:
|
|
5632
|
+
memeber_set.remove(property_name)
|
|
5633
|
+
if len(memeber_set) > 0:
|
|
5634
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5635
|
+
|
|
5636
|
+
|
|
5637
|
+
|
|
5638
|
+
class StartMachinesResponse(AbstractModel):
|
|
5639
|
+
"""StartMachines返回参数结构体
|
|
5640
|
+
|
|
5641
|
+
"""
|
|
5642
|
+
|
|
5643
|
+
def __init__(self):
|
|
5644
|
+
r"""
|
|
5645
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5646
|
+
:type RequestId: str
|
|
5647
|
+
"""
|
|
5648
|
+
self._RequestId = None
|
|
5649
|
+
|
|
5650
|
+
@property
|
|
5651
|
+
def RequestId(self):
|
|
5652
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5653
|
+
:rtype: str
|
|
5654
|
+
"""
|
|
5655
|
+
return self._RequestId
|
|
5656
|
+
|
|
5657
|
+
@RequestId.setter
|
|
5658
|
+
def RequestId(self, RequestId):
|
|
5659
|
+
self._RequestId = RequestId
|
|
5660
|
+
|
|
5661
|
+
|
|
5662
|
+
def _deserialize(self, params):
|
|
5663
|
+
self._RequestId = params.get("RequestId")
|
|
5664
|
+
|
|
5665
|
+
|
|
5666
|
+
class StopMachinesRequest(AbstractModel):
|
|
5667
|
+
"""StopMachines请求参数结构体
|
|
5668
|
+
|
|
5669
|
+
"""
|
|
5670
|
+
|
|
5671
|
+
def __init__(self):
|
|
5672
|
+
r"""
|
|
5673
|
+
:param _ClusterId: 集群 ID
|
|
5674
|
+
:type ClusterId: str
|
|
5675
|
+
:param _MachineNames: 节点名字列表,一次请求,传入节点数量上限为100个
|
|
5676
|
+
:type MachineNames: list of str
|
|
5677
|
+
:param _StopType: 实例的关闭模式。取值范围:
|
|
5678
|
+
soft_first:表示在正常关闭失败后进行强制关闭
|
|
5679
|
+
hard:直接强制关闭
|
|
5680
|
+
soft:仅软关机
|
|
5681
|
+
:type StopType: str
|
|
5682
|
+
"""
|
|
5683
|
+
self._ClusterId = None
|
|
5684
|
+
self._MachineNames = None
|
|
5685
|
+
self._StopType = None
|
|
5686
|
+
|
|
5687
|
+
@property
|
|
5688
|
+
def ClusterId(self):
|
|
5689
|
+
"""集群 ID
|
|
5690
|
+
:rtype: str
|
|
5691
|
+
"""
|
|
5692
|
+
return self._ClusterId
|
|
5693
|
+
|
|
5694
|
+
@ClusterId.setter
|
|
5695
|
+
def ClusterId(self, ClusterId):
|
|
5696
|
+
self._ClusterId = ClusterId
|
|
5697
|
+
|
|
5698
|
+
@property
|
|
5699
|
+
def MachineNames(self):
|
|
5700
|
+
"""节点名字列表,一次请求,传入节点数量上限为100个
|
|
5701
|
+
:rtype: list of str
|
|
5702
|
+
"""
|
|
5703
|
+
return self._MachineNames
|
|
5704
|
+
|
|
5705
|
+
@MachineNames.setter
|
|
5706
|
+
def MachineNames(self, MachineNames):
|
|
5707
|
+
self._MachineNames = MachineNames
|
|
5708
|
+
|
|
5709
|
+
@property
|
|
5710
|
+
def StopType(self):
|
|
5711
|
+
"""实例的关闭模式。取值范围:
|
|
5712
|
+
soft_first:表示在正常关闭失败后进行强制关闭
|
|
5713
|
+
hard:直接强制关闭
|
|
5714
|
+
soft:仅软关机
|
|
5715
|
+
:rtype: str
|
|
5716
|
+
"""
|
|
5717
|
+
return self._StopType
|
|
5718
|
+
|
|
5719
|
+
@StopType.setter
|
|
5720
|
+
def StopType(self, StopType):
|
|
5721
|
+
self._StopType = StopType
|
|
5722
|
+
|
|
5723
|
+
|
|
5724
|
+
def _deserialize(self, params):
|
|
5725
|
+
self._ClusterId = params.get("ClusterId")
|
|
5726
|
+
self._MachineNames = params.get("MachineNames")
|
|
5727
|
+
self._StopType = params.get("StopType")
|
|
5728
|
+
memeber_set = set(params.keys())
|
|
5729
|
+
for name, value in vars(self).items():
|
|
5730
|
+
property_name = name[1:]
|
|
5731
|
+
if property_name in memeber_set:
|
|
5732
|
+
memeber_set.remove(property_name)
|
|
5733
|
+
if len(memeber_set) > 0:
|
|
5734
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5735
|
+
|
|
5736
|
+
|
|
5737
|
+
|
|
5738
|
+
class StopMachinesResponse(AbstractModel):
|
|
5739
|
+
"""StopMachines返回参数结构体
|
|
5740
|
+
|
|
5741
|
+
"""
|
|
5742
|
+
|
|
5743
|
+
def __init__(self):
|
|
5744
|
+
r"""
|
|
5745
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5746
|
+
:type RequestId: str
|
|
5747
|
+
"""
|
|
5748
|
+
self._RequestId = None
|
|
5749
|
+
|
|
5750
|
+
@property
|
|
5751
|
+
def RequestId(self):
|
|
5752
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5753
|
+
:rtype: str
|
|
5754
|
+
"""
|
|
5755
|
+
return self._RequestId
|
|
5756
|
+
|
|
5757
|
+
@RequestId.setter
|
|
5758
|
+
def RequestId(self, RequestId):
|
|
5759
|
+
self._RequestId = RequestId
|
|
5760
|
+
|
|
5761
|
+
|
|
5762
|
+
def _deserialize(self, params):
|
|
5763
|
+
self._RequestId = params.get("RequestId")
|
|
5764
|
+
|
|
5765
|
+
|
|
5464
5766
|
class SuperNodeInfo(AbstractModel):
|
|
5465
5767
|
"""超级节点信息
|
|
5466
5768
|
|
|
@@ -272,6 +272,86 @@ class TkeClient(AbstractClient):
|
|
|
272
272
|
model = models.ModifyNodePoolResponse()
|
|
273
273
|
model._deserialize(response["Response"])
|
|
274
274
|
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def RebootMachines(self, request):
|
|
283
|
+
"""重启原生节点实例
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for RebootMachines.
|
|
286
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.RebootMachinesRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.RebootMachinesResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("RebootMachines", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.RebootMachinesResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def StartMachines(self, request):
|
|
306
|
+
"""本接口 (StartMachines) 用于启动一个或多个原生节点实例。
|
|
307
|
+
|
|
308
|
+
只有状态为 Stopped 的实例才可以进行此操作。
|
|
309
|
+
接口调用成功后,等待一分钟左右,实例会进入 Running 状态。
|
|
310
|
+
支持批量操作。每次请求批量实例的上限为100。
|
|
311
|
+
本接口为同步接口,启动实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的最新状态为 Running,则代表启动实例操作成功。
|
|
312
|
+
|
|
313
|
+
:param request: Request instance for StartMachines.
|
|
314
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.StartMachinesRequest`
|
|
315
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.StartMachinesResponse`
|
|
316
|
+
|
|
317
|
+
"""
|
|
318
|
+
try:
|
|
319
|
+
params = request._serialize()
|
|
320
|
+
headers = request.headers
|
|
321
|
+
body = self.call("StartMachines", params, headers=headers)
|
|
322
|
+
response = json.loads(body)
|
|
323
|
+
model = models.StartMachinesResponse()
|
|
324
|
+
model._deserialize(response["Response"])
|
|
325
|
+
return model
|
|
326
|
+
except Exception as e:
|
|
327
|
+
if isinstance(e, TencentCloudSDKException):
|
|
328
|
+
raise
|
|
329
|
+
else:
|
|
330
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
def StopMachines(self, request):
|
|
334
|
+
"""本接口 (StopMachines) 用于关闭一个或多个原生节点实例。
|
|
335
|
+
|
|
336
|
+
只有状态为 Running 的实例才可以进行此操作。
|
|
337
|
+
接口调用成功时,实例会进入 Stopping 状态;关闭实例成功时,实例会进入 Stopped 状态。
|
|
338
|
+
支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
|
339
|
+
支持批量操作。每次请求批量实例的上限为 100。
|
|
340
|
+
本接口为同步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的最新状stopped_with_charging,则代表关闭实例操作成功。
|
|
341
|
+
|
|
342
|
+
:param request: Request instance for StopMachines.
|
|
343
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.StopMachinesRequest`
|
|
344
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.StopMachinesResponse`
|
|
345
|
+
|
|
346
|
+
"""
|
|
347
|
+
try:
|
|
348
|
+
params = request._serialize()
|
|
349
|
+
headers = request.headers
|
|
350
|
+
body = self.call("StopMachines", params, headers=headers)
|
|
351
|
+
response = json.loads(body)
|
|
352
|
+
model = models.StopMachinesResponse()
|
|
353
|
+
model._deserialize(response["Response"])
|
|
354
|
+
return model
|
|
275
355
|
except Exception as e:
|
|
276
356
|
if isinstance(e, TencentCloudSDKException):
|
|
277
357
|
raise
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-tke
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1269
|
|
4
4
|
Summary: Tencent Cloud Tke SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
7
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1269
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1264
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|