tencentcloud-sdk-python 3.0.1419__py2.py3-none-any.whl → 3.0.1420__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/ai3d/v20250513/models.py +2 -2
- tencentcloud/cvm/v20170312/models.py +2 -2
- tencentcloud/emr/v20190103/models.py +355 -4
- tencentcloud/ess/v20201111/models.py +8 -2
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +1 -1
- tencentcloud/live/v20180801/models.py +2 -2
- tencentcloud/lke/v20231130/models.py +395 -2
- tencentcloud/mrs/v20200910/models.py +15 -0
- tencentcloud/nlp/v20190408/errorcodes.py +0 -21
- tencentcloud/nlp/v20190408/models.py +99 -1004
- tencentcloud/nlp/v20190408/nlp_client.py +0 -138
- tencentcloud/ses/v20201002/errorcodes.py +3 -0
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/tdmq/v20200217/models.py +15 -0
- tencentcloud/tione/v20211111/models.py +23 -0
- tencentcloud/tke/v20180525/models.py +46 -46
- tencentcloud/tsf/v20180326/errorcodes.py +6 -0
- tencentcloud/tsf/v20180326/models.py +16 -0
- tencentcloud/vod/v20180717/models.py +8 -4
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/RECORD +26 -26
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/top_level.txt +0 -0
@@ -95,29 +95,6 @@ class NlpClient(AbstractClient):
|
|
95
95
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
96
96
|
|
97
97
|
|
98
|
-
def ComposePoetry(self, request):
|
99
|
-
"""诗词生成接口利用现代的自然语言处理和深度学习技术,模仿了古代著名诗人的风格,为用户产生独特的诗词。用户只需输入的命题关键词,接口就能自动生成一首七言律诗或五言律诗。
|
100
|
-
|
101
|
-
:param request: Request instance for ComposePoetry.
|
102
|
-
:type request: :class:`tencentcloud.nlp.v20190408.models.ComposePoetryRequest`
|
103
|
-
:rtype: :class:`tencentcloud.nlp.v20190408.models.ComposePoetryResponse`
|
104
|
-
|
105
|
-
"""
|
106
|
-
try:
|
107
|
-
params = request._serialize()
|
108
|
-
headers = request.headers
|
109
|
-
body = self.call("ComposePoetry", params, headers=headers)
|
110
|
-
response = json.loads(body)
|
111
|
-
model = models.ComposePoetryResponse()
|
112
|
-
model._deserialize(response["Response"])
|
113
|
-
return model
|
114
|
-
except Exception as e:
|
115
|
-
if isinstance(e, TencentCloudSDKException):
|
116
|
-
raise
|
117
|
-
else:
|
118
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
119
|
-
|
120
|
-
|
121
98
|
def EvaluateSentenceSimilarity(self, request):
|
122
99
|
"""通过计算句子间的语义相似性,帮助您快速找到文本中重复或相似的句子,用于文本聚类、相似问题检索等应用场景。
|
123
100
|
|
@@ -141,52 +118,6 @@ class NlpClient(AbstractClient):
|
|
141
118
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
142
119
|
|
143
120
|
|
144
|
-
def EvaluateWordSimilarity(self, request):
|
145
|
-
"""评估两个词语在语义空间的相似程度,为您的场景应用提供有力支持,如关键词过滤、热门话题挖掘等。(目前仅支持中文)
|
146
|
-
|
147
|
-
:param request: Request instance for EvaluateWordSimilarity.
|
148
|
-
:type request: :class:`tencentcloud.nlp.v20190408.models.EvaluateWordSimilarityRequest`
|
149
|
-
:rtype: :class:`tencentcloud.nlp.v20190408.models.EvaluateWordSimilarityResponse`
|
150
|
-
|
151
|
-
"""
|
152
|
-
try:
|
153
|
-
params = request._serialize()
|
154
|
-
headers = request.headers
|
155
|
-
body = self.call("EvaluateWordSimilarity", params, headers=headers)
|
156
|
-
response = json.loads(body)
|
157
|
-
model = models.EvaluateWordSimilarityResponse()
|
158
|
-
model._deserialize(response["Response"])
|
159
|
-
return model
|
160
|
-
except Exception as e:
|
161
|
-
if isinstance(e, TencentCloudSDKException):
|
162
|
-
raise
|
163
|
-
else:
|
164
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
165
|
-
|
166
|
-
|
167
|
-
def GenerateKeywordSentence(self, request):
|
168
|
-
"""根据提供的关键词,生成简洁明了的关键句子,便于用户快速获取核心观点。
|
169
|
-
|
170
|
-
:param request: Request instance for GenerateKeywordSentence.
|
171
|
-
:type request: :class:`tencentcloud.nlp.v20190408.models.GenerateKeywordSentenceRequest`
|
172
|
-
:rtype: :class:`tencentcloud.nlp.v20190408.models.GenerateKeywordSentenceResponse`
|
173
|
-
|
174
|
-
"""
|
175
|
-
try:
|
176
|
-
params = request._serialize()
|
177
|
-
headers = request.headers
|
178
|
-
body = self.call("GenerateKeywordSentence", params, headers=headers)
|
179
|
-
response = json.loads(body)
|
180
|
-
model = models.GenerateKeywordSentenceResponse()
|
181
|
-
model._deserialize(response["Response"])
|
182
|
-
return model
|
183
|
-
except Exception as e:
|
184
|
-
if isinstance(e, TencentCloudSDKException):
|
185
|
-
raise
|
186
|
-
else:
|
187
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
188
|
-
|
189
|
-
|
190
121
|
def ParseWords(self, request):
|
191
122
|
"""通过精准地对文本进行分词、词性标注、命名实体识别等功能,助您更好地理解文本内容,挖掘出潜在的价值信息。
|
192
123
|
|
@@ -210,29 +141,6 @@ class NlpClient(AbstractClient):
|
|
210
141
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
211
142
|
|
212
143
|
|
213
|
-
def RetrieveSimilarWords(self, request):
|
214
|
-
"""基于大数据和深度学习技术,可以快速地找到与给定词语高度相似的其他词语,有助于提高搜索和推荐的准确性。(目前仅支持中文)
|
215
|
-
|
216
|
-
:param request: Request instance for RetrieveSimilarWords.
|
217
|
-
:type request: :class:`tencentcloud.nlp.v20190408.models.RetrieveSimilarWordsRequest`
|
218
|
-
:rtype: :class:`tencentcloud.nlp.v20190408.models.RetrieveSimilarWordsResponse`
|
219
|
-
|
220
|
-
"""
|
221
|
-
try:
|
222
|
-
params = request._serialize()
|
223
|
-
headers = request.headers
|
224
|
-
body = self.call("RetrieveSimilarWords", params, headers=headers)
|
225
|
-
response = json.loads(body)
|
226
|
-
model = models.RetrieveSimilarWordsResponse()
|
227
|
-
model._deserialize(response["Response"])
|
228
|
-
return model
|
229
|
-
except Exception as e:
|
230
|
-
if isinstance(e, TencentCloudSDKException):
|
231
|
-
raise
|
232
|
-
else:
|
233
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
234
|
-
|
235
|
-
|
236
144
|
def SentenceCorrection(self, request):
|
237
145
|
"""智能识别并纠正句子中的语法、拼写、用词等错误,确保文本的准确性和可读性。
|
238
146
|
|
@@ -249,52 +157,6 @@ class NlpClient(AbstractClient):
|
|
249
157
|
model = models.SentenceCorrectionResponse()
|
250
158
|
model._deserialize(response["Response"])
|
251
159
|
return model
|
252
|
-
except Exception as e:
|
253
|
-
if isinstance(e, TencentCloudSDKException):
|
254
|
-
raise
|
255
|
-
else:
|
256
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
257
|
-
|
258
|
-
|
259
|
-
def TextEmbellish(self, request):
|
260
|
-
"""运用先进的自然语言处理技术,对原始文本进行优化润色,提升文本的通顺性、表达力和语言质量。
|
261
|
-
|
262
|
-
:param request: Request instance for TextEmbellish.
|
263
|
-
:type request: :class:`tencentcloud.nlp.v20190408.models.TextEmbellishRequest`
|
264
|
-
:rtype: :class:`tencentcloud.nlp.v20190408.models.TextEmbellishResponse`
|
265
|
-
|
266
|
-
"""
|
267
|
-
try:
|
268
|
-
params = request._serialize()
|
269
|
-
headers = request.headers
|
270
|
-
body = self.call("TextEmbellish", params, headers=headers)
|
271
|
-
response = json.loads(body)
|
272
|
-
model = models.TextEmbellishResponse()
|
273
|
-
model._deserialize(response["Response"])
|
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 TextWriting(self, request):
|
283
|
-
"""通过自动补全文本片段,帮助用户快速生成高质量、连贯的完整文本,提高创作效率。
|
284
|
-
|
285
|
-
:param request: Request instance for TextWriting.
|
286
|
-
:type request: :class:`tencentcloud.nlp.v20190408.models.TextWritingRequest`
|
287
|
-
:rtype: :class:`tencentcloud.nlp.v20190408.models.TextWritingResponse`
|
288
|
-
|
289
|
-
"""
|
290
|
-
try:
|
291
|
-
params = request._serialize()
|
292
|
-
headers = request.headers
|
293
|
-
body = self.call("TextWriting", params, headers=headers)
|
294
|
-
response = json.loads(body)
|
295
|
-
model = models.TextWritingResponse()
|
296
|
-
model._deserialize(response["Response"])
|
297
|
-
return model
|
298
160
|
except Exception as e:
|
299
161
|
if isinstance(e, TencentCloudSDKException):
|
300
162
|
raise
|
@@ -167,6 +167,9 @@ FAILEDOPERATION_CERTIFICATESYNCTASKIDINVALID = 'FailedOperation.CertificateSyncT
|
|
167
167
|
# 无法查到当前证书类型详情。
|
168
168
|
FAILEDOPERATION_CERTIFICATETYPEINFONOTFOUND = 'FailedOperation.CertificateTypeInfoNotFound'
|
169
169
|
|
170
|
+
# 当前为白名单功能,非白名单用户无法使用该功能,请联系SSL证书特殊处理。
|
171
|
+
FAILEDOPERATION_CERTIFICATEWHITEFUNCERROR = 'FailedOperation.CertificateWhiteFuncError'
|
172
|
+
|
170
173
|
# 证书确认函文件过大(需小于1.4M)。
|
171
174
|
FAILEDOPERATION_CONFIRMLETTERTOOLARGE = 'FailedOperation.ConfirmLetterTooLarge'
|
172
175
|
|
@@ -188,6 +191,9 @@ FAILEDOPERATION_FILETOOLARGE = 'FailedOperation.FileTooLarge'
|
|
188
191
|
# 文件尺寸太小,请上传清晰图片。
|
189
192
|
FAILEDOPERATION_FILETOOSMALL = 'FailedOperation.FileTooSmall'
|
190
193
|
|
194
|
+
# 生产CSR失败
|
195
|
+
FAILEDOPERATION_GENCSRFAIL = 'FailedOperation.GenCSRFail'
|
196
|
+
|
191
197
|
# 公司管理人状态错误。
|
192
198
|
FAILEDOPERATION_ILLEGALMANAGERSTATUS = 'FailedOperation.IllegalManagerStatus'
|
193
199
|
|
@@ -11957,6 +11957,8 @@ class DescribeNamespaceBundlesOptRequest(AbstractModel):
|
|
11957
11957
|
:type Bundle: str
|
11958
11958
|
:param _OwnerBroker: bundle 所属的 broker IP 地址,支持模糊查询
|
11959
11959
|
:type OwnerBroker: str
|
11960
|
+
:param _Tenant: 租户(如果没有自定义租户名称,和 tenantId 相同;如果有配置自定义租户名称,则为自定义租户名 user_tenant)
|
11961
|
+
:type Tenant: str
|
11960
11962
|
"""
|
11961
11963
|
self._ClusterName = None
|
11962
11964
|
self._TenantId = None
|
@@ -11966,6 +11968,7 @@ class DescribeNamespaceBundlesOptRequest(AbstractModel):
|
|
11966
11968
|
self._Offset = None
|
11967
11969
|
self._Bundle = None
|
11968
11970
|
self._OwnerBroker = None
|
11971
|
+
self._Tenant = None
|
11969
11972
|
|
11970
11973
|
@property
|
11971
11974
|
def ClusterName(self):
|
@@ -12055,6 +12058,17 @@ class DescribeNamespaceBundlesOptRequest(AbstractModel):
|
|
12055
12058
|
def OwnerBroker(self, OwnerBroker):
|
12056
12059
|
self._OwnerBroker = OwnerBroker
|
12057
12060
|
|
12061
|
+
@property
|
12062
|
+
def Tenant(self):
|
12063
|
+
"""租户(如果没有自定义租户名称,和 tenantId 相同;如果有配置自定义租户名称,则为自定义租户名 user_tenant)
|
12064
|
+
:rtype: str
|
12065
|
+
"""
|
12066
|
+
return self._Tenant
|
12067
|
+
|
12068
|
+
@Tenant.setter
|
12069
|
+
def Tenant(self, Tenant):
|
12070
|
+
self._Tenant = Tenant
|
12071
|
+
|
12058
12072
|
|
12059
12073
|
def _deserialize(self, params):
|
12060
12074
|
self._ClusterName = params.get("ClusterName")
|
@@ -12065,6 +12079,7 @@ class DescribeNamespaceBundlesOptRequest(AbstractModel):
|
|
12065
12079
|
self._Offset = params.get("Offset")
|
12066
12080
|
self._Bundle = params.get("Bundle")
|
12067
12081
|
self._OwnerBroker = params.get("OwnerBroker")
|
12082
|
+
self._Tenant = params.get("Tenant")
|
12068
12083
|
memeber_set = set(params.keys())
|
12069
12084
|
for name, value in vars(self).items():
|
12070
12085
|
property_name = name[1:]
|
@@ -13409,6 +13409,8 @@ class ModelInfo(AbstractModel):
|
|
13409
13409
|
:type IsPrivateModel: bool
|
13410
13410
|
:param _ModelCategory: 模型的类别 多模态MultiModal, 文本大模型 LLM
|
13411
13411
|
:type ModelCategory: str
|
13412
|
+
:param _PublicDataSource: 数据源的配置
|
13413
|
+
:type PublicDataSource: :class:`tencentcloud.tione.v20211111.models.PublicDataSourceFS`
|
13412
13414
|
"""
|
13413
13415
|
self._ModelVersionId = None
|
13414
13416
|
self._ModelId = None
|
@@ -13422,6 +13424,7 @@ class ModelInfo(AbstractModel):
|
|
13422
13424
|
self._ModelFormat = None
|
13423
13425
|
self._IsPrivateModel = None
|
13424
13426
|
self._ModelCategory = None
|
13427
|
+
self._PublicDataSource = None
|
13425
13428
|
|
13426
13429
|
@property
|
13427
13430
|
def ModelVersionId(self):
|
@@ -13560,6 +13563,17 @@ class ModelInfo(AbstractModel):
|
|
13560
13563
|
def ModelCategory(self, ModelCategory):
|
13561
13564
|
self._ModelCategory = ModelCategory
|
13562
13565
|
|
13566
|
+
@property
|
13567
|
+
def PublicDataSource(self):
|
13568
|
+
"""数据源的配置
|
13569
|
+
:rtype: :class:`tencentcloud.tione.v20211111.models.PublicDataSourceFS`
|
13570
|
+
"""
|
13571
|
+
return self._PublicDataSource
|
13572
|
+
|
13573
|
+
@PublicDataSource.setter
|
13574
|
+
def PublicDataSource(self, PublicDataSource):
|
13575
|
+
self._PublicDataSource = PublicDataSource
|
13576
|
+
|
13563
13577
|
|
13564
13578
|
def _deserialize(self, params):
|
13565
13579
|
self._ModelVersionId = params.get("ModelVersionId")
|
@@ -13578,6 +13592,9 @@ class ModelInfo(AbstractModel):
|
|
13578
13592
|
self._ModelFormat = params.get("ModelFormat")
|
13579
13593
|
self._IsPrivateModel = params.get("IsPrivateModel")
|
13580
13594
|
self._ModelCategory = params.get("ModelCategory")
|
13595
|
+
if params.get("PublicDataSource") is not None:
|
13596
|
+
self._PublicDataSource = PublicDataSourceFS()
|
13597
|
+
self._PublicDataSource._deserialize(params.get("PublicDataSource"))
|
13581
13598
|
memeber_set = set(params.keys())
|
13582
13599
|
for name, value in vars(self).items():
|
13583
13600
|
property_name = name[1:]
|
@@ -17189,6 +17206,12 @@ class ProbeAction(AbstractModel):
|
|
17189
17206
|
|
17190
17207
|
|
17191
17208
|
|
17209
|
+
class PublicDataSourceFS(AbstractModel):
|
17210
|
+
"""公有云数据源结构
|
17211
|
+
|
17212
|
+
"""
|
17213
|
+
|
17214
|
+
|
17192
17215
|
class PushTrainingMetricsRequest(AbstractModel):
|
17193
17216
|
"""PushTrainingMetrics请求参数结构体
|
17194
17217
|
|
@@ -9606,7 +9606,7 @@ class CreateReservedInstancesRequest(AbstractModel):
|
|
9606
9606
|
:type InstanceCount: int
|
9607
9607
|
:param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。
|
9608
9608
|
:type InstanceChargePrepaid: :class:`tencentcloud.tke.v20180525.models.InstanceChargePrepaid`
|
9609
|
-
:param _InstanceName:
|
9609
|
+
:param _InstanceName: 预留券名称,名称不得超过60个字符。
|
9610
9610
|
:type InstanceName: str
|
9611
9611
|
:param _ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
|
9612
9612
|
:type ClientToken: str
|
@@ -9652,7 +9652,7 @@ class CreateReservedInstancesRequest(AbstractModel):
|
|
9652
9652
|
|
9653
9653
|
@property
|
9654
9654
|
def InstanceName(self):
|
9655
|
-
"""
|
9655
|
+
"""预留券名称,名称不得超过60个字符。
|
9656
9656
|
:rtype: str
|
9657
9657
|
"""
|
9658
9658
|
return self._InstanceName
|
@@ -12744,14 +12744,14 @@ class DeleteReservedInstancesRequest(AbstractModel):
|
|
12744
12744
|
|
12745
12745
|
def __init__(self):
|
12746
12746
|
r"""
|
12747
|
-
:param _ReservedInstanceIds: 预留券实例ID
|
12747
|
+
:param _ReservedInstanceIds: 预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取。
|
12748
12748
|
:type ReservedInstanceIds: list of str
|
12749
12749
|
"""
|
12750
12750
|
self._ReservedInstanceIds = None
|
12751
12751
|
|
12752
12752
|
@property
|
12753
12753
|
def ReservedInstanceIds(self):
|
12754
|
-
"""预留券实例ID
|
12754
|
+
"""预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取。
|
12755
12755
|
:rtype: list of str
|
12756
12756
|
"""
|
12757
12757
|
return self._ReservedInstanceIds
|
@@ -20347,13 +20347,13 @@ class DescribePodChargeInfoRequest(AbstractModel):
|
|
20347
20347
|
|
20348
20348
|
def __init__(self):
|
20349
20349
|
r"""
|
20350
|
-
:param _ClusterId: 集群ID
|
20350
|
+
:param _ClusterId: 集群 ID。TKE 集群可通过 [DescribeClusters](https://cloud.tencent.com/document/api/457/31862) 接口返回值中的ClusterId获取。
|
20351
20351
|
:type ClusterId: str
|
20352
20352
|
:param _Namespace: 命名空间
|
20353
20353
|
:type Namespace: str
|
20354
20354
|
:param _Name: Pod名称
|
20355
20355
|
:type Name: str
|
20356
|
-
:param _Uids: Pod的Uid
|
20356
|
+
:param _Uids: Pod的Uid,可以通过Uids 来批量查询,也可以通过 Namespace 和 Name 来查询某个 Pod 的计费信息。Uids 不传时,Namespace 和 Name 必须同时传。
|
20357
20357
|
:type Uids: list of str
|
20358
20358
|
"""
|
20359
20359
|
self._ClusterId = None
|
@@ -20363,7 +20363,7 @@ class DescribePodChargeInfoRequest(AbstractModel):
|
|
20363
20363
|
|
20364
20364
|
@property
|
20365
20365
|
def ClusterId(self):
|
20366
|
-
"""集群ID
|
20366
|
+
"""集群 ID。TKE 集群可通过 [DescribeClusters](https://cloud.tencent.com/document/api/457/31862) 接口返回值中的ClusterId获取。
|
20367
20367
|
:rtype: str
|
20368
20368
|
"""
|
20369
20369
|
return self._ClusterId
|
@@ -20396,7 +20396,7 @@ class DescribePodChargeInfoRequest(AbstractModel):
|
|
20396
20396
|
|
20397
20397
|
@property
|
20398
20398
|
def Uids(self):
|
20399
|
-
"""Pod的Uid
|
20399
|
+
"""Pod的Uid,可以通过Uids 来批量查询,也可以通过 Namespace 和 Name 来查询某个 Pod 的计费信息。Uids 不传时,Namespace 和 Name 必须同时传。
|
20400
20400
|
:rtype: list of str
|
20401
20401
|
"""
|
20402
20402
|
return self._Uids
|
@@ -20480,7 +20480,7 @@ class DescribePodDeductionRateRequest(AbstractModel):
|
|
20480
20480
|
:type Zone: str
|
20481
20481
|
:param _ClusterId: 集群 ID
|
20482
20482
|
:type ClusterId: str
|
20483
|
-
:param _NodeName:
|
20483
|
+
:param _NodeName: 节点 ID
|
20484
20484
|
:type NodeName: str
|
20485
20485
|
"""
|
20486
20486
|
self._Zone = None
|
@@ -20511,7 +20511,7 @@ class DescribePodDeductionRateRequest(AbstractModel):
|
|
20511
20511
|
|
20512
20512
|
@property
|
20513
20513
|
def NodeName(self):
|
20514
|
-
"""
|
20514
|
+
"""节点 ID
|
20515
20515
|
:rtype: str
|
20516
20516
|
"""
|
20517
20517
|
return self._NodeName
|
@@ -20592,15 +20592,15 @@ class DescribePodsBySpecRequest(AbstractModel):
|
|
20592
20592
|
r"""
|
20593
20593
|
:param _Cpu: 核数
|
20594
20594
|
:type Cpu: float
|
20595
|
-
:param _Memory:
|
20595
|
+
:param _Memory: 内存,单位:GiB
|
20596
20596
|
:type Memory: float
|
20597
|
-
:param _GpuNum: 卡数,有0.25、0.5、1、2、4
|
20597
|
+
:param _GpuNum: 卡数,有0.25、0.5、1、2、4和8
|
20598
20598
|
:type GpuNum: str
|
20599
20599
|
:param _Zone: 可用区
|
20600
20600
|
:type Zone: str
|
20601
20601
|
:param _ClusterId: 集群 ID
|
20602
20602
|
:type ClusterId: str
|
20603
|
-
:param _NodeName:
|
20603
|
+
:param _NodeName: 节点 ID
|
20604
20604
|
:type NodeName: str
|
20605
20605
|
:param _Offset: 偏移量,默认0。
|
20606
20606
|
:type Offset: int
|
@@ -20643,7 +20643,7 @@ pod-not-deduct
|
|
20643
20643
|
|
20644
20644
|
@property
|
20645
20645
|
def Memory(self):
|
20646
|
-
"""
|
20646
|
+
"""内存,单位:GiB
|
20647
20647
|
:rtype: float
|
20648
20648
|
"""
|
20649
20649
|
return self._Memory
|
@@ -20654,7 +20654,7 @@ pod-not-deduct
|
|
20654
20654
|
|
20655
20655
|
@property
|
20656
20656
|
def GpuNum(self):
|
20657
|
-
"""卡数,有0.25、0.5、1、2、4
|
20657
|
+
"""卡数,有0.25、0.5、1、2、4和8
|
20658
20658
|
:rtype: str
|
20659
20659
|
"""
|
20660
20660
|
return self._GpuNum
|
@@ -20687,7 +20687,7 @@ pod-not-deduct
|
|
20687
20687
|
|
20688
20688
|
@property
|
20689
20689
|
def NodeName(self):
|
20690
|
-
"""
|
20690
|
+
"""节点 ID
|
20691
20691
|
:rtype: str
|
20692
20692
|
"""
|
20693
20693
|
return self._NodeName
|
@@ -23791,7 +23791,7 @@ class DescribeReservedInstanceUtilizationRateRequest(AbstractModel):
|
|
23791
23791
|
:type Zone: str
|
23792
23792
|
:param _ClusterId: 集群 ID
|
23793
23793
|
:type ClusterId: str
|
23794
|
-
:param _NodeName:
|
23794
|
+
:param _NodeName: 节点 ID
|
23795
23795
|
:type NodeName: str
|
23796
23796
|
"""
|
23797
23797
|
self._Zone = None
|
@@ -23822,7 +23822,7 @@ class DescribeReservedInstanceUtilizationRateRequest(AbstractModel):
|
|
23822
23822
|
|
23823
23823
|
@property
|
23824
23824
|
def NodeName(self):
|
23825
|
-
"""
|
23825
|
+
"""节点 ID
|
23826
23826
|
:rtype: str
|
23827
23827
|
"""
|
23828
23828
|
return self._NodeName
|
@@ -23936,7 +23936,7 @@ class DescribeReservedInstancesRequest(AbstractModel):
|
|
23936
23936
|
:param _Limit: 返回数量,默认为20,最大值为100。
|
23937
23937
|
:type Limit: int
|
23938
23938
|
:param _Filters: status
|
23939
|
-
按照**【状态**】进行过滤。状态:Creating
|
23939
|
+
按照**【状态**】进行过滤。状态:Creating:创建中、Active:生效中、Expired:已过期、Refunded:已退还。
|
23940
23940
|
类型:String
|
23941
23941
|
必选:否
|
23942
23942
|
|
@@ -24029,7 +24029,7 @@ reserved-instance-not-deduct
|
|
24029
24029
|
@property
|
24030
24030
|
def Filters(self):
|
24031
24031
|
"""status
|
24032
|
-
按照**【状态**】进行过滤。状态:Creating
|
24032
|
+
按照**【状态**】进行过滤。状态:Creating:创建中、Active:生效中、Expired:已过期、Refunded:已退还。
|
24033
24033
|
类型:String
|
24034
24034
|
必选:否
|
24035
24035
|
|
@@ -31265,7 +31265,7 @@ class InstanceChargePrepaid(AbstractModel):
|
|
31265
31265
|
|
31266
31266
|
def __init__(self):
|
31267
31267
|
r"""
|
31268
|
-
:param _Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36
|
31268
|
+
:param _Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。
|
31269
31269
|
:type Period: int
|
31270
31270
|
:param _RenewFlag: 自动续费标识。取值范围:
|
31271
31271
|
NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
|
@@ -31280,7 +31280,7 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费
|
|
31280
31280
|
|
31281
31281
|
@property
|
31282
31282
|
def Period(self):
|
31283
|
-
"""购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36
|
31283
|
+
"""购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。
|
31284
31284
|
:rtype: int
|
31285
31285
|
"""
|
31286
31286
|
return self._Period
|
@@ -35814,7 +35814,7 @@ class ModifyReservedInstanceScopeRequest(AbstractModel):
|
|
35814
35814
|
|
35815
35815
|
def __init__(self):
|
35816
35816
|
r"""
|
35817
|
-
:param _ReservedInstanceIds:
|
35817
|
+
:param _ReservedInstanceIds: 预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取。
|
35818
35818
|
:type ReservedInstanceIds: list of str
|
35819
35819
|
:param _ReservedInstanceScope: 预留券抵扣范围信息
|
35820
35820
|
:type ReservedInstanceScope: :class:`tencentcloud.tke.v20180525.models.ReservedInstanceScope`
|
@@ -35824,7 +35824,7 @@ class ModifyReservedInstanceScopeRequest(AbstractModel):
|
|
35824
35824
|
|
35825
35825
|
@property
|
35826
35826
|
def ReservedInstanceIds(self):
|
35827
|
-
"""
|
35827
|
+
"""预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取。
|
35828
35828
|
:rtype: list of str
|
35829
35829
|
"""
|
35830
35830
|
return self._ReservedInstanceIds
|
@@ -37550,9 +37550,9 @@ class PodDeductionRate(AbstractModel):
|
|
37550
37550
|
r"""
|
37551
37551
|
:param _Cpu: Pod的 CPU
|
37552
37552
|
:type Cpu: float
|
37553
|
-
:param _Memory: Pod
|
37553
|
+
:param _Memory: Pod 的内存,单位:GiB
|
37554
37554
|
:type Memory: float
|
37555
|
-
:param _Type: Pod
|
37555
|
+
:param _Type: Pod 的类型, intel,amd,windows-common,windows-amd,sa4,sa5,s7,s8,t4,v100,l20,l40,a10\*gnv4,a10\*gnv4v,a10\*pnv4
|
37556
37556
|
:type Type: str
|
37557
37557
|
:param _GpuNum: Pod 的 GPU 卡数,Pod 类型为 GPU 时有效。
|
37558
37558
|
:type GpuNum: str
|
@@ -37581,7 +37581,7 @@ class PodDeductionRate(AbstractModel):
|
|
37581
37581
|
|
37582
37582
|
@property
|
37583
37583
|
def Memory(self):
|
37584
|
-
"""Pod
|
37584
|
+
"""Pod 的内存,单位:GiB
|
37585
37585
|
:rtype: float
|
37586
37586
|
"""
|
37587
37587
|
return self._Memory
|
@@ -37592,7 +37592,7 @@ class PodDeductionRate(AbstractModel):
|
|
37592
37592
|
|
37593
37593
|
@property
|
37594
37594
|
def Type(self):
|
37595
|
-
""" Pod
|
37595
|
+
""" Pod 的类型, intel,amd,windows-common,windows-amd,sa4,sa5,s7,s8,t4,v100,l20,l40,a10\*gnv4,a10\*gnv4v,a10\*pnv4
|
37596
37596
|
:rtype: str
|
37597
37597
|
"""
|
37598
37598
|
return self._Type
|
@@ -37825,7 +37825,7 @@ class PodNodeInfo(AbstractModel):
|
|
37825
37825
|
r"""
|
37826
37826
|
:param _ClusterId: 集群 ID
|
37827
37827
|
:type ClusterId: str
|
37828
|
-
:param _NodeName:
|
37828
|
+
:param _NodeName: 节点 ID
|
37829
37829
|
:type NodeName: str
|
37830
37830
|
:param _Zone: 可用区
|
37831
37831
|
:type Zone: str
|
@@ -37853,7 +37853,7 @@ class PodNodeInfo(AbstractModel):
|
|
37853
37853
|
|
37854
37854
|
@property
|
37855
37855
|
def NodeName(self):
|
37856
|
-
"""
|
37856
|
+
"""节点 ID
|
37857
37857
|
:rtype: str
|
37858
37858
|
"""
|
37859
37859
|
return self._NodeName
|
@@ -41642,7 +41642,7 @@ class RIUtilizationDetail(AbstractModel):
|
|
41642
41642
|
:type Name: str
|
41643
41643
|
:param _Namespace: Pod的命名空间
|
41644
41644
|
:type Namespace: str
|
41645
|
-
:param _Kind:
|
41645
|
+
:param _Kind: 工作负载类型,如 deployment、statefulset和pod等。
|
41646
41646
|
:type Kind: str
|
41647
41647
|
:param _KindName: 工作负载名称
|
41648
41648
|
:type KindName: str
|
@@ -41724,7 +41724,7 @@ class RIUtilizationDetail(AbstractModel):
|
|
41724
41724
|
|
41725
41725
|
@property
|
41726
41726
|
def Kind(self):
|
41727
|
-
"""
|
41727
|
+
"""工作负载类型,如 deployment、statefulset和pod等。
|
41728
41728
|
:rtype: str
|
41729
41729
|
"""
|
41730
41730
|
return self._Kind
|
@@ -42662,7 +42662,7 @@ class RenewReservedInstancesRequest(AbstractModel):
|
|
42662
42662
|
|
42663
42663
|
def __init__(self):
|
42664
42664
|
r"""
|
42665
|
-
:param _ReservedInstanceIds: 预留券实例ID
|
42665
|
+
:param _ReservedInstanceIds: 预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取,每次请求实例的上限为100。
|
42666
42666
|
:type ReservedInstanceIds: list of str
|
42667
42667
|
:param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。
|
42668
42668
|
:type InstanceChargePrepaid: :class:`tencentcloud.tke.v20180525.models.InstanceChargePrepaid`
|
@@ -42675,7 +42675,7 @@ class RenewReservedInstancesRequest(AbstractModel):
|
|
42675
42675
|
|
42676
42676
|
@property
|
42677
42677
|
def ReservedInstanceIds(self):
|
42678
|
-
"""预留券实例ID
|
42678
|
+
"""预留券实例ID。可通过 [DescribeReservedInstances](https://cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取,每次请求实例的上限为100。
|
42679
42679
|
:rtype: list of str
|
42680
42680
|
"""
|
42681
42681
|
return self._ReservedInstanceIds
|
@@ -42788,7 +42788,7 @@ class ReservedInstance(AbstractModel):
|
|
42788
42788
|
:type ClusterId: str
|
42789
42789
|
:param _NodeName: 节点名称
|
42790
42790
|
:type NodeName: str
|
42791
|
-
:param _DeductStatus: 上个周期预留券的抵扣状态,Deduct
|
42791
|
+
:param _DeductStatus: 上个周期预留券的抵扣状态,Deduct:已抵扣、NotDeduct:未抵扣
|
42792
42792
|
:type DeductStatus: str
|
42793
42793
|
"""
|
42794
42794
|
self._ReservedInstanceId = None
|
@@ -42975,7 +42975,7 @@ class ReservedInstance(AbstractModel):
|
|
42975
42975
|
|
42976
42976
|
@property
|
42977
42977
|
def DeductStatus(self):
|
42978
|
-
""" 上个周期预留券的抵扣状态,Deduct
|
42978
|
+
""" 上个周期预留券的抵扣状态,Deduct:已抵扣、NotDeduct:未抵扣
|
42979
42979
|
:rtype: str
|
42980
42980
|
"""
|
42981
42981
|
return self._DeductStatus
|
@@ -43025,7 +43025,7 @@ class ReservedInstanceScope(AbstractModel):
|
|
43025
43025
|
:type Zone: str
|
43026
43026
|
:param _ClusterId: 集群 ID
|
43027
43027
|
:type ClusterId: str
|
43028
|
-
:param _NodeName:
|
43028
|
+
:param _NodeName: 节点 ID
|
43029
43029
|
:type NodeName: str
|
43030
43030
|
"""
|
43031
43031
|
self._Scope = None
|
@@ -43068,7 +43068,7 @@ class ReservedInstanceScope(AbstractModel):
|
|
43068
43068
|
|
43069
43069
|
@property
|
43070
43070
|
def NodeName(self):
|
43071
|
-
"""
|
43071
|
+
"""节点 ID
|
43072
43072
|
:rtype: str
|
43073
43073
|
"""
|
43074
43074
|
return self._NodeName
|
@@ -43104,7 +43104,7 @@ class ReservedInstanceSpec(AbstractModel):
|
|
43104
43104
|
:type Type: str
|
43105
43105
|
:param _Cpu: 核数
|
43106
43106
|
:type Cpu: float
|
43107
|
-
:param _Memory:
|
43107
|
+
:param _Memory: 内存,单位:GiB
|
43108
43108
|
:type Memory: float
|
43109
43109
|
:param _Gpu: GPU卡数,当Type为GPU类型时设置。
|
43110
43110
|
:type Gpu: float
|
@@ -43138,7 +43138,7 @@ class ReservedInstanceSpec(AbstractModel):
|
|
43138
43138
|
|
43139
43139
|
@property
|
43140
43140
|
def Memory(self):
|
43141
|
-
"""
|
43141
|
+
"""内存,单位:GiB
|
43142
43142
|
:rtype: float
|
43143
43143
|
"""
|
43144
43144
|
return self._Memory
|
@@ -43187,9 +43187,9 @@ class ReservedInstanceUtilizationRate(AbstractModel):
|
|
43187
43187
|
:type Num: int
|
43188
43188
|
:param _CPU: 核数
|
43189
43189
|
:type CPU: float
|
43190
|
-
:param _Memory:
|
43190
|
+
:param _Memory: 内存,单位:GiB
|
43191
43191
|
:type Memory: float
|
43192
|
-
:param _Type:
|
43192
|
+
:param _Type: 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10\*gnv4,a10\*gnv4v,a10\*pnv4
|
43193
43193
|
:type Type: str
|
43194
43194
|
:param _GpuNum: GPU 卡数
|
43195
43195
|
:type GpuNum: str
|
@@ -43197,7 +43197,7 @@ class ReservedInstanceUtilizationRate(AbstractModel):
|
|
43197
43197
|
:type Zone: str
|
43198
43198
|
:param _ClusterId: 集群 ID
|
43199
43199
|
:type ClusterId: str
|
43200
|
-
:param _NodeName:
|
43200
|
+
:param _NodeName: 节点 ID
|
43201
43201
|
:type NodeName: str
|
43202
43202
|
:param _PodNum: Pod 数量
|
43203
43203
|
:type PodNum: int
|
@@ -43248,7 +43248,7 @@ class ReservedInstanceUtilizationRate(AbstractModel):
|
|
43248
43248
|
|
43249
43249
|
@property
|
43250
43250
|
def Memory(self):
|
43251
|
-
"""
|
43251
|
+
"""内存,单位:GiB
|
43252
43252
|
:rtype: float
|
43253
43253
|
"""
|
43254
43254
|
return self._Memory
|
@@ -43259,7 +43259,7 @@ class ReservedInstanceUtilizationRate(AbstractModel):
|
|
43259
43259
|
|
43260
43260
|
@property
|
43261
43261
|
def Type(self):
|
43262
|
-
"""
|
43262
|
+
""" 预留券类型, common:CPU通用,amd:AMD专用,windows-common: Windows容器 CPU通用,windows-amd:Windows容器 AMD专用,sa4,sa5,s7,s8,t4,v100,l20,l40,a10\*gnv4,a10\*gnv4v,a10\*pnv4
|
43263
43263
|
:rtype: str
|
43264
43264
|
"""
|
43265
43265
|
return self._Type
|
@@ -43303,7 +43303,7 @@ class ReservedInstanceUtilizationRate(AbstractModel):
|
|
43303
43303
|
|
43304
43304
|
@property
|
43305
43305
|
def NodeName(self):
|
43306
|
-
"""
|
43306
|
+
"""节点 ID
|
43307
43307
|
:rtype: str
|
43308
43308
|
"""
|
43309
43309
|
return self._NodeName
|