tencentcloud-sdk-python 3.0.1479__py2.py3-none-any.whl → 3.0.1481__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/autoscaling/v20180419/autoscaling_client.py +2 -2
- tencentcloud/autoscaling/v20180419/models.py +42 -0
- tencentcloud/billing/v20180709/models.py +8 -8
- tencentcloud/cam/v20190116/errorcodes.py +3 -0
- tencentcloud/cam/v20190116/models.py +0 -2
- tencentcloud/cdn/v20180606/errorcodes.py +3 -0
- tencentcloud/cdwdoris/v20211228/models.py +20 -0
- tencentcloud/ckafka/v20190819/models.py +2 -0
- tencentcloud/cloudaudit/v20190319/models.py +17 -0
- tencentcloud/cls/v20201016/errorcodes.py +9 -0
- tencentcloud/cvm/v20170312/models.py +2 -32
- tencentcloud/dbbrain/v20210527/models.py +18 -3
- tencentcloud/dlc/v20210125/models.py +45 -0
- tencentcloud/ess/v20201111/models.py +101 -2
- tencentcloud/essbasic/v20210526/models.py +139 -10
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +46 -0
- tencentcloud/iotexplorer/v20190423/models.py +162 -0
- tencentcloud/lcic/v20220817/models.py +22 -2
- tencentcloud/live/v20180801/models.py +2 -0
- tencentcloud/lke/v20231130/models.py +4 -2
- tencentcloud/lkeap/v20240522/errorcodes.py +1 -1
- tencentcloud/monitor/v20180724/models.py +30 -0
- tencentcloud/mps/v20190612/errorcodes.py +6 -0
- tencentcloud/mps/v20190612/models.py +231 -4
- tencentcloud/oceanus/v20190422/models.py +4 -4
- tencentcloud/ocr/v20181119/models.py +159 -0
- tencentcloud/ocr/v20181119/ocr_client.py +25 -0
- tencentcloud/organization/v20210331/models.py +15 -0
- tencentcloud/postgres/v20170312/errorcodes.py +9 -0
- tencentcloud/postgres/v20170312/models.py +488 -79
- tencentcloud/redis/v20180412/models.py +213 -24
- tencentcloud/region/v20220627/models.py +0 -2
- tencentcloud/sqlserver/v20180328/models.py +49 -4
- tencentcloud/svp/v20240125/models.py +21 -4
- tencentcloud/tag/v20180813/models.py +5 -5
- tencentcloud/tcss/v20201101/models.py +157 -0
- tencentcloud/teo/v20220901/models.py +1963 -220
- tencentcloud/tione/v20211111/models.py +162 -0
- tencentcloud/tione/v20211111/tione_client.py +69 -0
- tencentcloud/tke/v20180525/models.py +136 -22
- tencentcloud/tke/v20220501/models.py +21 -6
- tencentcloud/tms/v20201229/errorcodes.py +30 -0
- tencentcloud/tms/v20201229/models.py +461 -0
- tencentcloud/tms/v20201229/tms_client.py +48 -1
- tencentcloud/trro/v20220325/errorcodes.py +3 -0
- tencentcloud/trro/v20220325/models.py +739 -0
- tencentcloud/trro/v20220325/trro_client.py +46 -0
- tencentcloud/trtc/v20190722/models.py +32 -36
- tencentcloud/tsf/v20180326/errorcodes.py +3 -0
- tencentcloud/tsf/v20180326/models.py +96 -0
- tencentcloud/vclm/v20240523/models.py +260 -0
- tencentcloud/vclm/v20240523/vclm_client.py +46 -0
- tencentcloud/vpc/v20170312/models.py +175 -10
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/RECORD +60 -60
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1479.dist-info → tencentcloud_sdk_python-3.0.1481.dist-info}/top_level.txt +0 -0
|
@@ -1412,6 +1412,40 @@ class CreateDatasetResponse(AbstractModel):
|
|
|
1412
1412
|
self._RequestId = params.get("RequestId")
|
|
1413
1413
|
|
|
1414
1414
|
|
|
1415
|
+
class CreateExportRequest(AbstractModel):
|
|
1416
|
+
r"""CreateExport请求参数结构体
|
|
1417
|
+
|
|
1418
|
+
"""
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
class CreateExportResponse(AbstractModel):
|
|
1422
|
+
r"""CreateExport返回参数结构体
|
|
1423
|
+
|
|
1424
|
+
"""
|
|
1425
|
+
|
|
1426
|
+
def __init__(self):
|
|
1427
|
+
r"""
|
|
1428
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1429
|
+
:type RequestId: str
|
|
1430
|
+
"""
|
|
1431
|
+
self._RequestId = None
|
|
1432
|
+
|
|
1433
|
+
@property
|
|
1434
|
+
def RequestId(self):
|
|
1435
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1436
|
+
:rtype: str
|
|
1437
|
+
"""
|
|
1438
|
+
return self._RequestId
|
|
1439
|
+
|
|
1440
|
+
@RequestId.setter
|
|
1441
|
+
def RequestId(self, RequestId):
|
|
1442
|
+
self._RequestId = RequestId
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
def _deserialize(self, params):
|
|
1446
|
+
self._RequestId = params.get("RequestId")
|
|
1447
|
+
|
|
1448
|
+
|
|
1415
1449
|
class CreateModelServiceAuthTokenRequest(AbstractModel):
|
|
1416
1450
|
r"""CreateModelServiceAuthToken请求参数结构体
|
|
1417
1451
|
|
|
@@ -5680,6 +5714,70 @@ class DeleteDatasetResponse(AbstractModel):
|
|
|
5680
5714
|
self._RequestId = params.get("RequestId")
|
|
5681
5715
|
|
|
5682
5716
|
|
|
5717
|
+
class DeleteExportRequest(AbstractModel):
|
|
5718
|
+
r"""DeleteExport请求参数结构体
|
|
5719
|
+
|
|
5720
|
+
"""
|
|
5721
|
+
|
|
5722
|
+
def __init__(self):
|
|
5723
|
+
r"""
|
|
5724
|
+
:param _ExportId: 日志下载任务的ID
|
|
5725
|
+
:type ExportId: str
|
|
5726
|
+
"""
|
|
5727
|
+
self._ExportId = None
|
|
5728
|
+
|
|
5729
|
+
@property
|
|
5730
|
+
def ExportId(self):
|
|
5731
|
+
r"""日志下载任务的ID
|
|
5732
|
+
:rtype: str
|
|
5733
|
+
"""
|
|
5734
|
+
return self._ExportId
|
|
5735
|
+
|
|
5736
|
+
@ExportId.setter
|
|
5737
|
+
def ExportId(self, ExportId):
|
|
5738
|
+
self._ExportId = ExportId
|
|
5739
|
+
|
|
5740
|
+
|
|
5741
|
+
def _deserialize(self, params):
|
|
5742
|
+
self._ExportId = params.get("ExportId")
|
|
5743
|
+
memeber_set = set(params.keys())
|
|
5744
|
+
for name, value in vars(self).items():
|
|
5745
|
+
property_name = name[1:]
|
|
5746
|
+
if property_name in memeber_set:
|
|
5747
|
+
memeber_set.remove(property_name)
|
|
5748
|
+
if len(memeber_set) > 0:
|
|
5749
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5750
|
+
|
|
5751
|
+
|
|
5752
|
+
|
|
5753
|
+
class DeleteExportResponse(AbstractModel):
|
|
5754
|
+
r"""DeleteExport返回参数结构体
|
|
5755
|
+
|
|
5756
|
+
"""
|
|
5757
|
+
|
|
5758
|
+
def __init__(self):
|
|
5759
|
+
r"""
|
|
5760
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5761
|
+
:type RequestId: str
|
|
5762
|
+
"""
|
|
5763
|
+
self._RequestId = None
|
|
5764
|
+
|
|
5765
|
+
@property
|
|
5766
|
+
def RequestId(self):
|
|
5767
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5768
|
+
:rtype: str
|
|
5769
|
+
"""
|
|
5770
|
+
return self._RequestId
|
|
5771
|
+
|
|
5772
|
+
@RequestId.setter
|
|
5773
|
+
def RequestId(self, RequestId):
|
|
5774
|
+
self._RequestId = RequestId
|
|
5775
|
+
|
|
5776
|
+
|
|
5777
|
+
def _deserialize(self, params):
|
|
5778
|
+
self._RequestId = params.get("RequestId")
|
|
5779
|
+
|
|
5780
|
+
|
|
5683
5781
|
class DeleteModelServiceAuthTokenRequest(AbstractModel):
|
|
5684
5782
|
r"""DeleteModelServiceAuthToken请求参数结构体
|
|
5685
5783
|
|
|
@@ -7552,6 +7650,70 @@ class DescribeEventsResponse(AbstractModel):
|
|
|
7552
7650
|
self._RequestId = params.get("RequestId")
|
|
7553
7651
|
|
|
7554
7652
|
|
|
7653
|
+
class DescribeExportRequest(AbstractModel):
|
|
7654
|
+
r"""DescribeExport请求参数结构体
|
|
7655
|
+
|
|
7656
|
+
"""
|
|
7657
|
+
|
|
7658
|
+
|
|
7659
|
+
class DescribeExportResponse(AbstractModel):
|
|
7660
|
+
r"""DescribeExport返回参数结构体
|
|
7661
|
+
|
|
7662
|
+
"""
|
|
7663
|
+
|
|
7664
|
+
def __init__(self):
|
|
7665
|
+
r"""
|
|
7666
|
+
:param _FileSize: 日志文件大小
|
|
7667
|
+
:type FileSize: str
|
|
7668
|
+
:param _Status: 日志下载状态。Processing:导出正在进行中,Completed:导出完成,Failed:导出失败,Expired:日志导出已过期(三天有效期), Queuing 排队中
|
|
7669
|
+
:type Status: str
|
|
7670
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7671
|
+
:type RequestId: str
|
|
7672
|
+
"""
|
|
7673
|
+
self._FileSize = None
|
|
7674
|
+
self._Status = None
|
|
7675
|
+
self._RequestId = None
|
|
7676
|
+
|
|
7677
|
+
@property
|
|
7678
|
+
def FileSize(self):
|
|
7679
|
+
r"""日志文件大小
|
|
7680
|
+
:rtype: str
|
|
7681
|
+
"""
|
|
7682
|
+
return self._FileSize
|
|
7683
|
+
|
|
7684
|
+
@FileSize.setter
|
|
7685
|
+
def FileSize(self, FileSize):
|
|
7686
|
+
self._FileSize = FileSize
|
|
7687
|
+
|
|
7688
|
+
@property
|
|
7689
|
+
def Status(self):
|
|
7690
|
+
r"""日志下载状态。Processing:导出正在进行中,Completed:导出完成,Failed:导出失败,Expired:日志导出已过期(三天有效期), Queuing 排队中
|
|
7691
|
+
:rtype: str
|
|
7692
|
+
"""
|
|
7693
|
+
return self._Status
|
|
7694
|
+
|
|
7695
|
+
@Status.setter
|
|
7696
|
+
def Status(self, Status):
|
|
7697
|
+
self._Status = Status
|
|
7698
|
+
|
|
7699
|
+
@property
|
|
7700
|
+
def RequestId(self):
|
|
7701
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7702
|
+
:rtype: str
|
|
7703
|
+
"""
|
|
7704
|
+
return self._RequestId
|
|
7705
|
+
|
|
7706
|
+
@RequestId.setter
|
|
7707
|
+
def RequestId(self, RequestId):
|
|
7708
|
+
self._RequestId = RequestId
|
|
7709
|
+
|
|
7710
|
+
|
|
7711
|
+
def _deserialize(self, params):
|
|
7712
|
+
self._FileSize = params.get("FileSize")
|
|
7713
|
+
self._Status = params.get("Status")
|
|
7714
|
+
self._RequestId = params.get("RequestId")
|
|
7715
|
+
|
|
7716
|
+
|
|
7555
7717
|
class DescribeInferTemplatesRequest(AbstractModel):
|
|
7556
7718
|
r"""DescribeInferTemplates请求参数结构体
|
|
7557
7719
|
|
|
@@ -75,6 +75,29 @@ class TioneClient(AbstractClient):
|
|
|
75
75
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
76
76
|
|
|
77
77
|
|
|
78
|
+
def CreateExport(self, request):
|
|
79
|
+
r"""创建任务式建模训练任务,Notebook,在线服务和批量预测任务日志下载任务API
|
|
80
|
+
|
|
81
|
+
:param request: Request instance for CreateExport.
|
|
82
|
+
:type request: :class:`tencentcloud.tione.v20211111.models.CreateExportRequest`
|
|
83
|
+
:rtype: :class:`tencentcloud.tione.v20211111.models.CreateExportResponse`
|
|
84
|
+
|
|
85
|
+
"""
|
|
86
|
+
try:
|
|
87
|
+
params = request._serialize()
|
|
88
|
+
headers = request.headers
|
|
89
|
+
body = self.call("CreateExport", params, headers=headers)
|
|
90
|
+
response = json.loads(body)
|
|
91
|
+
model = models.CreateExportResponse()
|
|
92
|
+
model._deserialize(response["Response"])
|
|
93
|
+
return model
|
|
94
|
+
except Exception as e:
|
|
95
|
+
if isinstance(e, TencentCloudSDKException):
|
|
96
|
+
raise
|
|
97
|
+
else:
|
|
98
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
99
|
+
|
|
100
|
+
|
|
78
101
|
def CreateModelService(self, request):
|
|
79
102
|
r"""用于创建、发布一个新的模型服务
|
|
80
103
|
|
|
@@ -236,6 +259,29 @@ class TioneClient(AbstractClient):
|
|
|
236
259
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
237
260
|
|
|
238
261
|
|
|
262
|
+
def DeleteExport(self, request):
|
|
263
|
+
r"""删除任务式建模训练任务,Notebook,在线服务和批量预测任务日志导出任务API
|
|
264
|
+
|
|
265
|
+
:param request: Request instance for DeleteExport.
|
|
266
|
+
:type request: :class:`tencentcloud.tione.v20211111.models.DeleteExportRequest`
|
|
267
|
+
:rtype: :class:`tencentcloud.tione.v20211111.models.DeleteExportResponse`
|
|
268
|
+
|
|
269
|
+
"""
|
|
270
|
+
try:
|
|
271
|
+
params = request._serialize()
|
|
272
|
+
headers = request.headers
|
|
273
|
+
body = self.call("DeleteExport", params, headers=headers)
|
|
274
|
+
response = json.loads(body)
|
|
275
|
+
model = models.DeleteExportResponse()
|
|
276
|
+
model._deserialize(response["Response"])
|
|
277
|
+
return model
|
|
278
|
+
except Exception as e:
|
|
279
|
+
if isinstance(e, TencentCloudSDKException):
|
|
280
|
+
raise
|
|
281
|
+
else:
|
|
282
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
283
|
+
|
|
284
|
+
|
|
239
285
|
def DeleteModelService(self, request):
|
|
240
286
|
r"""根据服务id删除模型服务
|
|
241
287
|
|
|
@@ -581,6 +627,29 @@ class TioneClient(AbstractClient):
|
|
|
581
627
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
582
628
|
|
|
583
629
|
|
|
630
|
+
def DescribeExport(self, request):
|
|
631
|
+
r"""查看任务式建模训练任务,Notebook,在线服务和批量预测任务日志下载任务状态API
|
|
632
|
+
|
|
633
|
+
:param request: Request instance for DescribeExport.
|
|
634
|
+
:type request: :class:`tencentcloud.tione.v20211111.models.DescribeExportRequest`
|
|
635
|
+
:rtype: :class:`tencentcloud.tione.v20211111.models.DescribeExportResponse`
|
|
636
|
+
|
|
637
|
+
"""
|
|
638
|
+
try:
|
|
639
|
+
params = request._serialize()
|
|
640
|
+
headers = request.headers
|
|
641
|
+
body = self.call("DescribeExport", params, headers=headers)
|
|
642
|
+
response = json.loads(body)
|
|
643
|
+
model = models.DescribeExportResponse()
|
|
644
|
+
model._deserialize(response["Response"])
|
|
645
|
+
return model
|
|
646
|
+
except Exception as e:
|
|
647
|
+
if isinstance(e, TencentCloudSDKException):
|
|
648
|
+
raise
|
|
649
|
+
else:
|
|
650
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
651
|
+
|
|
652
|
+
|
|
584
653
|
def DescribeInferTemplates(self, request):
|
|
585
654
|
r"""已废弃,收敛到统一接口
|
|
586
655
|
|
|
@@ -572,7 +572,7 @@ class AddVpcCniSubnetsRequest(AbstractModel):
|
|
|
572
572
|
|
|
573
573
|
def __init__(self):
|
|
574
574
|
r"""
|
|
575
|
-
:param _ClusterId: 集群ID
|
|
575
|
+
:param _ClusterId: 集群 ID,请[登录控制台](https://console.cloud.tencent.com/tke2/cluster)在集群列表复制ID
|
|
576
576
|
:type ClusterId: str
|
|
577
577
|
:param _SubnetIds: 为集群容器网络增加的子网列表
|
|
578
578
|
:type SubnetIds: list of str
|
|
@@ -588,7 +588,7 @@ class AddVpcCniSubnetsRequest(AbstractModel):
|
|
|
588
588
|
|
|
589
589
|
@property
|
|
590
590
|
def ClusterId(self):
|
|
591
|
-
r"""集群ID
|
|
591
|
+
r"""集群 ID,请[登录控制台](https://console.cloud.tencent.com/tke2/cluster)在集群列表复制ID
|
|
592
592
|
:rtype: str
|
|
593
593
|
"""
|
|
594
594
|
return self._ClusterId
|
|
@@ -5340,7 +5340,7 @@ class CreateCLSLogConfigRequest(AbstractModel):
|
|
|
5340
5340
|
:type ClusterId: str
|
|
5341
5341
|
:param _LogsetId: CLS日志集ID
|
|
5342
5342
|
:type LogsetId: str
|
|
5343
|
-
:param _ClusterType: 当前集群类型支持tke
|
|
5343
|
+
:param _ClusterType: 当前集群类型支持tke(标准集群)、eks(serverless集群)
|
|
5344
5344
|
:type ClusterType: str
|
|
5345
5345
|
"""
|
|
5346
5346
|
self._LogConfig = None
|
|
@@ -5383,7 +5383,7 @@ class CreateCLSLogConfigRequest(AbstractModel):
|
|
|
5383
5383
|
|
|
5384
5384
|
@property
|
|
5385
5385
|
def ClusterType(self):
|
|
5386
|
-
r"""当前集群类型支持tke
|
|
5386
|
+
r"""当前集群类型支持tke(标准集群)、eks(serverless集群)
|
|
5387
5387
|
:rtype: str
|
|
5388
5388
|
"""
|
|
5389
5389
|
return self._ClusterType
|
|
@@ -16296,7 +16296,7 @@ class DescribeClusterRoutesRequest(AbstractModel):
|
|
|
16296
16296
|
|
|
16297
16297
|
def __init__(self):
|
|
16298
16298
|
r"""
|
|
16299
|
-
:param _RouteTableName:
|
|
16299
|
+
:param _RouteTableName: 路由表名称。与集群 ID 一致,可以到[集群控制台](https://console.cloud.tencent.com/tke2)进行复制。
|
|
16300
16300
|
:type RouteTableName: str
|
|
16301
16301
|
:param _Filters: 过滤条件,当前只支持按照单个条件GatewayIP进行过滤(可选)
|
|
16302
16302
|
:type Filters: list of Filter
|
|
@@ -16306,7 +16306,7 @@ class DescribeClusterRoutesRequest(AbstractModel):
|
|
|
16306
16306
|
|
|
16307
16307
|
@property
|
|
16308
16308
|
def RouteTableName(self):
|
|
16309
|
-
r"""
|
|
16309
|
+
r"""路由表名称。与集群 ID 一致,可以到[集群控制台](https://console.cloud.tencent.com/tke2)进行复制。
|
|
16310
16310
|
:rtype: str
|
|
16311
16311
|
"""
|
|
16312
16312
|
return self._RouteTableName
|
|
@@ -19457,14 +19457,14 @@ class DescribeIPAMDRequest(AbstractModel):
|
|
|
19457
19457
|
|
|
19458
19458
|
def __init__(self):
|
|
19459
19459
|
r"""
|
|
19460
|
-
:param _ClusterId: 集群ID
|
|
19460
|
+
:param _ClusterId: 集群 ID,请[登录控制台](https://console.cloud.tencent.com/tke2/cluster)在集群列表复制ID
|
|
19461
19461
|
:type ClusterId: str
|
|
19462
19462
|
"""
|
|
19463
19463
|
self._ClusterId = None
|
|
19464
19464
|
|
|
19465
19465
|
@property
|
|
19466
19466
|
def ClusterId(self):
|
|
19467
|
-
r"""集群ID
|
|
19467
|
+
r"""集群 ID,请[登录控制台](https://console.cloud.tencent.com/tke2/cluster)在集群列表复制ID
|
|
19468
19468
|
:rtype: str
|
|
19469
19469
|
"""
|
|
19470
19470
|
return self._ClusterId
|
|
@@ -20330,7 +20330,7 @@ class DescribeOpenPolicyListRequest(AbstractModel):
|
|
|
20330
20330
|
|
|
20331
20331
|
def __init__(self):
|
|
20332
20332
|
r"""
|
|
20333
|
-
:param _ClusterId: 集群ID
|
|
20333
|
+
:param _ClusterId: 集群ID,请从容器服务集群列表获取(https://console.cloud.tencent.com/tke2/cluster)
|
|
20334
20334
|
:type ClusterId: str
|
|
20335
20335
|
:param _Category: 策略分类 基线:baseline 优选:priority 可选:optional
|
|
20336
20336
|
:type Category: str
|
|
@@ -20340,7 +20340,7 @@ class DescribeOpenPolicyListRequest(AbstractModel):
|
|
|
20340
20340
|
|
|
20341
20341
|
@property
|
|
20342
20342
|
def ClusterId(self):
|
|
20343
|
-
r"""集群ID
|
|
20343
|
+
r"""集群ID,请从容器服务集群列表获取(https://console.cloud.tencent.com/tke2/cluster)
|
|
20344
20344
|
:rtype: str
|
|
20345
20345
|
"""
|
|
20346
20346
|
return self._ClusterId
|
|
@@ -24449,7 +24449,7 @@ class DescribeRouteTableConflictsRequest(AbstractModel):
|
|
|
24449
24449
|
r"""
|
|
24450
24450
|
:param _RouteTableCidrBlock: 路由表CIDR
|
|
24451
24451
|
:type RouteTableCidrBlock: str
|
|
24452
|
-
:param _VpcId: 路由表绑定的VPC
|
|
24452
|
+
:param _VpcId: 路由表绑定的VPC,请到 [VPC 控制台](https://console.cloud.tencent.com/vpc/vpc)复制 VPC ID
|
|
24453
24453
|
:type VpcId: str
|
|
24454
24454
|
"""
|
|
24455
24455
|
self._RouteTableCidrBlock = None
|
|
@@ -24468,7 +24468,7 @@ class DescribeRouteTableConflictsRequest(AbstractModel):
|
|
|
24468
24468
|
|
|
24469
24469
|
@property
|
|
24470
24470
|
def VpcId(self):
|
|
24471
|
-
r"""路由表绑定的VPC
|
|
24471
|
+
r"""路由表绑定的VPC,请到 [VPC 控制台](https://console.cloud.tencent.com/vpc/vpc)复制 VPC ID
|
|
24472
24472
|
:rtype: str
|
|
24473
24473
|
"""
|
|
24474
24474
|
return self._VpcId
|
|
@@ -27865,9 +27865,9 @@ class EnableClusterAuditRequest(AbstractModel):
|
|
|
27865
27865
|
r"""
|
|
27866
27866
|
:param _ClusterId: 集群ID
|
|
27867
27867
|
:type ClusterId: str
|
|
27868
|
-
:param _LogsetId: CLS日志集ID
|
|
27868
|
+
:param _LogsetId: CLS日志集ID,可以通过cls接口或者控制台获取
|
|
27869
27869
|
:type LogsetId: str
|
|
27870
|
-
:param _TopicId: CLS日志主题ID
|
|
27870
|
+
:param _TopicId: CLS日志主题ID,可以通过cls接口或者控制台获取
|
|
27871
27871
|
:type TopicId: str
|
|
27872
27872
|
:param _TopicRegion: topic所在region,默认为集群当前region
|
|
27873
27873
|
:type TopicRegion: str
|
|
@@ -27890,7 +27890,7 @@ class EnableClusterAuditRequest(AbstractModel):
|
|
|
27890
27890
|
|
|
27891
27891
|
@property
|
|
27892
27892
|
def LogsetId(self):
|
|
27893
|
-
r"""CLS日志集ID
|
|
27893
|
+
r"""CLS日志集ID,可以通过cls接口或者控制台获取
|
|
27894
27894
|
:rtype: str
|
|
27895
27895
|
"""
|
|
27896
27896
|
return self._LogsetId
|
|
@@ -27901,7 +27901,7 @@ class EnableClusterAuditRequest(AbstractModel):
|
|
|
27901
27901
|
|
|
27902
27902
|
@property
|
|
27903
27903
|
def TopicId(self):
|
|
27904
|
-
r"""CLS日志主题ID
|
|
27904
|
+
r"""CLS日志主题ID,可以通过cls接口或者控制台获取
|
|
27905
27905
|
:rtype: str
|
|
27906
27906
|
"""
|
|
27907
27907
|
return self._TopicId
|
|
@@ -28119,9 +28119,9 @@ class EnableEventPersistenceRequest(AbstractModel):
|
|
|
28119
28119
|
r"""
|
|
28120
28120
|
:param _ClusterId: 集群ID
|
|
28121
28121
|
:type ClusterId: str
|
|
28122
|
-
:param _LogsetId: cls服务的logsetID
|
|
28122
|
+
:param _LogsetId: cls服务的logsetID,通过cls接口或者控制台获取
|
|
28123
28123
|
:type LogsetId: str
|
|
28124
|
-
:param _TopicId: cls服务的topicID
|
|
28124
|
+
:param _TopicId: cls服务的topicID,通过cls接口或者控制台获取
|
|
28125
28125
|
:type TopicId: str
|
|
28126
28126
|
:param _TopicRegion: topic所在地域,默认为集群所在地域
|
|
28127
28127
|
:type TopicRegion: str
|
|
@@ -28144,7 +28144,7 @@ class EnableEventPersistenceRequest(AbstractModel):
|
|
|
28144
28144
|
|
|
28145
28145
|
@property
|
|
28146
28146
|
def LogsetId(self):
|
|
28147
|
-
r"""cls服务的logsetID
|
|
28147
|
+
r"""cls服务的logsetID,通过cls接口或者控制台获取
|
|
28148
28148
|
:rtype: str
|
|
28149
28149
|
"""
|
|
28150
28150
|
return self._LogsetId
|
|
@@ -28155,7 +28155,7 @@ class EnableEventPersistenceRequest(AbstractModel):
|
|
|
28155
28155
|
|
|
28156
28156
|
@property
|
|
28157
28157
|
def TopicId(self):
|
|
28158
|
-
r"""cls服务的topicID
|
|
28158
|
+
r"""cls服务的topicID,通过cls接口或者控制台获取
|
|
28159
28159
|
:rtype: str
|
|
28160
28160
|
"""
|
|
28161
28161
|
return self._TopicId
|
|
@@ -37075,7 +37075,63 @@ class OpenPolicyInfo(AbstractModel):
|
|
|
37075
37075
|
:type EventNums: int
|
|
37076
37076
|
:param _Name: 策略英文名称
|
|
37077
37077
|
:type Name: str
|
|
37078
|
-
:param _Kind:
|
|
37078
|
+
:param _Kind: 策略模板类型,支持的类型如下:
|
|
37079
|
+
优选策略:
|
|
37080
|
+
blocknamespacedeletion:存在pod的命名空间不允许删除
|
|
37081
|
+
blockcrddeletion:存在cr的crd不允许删除
|
|
37082
|
+
blockmountablevolumetype:禁止挂载指定的volume类型
|
|
37083
|
+
disallowalwayspullimage:禁止镜像拉取策略使用Always
|
|
37084
|
+
tkeallowedrepos:容器镜像来源限制
|
|
37085
|
+
blockunknowndaemonset:禁止未知的DaemonSet部署
|
|
37086
|
+
blockpvdeletion:PV处于绑定状态则不允许删除
|
|
37087
|
+
corednsprotect:CoreDNS组件删除保护
|
|
37088
|
+
blockschedulablenodedelete:非封锁状态的Node不允许删除
|
|
37089
|
+
resourcesdeletionprotection:资源删除保护
|
|
37090
|
+
tkeenirequest:弹性网卡资源配置限制
|
|
37091
|
+
blockworkloadcrossversionupgrade:工作负载镜像版本升级策略管控
|
|
37092
|
+
blockserviceaccountgranthighprivilegepermission:ServiceAccount权限管控
|
|
37093
|
+
blockclusteripserviceexist:不允许Service为ClusterIP类型
|
|
37094
|
+
blockinternetaccess:禁止公网访问
|
|
37095
|
+
assign:禁止访问Metadata Server
|
|
37096
|
+
blockhostnetworkpod:禁止创建HostNetwork类型Pod
|
|
37097
|
+
|
|
37098
|
+
可选策略:
|
|
37099
|
+
blockvolumemountpath:禁止容器挂载指定的目录
|
|
37100
|
+
k8sallowedrepos:容器镜像必须以指定字符串列表中的字符串开头
|
|
37101
|
+
k8sblockendpointeditdefaultrole:禁止默认ClusterRole修改Endpoints
|
|
37102
|
+
k8sblockloadbalancer:不允许Service为LoadBalancer类型
|
|
37103
|
+
k8sblocknodeport:不允许Service为NodePort类型
|
|
37104
|
+
k8sblockwildcardingress:禁止ingress配置空白或通配符类型的hostname
|
|
37105
|
+
k8scontainerlimits:限制容器必须设置CPU和内存Limit
|
|
37106
|
+
k8scontainerratios:限制CPU和内存的Request与Limit的最大比率
|
|
37107
|
+
k8scontainerrequests:限制CPU和内存的Request必须设置且小于配置的最大值
|
|
37108
|
+
k8srequiredresources:必须配置内存的Limit,CPU和内存的Request
|
|
37109
|
+
k8sdisallowanonymous:不允许将白名单以外的ClusterRole和Role关联到system:anonymous User和system:unauthenticated Group
|
|
37110
|
+
k8sdisallowedtags:约束容器镜像tag
|
|
37111
|
+
k8sexternalips:限制服务externalIP仅为允许的IP地址列表
|
|
37112
|
+
k8simagedigests:容器镜像必须包含digest
|
|
37113
|
+
noupdateserviceaccount:拒绝白名单外的资源更新ServiceAccount
|
|
37114
|
+
k8sreplicalimits:要求具有spec.replicas字段的对象(Deployments、ReplicaSets等)在定义的范围内
|
|
37115
|
+
k8srequiredannotations:要求资源包含指定的annotations,其值与提供的正则表达式匹配
|
|
37116
|
+
k8srequiredlabels:要求资源包含指定的标签,其值与提供的正则表达式匹配
|
|
37117
|
+
k8srequiredprobes:要求Pod具有Readiness或Liveness Probe
|
|
37118
|
+
k8spspautomountserviceaccounttokenpod:约束容器不能设置automountServiceAccountToken为true
|
|
37119
|
+
k8spspallowprivilegeescalationcontainer:约束PodSecurityPolicy中的allowPrivilegeEscalation字段为false
|
|
37120
|
+
k8spspapparmor:约束AppArmor字段列表
|
|
37121
|
+
k8spspcapabilities:限制PodSecurityPolicy中的allowedCapabilities和requiredDropCapabilities字段
|
|
37122
|
+
k8spspflexvolumes:约束PodSecurityPolicy中的allowedFlexVolumes字段类型
|
|
37123
|
+
k8spspforbiddensysctls:约束PodSecurityPolicy中的sysctls字段不能使用的name
|
|
37124
|
+
k8spspfsgroup:控制PodSecurityPolicy中的fsGroup字段在限制范围内
|
|
37125
|
+
k8spsphostfilesystem:约束PodSecurityPolicy中的hostPath字段的参数
|
|
37126
|
+
k8spsphostnamespace:限制PodSecurityPolicy中的hostPID和hostIPC字段
|
|
37127
|
+
k8spsphostnetworkingports:约束PodSecurityPolicy中的hostNetwork和hostPorts字段
|
|
37128
|
+
k8spspprivilegedcontainer:禁止PodSecurityPolicy中的privileged字段为true
|
|
37129
|
+
k8spspprocmount:约束PodSecurityPolicy中的allowedProcMountTypes字段
|
|
37130
|
+
k8spspreadonlyrootfilesystem:约束PodSecurityPolicy中的readOnlyRootFilesystem字段
|
|
37131
|
+
k8spspseccomp:约束PodSecurityPolicy上的seccomp.security.alpha.kubernetes.io/allowedProfileNames注解
|
|
37132
|
+
k8spspselinuxv2:约束Pod定义SELinux配置的允许列表
|
|
37133
|
+
k8spspallowedusers:约束PodSecurityPolicy中的runAsUser、runAsGroup、supplementalGroups和fsGroup字段
|
|
37134
|
+
k8spspvolumetypes:约束PodSecurityPolicy中的volumes字段类型
|
|
37079
37135
|
:type Kind: str
|
|
37080
37136
|
:param _EnabledStatus: 策略开关状态:open打开,close关闭
|
|
37081
37137
|
:type EnabledStatus: str
|
|
@@ -37164,7 +37220,63 @@ class OpenPolicyInfo(AbstractModel):
|
|
|
37164
37220
|
|
|
37165
37221
|
@property
|
|
37166
37222
|
def Kind(self):
|
|
37167
|
-
r"""
|
|
37223
|
+
r"""策略模板类型,支持的类型如下:
|
|
37224
|
+
优选策略:
|
|
37225
|
+
blocknamespacedeletion:存在pod的命名空间不允许删除
|
|
37226
|
+
blockcrddeletion:存在cr的crd不允许删除
|
|
37227
|
+
blockmountablevolumetype:禁止挂载指定的volume类型
|
|
37228
|
+
disallowalwayspullimage:禁止镜像拉取策略使用Always
|
|
37229
|
+
tkeallowedrepos:容器镜像来源限制
|
|
37230
|
+
blockunknowndaemonset:禁止未知的DaemonSet部署
|
|
37231
|
+
blockpvdeletion:PV处于绑定状态则不允许删除
|
|
37232
|
+
corednsprotect:CoreDNS组件删除保护
|
|
37233
|
+
blockschedulablenodedelete:非封锁状态的Node不允许删除
|
|
37234
|
+
resourcesdeletionprotection:资源删除保护
|
|
37235
|
+
tkeenirequest:弹性网卡资源配置限制
|
|
37236
|
+
blockworkloadcrossversionupgrade:工作负载镜像版本升级策略管控
|
|
37237
|
+
blockserviceaccountgranthighprivilegepermission:ServiceAccount权限管控
|
|
37238
|
+
blockclusteripserviceexist:不允许Service为ClusterIP类型
|
|
37239
|
+
blockinternetaccess:禁止公网访问
|
|
37240
|
+
assign:禁止访问Metadata Server
|
|
37241
|
+
blockhostnetworkpod:禁止创建HostNetwork类型Pod
|
|
37242
|
+
|
|
37243
|
+
可选策略:
|
|
37244
|
+
blockvolumemountpath:禁止容器挂载指定的目录
|
|
37245
|
+
k8sallowedrepos:容器镜像必须以指定字符串列表中的字符串开头
|
|
37246
|
+
k8sblockendpointeditdefaultrole:禁止默认ClusterRole修改Endpoints
|
|
37247
|
+
k8sblockloadbalancer:不允许Service为LoadBalancer类型
|
|
37248
|
+
k8sblocknodeport:不允许Service为NodePort类型
|
|
37249
|
+
k8sblockwildcardingress:禁止ingress配置空白或通配符类型的hostname
|
|
37250
|
+
k8scontainerlimits:限制容器必须设置CPU和内存Limit
|
|
37251
|
+
k8scontainerratios:限制CPU和内存的Request与Limit的最大比率
|
|
37252
|
+
k8scontainerrequests:限制CPU和内存的Request必须设置且小于配置的最大值
|
|
37253
|
+
k8srequiredresources:必须配置内存的Limit,CPU和内存的Request
|
|
37254
|
+
k8sdisallowanonymous:不允许将白名单以外的ClusterRole和Role关联到system:anonymous User和system:unauthenticated Group
|
|
37255
|
+
k8sdisallowedtags:约束容器镜像tag
|
|
37256
|
+
k8sexternalips:限制服务externalIP仅为允许的IP地址列表
|
|
37257
|
+
k8simagedigests:容器镜像必须包含digest
|
|
37258
|
+
noupdateserviceaccount:拒绝白名单外的资源更新ServiceAccount
|
|
37259
|
+
k8sreplicalimits:要求具有spec.replicas字段的对象(Deployments、ReplicaSets等)在定义的范围内
|
|
37260
|
+
k8srequiredannotations:要求资源包含指定的annotations,其值与提供的正则表达式匹配
|
|
37261
|
+
k8srequiredlabels:要求资源包含指定的标签,其值与提供的正则表达式匹配
|
|
37262
|
+
k8srequiredprobes:要求Pod具有Readiness或Liveness Probe
|
|
37263
|
+
k8spspautomountserviceaccounttokenpod:约束容器不能设置automountServiceAccountToken为true
|
|
37264
|
+
k8spspallowprivilegeescalationcontainer:约束PodSecurityPolicy中的allowPrivilegeEscalation字段为false
|
|
37265
|
+
k8spspapparmor:约束AppArmor字段列表
|
|
37266
|
+
k8spspcapabilities:限制PodSecurityPolicy中的allowedCapabilities和requiredDropCapabilities字段
|
|
37267
|
+
k8spspflexvolumes:约束PodSecurityPolicy中的allowedFlexVolumes字段类型
|
|
37268
|
+
k8spspforbiddensysctls:约束PodSecurityPolicy中的sysctls字段不能使用的name
|
|
37269
|
+
k8spspfsgroup:控制PodSecurityPolicy中的fsGroup字段在限制范围内
|
|
37270
|
+
k8spsphostfilesystem:约束PodSecurityPolicy中的hostPath字段的参数
|
|
37271
|
+
k8spsphostnamespace:限制PodSecurityPolicy中的hostPID和hostIPC字段
|
|
37272
|
+
k8spsphostnetworkingports:约束PodSecurityPolicy中的hostNetwork和hostPorts字段
|
|
37273
|
+
k8spspprivilegedcontainer:禁止PodSecurityPolicy中的privileged字段为true
|
|
37274
|
+
k8spspprocmount:约束PodSecurityPolicy中的allowedProcMountTypes字段
|
|
37275
|
+
k8spspreadonlyrootfilesystem:约束PodSecurityPolicy中的readOnlyRootFilesystem字段
|
|
37276
|
+
k8spspseccomp:约束PodSecurityPolicy上的seccomp.security.alpha.kubernetes.io/allowedProfileNames注解
|
|
37277
|
+
k8spspselinuxv2:约束Pod定义SELinux配置的允许列表
|
|
37278
|
+
k8spspallowedusers:约束PodSecurityPolicy中的runAsUser、runAsGroup、supplementalGroups和fsGroup字段
|
|
37279
|
+
k8spspvolumetypes:约束PodSecurityPolicy中的volumes字段类型
|
|
37168
37280
|
:rtype: str
|
|
37169
37281
|
"""
|
|
37170
37282
|
return self._Kind
|
|
@@ -44076,6 +44188,7 @@ class RouteTableConflict(AbstractModel):
|
|
|
44076
44188
|
def __init__(self):
|
|
44077
44189
|
r"""
|
|
44078
44190
|
:param _RouteTableType: 路由表类型。
|
|
44191
|
+
枚举值:CcsCluster、Vpc、VpcRouteTable、CcsClusterRouteTable
|
|
44079
44192
|
:type RouteTableType: str
|
|
44080
44193
|
:param _RouteTableCidrBlock: 路由表CIDR。
|
|
44081
44194
|
:type RouteTableCidrBlock: str
|
|
@@ -44092,6 +44205,7 @@ class RouteTableConflict(AbstractModel):
|
|
|
44092
44205
|
@property
|
|
44093
44206
|
def RouteTableType(self):
|
|
44094
44207
|
r"""路由表类型。
|
|
44208
|
+
枚举值:CcsCluster、Vpc、VpcRouteTable、CcsClusterRouteTable
|
|
44095
44209
|
:rtype: str
|
|
44096
44210
|
"""
|
|
44097
44211
|
return self._RouteTableType
|
|
@@ -3337,11 +3337,11 @@ class InstanceChargePrepaid(AbstractModel):
|
|
|
3337
3337
|
def __init__(self):
|
|
3338
3338
|
r"""
|
|
3339
3339
|
:param _Period: 后付费计费周期,单位(月):
|
|
3340
|
-
1,2,3,4,5
|
|
3340
|
+
1,2,3,4,5,6,7, 8,9,10,11,12,24,36,48,60
|
|
3341
3341
|
:type Period: int
|
|
3342
3342
|
:param _RenewFlag: 预付费续费方式:
|
|
3343
|
-
- NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费
|
|
3344
|
-
- NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费
|
|
3343
|
+
- NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费
|
|
3344
|
+
- NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费(默认)
|
|
3345
3345
|
- DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知用户过期,也不自动续费
|
|
3346
3346
|
|
|
3347
3347
|
:type RenewFlag: str
|
|
@@ -3352,7 +3352,7 @@ class InstanceChargePrepaid(AbstractModel):
|
|
|
3352
3352
|
@property
|
|
3353
3353
|
def Period(self):
|
|
3354
3354
|
r"""后付费计费周期,单位(月):
|
|
3355
|
-
1,2,3,4,5
|
|
3355
|
+
1,2,3,4,5,6,7, 8,9,10,11,12,24,36,48,60
|
|
3356
3356
|
:rtype: int
|
|
3357
3357
|
"""
|
|
3358
3358
|
return self._Period
|
|
@@ -3364,8 +3364,8 @@ class InstanceChargePrepaid(AbstractModel):
|
|
|
3364
3364
|
@property
|
|
3365
3365
|
def RenewFlag(self):
|
|
3366
3366
|
r"""预付费续费方式:
|
|
3367
|
-
- NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费
|
|
3368
|
-
- NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费
|
|
3367
|
+
- NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费
|
|
3368
|
+
- NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费(默认)
|
|
3369
3369
|
- DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知用户过期,也不自动续费
|
|
3370
3370
|
|
|
3371
3371
|
:rtype: str
|
|
@@ -6801,6 +6801,8 @@ class UpdateNativeNodePoolParam(AbstractModel):
|
|
|
6801
6801
|
:type InstanceTypes: list of str
|
|
6802
6802
|
:param _Replicas: 期望节点数
|
|
6803
6803
|
:type Replicas: int
|
|
6804
|
+
:param _UpdateExistedNode: 是否更新存量节点
|
|
6805
|
+
:type UpdateExistedNode: bool
|
|
6804
6806
|
:param _DataDisks: 数据盘列表
|
|
6805
6807
|
:type DataDisks: list of DataDisk
|
|
6806
6808
|
:param _KeyIds: ssh公钥id数组
|
|
@@ -6825,6 +6827,7 @@ class UpdateNativeNodePoolParam(AbstractModel):
|
|
|
6825
6827
|
self._EnableAutoscaling = None
|
|
6826
6828
|
self._InstanceTypes = None
|
|
6827
6829
|
self._Replicas = None
|
|
6830
|
+
self._UpdateExistedNode = None
|
|
6828
6831
|
self._DataDisks = None
|
|
6829
6832
|
self._KeyIds = None
|
|
6830
6833
|
self._GPUConfigs = None
|
|
@@ -7019,6 +7022,17 @@ class UpdateNativeNodePoolParam(AbstractModel):
|
|
|
7019
7022
|
def Replicas(self, Replicas):
|
|
7020
7023
|
self._Replicas = Replicas
|
|
7021
7024
|
|
|
7025
|
+
@property
|
|
7026
|
+
def UpdateExistedNode(self):
|
|
7027
|
+
r"""是否更新存量节点
|
|
7028
|
+
:rtype: bool
|
|
7029
|
+
"""
|
|
7030
|
+
return self._UpdateExistedNode
|
|
7031
|
+
|
|
7032
|
+
@UpdateExistedNode.setter
|
|
7033
|
+
def UpdateExistedNode(self, UpdateExistedNode):
|
|
7034
|
+
self._UpdateExistedNode = UpdateExistedNode
|
|
7035
|
+
|
|
7022
7036
|
@property
|
|
7023
7037
|
def DataDisks(self):
|
|
7024
7038
|
r"""数据盘列表
|
|
@@ -7083,6 +7097,7 @@ class UpdateNativeNodePoolParam(AbstractModel):
|
|
|
7083
7097
|
self._EnableAutoscaling = params.get("EnableAutoscaling")
|
|
7084
7098
|
self._InstanceTypes = params.get("InstanceTypes")
|
|
7085
7099
|
self._Replicas = params.get("Replicas")
|
|
7100
|
+
self._UpdateExistedNode = params.get("UpdateExistedNode")
|
|
7086
7101
|
if params.get("DataDisks") is not None:
|
|
7087
7102
|
self._DataDisks = []
|
|
7088
7103
|
for item in params.get("DataDisks"):
|