tencentcloud-sdk-python 3.0.1436__py2.py3-none-any.whl → 3.0.1437__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/cls/v20201016/models.py +24 -16
- tencentcloud/dlc/v20210125/models.py +246 -0
- tencentcloud/ess/v20201111/ess_client.py +3 -3
- tencentcloud/ess/v20201111/models.py +8 -4
- tencentcloud/lke/v20231130/models.py +86 -0
- tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
- tencentcloud/mongodb/v20190725/mongodb_client.py +1 -1
- tencentcloud/ocr/v20181119/models.py +86 -0
- tencentcloud/partners/v20180321/partners_client.py +2 -1
- tencentcloud/postgres/v20170312/models.py +28 -24
- tencentcloud/postgres/v20170312/postgres_client.py +2 -2
- tencentcloud/sqlserver/v20180328/models.py +2 -2
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +1 -1
- tencentcloud/tcbr/v20220217/models.py +266 -4
- tencentcloud/tcr/v20190924/models.py +2 -2
- tencentcloud/teo/v20220901/models.py +20 -10
- tencentcloud/teo/v20220901/teo_client.py +7 -2
- tencentcloud/wsa/v20250508/models.py +22 -4
- {tencentcloud_sdk_python-3.0.1436.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1436.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/RECORD +24 -24
- {tencentcloud_sdk_python-3.0.1436.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1436.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1436.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/top_level.txt +0 -0
|
@@ -441,13 +441,16 @@ class CreateCloudRunServerRequest(AbstractModel):
|
|
|
441
441
|
:type ServerName: str
|
|
442
442
|
:param _DeployInfo: 部署信息
|
|
443
443
|
:type DeployInfo: :class:`tencentcloud.tcbr.v20220217.models.DeployParam`
|
|
444
|
-
:param _ServerConfig: 服务配置信息
|
|
444
|
+
:param _ServerConfig: 服务配置信息(已废弃)
|
|
445
445
|
:type ServerConfig: :class:`tencentcloud.tcbr.v20220217.models.ServerBaseConfig`
|
|
446
|
+
:param _Items: 服务配置信息
|
|
447
|
+
:type Items: list of DiffConfigItem
|
|
446
448
|
"""
|
|
447
449
|
self._EnvId = None
|
|
448
450
|
self._ServerName = None
|
|
449
451
|
self._DeployInfo = None
|
|
450
452
|
self._ServerConfig = None
|
|
453
|
+
self._Items = None
|
|
451
454
|
|
|
452
455
|
@property
|
|
453
456
|
def EnvId(self):
|
|
@@ -484,7 +487,7 @@ class CreateCloudRunServerRequest(AbstractModel):
|
|
|
484
487
|
|
|
485
488
|
@property
|
|
486
489
|
def ServerConfig(self):
|
|
487
|
-
"""服务配置信息
|
|
490
|
+
"""服务配置信息(已废弃)
|
|
488
491
|
:rtype: :class:`tencentcloud.tcbr.v20220217.models.ServerBaseConfig`
|
|
489
492
|
"""
|
|
490
493
|
return self._ServerConfig
|
|
@@ -493,6 +496,17 @@ class CreateCloudRunServerRequest(AbstractModel):
|
|
|
493
496
|
def ServerConfig(self, ServerConfig):
|
|
494
497
|
self._ServerConfig = ServerConfig
|
|
495
498
|
|
|
499
|
+
@property
|
|
500
|
+
def Items(self):
|
|
501
|
+
"""服务配置信息
|
|
502
|
+
:rtype: list of DiffConfigItem
|
|
503
|
+
"""
|
|
504
|
+
return self._Items
|
|
505
|
+
|
|
506
|
+
@Items.setter
|
|
507
|
+
def Items(self, Items):
|
|
508
|
+
self._Items = Items
|
|
509
|
+
|
|
496
510
|
|
|
497
511
|
def _deserialize(self, params):
|
|
498
512
|
self._EnvId = params.get("EnvId")
|
|
@@ -503,6 +517,12 @@ class CreateCloudRunServerRequest(AbstractModel):
|
|
|
503
517
|
if params.get("ServerConfig") is not None:
|
|
504
518
|
self._ServerConfig = ServerBaseConfig()
|
|
505
519
|
self._ServerConfig._deserialize(params.get("ServerConfig"))
|
|
520
|
+
if params.get("Items") is not None:
|
|
521
|
+
self._Items = []
|
|
522
|
+
for item in params.get("Items"):
|
|
523
|
+
obj = DiffConfigItem()
|
|
524
|
+
obj._deserialize(item)
|
|
525
|
+
self._Items.append(obj)
|
|
506
526
|
memeber_set = set(params.keys())
|
|
507
527
|
for name, value in vars(self).items():
|
|
508
528
|
property_name = name[1:]
|
|
@@ -1426,6 +1446,228 @@ class DescribeServerManageTaskResponse(AbstractModel):
|
|
|
1426
1446
|
self._RequestId = params.get("RequestId")
|
|
1427
1447
|
|
|
1428
1448
|
|
|
1449
|
+
class DiffConfigItem(AbstractModel):
|
|
1450
|
+
"""服务配置入参
|
|
1451
|
+
|
|
1452
|
+
"""
|
|
1453
|
+
|
|
1454
|
+
def __init__(self):
|
|
1455
|
+
r"""
|
|
1456
|
+
:param _Key: 配置项 Key
|
|
1457
|
+
MinNum 最小副本数
|
|
1458
|
+
MaxNum 最大副本数
|
|
1459
|
+
PolicyDetails 扩缩容策略
|
|
1460
|
+
AccessTypes 访问类型
|
|
1461
|
+
TimerScale 定时扩缩容
|
|
1462
|
+
InternalAccess 内网访问
|
|
1463
|
+
OperationMode 运行模式 noScale | condScale | alwaysScale | custom | manualScale
|
|
1464
|
+
SessionAffinity 会话亲和性 open | close
|
|
1465
|
+
CpuSpecs cpu 规格
|
|
1466
|
+
MemSpecs mem规格
|
|
1467
|
+
EnvParam 环境变量
|
|
1468
|
+
LogPath 日志采集路径
|
|
1469
|
+
Port 端口
|
|
1470
|
+
Dockerfile dockerfile 文件名
|
|
1471
|
+
BuildDir 目标目录
|
|
1472
|
+
Tag 服务标签
|
|
1473
|
+
LogType 日志类型 none | default | custom
|
|
1474
|
+
LogSetId 日志集Id
|
|
1475
|
+
LogTopicId 日志主题ID
|
|
1476
|
+
LogParseType 日志解析类型 json | line
|
|
1477
|
+
EntryPoint entrypoint 命令
|
|
1478
|
+
Cmd cmd命令
|
|
1479
|
+
VpcConf 网络信息
|
|
1480
|
+
:type Key: str
|
|
1481
|
+
:param _Value: 字符串类型配置项值
|
|
1482
|
+
InternalAccess、OperationMode、SessionAffinity、EnvParam、LogPath、Dockerfile、BuildDir、Tag、LogType、LogSetId、LogTopicId、LogParseType
|
|
1483
|
+
:type Value: str
|
|
1484
|
+
:param _IntValue: int 类型配置项值
|
|
1485
|
+
MinNum、MaxNum、Port
|
|
1486
|
+
:type IntValue: int
|
|
1487
|
+
:param _BoolValue: bool 类型配置项值
|
|
1488
|
+
:type BoolValue: bool
|
|
1489
|
+
:param _FloatValue: 浮点型配置项值
|
|
1490
|
+
CpuSpecs、MemSpecs
|
|
1491
|
+
:type FloatValue: float
|
|
1492
|
+
:param _ArrayValue: 字符串数组配置项值
|
|
1493
|
+
AccessTypes,EntryPoint,Cmd
|
|
1494
|
+
:type ArrayValue: list of str
|
|
1495
|
+
:param _PolicyDetails: 扩缩容策略配置项值
|
|
1496
|
+
:type PolicyDetails: list of HpaPolicy
|
|
1497
|
+
:param _TimerScale: 定时扩缩容配置项值
|
|
1498
|
+
:type TimerScale: list of TimerScale
|
|
1499
|
+
:param _VpcConf: 配置内网访问时网络信息
|
|
1500
|
+
:type VpcConf: :class:`tencentcloud.tcbr.v20220217.models.VpcConf`
|
|
1501
|
+
"""
|
|
1502
|
+
self._Key = None
|
|
1503
|
+
self._Value = None
|
|
1504
|
+
self._IntValue = None
|
|
1505
|
+
self._BoolValue = None
|
|
1506
|
+
self._FloatValue = None
|
|
1507
|
+
self._ArrayValue = None
|
|
1508
|
+
self._PolicyDetails = None
|
|
1509
|
+
self._TimerScale = None
|
|
1510
|
+
self._VpcConf = None
|
|
1511
|
+
|
|
1512
|
+
@property
|
|
1513
|
+
def Key(self):
|
|
1514
|
+
"""配置项 Key
|
|
1515
|
+
MinNum 最小副本数
|
|
1516
|
+
MaxNum 最大副本数
|
|
1517
|
+
PolicyDetails 扩缩容策略
|
|
1518
|
+
AccessTypes 访问类型
|
|
1519
|
+
TimerScale 定时扩缩容
|
|
1520
|
+
InternalAccess 内网访问
|
|
1521
|
+
OperationMode 运行模式 noScale | condScale | alwaysScale | custom | manualScale
|
|
1522
|
+
SessionAffinity 会话亲和性 open | close
|
|
1523
|
+
CpuSpecs cpu 规格
|
|
1524
|
+
MemSpecs mem规格
|
|
1525
|
+
EnvParam 环境变量
|
|
1526
|
+
LogPath 日志采集路径
|
|
1527
|
+
Port 端口
|
|
1528
|
+
Dockerfile dockerfile 文件名
|
|
1529
|
+
BuildDir 目标目录
|
|
1530
|
+
Tag 服务标签
|
|
1531
|
+
LogType 日志类型 none | default | custom
|
|
1532
|
+
LogSetId 日志集Id
|
|
1533
|
+
LogTopicId 日志主题ID
|
|
1534
|
+
LogParseType 日志解析类型 json | line
|
|
1535
|
+
EntryPoint entrypoint 命令
|
|
1536
|
+
Cmd cmd命令
|
|
1537
|
+
VpcConf 网络信息
|
|
1538
|
+
:rtype: str
|
|
1539
|
+
"""
|
|
1540
|
+
return self._Key
|
|
1541
|
+
|
|
1542
|
+
@Key.setter
|
|
1543
|
+
def Key(self, Key):
|
|
1544
|
+
self._Key = Key
|
|
1545
|
+
|
|
1546
|
+
@property
|
|
1547
|
+
def Value(self):
|
|
1548
|
+
"""字符串类型配置项值
|
|
1549
|
+
InternalAccess、OperationMode、SessionAffinity、EnvParam、LogPath、Dockerfile、BuildDir、Tag、LogType、LogSetId、LogTopicId、LogParseType
|
|
1550
|
+
:rtype: str
|
|
1551
|
+
"""
|
|
1552
|
+
return self._Value
|
|
1553
|
+
|
|
1554
|
+
@Value.setter
|
|
1555
|
+
def Value(self, Value):
|
|
1556
|
+
self._Value = Value
|
|
1557
|
+
|
|
1558
|
+
@property
|
|
1559
|
+
def IntValue(self):
|
|
1560
|
+
"""int 类型配置项值
|
|
1561
|
+
MinNum、MaxNum、Port
|
|
1562
|
+
:rtype: int
|
|
1563
|
+
"""
|
|
1564
|
+
return self._IntValue
|
|
1565
|
+
|
|
1566
|
+
@IntValue.setter
|
|
1567
|
+
def IntValue(self, IntValue):
|
|
1568
|
+
self._IntValue = IntValue
|
|
1569
|
+
|
|
1570
|
+
@property
|
|
1571
|
+
def BoolValue(self):
|
|
1572
|
+
"""bool 类型配置项值
|
|
1573
|
+
:rtype: bool
|
|
1574
|
+
"""
|
|
1575
|
+
return self._BoolValue
|
|
1576
|
+
|
|
1577
|
+
@BoolValue.setter
|
|
1578
|
+
def BoolValue(self, BoolValue):
|
|
1579
|
+
self._BoolValue = BoolValue
|
|
1580
|
+
|
|
1581
|
+
@property
|
|
1582
|
+
def FloatValue(self):
|
|
1583
|
+
"""浮点型配置项值
|
|
1584
|
+
CpuSpecs、MemSpecs
|
|
1585
|
+
:rtype: float
|
|
1586
|
+
"""
|
|
1587
|
+
return self._FloatValue
|
|
1588
|
+
|
|
1589
|
+
@FloatValue.setter
|
|
1590
|
+
def FloatValue(self, FloatValue):
|
|
1591
|
+
self._FloatValue = FloatValue
|
|
1592
|
+
|
|
1593
|
+
@property
|
|
1594
|
+
def ArrayValue(self):
|
|
1595
|
+
"""字符串数组配置项值
|
|
1596
|
+
AccessTypes,EntryPoint,Cmd
|
|
1597
|
+
:rtype: list of str
|
|
1598
|
+
"""
|
|
1599
|
+
return self._ArrayValue
|
|
1600
|
+
|
|
1601
|
+
@ArrayValue.setter
|
|
1602
|
+
def ArrayValue(self, ArrayValue):
|
|
1603
|
+
self._ArrayValue = ArrayValue
|
|
1604
|
+
|
|
1605
|
+
@property
|
|
1606
|
+
def PolicyDetails(self):
|
|
1607
|
+
"""扩缩容策略配置项值
|
|
1608
|
+
:rtype: list of HpaPolicy
|
|
1609
|
+
"""
|
|
1610
|
+
return self._PolicyDetails
|
|
1611
|
+
|
|
1612
|
+
@PolicyDetails.setter
|
|
1613
|
+
def PolicyDetails(self, PolicyDetails):
|
|
1614
|
+
self._PolicyDetails = PolicyDetails
|
|
1615
|
+
|
|
1616
|
+
@property
|
|
1617
|
+
def TimerScale(self):
|
|
1618
|
+
"""定时扩缩容配置项值
|
|
1619
|
+
:rtype: list of TimerScale
|
|
1620
|
+
"""
|
|
1621
|
+
return self._TimerScale
|
|
1622
|
+
|
|
1623
|
+
@TimerScale.setter
|
|
1624
|
+
def TimerScale(self, TimerScale):
|
|
1625
|
+
self._TimerScale = TimerScale
|
|
1626
|
+
|
|
1627
|
+
@property
|
|
1628
|
+
def VpcConf(self):
|
|
1629
|
+
"""配置内网访问时网络信息
|
|
1630
|
+
:rtype: :class:`tencentcloud.tcbr.v20220217.models.VpcConf`
|
|
1631
|
+
"""
|
|
1632
|
+
return self._VpcConf
|
|
1633
|
+
|
|
1634
|
+
@VpcConf.setter
|
|
1635
|
+
def VpcConf(self, VpcConf):
|
|
1636
|
+
self._VpcConf = VpcConf
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
def _deserialize(self, params):
|
|
1640
|
+
self._Key = params.get("Key")
|
|
1641
|
+
self._Value = params.get("Value")
|
|
1642
|
+
self._IntValue = params.get("IntValue")
|
|
1643
|
+
self._BoolValue = params.get("BoolValue")
|
|
1644
|
+
self._FloatValue = params.get("FloatValue")
|
|
1645
|
+
self._ArrayValue = params.get("ArrayValue")
|
|
1646
|
+
if params.get("PolicyDetails") is not None:
|
|
1647
|
+
self._PolicyDetails = []
|
|
1648
|
+
for item in params.get("PolicyDetails"):
|
|
1649
|
+
obj = HpaPolicy()
|
|
1650
|
+
obj._deserialize(item)
|
|
1651
|
+
self._PolicyDetails.append(obj)
|
|
1652
|
+
if params.get("TimerScale") is not None:
|
|
1653
|
+
self._TimerScale = []
|
|
1654
|
+
for item in params.get("TimerScale"):
|
|
1655
|
+
obj = TimerScale()
|
|
1656
|
+
obj._deserialize(item)
|
|
1657
|
+
self._TimerScale.append(obj)
|
|
1658
|
+
if params.get("VpcConf") is not None:
|
|
1659
|
+
self._VpcConf = VpcConf()
|
|
1660
|
+
self._VpcConf._deserialize(params.get("VpcConf"))
|
|
1661
|
+
memeber_set = set(params.keys())
|
|
1662
|
+
for name, value in vars(self).items():
|
|
1663
|
+
property_name = name[1:]
|
|
1664
|
+
if property_name in memeber_set:
|
|
1665
|
+
memeber_set.remove(property_name)
|
|
1666
|
+
if len(memeber_set) > 0:
|
|
1667
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
|
|
1429
1671
|
class EnvBaseInfo(AbstractModel):
|
|
1430
1672
|
"""环境基础信息
|
|
1431
1673
|
|
|
@@ -4009,16 +4251,19 @@ class UpdateCloudRunServerRequest(AbstractModel):
|
|
|
4009
4251
|
:type ServerName: str
|
|
4010
4252
|
:param _DeployInfo: 部署信息
|
|
4011
4253
|
:type DeployInfo: :class:`tencentcloud.tcbr.v20220217.models.DeployParam`
|
|
4012
|
-
:param _ServerConfig: 服务配置信息
|
|
4254
|
+
:param _ServerConfig: 服务配置信息(已废弃)
|
|
4013
4255
|
:type ServerConfig: :class:`tencentcloud.tcbr.v20220217.models.ServerBaseConfig`
|
|
4014
4256
|
:param _Business: 业务类型,默认tcr
|
|
4015
4257
|
:type Business: str
|
|
4258
|
+
:param _Items: 服务配置信息
|
|
4259
|
+
:type Items: list of DiffConfigItem
|
|
4016
4260
|
"""
|
|
4017
4261
|
self._EnvId = None
|
|
4018
4262
|
self._ServerName = None
|
|
4019
4263
|
self._DeployInfo = None
|
|
4020
4264
|
self._ServerConfig = None
|
|
4021
4265
|
self._Business = None
|
|
4266
|
+
self._Items = None
|
|
4022
4267
|
|
|
4023
4268
|
@property
|
|
4024
4269
|
def EnvId(self):
|
|
@@ -4055,7 +4300,7 @@ class UpdateCloudRunServerRequest(AbstractModel):
|
|
|
4055
4300
|
|
|
4056
4301
|
@property
|
|
4057
4302
|
def ServerConfig(self):
|
|
4058
|
-
"""服务配置信息
|
|
4303
|
+
"""服务配置信息(已废弃)
|
|
4059
4304
|
:rtype: :class:`tencentcloud.tcbr.v20220217.models.ServerBaseConfig`
|
|
4060
4305
|
"""
|
|
4061
4306
|
return self._ServerConfig
|
|
@@ -4075,6 +4320,17 @@ class UpdateCloudRunServerRequest(AbstractModel):
|
|
|
4075
4320
|
def Business(self, Business):
|
|
4076
4321
|
self._Business = Business
|
|
4077
4322
|
|
|
4323
|
+
@property
|
|
4324
|
+
def Items(self):
|
|
4325
|
+
"""服务配置信息
|
|
4326
|
+
:rtype: list of DiffConfigItem
|
|
4327
|
+
"""
|
|
4328
|
+
return self._Items
|
|
4329
|
+
|
|
4330
|
+
@Items.setter
|
|
4331
|
+
def Items(self, Items):
|
|
4332
|
+
self._Items = Items
|
|
4333
|
+
|
|
4078
4334
|
|
|
4079
4335
|
def _deserialize(self, params):
|
|
4080
4336
|
self._EnvId = params.get("EnvId")
|
|
@@ -4086,6 +4342,12 @@ class UpdateCloudRunServerRequest(AbstractModel):
|
|
|
4086
4342
|
self._ServerConfig = ServerBaseConfig()
|
|
4087
4343
|
self._ServerConfig._deserialize(params.get("ServerConfig"))
|
|
4088
4344
|
self._Business = params.get("Business")
|
|
4345
|
+
if params.get("Items") is not None:
|
|
4346
|
+
self._Items = []
|
|
4347
|
+
for item in params.get("Items"):
|
|
4348
|
+
obj = DiffConfigItem()
|
|
4349
|
+
obj._deserialize(item)
|
|
4350
|
+
self._Items.append(obj)
|
|
4089
4351
|
memeber_set = set(params.keys())
|
|
4090
4352
|
for name, value in vars(self).items():
|
|
4091
4353
|
property_name = name[1:]
|
|
@@ -2148,7 +2148,7 @@ class CreateRepositoryPersonalRequest(AbstractModel):
|
|
|
2148
2148
|
|
|
2149
2149
|
def __init__(self):
|
|
2150
2150
|
r"""
|
|
2151
|
-
:param _RepoName:
|
|
2151
|
+
:param _RepoName: 仓库名称,格式为 {Namespace}/{lmageName}。
|
|
2152
2152
|
:type RepoName: str
|
|
2153
2153
|
:param _Public: 是否公共,1:公共,0:私有
|
|
2154
2154
|
:type Public: int
|
|
@@ -2161,7 +2161,7 @@ class CreateRepositoryPersonalRequest(AbstractModel):
|
|
|
2161
2161
|
|
|
2162
2162
|
@property
|
|
2163
2163
|
def RepoName(self):
|
|
2164
|
-
"""
|
|
2164
|
+
"""仓库名称,格式为 {Namespace}/{lmageName}。
|
|
2165
2165
|
:rtype: str
|
|
2166
2166
|
"""
|
|
2167
2167
|
return self._RepoName
|
|
@@ -11211,15 +11211,17 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
11211
11211
|
:param _TaskType: 实时日志投递任务类型,取值有:
|
|
11212
11212
|
<li>cls: 推送到腾讯云 CLS;</li>
|
|
11213
11213
|
<li>custom_endpoint:推送到自定义 HTTP(S) 地址;</li>
|
|
11214
|
-
<li>s3:推送到 AWS S3
|
|
11214
|
+
<li>s3:推送到 AWS S3 兼容存储桶地址;</li>
|
|
11215
11215
|
:type TaskType: str
|
|
11216
|
-
:param _EntityList:
|
|
11217
|
-
<li>七层域名:domain.example.com
|
|
11218
|
-
<li>四层代理实例:sid-2s69eb5wcms7
|
|
11216
|
+
:param _EntityList: 实时日志投递任务对应的实体列表。取值示例如下:
|
|
11217
|
+
<li>七层域名:domain.example.com</li>
|
|
11218
|
+
<li>四层代理实例:sid-2s69eb5wcms7</li>
|
|
11219
|
+
<li>边缘函数实例:test-zone-2mxigizoh9l9-1257626257</li>
|
|
11219
11220
|
:type EntityList: list of str
|
|
11220
11221
|
:param _LogType: 数据投递类型,取值有:
|
|
11221
11222
|
<li>domain:站点加速日志;</li>
|
|
11222
11223
|
<li>application:四层代理日志;</li>
|
|
11224
|
+
<li>function:边缘函数运行日志;</li>
|
|
11223
11225
|
<li>web-rateLiming:速率限制和 CC 攻击防护日志;</li>
|
|
11224
11226
|
<li>web-attack:托管规则日志;</li>
|
|
11225
11227
|
<li>web-rule:自定义规则日志;</li>
|
|
@@ -11229,7 +11231,10 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
11229
11231
|
<li>mainland:中国大陆境内;</li>
|
|
11230
11232
|
<li>overseas:全球(不含中国大陆)。</li>
|
|
11231
11233
|
:type Area: str
|
|
11232
|
-
:param _Fields:
|
|
11234
|
+
:param _Fields: 投递的预设字段列表。取值参考:
|
|
11235
|
+
<li>[站点加速日志(七层访问日志)](https://cloud.tencent.com/document/product/1552/105791)</li>
|
|
11236
|
+
<li>[四层代理日志](https://cloud.tencent.com/document/product/1552/105792)</li>
|
|
11237
|
+
<li>[边缘函数运行日志](https://cloud.tencent.com/document/product/1552/115585)</li>
|
|
11233
11238
|
:type Fields: list of str
|
|
11234
11239
|
:param _CustomFields: 投递的自定义字段列表,支持在 HTTP 请求头、响应头、Cookie、请求正文中提取指定内容。自定义字段名称不能重复,且最多不能超过 200 个字段。单个实时日志推送任务最多添加 5 个请求正文类型的自定义字段。目前仅站点加速日志(LogType=domain)支持添加自定义字段。
|
|
11235
11240
|
:type CustomFields: list of CustomField
|
|
@@ -11290,7 +11295,7 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
11290
11295
|
"""实时日志投递任务类型,取值有:
|
|
11291
11296
|
<li>cls: 推送到腾讯云 CLS;</li>
|
|
11292
11297
|
<li>custom_endpoint:推送到自定义 HTTP(S) 地址;</li>
|
|
11293
|
-
<li>s3:推送到 AWS S3
|
|
11298
|
+
<li>s3:推送到 AWS S3 兼容存储桶地址;</li>
|
|
11294
11299
|
:rtype: str
|
|
11295
11300
|
"""
|
|
11296
11301
|
return self._TaskType
|
|
@@ -11301,9 +11306,10 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
11301
11306
|
|
|
11302
11307
|
@property
|
|
11303
11308
|
def EntityList(self):
|
|
11304
|
-
"""
|
|
11305
|
-
<li>七层域名:domain.example.com
|
|
11306
|
-
<li>四层代理实例:sid-2s69eb5wcms7
|
|
11309
|
+
"""实时日志投递任务对应的实体列表。取值示例如下:
|
|
11310
|
+
<li>七层域名:domain.example.com</li>
|
|
11311
|
+
<li>四层代理实例:sid-2s69eb5wcms7</li>
|
|
11312
|
+
<li>边缘函数实例:test-zone-2mxigizoh9l9-1257626257</li>
|
|
11307
11313
|
:rtype: list of str
|
|
11308
11314
|
"""
|
|
11309
11315
|
return self._EntityList
|
|
@@ -11317,6 +11323,7 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
11317
11323
|
"""数据投递类型,取值有:
|
|
11318
11324
|
<li>domain:站点加速日志;</li>
|
|
11319
11325
|
<li>application:四层代理日志;</li>
|
|
11326
|
+
<li>function:边缘函数运行日志;</li>
|
|
11320
11327
|
<li>web-rateLiming:速率限制和 CC 攻击防护日志;</li>
|
|
11321
11328
|
<li>web-attack:托管规则日志;</li>
|
|
11322
11329
|
<li>web-rule:自定义规则日志;</li>
|
|
@@ -11344,7 +11351,10 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
11344
11351
|
|
|
11345
11352
|
@property
|
|
11346
11353
|
def Fields(self):
|
|
11347
|
-
"""
|
|
11354
|
+
"""投递的预设字段列表。取值参考:
|
|
11355
|
+
<li>[站点加速日志(七层访问日志)](https://cloud.tencent.com/document/product/1552/105791)</li>
|
|
11356
|
+
<li>[四层代理日志](https://cloud.tencent.com/document/product/1552/105792)</li>
|
|
11357
|
+
<li>[边缘函数运行日志](https://cloud.tencent.com/document/product/1552/115585)</li>
|
|
11348
11358
|
:rtype: list of str
|
|
11349
11359
|
"""
|
|
11350
11360
|
return self._Fields
|
|
@@ -703,8 +703,13 @@ class TeoClient(AbstractClient):
|
|
|
703
703
|
|
|
704
704
|
|
|
705
705
|
def CreateRealtimeLogDeliveryTask(self, request):
|
|
706
|
-
"""
|
|
707
|
-
|
|
706
|
+
"""本接口用于创建实时日志投递任务。本接口有如下限制:
|
|
707
|
+
- 当数据投递类型(LogType)为站点加速日志(七层访问日志)、四层代理日志、边缘函数运行日志时,同一个实体(七层域名、四层代理实例、边缘函数实例)在同种数据投递类型(LogType)和数据投递区域(Area)的组合下,只能被添加到如下实时日志投递任务类型(TaskType)组合中:
|
|
708
|
+
- 一个推送至腾讯云 CLS 的任务,加上另一个推送至自定义 HTTP(S) 地址的任务;
|
|
709
|
+
- 一个推送至腾讯云 CLS 的任务,加上另一个推送至 AWS S3 兼容对象存储的任务;
|
|
710
|
+
- 当数据投递类型(LogType)为速率限制和 CC 攻击防护日志、托管规则日志、自定义规则日志、Bot 管理日志时,同一个实体在同种数据投递类型(LogType)和数据投递区域(Area)的组合下,只能被添加到一个实时日志投递任务中。
|
|
711
|
+
|
|
712
|
+
建议先通过 [DescribeRealtimeLogDeliveryTasks](https://cloud.tencent.com/document/product/1552/104110) 接口根据实体查询实时日志投递任务列表,检查实体是否已经被添加到另一实时日志投递任务中。
|
|
708
713
|
|
|
709
714
|
:param request: Request instance for CreateRealtimeLogDeliveryTask.
|
|
710
715
|
:type request: :class:`tencentcloud.teo.v20220901.models.CreateRealtimeLogDeliveryTaskRequest`
|
|
@@ -27,7 +27,7 @@ class SearchProRequest(AbstractModel):
|
|
|
27
27
|
r"""
|
|
28
28
|
:param _Query: 搜索词
|
|
29
29
|
:type Query: str
|
|
30
|
-
:param _Mode: 返回结果类型,0-自然检索结果(默认),1
|
|
30
|
+
:param _Mode: 返回结果类型,0-自然检索结果(默认),1-多模态VR结果,2-混合结果(多模态VR结果+自然检索结果)
|
|
31
31
|
:type Mode: int
|
|
32
32
|
:param _Site: 指定域名站内搜索(用于过滤自然检索结果) 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效
|
|
33
33
|
:type Site: str
|
|
@@ -55,7 +55,7 @@ class SearchProRequest(AbstractModel):
|
|
|
55
55
|
|
|
56
56
|
@property
|
|
57
57
|
def Mode(self):
|
|
58
|
-
"""返回结果类型,0-自然检索结果(默认),1
|
|
58
|
+
"""返回结果类型,0-自然检索结果(默认),1-多模态VR结果,2-混合结果(多模态VR结果+自然检索结果)
|
|
59
59
|
:rtype: int
|
|
60
60
|
"""
|
|
61
61
|
return self._Mode
|
|
@@ -123,7 +123,16 @@ class SearchProResponse(AbstractModel):
|
|
|
123
123
|
r"""
|
|
124
124
|
:param _Query: 原始查询语
|
|
125
125
|
:type Query: str
|
|
126
|
-
:param _Pages:
|
|
126
|
+
:param _Pages: 搜索结果页面详情,格式为json字符串。
|
|
127
|
+
title:结果标题
|
|
128
|
+
date:内容发布时间
|
|
129
|
+
url:内容发布源url
|
|
130
|
+
passage:标准摘要
|
|
131
|
+
content:动态摘要 (尊享版字段)
|
|
132
|
+
site:网站名称,部分不知名站点结果可能为空
|
|
133
|
+
score:相关性得分,取值0~1,越靠近1表示越相关
|
|
134
|
+
images:图片列表
|
|
135
|
+
favicon:网站图标链接,部分不知名站点结果可能为空
|
|
127
136
|
:type Pages: list of str
|
|
128
137
|
:param _Msg: 提示信息
|
|
129
138
|
:type Msg: str
|
|
@@ -148,7 +157,16 @@ class SearchProResponse(AbstractModel):
|
|
|
148
157
|
|
|
149
158
|
@property
|
|
150
159
|
def Pages(self):
|
|
151
|
-
"""
|
|
160
|
+
"""搜索结果页面详情,格式为json字符串。
|
|
161
|
+
title:结果标题
|
|
162
|
+
date:内容发布时间
|
|
163
|
+
url:内容发布源url
|
|
164
|
+
passage:标准摘要
|
|
165
|
+
content:动态摘要 (尊享版字段)
|
|
166
|
+
site:网站名称,部分不知名站点结果可能为空
|
|
167
|
+
score:相关性得分,取值0~1,越靠近1表示越相关
|
|
168
|
+
images:图片列表
|
|
169
|
+
favicon:网站图标链接,部分不知名站点结果可能为空
|
|
152
170
|
:rtype: list of str
|
|
153
171
|
"""
|
|
154
172
|
return self._Pages
|