tencentcloud-sdk-python 3.0.1233__py2.py3-none-any.whl → 3.0.1246__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.
Files changed (110) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/aiart_client.py +34 -21
  3. tencentcloud/aiart/v20221229/models.py +6 -6
  4. tencentcloud/apigateway/v20180808/apigateway_client.py +23 -0
  5. tencentcloud/apigateway/v20180808/models.py +31 -0
  6. tencentcloud/apm/v20210622/errorcodes.py +3 -3
  7. tencentcloud/apm/v20210622/models.py +16 -15
  8. tencentcloud/asr/v20190614/asr_client.py +23 -0
  9. tencentcloud/asr/v20190614/models.py +203 -0
  10. tencentcloud/autoscaling/v20180419/models.py +55 -3
  11. tencentcloud/ca/__init__.py +0 -0
  12. tencentcloud/ca/v20230228/__init__.py +0 -0
  13. tencentcloud/ca/v20230228/ca_client.py +95 -0
  14. tencentcloud/ca/v20230228/errorcodes.py +30 -0
  15. tencentcloud/ca/v20230228/models.py +398 -0
  16. tencentcloud/ccc/v20200210/ccc_client.py +69 -0
  17. tencentcloud/ccc/v20200210/errorcodes.py +6 -0
  18. tencentcloud/ccc/v20200210/models.py +610 -0
  19. tencentcloud/cdb/v20170320/models.py +60 -0
  20. tencentcloud/cdn/v20180606/models.py +32 -0
  21. tencentcloud/cdwdoris/v20211228/models.py +105 -1
  22. tencentcloud/cfg/v20210820/models.py +12 -0
  23. tencentcloud/cfw/v20190904/models.py +4 -4
  24. tencentcloud/clb/v20180317/models.py +25 -1
  25. tencentcloud/cls/v20201016/models.py +12 -0
  26. tencentcloud/cme/v20191029/models.py +12 -0
  27. tencentcloud/csip/v20221121/models.py +1 -1
  28. tencentcloud/cvm/v20170312/cvm_client.py +23 -0
  29. tencentcloud/cvm/v20170312/errorcodes.py +4 -1
  30. tencentcloud/cvm/v20170312/models.py +202 -4
  31. tencentcloud/cwp/v20180228/cwp_client.py +3 -1
  32. tencentcloud/cwp/v20180228/models.py +241 -14
  33. tencentcloud/cynosdb/v20190107/cynosdb_client.py +48 -73
  34. tencentcloud/cynosdb/v20190107/models.py +7 -134
  35. tencentcloud/dasb/v20191018/models.py +37 -0
  36. tencentcloud/dlc/v20210125/models.py +12 -0
  37. tencentcloud/dsgc/v20190723/models.py +1 -1
  38. tencentcloud/dts/v20211206/models.py +16 -16
  39. tencentcloud/emr/v20190103/emr_client.py +46 -0
  40. tencentcloud/emr/v20190103/models.py +467 -3
  41. tencentcloud/ess/v20201111/ess_client.py +19 -12
  42. tencentcloud/ess/v20201111/models.py +58 -22
  43. tencentcloud/essbasic/v20210526/essbasic_client.py +48 -9
  44. tencentcloud/essbasic/v20210526/models.py +174 -11
  45. tencentcloud/faceid/v20180301/models.py +28 -0
  46. tencentcloud/hunyuan/v20230901/models.py +1 -0
  47. tencentcloud/iecp/v20210914/iecp_client.py +0 -500
  48. tencentcloud/iecp/v20210914/models.py +2130 -5305
  49. tencentcloud/ims/v20201229/ims_client.py +9 -4
  50. tencentcloud/ims/v20201229/models.py +4 -4
  51. tencentcloud/lcic/v20220817/models.py +1 -1
  52. tencentcloud/lighthouse/v20200324/models.py +2 -2
  53. tencentcloud/lke/v20231130/lke_client.py +184 -0
  54. tencentcloud/lke/v20231130/models.py +2129 -881
  55. tencentcloud/mariadb/v20170312/mariadb_client.py +23 -0
  56. tencentcloud/mariadb/v20170312/models.py +94 -0
  57. tencentcloud/monitor/v20180724/models.py +0 -132
  58. tencentcloud/monitor/v20180724/monitor_client.py +0 -50
  59. tencentcloud/mps/v20190612/models.py +16 -3
  60. tencentcloud/mqtt/__init__.py +0 -0
  61. tencentcloud/mqtt/v20240516/__init__.py +0 -0
  62. tencentcloud/mqtt/v20240516/errorcodes.py +45 -0
  63. tencentcloud/mqtt/v20240516/models.py +3221 -0
  64. tencentcloud/mqtt/v20240516/mqtt_client.py +472 -0
  65. tencentcloud/mrs/v20200910/errorcodes.py +3 -0
  66. tencentcloud/mrs/v20200910/models.py +158 -27
  67. tencentcloud/ocr/v20181119/models.py +21 -0
  68. tencentcloud/ocr/v20181119/ocr_client.py +1 -1
  69. tencentcloud/omics/v20221128/models.py +245 -29
  70. tencentcloud/organization/v20210331/errorcodes.py +54 -0
  71. tencentcloud/organization/v20210331/models.py +483 -3
  72. tencentcloud/organization/v20210331/organization_client.py +46 -0
  73. tencentcloud/postgres/v20170312/models.py +626 -13
  74. tencentcloud/postgres/v20170312/postgres_client.py +69 -0
  75. tencentcloud/rce/v20201103/models.py +33 -22
  76. tencentcloud/redis/v20180412/errorcodes.py +3 -0
  77. tencentcloud/scf/v20180416/errorcodes.py +9 -12
  78. tencentcloud/ses/v20201002/models.py +65 -0
  79. tencentcloud/sms/v20190711/models.py +3 -3
  80. tencentcloud/sms/v20210111/models.py +9 -8
  81. tencentcloud/sqlserver/v20180328/models.py +1 -1
  82. tencentcloud/ssl/v20191205/models.py +114 -0
  83. tencentcloud/tcb/v20180608/models.py +25 -0
  84. tencentcloud/tcss/v20201101/models.py +269 -0
  85. tencentcloud/tcss/v20201101/tcss_client.py +3 -1
  86. tencentcloud/teo/v20220901/errorcodes.py +33 -0
  87. tencentcloud/teo/v20220901/models.py +4012 -2535
  88. tencentcloud/teo/v20220901/teo_client.py +254 -0
  89. tencentcloud/tke/v20180525/errorcodes.py +3 -0
  90. tencentcloud/tke/v20180525/models.py +748 -5
  91. tencentcloud/tke/v20180525/tke_client.py +92 -0
  92. tencentcloud/tke/v20220501/models.py +1 -1
  93. tencentcloud/tse/v20201207/models.py +26 -0
  94. tencentcloud/tsf/v20180326/models.py +0 -58
  95. tencentcloud/tsf/v20180326/tsf_client.py +0 -25
  96. tencentcloud/tts/v20190823/tts_client.py +4 -1
  97. tencentcloud/vclm/v20240523/models.py +25 -0
  98. tencentcloud/vdb/v20230616/models.py +13 -0
  99. tencentcloud/vod/v20180717/models.py +91 -1
  100. tencentcloud/vod/v20180717/vod_client.py +10 -2
  101. tencentcloud/vpc/v20170312/errorcodes.py +9 -0
  102. tencentcloud/vpc/v20170312/models.py +2587 -539
  103. tencentcloud/vpc/v20170312/vpc_client.py +506 -0
  104. tencentcloud/waf/v20180125/models.py +447 -12
  105. tencentcloud/wedata/v20210820/models.py +18 -0
  106. {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/METADATA +1 -1
  107. {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/RECORD +110 -100
  108. {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/LICENSE +0 -0
  109. {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/WHEEL +0 -0
  110. {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1246.dist-info}/top_level.txt +0 -0
@@ -79,7 +79,7 @@ class ImsClient(AbstractClient):
79
79
 
80
80
  ### 接口功能说明:
81
81
  - 支持对图片文件或链接进行检测,通过深度学习技术,识别可能令人反感、不安全或不适宜的违规图片内容;
82
- - 支持对长图进行拆分检测;
82
+ - 支持对GIF图/长图进行截帧或拆分检测;
83
83
  - 支持识别多种违规场景,包括:低俗、违法违规、色情、广告等场景;
84
84
  - 支持多种物体检测(实体、广告台标、二维码等)及图片中文本的OCR文本识别;
85
85
  - 支持根据不同的业务场景配置自定义的审核策略;
@@ -87,13 +87,18 @@ class ImsClient(AbstractClient):
87
87
  - 支持在审核图片内容时同时关联账号或设备信息,可识别违规风险账号或设备。
88
88
 
89
89
  ### 接口调用说明:
90
- - 图片文件大小限制:**Base64编码内容应小于10MB**;**URL资源应小于30MB**
90
+ - 图片文件大小限制:图片文件须大于256字节,Base64编码后的FileContent内容应小于10MB,FileURL的源图应小于30MB
91
91
  - 图片默认尺寸支持:**长和宽 需>50分辨率且<10000分辨率,并且图片长宽比<90:1;**
92
92
  - 图片文件分辨率支持:建议**分辨率大于256x256**,否则可能会影响识别效果;
93
- - 图片文件支持格式:PNGJPG、JPEG、BMP、GIFWEBP格式;
93
+ - 图片文件支持格式(无备注默认只支持静态图):BMPICO、JPEG、JNGPNG、TIFF、RAW、SVG、GIF(静、动)、WEBP(静、动)、HEIC(静、动),动图在处理时,默认最多抽取5帧图像,并且每隔5帧进行一次采样;
94
94
  - 图片文件链接支持的传输协议:HTTP、HTTPS;
95
- - 若传入图片文件的访问链接,则需要注意**图片下载时间限制为3秒**,为保障被检测图片的稳定性和可靠性,建议您使用腾讯云COS存储或者CDN缓存等;
95
+ - 图片审核仅支持单次传输一条URL进行审核,支持多并发请求。默认并发为100 QPS,超过此限制将返回`RequestLimitExceeded`错误;
96
+ - 若传入图片文件的访问链接时,为保障被检测图片的稳定性和可靠性,建议您使用腾讯云COS存储或者CDN缓存等。
96
97
 
98
+ ### 图片下载说明:
99
+ - 下载时间限制:图片首次下载限制为3秒。如超过此时间,将重试一次,重试时间为3秒。如果重试仍超时,将返回 `ImageDownloadError`(下载超时);
100
+ - 网络安全策略:由于网络安全策略,带有重定向的链接(如HTTP返回302状态码)可能导致下载失败。请尽量避免使用此类链接,以确保下载顺利进行,可能返回 `ResourceUnavailable.ImageDownloadError`;
101
+ - 异步回源支持:目前不支持通过异步回源方式获取图片源。请确保使用直接链接,以避免下载失败。
97
102
 
98
103
  <div class="rno-api-explorer" style="margin-bottom:20px">
99
104
  <div class="rno-api-explorer-inner">
@@ -31,9 +31,9 @@ class CreateImageModerationAsyncTaskRequest(AbstractModel):
31
31
  :type BizType: str
32
32
  :param _DataId: 该字段表示您为待检测对象分配的数据ID,传入后可方便您对文件进行标识和管理。<br>取值:由英文字母(大小写均可)、数字及四个特殊符号(_,-,@,#)组成,**长度不超过64个字符**。
33
33
  :type DataId: str
34
- :param _FileContent: 该字段表示待检测图片文件内容的Base64编码,图片**大小不超过30MB**,建议**分辨率不低于256x256**,否则可能会影响识别效果。<br>备注: **该字段与FileUrl必须选择输入其中一个**。
34
+ :param _FileContent: 该字段表示待检测图片文件内容的Base64编码,图片**大小不超过10MB**,建议**分辨率不低于256x256**,否则可能会影响识别效果。<br>备注: **该字段与FileUrl必须选择输入其中一个**。
35
35
  :type FileContent: str
36
- :param _FileUrl: 该字段表示待检测图片文件的访问链接,图片支持PNG、JPG、JPEG、BMP、GIF、WEBP格式,**大小不超过5MB**,建议**分辨率不低于256x256**;图片下载时间限制为3秒,超过则会返回下载超时;由于网络安全策略,**送审带重定向的链接,可能引起下载失败**,请尽量避免,比如Http返回302状态码的链接,可能导致接口返回ResourceUnavailable.ImageDownloadError。<br>备注:**该字段与FileContent必须选择输入其中一个**。
36
+ :param _FileUrl: 该字段表示待检测图片文件的访问链接,图片支持PNG、JPG、JPEG、BMP、GIF、WEBP格式,**大小不超过100MB**,建议**分辨率不低于256x256**;图片下载时间限制为3秒,超过则会返回下载超时;由于网络安全策略,**送审带重定向的链接,可能引起下载失败**,请尽量避免,比如Http返回302状态码的链接,可能导致接口返回ResourceUnavailable.ImageDownloadError。<br>备注:**该字段与FileContent必须选择输入其中一个**。
37
37
  :type FileUrl: str
38
38
  :param _Interval: **GIF/长图检测专用**,用于表示GIF截帧频率(每隔多少张图片抽取一帧进行检测),长图则按照长边:短边取整计算要切割的总图数;默认值为0,此时只会检测GIF的第一帧或对长图不进行切分处理。<br>备注:Interval与MaxFrames参数需要组合使用。例如,Interval=3, MaxFrames=400,则代表在检测GIF/长图时,将每间隔2帧检测一次且最多检测400帧。
39
39
  :type Interval: int
@@ -317,9 +317,9 @@ class ImageModerationRequest(AbstractModel):
317
317
  :type BizType: str
318
318
  :param _DataId: 该字段表示您为待检测对象分配的数据ID,传入后可方便您对文件进行标识和管理。<br>取值:由英文字母(大小写均可)、数字及四个特殊符号(_,-,@,#)组成,**长度不超过64个字符**。
319
319
  :type DataId: str
320
- :param _FileContent: 该字段表示待检测图片文件内容的Base64编码,图片**大小不超过5MB**,建议**分辨率不低于256x256**,否则可能会影响识别效果。<br>备注: **该字段与FileUrl必须选择输入其中一个**。
320
+ :param _FileContent: 该字段表示待检测图片文件内容的Base64编码,由于云API对请求包体有大小限制,图片的**Base64编码内容大小不得超过10MB**。<br/>备注:**该字段与FileUrl必须选择输入其中一个**。<br />
321
321
  :type FileContent: str
322
- :param _FileUrl: 该字段表示待检测图片文件的访问链接。图片支持PNG、JPG、JPEG、BMP、GIF、WEBP格式,且**大小不得超过30MB**,建议**分辨率不低于256x256**。**图片下载时间限制为3秒,超时将进行一次重试,若再次失败,则会返回下载超时**。由于网络安全策略,**送审带重定向的链接**可能引起下载失败,请尽量避免使用返回302或其他非200状态码的HTTP链接,会导致接口返回 ResourceUnavailable.ImageDownloadError 错误。<br>备注:该字段与FileContent必须选择输入其中一个。
322
+ :param _FileUrl: 该字段表示待检测图片文件的访问链接,URL源图**大小不超过30MB**。<br />备注:该字段与FileContent必须选择输入其中一个。 <br />
323
323
  :type FileUrl: str
324
324
  :param _Interval: **GIF检测专用**,用于表示GIF截帧频率(每隔多少张图片抽取一帧进行检测);默认值为0,此时只会检测GIF的第一帧或不进行切分处理。<br>备注:Interval与MaxFrames参数需要组合使用。例如,Interval=3, MaxFrames=400,则代表在检测GIF时,将每间隔2帧检测一次且最多检测400帧。
325
325
  :type Interval: int
@@ -1847,7 +1847,7 @@ class CreateRoomRequest(AbstractModel):
1847
1847
  2 高清
1848
1848
  3 全高清
1849
1849
  :type Resolution: int
1850
- :param _MaxMicNumber: 设置房间/课堂同时最大可与老师进行连麦互动的人数,该参数支持正式上课/开播前调用修改房间修改。小班课取值范围[0,16],大班课取值范围[0,1],当取值为0时表示当前课堂/直播,不支持连麦互动。
1850
+ :param _MaxMicNumber: 设置房间/课堂同时最大可与老师进行连麦互动的人数,该参数支持正式上课/开播前调用修改房间修改。小班课取值范围[0,16],大班课取值范围[0,1],当取值为0时表示当前课堂/直播,不支持连麦互动。该取值影响计费,请根据业务实际情况设置。计费规则见“购买指南”下“计费概述”。
1851
1851
  :type MaxMicNumber: int
1852
1852
  :param _SubType: 房间子类型,可以有以下取值:
1853
1853
  videodoc 文档+视频
@@ -322,7 +322,7 @@ class AttachCcnRequest(AbstractModel):
322
322
 
323
323
  def __init__(self):
324
324
  r"""
325
- :param _CcnId: 云联网实例ID。可通过[DescribeCcnAttachedInstances](https://cloud.tencent.com/document/product/1207/58797)接口返回值中的CcnId获取。
325
+ :param _CcnId: 云联网实例ID。可通过[DescribeCcns](https://cloud.tencent.com/document/product/215/19199)接口返回值中的CcnId获取。
326
326
  :type CcnId: str
327
327
  """
328
328
  self._CcnId = None
@@ -13634,7 +13634,7 @@ class ResetAttachCcnRequest(AbstractModel):
13634
13634
 
13635
13635
  def __init__(self):
13636
13636
  r"""
13637
- :param _CcnId: 云联网实例ID。可通过[DescribeCcnAttachedInstances](https://cloud.tencent.com/document/product/1207/58797)接口返回值中的CcnId获取。
13637
+ :param _CcnId: 云联网实例ID。可通过[DescribeCcns](https://cloud.tencent.com/document/product/215/19199)接口返回值中的CcnId获取。
13638
13638
  :type CcnId: str
13639
13639
  """
13640
13640
  self._CcnId = None
@@ -466,6 +466,75 @@ class LkeClient(AbstractClient):
466
466
  raise TencentCloudSDKException(type(e).__name__, str(e))
467
467
 
468
468
 
469
+ def DescribeCallStatsGraph(self, request):
470
+ """接口调用折线图
471
+
472
+ :param request: Request instance for DescribeCallStatsGraph.
473
+ :type request: :class:`tencentcloud.lke.v20231130.models.DescribeCallStatsGraphRequest`
474
+ :rtype: :class:`tencentcloud.lke.v20231130.models.DescribeCallStatsGraphResponse`
475
+
476
+ """
477
+ try:
478
+ params = request._serialize()
479
+ headers = request.headers
480
+ body = self.call("DescribeCallStatsGraph", params, headers=headers)
481
+ response = json.loads(body)
482
+ model = models.DescribeCallStatsGraphResponse()
483
+ model._deserialize(response["Response"])
484
+ return model
485
+ except Exception as e:
486
+ if isinstance(e, TencentCloudSDKException):
487
+ raise
488
+ else:
489
+ raise TencentCloudSDKException(type(e).__name__, str(e))
490
+
491
+
492
+ def DescribeConcurrencyUsage(self, request):
493
+ """并发调用响应
494
+
495
+ :param request: Request instance for DescribeConcurrencyUsage.
496
+ :type request: :class:`tencentcloud.lke.v20231130.models.DescribeConcurrencyUsageRequest`
497
+ :rtype: :class:`tencentcloud.lke.v20231130.models.DescribeConcurrencyUsageResponse`
498
+
499
+ """
500
+ try:
501
+ params = request._serialize()
502
+ headers = request.headers
503
+ body = self.call("DescribeConcurrencyUsage", params, headers=headers)
504
+ response = json.loads(body)
505
+ model = models.DescribeConcurrencyUsageResponse()
506
+ model._deserialize(response["Response"])
507
+ return model
508
+ except Exception as e:
509
+ if isinstance(e, TencentCloudSDKException):
510
+ raise
511
+ else:
512
+ raise TencentCloudSDKException(type(e).__name__, str(e))
513
+
514
+
515
+ def DescribeConcurrencyUsageGraph(self, request):
516
+ """并发调用折线图
517
+
518
+ :param request: Request instance for DescribeConcurrencyUsageGraph.
519
+ :type request: :class:`tencentcloud.lke.v20231130.models.DescribeConcurrencyUsageGraphRequest`
520
+ :rtype: :class:`tencentcloud.lke.v20231130.models.DescribeConcurrencyUsageGraphResponse`
521
+
522
+ """
523
+ try:
524
+ params = request._serialize()
525
+ headers = request.headers
526
+ body = self.call("DescribeConcurrencyUsageGraph", params, headers=headers)
527
+ response = json.loads(body)
528
+ model = models.DescribeConcurrencyUsageGraphResponse()
529
+ model._deserialize(response["Response"])
530
+ return model
531
+ except Exception as e:
532
+ if isinstance(e, TencentCloudSDKException):
533
+ raise
534
+ else:
535
+ raise TencentCloudSDKException(type(e).__name__, str(e))
536
+
537
+
469
538
  def DescribeCorp(self, request):
470
539
  """企业详情
471
540
 
@@ -512,6 +581,52 @@ class LkeClient(AbstractClient):
512
581
  raise TencentCloudSDKException(type(e).__name__, str(e))
513
582
 
514
583
 
584
+ def DescribeKnowledgeUsage(self, request):
585
+ """查询知识库用量
586
+
587
+ :param request: Request instance for DescribeKnowledgeUsage.
588
+ :type request: :class:`tencentcloud.lke.v20231130.models.DescribeKnowledgeUsageRequest`
589
+ :rtype: :class:`tencentcloud.lke.v20231130.models.DescribeKnowledgeUsageResponse`
590
+
591
+ """
592
+ try:
593
+ params = request._serialize()
594
+ headers = request.headers
595
+ body = self.call("DescribeKnowledgeUsage", params, headers=headers)
596
+ response = json.loads(body)
597
+ model = models.DescribeKnowledgeUsageResponse()
598
+ model._deserialize(response["Response"])
599
+ return model
600
+ except Exception as e:
601
+ if isinstance(e, TencentCloudSDKException):
602
+ raise
603
+ else:
604
+ raise TencentCloudSDKException(type(e).__name__, str(e))
605
+
606
+
607
+ def DescribeKnowledgeUsagePieGraph(self, request):
608
+ """查询企业知识库容量饼图
609
+
610
+ :param request: Request instance for DescribeKnowledgeUsagePieGraph.
611
+ :type request: :class:`tencentcloud.lke.v20231130.models.DescribeKnowledgeUsagePieGraphRequest`
612
+ :rtype: :class:`tencentcloud.lke.v20231130.models.DescribeKnowledgeUsagePieGraphResponse`
613
+
614
+ """
615
+ try:
616
+ params = request._serialize()
617
+ headers = request.headers
618
+ body = self.call("DescribeKnowledgeUsagePieGraph", params, headers=headers)
619
+ response = json.loads(body)
620
+ model = models.DescribeKnowledgeUsagePieGraphResponse()
621
+ model._deserialize(response["Response"])
622
+ return model
623
+ except Exception as e:
624
+ if isinstance(e, TencentCloudSDKException):
625
+ raise
626
+ else:
627
+ raise TencentCloudSDKException(type(e).__name__, str(e))
628
+
629
+
515
630
  def DescribeQA(self, request):
516
631
  """问答详情
517
632
 
@@ -627,6 +742,29 @@ class LkeClient(AbstractClient):
627
742
  raise TencentCloudSDKException(type(e).__name__, str(e))
628
743
 
629
744
 
745
+ def DescribeSearchStatsGraph(self, request):
746
+ """查询搜索服务调用折线图
747
+
748
+ :param request: Request instance for DescribeSearchStatsGraph.
749
+ :type request: :class:`tencentcloud.lke.v20231130.models.DescribeSearchStatsGraphRequest`
750
+ :rtype: :class:`tencentcloud.lke.v20231130.models.DescribeSearchStatsGraphResponse`
751
+
752
+ """
753
+ try:
754
+ params = request._serialize()
755
+ headers = request.headers
756
+ body = self.call("DescribeSearchStatsGraph", params, headers=headers)
757
+ response = json.loads(body)
758
+ model = models.DescribeSearchStatsGraphResponse()
759
+ model._deserialize(response["Response"])
760
+ return model
761
+ except Exception as e:
762
+ if isinstance(e, TencentCloudSDKException):
763
+ raise
764
+ else:
765
+ raise TencentCloudSDKException(type(e).__name__, str(e))
766
+
767
+
630
768
  def DescribeSegments(self, request):
631
769
  """获取片段详情
632
770
 
@@ -673,6 +811,52 @@ class LkeClient(AbstractClient):
673
811
  raise TencentCloudSDKException(type(e).__name__, str(e))
674
812
 
675
813
 
814
+ def DescribeTokenUsage(self, request):
815
+ """接口调用token详情
816
+
817
+ :param request: Request instance for DescribeTokenUsage.
818
+ :type request: :class:`tencentcloud.lke.v20231130.models.DescribeTokenUsageRequest`
819
+ :rtype: :class:`tencentcloud.lke.v20231130.models.DescribeTokenUsageResponse`
820
+
821
+ """
822
+ try:
823
+ params = request._serialize()
824
+ headers = request.headers
825
+ body = self.call("DescribeTokenUsage", params, headers=headers)
826
+ response = json.loads(body)
827
+ model = models.DescribeTokenUsageResponse()
828
+ model._deserialize(response["Response"])
829
+ return model
830
+ except Exception as e:
831
+ if isinstance(e, TencentCloudSDKException):
832
+ raise
833
+ else:
834
+ raise TencentCloudSDKException(type(e).__name__, str(e))
835
+
836
+
837
+ def DescribeTokenUsageGraph(self, request):
838
+ """接口调用token折线图
839
+
840
+ :param request: Request instance for DescribeTokenUsageGraph.
841
+ :type request: :class:`tencentcloud.lke.v20231130.models.DescribeTokenUsageGraphRequest`
842
+ :rtype: :class:`tencentcloud.lke.v20231130.models.DescribeTokenUsageGraphResponse`
843
+
844
+ """
845
+ try:
846
+ params = request._serialize()
847
+ headers = request.headers
848
+ body = self.call("DescribeTokenUsageGraph", params, headers=headers)
849
+ response = json.loads(body)
850
+ model = models.DescribeTokenUsageGraphResponse()
851
+ model._deserialize(response["Response"])
852
+ return model
853
+ except Exception as e:
854
+ if isinstance(e, TencentCloudSDKException):
855
+ raise
856
+ else:
857
+ raise TencentCloudSDKException(type(e).__name__, str(e))
858
+
859
+
676
860
  def DescribeUnsatisfiedReplyContext(self, request):
677
861
  """获取不满意回复上下文
678
862