tencentcloud-sdk-python 3.0.1395__py2.py3-none-any.whl → 3.0.1396__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/apm/v20210622/models.py +17 -2
- tencentcloud/cbs/v20170312/cbs_client.py +3 -1
- tencentcloud/cdb/v20170320/models.py +6 -6
- tencentcloud/cfs/v20190719/models.py +2 -2
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +1 -1
- tencentcloud/dbbrain/v20210527/models.py +4 -4
- tencentcloud/emr/v20190103/models.py +304 -4
- tencentcloud/ess/v20201111/ess_client.py +56 -0
- tencentcloud/ess/v20201111/models.py +255 -0
- tencentcloud/gs/v20191118/gs_client.py +161 -0
- tencentcloud/gs/v20191118/models.py +877 -23
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +2 -2
- tencentcloud/ocr/v20181119/models.py +131 -18
- tencentcloud/ocr/v20181119/ocr_client.py +1 -1
- tencentcloud/tem/v20210701/errorcodes.py +6 -0
- tencentcloud/tem/v20210701/models.py +200 -0
- tencentcloud/tem/v20210701/tem_client.py +23 -0
- tencentcloud/teo/v20220901/models.py +1417 -117
- tencentcloud/vod/v20180717/models.py +4 -0
- tencentcloud/waf/v20180125/models.py +0 -2
- tencentcloud/wedata/v20210820/models.py +1902 -0
- tencentcloud/wedata/v20210820/wedata_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/RECORD +28 -28
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1395.dist-info → tencentcloud_sdk_python-3.0.1396.dist-info}/top_level.txt +0 -0
@@ -878,7 +878,7 @@ class IotexplorerClient(AbstractClient):
|
|
878
878
|
|
879
879
|
|
880
880
|
def DeleteProject(self, request):
|
881
|
-
"""
|
881
|
+
"""提供删除某个项目的能力。
|
882
882
|
|
883
883
|
:param request: Request instance for DeleteProject.
|
884
884
|
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.DeleteProjectRequest`
|
@@ -3180,7 +3180,7 @@ class IotexplorerClient(AbstractClient):
|
|
3180
3180
|
|
3181
3181
|
|
3182
3182
|
def ModifyProject(self, request):
|
3183
|
-
"""
|
3183
|
+
"""修改项目。
|
3184
3184
|
|
3185
3185
|
:param request: Request instance for ModifyProject.
|
3186
3186
|
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.ModifyProjectRequest`
|
@@ -9691,13 +9691,9 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
9691
9691
|
|
9692
9692
|
def __init__(self):
|
9693
9693
|
r"""
|
9694
|
-
:param _ImageBase64:
|
9695
|
-
要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
|
9696
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9694
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9697
9695
|
:type ImageBase64: str
|
9698
|
-
:param _ImageUrl:
|
9699
|
-
要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。图片下载时间不超过 3 秒。
|
9700
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
9696
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
9701
9697
|
:type ImageUrl: str
|
9702
9698
|
:param _IsWords: 是否返回单字信息,默认关
|
9703
9699
|
:type IsWords: bool
|
@@ -9720,9 +9716,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
9720
9716
|
|
9721
9717
|
@property
|
9722
9718
|
def ImageBase64(self):
|
9723
|
-
"""
|
9724
|
-
要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
|
9725
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9719
|
+
"""图片/PDF的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9726
9720
|
:rtype: str
|
9727
9721
|
"""
|
9728
9722
|
return self._ImageBase64
|
@@ -9733,9 +9727,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
9733
9727
|
|
9734
9728
|
@property
|
9735
9729
|
def ImageUrl(self):
|
9736
|
-
"""
|
9737
|
-
要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。图片下载时间不超过 3 秒。
|
9738
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
9730
|
+
"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
9739
9731
|
:rtype: str
|
9740
9732
|
"""
|
9741
9733
|
return self._ImageUrl
|
@@ -14035,7 +14027,7 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
14035
14027
|
:type Angle: float
|
14036
14028
|
:param _SingleInvoiceInfos: 识别到的内容。
|
14037
14029
|
:type SingleInvoiceInfos: :class:`tencentcloud.ocr.v20181119.models.SingleInvoiceItem`
|
14038
|
-
:param _Page: 发票处于识别图片或PDF
|
14030
|
+
:param _Page: 发票处于识别图片或PDF文件中的页码,默认从1开始。
|
14039
14031
|
:type Page: int
|
14040
14032
|
:param _SubType: 发票详细类型,详见票据识别(高级版)接口文档说明中 SubType 返回值说明
|
14041
14033
|
:type SubType: str
|
@@ -14049,6 +14041,8 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
14049
14041
|
:type ItemPolygon: list of ItemPolygonInfo
|
14050
14042
|
:param _QRCode: 二维码数据。
|
14051
14043
|
:type QRCode: str
|
14044
|
+
:param _InvoiceSealInfo: 印章信息
|
14045
|
+
:type InvoiceSealInfo: :class:`tencentcloud.ocr.v20181119.models.InvoiceSealInfo`
|
14052
14046
|
"""
|
14053
14047
|
self._Code = None
|
14054
14048
|
self._Type = None
|
@@ -14062,6 +14056,7 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
14062
14056
|
self._SubTypeDescription = None
|
14063
14057
|
self._ItemPolygon = None
|
14064
14058
|
self._QRCode = None
|
14059
|
+
self._InvoiceSealInfo = None
|
14065
14060
|
|
14066
14061
|
@property
|
14067
14062
|
def Code(self):
|
@@ -14141,7 +14136,7 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
14141
14136
|
|
14142
14137
|
@property
|
14143
14138
|
def Page(self):
|
14144
|
-
"""发票处于识别图片或PDF
|
14139
|
+
"""发票处于识别图片或PDF文件中的页码,默认从1开始。
|
14145
14140
|
:rtype: int
|
14146
14141
|
"""
|
14147
14142
|
return self._Page
|
@@ -14216,6 +14211,17 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
14216
14211
|
def QRCode(self, QRCode):
|
14217
14212
|
self._QRCode = QRCode
|
14218
14213
|
|
14214
|
+
@property
|
14215
|
+
def InvoiceSealInfo(self):
|
14216
|
+
"""印章信息
|
14217
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.InvoiceSealInfo`
|
14218
|
+
"""
|
14219
|
+
return self._InvoiceSealInfo
|
14220
|
+
|
14221
|
+
@InvoiceSealInfo.setter
|
14222
|
+
def InvoiceSealInfo(self, InvoiceSealInfo):
|
14223
|
+
self._InvoiceSealInfo = InvoiceSealInfo
|
14224
|
+
|
14219
14225
|
|
14220
14226
|
def _deserialize(self, params):
|
14221
14227
|
self._Code = params.get("Code")
|
@@ -14239,6 +14245,90 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
14239
14245
|
obj._deserialize(item)
|
14240
14246
|
self._ItemPolygon.append(obj)
|
14241
14247
|
self._QRCode = params.get("QRCode")
|
14248
|
+
if params.get("InvoiceSealInfo") is not None:
|
14249
|
+
self._InvoiceSealInfo = InvoiceSealInfo()
|
14250
|
+
self._InvoiceSealInfo._deserialize(params.get("InvoiceSealInfo"))
|
14251
|
+
memeber_set = set(params.keys())
|
14252
|
+
for name, value in vars(self).items():
|
14253
|
+
property_name = name[1:]
|
14254
|
+
if property_name in memeber_set:
|
14255
|
+
memeber_set.remove(property_name)
|
14256
|
+
if len(memeber_set) > 0:
|
14257
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
14258
|
+
|
14259
|
+
|
14260
|
+
|
14261
|
+
class InvoiceSealInfo(AbstractModel):
|
14262
|
+
"""印章信息
|
14263
|
+
|
14264
|
+
"""
|
14265
|
+
|
14266
|
+
def __init__(self):
|
14267
|
+
r"""
|
14268
|
+
:param _CompanySealMark: 是否有公司印章(0:没有,1:有)
|
14269
|
+
:type CompanySealMark: str
|
14270
|
+
:param _SupervisionSealMark: 是否有监制印章(0:没有,1:有)
|
14271
|
+
:type SupervisionSealMark: str
|
14272
|
+
:param _CompanySealMarkInfo: 公司印章信息
|
14273
|
+
:type CompanySealMarkInfo: list of str
|
14274
|
+
:param _SupervisionSealMarkInfo: 监制印章信息
|
14275
|
+
:type SupervisionSealMarkInfo: list of str
|
14276
|
+
"""
|
14277
|
+
self._CompanySealMark = None
|
14278
|
+
self._SupervisionSealMark = None
|
14279
|
+
self._CompanySealMarkInfo = None
|
14280
|
+
self._SupervisionSealMarkInfo = None
|
14281
|
+
|
14282
|
+
@property
|
14283
|
+
def CompanySealMark(self):
|
14284
|
+
"""是否有公司印章(0:没有,1:有)
|
14285
|
+
:rtype: str
|
14286
|
+
"""
|
14287
|
+
return self._CompanySealMark
|
14288
|
+
|
14289
|
+
@CompanySealMark.setter
|
14290
|
+
def CompanySealMark(self, CompanySealMark):
|
14291
|
+
self._CompanySealMark = CompanySealMark
|
14292
|
+
|
14293
|
+
@property
|
14294
|
+
def SupervisionSealMark(self):
|
14295
|
+
"""是否有监制印章(0:没有,1:有)
|
14296
|
+
:rtype: str
|
14297
|
+
"""
|
14298
|
+
return self._SupervisionSealMark
|
14299
|
+
|
14300
|
+
@SupervisionSealMark.setter
|
14301
|
+
def SupervisionSealMark(self, SupervisionSealMark):
|
14302
|
+
self._SupervisionSealMark = SupervisionSealMark
|
14303
|
+
|
14304
|
+
@property
|
14305
|
+
def CompanySealMarkInfo(self):
|
14306
|
+
"""公司印章信息
|
14307
|
+
:rtype: list of str
|
14308
|
+
"""
|
14309
|
+
return self._CompanySealMarkInfo
|
14310
|
+
|
14311
|
+
@CompanySealMarkInfo.setter
|
14312
|
+
def CompanySealMarkInfo(self, CompanySealMarkInfo):
|
14313
|
+
self._CompanySealMarkInfo = CompanySealMarkInfo
|
14314
|
+
|
14315
|
+
@property
|
14316
|
+
def SupervisionSealMarkInfo(self):
|
14317
|
+
"""监制印章信息
|
14318
|
+
:rtype: list of str
|
14319
|
+
"""
|
14320
|
+
return self._SupervisionSealMarkInfo
|
14321
|
+
|
14322
|
+
@SupervisionSealMarkInfo.setter
|
14323
|
+
def SupervisionSealMarkInfo(self, SupervisionSealMarkInfo):
|
14324
|
+
self._SupervisionSealMarkInfo = SupervisionSealMarkInfo
|
14325
|
+
|
14326
|
+
|
14327
|
+
def _deserialize(self, params):
|
14328
|
+
self._CompanySealMark = params.get("CompanySealMark")
|
14329
|
+
self._SupervisionSealMark = params.get("SupervisionSealMark")
|
14330
|
+
self._CompanySealMarkInfo = params.get("CompanySealMarkInfo")
|
14331
|
+
self._SupervisionSealMarkInfo = params.get("SupervisionSealMarkInfo")
|
14242
14332
|
memeber_set = set(params.keys())
|
14243
14333
|
for name, value in vars(self).items():
|
14244
14334
|
property_name = name[1:]
|
@@ -16140,7 +16230,9 @@ class MainlandPermitOCRRequest(AbstractModel):
|
|
16140
16230
|
:param _RetProfile: 是否返回头像。默认不返回。
|
16141
16231
|
:type RetProfile: bool
|
16142
16232
|
:param _CardSide: 图片正反面
|
16143
|
-
FRONT
|
16233
|
+
FRONT:正面
|
16234
|
+
BACK:反面
|
16235
|
+
默认为FRONT
|
16144
16236
|
:type CardSide: str
|
16145
16237
|
"""
|
16146
16238
|
self._ImageBase64 = None
|
@@ -16191,7 +16283,9 @@ FRONT:正面、BACK:反面,默认为FRONT
|
|
16191
16283
|
@property
|
16192
16284
|
def CardSide(self):
|
16193
16285
|
"""图片正反面
|
16194
|
-
FRONT
|
16286
|
+
FRONT:正面
|
16287
|
+
BACK:反面
|
16288
|
+
默认为FRONT
|
16195
16289
|
:rtype: str
|
16196
16290
|
"""
|
16197
16291
|
return self._CardSide
|
@@ -16241,7 +16335,7 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
16241
16335
|
:type IssueAddress: str
|
16242
16336
|
:param _IssueNumber: 签发次数
|
16243
16337
|
:type IssueNumber: str
|
16244
|
-
:param _Type: 证件类别,
|
16338
|
+
:param _Type: 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证、往来港澳通行证。
|
16245
16339
|
:type Type: str
|
16246
16340
|
:param _Profile: RetProfile为True时返回头像字段, Base64编码
|
16247
16341
|
:type Profile: str
|
@@ -16368,7 +16462,7 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
16368
16462
|
|
16369
16463
|
@property
|
16370
16464
|
def Type(self):
|
16371
|
-
"""证件类别,
|
16465
|
+
"""证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证、往来港澳通行证。
|
16372
16466
|
:rtype: str
|
16373
16467
|
"""
|
16374
16468
|
return self._Type
|
@@ -23884,6 +23978,8 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
|
|
23884
23978
|
:type EnableItemPolygon: bool
|
23885
23979
|
:param _EnableQRCode: 是否开启二维码识别。
|
23886
23980
|
:type EnableQRCode: bool
|
23981
|
+
:param _EnableSeal: 是否开启印章识别,默认为false
|
23982
|
+
:type EnableSeal: bool
|
23887
23983
|
"""
|
23888
23984
|
self._ImageBase64 = None
|
23889
23985
|
self._ImageUrl = None
|
@@ -23895,6 +23991,7 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
|
|
23895
23991
|
self._EnableCutImage = None
|
23896
23992
|
self._EnableItemPolygon = None
|
23897
23993
|
self._EnableQRCode = None
|
23994
|
+
self._EnableSeal = None
|
23898
23995
|
|
23899
23996
|
@property
|
23900
23997
|
def ImageBase64(self):
|
@@ -24030,6 +24127,17 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
|
|
24030
24127
|
def EnableQRCode(self, EnableQRCode):
|
24031
24128
|
self._EnableQRCode = EnableQRCode
|
24032
24129
|
|
24130
|
+
@property
|
24131
|
+
def EnableSeal(self):
|
24132
|
+
"""是否开启印章识别,默认为false
|
24133
|
+
:rtype: bool
|
24134
|
+
"""
|
24135
|
+
return self._EnableSeal
|
24136
|
+
|
24137
|
+
@EnableSeal.setter
|
24138
|
+
def EnableSeal(self, EnableSeal):
|
24139
|
+
self._EnableSeal = EnableSeal
|
24140
|
+
|
24033
24141
|
|
24034
24142
|
def _deserialize(self, params):
|
24035
24143
|
self._ImageBase64 = params.get("ImageBase64")
|
@@ -24042,6 +24150,7 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
|
|
24042
24150
|
self._EnableCutImage = params.get("EnableCutImage")
|
24043
24151
|
self._EnableItemPolygon = params.get("EnableItemPolygon")
|
24044
24152
|
self._EnableQRCode = params.get("EnableQRCode")
|
24153
|
+
self._EnableSeal = params.get("EnableSeal")
|
24045
24154
|
memeber_set = set(params.keys())
|
24046
24155
|
for name, value in vars(self).items():
|
24047
24156
|
property_name = name[1:]
|
@@ -29881,6 +29990,8 @@ DispatchWeightNote -- 磅单发货单识别模板
|
|
29881
29990
|
ReceiptWeightNote -- 磅单收货单识别模板
|
29882
29991
|
ArticalRecognize -- 手写作文模版
|
29883
29992
|
Table -- 表格模版
|
29993
|
+
SteelLabel -- 实物标签识别模板
|
29994
|
+
CarInsurance -- 车辆保险单识别模板
|
29884
29995
|
:type ConfigId: str
|
29885
29996
|
:param _EnableCoord: 是否开启全文字段坐标值的识别
|
29886
29997
|
:type EnableCoord: bool
|
@@ -29987,6 +30098,8 @@ DispatchWeightNote -- 磅单发货单识别模板
|
|
29987
30098
|
ReceiptWeightNote -- 磅单收货单识别模板
|
29988
30099
|
ArticalRecognize -- 手写作文模版
|
29989
30100
|
Table -- 表格模版
|
30101
|
+
SteelLabel -- 实物标签识别模板
|
30102
|
+
CarInsurance -- 车辆保险单识别模板
|
29990
30103
|
:rtype: str
|
29991
30104
|
"""
|
29992
30105
|
return self._ConfigId
|
@@ -1184,7 +1184,7 @@ class OcrClient(AbstractClient):
|
|
1184
1184
|
|
1185
1185
|
|
1186
1186
|
def MainlandPermitOCR(self, request):
|
1187
|
-
"""
|
1187
|
+
"""智能识别并结构化港澳台通行证及来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
|
1188
1188
|
|
1189
1189
|
默认接口请求频率限制:20次/秒。
|
1190
1190
|
|
@@ -110,6 +110,9 @@ INTERNALERROR_DESCRIBESERVICELISTERROR = 'InternalError.DescribeServiceListError
|
|
110
110
|
# 修改配置失败。
|
111
111
|
INTERNALERROR_MODIFYCONFIGDATAERROR = 'InternalError.ModifyConfigDataError'
|
112
112
|
|
113
|
+
# 修改网关的转发配置失败。
|
114
|
+
INTERNALERROR_MODIFYGATEWAYINGRESSERROR = 'InternalError.ModifyGatewayIngressError'
|
115
|
+
|
113
116
|
# 修改 LogConfig 错误。
|
114
117
|
INTERNALERROR_MODIFYLOGCONFIGERROR = 'InternalError.ModifyLogConfigError'
|
115
118
|
|
@@ -209,6 +212,9 @@ INVALIDPARAMETERVALUE_HPATHRESHOLDINVALID = 'InvalidParameterValue.HpaThresholdI
|
|
209
212
|
# 访问配置重定向需要启用 HTTPS。
|
210
213
|
INVALIDPARAMETERVALUE_INGRESSREWRITEREQUIREDHTTPSENABLE = 'InvalidParameterValue.IngressRewriteRequiredHttpsEnable'
|
211
214
|
|
215
|
+
# 自动重定向规则冲突,请检查是否存在同一个path的http/https转发。
|
216
|
+
INVALIDPARAMETERVALUE_INGRESSRULESCONFLICT = 'InvalidParameterValue.IngressRulesConflict'
|
217
|
+
|
212
218
|
# 无效的定时伸缩周期。
|
213
219
|
INVALIDPARAMETERVALUE_INVALIDCRONSCALERPERIOD = 'InvalidParameterValue.InvalidCronScalerPeriod'
|
214
220
|
|
@@ -9491,6 +9491,206 @@ class ModifyEnvironmentResponse(AbstractModel):
|
|
9491
9491
|
self._RequestId = params.get("RequestId")
|
9492
9492
|
|
9493
9493
|
|
9494
|
+
class ModifyGatewayIngressRequest(AbstractModel):
|
9495
|
+
"""ModifyGatewayIngress请求参数结构体
|
9496
|
+
|
9497
|
+
"""
|
9498
|
+
|
9499
|
+
def __init__(self):
|
9500
|
+
r"""
|
9501
|
+
:param _EnvironmentId: 环境 ID
|
9502
|
+
:type EnvironmentId: str
|
9503
|
+
:param _GatewayName: 网关名称
|
9504
|
+
:type GatewayName: str
|
9505
|
+
:param _GatewayType: 网关类型,如 clb
|
9506
|
+
:type GatewayType: str
|
9507
|
+
:param _Name: 转发配置名称
|
9508
|
+
:type Name: str
|
9509
|
+
:param _Rules: rules 配置
|
9510
|
+
:type Rules: list of IngressRule
|
9511
|
+
:param _Mixed: 是否混合 https,默认 false,可选值 true 代表有 https 协议监听
|
9512
|
+
:type Mixed: bool
|
9513
|
+
:param _Tls: tls 配置
|
9514
|
+
:type Tls: list of IngressTls
|
9515
|
+
:param _RewriteType: 重定向模式,可选值:
|
9516
|
+
- AUTO(自动重定向http到https)
|
9517
|
+
- NONE(不使用重定向)
|
9518
|
+
:type RewriteType: str
|
9519
|
+
"""
|
9520
|
+
self._EnvironmentId = None
|
9521
|
+
self._GatewayName = None
|
9522
|
+
self._GatewayType = None
|
9523
|
+
self._Name = None
|
9524
|
+
self._Rules = None
|
9525
|
+
self._Mixed = None
|
9526
|
+
self._Tls = None
|
9527
|
+
self._RewriteType = None
|
9528
|
+
|
9529
|
+
@property
|
9530
|
+
def EnvironmentId(self):
|
9531
|
+
"""环境 ID
|
9532
|
+
:rtype: str
|
9533
|
+
"""
|
9534
|
+
return self._EnvironmentId
|
9535
|
+
|
9536
|
+
@EnvironmentId.setter
|
9537
|
+
def EnvironmentId(self, EnvironmentId):
|
9538
|
+
self._EnvironmentId = EnvironmentId
|
9539
|
+
|
9540
|
+
@property
|
9541
|
+
def GatewayName(self):
|
9542
|
+
"""网关名称
|
9543
|
+
:rtype: str
|
9544
|
+
"""
|
9545
|
+
return self._GatewayName
|
9546
|
+
|
9547
|
+
@GatewayName.setter
|
9548
|
+
def GatewayName(self, GatewayName):
|
9549
|
+
self._GatewayName = GatewayName
|
9550
|
+
|
9551
|
+
@property
|
9552
|
+
def GatewayType(self):
|
9553
|
+
"""网关类型,如 clb
|
9554
|
+
:rtype: str
|
9555
|
+
"""
|
9556
|
+
return self._GatewayType
|
9557
|
+
|
9558
|
+
@GatewayType.setter
|
9559
|
+
def GatewayType(self, GatewayType):
|
9560
|
+
self._GatewayType = GatewayType
|
9561
|
+
|
9562
|
+
@property
|
9563
|
+
def Name(self):
|
9564
|
+
"""转发配置名称
|
9565
|
+
:rtype: str
|
9566
|
+
"""
|
9567
|
+
return self._Name
|
9568
|
+
|
9569
|
+
@Name.setter
|
9570
|
+
def Name(self, Name):
|
9571
|
+
self._Name = Name
|
9572
|
+
|
9573
|
+
@property
|
9574
|
+
def Rules(self):
|
9575
|
+
"""rules 配置
|
9576
|
+
:rtype: list of IngressRule
|
9577
|
+
"""
|
9578
|
+
return self._Rules
|
9579
|
+
|
9580
|
+
@Rules.setter
|
9581
|
+
def Rules(self, Rules):
|
9582
|
+
self._Rules = Rules
|
9583
|
+
|
9584
|
+
@property
|
9585
|
+
def Mixed(self):
|
9586
|
+
"""是否混合 https,默认 false,可选值 true 代表有 https 协议监听
|
9587
|
+
:rtype: bool
|
9588
|
+
"""
|
9589
|
+
return self._Mixed
|
9590
|
+
|
9591
|
+
@Mixed.setter
|
9592
|
+
def Mixed(self, Mixed):
|
9593
|
+
self._Mixed = Mixed
|
9594
|
+
|
9595
|
+
@property
|
9596
|
+
def Tls(self):
|
9597
|
+
"""tls 配置
|
9598
|
+
:rtype: list of IngressTls
|
9599
|
+
"""
|
9600
|
+
return self._Tls
|
9601
|
+
|
9602
|
+
@Tls.setter
|
9603
|
+
def Tls(self, Tls):
|
9604
|
+
self._Tls = Tls
|
9605
|
+
|
9606
|
+
@property
|
9607
|
+
def RewriteType(self):
|
9608
|
+
"""重定向模式,可选值:
|
9609
|
+
- AUTO(自动重定向http到https)
|
9610
|
+
- NONE(不使用重定向)
|
9611
|
+
:rtype: str
|
9612
|
+
"""
|
9613
|
+
return self._RewriteType
|
9614
|
+
|
9615
|
+
@RewriteType.setter
|
9616
|
+
def RewriteType(self, RewriteType):
|
9617
|
+
self._RewriteType = RewriteType
|
9618
|
+
|
9619
|
+
|
9620
|
+
def _deserialize(self, params):
|
9621
|
+
self._EnvironmentId = params.get("EnvironmentId")
|
9622
|
+
self._GatewayName = params.get("GatewayName")
|
9623
|
+
self._GatewayType = params.get("GatewayType")
|
9624
|
+
self._Name = params.get("Name")
|
9625
|
+
if params.get("Rules") is not None:
|
9626
|
+
self._Rules = []
|
9627
|
+
for item in params.get("Rules"):
|
9628
|
+
obj = IngressRule()
|
9629
|
+
obj._deserialize(item)
|
9630
|
+
self._Rules.append(obj)
|
9631
|
+
self._Mixed = params.get("Mixed")
|
9632
|
+
if params.get("Tls") is not None:
|
9633
|
+
self._Tls = []
|
9634
|
+
for item in params.get("Tls"):
|
9635
|
+
obj = IngressTls()
|
9636
|
+
obj._deserialize(item)
|
9637
|
+
self._Tls.append(obj)
|
9638
|
+
self._RewriteType = params.get("RewriteType")
|
9639
|
+
memeber_set = set(params.keys())
|
9640
|
+
for name, value in vars(self).items():
|
9641
|
+
property_name = name[1:]
|
9642
|
+
if property_name in memeber_set:
|
9643
|
+
memeber_set.remove(property_name)
|
9644
|
+
if len(memeber_set) > 0:
|
9645
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
9646
|
+
|
9647
|
+
|
9648
|
+
|
9649
|
+
class ModifyGatewayIngressResponse(AbstractModel):
|
9650
|
+
"""ModifyGatewayIngress返回参数结构体
|
9651
|
+
|
9652
|
+
"""
|
9653
|
+
|
9654
|
+
def __init__(self):
|
9655
|
+
r"""
|
9656
|
+
:param _Result: 是否成功
|
9657
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9658
|
+
:type Result: bool
|
9659
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9660
|
+
:type RequestId: str
|
9661
|
+
"""
|
9662
|
+
self._Result = None
|
9663
|
+
self._RequestId = None
|
9664
|
+
|
9665
|
+
@property
|
9666
|
+
def Result(self):
|
9667
|
+
"""是否成功
|
9668
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9669
|
+
:rtype: bool
|
9670
|
+
"""
|
9671
|
+
return self._Result
|
9672
|
+
|
9673
|
+
@Result.setter
|
9674
|
+
def Result(self, Result):
|
9675
|
+
self._Result = Result
|
9676
|
+
|
9677
|
+
@property
|
9678
|
+
def RequestId(self):
|
9679
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9680
|
+
:rtype: str
|
9681
|
+
"""
|
9682
|
+
return self._RequestId
|
9683
|
+
|
9684
|
+
@RequestId.setter
|
9685
|
+
def RequestId(self, RequestId):
|
9686
|
+
self._RequestId = RequestId
|
9687
|
+
|
9688
|
+
|
9689
|
+
def _deserialize(self, params):
|
9690
|
+
self._Result = params.get("Result")
|
9691
|
+
self._RequestId = params.get("RequestId")
|
9692
|
+
|
9693
|
+
|
9494
9694
|
class ModifyIngressRequest(AbstractModel):
|
9495
9695
|
"""ModifyIngress请求参数结构体
|
9496
9696
|
|
@@ -995,6 +995,29 @@ class TemClient(AbstractClient):
|
|
995
995
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
996
996
|
|
997
997
|
|
998
|
+
def ModifyGatewayIngress(self, request):
|
999
|
+
"""修改网关的转发配置
|
1000
|
+
|
1001
|
+
:param request: Request instance for ModifyGatewayIngress.
|
1002
|
+
:type request: :class:`tencentcloud.tem.v20210701.models.ModifyGatewayIngressRequest`
|
1003
|
+
:rtype: :class:`tencentcloud.tem.v20210701.models.ModifyGatewayIngressResponse`
|
1004
|
+
|
1005
|
+
"""
|
1006
|
+
try:
|
1007
|
+
params = request._serialize()
|
1008
|
+
headers = request.headers
|
1009
|
+
body = self.call("ModifyGatewayIngress", params, headers=headers)
|
1010
|
+
response = json.loads(body)
|
1011
|
+
model = models.ModifyGatewayIngressResponse()
|
1012
|
+
model._deserialize(response["Response"])
|
1013
|
+
return model
|
1014
|
+
except Exception as e:
|
1015
|
+
if isinstance(e, TencentCloudSDKException):
|
1016
|
+
raise
|
1017
|
+
else:
|
1018
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1019
|
+
|
1020
|
+
|
998
1021
|
def ModifyIngress(self, request):
|
999
1022
|
"""此接口没有被使用了
|
1000
1023
|
|