tencentcloud-sdk-python-tke 3.0.1173__tar.gz → 3.0.1207__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.1173 → tencentcloud-sdk-python-tke-3.0.1207}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/setup.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/tke/v20180525/models.py +365 -4
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/tke/v20180525/tke_client.py +30 -7
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/tke/v20220501/models.py +12 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-tke-3.0.1207/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tke-3.0.1173/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/README.rst +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/setup.cfg +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/tke/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/tke/v20180525/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/tke/v20180525/errorcodes.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/tke/v20220501/__init__.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/tke/v20220501/errorcodes.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud/tke/v20220501/tke_client.py +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tke-3.0.1173 → tencentcloud-sdk-python-tke-3.0.1207}/tencentcloud_sdk_python_tke.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-tke',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1207"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Tke SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -5085,7 +5085,7 @@ class CreateClusterReleaseRequest(AbstractModel):
|
|
|
5085
5085
|
:type Chart: str
|
|
5086
5086
|
:param _Values: 自定义参数
|
|
5087
5087
|
:type Values: :class:`tencentcloud.tke.v20180525.models.ReleaseValues`
|
|
5088
|
-
:param _ChartFrom: 制品来源,范围:tke-market 或 other
|
|
5088
|
+
:param _ChartFrom: 制品来源,范围:tke-market 或 other默认值:tke-market。
|
|
5089
5089
|
:type ChartFrom: str
|
|
5090
5090
|
:param _ChartVersion: 制品版本
|
|
5091
5091
|
:type ChartVersion: str
|
|
@@ -5095,7 +5095,7 @@ class CreateClusterReleaseRequest(AbstractModel):
|
|
|
5095
5095
|
:type Username: str
|
|
5096
5096
|
:param _Password: 制品访问密码
|
|
5097
5097
|
:type Password: str
|
|
5098
|
-
:param _ChartNamespace:
|
|
5098
|
+
:param _ChartNamespace: 制品命名空间,ChartFrom为tke-market时ChartNamespace不为空,值为DescribeProducts接口反馈的Namespace
|
|
5099
5099
|
:type ChartNamespace: str
|
|
5100
5100
|
:param _ClusterType: 集群类型,支持传 tke, eks, tkeedge, external(注册集群)
|
|
5101
5101
|
:type ClusterType: str
|
|
@@ -7511,6 +7511,8 @@ class CreatePrometheusConfigRequest(AbstractModel):
|
|
|
7511
7511
|
:type PodMonitors: list of PrometheusConfigItem
|
|
7512
7512
|
:param _RawJobs: prometheus原生Job配置
|
|
7513
7513
|
:type RawJobs: list of PrometheusConfigItem
|
|
7514
|
+
:param _Probes: Probe 配置
|
|
7515
|
+
:type Probes: list of PrometheusConfigItem
|
|
7514
7516
|
"""
|
|
7515
7517
|
self._InstanceId = None
|
|
7516
7518
|
self._ClusterType = None
|
|
@@ -7518,6 +7520,7 @@ class CreatePrometheusConfigRequest(AbstractModel):
|
|
|
7518
7520
|
self._ServiceMonitors = None
|
|
7519
7521
|
self._PodMonitors = None
|
|
7520
7522
|
self._RawJobs = None
|
|
7523
|
+
self._Probes = None
|
|
7521
7524
|
|
|
7522
7525
|
@property
|
|
7523
7526
|
def InstanceId(self):
|
|
@@ -7567,6 +7570,14 @@ class CreatePrometheusConfigRequest(AbstractModel):
|
|
|
7567
7570
|
def RawJobs(self, RawJobs):
|
|
7568
7571
|
self._RawJobs = RawJobs
|
|
7569
7572
|
|
|
7573
|
+
@property
|
|
7574
|
+
def Probes(self):
|
|
7575
|
+
return self._Probes
|
|
7576
|
+
|
|
7577
|
+
@Probes.setter
|
|
7578
|
+
def Probes(self, Probes):
|
|
7579
|
+
self._Probes = Probes
|
|
7580
|
+
|
|
7570
7581
|
|
|
7571
7582
|
def _deserialize(self, params):
|
|
7572
7583
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -7590,6 +7601,12 @@ class CreatePrometheusConfigRequest(AbstractModel):
|
|
|
7590
7601
|
obj = PrometheusConfigItem()
|
|
7591
7602
|
obj._deserialize(item)
|
|
7592
7603
|
self._RawJobs.append(obj)
|
|
7604
|
+
if params.get("Probes") is not None:
|
|
7605
|
+
self._Probes = []
|
|
7606
|
+
for item in params.get("Probes"):
|
|
7607
|
+
obj = PrometheusConfigItem()
|
|
7608
|
+
obj._deserialize(item)
|
|
7609
|
+
self._Probes.append(obj)
|
|
7593
7610
|
memeber_set = set(params.keys())
|
|
7594
7611
|
for name, value in vars(self).items():
|
|
7595
7612
|
property_name = name[1:]
|
|
@@ -10121,9 +10138,12 @@ class DeletePrometheusClusterAgentRequest(AbstractModel):
|
|
|
10121
10138
|
:type Agents: list of PrometheusAgentInfo
|
|
10122
10139
|
:param _InstanceId: 实例id
|
|
10123
10140
|
:type InstanceId: str
|
|
10141
|
+
:param _Force: 在7天可回收期间,强制解除绑定
|
|
10142
|
+
:type Force: bool
|
|
10124
10143
|
"""
|
|
10125
10144
|
self._Agents = None
|
|
10126
10145
|
self._InstanceId = None
|
|
10146
|
+
self._Force = None
|
|
10127
10147
|
|
|
10128
10148
|
@property
|
|
10129
10149
|
def Agents(self):
|
|
@@ -10141,6 +10161,14 @@ class DeletePrometheusClusterAgentRequest(AbstractModel):
|
|
|
10141
10161
|
def InstanceId(self, InstanceId):
|
|
10142
10162
|
self._InstanceId = InstanceId
|
|
10143
10163
|
|
|
10164
|
+
@property
|
|
10165
|
+
def Force(self):
|
|
10166
|
+
return self._Force
|
|
10167
|
+
|
|
10168
|
+
@Force.setter
|
|
10169
|
+
def Force(self, Force):
|
|
10170
|
+
self._Force = Force
|
|
10171
|
+
|
|
10144
10172
|
|
|
10145
10173
|
def _deserialize(self, params):
|
|
10146
10174
|
if params.get("Agents") is not None:
|
|
@@ -10150,6 +10178,7 @@ class DeletePrometheusClusterAgentRequest(AbstractModel):
|
|
|
10150
10178
|
obj._deserialize(item)
|
|
10151
10179
|
self._Agents.append(obj)
|
|
10152
10180
|
self._InstanceId = params.get("InstanceId")
|
|
10181
|
+
self._Force = params.get("Force")
|
|
10153
10182
|
memeber_set = set(params.keys())
|
|
10154
10183
|
for name, value in vars(self).items():
|
|
10155
10184
|
property_name = name[1:]
|
|
@@ -10204,6 +10233,8 @@ class DeletePrometheusConfigRequest(AbstractModel):
|
|
|
10204
10233
|
:type PodMonitors: list of str
|
|
10205
10234
|
:param _RawJobs: 要删除的RawJobs名字列表
|
|
10206
10235
|
:type RawJobs: list of str
|
|
10236
|
+
:param _Probes: 要删除的Probe名字列表
|
|
10237
|
+
:type Probes: list of str
|
|
10207
10238
|
"""
|
|
10208
10239
|
self._InstanceId = None
|
|
10209
10240
|
self._ClusterType = None
|
|
@@ -10211,6 +10242,7 @@ class DeletePrometheusConfigRequest(AbstractModel):
|
|
|
10211
10242
|
self._ServiceMonitors = None
|
|
10212
10243
|
self._PodMonitors = None
|
|
10213
10244
|
self._RawJobs = None
|
|
10245
|
+
self._Probes = None
|
|
10214
10246
|
|
|
10215
10247
|
@property
|
|
10216
10248
|
def InstanceId(self):
|
|
@@ -10260,6 +10292,14 @@ class DeletePrometheusConfigRequest(AbstractModel):
|
|
|
10260
10292
|
def RawJobs(self, RawJobs):
|
|
10261
10293
|
self._RawJobs = RawJobs
|
|
10262
10294
|
|
|
10295
|
+
@property
|
|
10296
|
+
def Probes(self):
|
|
10297
|
+
return self._Probes
|
|
10298
|
+
|
|
10299
|
+
@Probes.setter
|
|
10300
|
+
def Probes(self, Probes):
|
|
10301
|
+
self._Probes = Probes
|
|
10302
|
+
|
|
10263
10303
|
|
|
10264
10304
|
def _deserialize(self, params):
|
|
10265
10305
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -10268,6 +10308,7 @@ class DeletePrometheusConfigRequest(AbstractModel):
|
|
|
10268
10308
|
self._ServiceMonitors = params.get("ServiceMonitors")
|
|
10269
10309
|
self._PodMonitors = params.get("PodMonitors")
|
|
10270
10310
|
self._RawJobs = params.get("RawJobs")
|
|
10311
|
+
self._Probes = params.get("Probes")
|
|
10271
10312
|
memeber_set = set(params.keys())
|
|
10272
10313
|
for name, value in vars(self).items():
|
|
10273
10314
|
property_name = name[1:]
|
|
@@ -18072,6 +18113,8 @@ class DescribePrometheusConfigResponse(AbstractModel):
|
|
|
18072
18113
|
:type PodMonitors: list of PrometheusConfigItem
|
|
18073
18114
|
:param _RawJobs: 原生Job
|
|
18074
18115
|
:type RawJobs: list of PrometheusConfigItem
|
|
18116
|
+
:param _Probes: Probe配置
|
|
18117
|
+
:type Probes: list of PrometheusConfigItem
|
|
18075
18118
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18076
18119
|
:type RequestId: str
|
|
18077
18120
|
"""
|
|
@@ -18079,6 +18122,7 @@ class DescribePrometheusConfigResponse(AbstractModel):
|
|
|
18079
18122
|
self._ServiceMonitors = None
|
|
18080
18123
|
self._PodMonitors = None
|
|
18081
18124
|
self._RawJobs = None
|
|
18125
|
+
self._Probes = None
|
|
18082
18126
|
self._RequestId = None
|
|
18083
18127
|
|
|
18084
18128
|
@property
|
|
@@ -18113,6 +18157,14 @@ class DescribePrometheusConfigResponse(AbstractModel):
|
|
|
18113
18157
|
def RawJobs(self, RawJobs):
|
|
18114
18158
|
self._RawJobs = RawJobs
|
|
18115
18159
|
|
|
18160
|
+
@property
|
|
18161
|
+
def Probes(self):
|
|
18162
|
+
return self._Probes
|
|
18163
|
+
|
|
18164
|
+
@Probes.setter
|
|
18165
|
+
def Probes(self, Probes):
|
|
18166
|
+
self._Probes = Probes
|
|
18167
|
+
|
|
18116
18168
|
@property
|
|
18117
18169
|
def RequestId(self):
|
|
18118
18170
|
return self._RequestId
|
|
@@ -18142,6 +18194,12 @@ class DescribePrometheusConfigResponse(AbstractModel):
|
|
|
18142
18194
|
obj = PrometheusConfigItem()
|
|
18143
18195
|
obj._deserialize(item)
|
|
18144
18196
|
self._RawJobs.append(obj)
|
|
18197
|
+
if params.get("Probes") is not None:
|
|
18198
|
+
self._Probes = []
|
|
18199
|
+
for item in params.get("Probes"):
|
|
18200
|
+
obj = PrometheusConfigItem()
|
|
18201
|
+
obj._deserialize(item)
|
|
18202
|
+
self._Probes.append(obj)
|
|
18145
18203
|
self._RequestId = params.get("RequestId")
|
|
18146
18204
|
|
|
18147
18205
|
|
|
@@ -19683,6 +19741,129 @@ class DescribeRegionsResponse(AbstractModel):
|
|
|
19683
19741
|
self._RequestId = params.get("RequestId")
|
|
19684
19742
|
|
|
19685
19743
|
|
|
19744
|
+
class DescribeReservedInstanceUtilizationRateRequest(AbstractModel):
|
|
19745
|
+
"""DescribeReservedInstanceUtilizationRate请求参数结构体
|
|
19746
|
+
|
|
19747
|
+
"""
|
|
19748
|
+
|
|
19749
|
+
def __init__(self):
|
|
19750
|
+
r"""
|
|
19751
|
+
:param _Zone: 可用区
|
|
19752
|
+
:type Zone: str
|
|
19753
|
+
:param _ClusterId: 集群 ID
|
|
19754
|
+
:type ClusterId: str
|
|
19755
|
+
:param _NodeName: 节点名称
|
|
19756
|
+
:type NodeName: str
|
|
19757
|
+
"""
|
|
19758
|
+
self._Zone = None
|
|
19759
|
+
self._ClusterId = None
|
|
19760
|
+
self._NodeName = None
|
|
19761
|
+
|
|
19762
|
+
@property
|
|
19763
|
+
def Zone(self):
|
|
19764
|
+
return self._Zone
|
|
19765
|
+
|
|
19766
|
+
@Zone.setter
|
|
19767
|
+
def Zone(self, Zone):
|
|
19768
|
+
self._Zone = Zone
|
|
19769
|
+
|
|
19770
|
+
@property
|
|
19771
|
+
def ClusterId(self):
|
|
19772
|
+
return self._ClusterId
|
|
19773
|
+
|
|
19774
|
+
@ClusterId.setter
|
|
19775
|
+
def ClusterId(self, ClusterId):
|
|
19776
|
+
self._ClusterId = ClusterId
|
|
19777
|
+
|
|
19778
|
+
@property
|
|
19779
|
+
def NodeName(self):
|
|
19780
|
+
return self._NodeName
|
|
19781
|
+
|
|
19782
|
+
@NodeName.setter
|
|
19783
|
+
def NodeName(self, NodeName):
|
|
19784
|
+
self._NodeName = NodeName
|
|
19785
|
+
|
|
19786
|
+
|
|
19787
|
+
def _deserialize(self, params):
|
|
19788
|
+
self._Zone = params.get("Zone")
|
|
19789
|
+
self._ClusterId = params.get("ClusterId")
|
|
19790
|
+
self._NodeName = params.get("NodeName")
|
|
19791
|
+
memeber_set = set(params.keys())
|
|
19792
|
+
for name, value in vars(self).items():
|
|
19793
|
+
property_name = name[1:]
|
|
19794
|
+
if property_name in memeber_set:
|
|
19795
|
+
memeber_set.remove(property_name)
|
|
19796
|
+
if len(memeber_set) > 0:
|
|
19797
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
19798
|
+
|
|
19799
|
+
|
|
19800
|
+
|
|
19801
|
+
class DescribeReservedInstanceUtilizationRateResponse(AbstractModel):
|
|
19802
|
+
"""DescribeReservedInstanceUtilizationRate返回参数结构体
|
|
19803
|
+
|
|
19804
|
+
"""
|
|
19805
|
+
|
|
19806
|
+
def __init__(self):
|
|
19807
|
+
r"""
|
|
19808
|
+
:param _UtilizationRateSet: 预留券使用率
|
|
19809
|
+
:type UtilizationRateSet: list of ReservedInstanceUtilizationRate
|
|
19810
|
+
:param _PodNum: 按量计费的 Pod 总数
|
|
19811
|
+
:type PodNum: int
|
|
19812
|
+
:param _PodRate: Pod 被预留券抵扣的抵扣率
|
|
19813
|
+
:type PodRate: float
|
|
19814
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
19815
|
+
:type RequestId: str
|
|
19816
|
+
"""
|
|
19817
|
+
self._UtilizationRateSet = None
|
|
19818
|
+
self._PodNum = None
|
|
19819
|
+
self._PodRate = None
|
|
19820
|
+
self._RequestId = None
|
|
19821
|
+
|
|
19822
|
+
@property
|
|
19823
|
+
def UtilizationRateSet(self):
|
|
19824
|
+
return self._UtilizationRateSet
|
|
19825
|
+
|
|
19826
|
+
@UtilizationRateSet.setter
|
|
19827
|
+
def UtilizationRateSet(self, UtilizationRateSet):
|
|
19828
|
+
self._UtilizationRateSet = UtilizationRateSet
|
|
19829
|
+
|
|
19830
|
+
@property
|
|
19831
|
+
def PodNum(self):
|
|
19832
|
+
return self._PodNum
|
|
19833
|
+
|
|
19834
|
+
@PodNum.setter
|
|
19835
|
+
def PodNum(self, PodNum):
|
|
19836
|
+
self._PodNum = PodNum
|
|
19837
|
+
|
|
19838
|
+
@property
|
|
19839
|
+
def PodRate(self):
|
|
19840
|
+
return self._PodRate
|
|
19841
|
+
|
|
19842
|
+
@PodRate.setter
|
|
19843
|
+
def PodRate(self, PodRate):
|
|
19844
|
+
self._PodRate = PodRate
|
|
19845
|
+
|
|
19846
|
+
@property
|
|
19847
|
+
def RequestId(self):
|
|
19848
|
+
return self._RequestId
|
|
19849
|
+
|
|
19850
|
+
@RequestId.setter
|
|
19851
|
+
def RequestId(self, RequestId):
|
|
19852
|
+
self._RequestId = RequestId
|
|
19853
|
+
|
|
19854
|
+
|
|
19855
|
+
def _deserialize(self, params):
|
|
19856
|
+
if params.get("UtilizationRateSet") is not None:
|
|
19857
|
+
self._UtilizationRateSet = []
|
|
19858
|
+
for item in params.get("UtilizationRateSet"):
|
|
19859
|
+
obj = ReservedInstanceUtilizationRate()
|
|
19860
|
+
obj._deserialize(item)
|
|
19861
|
+
self._UtilizationRateSet.append(obj)
|
|
19862
|
+
self._PodNum = params.get("PodNum")
|
|
19863
|
+
self._PodRate = params.get("PodRate")
|
|
19864
|
+
self._RequestId = params.get("RequestId")
|
|
19865
|
+
|
|
19866
|
+
|
|
19686
19867
|
class DescribeReservedInstancesRequest(AbstractModel):
|
|
19687
19868
|
"""DescribeReservedInstances请求参数结构体
|
|
19688
19869
|
|
|
@@ -29168,6 +29349,8 @@ class ModifyPrometheusConfigRequest(AbstractModel):
|
|
|
29168
29349
|
:type PodMonitors: list of PrometheusConfigItem
|
|
29169
29350
|
:param _RawJobs: prometheus原生Job配置
|
|
29170
29351
|
:type RawJobs: list of PrometheusConfigItem
|
|
29352
|
+
:param _Probes: Probes 配置
|
|
29353
|
+
:type Probes: list of PrometheusConfigItem
|
|
29171
29354
|
"""
|
|
29172
29355
|
self._InstanceId = None
|
|
29173
29356
|
self._ClusterType = None
|
|
@@ -29175,6 +29358,7 @@ class ModifyPrometheusConfigRequest(AbstractModel):
|
|
|
29175
29358
|
self._ServiceMonitors = None
|
|
29176
29359
|
self._PodMonitors = None
|
|
29177
29360
|
self._RawJobs = None
|
|
29361
|
+
self._Probes = None
|
|
29178
29362
|
|
|
29179
29363
|
@property
|
|
29180
29364
|
def InstanceId(self):
|
|
@@ -29224,6 +29408,14 @@ class ModifyPrometheusConfigRequest(AbstractModel):
|
|
|
29224
29408
|
def RawJobs(self, RawJobs):
|
|
29225
29409
|
self._RawJobs = RawJobs
|
|
29226
29410
|
|
|
29411
|
+
@property
|
|
29412
|
+
def Probes(self):
|
|
29413
|
+
return self._Probes
|
|
29414
|
+
|
|
29415
|
+
@Probes.setter
|
|
29416
|
+
def Probes(self, Probes):
|
|
29417
|
+
self._Probes = Probes
|
|
29418
|
+
|
|
29227
29419
|
|
|
29228
29420
|
def _deserialize(self, params):
|
|
29229
29421
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -29247,6 +29439,12 @@ class ModifyPrometheusConfigRequest(AbstractModel):
|
|
|
29247
29439
|
obj = PrometheusConfigItem()
|
|
29248
29440
|
obj._deserialize(item)
|
|
29249
29441
|
self._RawJobs.append(obj)
|
|
29442
|
+
if params.get("Probes") is not None:
|
|
29443
|
+
self._Probes = []
|
|
29444
|
+
for item in params.get("Probes"):
|
|
29445
|
+
obj = PrometheusConfigItem()
|
|
29446
|
+
obj._deserialize(item)
|
|
29447
|
+
self._Probes.append(obj)
|
|
29250
29448
|
memeber_set = set(params.keys())
|
|
29251
29449
|
for name, value in vars(self).items():
|
|
29252
29450
|
property_name = name[1:]
|
|
@@ -31110,10 +31308,13 @@ class PrometheusAgentInfo(AbstractModel):
|
|
|
31110
31308
|
:type ClusterId: str
|
|
31111
31309
|
:param _Describe: 备注
|
|
31112
31310
|
:type Describe: str
|
|
31311
|
+
:param _Region: 集群所在地域
|
|
31312
|
+
:type Region: str
|
|
31113
31313
|
"""
|
|
31114
31314
|
self._ClusterType = None
|
|
31115
31315
|
self._ClusterId = None
|
|
31116
31316
|
self._Describe = None
|
|
31317
|
+
self._Region = None
|
|
31117
31318
|
|
|
31118
31319
|
@property
|
|
31119
31320
|
def ClusterType(self):
|
|
@@ -31139,11 +31340,20 @@ class PrometheusAgentInfo(AbstractModel):
|
|
|
31139
31340
|
def Describe(self, Describe):
|
|
31140
31341
|
self._Describe = Describe
|
|
31141
31342
|
|
|
31343
|
+
@property
|
|
31344
|
+
def Region(self):
|
|
31345
|
+
return self._Region
|
|
31346
|
+
|
|
31347
|
+
@Region.setter
|
|
31348
|
+
def Region(self, Region):
|
|
31349
|
+
self._Region = Region
|
|
31350
|
+
|
|
31142
31351
|
|
|
31143
31352
|
def _deserialize(self, params):
|
|
31144
31353
|
self._ClusterType = params.get("ClusterType")
|
|
31145
31354
|
self._ClusterId = params.get("ClusterId")
|
|
31146
31355
|
self._Describe = params.get("Describe")
|
|
31356
|
+
self._Region = params.get("Region")
|
|
31147
31357
|
memeber_set = set(params.keys())
|
|
31148
31358
|
for name, value in vars(self).items():
|
|
31149
31359
|
property_name = name[1:]
|
|
@@ -35301,6 +35511,157 @@ class ReservedInstanceSpec(AbstractModel):
|
|
|
35301
35511
|
|
|
35302
35512
|
|
|
35303
35513
|
|
|
35514
|
+
class ReservedInstanceUtilizationRate(AbstractModel):
|
|
35515
|
+
"""预留券的使用率信息
|
|
35516
|
+
|
|
35517
|
+
"""
|
|
35518
|
+
|
|
35519
|
+
def __init__(self):
|
|
35520
|
+
r"""
|
|
35521
|
+
:param _Rate: 使用率
|
|
35522
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35523
|
+
:type Rate: float
|
|
35524
|
+
:param _Num: 预留券数量
|
|
35525
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35526
|
+
:type Num: int
|
|
35527
|
+
:param _CPU: 核数
|
|
35528
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35529
|
+
:type CPU: float
|
|
35530
|
+
:param _Memory: 内存
|
|
35531
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35532
|
+
:type Memory: float
|
|
35533
|
+
:param _Type: 预留券类型
|
|
35534
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35535
|
+
:type Type: str
|
|
35536
|
+
:param _GpuNum: GPU 卡数
|
|
35537
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35538
|
+
:type GpuNum: str
|
|
35539
|
+
:param _Zone: 可用区
|
|
35540
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35541
|
+
:type Zone: str
|
|
35542
|
+
:param _ClusterId: 集群 ID
|
|
35543
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35544
|
+
:type ClusterId: str
|
|
35545
|
+
:param _NodeName: 节点名称
|
|
35546
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35547
|
+
:type NodeName: str
|
|
35548
|
+
:param _PodNum: Pod 数量
|
|
35549
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35550
|
+
:type PodNum: int
|
|
35551
|
+
"""
|
|
35552
|
+
self._Rate = None
|
|
35553
|
+
self._Num = None
|
|
35554
|
+
self._CPU = None
|
|
35555
|
+
self._Memory = None
|
|
35556
|
+
self._Type = None
|
|
35557
|
+
self._GpuNum = None
|
|
35558
|
+
self._Zone = None
|
|
35559
|
+
self._ClusterId = None
|
|
35560
|
+
self._NodeName = None
|
|
35561
|
+
self._PodNum = None
|
|
35562
|
+
|
|
35563
|
+
@property
|
|
35564
|
+
def Rate(self):
|
|
35565
|
+
return self._Rate
|
|
35566
|
+
|
|
35567
|
+
@Rate.setter
|
|
35568
|
+
def Rate(self, Rate):
|
|
35569
|
+
self._Rate = Rate
|
|
35570
|
+
|
|
35571
|
+
@property
|
|
35572
|
+
def Num(self):
|
|
35573
|
+
return self._Num
|
|
35574
|
+
|
|
35575
|
+
@Num.setter
|
|
35576
|
+
def Num(self, Num):
|
|
35577
|
+
self._Num = Num
|
|
35578
|
+
|
|
35579
|
+
@property
|
|
35580
|
+
def CPU(self):
|
|
35581
|
+
return self._CPU
|
|
35582
|
+
|
|
35583
|
+
@CPU.setter
|
|
35584
|
+
def CPU(self, CPU):
|
|
35585
|
+
self._CPU = CPU
|
|
35586
|
+
|
|
35587
|
+
@property
|
|
35588
|
+
def Memory(self):
|
|
35589
|
+
return self._Memory
|
|
35590
|
+
|
|
35591
|
+
@Memory.setter
|
|
35592
|
+
def Memory(self, Memory):
|
|
35593
|
+
self._Memory = Memory
|
|
35594
|
+
|
|
35595
|
+
@property
|
|
35596
|
+
def Type(self):
|
|
35597
|
+
return self._Type
|
|
35598
|
+
|
|
35599
|
+
@Type.setter
|
|
35600
|
+
def Type(self, Type):
|
|
35601
|
+
self._Type = Type
|
|
35602
|
+
|
|
35603
|
+
@property
|
|
35604
|
+
def GpuNum(self):
|
|
35605
|
+
return self._GpuNum
|
|
35606
|
+
|
|
35607
|
+
@GpuNum.setter
|
|
35608
|
+
def GpuNum(self, GpuNum):
|
|
35609
|
+
self._GpuNum = GpuNum
|
|
35610
|
+
|
|
35611
|
+
@property
|
|
35612
|
+
def Zone(self):
|
|
35613
|
+
return self._Zone
|
|
35614
|
+
|
|
35615
|
+
@Zone.setter
|
|
35616
|
+
def Zone(self, Zone):
|
|
35617
|
+
self._Zone = Zone
|
|
35618
|
+
|
|
35619
|
+
@property
|
|
35620
|
+
def ClusterId(self):
|
|
35621
|
+
return self._ClusterId
|
|
35622
|
+
|
|
35623
|
+
@ClusterId.setter
|
|
35624
|
+
def ClusterId(self, ClusterId):
|
|
35625
|
+
self._ClusterId = ClusterId
|
|
35626
|
+
|
|
35627
|
+
@property
|
|
35628
|
+
def NodeName(self):
|
|
35629
|
+
return self._NodeName
|
|
35630
|
+
|
|
35631
|
+
@NodeName.setter
|
|
35632
|
+
def NodeName(self, NodeName):
|
|
35633
|
+
self._NodeName = NodeName
|
|
35634
|
+
|
|
35635
|
+
@property
|
|
35636
|
+
def PodNum(self):
|
|
35637
|
+
return self._PodNum
|
|
35638
|
+
|
|
35639
|
+
@PodNum.setter
|
|
35640
|
+
def PodNum(self, PodNum):
|
|
35641
|
+
self._PodNum = PodNum
|
|
35642
|
+
|
|
35643
|
+
|
|
35644
|
+
def _deserialize(self, params):
|
|
35645
|
+
self._Rate = params.get("Rate")
|
|
35646
|
+
self._Num = params.get("Num")
|
|
35647
|
+
self._CPU = params.get("CPU")
|
|
35648
|
+
self._Memory = params.get("Memory")
|
|
35649
|
+
self._Type = params.get("Type")
|
|
35650
|
+
self._GpuNum = params.get("GpuNum")
|
|
35651
|
+
self._Zone = params.get("Zone")
|
|
35652
|
+
self._ClusterId = params.get("ClusterId")
|
|
35653
|
+
self._NodeName = params.get("NodeName")
|
|
35654
|
+
self._PodNum = params.get("PodNum")
|
|
35655
|
+
memeber_set = set(params.keys())
|
|
35656
|
+
for name, value in vars(self).items():
|
|
35657
|
+
property_name = name[1:]
|
|
35658
|
+
if property_name in memeber_set:
|
|
35659
|
+
memeber_set.remove(property_name)
|
|
35660
|
+
if len(memeber_set) > 0:
|
|
35661
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
35662
|
+
|
|
35663
|
+
|
|
35664
|
+
|
|
35304
35665
|
class ResourceDeleteOption(AbstractModel):
|
|
35305
35666
|
"""资源删除选项
|
|
35306
35667
|
|
|
@@ -39117,7 +39478,7 @@ class UpgradeClusterReleaseRequest(AbstractModel):
|
|
|
39117
39478
|
:type Chart: str
|
|
39118
39479
|
:param _Values: 自定义参数,覆盖chart 中values.yaml 中的参数
|
|
39119
39480
|
:type Values: :class:`tencentcloud.tke.v20180525.models.ReleaseValues`
|
|
39120
|
-
:param _ChartFrom: 制品来源,范围:tke-market 或 other
|
|
39481
|
+
:param _ChartFrom: 制品来源,范围:tke-market 或 other 默认值:tke-market,示例值:tke-market
|
|
39121
39482
|
:type ChartFrom: str
|
|
39122
39483
|
:param _ChartVersion: 制品版本( 从第三方安装时,不传这个参数)
|
|
39123
39484
|
:type ChartVersion: str
|
|
@@ -39127,7 +39488,7 @@ class UpgradeClusterReleaseRequest(AbstractModel):
|
|
|
39127
39488
|
:type Username: str
|
|
39128
39489
|
:param _Password: 制品访问密码
|
|
39129
39490
|
:type Password: str
|
|
39130
|
-
:param _ChartNamespace:
|
|
39491
|
+
:param _ChartNamespace: 制品命名空间,ChartFrom为tke-market时ChartNamespace不为空,值为DescribeProducts接口反馈的Namespace
|
|
39131
39492
|
:type ChartNamespace: str
|
|
39132
39493
|
:param _ClusterType: 集群类型,支持传 tke, eks, tkeedge, external(注册集群)
|
|
39133
39494
|
:type ClusterType: str
|
|
@@ -717,7 +717,7 @@ class TkeClient(AbstractClient):
|
|
|
717
717
|
|
|
718
718
|
|
|
719
719
|
def CreatePrometheusConfig(self, request):
|
|
720
|
-
"""
|
|
720
|
+
"""创建集群采集配置
|
|
721
721
|
|
|
722
722
|
:param request: Request instance for CreatePrometheusConfig.
|
|
723
723
|
:type request: :class:`tencentcloud.tke.v20180525.models.CreatePrometheusConfigRequest`
|
|
@@ -786,7 +786,7 @@ class TkeClient(AbstractClient):
|
|
|
786
786
|
|
|
787
787
|
|
|
788
788
|
def CreatePrometheusRecordRuleYaml(self, request):
|
|
789
|
-
"""
|
|
789
|
+
"""创建聚合规则yaml方式
|
|
790
790
|
|
|
791
791
|
:param request: Request instance for CreatePrometheusRecordRuleYaml.
|
|
792
792
|
:type request: :class:`tencentcloud.tke.v20180525.models.CreatePrometheusRecordRuleYamlRequest`
|
|
@@ -1384,7 +1384,7 @@ class TkeClient(AbstractClient):
|
|
|
1384
1384
|
|
|
1385
1385
|
|
|
1386
1386
|
def DeletePrometheusConfig(self, request):
|
|
1387
|
-
"""
|
|
1387
|
+
"""删除集群采集配置
|
|
1388
1388
|
|
|
1389
1389
|
:param request: Request instance for DeletePrometheusConfig.
|
|
1390
1390
|
:type request: :class:`tencentcloud.tke.v20180525.models.DeletePrometheusConfigRequest`
|
|
@@ -1407,7 +1407,7 @@ class TkeClient(AbstractClient):
|
|
|
1407
1407
|
|
|
1408
1408
|
|
|
1409
1409
|
def DeletePrometheusRecordRuleYaml(self, request):
|
|
1410
|
-
"""
|
|
1410
|
+
"""删除聚合规则
|
|
1411
1411
|
|
|
1412
1412
|
:param request: Request instance for DeletePrometheusRecordRuleYaml.
|
|
1413
1413
|
:type request: :class:`tencentcloud.tke.v20180525.models.DeletePrometheusRecordRuleYamlRequest`
|
|
@@ -3042,7 +3042,7 @@ class TkeClient(AbstractClient):
|
|
|
3042
3042
|
|
|
3043
3043
|
|
|
3044
3044
|
def DescribePrometheusConfig(self, request):
|
|
3045
|
-
"""
|
|
3045
|
+
"""获取集群采集配置
|
|
3046
3046
|
|
|
3047
3047
|
:param request: Request instance for DescribePrometheusConfig.
|
|
3048
3048
|
:type request: :class:`tencentcloud.tke.v20180525.models.DescribePrometheusConfigRequest`
|
|
@@ -3386,6 +3386,29 @@ class TkeClient(AbstractClient):
|
|
|
3386
3386
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3387
3387
|
|
|
3388
3388
|
|
|
3389
|
+
def DescribeReservedInstanceUtilizationRate(self, request):
|
|
3390
|
+
"""查询各种规格类型的预留券使用率
|
|
3391
|
+
|
|
3392
|
+
:param request: Request instance for DescribeReservedInstanceUtilizationRate.
|
|
3393
|
+
:type request: :class:`tencentcloud.tke.v20180525.models.DescribeReservedInstanceUtilizationRateRequest`
|
|
3394
|
+
:rtype: :class:`tencentcloud.tke.v20180525.models.DescribeReservedInstanceUtilizationRateResponse`
|
|
3395
|
+
|
|
3396
|
+
"""
|
|
3397
|
+
try:
|
|
3398
|
+
params = request._serialize()
|
|
3399
|
+
headers = request.headers
|
|
3400
|
+
body = self.call("DescribeReservedInstanceUtilizationRate", params, headers=headers)
|
|
3401
|
+
response = json.loads(body)
|
|
3402
|
+
model = models.DescribeReservedInstanceUtilizationRateResponse()
|
|
3403
|
+
model._deserialize(response["Response"])
|
|
3404
|
+
return model
|
|
3405
|
+
except Exception as e:
|
|
3406
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3407
|
+
raise
|
|
3408
|
+
else:
|
|
3409
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3410
|
+
|
|
3411
|
+
|
|
3389
3412
|
def DescribeReservedInstances(self, request):
|
|
3390
3413
|
"""查询预留实例列表
|
|
3391
3414
|
|
|
@@ -4445,7 +4468,7 @@ class TkeClient(AbstractClient):
|
|
|
4445
4468
|
|
|
4446
4469
|
|
|
4447
4470
|
def ModifyPrometheusConfig(self, request):
|
|
4448
|
-
"""
|
|
4471
|
+
"""修改集群采集配置
|
|
4449
4472
|
|
|
4450
4473
|
:param request: Request instance for ModifyPrometheusConfig.
|
|
4451
4474
|
:type request: :class:`tencentcloud.tke.v20180525.models.ModifyPrometheusConfigRequest`
|
|
@@ -4491,7 +4514,7 @@ class TkeClient(AbstractClient):
|
|
|
4491
4514
|
|
|
4492
4515
|
|
|
4493
4516
|
def ModifyPrometheusRecordRuleYaml(self, request):
|
|
4494
|
-
"""
|
|
4517
|
+
"""修改聚合规则yaml方式
|
|
4495
4518
|
|
|
4496
4519
|
:param request: Request instance for ModifyPrometheusRecordRuleYaml.
|
|
4497
4520
|
:type request: :class:`tencentcloud.tke.v20180525.models.ModifyPrometheusRecordRuleYamlRequest`
|
|
@@ -2830,6 +2830,8 @@ class NativeNodePoolInfo(AbstractModel):
|
|
|
2830
2830
|
:param _Replicas: 期望节点数
|
|
2831
2831
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2832
2832
|
:type Replicas: int
|
|
2833
|
+
:param _ReadyReplicas: 就绪 Machine 个数
|
|
2834
|
+
:type ReadyReplicas: int
|
|
2833
2835
|
:param _InternetAccessible: 公网带宽设置
|
|
2834
2836
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2835
2837
|
:type InternetAccessible: :class:`tencentcloud.tke.v20220501.models.InternetAccessible`
|
|
@@ -2855,6 +2857,7 @@ class NativeNodePoolInfo(AbstractModel):
|
|
|
2855
2857
|
self._EnableAutoscaling = None
|
|
2856
2858
|
self._InstanceTypes = None
|
|
2857
2859
|
self._Replicas = None
|
|
2860
|
+
self._ReadyReplicas = None
|
|
2858
2861
|
self._InternetAccessible = None
|
|
2859
2862
|
self._DataDisks = None
|
|
2860
2863
|
|
|
@@ -3002,6 +3005,14 @@ class NativeNodePoolInfo(AbstractModel):
|
|
|
3002
3005
|
def Replicas(self, Replicas):
|
|
3003
3006
|
self._Replicas = Replicas
|
|
3004
3007
|
|
|
3008
|
+
@property
|
|
3009
|
+
def ReadyReplicas(self):
|
|
3010
|
+
return self._ReadyReplicas
|
|
3011
|
+
|
|
3012
|
+
@ReadyReplicas.setter
|
|
3013
|
+
def ReadyReplicas(self, ReadyReplicas):
|
|
3014
|
+
self._ReadyReplicas = ReadyReplicas
|
|
3015
|
+
|
|
3005
3016
|
@property
|
|
3006
3017
|
def InternetAccessible(self):
|
|
3007
3018
|
return self._InternetAccessible
|
|
@@ -3050,6 +3061,7 @@ class NativeNodePoolInfo(AbstractModel):
|
|
|
3050
3061
|
self._EnableAutoscaling = params.get("EnableAutoscaling")
|
|
3051
3062
|
self._InstanceTypes = params.get("InstanceTypes")
|
|
3052
3063
|
self._Replicas = params.get("Replicas")
|
|
3064
|
+
self._ReadyReplicas = params.get("ReadyReplicas")
|
|
3053
3065
|
if params.get("InternetAccessible") is not None:
|
|
3054
3066
|
self._InternetAccessible = InternetAccessible()
|
|
3055
3067
|
self._InternetAccessible._deserialize(params.get("InternetAccessible"))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1207
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1173
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|