tencentcloud-sdk-python 3.0.1400__py2.py3-none-any.whl → 3.0.1402__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/asr/v20190614/models.py +8 -0
- tencentcloud/autoscaling/v20180419/models.py +6 -10
- tencentcloud/bmvpc/v20180625/bmvpc_client.py +54 -18
- tencentcloud/cdb/v20170320/models.py +64 -44
- tencentcloud/cdn/v20180606/models.py +4 -4
- tencentcloud/cfw/v20190904/models.py +2 -2
- tencentcloud/ckafka/v20190819/errorcodes.py +1 -1
- tencentcloud/ckafka/v20190819/models.py +15 -0
- tencentcloud/cwp/v20180228/cwp_client.py +6 -2
- tencentcloud/dc/v20180410/models.py +60 -0
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/emr/v20190103/emr_client.py +3 -1
- tencentcloud/ess/v20201111/ess_client.py +23 -0
- tencentcloud/ess/v20201111/models.py +117 -0
- tencentcloud/essbasic/v20210526/models.py +4 -2
- tencentcloud/goosefs/v20220519/goosefs_client.py +3 -1
- tencentcloud/gs/v20191118/gs_client.py +69 -0
- tencentcloud/gs/v20191118/models.py +391 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +12 -24
- tencentcloud/ioa/v20220601/errorcodes.py +3 -0
- tencentcloud/ioa/v20220601/ioa_client.py +46 -0
- tencentcloud/ioa/v20220601/models.py +669 -0
- tencentcloud/iotexplorer/v20190423/models.py +2 -2
- tencentcloud/lke/v20231130/lke_client.py +116 -0
- tencentcloud/lke/v20231130/models.py +2358 -608
- tencentcloud/lkeap/v20240522/lkeap_client.py +2 -4
- tencentcloud/ocr/v20181119/models.py +6 -6
- tencentcloud/ocr/v20181119/ocr_client.py +1 -1
- tencentcloud/ssl/v20191205/errorcodes.py +12 -0
- tencentcloud/ssl/v20191205/models.py +6 -8
- tencentcloud/ssl/v20191205/ssl_client.py +2 -2
- tencentcloud/tat/v20201028/errorcodes.py +3 -0
- tencentcloud/tat/v20201028/models.py +24 -0
- tencentcloud/tke/v20180525/models.py +218 -0
- tencentcloud/tke/v20180525/tke_client.py +46 -0
- tencentcloud/vpc/v20170312/errorcodes.py +9 -0
- tencentcloud/vpc/v20170312/models.py +4 -4
- {tencentcloud_sdk_python-3.0.1400.dist-info → tencentcloud_sdk_python-3.0.1402.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1400.dist-info → tencentcloud_sdk_python-3.0.1402.dist-info}/RECORD +43 -43
- {tencentcloud_sdk_python-3.0.1400.dist-info → tencentcloud_sdk_python-3.0.1402.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1400.dist-info → tencentcloud_sdk_python-3.0.1402.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1400.dist-info → tencentcloud_sdk_python-3.0.1402.dist-info}/top_level.txt +0 -0
@@ -148,8 +148,7 @@ class LkeapClient(AbstractClient):
|
|
148
148
|
"""
|
149
149
|
try:
|
150
150
|
params = request._serialize()
|
151
|
-
|
152
|
-
return self._call_and_deserialize("ChatCompletions", params, models.ChatCompletionsResponse, headers=request.headers, options=options)
|
151
|
+
return self._call_and_deserialize("ChatCompletions", params, models.ChatCompletionsResponse, headers=request.headers)
|
153
152
|
except Exception as e:
|
154
153
|
if isinstance(e, TencentCloudSDKException):
|
155
154
|
raise
|
@@ -655,8 +654,7 @@ class LkeapClient(AbstractClient):
|
|
655
654
|
"""
|
656
655
|
try:
|
657
656
|
params = request._serialize()
|
658
|
-
|
659
|
-
return self._call_and_deserialize("ReconstructDocumentSSE", params, models.ReconstructDocumentSSEResponse, headers=request.headers, options=options)
|
657
|
+
return self._call_and_deserialize("ReconstructDocumentSSE", params, models.ReconstructDocumentSSEResponse, headers=request.headers)
|
660
658
|
except Exception as e:
|
661
659
|
if isinstance(e, TencentCloudSDKException):
|
662
660
|
raise
|
@@ -34640,11 +34640,11 @@ class TextVehicleFront(AbstractModel):
|
|
34640
34640
|
:param _Seal: 印章
|
34641
34641
|
注意:此字段可能返回 null,表示取不到有效值。
|
34642
34642
|
:type Seal: str
|
34643
|
-
:param _StateElectronic:
|
34643
|
+
:param _StateElectronic: 状态,该字段仅支持电子行驶证返回
|
34644
34644
|
:type StateElectronic: str
|
34645
|
-
:param _InspectionValidityTimeElectronic:
|
34645
|
+
:param _InspectionValidityTimeElectronic: 检验有效期,该字段仅支持电子行驶证返回
|
34646
34646
|
:type InspectionValidityTimeElectronic: str
|
34647
|
-
:param _GenerationTimeElectronic:
|
34647
|
+
:param _GenerationTimeElectronic: 生成时间,该字段仅支持电子行驶证返回
|
34648
34648
|
:type GenerationTimeElectronic: str
|
34649
34649
|
"""
|
34650
34650
|
self._PlateNo = None
|
@@ -34796,7 +34796,7 @@ class TextVehicleFront(AbstractModel):
|
|
34796
34796
|
|
34797
34797
|
@property
|
34798
34798
|
def StateElectronic(self):
|
34799
|
-
"""
|
34799
|
+
"""状态,该字段仅支持电子行驶证返回
|
34800
34800
|
:rtype: str
|
34801
34801
|
"""
|
34802
34802
|
return self._StateElectronic
|
@@ -34807,7 +34807,7 @@ class TextVehicleFront(AbstractModel):
|
|
34807
34807
|
|
34808
34808
|
@property
|
34809
34809
|
def InspectionValidityTimeElectronic(self):
|
34810
|
-
"""
|
34810
|
+
"""检验有效期,该字段仅支持电子行驶证返回
|
34811
34811
|
:rtype: str
|
34812
34812
|
"""
|
34813
34813
|
return self._InspectionValidityTimeElectronic
|
@@ -34818,7 +34818,7 @@ class TextVehicleFront(AbstractModel):
|
|
34818
34818
|
|
34819
34819
|
@property
|
34820
34820
|
def GenerationTimeElectronic(self):
|
34821
|
-
"""
|
34821
|
+
"""生成时间,该字段仅支持电子行驶证返回
|
34822
34822
|
:rtype: str
|
34823
34823
|
"""
|
34824
34824
|
return self._GenerationTimeElectronic
|
@@ -1043,7 +1043,7 @@ class OcrClient(AbstractClient):
|
|
1043
1043
|
def IDCardOCR(self, request):
|
1044
1044
|
"""本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
1045
1045
|
|
1046
|
-
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备
|
1046
|
+
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备7种告警功能,如下表所示。
|
1047
1047
|
|
1048
1048
|
<table style="width:650px">
|
1049
1049
|
<thead>
|
@@ -143,6 +143,9 @@ FAILEDOPERATION_CERTIFICATEORDERSUBMITROOTCAINVALID = 'FailedOperation.Certifica
|
|
143
143
|
# 解析失败,请检查证书是否符合标准,请留意是否有多余的空格
|
144
144
|
FAILEDOPERATION_CERTIFICATEPARSEERROR = 'FailedOperation.CertificateParseError'
|
145
145
|
|
146
|
+
# 您输入的邮箱格式有误,请您核对后重新提交
|
147
|
+
FAILEDOPERATION_CERTIFICATEPREVERIFYEMAILINVALID = 'FailedOperation.CertificatePreVerifyEmailInvalid'
|
148
|
+
|
146
149
|
# 当前证书状态不允许下载。
|
147
150
|
FAILEDOPERATION_CERTIFICATESTATUSNOTALLOWDOWNLOAD = 'FailedOperation.CertificateStatusNotAllowDownload'
|
148
151
|
|
@@ -251,6 +254,12 @@ FAILEDOPERATION_SYSTEMERROR = 'FailedOperation.SystemError'
|
|
251
254
|
# 计费中心错误。
|
252
255
|
FAILEDOPERATION_TRADEERROR = 'FailedOperation.TradeError'
|
253
256
|
|
257
|
+
# 当前接口不支持上传确认函功能,请去腾讯云控制台进行操作
|
258
|
+
FAILEDOPERATION_UPLOADCONFIRMCERTIFICATENOTSUPPORT = 'FailedOperation.UploadConfirmCertificateNotSupport'
|
259
|
+
|
260
|
+
# 当前证书是DV证书,不支持上传确认函
|
261
|
+
FAILEDOPERATION_UPLOADCONFIRMCERTIFICATENOTSUPPORTDV = 'FailedOperation.UploadConfirmCertificateNotSupportDV'
|
262
|
+
|
254
263
|
# 内部错误。
|
255
264
|
INTERNALERROR = 'InternalError'
|
256
265
|
|
@@ -293,6 +302,9 @@ INVALIDPARAMETER_PERIODINVALID = 'InvalidParameter.PeriodInvalid'
|
|
293
302
|
# 产品PID无效。
|
294
303
|
INVALIDPARAMETER_PRODUCTPIDINVALID = 'InvalidParameter.ProductPidInvalid'
|
295
304
|
|
305
|
+
# Region不允许为空
|
306
|
+
INVALIDPARAMETER_REGIONNOTEMPTY = 'InvalidParameter.RegionNotEmpty'
|
307
|
+
|
296
308
|
# 算法无效。
|
297
309
|
INVALIDPARAMETER_RENEWALGORITHMINVALID = 'InvalidParameter.RenewAlgorithmInvalid'
|
298
310
|
|
@@ -1520,11 +1520,10 @@ FILE:手动添加域名文件验证。 需要用户手动在域名站点根目
|
|
1520
1520
|
:type ContactEmail: str
|
1521
1521
|
:param _AutoRenewFlag: 是否开启自动续费: 0, 不开启; 1, 开启; 默认为0
|
1522
1522
|
:type AutoRenewFlag: int
|
1523
|
-
:param _CsrKeyParameter: 密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1
|
1524
|
-
|
1523
|
+
:param _CsrKeyParameter: 密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1。当 CSR 生成方式为online的时候,此参数必填。
|
1524
|
+
|
1525
1525
|
:type CsrKeyParameter: str
|
1526
|
-
:param _CsrEncryptAlgo: 加密算法,取值为ECC、RSA, 默认为RSA
|
1527
|
-
国密证书类型本字段不用传
|
1526
|
+
:param _CsrEncryptAlgo: 加密算法,取值为ECC、RSA, 默认为RSA。当 CSR 生成方式为online的时候,此参数必填。
|
1528
1527
|
:type CsrEncryptAlgo: str
|
1529
1528
|
:param _ManagerId: 管理人ID,在 [腾讯云控制台](https://console.cloud.tencent.com/ssl/info) 可进行查看,若无满足的管理人信息, 则本参数传0 ; 若存在满足当前订单的管理人信息, 可以根据 [DescribeManagers](https://cloud.tencent.com/document/product/400/52672) 查看管理人ID; 若传了管理人ID,则Org开头、Admin开头、Tech开头的参数可不传; 管理人ID会包含公司信息
|
1530
1529
|
|
@@ -1958,8 +1957,8 @@ FILE:手动添加域名文件验证。 需要用户手动在域名站点根目
|
|
1958
1957
|
|
1959
1958
|
@property
|
1960
1959
|
def CsrKeyParameter(self):
|
1961
|
-
"""密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1
|
1962
|
-
|
1960
|
+
"""密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1。当 CSR 生成方式为online的时候,此参数必填。
|
1961
|
+
|
1963
1962
|
:rtype: str
|
1964
1963
|
"""
|
1965
1964
|
return self._CsrKeyParameter
|
@@ -1970,8 +1969,7 @@ FILE:手动添加域名文件验证。 需要用户手动在域名站点根目
|
|
1970
1969
|
|
1971
1970
|
@property
|
1972
1971
|
def CsrEncryptAlgo(self):
|
1973
|
-
"""加密算法,取值为ECC、RSA, 默认为RSA
|
1974
|
-
国密证书类型本字段不用传
|
1972
|
+
"""加密算法,取值为ECC、RSA, 默认为RSA。当 CSR 生成方式为online的时候,此参数必填。
|
1975
1973
|
:rtype: str
|
1976
1974
|
"""
|
1977
1975
|
return self._CsrEncryptAlgo
|
@@ -1414,7 +1414,7 @@ class SslClient(AbstractClient):
|
|
1414
1414
|
|
1415
1415
|
|
1416
1416
|
def UploadConfirmLetter(self, request):
|
1417
|
-
"""本接口(UploadConfirmLetter
|
1417
|
+
"""本接口(UploadConfirmLetter)上传证书确认函,不再维护其功能,请用户前往腾讯云证书控制台上传证书确认函
|
1418
1418
|
|
1419
1419
|
:param request: Request instance for UploadConfirmLetter.
|
1420
1420
|
:type request: :class:`tencentcloud.ssl.v20191205.models.UploadConfirmLetterRequest`
|
@@ -1437,7 +1437,7 @@ class SslClient(AbstractClient):
|
|
1437
1437
|
|
1438
1438
|
|
1439
1439
|
def UploadRevokeLetter(self, request):
|
1440
|
-
"""本接口(UploadRevokeLetter
|
1440
|
+
"""本接口(UploadRevokeLetter)上传证书吊销确认函,不再维护其功能,请用户前往腾讯云证书控制台上传证书吊销确认函
|
1441
1441
|
|
1442
1442
|
:param request: Request instance for UploadRevokeLetter.
|
1443
1443
|
:type request: :class:`tencentcloud.ssl.v20191205.models.UploadRevokeLetterRequest`
|
@@ -185,6 +185,9 @@ RESOURCENOTFOUND = 'ResourceNotFound'
|
|
185
185
|
# 命令不存在。
|
186
186
|
RESOURCENOTFOUND_COMMANDNOTFOUND = 'ResourceNotFound.CommandNotFound'
|
187
187
|
|
188
|
+
# CosBucket不存在。
|
189
|
+
RESOURCENOTFOUND_COSBUCKETNOTFOUNDCODE = 'ResourceNotFound.CosBucketNotFoundCode'
|
190
|
+
|
188
191
|
# 实例不存在。
|
189
192
|
RESOURCENOTFOUND_INSTANCENOTFOUND = 'ResourceNotFound.InstanceNotFound'
|
190
193
|
|
@@ -3056,6 +3056,18 @@ class DescribeRegisterInstancesRequest(AbstractModel):
|
|
3056
3056
|
类型:String
|
3057
3057
|
必选:否
|
3058
3058
|
|
3059
|
+
- register-status
|
3060
|
+
|
3061
|
+
按照【托管实例状态】进行过滤,取值:Online | Offline。
|
3062
|
+
类型:String
|
3063
|
+
必选:否
|
3064
|
+
|
3065
|
+
- local-ip
|
3066
|
+
|
3067
|
+
按照【托管实例网卡IP】进行过滤。
|
3068
|
+
类型:String
|
3069
|
+
必选:否
|
3070
|
+
|
3059
3071
|
- register-code-id
|
3060
3072
|
|
3061
3073
|
按照【托管实例注册码ID】进行过滤。可通过 [DescribeRegisterCodes(查询注册码)](https://cloud.tencent.com/document/api/1340/96925) 接口获取。
|
@@ -3133,6 +3145,18 @@ class DescribeRegisterInstancesRequest(AbstractModel):
|
|
3133
3145
|
类型:String
|
3134
3146
|
必选:否
|
3135
3147
|
|
3148
|
+
- register-status
|
3149
|
+
|
3150
|
+
按照【托管实例状态】进行过滤,取值:Online | Offline。
|
3151
|
+
类型:String
|
3152
|
+
必选:否
|
3153
|
+
|
3154
|
+
- local-ip
|
3155
|
+
|
3156
|
+
按照【托管实例网卡IP】进行过滤。
|
3157
|
+
类型:String
|
3158
|
+
必选:否
|
3159
|
+
|
3136
3160
|
- register-code-id
|
3137
3161
|
|
3138
3162
|
按照【托管实例注册码ID】进行过滤。可通过 [DescribeRegisterCodes(查询注册码)](https://cloud.tencent.com/document/api/1340/96925) 接口获取。
|
@@ -20010,6 +20010,115 @@ class DescribeLogSwitchesResponse(AbstractModel):
|
|
20010
20010
|
self._RequestId = params.get("RequestId")
|
20011
20011
|
|
20012
20012
|
|
20013
|
+
class DescribeMasterComponentRequest(AbstractModel):
|
20014
|
+
"""DescribeMasterComponent请求参数结构体
|
20015
|
+
|
20016
|
+
"""
|
20017
|
+
|
20018
|
+
def __init__(self):
|
20019
|
+
r"""
|
20020
|
+
:param _ClusterId: 集群ID
|
20021
|
+
:type ClusterId: str
|
20022
|
+
:param _Component: master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
20023
|
+
:type Component: str
|
20024
|
+
"""
|
20025
|
+
self._ClusterId = None
|
20026
|
+
self._Component = None
|
20027
|
+
|
20028
|
+
@property
|
20029
|
+
def ClusterId(self):
|
20030
|
+
"""集群ID
|
20031
|
+
:rtype: str
|
20032
|
+
"""
|
20033
|
+
return self._ClusterId
|
20034
|
+
|
20035
|
+
@ClusterId.setter
|
20036
|
+
def ClusterId(self, ClusterId):
|
20037
|
+
self._ClusterId = ClusterId
|
20038
|
+
|
20039
|
+
@property
|
20040
|
+
def Component(self):
|
20041
|
+
"""master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
20042
|
+
:rtype: str
|
20043
|
+
"""
|
20044
|
+
return self._Component
|
20045
|
+
|
20046
|
+
@Component.setter
|
20047
|
+
def Component(self, Component):
|
20048
|
+
self._Component = Component
|
20049
|
+
|
20050
|
+
|
20051
|
+
def _deserialize(self, params):
|
20052
|
+
self._ClusterId = params.get("ClusterId")
|
20053
|
+
self._Component = params.get("Component")
|
20054
|
+
memeber_set = set(params.keys())
|
20055
|
+
for name, value in vars(self).items():
|
20056
|
+
property_name = name[1:]
|
20057
|
+
if property_name in memeber_set:
|
20058
|
+
memeber_set.remove(property_name)
|
20059
|
+
if len(memeber_set) > 0:
|
20060
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
20061
|
+
|
20062
|
+
|
20063
|
+
|
20064
|
+
class DescribeMasterComponentResponse(AbstractModel):
|
20065
|
+
"""DescribeMasterComponent返回参数结构体
|
20066
|
+
|
20067
|
+
"""
|
20068
|
+
|
20069
|
+
def __init__(self):
|
20070
|
+
r"""
|
20071
|
+
:param _Component: master组件名称
|
20072
|
+
:type Component: str
|
20073
|
+
:param _Status: master组件状态,三种状态:running、updating、shutdown
|
20074
|
+
:type Status: str
|
20075
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
20076
|
+
:type RequestId: str
|
20077
|
+
"""
|
20078
|
+
self._Component = None
|
20079
|
+
self._Status = None
|
20080
|
+
self._RequestId = None
|
20081
|
+
|
20082
|
+
@property
|
20083
|
+
def Component(self):
|
20084
|
+
"""master组件名称
|
20085
|
+
:rtype: str
|
20086
|
+
"""
|
20087
|
+
return self._Component
|
20088
|
+
|
20089
|
+
@Component.setter
|
20090
|
+
def Component(self, Component):
|
20091
|
+
self._Component = Component
|
20092
|
+
|
20093
|
+
@property
|
20094
|
+
def Status(self):
|
20095
|
+
"""master组件状态,三种状态:running、updating、shutdown
|
20096
|
+
:rtype: str
|
20097
|
+
"""
|
20098
|
+
return self._Status
|
20099
|
+
|
20100
|
+
@Status.setter
|
20101
|
+
def Status(self, Status):
|
20102
|
+
self._Status = Status
|
20103
|
+
|
20104
|
+
@property
|
20105
|
+
def RequestId(self):
|
20106
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
20107
|
+
:rtype: str
|
20108
|
+
"""
|
20109
|
+
return self._RequestId
|
20110
|
+
|
20111
|
+
@RequestId.setter
|
20112
|
+
def RequestId(self, RequestId):
|
20113
|
+
self._RequestId = RequestId
|
20114
|
+
|
20115
|
+
|
20116
|
+
def _deserialize(self, params):
|
20117
|
+
self._Component = params.get("Component")
|
20118
|
+
self._Status = params.get("Status")
|
20119
|
+
self._RequestId = params.get("RequestId")
|
20120
|
+
|
20121
|
+
|
20013
20122
|
class DescribeOSImagesRequest(AbstractModel):
|
20014
20123
|
"""DescribeOSImages请求参数结构体
|
20015
20124
|
|
@@ -34492,6 +34601,115 @@ class ModifyClusterVirtualNodePoolResponse(AbstractModel):
|
|
34492
34601
|
self._RequestId = params.get("RequestId")
|
34493
34602
|
|
34494
34603
|
|
34604
|
+
class ModifyMasterComponentRequest(AbstractModel):
|
34605
|
+
"""ModifyMasterComponent请求参数结构体
|
34606
|
+
|
34607
|
+
"""
|
34608
|
+
|
34609
|
+
def __init__(self):
|
34610
|
+
r"""
|
34611
|
+
:param _ClusterId: 集群ID
|
34612
|
+
:type ClusterId: str
|
34613
|
+
:param _Component: master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
34614
|
+
:type Component: str
|
34615
|
+
:param _Operation: 停机或恢复,值只能为:shutdown或restore
|
34616
|
+
:type Operation: str
|
34617
|
+
:param _DryRun: 为true时,不真正执行停机或恢复操作
|
34618
|
+
:type DryRun: bool
|
34619
|
+
"""
|
34620
|
+
self._ClusterId = None
|
34621
|
+
self._Component = None
|
34622
|
+
self._Operation = None
|
34623
|
+
self._DryRun = None
|
34624
|
+
|
34625
|
+
@property
|
34626
|
+
def ClusterId(self):
|
34627
|
+
"""集群ID
|
34628
|
+
:rtype: str
|
34629
|
+
"""
|
34630
|
+
return self._ClusterId
|
34631
|
+
|
34632
|
+
@ClusterId.setter
|
34633
|
+
def ClusterId(self, ClusterId):
|
34634
|
+
self._ClusterId = ClusterId
|
34635
|
+
|
34636
|
+
@property
|
34637
|
+
def Component(self):
|
34638
|
+
"""master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
34639
|
+
:rtype: str
|
34640
|
+
"""
|
34641
|
+
return self._Component
|
34642
|
+
|
34643
|
+
@Component.setter
|
34644
|
+
def Component(self, Component):
|
34645
|
+
self._Component = Component
|
34646
|
+
|
34647
|
+
@property
|
34648
|
+
def Operation(self):
|
34649
|
+
"""停机或恢复,值只能为:shutdown或restore
|
34650
|
+
:rtype: str
|
34651
|
+
"""
|
34652
|
+
return self._Operation
|
34653
|
+
|
34654
|
+
@Operation.setter
|
34655
|
+
def Operation(self, Operation):
|
34656
|
+
self._Operation = Operation
|
34657
|
+
|
34658
|
+
@property
|
34659
|
+
def DryRun(self):
|
34660
|
+
"""为true时,不真正执行停机或恢复操作
|
34661
|
+
:rtype: bool
|
34662
|
+
"""
|
34663
|
+
return self._DryRun
|
34664
|
+
|
34665
|
+
@DryRun.setter
|
34666
|
+
def DryRun(self, DryRun):
|
34667
|
+
self._DryRun = DryRun
|
34668
|
+
|
34669
|
+
|
34670
|
+
def _deserialize(self, params):
|
34671
|
+
self._ClusterId = params.get("ClusterId")
|
34672
|
+
self._Component = params.get("Component")
|
34673
|
+
self._Operation = params.get("Operation")
|
34674
|
+
self._DryRun = params.get("DryRun")
|
34675
|
+
memeber_set = set(params.keys())
|
34676
|
+
for name, value in vars(self).items():
|
34677
|
+
property_name = name[1:]
|
34678
|
+
if property_name in memeber_set:
|
34679
|
+
memeber_set.remove(property_name)
|
34680
|
+
if len(memeber_set) > 0:
|
34681
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
34682
|
+
|
34683
|
+
|
34684
|
+
|
34685
|
+
class ModifyMasterComponentResponse(AbstractModel):
|
34686
|
+
"""ModifyMasterComponent返回参数结构体
|
34687
|
+
|
34688
|
+
"""
|
34689
|
+
|
34690
|
+
def __init__(self):
|
34691
|
+
r"""
|
34692
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
34693
|
+
:type RequestId: str
|
34694
|
+
"""
|
34695
|
+
self._RequestId = None
|
34696
|
+
|
34697
|
+
@property
|
34698
|
+
def RequestId(self):
|
34699
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
34700
|
+
:rtype: str
|
34701
|
+
"""
|
34702
|
+
return self._RequestId
|
34703
|
+
|
34704
|
+
@RequestId.setter
|
34705
|
+
def RequestId(self, RequestId):
|
34706
|
+
self._RequestId = RequestId
|
34707
|
+
|
34708
|
+
|
34709
|
+
def _deserialize(self, params):
|
34710
|
+
self._RequestId = params.get("RequestId")
|
34711
|
+
|
34712
|
+
|
34495
34713
|
class ModifyNodePoolDesiredCapacityAboutAsgRequest(AbstractModel):
|
34496
34714
|
"""ModifyNodePoolDesiredCapacityAboutAsg请求参数结构体
|
34497
34715
|
|
@@ -2855,6 +2855,29 @@ class TkeClient(AbstractClient):
|
|
2855
2855
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2856
2856
|
|
2857
2857
|
|
2858
|
+
def DescribeMasterComponent(self, request):
|
2859
|
+
"""进行master组件停机故障演练时,获取master组件运行状态,支持kube-apiserver、kube-scheduler、kube-controller-manager
|
2860
|
+
|
2861
|
+
:param request: Request instance for DescribeMasterComponent.
|
2862
|
+
:type request: :class:`tencentcloud.tke.v20180525.models.DescribeMasterComponentRequest`
|
2863
|
+
:rtype: :class:`tencentcloud.tke.v20180525.models.DescribeMasterComponentResponse`
|
2864
|
+
|
2865
|
+
"""
|
2866
|
+
try:
|
2867
|
+
params = request._serialize()
|
2868
|
+
headers = request.headers
|
2869
|
+
body = self.call("DescribeMasterComponent", params, headers=headers)
|
2870
|
+
response = json.loads(body)
|
2871
|
+
model = models.DescribeMasterComponentResponse()
|
2872
|
+
model._deserialize(response["Response"])
|
2873
|
+
return model
|
2874
|
+
except Exception as e:
|
2875
|
+
if isinstance(e, TencentCloudSDKException):
|
2876
|
+
raise
|
2877
|
+
else:
|
2878
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2879
|
+
|
2880
|
+
|
2858
2881
|
def DescribeOSImages(self, request):
|
2859
2882
|
"""获取OS聚合信息
|
2860
2883
|
|
@@ -4465,6 +4488,29 @@ class TkeClient(AbstractClient):
|
|
4465
4488
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
4466
4489
|
|
4467
4490
|
|
4491
|
+
def ModifyMasterComponent(self, request):
|
4492
|
+
"""修改master组件,支持kube-apiserver、kube-scheduler、kube-controller-manager副本数调整为0和恢复
|
4493
|
+
|
4494
|
+
:param request: Request instance for ModifyMasterComponent.
|
4495
|
+
:type request: :class:`tencentcloud.tke.v20180525.models.ModifyMasterComponentRequest`
|
4496
|
+
:rtype: :class:`tencentcloud.tke.v20180525.models.ModifyMasterComponentResponse`
|
4497
|
+
|
4498
|
+
"""
|
4499
|
+
try:
|
4500
|
+
params = request._serialize()
|
4501
|
+
headers = request.headers
|
4502
|
+
body = self.call("ModifyMasterComponent", params, headers=headers)
|
4503
|
+
response = json.loads(body)
|
4504
|
+
model = models.ModifyMasterComponentResponse()
|
4505
|
+
model._deserialize(response["Response"])
|
4506
|
+
return model
|
4507
|
+
except Exception as e:
|
4508
|
+
if isinstance(e, TencentCloudSDKException):
|
4509
|
+
raise
|
4510
|
+
else:
|
4511
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
4512
|
+
|
4513
|
+
|
4468
4514
|
def ModifyNodePoolDesiredCapacityAboutAsg(self, request):
|
4469
4515
|
"""修改节点池关联伸缩组的期望实例数
|
4470
4516
|
|
@@ -224,6 +224,9 @@ INVALIDPARAMETERVALUE_DUPLICATEDLBTRAFFICMIRRORRECIVERENDPOINT = 'InvalidParamet
|
|
224
224
|
# 值超过上限。
|
225
225
|
INVALIDPARAMETERVALUE_EIPBRANDWIDTHOUTINVALID = 'InvalidParameterValue.EIPBrandWidthOutInvalid'
|
226
226
|
|
227
|
+
# 出口不一致
|
228
|
+
INVALIDPARAMETERVALUE_EGRESSCONFLICT = 'InvalidParameterValue.EgressConflict'
|
229
|
+
|
227
230
|
# 缺少参数。
|
228
231
|
INVALIDPARAMETERVALUE_EMPTY = 'InvalidParameterValue.Empty'
|
229
232
|
|
@@ -278,6 +281,9 @@ INVALIDPARAMETERVALUE_INVALIDBUSINESS = 'InvalidParameterValue.InvalidBusiness'
|
|
278
281
|
# 传入的DedicatedClusterId有误。
|
279
282
|
INVALIDPARAMETERVALUE_INVALIDDEDICATEDCLUSTERID = 'InvalidParameterValue.InvalidDedicatedClusterId'
|
280
283
|
|
284
|
+
# egress的值无效。
|
285
|
+
INVALIDPARAMETERVALUE_INVALIDEGRESS = 'InvalidParameterValue.InvalidEgress'
|
286
|
+
|
281
287
|
# 该IP只能绑定小时流量后付费和带宽包实例。
|
282
288
|
INVALIDPARAMETERVALUE_INVALIDINSTANCEINTERNETCHARGETYPE = 'InvalidParameterValue.InvalidInstanceInternetChargeType'
|
283
289
|
|
@@ -503,6 +509,9 @@ INVALIDPARAMETERVALUE_TRAFFICPACKAGERESOURCEIDMALFORMED = 'InvalidParameterValue
|
|
503
509
|
# 该可用区不可用。
|
504
510
|
INVALIDPARAMETERVALUE_UNAVAILABLEZONE = 'InvalidParameterValue.UnavailableZone'
|
505
511
|
|
512
|
+
# 账号不支持该egress
|
513
|
+
INVALIDPARAMETERVALUE_UNSUPPORTEDEGRESS = 'InvalidParameterValue.UnsupportedEgress'
|
514
|
+
|
506
515
|
# 当前公网IP所在的地区不支持流量采集。
|
507
516
|
INVALIDPARAMETERVALUE_UNSUPPORTEDLBTRAFFICMIRRORAZ = 'InvalidParameterValue.UnsupportedLbTrafficMirrorAz'
|
508
517
|
|
@@ -29093,9 +29093,9 @@ class DescribeNatGatewayDirectConnectGatewayRouteRequest(AbstractModel):
|
|
29093
29093
|
:type NatGatewayId: str
|
29094
29094
|
:param _VpcId: vpc的唯一标识
|
29095
29095
|
:type VpcId: str
|
29096
|
-
:param _Limit: 0
|
29096
|
+
:param _Limit: 查询NAT网关绑定的路由数量,可选值0-200,默认为10
|
29097
29097
|
:type Limit: int
|
29098
|
-
:param _Offset:
|
29098
|
+
:param _Offset: 数据偏移量,默认为0
|
29099
29099
|
:type Offset: int
|
29100
29100
|
"""
|
29101
29101
|
self._NatGatewayId = None
|
@@ -29127,7 +29127,7 @@ class DescribeNatGatewayDirectConnectGatewayRouteRequest(AbstractModel):
|
|
29127
29127
|
|
29128
29128
|
@property
|
29129
29129
|
def Limit(self):
|
29130
|
-
"""0
|
29130
|
+
"""查询NAT网关绑定的路由数量,可选值0-200,默认为10
|
29131
29131
|
:rtype: int
|
29132
29132
|
"""
|
29133
29133
|
return self._Limit
|
@@ -29138,7 +29138,7 @@ class DescribeNatGatewayDirectConnectGatewayRouteRequest(AbstractModel):
|
|
29138
29138
|
|
29139
29139
|
@property
|
29140
29140
|
def Offset(self):
|
29141
|
-
"""
|
29141
|
+
"""数据偏移量,默认为0
|
29142
29142
|
:rtype: int
|
29143
29143
|
"""
|
29144
29144
|
return self._Offset
|