tencentcloud-sdk-python 3.0.1180__py2.py3-none-any.whl → 3.0.1182__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/aiart/v20221229/aiart_client.py +25 -0
- tencentcloud/aiart/v20221229/models.py +171 -0
- tencentcloud/clb/v20180317/models.py +1 -1
- tencentcloud/csip/v20221121/errorcodes.py +15 -0
- tencentcloud/csip/v20221121/models.py +9 -9
- tencentcloud/dcdb/v20180411/models.py +12 -0
- tencentcloud/dts/v20211206/models.py +13 -0
- tencentcloud/ess/v20201111/models.py +1 -1
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/gaap/v20180529/errorcodes.py +6 -0
- tencentcloud/gaap/v20180529/gaap_client.py +23 -0
- tencentcloud/gaap/v20180529/models.py +82 -0
- tencentcloud/ims/v20201229/ims_client.py +2 -0
- tencentcloud/ims/v20201229/models.py +1 -1
- tencentcloud/mariadb/v20170312/models.py +12 -0
- tencentcloud/monitor/v20180724/models.py +12 -0
- tencentcloud/ocr/v20181119/models.py +61 -0
- tencentcloud/ocr/v20181119/ocr_client.py +2 -0
- tencentcloud/organization/v20210331/organization_client.py +1 -1
- tencentcloud/redis/v20180412/models.py +14 -8
- tencentcloud/tdmq/v20200217/models.py +25 -0
- tencentcloud/teo/v20220901/errorcodes.py +15 -0
- tencentcloud/teo/v20220901/models.py +117 -23
- tencentcloud/tmt/v20180321/models.py +48 -0
- tencentcloud/vpc/v20170312/models.py +116 -0
- tencentcloud/waf/v20180125/models.py +65 -0
- {tencentcloud_sdk_python-3.0.1180.dist-info → tencentcloud_sdk_python-3.0.1182.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1180.dist-info → tencentcloud_sdk_python-3.0.1182.dist-info}/RECORD +32 -32
- {tencentcloud_sdk_python-3.0.1180.dist-info → tencentcloud_sdk_python-3.0.1182.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1180.dist-info → tencentcloud_sdk_python-3.0.1182.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1180.dist-info → tencentcloud_sdk_python-3.0.1182.dist-info}/top_level.txt +0 -0
@@ -8138,6 +8138,8 @@ class DescribeAlarmHistoriesRequest(AbstractModel):
|
|
8138
8138
|
:type PolicyIds: list of str
|
8139
8139
|
:param _AlarmLevels: 告警等级,取值范围:Remind、Serious、Warn
|
8140
8140
|
:type AlarmLevels: list of str
|
8141
|
+
:param _ConvergenceHistoryIDs: 收敛历史的唯一id
|
8142
|
+
:type ConvergenceHistoryIDs: list of str
|
8141
8143
|
"""
|
8142
8144
|
self._Module = None
|
8143
8145
|
self._PageNumber = None
|
@@ -8158,6 +8160,7 @@ class DescribeAlarmHistoriesRequest(AbstractModel):
|
|
8158
8160
|
self._ReceiverGroups = None
|
8159
8161
|
self._PolicyIds = None
|
8160
8162
|
self._AlarmLevels = None
|
8163
|
+
self._ConvergenceHistoryIDs = None
|
8161
8164
|
|
8162
8165
|
@property
|
8163
8166
|
def Module(self):
|
@@ -8311,6 +8314,14 @@ class DescribeAlarmHistoriesRequest(AbstractModel):
|
|
8311
8314
|
def AlarmLevels(self, AlarmLevels):
|
8312
8315
|
self._AlarmLevels = AlarmLevels
|
8313
8316
|
|
8317
|
+
@property
|
8318
|
+
def ConvergenceHistoryIDs(self):
|
8319
|
+
return self._ConvergenceHistoryIDs
|
8320
|
+
|
8321
|
+
@ConvergenceHistoryIDs.setter
|
8322
|
+
def ConvergenceHistoryIDs(self, ConvergenceHistoryIDs):
|
8323
|
+
self._ConvergenceHistoryIDs = ConvergenceHistoryIDs
|
8324
|
+
|
8314
8325
|
|
8315
8326
|
def _deserialize(self, params):
|
8316
8327
|
self._Module = params.get("Module")
|
@@ -8337,6 +8348,7 @@ class DescribeAlarmHistoriesRequest(AbstractModel):
|
|
8337
8348
|
self._ReceiverGroups = params.get("ReceiverGroups")
|
8338
8349
|
self._PolicyIds = params.get("PolicyIds")
|
8339
8350
|
self._AlarmLevels = params.get("AlarmLevels")
|
8351
|
+
self._ConvergenceHistoryIDs = params.get("ConvergenceHistoryIDs")
|
8340
8352
|
memeber_set = set(params.keys())
|
8341
8353
|
for name, value in vars(self).items():
|
8342
8354
|
property_name = name[1:]
|
@@ -76,10 +76,13 @@ class AdvertiseOCRResponse(AbstractModel):
|
|
76
76
|
r"""
|
77
77
|
:param _TextDetections: 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
|
78
78
|
:type TextDetections: list of AdvertiseTextDetection
|
79
|
+
:param _ImageSize: 图片分辨率信息,单位 px
|
80
|
+
:type ImageSize: :class:`tencentcloud.ocr.v20181119.models.ImageSize`
|
79
81
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
80
82
|
:type RequestId: str
|
81
83
|
"""
|
82
84
|
self._TextDetections = None
|
85
|
+
self._ImageSize = None
|
83
86
|
self._RequestId = None
|
84
87
|
|
85
88
|
@property
|
@@ -90,6 +93,14 @@ class AdvertiseOCRResponse(AbstractModel):
|
|
90
93
|
def TextDetections(self, TextDetections):
|
91
94
|
self._TextDetections = TextDetections
|
92
95
|
|
96
|
+
@property
|
97
|
+
def ImageSize(self):
|
98
|
+
return self._ImageSize
|
99
|
+
|
100
|
+
@ImageSize.setter
|
101
|
+
def ImageSize(self, ImageSize):
|
102
|
+
self._ImageSize = ImageSize
|
103
|
+
|
93
104
|
@property
|
94
105
|
def RequestId(self):
|
95
106
|
return self._RequestId
|
@@ -106,6 +117,9 @@ class AdvertiseOCRResponse(AbstractModel):
|
|
106
117
|
obj = AdvertiseTextDetection()
|
107
118
|
obj._deserialize(item)
|
108
119
|
self._TextDetections.append(obj)
|
120
|
+
if params.get("ImageSize") is not None:
|
121
|
+
self._ImageSize = ImageSize()
|
122
|
+
self._ImageSize._deserialize(params.get("ImageSize"))
|
109
123
|
self._RequestId = params.get("RequestId")
|
110
124
|
|
111
125
|
|
@@ -9560,6 +9574,53 @@ class ImageEnhancementResponse(AbstractModel):
|
|
9560
9574
|
self._RequestId = params.get("RequestId")
|
9561
9575
|
|
9562
9576
|
|
9577
|
+
class ImageSize(AbstractModel):
|
9578
|
+
"""图片分辨率信息
|
9579
|
+
|
9580
|
+
"""
|
9581
|
+
|
9582
|
+
def __init__(self):
|
9583
|
+
r"""
|
9584
|
+
:param _Width: 图片的宽,单位像素
|
9585
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9586
|
+
:type Width: int
|
9587
|
+
:param _Height: 图片的高,单位像素
|
9588
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9589
|
+
:type Height: int
|
9590
|
+
"""
|
9591
|
+
self._Width = None
|
9592
|
+
self._Height = None
|
9593
|
+
|
9594
|
+
@property
|
9595
|
+
def Width(self):
|
9596
|
+
return self._Width
|
9597
|
+
|
9598
|
+
@Width.setter
|
9599
|
+
def Width(self, Width):
|
9600
|
+
self._Width = Width
|
9601
|
+
|
9602
|
+
@property
|
9603
|
+
def Height(self):
|
9604
|
+
return self._Height
|
9605
|
+
|
9606
|
+
@Height.setter
|
9607
|
+
def Height(self, Height):
|
9608
|
+
self._Height = Height
|
9609
|
+
|
9610
|
+
|
9611
|
+
def _deserialize(self, params):
|
9612
|
+
self._Width = params.get("Width")
|
9613
|
+
self._Height = params.get("Height")
|
9614
|
+
memeber_set = set(params.keys())
|
9615
|
+
for name, value in vars(self).items():
|
9616
|
+
property_name = name[1:]
|
9617
|
+
if property_name in memeber_set:
|
9618
|
+
memeber_set.remove(property_name)
|
9619
|
+
if len(memeber_set) > 0:
|
9620
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
9621
|
+
|
9622
|
+
|
9623
|
+
|
9563
9624
|
class InstitutionOCRRequest(AbstractModel):
|
9564
9625
|
"""InstitutionOCR请求参数结构体
|
9565
9626
|
|
@@ -31,6 +31,8 @@ class OcrClient(AbstractClient):
|
|
31
31
|
|
32
32
|
产品优势:针对广告商品图片普遍存在较多繁体字、艺术字的特点,进行了识别能力的增强。支持中英文、横排、竖排以及倾斜场景文字识别。文字识别的召回率和准确率能达到96%以上。
|
33
33
|
|
34
|
+
默认接口请求频率限制:20次/秒。
|
35
|
+
|
34
36
|
:param request: Request instance for AdvertiseOCR.
|
35
37
|
:type request: :class:`tencentcloud.ocr.v20181119.models.AdvertiseOCRRequest`
|
36
38
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.AdvertiseOCRResponse`
|
@@ -510,7 +510,7 @@ class OrganizationClient(AbstractClient):
|
|
510
510
|
|
511
511
|
|
512
512
|
def DeleteOrganizationMembers(self, request):
|
513
|
-
"""
|
513
|
+
"""从组织中移除成员账号,不会删除账号。
|
514
514
|
|
515
515
|
:param request: Request instance for DeleteOrganizationMembers.
|
516
516
|
:type request: :class:`tencentcloud.organization.v20210331.models.DeleteOrganizationMembersRequest`
|
@@ -1622,7 +1622,7 @@ class CommandTake(AbstractModel):
|
|
1622
1622
|
r"""
|
1623
1623
|
:param _Cmd: 命令名。
|
1624
1624
|
:type Cmd: str
|
1625
|
-
:param _Took:
|
1625
|
+
:param _Took: 耗时时长。单位:ms。
|
1626
1626
|
:type Took: int
|
1627
1627
|
"""
|
1628
1628
|
self._Cmd = None
|
@@ -5259,9 +5259,13 @@ class DescribeInstanceMonitorTopNCmdRequest(AbstractModel):
|
|
5259
5259
|
|
5260
5260
|
def __init__(self):
|
5261
5261
|
r"""
|
5262
|
-
:param _InstanceId: 实例
|
5262
|
+
:param _InstanceId: 实例 ID。
|
5263
5263
|
:type InstanceId: str
|
5264
|
-
:param _SpanType:
|
5264
|
+
:param _SpanType: 时间范围。
|
5265
|
+
- 1:实时。
|
5266
|
+
- 2:近30分钟。
|
5267
|
+
- 3:近6小时。
|
5268
|
+
- 4:近24小时。
|
5265
5269
|
:type SpanType: int
|
5266
5270
|
"""
|
5267
5271
|
self._InstanceId = None
|
@@ -9655,7 +9659,7 @@ class InstanceClusterNode(AbstractModel):
|
|
9655
9659
|
|
9656
9660
|
def __init__(self):
|
9657
9661
|
r"""
|
9658
|
-
:param _Name:
|
9662
|
+
:param _Name: 节点组名称。
|
9659
9663
|
:type Name: str
|
9660
9664
|
:param _RunId: 实例运行时节点 ID。
|
9661
9665
|
:type RunId: str
|
@@ -17783,13 +17787,15 @@ class ZoneCapacityConf(AbstractModel):
|
|
17783
17787
|
r"""
|
17784
17788
|
:param _ZoneId: 可用区ID:如ap-guangzhou-3
|
17785
17789
|
:type ZoneId: str
|
17786
|
-
:param _ZoneName:
|
17790
|
+
:param _ZoneName: 可用区名称。
|
17787
17791
|
:type ZoneName: str
|
17788
|
-
:param _IsSaleout:
|
17792
|
+
:param _IsSaleout: 可用区是否售罄。
|
17789
17793
|
:type IsSaleout: bool
|
17790
|
-
:param _IsDefault:
|
17794
|
+
:param _IsDefault: 是否为默认可用区。
|
17791
17795
|
:type IsDefault: bool
|
17792
|
-
:param _NetWorkType:
|
17796
|
+
:param _NetWorkType: 网络类型。
|
17797
|
+
- basenet:基础网络。
|
17798
|
+
- vpcnet -- VPC网络。
|
17793
17799
|
:type NetWorkType: list of str
|
17794
17800
|
:param _ProductSet: 可用区内产品规格等信息
|
17795
17801
|
:type ProductSet: list of ProductConf
|
@@ -3831,6 +3831,8 @@ class CreateRabbitMQVipInstanceRequest(AbstractModel):
|
|
3831
3831
|
:type ResourceTags: list of Tag
|
3832
3832
|
:param _Bandwidth: 公网带宽大小,单位 M
|
3833
3833
|
:type Bandwidth: int
|
3834
|
+
:param _EnablePublicAccess: 是否打开公网接入,不传默认为false
|
3835
|
+
:type EnablePublicAccess: bool
|
3834
3836
|
"""
|
3835
3837
|
self._ZoneIds = None
|
3836
3838
|
self._VpcId = None
|
@@ -3847,6 +3849,7 @@ class CreateRabbitMQVipInstanceRequest(AbstractModel):
|
|
3847
3849
|
self._IsIntl = None
|
3848
3850
|
self._ResourceTags = None
|
3849
3851
|
self._Bandwidth = None
|
3852
|
+
self._EnablePublicAccess = None
|
3850
3853
|
|
3851
3854
|
@property
|
3852
3855
|
def ZoneIds(self):
|
@@ -3968,6 +3971,14 @@ class CreateRabbitMQVipInstanceRequest(AbstractModel):
|
|
3968
3971
|
def Bandwidth(self, Bandwidth):
|
3969
3972
|
self._Bandwidth = Bandwidth
|
3970
3973
|
|
3974
|
+
@property
|
3975
|
+
def EnablePublicAccess(self):
|
3976
|
+
return self._EnablePublicAccess
|
3977
|
+
|
3978
|
+
@EnablePublicAccess.setter
|
3979
|
+
def EnablePublicAccess(self, EnablePublicAccess):
|
3980
|
+
self._EnablePublicAccess = EnablePublicAccess
|
3981
|
+
|
3971
3982
|
|
3972
3983
|
def _deserialize(self, params):
|
3973
3984
|
self._ZoneIds = params.get("ZoneIds")
|
@@ -3990,6 +4001,7 @@ class CreateRabbitMQVipInstanceRequest(AbstractModel):
|
|
3990
4001
|
obj._deserialize(item)
|
3991
4002
|
self._ResourceTags.append(obj)
|
3992
4003
|
self._Bandwidth = params.get("Bandwidth")
|
4004
|
+
self._EnablePublicAccess = params.get("EnablePublicAccess")
|
3993
4005
|
memeber_set = set(params.keys())
|
3994
4006
|
for name, value in vars(self).items():
|
3995
4007
|
property_name = name[1:]
|
@@ -23221,6 +23233,9 @@ class RabbitMQVirtualHostInfo(AbstractModel):
|
|
23221
23233
|
:param _VirtualHostStatistics: vhost概览统计信息
|
23222
23234
|
注意:此字段可能返回 null,表示取不到有效值。
|
23223
23235
|
:type VirtualHostStatistics: :class:`tencentcloud.tdmq.v20200217.models.RabbitMQVirtualHostStatistics`
|
23236
|
+
:param _TraceFlag: 消息轨迹开关,true打开,false关闭
|
23237
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
23238
|
+
:type TraceFlag: bool
|
23224
23239
|
:param _Status: vhost状态,与原生控制台对应,有running、partial、stopped、unknown
|
23225
23240
|
注意:此字段可能返回 null,表示取不到有效值。
|
23226
23241
|
:type Status: str
|
@@ -23244,6 +23259,7 @@ class RabbitMQVirtualHostInfo(AbstractModel):
|
|
23244
23259
|
self._CreateTime = None
|
23245
23260
|
self._ModifyTime = None
|
23246
23261
|
self._VirtualHostStatistics = None
|
23262
|
+
self._TraceFlag = None
|
23247
23263
|
self._Status = None
|
23248
23264
|
self._MessageHeapCount = None
|
23249
23265
|
self._MessageRateIn = None
|
@@ -23306,6 +23322,14 @@ class RabbitMQVirtualHostInfo(AbstractModel):
|
|
23306
23322
|
def VirtualHostStatistics(self, VirtualHostStatistics):
|
23307
23323
|
self._VirtualHostStatistics = VirtualHostStatistics
|
23308
23324
|
|
23325
|
+
@property
|
23326
|
+
def TraceFlag(self):
|
23327
|
+
return self._TraceFlag
|
23328
|
+
|
23329
|
+
@TraceFlag.setter
|
23330
|
+
def TraceFlag(self, TraceFlag):
|
23331
|
+
self._TraceFlag = TraceFlag
|
23332
|
+
|
23309
23333
|
@property
|
23310
23334
|
def Status(self):
|
23311
23335
|
return self._Status
|
@@ -23357,6 +23381,7 @@ class RabbitMQVirtualHostInfo(AbstractModel):
|
|
23357
23381
|
if params.get("VirtualHostStatistics") is not None:
|
23358
23382
|
self._VirtualHostStatistics = RabbitMQVirtualHostStatistics()
|
23359
23383
|
self._VirtualHostStatistics._deserialize(params.get("VirtualHostStatistics"))
|
23384
|
+
self._TraceFlag = params.get("TraceFlag")
|
23360
23385
|
self._Status = params.get("Status")
|
23361
23386
|
self._MessageHeapCount = params.get("MessageHeapCount")
|
23362
23387
|
self._MessageRateIn = params.get("MessageRateIn")
|
@@ -674,6 +674,15 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
674
674
|
# 该站点域名已被禁用。
|
675
675
|
INVALIDPARAMETERVALUE_ACCESSBLACKLIST = 'InvalidParameterValue.AccessBlacklist'
|
676
676
|
|
677
|
+
# 边缘双向认证配置中的客户端证书必须是CA证书。
|
678
|
+
INVALIDPARAMETERVALUE_CERTIFICATEVERIFYCLIENTMUSTCA = 'InvalidParameterValue.CertificateVerifyClientMustCa'
|
679
|
+
|
680
|
+
# 边缘双向认证配置至少需要配置一本证书。
|
681
|
+
INVALIDPARAMETERVALUE_CERTIFICATEVERIFYCLIENTNEEDCERT = 'InvalidParameterValue.CertificateVerifyClientNeedCert'
|
682
|
+
|
683
|
+
# 边缘双向认证配置中的客户端 CA 证书最多允许配置20本。
|
684
|
+
INVALIDPARAMETERVALUE_CLIENTCERTINFOQUOTALIMIT = 'InvalidParameterValue.ClientCertInfoQuotaLimit'
|
685
|
+
|
677
686
|
# 与已经添加的记录冲突。
|
678
687
|
INVALIDPARAMETERVALUE_CONFLICTRECORD = 'InvalidParameterValue.ConflictRecord'
|
679
688
|
|
@@ -746,6 +755,12 @@ INVALIDPARAMETERVALUE_PAGENAMEALREADYEXIST = 'InvalidParameterValue.PageNameAlre
|
|
746
755
|
# 不符合指定的正则表达式。
|
747
756
|
INVALIDPARAMETERVALUE_REGEXMISMATCH = 'InvalidParameterValue.RegExMismatch'
|
748
757
|
|
758
|
+
# 已开启双向认证,客户端使用 RSA 或者 ECC 算法证书时,HTTPS 证书必须也配置有相同算法证书。
|
759
|
+
INVALIDPARAMETERVALUE_SERVERCERTINFONEEDCONTAINRSAORECC = 'InvalidParameterValue.ServerCertInfoNeedContainRSAorECC'
|
760
|
+
|
761
|
+
# 已开启双向认证,客户端使用国密算法 CA 证书时,HTTPS 证书必须也配置有国密证书。
|
762
|
+
INVALIDPARAMETERVALUE_SERVERCERTINFONEEDCONTAINSM2 = 'InvalidParameterValue.ServerCertInfoNeedContainSM2'
|
763
|
+
|
749
764
|
# 请输入合法的共享 CNAME 前缀,最大支持50个字符。
|
750
765
|
INVALIDPARAMETERVALUE_SHAREDCNAMEPREFIXNOTMATCH = 'InvalidParameterValue.SharedCNAMEPrefixNotMatch'
|
751
766
|
|
@@ -311,12 +311,15 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
311
311
|
r"""
|
312
312
|
:param _Mode: 配置证书的模式,取值有: <li>disable:不配置证书;</li> <li>eofreecert:配置 EdgeOne 免费证书;</li> <li>sslcert:配置 SSL 证书。</li>
|
313
313
|
:type Mode: str
|
314
|
-
:param _List:
|
314
|
+
:param _List: 服务端证书列表。
|
315
315
|
注意:此字段可能返回 null,表示取不到有效值。
|
316
316
|
:type List: list of CertificateInfo
|
317
|
+
:param _ClientCertInfo: 边缘双向认证配置。
|
318
|
+
:type ClientCertInfo: :class:`tencentcloud.teo.v20220901.models.MutualTLS`
|
317
319
|
"""
|
318
320
|
self._Mode = None
|
319
321
|
self._List = None
|
322
|
+
self._ClientCertInfo = None
|
320
323
|
|
321
324
|
@property
|
322
325
|
def Mode(self):
|
@@ -334,6 +337,14 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
334
337
|
def List(self, List):
|
335
338
|
self._List = List
|
336
339
|
|
340
|
+
@property
|
341
|
+
def ClientCertInfo(self):
|
342
|
+
return self._ClientCertInfo
|
343
|
+
|
344
|
+
@ClientCertInfo.setter
|
345
|
+
def ClientCertInfo(self, ClientCertInfo):
|
346
|
+
self._ClientCertInfo = ClientCertInfo
|
347
|
+
|
337
348
|
|
338
349
|
def _deserialize(self, params):
|
339
350
|
self._Mode = params.get("Mode")
|
@@ -343,6 +354,9 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
343
354
|
obj = CertificateInfo()
|
344
355
|
obj._deserialize(item)
|
345
356
|
self._List.append(obj)
|
357
|
+
if params.get("ClientCertInfo") is not None:
|
358
|
+
self._ClientCertInfo = MutualTLS()
|
359
|
+
self._ClientCertInfo._deserialize(params.get("ClientCertInfo"))
|
346
360
|
memeber_set = set(params.keys())
|
347
361
|
for name, value in vars(self).items():
|
348
362
|
property_name = name[1:]
|
@@ -3345,13 +3359,13 @@ class CacheTag(AbstractModel):
|
|
3345
3359
|
|
3346
3360
|
|
3347
3361
|
class CertificateInfo(AbstractModel):
|
3348
|
-
"""https
|
3362
|
+
"""https 证书配置。
|
3349
3363
|
|
3350
3364
|
"""
|
3351
3365
|
|
3352
3366
|
def __init__(self):
|
3353
3367
|
r"""
|
3354
|
-
:param _CertId:
|
3368
|
+
:param _CertId: 证书 ID。
|
3355
3369
|
:type CertId: str
|
3356
3370
|
:param _Alias: 证书备注名。
|
3357
3371
|
:type Alias: str
|
@@ -16486,7 +16500,7 @@ class IpTableConfig(AbstractModel):
|
|
16486
16500
|
|
16487
16501
|
|
16488
16502
|
class IpTableRule(AbstractModel):
|
16489
|
-
"""
|
16503
|
+
"""自定义规则-基础访问管控配置。
|
16490
16504
|
|
16491
16505
|
"""
|
16492
16506
|
|
@@ -16498,32 +16512,43 @@ class IpTableRule(AbstractModel):
|
|
16498
16512
|
<li> monitor:观察。</li>
|
16499
16513
|
:type Action: str
|
16500
16514
|
:param _MatchFrom: 根据类型匹配,取值有:
|
16501
|
-
<li>ip
|
16502
|
-
<li>area
|
16515
|
+
<li>ip:客户端 IP 进行匹配;</li>
|
16516
|
+
<li>area:客户端 IP 所属地区匹配;</li>
|
16517
|
+
<li>asn:客户端所属的自治系统进行匹配;</li>
|
16518
|
+
<li>referer:请求头 Referer 进行匹配;</li>
|
16519
|
+
<li>ua:请求头 User-Agent 进行匹配;</li>
|
16520
|
+
<li>url:请求 URL 进行匹配。</li>
|
16503
16521
|
:type MatchFrom: str
|
16504
|
-
:param _Operator:
|
16505
|
-
|
16506
|
-
<li>
|
16507
|
-
<li>
|
16508
|
-
<li>
|
16509
|
-
<li>
|
16510
|
-
<li>
|
16511
|
-
<li>
|
16512
|
-
|
16522
|
+
:param _Operator: 规则的匹配方式。取值有:
|
16523
|
+
<li> match:匹配,适用于 MatchFrom 为 ip;</li>
|
16524
|
+
<li> not_match:不匹配,适用于 MatchFrom 为 ip;</li>
|
16525
|
+
<li> include_area:地域包含,适用于 MatchFrom 为 area;</li>
|
16526
|
+
<li> not_include_area:地域不包含,适用于 MatchFrom 为 area;</li>
|
16527
|
+
<li> asn_match:ASN 包含,适用于 MatchFrom 为 asn;</li>
|
16528
|
+
<li> asn_not_match:ASN 不包含,适用于 MatchFrom 为 asn;</li>
|
16529
|
+
<li> equal:等于,适用于 MatchFrom 为 ua , referer;</li>
|
16530
|
+
<li> not_equal:不等于,适用于 MatchFrom 为 ua , referer;</li>
|
16531
|
+
<li> include:通配符匹配,适用于 MatchFrom 为 ua , referer , url;</li>
|
16532
|
+
<li> not_include:通配符不匹配,适用于 MatchFrom 为 ua , referer;</li>
|
16533
|
+
<li> is_emty:配置内容为空,适用于 MatchFrom 为 ua , referer;</li>
|
16534
|
+
<li> not_exists:配置内容不存在,适用于 MatchFrom 为 ua , referer。</li>
|
16513
16535
|
:type Operator: str
|
16514
16536
|
:param _RuleID: 规则id。仅出参使用。
|
16515
16537
|
:type RuleID: int
|
16516
16538
|
:param _UpdateTime: 更新时间。仅出参使用。
|
16517
16539
|
:type UpdateTime: str
|
16518
|
-
:param _Status:
|
16540
|
+
:param _Status: 规则启用状态。取值有:
|
16519
16541
|
<li> on:启用;</li>
|
16520
16542
|
<li> off:未启用。</li>
|
16521
|
-
|
16543
|
+
当入参缺省时,按 on 取值。
|
16522
16544
|
:type Status: str
|
16523
16545
|
:param _RuleName: 规则名。
|
16524
16546
|
注意:此字段可能返回 null,表示取不到有效值。
|
16525
16547
|
:type RuleName: str
|
16526
|
-
:param _MatchContent:
|
16548
|
+
:param _MatchContent: 匹配内容。支持多值输入。
|
16549
|
+
<li>当输入多个匹配值时,请使用英文逗号分隔;</li>
|
16550
|
+
<li>当 MatchFrom 为 ua 时,不支持多值输入;</li>
|
16551
|
+
<li>当 Operator 为 is_empty 或 not_exists 时,本字段入参值无效。</li>
|
16527
16552
|
:type MatchContent: str
|
16528
16553
|
"""
|
16529
16554
|
self._Action = None
|
@@ -18532,24 +18557,29 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
18532
18557
|
:type ZoneId: str
|
18533
18558
|
:param _Hosts: 需要修改证书配置的加速域名。
|
18534
18559
|
:type Hosts: list of str
|
18535
|
-
:param _Mode:
|
18536
|
-
<li>disable
|
18537
|
-
<li>eofreecert:配置 EdgeOne
|
18538
|
-
<li>sslcert:配置 SSL
|
18560
|
+
:param _Mode: 配置服务端证书的模式,取值有:
|
18561
|
+
<li>disable:不配置服务端证书;</li>
|
18562
|
+
<li>eofreecert:配置 EdgeOne 免费服务端证书;</li>
|
18563
|
+
<li>sslcert:配置 SSL 托管服务端证书;</li>
|
18564
|
+
不填写表示服务端证书保持原有配置。
|
18539
18565
|
:type Mode: str
|
18540
|
-
:param _ServerCertInfo: SSL 证书配置,本参数仅在 mode
|
18566
|
+
:param _ServerCertInfo: SSL 证书配置,本参数仅在 mode 为 sslcert 时生效,传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/certoverview) 查看 CertId。
|
18541
18567
|
:type ServerCertInfo: list of ServerCertInfo
|
18542
18568
|
:param _ApplyType: 托管类型,取值有:
|
18543
18569
|
<li>none:不托管EO;</li>
|
18544
18570
|
<li>apply:托管EO</li>
|
18545
18571
|
不填,默认取值为none。
|
18546
18572
|
:type ApplyType: str
|
18573
|
+
:param _ClientCertInfo: 边缘双向认证配置。
|
18574
|
+
不填写表示边缘双向认证保持原有配置。
|
18575
|
+
:type ClientCertInfo: :class:`tencentcloud.teo.v20220901.models.MutualTLS`
|
18547
18576
|
"""
|
18548
18577
|
self._ZoneId = None
|
18549
18578
|
self._Hosts = None
|
18550
18579
|
self._Mode = None
|
18551
18580
|
self._ServerCertInfo = None
|
18552
18581
|
self._ApplyType = None
|
18582
|
+
self._ClientCertInfo = None
|
18553
18583
|
|
18554
18584
|
@property
|
18555
18585
|
def ZoneId(self):
|
@@ -18595,6 +18625,14 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
18595
18625
|
|
18596
18626
|
self._ApplyType = ApplyType
|
18597
18627
|
|
18628
|
+
@property
|
18629
|
+
def ClientCertInfo(self):
|
18630
|
+
return self._ClientCertInfo
|
18631
|
+
|
18632
|
+
@ClientCertInfo.setter
|
18633
|
+
def ClientCertInfo(self, ClientCertInfo):
|
18634
|
+
self._ClientCertInfo = ClientCertInfo
|
18635
|
+
|
18598
18636
|
|
18599
18637
|
def _deserialize(self, params):
|
18600
18638
|
self._ZoneId = params.get("ZoneId")
|
@@ -18607,6 +18645,9 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
18607
18645
|
obj._deserialize(item)
|
18608
18646
|
self._ServerCertInfo.append(obj)
|
18609
18647
|
self._ApplyType = params.get("ApplyType")
|
18648
|
+
if params.get("ClientCertInfo") is not None:
|
18649
|
+
self._ClientCertInfo = MutualTLS()
|
18650
|
+
self._ClientCertInfo._deserialize(params.get("ClientCertInfo"))
|
18610
18651
|
memeber_set = set(params.keys())
|
18611
18652
|
for name, value in vars(self).items():
|
18612
18653
|
property_name = name[1:]
|
@@ -20297,6 +20338,59 @@ class ModifyZoneStatusResponse(AbstractModel):
|
|
20297
20338
|
self._RequestId = params.get("RequestId")
|
20298
20339
|
|
20299
20340
|
|
20341
|
+
class MutualTLS(AbstractModel):
|
20342
|
+
"""HTTPS 双向认证。
|
20343
|
+
|
20344
|
+
"""
|
20345
|
+
|
20346
|
+
def __init__(self):
|
20347
|
+
r"""
|
20348
|
+
:param _Switch: 双向认证配置开关,取值有:
|
20349
|
+
<li>on:开启;</li>
|
20350
|
+
<li>off:关闭。</li>
|
20351
|
+
:type Switch: str
|
20352
|
+
:param _CertInfos: 双向认证证书列表。
|
20353
|
+
注意:MutualTLS 在 ModifyHostsCertificate 作为入参使用时,该参数传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/certoverview) 查看 CertId。
|
20354
|
+
:type CertInfos: list of CertificateInfo
|
20355
|
+
"""
|
20356
|
+
self._Switch = None
|
20357
|
+
self._CertInfos = None
|
20358
|
+
|
20359
|
+
@property
|
20360
|
+
def Switch(self):
|
20361
|
+
return self._Switch
|
20362
|
+
|
20363
|
+
@Switch.setter
|
20364
|
+
def Switch(self, Switch):
|
20365
|
+
self._Switch = Switch
|
20366
|
+
|
20367
|
+
@property
|
20368
|
+
def CertInfos(self):
|
20369
|
+
return self._CertInfos
|
20370
|
+
|
20371
|
+
@CertInfos.setter
|
20372
|
+
def CertInfos(self, CertInfos):
|
20373
|
+
self._CertInfos = CertInfos
|
20374
|
+
|
20375
|
+
|
20376
|
+
def _deserialize(self, params):
|
20377
|
+
self._Switch = params.get("Switch")
|
20378
|
+
if params.get("CertInfos") is not None:
|
20379
|
+
self._CertInfos = []
|
20380
|
+
for item in params.get("CertInfos"):
|
20381
|
+
obj = CertificateInfo()
|
20382
|
+
obj._deserialize(item)
|
20383
|
+
self._CertInfos.append(obj)
|
20384
|
+
memeber_set = set(params.keys())
|
20385
|
+
for name, value in vars(self).items():
|
20386
|
+
property_name = name[1:]
|
20387
|
+
if property_name in memeber_set:
|
20388
|
+
memeber_set.remove(property_name)
|
20389
|
+
if len(memeber_set) > 0:
|
20390
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
20391
|
+
|
20392
|
+
|
20393
|
+
|
20300
20394
|
class NoCache(AbstractModel):
|
20301
20395
|
"""不缓存配置
|
20302
20396
|
|
@@ -1113,11 +1113,17 @@ hi:印地语
|
|
1113
1113
|
:type ProjectId: int
|
1114
1114
|
:param _SourceTextList: 待翻译的文本列表,批量接口可以以数组方式在一次请求中填写多个待翻译文本。文本统一使用utf-8格式编码,非utf-8格式编码字符会翻译失败,请传入有效文本,html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度总和需要低于6000字符。
|
1115
1115
|
:type SourceTextList: list of str
|
1116
|
+
:param _TermRepoIDList: 需要使用的术语库列表
|
1117
|
+
:type TermRepoIDList: list of str
|
1118
|
+
:param _SentRepoIDList: 需要使用的例句库列表
|
1119
|
+
:type SentRepoIDList: list of str
|
1116
1120
|
"""
|
1117
1121
|
self._Source = None
|
1118
1122
|
self._Target = None
|
1119
1123
|
self._ProjectId = None
|
1120
1124
|
self._SourceTextList = None
|
1125
|
+
self._TermRepoIDList = None
|
1126
|
+
self._SentRepoIDList = None
|
1121
1127
|
|
1122
1128
|
@property
|
1123
1129
|
def Source(self):
|
@@ -1151,12 +1157,30 @@ hi:印地语
|
|
1151
1157
|
def SourceTextList(self, SourceTextList):
|
1152
1158
|
self._SourceTextList = SourceTextList
|
1153
1159
|
|
1160
|
+
@property
|
1161
|
+
def TermRepoIDList(self):
|
1162
|
+
return self._TermRepoIDList
|
1163
|
+
|
1164
|
+
@TermRepoIDList.setter
|
1165
|
+
def TermRepoIDList(self, TermRepoIDList):
|
1166
|
+
self._TermRepoIDList = TermRepoIDList
|
1167
|
+
|
1168
|
+
@property
|
1169
|
+
def SentRepoIDList(self):
|
1170
|
+
return self._SentRepoIDList
|
1171
|
+
|
1172
|
+
@SentRepoIDList.setter
|
1173
|
+
def SentRepoIDList(self, SentRepoIDList):
|
1174
|
+
self._SentRepoIDList = SentRepoIDList
|
1175
|
+
|
1154
1176
|
|
1155
1177
|
def _deserialize(self, params):
|
1156
1178
|
self._Source = params.get("Source")
|
1157
1179
|
self._Target = params.get("Target")
|
1158
1180
|
self._ProjectId = params.get("ProjectId")
|
1159
1181
|
self._SourceTextList = params.get("SourceTextList")
|
1182
|
+
self._TermRepoIDList = params.get("TermRepoIDList")
|
1183
|
+
self._SentRepoIDList = params.get("SentRepoIDList")
|
1160
1184
|
memeber_set = set(params.keys())
|
1161
1185
|
for name, value in vars(self).items():
|
1162
1186
|
property_name = name[1:]
|
@@ -1283,12 +1307,18 @@ hi:印地语
|
|
1283
1307
|
:type ProjectId: int
|
1284
1308
|
:param _UntranslatedText: 用来标记不希望被翻译的文本内容,如句子中的特殊符号、人名、地名等;每次请求只支持配置一个不被翻译的单词;仅支持配置人名、地名等名词,不要配置动词或短语,否则会影响翻译结果。
|
1285
1309
|
:type UntranslatedText: str
|
1310
|
+
:param _TermRepoIDList: 需要使用的术语库列表
|
1311
|
+
:type TermRepoIDList: list of str
|
1312
|
+
:param _SentRepoIDList: 需要使用的例句库列表
|
1313
|
+
:type SentRepoIDList: list of str
|
1286
1314
|
"""
|
1287
1315
|
self._SourceText = None
|
1288
1316
|
self._Source = None
|
1289
1317
|
self._Target = None
|
1290
1318
|
self._ProjectId = None
|
1291
1319
|
self._UntranslatedText = None
|
1320
|
+
self._TermRepoIDList = None
|
1321
|
+
self._SentRepoIDList = None
|
1292
1322
|
|
1293
1323
|
@property
|
1294
1324
|
def SourceText(self):
|
@@ -1330,6 +1360,22 @@ hi:印地语
|
|
1330
1360
|
def UntranslatedText(self, UntranslatedText):
|
1331
1361
|
self._UntranslatedText = UntranslatedText
|
1332
1362
|
|
1363
|
+
@property
|
1364
|
+
def TermRepoIDList(self):
|
1365
|
+
return self._TermRepoIDList
|
1366
|
+
|
1367
|
+
@TermRepoIDList.setter
|
1368
|
+
def TermRepoIDList(self, TermRepoIDList):
|
1369
|
+
self._TermRepoIDList = TermRepoIDList
|
1370
|
+
|
1371
|
+
@property
|
1372
|
+
def SentRepoIDList(self):
|
1373
|
+
return self._SentRepoIDList
|
1374
|
+
|
1375
|
+
@SentRepoIDList.setter
|
1376
|
+
def SentRepoIDList(self, SentRepoIDList):
|
1377
|
+
self._SentRepoIDList = SentRepoIDList
|
1378
|
+
|
1333
1379
|
|
1334
1380
|
def _deserialize(self, params):
|
1335
1381
|
self._SourceText = params.get("SourceText")
|
@@ -1337,6 +1383,8 @@ hi:印地语
|
|
1337
1383
|
self._Target = params.get("Target")
|
1338
1384
|
self._ProjectId = params.get("ProjectId")
|
1339
1385
|
self._UntranslatedText = params.get("UntranslatedText")
|
1386
|
+
self._TermRepoIDList = params.get("TermRepoIDList")
|
1387
|
+
self._SentRepoIDList = params.get("SentRepoIDList")
|
1340
1388
|
memeber_set = set(params.keys())
|
1341
1389
|
for name, value in vars(self).items():
|
1342
1390
|
property_name = name[1:]
|