tencentcloud-sdk-python 3.0.1295__py2.py3-none-any.whl → 3.0.1296__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/dbbrain/v20210527/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20210527/models.py +255 -0
- tencentcloud/essbasic/v20210526/essbasic_client.py +3 -3
- tencentcloud/hunyuan/v20230901/models.py +2 -2
- tencentcloud/lighthouse/v20200324/models.py +2 -2
- tencentcloud/lke/v20231130/models.py +45 -0
- tencentcloud/monitor/v20180724/models.py +106 -0
- tencentcloud/ocr/v20181119/errorcodes.py +6 -0
- tencentcloud/ocr/v20181119/models.py +328 -0
- tencentcloud/ocr/v20181119/ocr_client.py +25 -0
- tencentcloud/teo/v20220901/models.py +20 -14
- tencentcloud/tke/v20180525/errorcodes.py +3 -0
- tencentcloud/tke/v20180525/models.py +55 -4
- tencentcloud/trocket/v20230308/models.py +166 -0
- tencentcloud/trocket/v20230308/trocket_client.py +25 -0
- tencentcloud/vclm/v20240523/models.py +6 -4
- tencentcloud/vpc/v20170312/models.py +26 -26
- tencentcloud/vpc/v20170312/vpc_client.py +2 -2
- tencentcloud/waf/v20180125/models.py +1 -1
- {tencentcloud_sdk_python-3.0.1295.dist-info → tencentcloud_sdk_python-3.0.1296.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1295.dist-info → tencentcloud_sdk_python-3.0.1296.dist-info}/RECORD +25 -25
- {tencentcloud_sdk_python-3.0.1295.dist-info → tencentcloud_sdk_python-3.0.1296.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1295.dist-info → tencentcloud_sdk_python-3.0.1296.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1295.dist-info → tencentcloud_sdk_python-3.0.1296.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -946,6 +946,29 @@ class DbbrainClient(AbstractClient):
|
|
946
946
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
947
947
|
|
948
948
|
|
949
|
+
def DescribeRedisTopHotKeys(self, request):
|
950
|
+
"""热Key分析
|
951
|
+
|
952
|
+
:param request: Request instance for DescribeRedisTopHotKeys.
|
953
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeRedisTopHotKeysRequest`
|
954
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeRedisTopHotKeysResponse`
|
955
|
+
|
956
|
+
"""
|
957
|
+
try:
|
958
|
+
params = request._serialize()
|
959
|
+
headers = request.headers
|
960
|
+
body = self.call("DescribeRedisTopHotKeys", params, headers=headers)
|
961
|
+
response = json.loads(body)
|
962
|
+
model = models.DescribeRedisTopHotKeysResponse()
|
963
|
+
model._deserialize(response["Response"])
|
964
|
+
return model
|
965
|
+
except Exception as e:
|
966
|
+
if isinstance(e, TencentCloudSDKException):
|
967
|
+
raise
|
968
|
+
else:
|
969
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
970
|
+
|
971
|
+
|
949
972
|
def DescribeRedisTopKeyPrefixList(self, request):
|
950
973
|
"""查询redis实例top key前缀列表。
|
951
974
|
|
@@ -7243,6 +7243,165 @@ class DescribeRedisTopBigKeysResponse(AbstractModel):
|
|
7243
7243
|
self._RequestId = params.get("RequestId")
|
7244
7244
|
|
7245
7245
|
|
7246
|
+
class DescribeRedisTopHotKeysRequest(AbstractModel):
|
7247
|
+
"""DescribeRedisTopHotKeys请求参数结构体
|
7248
|
+
|
7249
|
+
"""
|
7250
|
+
|
7251
|
+
def __init__(self):
|
7252
|
+
r"""
|
7253
|
+
:param _InstanceId: 实例 ID 。
|
7254
|
+
:type InstanceId: str
|
7255
|
+
:param _StartTime: 开始时间,如“2024-09-22T00:00:00+00:00”。0天 < 当前服务器时间 - 开始时间 <= 10天。
|
7256
|
+
:type StartTime: str
|
7257
|
+
:param _EndTime: 结束时间,如“2024-09-22T01:00:00+00:00”,0天 < 结束时间 - 开始时间 <= 10天。
|
7258
|
+
:type EndTime: str
|
7259
|
+
:param _Product: 服务产品类型,仅仅支持值 "redis" - 云数据库 Redis。
|
7260
|
+
:type Product: str
|
7261
|
+
:param _InstanceNodeIds: Redis 节点数组。
|
7262
|
+
:type InstanceNodeIds: list of str
|
7263
|
+
:param _Limit: top 数目,默认为20,最大值为100。
|
7264
|
+
:type Limit: int
|
7265
|
+
"""
|
7266
|
+
self._InstanceId = None
|
7267
|
+
self._StartTime = None
|
7268
|
+
self._EndTime = None
|
7269
|
+
self._Product = None
|
7270
|
+
self._InstanceNodeIds = None
|
7271
|
+
self._Limit = None
|
7272
|
+
|
7273
|
+
@property
|
7274
|
+
def InstanceId(self):
|
7275
|
+
"""实例 ID 。
|
7276
|
+
:rtype: str
|
7277
|
+
"""
|
7278
|
+
return self._InstanceId
|
7279
|
+
|
7280
|
+
@InstanceId.setter
|
7281
|
+
def InstanceId(self, InstanceId):
|
7282
|
+
self._InstanceId = InstanceId
|
7283
|
+
|
7284
|
+
@property
|
7285
|
+
def StartTime(self):
|
7286
|
+
"""开始时间,如“2024-09-22T00:00:00+00:00”。0天 < 当前服务器时间 - 开始时间 <= 10天。
|
7287
|
+
:rtype: str
|
7288
|
+
"""
|
7289
|
+
return self._StartTime
|
7290
|
+
|
7291
|
+
@StartTime.setter
|
7292
|
+
def StartTime(self, StartTime):
|
7293
|
+
self._StartTime = StartTime
|
7294
|
+
|
7295
|
+
@property
|
7296
|
+
def EndTime(self):
|
7297
|
+
"""结束时间,如“2024-09-22T01:00:00+00:00”,0天 < 结束时间 - 开始时间 <= 10天。
|
7298
|
+
:rtype: str
|
7299
|
+
"""
|
7300
|
+
return self._EndTime
|
7301
|
+
|
7302
|
+
@EndTime.setter
|
7303
|
+
def EndTime(self, EndTime):
|
7304
|
+
self._EndTime = EndTime
|
7305
|
+
|
7306
|
+
@property
|
7307
|
+
def Product(self):
|
7308
|
+
"""服务产品类型,仅仅支持值 "redis" - 云数据库 Redis。
|
7309
|
+
:rtype: str
|
7310
|
+
"""
|
7311
|
+
return self._Product
|
7312
|
+
|
7313
|
+
@Product.setter
|
7314
|
+
def Product(self, Product):
|
7315
|
+
self._Product = Product
|
7316
|
+
|
7317
|
+
@property
|
7318
|
+
def InstanceNodeIds(self):
|
7319
|
+
"""Redis 节点数组。
|
7320
|
+
:rtype: list of str
|
7321
|
+
"""
|
7322
|
+
return self._InstanceNodeIds
|
7323
|
+
|
7324
|
+
@InstanceNodeIds.setter
|
7325
|
+
def InstanceNodeIds(self, InstanceNodeIds):
|
7326
|
+
self._InstanceNodeIds = InstanceNodeIds
|
7327
|
+
|
7328
|
+
@property
|
7329
|
+
def Limit(self):
|
7330
|
+
"""top 数目,默认为20,最大值为100。
|
7331
|
+
:rtype: int
|
7332
|
+
"""
|
7333
|
+
return self._Limit
|
7334
|
+
|
7335
|
+
@Limit.setter
|
7336
|
+
def Limit(self, Limit):
|
7337
|
+
self._Limit = Limit
|
7338
|
+
|
7339
|
+
|
7340
|
+
def _deserialize(self, params):
|
7341
|
+
self._InstanceId = params.get("InstanceId")
|
7342
|
+
self._StartTime = params.get("StartTime")
|
7343
|
+
self._EndTime = params.get("EndTime")
|
7344
|
+
self._Product = params.get("Product")
|
7345
|
+
self._InstanceNodeIds = params.get("InstanceNodeIds")
|
7346
|
+
self._Limit = params.get("Limit")
|
7347
|
+
memeber_set = set(params.keys())
|
7348
|
+
for name, value in vars(self).items():
|
7349
|
+
property_name = name[1:]
|
7350
|
+
if property_name in memeber_set:
|
7351
|
+
memeber_set.remove(property_name)
|
7352
|
+
if len(memeber_set) > 0:
|
7353
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7354
|
+
|
7355
|
+
|
7356
|
+
|
7357
|
+
class DescribeRedisTopHotKeysResponse(AbstractModel):
|
7358
|
+
"""DescribeRedisTopHotKeys返回参数结构体
|
7359
|
+
|
7360
|
+
"""
|
7361
|
+
|
7362
|
+
def __init__(self):
|
7363
|
+
r"""
|
7364
|
+
:param _TopHotKeys: 热Key分析结果
|
7365
|
+
:type TopHotKeys: list of TopHotKeys
|
7366
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7367
|
+
:type RequestId: str
|
7368
|
+
"""
|
7369
|
+
self._TopHotKeys = None
|
7370
|
+
self._RequestId = None
|
7371
|
+
|
7372
|
+
@property
|
7373
|
+
def TopHotKeys(self):
|
7374
|
+
"""热Key分析结果
|
7375
|
+
:rtype: list of TopHotKeys
|
7376
|
+
"""
|
7377
|
+
return self._TopHotKeys
|
7378
|
+
|
7379
|
+
@TopHotKeys.setter
|
7380
|
+
def TopHotKeys(self, TopHotKeys):
|
7381
|
+
self._TopHotKeys = TopHotKeys
|
7382
|
+
|
7383
|
+
@property
|
7384
|
+
def RequestId(self):
|
7385
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7386
|
+
:rtype: str
|
7387
|
+
"""
|
7388
|
+
return self._RequestId
|
7389
|
+
|
7390
|
+
@RequestId.setter
|
7391
|
+
def RequestId(self, RequestId):
|
7392
|
+
self._RequestId = RequestId
|
7393
|
+
|
7394
|
+
|
7395
|
+
def _deserialize(self, params):
|
7396
|
+
if params.get("TopHotKeys") is not None:
|
7397
|
+
self._TopHotKeys = []
|
7398
|
+
for item in params.get("TopHotKeys"):
|
7399
|
+
obj = TopHotKeys()
|
7400
|
+
obj._deserialize(item)
|
7401
|
+
self._TopHotKeys.append(obj)
|
7402
|
+
self._RequestId = params.get("RequestId")
|
7403
|
+
|
7404
|
+
|
7246
7405
|
class DescribeRedisTopKeyPrefixListRequest(AbstractModel):
|
7247
7406
|
"""DescribeRedisTopKeyPrefixList请求参数结构体
|
7248
7407
|
|
@@ -16281,6 +16440,102 @@ class TimeSlice(AbstractModel):
|
|
16281
16440
|
|
16282
16441
|
|
16283
16442
|
|
16443
|
+
class TopHotKeys(AbstractModel):
|
16444
|
+
"""热key分析返回信息
|
16445
|
+
|
16446
|
+
"""
|
16447
|
+
|
16448
|
+
def __init__(self):
|
16449
|
+
r"""
|
16450
|
+
:param _Count: 访问频次。
|
16451
|
+
:type Count: int
|
16452
|
+
:param _Db: 热Key所属数据库。
|
16453
|
+
:type Db: str
|
16454
|
+
:param _InstanceNodeId: Redis节点。
|
16455
|
+
:type InstanceNodeId: str
|
16456
|
+
:param _Key: 热Key。
|
16457
|
+
:type Key: str
|
16458
|
+
:param _Type: 数据类型。
|
16459
|
+
:type Type: str
|
16460
|
+
"""
|
16461
|
+
self._Count = None
|
16462
|
+
self._Db = None
|
16463
|
+
self._InstanceNodeId = None
|
16464
|
+
self._Key = None
|
16465
|
+
self._Type = None
|
16466
|
+
|
16467
|
+
@property
|
16468
|
+
def Count(self):
|
16469
|
+
"""访问频次。
|
16470
|
+
:rtype: int
|
16471
|
+
"""
|
16472
|
+
return self._Count
|
16473
|
+
|
16474
|
+
@Count.setter
|
16475
|
+
def Count(self, Count):
|
16476
|
+
self._Count = Count
|
16477
|
+
|
16478
|
+
@property
|
16479
|
+
def Db(self):
|
16480
|
+
"""热Key所属数据库。
|
16481
|
+
:rtype: str
|
16482
|
+
"""
|
16483
|
+
return self._Db
|
16484
|
+
|
16485
|
+
@Db.setter
|
16486
|
+
def Db(self, Db):
|
16487
|
+
self._Db = Db
|
16488
|
+
|
16489
|
+
@property
|
16490
|
+
def InstanceNodeId(self):
|
16491
|
+
"""Redis节点。
|
16492
|
+
:rtype: str
|
16493
|
+
"""
|
16494
|
+
return self._InstanceNodeId
|
16495
|
+
|
16496
|
+
@InstanceNodeId.setter
|
16497
|
+
def InstanceNodeId(self, InstanceNodeId):
|
16498
|
+
self._InstanceNodeId = InstanceNodeId
|
16499
|
+
|
16500
|
+
@property
|
16501
|
+
def Key(self):
|
16502
|
+
"""热Key。
|
16503
|
+
:rtype: str
|
16504
|
+
"""
|
16505
|
+
return self._Key
|
16506
|
+
|
16507
|
+
@Key.setter
|
16508
|
+
def Key(self, Key):
|
16509
|
+
self._Key = Key
|
16510
|
+
|
16511
|
+
@property
|
16512
|
+
def Type(self):
|
16513
|
+
"""数据类型。
|
16514
|
+
:rtype: str
|
16515
|
+
"""
|
16516
|
+
return self._Type
|
16517
|
+
|
16518
|
+
@Type.setter
|
16519
|
+
def Type(self, Type):
|
16520
|
+
self._Type = Type
|
16521
|
+
|
16522
|
+
|
16523
|
+
def _deserialize(self, params):
|
16524
|
+
self._Count = params.get("Count")
|
16525
|
+
self._Db = params.get("Db")
|
16526
|
+
self._InstanceNodeId = params.get("InstanceNodeId")
|
16527
|
+
self._Key = params.get("Key")
|
16528
|
+
self._Type = params.get("Type")
|
16529
|
+
memeber_set = set(params.keys())
|
16530
|
+
for name, value in vars(self).items():
|
16531
|
+
property_name = name[1:]
|
16532
|
+
if property_name in memeber_set:
|
16533
|
+
memeber_set.remove(property_name)
|
16534
|
+
if len(memeber_set) > 0:
|
16535
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16536
|
+
|
16537
|
+
|
16538
|
+
|
16284
16539
|
class UpdateAgentSwitchRequest(AbstractModel):
|
16285
16540
|
"""UpdateAgentSwitch请求参数结构体
|
16286
16541
|
|
@@ -1416,9 +1416,9 @@ class EssbasicClient(AbstractClient):
|
|
1416
1416
|
def ChannelDescribeSignFaceVideo(self, request):
|
1417
1417
|
"""该接口用于在使用视频认证方式签署合同后,获取用户的签署人脸认证视频。
|
1418
1418
|
|
1419
|
-
1. 该接口**仅适用于在H5
|
1420
|
-
2.
|
1421
|
-
3.
|
1419
|
+
1. 该接口**仅适用于在H5端签署**的合同,**在通过视频认证后**获取认证的视频内容。
|
1420
|
+
2. 该接口**不支持小程序端**的签署认证的视频获取。
|
1421
|
+
3. 请在**签署完成后的三天内**获取视频,**过期后将无法获取**。
|
1422
1422
|
|
1423
1423
|
**注意:该接口需要开通白名单,请联系客户经理开通后使用。**
|
1424
1424
|
|
@@ -89,7 +89,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
89
89
|
|
90
90
|
def __init__(self):
|
91
91
|
r"""
|
92
|
-
:param _Model: 模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro、 hunyuan-code、 hunyuan-role、 hunyuan-functioncall、 hunyuan-vision、 hunyuan-turbo、 hunyuan-turbo-latest、 hunyuan-large、 hunyuan-large-longcontext、 hunyuan-turbo-vision。
|
92
|
+
:param _Model: 模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro、 hunyuan-code、 hunyuan-role、 hunyuan-functioncall、 hunyuan-vision、 hunyuan-turbo、 hunyuan-turbo-latest、 hunyuan-large、 hunyuan-large-longcontext、 hunyuan-turbo-vision、 hunyuan-standard-vision。
|
93
93
|
各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。
|
94
94
|
|
95
95
|
注意:
|
@@ -207,7 +207,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
207
207
|
|
208
208
|
@property
|
209
209
|
def Model(self):
|
210
|
-
"""模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro、 hunyuan-code、 hunyuan-role、 hunyuan-functioncall、 hunyuan-vision、 hunyuan-turbo、 hunyuan-turbo-latest、 hunyuan-large、 hunyuan-large-longcontext、 hunyuan-turbo-vision。
|
210
|
+
"""模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro、 hunyuan-code、 hunyuan-role、 hunyuan-functioncall、 hunyuan-vision、 hunyuan-turbo、 hunyuan-turbo-latest、 hunyuan-large、 hunyuan-large-longcontext、 hunyuan-turbo-vision、 hunyuan-standard-vision。
|
211
211
|
各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。
|
212
212
|
|
213
213
|
注意:
|
@@ -12356,7 +12356,7 @@ PREPAID:表示预付费,即包年包月。
|
|
12356
12356
|
:type InternetAccessible: :class:`tencentcloud.lighthouse.v20200324.models.InternetAccessible`
|
12357
12357
|
:param _RenewFlag: 自动续费标识。取值范围:
|
12358
12358
|
NOTIFY_AND_MANUAL_RENEW:表示通知即将过期,但不自动续费
|
12359
|
-
NOTIFY_AND_AUTO_RENEW:表示通知即将过期,而且自动续费
|
12359
|
+
NOTIFY_AND_AUTO_RENEW:表示通知即将过期,而且自动续费 DISABLE_NOTIFY_AND_MANUAL_RENEW:不自动续费,且不通知。
|
12360
12360
|
:type RenewFlag: str
|
12361
12361
|
:param _LoginSettings: 实例登录设置。
|
12362
12362
|
:type LoginSettings: :class:`tencentcloud.lighthouse.v20200324.models.LoginSettings`
|
@@ -12569,7 +12569,7 @@ PREPAID:表示预付费,即包年包月。
|
|
12569
12569
|
def RenewFlag(self):
|
12570
12570
|
"""自动续费标识。取值范围:
|
12571
12571
|
NOTIFY_AND_MANUAL_RENEW:表示通知即将过期,但不自动续费
|
12572
|
-
NOTIFY_AND_AUTO_RENEW:表示通知即将过期,而且自动续费
|
12572
|
+
NOTIFY_AND_AUTO_RENEW:表示通知即将过期,而且自动续费 DISABLE_NOTIFY_AND_MANUAL_RENEW:不自动续费,且不通知。
|
12573
12573
|
:rtype: str
|
12574
12574
|
"""
|
12575
12575
|
return self._RenewFlag
|
@@ -5999,11 +5999,14 @@ class DescribeKnowledgeUsageResponse(AbstractModel):
|
|
5999
5999
|
:type AvailableCharSize: str
|
6000
6000
|
:param _ExceedCharSize: 超过可用字符数上限的字符数
|
6001
6001
|
:type ExceedCharSize: str
|
6002
|
+
:param _UsedCharSize: 知识库使用字符总数
|
6003
|
+
:type UsedCharSize: str
|
6002
6004
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6003
6005
|
:type RequestId: str
|
6004
6006
|
"""
|
6005
6007
|
self._AvailableCharSize = None
|
6006
6008
|
self._ExceedCharSize = None
|
6009
|
+
self._UsedCharSize = None
|
6007
6010
|
self._RequestId = None
|
6008
6011
|
|
6009
6012
|
@property
|
@@ -6028,6 +6031,17 @@ class DescribeKnowledgeUsageResponse(AbstractModel):
|
|
6028
6031
|
def ExceedCharSize(self, ExceedCharSize):
|
6029
6032
|
self._ExceedCharSize = ExceedCharSize
|
6030
6033
|
|
6034
|
+
@property
|
6035
|
+
def UsedCharSize(self):
|
6036
|
+
"""知识库使用字符总数
|
6037
|
+
:rtype: str
|
6038
|
+
"""
|
6039
|
+
return self._UsedCharSize
|
6040
|
+
|
6041
|
+
@UsedCharSize.setter
|
6042
|
+
def UsedCharSize(self, UsedCharSize):
|
6043
|
+
self._UsedCharSize = UsedCharSize
|
6044
|
+
|
6031
6045
|
@property
|
6032
6046
|
def RequestId(self):
|
6033
6047
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -6043,6 +6057,7 @@ class DescribeKnowledgeUsageResponse(AbstractModel):
|
|
6043
6057
|
def _deserialize(self, params):
|
6044
6058
|
self._AvailableCharSize = params.get("AvailableCharSize")
|
6045
6059
|
self._ExceedCharSize = params.get("ExceedCharSize")
|
6060
|
+
self._UsedCharSize = params.get("UsedCharSize")
|
6046
6061
|
self._RequestId = params.get("RequestId")
|
6047
6062
|
|
6048
6063
|
|
@@ -8015,6 +8030,10 @@ class DescribeTokenUsageResponse(AbstractModel):
|
|
8015
8030
|
:type SearchUsage: float
|
8016
8031
|
:param _PageUsage: 文档解析消耗页数
|
8017
8032
|
:type PageUsage: int
|
8033
|
+
:param _SplitTokenUsage: 拆分token消耗量
|
8034
|
+
:type SplitTokenUsage: float
|
8035
|
+
:param _RagSearchUsage: Rag检索次数
|
8036
|
+
:type RagSearchUsage: float
|
8018
8037
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8019
8038
|
:type RequestId: str
|
8020
8039
|
"""
|
@@ -8024,6 +8043,8 @@ class DescribeTokenUsageResponse(AbstractModel):
|
|
8024
8043
|
self._ApiCallStats = None
|
8025
8044
|
self._SearchUsage = None
|
8026
8045
|
self._PageUsage = None
|
8046
|
+
self._SplitTokenUsage = None
|
8047
|
+
self._RagSearchUsage = None
|
8027
8048
|
self._RequestId = None
|
8028
8049
|
|
8029
8050
|
@property
|
@@ -8092,6 +8113,28 @@ class DescribeTokenUsageResponse(AbstractModel):
|
|
8092
8113
|
def PageUsage(self, PageUsage):
|
8093
8114
|
self._PageUsage = PageUsage
|
8094
8115
|
|
8116
|
+
@property
|
8117
|
+
def SplitTokenUsage(self):
|
8118
|
+
"""拆分token消耗量
|
8119
|
+
:rtype: float
|
8120
|
+
"""
|
8121
|
+
return self._SplitTokenUsage
|
8122
|
+
|
8123
|
+
@SplitTokenUsage.setter
|
8124
|
+
def SplitTokenUsage(self, SplitTokenUsage):
|
8125
|
+
self._SplitTokenUsage = SplitTokenUsage
|
8126
|
+
|
8127
|
+
@property
|
8128
|
+
def RagSearchUsage(self):
|
8129
|
+
"""Rag检索次数
|
8130
|
+
:rtype: float
|
8131
|
+
"""
|
8132
|
+
return self._RagSearchUsage
|
8133
|
+
|
8134
|
+
@RagSearchUsage.setter
|
8135
|
+
def RagSearchUsage(self, RagSearchUsage):
|
8136
|
+
self._RagSearchUsage = RagSearchUsage
|
8137
|
+
|
8095
8138
|
@property
|
8096
8139
|
def RequestId(self):
|
8097
8140
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -8111,6 +8154,8 @@ class DescribeTokenUsageResponse(AbstractModel):
|
|
8111
8154
|
self._ApiCallStats = params.get("ApiCallStats")
|
8112
8155
|
self._SearchUsage = params.get("SearchUsage")
|
8113
8156
|
self._PageUsage = params.get("PageUsage")
|
8157
|
+
self._SplitTokenUsage = params.get("SplitTokenUsage")
|
8158
|
+
self._RagSearchUsage = params.get("RagSearchUsage")
|
8114
8159
|
self._RequestId = params.get("RequestId")
|
8115
8160
|
|
8116
8161
|
|
@@ -4139,6 +4139,10 @@ class CreateAlarmPolicyRequest(AbstractModel):
|
|
4139
4139
|
:type MigrateFlag: int
|
4140
4140
|
:param _EbSubject: 事件配置的告警
|
4141
4141
|
:type EbSubject: str
|
4142
|
+
:param _AdditionalAlarmContent: 附加告警内容
|
4143
|
+
:type AdditionalAlarmContent: str
|
4144
|
+
:param _NoticeContentTmplBindInfos: 通知模板绑定信息
|
4145
|
+
:type NoticeContentTmplBindInfos: list of NoticeContentTmplBindInfo
|
4142
4146
|
"""
|
4143
4147
|
self._Module = None
|
4144
4148
|
self._PolicyName = None
|
@@ -4159,6 +4163,8 @@ class CreateAlarmPolicyRequest(AbstractModel):
|
|
4159
4163
|
self._HierarchicalNotices = None
|
4160
4164
|
self._MigrateFlag = None
|
4161
4165
|
self._EbSubject = None
|
4166
|
+
self._AdditionalAlarmContent = None
|
4167
|
+
self._NoticeContentTmplBindInfos = None
|
4162
4168
|
|
4163
4169
|
@property
|
4164
4170
|
def Module(self):
|
@@ -4369,6 +4375,28 @@ class CreateAlarmPolicyRequest(AbstractModel):
|
|
4369
4375
|
def EbSubject(self, EbSubject):
|
4370
4376
|
self._EbSubject = EbSubject
|
4371
4377
|
|
4378
|
+
@property
|
4379
|
+
def AdditionalAlarmContent(self):
|
4380
|
+
"""附加告警内容
|
4381
|
+
:rtype: str
|
4382
|
+
"""
|
4383
|
+
return self._AdditionalAlarmContent
|
4384
|
+
|
4385
|
+
@AdditionalAlarmContent.setter
|
4386
|
+
def AdditionalAlarmContent(self, AdditionalAlarmContent):
|
4387
|
+
self._AdditionalAlarmContent = AdditionalAlarmContent
|
4388
|
+
|
4389
|
+
@property
|
4390
|
+
def NoticeContentTmplBindInfos(self):
|
4391
|
+
"""通知模板绑定信息
|
4392
|
+
:rtype: list of NoticeContentTmplBindInfo
|
4393
|
+
"""
|
4394
|
+
return self._NoticeContentTmplBindInfos
|
4395
|
+
|
4396
|
+
@NoticeContentTmplBindInfos.setter
|
4397
|
+
def NoticeContentTmplBindInfos(self, NoticeContentTmplBindInfos):
|
4398
|
+
self._NoticeContentTmplBindInfos = NoticeContentTmplBindInfos
|
4399
|
+
|
4372
4400
|
|
4373
4401
|
def _deserialize(self, params):
|
4374
4402
|
self._Module = params.get("Module")
|
@@ -4413,6 +4441,13 @@ class CreateAlarmPolicyRequest(AbstractModel):
|
|
4413
4441
|
self._HierarchicalNotices.append(obj)
|
4414
4442
|
self._MigrateFlag = params.get("MigrateFlag")
|
4415
4443
|
self._EbSubject = params.get("EbSubject")
|
4444
|
+
self._AdditionalAlarmContent = params.get("AdditionalAlarmContent")
|
4445
|
+
if params.get("NoticeContentTmplBindInfos") is not None:
|
4446
|
+
self._NoticeContentTmplBindInfos = []
|
4447
|
+
for item in params.get("NoticeContentTmplBindInfos"):
|
4448
|
+
obj = NoticeContentTmplBindInfo()
|
4449
|
+
obj._deserialize(item)
|
4450
|
+
self._NoticeContentTmplBindInfos.append(obj)
|
4416
4451
|
memeber_set = set(params.keys())
|
4417
4452
|
for name, value in vars(self).items():
|
4418
4453
|
property_name = name[1:]
|
@@ -27481,12 +27516,15 @@ class ModifyAlarmPolicyNoticeRequest(AbstractModel):
|
|
27481
27516
|
:type PolicyIds: list of str
|
27482
27517
|
:param _HierarchicalNotices: 告警分级通知规则配置
|
27483
27518
|
:type HierarchicalNotices: list of AlarmHierarchicalNotice
|
27519
|
+
:param _NoticeContentTmplBindInfos: 通知内容模板绑定信息
|
27520
|
+
:type NoticeContentTmplBindInfos: list of NoticeContentTmplBindInfo
|
27484
27521
|
"""
|
27485
27522
|
self._Module = None
|
27486
27523
|
self._PolicyId = None
|
27487
27524
|
self._NoticeIds = None
|
27488
27525
|
self._PolicyIds = None
|
27489
27526
|
self._HierarchicalNotices = None
|
27527
|
+
self._NoticeContentTmplBindInfos = None
|
27490
27528
|
|
27491
27529
|
@property
|
27492
27530
|
def Module(self):
|
@@ -27543,6 +27581,17 @@ class ModifyAlarmPolicyNoticeRequest(AbstractModel):
|
|
27543
27581
|
def HierarchicalNotices(self, HierarchicalNotices):
|
27544
27582
|
self._HierarchicalNotices = HierarchicalNotices
|
27545
27583
|
|
27584
|
+
@property
|
27585
|
+
def NoticeContentTmplBindInfos(self):
|
27586
|
+
"""通知内容模板绑定信息
|
27587
|
+
:rtype: list of NoticeContentTmplBindInfo
|
27588
|
+
"""
|
27589
|
+
return self._NoticeContentTmplBindInfos
|
27590
|
+
|
27591
|
+
@NoticeContentTmplBindInfos.setter
|
27592
|
+
def NoticeContentTmplBindInfos(self, NoticeContentTmplBindInfos):
|
27593
|
+
self._NoticeContentTmplBindInfos = NoticeContentTmplBindInfos
|
27594
|
+
|
27546
27595
|
|
27547
27596
|
def _deserialize(self, params):
|
27548
27597
|
self._Module = params.get("Module")
|
@@ -27555,6 +27604,12 @@ class ModifyAlarmPolicyNoticeRequest(AbstractModel):
|
|
27555
27604
|
obj = AlarmHierarchicalNotice()
|
27556
27605
|
obj._deserialize(item)
|
27557
27606
|
self._HierarchicalNotices.append(obj)
|
27607
|
+
if params.get("NoticeContentTmplBindInfos") is not None:
|
27608
|
+
self._NoticeContentTmplBindInfos = []
|
27609
|
+
for item in params.get("NoticeContentTmplBindInfos"):
|
27610
|
+
obj = NoticeContentTmplBindInfo()
|
27611
|
+
obj._deserialize(item)
|
27612
|
+
self._NoticeContentTmplBindInfos.append(obj)
|
27558
27613
|
memeber_set = set(params.keys())
|
27559
27614
|
for name, value in vars(self).items():
|
27560
27615
|
property_name = name[1:]
|
@@ -29333,6 +29388,57 @@ class NoticeBindPolicys(AbstractModel):
|
|
29333
29388
|
|
29334
29389
|
|
29335
29390
|
|
29391
|
+
class NoticeContentTmplBindInfo(AbstractModel):
|
29392
|
+
"""通知内容模板绑定信息
|
29393
|
+
|
29394
|
+
"""
|
29395
|
+
|
29396
|
+
def __init__(self):
|
29397
|
+
r"""
|
29398
|
+
:param _ContentTmplID: 通知内容模板ID
|
29399
|
+
:type ContentTmplID: str
|
29400
|
+
:param _NoticeID: 通知模板ID
|
29401
|
+
:type NoticeID: str
|
29402
|
+
"""
|
29403
|
+
self._ContentTmplID = None
|
29404
|
+
self._NoticeID = None
|
29405
|
+
|
29406
|
+
@property
|
29407
|
+
def ContentTmplID(self):
|
29408
|
+
"""通知内容模板ID
|
29409
|
+
:rtype: str
|
29410
|
+
"""
|
29411
|
+
return self._ContentTmplID
|
29412
|
+
|
29413
|
+
@ContentTmplID.setter
|
29414
|
+
def ContentTmplID(self, ContentTmplID):
|
29415
|
+
self._ContentTmplID = ContentTmplID
|
29416
|
+
|
29417
|
+
@property
|
29418
|
+
def NoticeID(self):
|
29419
|
+
"""通知模板ID
|
29420
|
+
:rtype: str
|
29421
|
+
"""
|
29422
|
+
return self._NoticeID
|
29423
|
+
|
29424
|
+
@NoticeID.setter
|
29425
|
+
def NoticeID(self, NoticeID):
|
29426
|
+
self._NoticeID = NoticeID
|
29427
|
+
|
29428
|
+
|
29429
|
+
def _deserialize(self, params):
|
29430
|
+
self._ContentTmplID = params.get("ContentTmplID")
|
29431
|
+
self._NoticeID = params.get("NoticeID")
|
29432
|
+
memeber_set = set(params.keys())
|
29433
|
+
for name, value in vars(self).items():
|
29434
|
+
property_name = name[1:]
|
29435
|
+
if property_name in memeber_set:
|
29436
|
+
memeber_set.remove(property_name)
|
29437
|
+
if len(memeber_set) > 0:
|
29438
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
29439
|
+
|
29440
|
+
|
29441
|
+
|
29336
29442
|
class Operator(AbstractModel):
|
29337
29443
|
"""维度支持的操作符信息
|
29338
29444
|
|
@@ -50,6 +50,9 @@ FAILEDOPERATION_IDCARDINFOILLEGAL = 'FailedOperation.IdCardInfoIllegal'
|
|
50
50
|
# 图片分辨率过小或身份证在原图中的占比过小
|
51
51
|
FAILEDOPERATION_IDCARDTOOSMALL = 'FailedOperation.IdCardTooSmall'
|
52
52
|
|
53
|
+
# 银行卡信息非法。
|
54
|
+
FAILEDOPERATION_ILLEGALBANKCARDERROR = 'FailedOperation.IllegalBankCardError'
|
55
|
+
|
53
56
|
# 图片模糊。
|
54
57
|
FAILEDOPERATION_IMAGEBLUR = 'FailedOperation.ImageBlur'
|
55
58
|
|
@@ -86,6 +89,9 @@ FAILEDOPERATION_LICENSEMULTICARDERROR = 'FailedOperation.LicenseMultiCardError'
|
|
86
89
|
# 图片中存在两张及以上同面卡证,请上传卡证单面图片或一正一反双面图片。
|
87
90
|
FAILEDOPERATION_MULTICARDERROR = 'FailedOperation.MultiCardError'
|
88
91
|
|
92
|
+
# 非银行卡。
|
93
|
+
FAILEDOPERATION_NOBANKCARDERROR = 'FailedOperation.NoBankCardError'
|
94
|
+
|
89
95
|
# 非营业执照。
|
90
96
|
FAILEDOPERATION_NOBIZLICENSE = 'FailedOperation.NoBizLicense'
|
91
97
|
|