tencentcloud-sdk-python 3.0.1136__py2.py3-none-any.whl → 3.0.1138__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/models.py +41 -36
- tencentcloud/ccc/v20200210/models.py +1 -1
- tencentcloud/cfs/v20190719/models.py +19 -5
- tencentcloud/cfw/v20190904/cfw_client.py +1 -1
- tencentcloud/cloudstudio/v20230508/models.py +48 -36
- tencentcloud/cls/v20201016/models.py +197 -23
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
- tencentcloud/cynosdb/v20190107/models.py +190 -2
- tencentcloud/dcdb/v20180411/dcdb_client.py +1 -1
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +16 -3
- tencentcloud/domain/v20180808/domain_client.py +23 -0
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +100 -0
- tencentcloud/dts/v20211206/models.py +1 -1
- tencentcloud/ess/v20201111/ess_client.py +27 -0
- tencentcloud/ess/v20201111/models.py +158 -1
- tencentcloud/essbasic/v20210526/models.py +1 -1
- tencentcloud/faceid/v20180301/models.py +56 -7
- tencentcloud/hunyuan/v20230901/errorcodes.py +3 -3
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +31 -5
- tencentcloud/hunyuan/v20230901/models.py +271 -23
- tencentcloud/ims/v20200713/errorcodes.py +3 -0
- tencentcloud/iotvideo/v20211125/models.py +13 -0
- tencentcloud/lcic/v20220817/models.py +1 -1
- tencentcloud/lke/v20231130/errorcodes.py +12 -0
- tencentcloud/lke/v20231130/lke_client.py +46 -0
- tencentcloud/lke/v20231130/models.py +673 -0
- tencentcloud/mariadb/v20170312/mariadb_client.py +1 -1
- tencentcloud/monitor/v20180724/monitor_client.py +1 -1
- tencentcloud/mps/v20190612/models.py +70 -0
- tencentcloud/ocr/v20181119/models.py +251 -0
- tencentcloud/ocr/v20181119/ocr_client.py +25 -0
- tencentcloud/rce/v20201103/models.py +6 -1
- tencentcloud/rum/v20210622/models.py +16 -16
- tencentcloud/teo/v20220901/errorcodes.py +9 -0
- tencentcloud/teo/v20220901/models.py +179 -15
- tencentcloud/tione/v20211111/errorcodes.py +12 -0
- tencentcloud/tms/v20201229/errorcodes.py +6 -0
- tencentcloud/tms/v20201229/models.py +70 -0
- tencentcloud/tms/v20201229/tms_client.py +23 -0
- tencentcloud/tmt/v20180321/models.py +1 -1
- tencentcloud/tse/v20201207/models.py +77 -1
- tencentcloud/waf/v20180125/models.py +1 -1
- {tencentcloud_sdk_python-3.0.1136.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1136.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/RECORD +50 -50
- {tencentcloud_sdk_python-3.0.1136.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1136.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1136.dist-info → tencentcloud_sdk_python-3.0.1138.dist-info}/top_level.txt +0 -0
@@ -5529,6 +5529,10 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
5529
5529
|
:type DeliveryConditions: list of DeliveryCondition
|
5530
5530
|
:param _Sample: 采样比例,采用千分制,取值范围为1-1000,例如:填写 605 表示采样比例为 60.5%。不填表示采样比例为 100%。
|
5531
5531
|
:type Sample: int
|
5532
|
+
:param _LogFormat: 日志投递的输出格式。不填表示为默认格式,默认格式逻辑如下:
|
5533
|
+
<li>当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;</li>
|
5534
|
+
<li>当 TaskType 取值为 s3 时,默认格式为 JSON Lines;</li>特别地,当 TaskType 取值为 cls 时,LogFormat.FormatType 的值只能为 json,且 LogFormat 中其他参数将被忽略,建议不传 LogFormat。
|
5535
|
+
:type LogFormat: :class:`tencentcloud.teo.v20220901.models.LogFormat`
|
5532
5536
|
:param _CLS: CLS 的配置信息。当 TaskType 取值为 cls 时,该参数必填。
|
5533
5537
|
:type CLS: :class:`tencentcloud.teo.v20220901.models.CLSTopic`
|
5534
5538
|
:param _CustomEndpoint: 自定义 HTTP 服务的配置信息。当 TaskType 取值为 custom_endpoint 时,该参数必填。
|
@@ -5546,6 +5550,7 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
5546
5550
|
self._CustomFields = None
|
5547
5551
|
self._DeliveryConditions = None
|
5548
5552
|
self._Sample = None
|
5553
|
+
self._LogFormat = None
|
5549
5554
|
self._CLS = None
|
5550
5555
|
self._CustomEndpoint = None
|
5551
5556
|
self._S3 = None
|
@@ -5630,6 +5635,14 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
5630
5635
|
def Sample(self, Sample):
|
5631
5636
|
self._Sample = Sample
|
5632
5637
|
|
5638
|
+
@property
|
5639
|
+
def LogFormat(self):
|
5640
|
+
return self._LogFormat
|
5641
|
+
|
5642
|
+
@LogFormat.setter
|
5643
|
+
def LogFormat(self, LogFormat):
|
5644
|
+
self._LogFormat = LogFormat
|
5645
|
+
|
5633
5646
|
@property
|
5634
5647
|
def CLS(self):
|
5635
5648
|
return self._CLS
|
@@ -5676,6 +5689,9 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
5676
5689
|
obj._deserialize(item)
|
5677
5690
|
self._DeliveryConditions.append(obj)
|
5678
5691
|
self._Sample = params.get("Sample")
|
5692
|
+
if params.get("LogFormat") is not None:
|
5693
|
+
self._LogFormat = LogFormat()
|
5694
|
+
self._LogFormat._deserialize(params.get("LogFormat"))
|
5679
5695
|
if params.get("CLS") is not None:
|
5680
5696
|
self._CLS = CLSTopic()
|
5681
5697
|
self._CLS._deserialize(params.get("CLS"))
|
@@ -6663,8 +6679,8 @@ class DDosProtectionConfig(AbstractModel):
|
|
6663
6679
|
r"""
|
6664
6680
|
:param _LevelMainland: 中国大陆地区独立 DDoS 防护的规格。详情请参考 [独立 DDoS 防护相关费用](https://cloud.tencent.com/document/product/1552/94162)
|
6665
6681
|
<li>PLATFORM:平台默认防护,即不开启独立 DDoS 防护;</li>
|
6666
|
-
<li>BASE30_MAX300:开启独立 DDoS 防护,提供 30 Gbps
|
6667
|
-
<li>BASE60_MAX600:开启独立 DDoS 防护,提供 60 Gbps
|
6682
|
+
<li>BASE30_MAX300:开启独立 DDoS 防护,提供 30 Gbps 保底防护带宽以及 300 Gbps 弹性防护带宽;</li>
|
6683
|
+
<li>BASE60_MAX600:开启独立 DDoS 防护,提供 60 Gbps 保底防护带宽以及 600 Gbps 弹性防护带宽。</li>不填写参数时,取默认值 PLATFORM。
|
6668
6684
|
:type LevelMainland: str
|
6669
6685
|
:param _MaxBandwidthMainland: 中国大陆地区独立 DDoS 防护的弹性防护带宽配置。
|
6670
6686
|
仅当开启中国大陆区域独立 DDos 防护时有效(详见 LevelMainland 参数配置),且取值范围有如下限制:
|
@@ -6674,7 +6690,7 @@ class DDosProtectionConfig(AbstractModel):
|
|
6674
6690
|
:type MaxBandwidthMainland: int
|
6675
6691
|
:param _LevelOverseas: 全球(除中国大陆以外)地区独立 DDoS 防护的规格。
|
6676
6692
|
<li>PLATFORM:平台默认防护,即不开启独立 DDoS 防护;</li>
|
6677
|
-
<li>ANYCAST300:开启独立 DDoS
|
6693
|
+
<li>ANYCAST300:开启独立 DDoS 防护,提供 300 Gbps 防护带宽;</li>
|
6678
6694
|
<li>ANYCAST_ALLIN:开启独立 DDoS 防护,使用全部可用防护资源进行防护。</li>不填写参数时,取默认值 PLATFORM。
|
6679
6695
|
:type LevelOverseas: str
|
6680
6696
|
"""
|
@@ -16406,6 +16422,119 @@ class L7OfflineLog(AbstractModel):
|
|
16406
16422
|
|
16407
16423
|
|
16408
16424
|
|
16425
|
+
class LogFormat(AbstractModel):
|
16426
|
+
"""实时日志投递的输出格式。您可以直接通过 FormatType 参数使用指定预设日志输出格式(JSON Lines / csv),也可以在预设日志输出格式基础上,通过其他参数来自定义变体输出格式。
|
16427
|
+
|
16428
|
+
"""
|
16429
|
+
|
16430
|
+
def __init__(self):
|
16431
|
+
r"""
|
16432
|
+
:param _FormatType: 日志投递的预设输出格式类型,取值有:
|
16433
|
+
<li>json:使用预设日志输出格式 JSON Lines,单条日志中的字段以键值对方式呈现;</li>
|
16434
|
+
<li>csv:使用预设日志输出格式 csv,单条日志中仅呈现字段值,不呈现字段名称。</li>
|
16435
|
+
:type FormatType: str
|
16436
|
+
:param _BatchPrefix: 在每个日志投递批次之前添加的字符串。每个日志投递批次可能包含多条日志记录。
|
16437
|
+
:type BatchPrefix: str
|
16438
|
+
:param _BatchSuffix: 在每个日志投递批次后附加的字符串。
|
16439
|
+
:type BatchSuffix: str
|
16440
|
+
:param _RecordPrefix: 在每条日志记录之前添加的字符串。
|
16441
|
+
:type RecordPrefix: str
|
16442
|
+
:param _RecordSuffix: 在每条日志记录后附加的字符串。
|
16443
|
+
:type RecordSuffix: str
|
16444
|
+
:param _RecordDelimiter: 插入日志记录之间作为分隔符的字符串,取值有:
|
16445
|
+
<li>\n:换行符;</li>
|
16446
|
+
<li>\t:制表符;</li>
|
16447
|
+
<li>,:半角逗号。</li>
|
16448
|
+
:type RecordDelimiter: str
|
16449
|
+
:param _FieldDelimiter: 单条日志记录内,插入字段之间作为分隔符的字符串,取值有:
|
16450
|
+
<li>\t:制表符;</li>
|
16451
|
+
<li>,:半角逗号;</li>
|
16452
|
+
<li>;:半角分号。</li>
|
16453
|
+
:type FieldDelimiter: str
|
16454
|
+
"""
|
16455
|
+
self._FormatType = None
|
16456
|
+
self._BatchPrefix = None
|
16457
|
+
self._BatchSuffix = None
|
16458
|
+
self._RecordPrefix = None
|
16459
|
+
self._RecordSuffix = None
|
16460
|
+
self._RecordDelimiter = None
|
16461
|
+
self._FieldDelimiter = None
|
16462
|
+
|
16463
|
+
@property
|
16464
|
+
def FormatType(self):
|
16465
|
+
return self._FormatType
|
16466
|
+
|
16467
|
+
@FormatType.setter
|
16468
|
+
def FormatType(self, FormatType):
|
16469
|
+
self._FormatType = FormatType
|
16470
|
+
|
16471
|
+
@property
|
16472
|
+
def BatchPrefix(self):
|
16473
|
+
return self._BatchPrefix
|
16474
|
+
|
16475
|
+
@BatchPrefix.setter
|
16476
|
+
def BatchPrefix(self, BatchPrefix):
|
16477
|
+
self._BatchPrefix = BatchPrefix
|
16478
|
+
|
16479
|
+
@property
|
16480
|
+
def BatchSuffix(self):
|
16481
|
+
return self._BatchSuffix
|
16482
|
+
|
16483
|
+
@BatchSuffix.setter
|
16484
|
+
def BatchSuffix(self, BatchSuffix):
|
16485
|
+
self._BatchSuffix = BatchSuffix
|
16486
|
+
|
16487
|
+
@property
|
16488
|
+
def RecordPrefix(self):
|
16489
|
+
return self._RecordPrefix
|
16490
|
+
|
16491
|
+
@RecordPrefix.setter
|
16492
|
+
def RecordPrefix(self, RecordPrefix):
|
16493
|
+
self._RecordPrefix = RecordPrefix
|
16494
|
+
|
16495
|
+
@property
|
16496
|
+
def RecordSuffix(self):
|
16497
|
+
return self._RecordSuffix
|
16498
|
+
|
16499
|
+
@RecordSuffix.setter
|
16500
|
+
def RecordSuffix(self, RecordSuffix):
|
16501
|
+
self._RecordSuffix = RecordSuffix
|
16502
|
+
|
16503
|
+
@property
|
16504
|
+
def RecordDelimiter(self):
|
16505
|
+
return self._RecordDelimiter
|
16506
|
+
|
16507
|
+
@RecordDelimiter.setter
|
16508
|
+
def RecordDelimiter(self, RecordDelimiter):
|
16509
|
+
self._RecordDelimiter = RecordDelimiter
|
16510
|
+
|
16511
|
+
@property
|
16512
|
+
def FieldDelimiter(self):
|
16513
|
+
return self._FieldDelimiter
|
16514
|
+
|
16515
|
+
@FieldDelimiter.setter
|
16516
|
+
def FieldDelimiter(self, FieldDelimiter):
|
16517
|
+
self._FieldDelimiter = FieldDelimiter
|
16518
|
+
|
16519
|
+
|
16520
|
+
def _deserialize(self, params):
|
16521
|
+
self._FormatType = params.get("FormatType")
|
16522
|
+
self._BatchPrefix = params.get("BatchPrefix")
|
16523
|
+
self._BatchSuffix = params.get("BatchSuffix")
|
16524
|
+
self._RecordPrefix = params.get("RecordPrefix")
|
16525
|
+
self._RecordSuffix = params.get("RecordSuffix")
|
16526
|
+
self._RecordDelimiter = params.get("RecordDelimiter")
|
16527
|
+
self._FieldDelimiter = params.get("FieldDelimiter")
|
16528
|
+
memeber_set = set(params.keys())
|
16529
|
+
for name, value in vars(self).items():
|
16530
|
+
property_name = name[1:]
|
16531
|
+
if property_name in memeber_set:
|
16532
|
+
memeber_set.remove(property_name)
|
16533
|
+
if len(memeber_set) > 0:
|
16534
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16535
|
+
|
16536
|
+
|
16537
|
+
|
16409
16538
|
class MaxAge(AbstractModel):
|
16410
16539
|
"""浏览器缓存规则配置,用于设置 MaxAge 默认值,默认为关闭状态
|
16411
16540
|
|
@@ -18052,6 +18181,8 @@ class ModifyRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
18052
18181
|
:type DeliveryConditions: list of DeliveryCondition
|
18053
18182
|
:param _Sample: 采样比例,采用千分制,取值范围为1-1000,例如:填写 605 表示采样比例为 60.5%。不填保持原有配置。
|
18054
18183
|
:type Sample: int
|
18184
|
+
:param _LogFormat: 日志投递的输出格式。不填保持原有配置。
|
18185
|
+
:type LogFormat: :class:`tencentcloud.teo.v20220901.models.LogFormat`
|
18055
18186
|
:param _CustomEndpoint: 自定义 HTTP 服务的配置信息,不填保持原有配置。
|
18056
18187
|
:type CustomEndpoint: :class:`tencentcloud.teo.v20220901.models.CustomEndpoint`
|
18057
18188
|
:param _S3: AWS S3 兼容存储桶的配置信息,不填保持原有配置。
|
@@ -18066,6 +18197,7 @@ class ModifyRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
18066
18197
|
self._CustomFields = None
|
18067
18198
|
self._DeliveryConditions = None
|
18068
18199
|
self._Sample = None
|
18200
|
+
self._LogFormat = None
|
18069
18201
|
self._CustomEndpoint = None
|
18070
18202
|
self._S3 = None
|
18071
18203
|
|
@@ -18141,6 +18273,14 @@ class ModifyRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
18141
18273
|
def Sample(self, Sample):
|
18142
18274
|
self._Sample = Sample
|
18143
18275
|
|
18276
|
+
@property
|
18277
|
+
def LogFormat(self):
|
18278
|
+
return self._LogFormat
|
18279
|
+
|
18280
|
+
@LogFormat.setter
|
18281
|
+
def LogFormat(self, LogFormat):
|
18282
|
+
self._LogFormat = LogFormat
|
18283
|
+
|
18144
18284
|
@property
|
18145
18285
|
def CustomEndpoint(self):
|
18146
18286
|
return self._CustomEndpoint
|
@@ -18178,6 +18318,9 @@ class ModifyRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
18178
18318
|
obj._deserialize(item)
|
18179
18319
|
self._DeliveryConditions.append(obj)
|
18180
18320
|
self._Sample = params.get("Sample")
|
18321
|
+
if params.get("LogFormat") is not None:
|
18322
|
+
self._LogFormat = LogFormat()
|
18323
|
+
self._LogFormat._deserialize(params.get("LogFormat"))
|
18181
18324
|
if params.get("CustomEndpoint") is not None:
|
18182
18325
|
self._CustomEndpoint = CustomEndpoint()
|
18183
18326
|
self._CustomEndpoint._deserialize(params.get("CustomEndpoint"))
|
@@ -21248,6 +21391,11 @@ class RealtimeLogDeliveryTask(AbstractModel):
|
|
21248
21391
|
:type DeliveryConditions: list of DeliveryCondition
|
21249
21392
|
:param _Sample: 采样比例,采用千分制,取值范围为1-1000,例如:605 表示采样比例为 60.5%。
|
21250
21393
|
:type Sample: int
|
21394
|
+
:param _LogFormat: 日志投递的输出格式。出参为 null 时表示为默认格式,默认格式逻辑如下:
|
21395
|
+
<li>当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;</li>
|
21396
|
+
<li>当 TaskType 取值为 s3 时,默认格式为 JSON Lines。</li>
|
21397
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
21398
|
+
:type LogFormat: :class:`tencentcloud.teo.v20220901.models.LogFormat`
|
21251
21399
|
:param _CLS: CLS 的配置信息。
|
21252
21400
|
注意:此字段可能返回 null,表示取不到有效值。
|
21253
21401
|
:type CLS: :class:`tencentcloud.teo.v20220901.models.CLSTopic`
|
@@ -21273,6 +21421,7 @@ class RealtimeLogDeliveryTask(AbstractModel):
|
|
21273
21421
|
self._CustomFields = None
|
21274
21422
|
self._DeliveryConditions = None
|
21275
21423
|
self._Sample = None
|
21424
|
+
self._LogFormat = None
|
21276
21425
|
self._CLS = None
|
21277
21426
|
self._CustomEndpoint = None
|
21278
21427
|
self._S3 = None
|
@@ -21367,6 +21516,14 @@ class RealtimeLogDeliveryTask(AbstractModel):
|
|
21367
21516
|
def Sample(self, Sample):
|
21368
21517
|
self._Sample = Sample
|
21369
21518
|
|
21519
|
+
@property
|
21520
|
+
def LogFormat(self):
|
21521
|
+
return self._LogFormat
|
21522
|
+
|
21523
|
+
@LogFormat.setter
|
21524
|
+
def LogFormat(self, LogFormat):
|
21525
|
+
self._LogFormat = LogFormat
|
21526
|
+
|
21370
21527
|
@property
|
21371
21528
|
def CLS(self):
|
21372
21529
|
return self._CLS
|
@@ -21430,6 +21587,9 @@ class RealtimeLogDeliveryTask(AbstractModel):
|
|
21430
21587
|
obj._deserialize(item)
|
21431
21588
|
self._DeliveryConditions.append(obj)
|
21432
21589
|
self._Sample = params.get("Sample")
|
21590
|
+
if params.get("LogFormat") is not None:
|
21591
|
+
self._LogFormat = LogFormat()
|
21592
|
+
self._LogFormat._deserialize(params.get("LogFormat"))
|
21433
21593
|
if params.get("CLS") is not None:
|
21434
21594
|
self._CLS = CLSTopic()
|
21435
21595
|
self._CLS._deserialize(params.get("CLS"))
|
@@ -23843,21 +24003,25 @@ class Task(AbstractModel):
|
|
23843
24003
|
r"""
|
23844
24004
|
:param _JobId: 任务 ID。
|
23845
24005
|
:type JobId: str
|
23846
|
-
:param _Status: 状态。
|
23847
|
-
:type Status: str
|
23848
24006
|
:param _Target: 资源。
|
23849
24007
|
:type Target: str
|
23850
24008
|
:param _Type: 任务类型。
|
23851
24009
|
:type Type: str
|
24010
|
+
:param _Status: 状态。取值有:
|
24011
|
+
<li>processing:处理中;</li>
|
24012
|
+
<li>success:成功;</li>
|
24013
|
+
<li> failed:失败;</li>
|
24014
|
+
<li>timeout:超时。</li>
|
24015
|
+
:type Status: str
|
23852
24016
|
:param _CreateTime: 任务创建时间。
|
23853
24017
|
:type CreateTime: str
|
23854
24018
|
:param _UpdateTime: 任务完成时间。
|
23855
24019
|
:type UpdateTime: str
|
23856
24020
|
"""
|
23857
24021
|
self._JobId = None
|
23858
|
-
self._Status = None
|
23859
24022
|
self._Target = None
|
23860
24023
|
self._Type = None
|
24024
|
+
self._Status = None
|
23861
24025
|
self._CreateTime = None
|
23862
24026
|
self._UpdateTime = None
|
23863
24027
|
|
@@ -23869,14 +24033,6 @@ class Task(AbstractModel):
|
|
23869
24033
|
def JobId(self, JobId):
|
23870
24034
|
self._JobId = JobId
|
23871
24035
|
|
23872
|
-
@property
|
23873
|
-
def Status(self):
|
23874
|
-
return self._Status
|
23875
|
-
|
23876
|
-
@Status.setter
|
23877
|
-
def Status(self, Status):
|
23878
|
-
self._Status = Status
|
23879
|
-
|
23880
24036
|
@property
|
23881
24037
|
def Target(self):
|
23882
24038
|
return self._Target
|
@@ -23893,6 +24049,14 @@ class Task(AbstractModel):
|
|
23893
24049
|
def Type(self, Type):
|
23894
24050
|
self._Type = Type
|
23895
24051
|
|
24052
|
+
@property
|
24053
|
+
def Status(self):
|
24054
|
+
return self._Status
|
24055
|
+
|
24056
|
+
@Status.setter
|
24057
|
+
def Status(self, Status):
|
24058
|
+
self._Status = Status
|
24059
|
+
|
23896
24060
|
@property
|
23897
24061
|
def CreateTime(self):
|
23898
24062
|
return self._CreateTime
|
@@ -23912,9 +24076,9 @@ class Task(AbstractModel):
|
|
23912
24076
|
|
23913
24077
|
def _deserialize(self, params):
|
23914
24078
|
self._JobId = params.get("JobId")
|
23915
|
-
self._Status = params.get("Status")
|
23916
24079
|
self._Target = params.get("Target")
|
23917
24080
|
self._Type = params.get("Type")
|
24081
|
+
self._Status = params.get("Status")
|
23918
24082
|
self._CreateTime = params.get("CreateTime")
|
23919
24083
|
self._UpdateTime = params.get("UpdateTime")
|
23920
24084
|
memeber_set = set(params.keys())
|
@@ -263,6 +263,9 @@ INTERNALERROR_QUERYSUBNETINFOFAILED = 'InternalError.QuerySubnetInfoFailed'
|
|
263
263
|
# 查询用户临时秘钥失败
|
264
264
|
INTERNALERROR_QUERYUSERTMPCREDENTIALFAILED = 'InternalError.QueryUserTMPCredentialFailed'
|
265
265
|
|
266
|
+
# 查询vpc信息失败
|
267
|
+
INTERNALERROR_QUERYVPCINFOFAILED = 'InternalError.QueryVPCInfoFailed'
|
268
|
+
|
266
269
|
# 停止任务失败。
|
267
270
|
INTERNALERROR_STOPJOBINSTANCEFAILED = 'InternalError.StopJobInstanceFailed'
|
268
271
|
|
@@ -350,6 +353,9 @@ INVALIDPARAMETERVALUE_DATASETNUMLIMITEXCEEDED = 'InvalidParameterValue.DatasetNu
|
|
350
353
|
# 实例名称冲突,请更换名称后重试。
|
351
354
|
INVALIDPARAMETERVALUE_DUPLICATENAME = 'InvalidParameterValue.DuplicateName'
|
352
355
|
|
356
|
+
# 文件系统路径访问权限受限
|
357
|
+
INVALIDPARAMETERVALUE_FSPATHINACCESSIBLE = 'InvalidParameterValue.FSPathInaccessible'
|
358
|
+
|
353
359
|
# 训练框架对应的版本不支持,请阅读文档查看TIONE目前支持的框架和版本。
|
354
360
|
INVALIDPARAMETERVALUE_FRAMEWORKVERSIONNOTSUPPORT = 'InvalidParameterValue.FrameworkVersionNotSupport'
|
355
361
|
|
@@ -479,9 +485,15 @@ RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
|
479
485
|
# 资源不存在。
|
480
486
|
RESOURCENOTFOUND = 'ResourceNotFound'
|
481
487
|
|
488
|
+
# 文件系统不存在
|
489
|
+
RESOURCENOTFOUND_CFSNOTFOUND = 'ResourceNotFound.CfsNotFound'
|
490
|
+
|
482
491
|
# 没有该模型。
|
483
492
|
RESOURCENOTFOUND_NOMODEL = 'ResourceNotFound.NoModel'
|
484
493
|
|
494
|
+
# vpc不存在
|
495
|
+
RESOURCENOTFOUND_VPCNOTFOUND = 'ResourceNotFound.VPCNotFound'
|
496
|
+
|
485
497
|
# 资源不可用。
|
486
498
|
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
487
499
|
|
@@ -14,6 +14,9 @@
|
|
14
14
|
# limitations under the License.
|
15
15
|
|
16
16
|
|
17
|
+
# 内部错误。
|
18
|
+
INTERNALERROR = 'InternalError'
|
19
|
+
|
17
20
|
# 请求超时。
|
18
21
|
INTERNALERROR_ERRTEXTTIMEOUT = 'InternalError.ErrTextTimeOut'
|
19
22
|
|
@@ -26,6 +29,9 @@ INVALIDPARAMETER_ERRTEXTCONTENTLEN = 'InvalidParameter.ErrTextContentLen'
|
|
26
29
|
# 文本类型错误,需要base64的文本。
|
27
30
|
INVALIDPARAMETER_ERRTEXTCONTENTTYPE = 'InvalidParameter.ErrTextContentType'
|
28
31
|
|
32
|
+
# Question参数错误
|
33
|
+
INVALIDPARAMETER_INVALIDQUESTION = 'InvalidParameter.InvalidQuestion'
|
34
|
+
|
29
35
|
# InvalidParameter.ParameterError
|
30
36
|
INVALIDPARAMETER_PARAMETERERROR = 'InvalidParameter.ParameterError'
|
31
37
|
|
@@ -18,6 +18,76 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
+
class AnswerQuestionRequest(AbstractModel):
|
22
|
+
"""AnswerQuestion请求参数结构体
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _Question: 用户问题
|
29
|
+
:type Question: str
|
30
|
+
"""
|
31
|
+
self._Question = None
|
32
|
+
|
33
|
+
@property
|
34
|
+
def Question(self):
|
35
|
+
return self._Question
|
36
|
+
|
37
|
+
@Question.setter
|
38
|
+
def Question(self, Question):
|
39
|
+
self._Question = Question
|
40
|
+
|
41
|
+
|
42
|
+
def _deserialize(self, params):
|
43
|
+
self._Question = params.get("Question")
|
44
|
+
memeber_set = set(params.keys())
|
45
|
+
for name, value in vars(self).items():
|
46
|
+
property_name = name[1:]
|
47
|
+
if property_name in memeber_set:
|
48
|
+
memeber_set.remove(property_name)
|
49
|
+
if len(memeber_set) > 0:
|
50
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
class AnswerQuestionResponse(AbstractModel):
|
55
|
+
"""AnswerQuestion返回参数结构体
|
56
|
+
|
57
|
+
"""
|
58
|
+
|
59
|
+
def __init__(self):
|
60
|
+
r"""
|
61
|
+
:param _Answer: 匹配到的答案
|
62
|
+
:type Answer: str
|
63
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
64
|
+
:type RequestId: str
|
65
|
+
"""
|
66
|
+
self._Answer = None
|
67
|
+
self._RequestId = None
|
68
|
+
|
69
|
+
@property
|
70
|
+
def Answer(self):
|
71
|
+
return self._Answer
|
72
|
+
|
73
|
+
@Answer.setter
|
74
|
+
def Answer(self, Answer):
|
75
|
+
self._Answer = Answer
|
76
|
+
|
77
|
+
@property
|
78
|
+
def RequestId(self):
|
79
|
+
return self._RequestId
|
80
|
+
|
81
|
+
@RequestId.setter
|
82
|
+
def RequestId(self, RequestId):
|
83
|
+
self._RequestId = RequestId
|
84
|
+
|
85
|
+
|
86
|
+
def _deserialize(self, params):
|
87
|
+
self._Answer = params.get("Answer")
|
88
|
+
self._RequestId = params.get("RequestId")
|
89
|
+
|
90
|
+
|
21
91
|
class DetailResults(AbstractModel):
|
22
92
|
"""文本审核返回的详细结果
|
23
93
|
|
@@ -26,6 +26,29 @@ class TmsClient(AbstractClient):
|
|
26
26
|
_service = 'tms'
|
27
27
|
|
28
28
|
|
29
|
+
def AnswerQuestion(self, request):
|
30
|
+
""""AIGC代答"产品帮助客户在其AIGC场景下,对于敏感类的问题,不是由客户的大模型机器人来回答,而是我们来进行代答,尽最大可能帮助客户规避风险。
|
31
|
+
|
32
|
+
:param request: Request instance for AnswerQuestion.
|
33
|
+
:type request: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionRequest`
|
34
|
+
:rtype: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("AnswerQuestion", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.AnswerQuestionResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
29
52
|
def ModerateText(self, request):
|
30
53
|
"""天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。
|
31
54
|
|
@@ -65,7 +65,7 @@ lo(老挝语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(
|
|
65
65
|
:type DocumentType: str
|
66
66
|
:param _SourceType: 数据来源,0:url,1:直接传文件编码后数据
|
67
67
|
:type SourceType: int
|
68
|
-
:param _Url: 需要翻译文件url
|
68
|
+
:param _Url: 需要翻译文件url,文件限制如下:docx/xIsx/html/markdown文件不超过800万字符,doc/pdf/pptx文件不超过300页,txt/po文件不超过10MB,pdf/docx/pptx/xlsx不超过40MB
|
69
69
|
:type Url: str
|
70
70
|
:param _BasicDocumentType: 原始文档类型。该参数为高级参数,请留空,如需使用,请与工作人员确认后再使用。
|
71
71
|
:type BasicDocumentType: str
|
@@ -18,6 +18,51 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
+
class AccurateQpsThreshold(AbstractModel):
|
22
|
+
"""云原生网关限流插件参数限流的精确Qps阈值
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _Unit: qps阈值控制维度,包含:second、minute、hour、day、month、year
|
29
|
+
:type Unit: str
|
30
|
+
:param _GlobalConfigId: 全局配置ID
|
31
|
+
:type GlobalConfigId: str
|
32
|
+
"""
|
33
|
+
self._Unit = None
|
34
|
+
self._GlobalConfigId = None
|
35
|
+
|
36
|
+
@property
|
37
|
+
def Unit(self):
|
38
|
+
return self._Unit
|
39
|
+
|
40
|
+
@Unit.setter
|
41
|
+
def Unit(self, Unit):
|
42
|
+
self._Unit = Unit
|
43
|
+
|
44
|
+
@property
|
45
|
+
def GlobalConfigId(self):
|
46
|
+
return self._GlobalConfigId
|
47
|
+
|
48
|
+
@GlobalConfigId.setter
|
49
|
+
def GlobalConfigId(self, GlobalConfigId):
|
50
|
+
self._GlobalConfigId = GlobalConfigId
|
51
|
+
|
52
|
+
|
53
|
+
def _deserialize(self, params):
|
54
|
+
self._Unit = params.get("Unit")
|
55
|
+
self._GlobalConfigId = params.get("GlobalConfigId")
|
56
|
+
memeber_set = set(params.keys())
|
57
|
+
for name, value in vars(self).items():
|
58
|
+
property_name = name[1:]
|
59
|
+
if property_name in memeber_set:
|
60
|
+
memeber_set.remove(property_name)
|
61
|
+
if len(memeber_set) > 0:
|
62
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
63
|
+
|
64
|
+
|
65
|
+
|
21
66
|
class ApolloEnvParam(AbstractModel):
|
22
67
|
"""Apollo 环境配置参数
|
23
68
|
|
@@ -5600,6 +5645,8 @@ zk标准版没有跨地域部署,请不要填写
|
|
5600
5645
|
:param _StorageOption: zk专业版至多有两个盘,且磁盘的容量在50-3200之间
|
5601
5646
|
如果只有一个磁盘,storageCapacity与storageOption里面的capacity应该一致
|
5602
5647
|
:type StorageOption: list of StorageOption
|
5648
|
+
:param _AffinityConstraint: ZK引擎实例,可用区分布约束,STRICT:强约束,PERMISSIVE: 弱约束
|
5649
|
+
:type AffinityConstraint: str
|
5603
5650
|
"""
|
5604
5651
|
self._EngineType = None
|
5605
5652
|
self._EngineVersion = None
|
@@ -5618,6 +5665,7 @@ zk标准版没有跨地域部署,请不要填写
|
|
5618
5665
|
self._PrepaidRenewFlag = None
|
5619
5666
|
self._EngineRegionInfos = None
|
5620
5667
|
self._StorageOption = None
|
5668
|
+
self._AffinityConstraint = None
|
5621
5669
|
|
5622
5670
|
@property
|
5623
5671
|
def EngineType(self):
|
@@ -5755,6 +5803,14 @@ zk标准版没有跨地域部署,请不要填写
|
|
5755
5803
|
def StorageOption(self, StorageOption):
|
5756
5804
|
self._StorageOption = StorageOption
|
5757
5805
|
|
5806
|
+
@property
|
5807
|
+
def AffinityConstraint(self):
|
5808
|
+
return self._AffinityConstraint
|
5809
|
+
|
5810
|
+
@AffinityConstraint.setter
|
5811
|
+
def AffinityConstraint(self, AffinityConstraint):
|
5812
|
+
self._AffinityConstraint = AffinityConstraint
|
5813
|
+
|
5758
5814
|
|
5759
5815
|
def _deserialize(self, params):
|
5760
5816
|
self._EngineType = params.get("EngineType")
|
@@ -5796,6 +5852,7 @@ zk标准版没有跨地域部署,请不要填写
|
|
5796
5852
|
obj = StorageOption()
|
5797
5853
|
obj._deserialize(item)
|
5798
5854
|
self._StorageOption.append(obj)
|
5855
|
+
self._AffinityConstraint = params.get("AffinityConstraint")
|
5799
5856
|
memeber_set = set(params.keys())
|
5800
5857
|
for name, value in vars(self).items():
|
5801
5858
|
property_name = name[1:]
|
@@ -14377,7 +14434,8 @@ class EngineRegionInfo(AbstractModel):
|
|
14377
14434
|
:type Replica: int
|
14378
14435
|
:param _VpcInfos: 集群网络信息
|
14379
14436
|
:type VpcInfos: list of VpcInfo
|
14380
|
-
:param _MainRegion: 是否为主地域
|
14437
|
+
:param _MainRegion: Polaris: 是否为主地域
|
14438
|
+
Zookeeper: 是否为Leader固定地域
|
14381
14439
|
:type MainRegion: bool
|
14382
14440
|
:param _SpecId: 引擎规格ID
|
14383
14441
|
:type SpecId: str
|
@@ -18643,10 +18701,14 @@ class LimitRule(AbstractModel):
|
|
18643
18701
|
:param _QpsThresholds: 限流阈值
|
18644
18702
|
注意:此字段可能返回 null,表示取不到有效值。
|
18645
18703
|
:type QpsThresholds: list of QpsThreshold
|
18704
|
+
:param _AccurateQpsThresholds: 精确限流阈值
|
18705
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
18706
|
+
:type AccurateQpsThresholds: list of AccurateQpsThreshold
|
18646
18707
|
"""
|
18647
18708
|
self._Filters = None
|
18648
18709
|
self._LimitBy = None
|
18649
18710
|
self._QpsThresholds = None
|
18711
|
+
self._AccurateQpsThresholds = None
|
18650
18712
|
|
18651
18713
|
@property
|
18652
18714
|
def Filters(self):
|
@@ -18672,6 +18734,14 @@ class LimitRule(AbstractModel):
|
|
18672
18734
|
def QpsThresholds(self, QpsThresholds):
|
18673
18735
|
self._QpsThresholds = QpsThresholds
|
18674
18736
|
|
18737
|
+
@property
|
18738
|
+
def AccurateQpsThresholds(self):
|
18739
|
+
return self._AccurateQpsThresholds
|
18740
|
+
|
18741
|
+
@AccurateQpsThresholds.setter
|
18742
|
+
def AccurateQpsThresholds(self, AccurateQpsThresholds):
|
18743
|
+
self._AccurateQpsThresholds = AccurateQpsThresholds
|
18744
|
+
|
18675
18745
|
|
18676
18746
|
def _deserialize(self, params):
|
18677
18747
|
if params.get("Filters") is not None:
|
@@ -18692,6 +18762,12 @@ class LimitRule(AbstractModel):
|
|
18692
18762
|
obj = QpsThreshold()
|
18693
18763
|
obj._deserialize(item)
|
18694
18764
|
self._QpsThresholds.append(obj)
|
18765
|
+
if params.get("AccurateQpsThresholds") is not None:
|
18766
|
+
self._AccurateQpsThresholds = []
|
18767
|
+
for item in params.get("AccurateQpsThresholds"):
|
18768
|
+
obj = AccurateQpsThreshold()
|
18769
|
+
obj._deserialize(item)
|
18770
|
+
self._AccurateQpsThresholds.append(obj)
|
18695
18771
|
memeber_set = set(params.keys())
|
18696
18772
|
for name, value in vars(self).items():
|
18697
18773
|
property_name = name[1:]
|
@@ -21435,7 +21435,7 @@ class ModifyModuleStatusRequest(AbstractModel):
|
|
21435
21435
|
r"""
|
21436
21436
|
:param _Domain: 需要设置的domain
|
21437
21437
|
:type Domain: str
|
21438
|
-
:param _WebSecurity:
|
21438
|
+
:param _WebSecurity: Web 安全模块开关,0或1
|
21439
21439
|
:type WebSecurity: int
|
21440
21440
|
:param _AccessControl: 访问控制模块开关,0或者1
|
21441
21441
|
:type AccessControl: int
|