tencentcloud-sdk-python 3.0.973__py2.py3-none-any.whl → 3.0.975__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.

Files changed (58) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/asr/v20190614/asr_client.py +11 -10
  3. tencentcloud/asr/v20190614/models.py +49 -18
  4. tencentcloud/ccc/v20200210/models.py +2 -2
  5. tencentcloud/cdb/v20170320/errorcodes.py +6 -0
  6. tencentcloud/cdwch/v20200915/models.py +201 -0
  7. tencentcloud/cfw/v20190904/cfw_client.py +47 -0
  8. tencentcloud/cfw/v20190904/models.py +322 -11
  9. tencentcloud/ckafka/v20190819/models.py +2 -2
  10. tencentcloud/clb/v20180317/models.py +75 -5
  11. tencentcloud/cls/v20201016/models.py +26 -0
  12. tencentcloud/cvm/v20170312/cvm_client.py +1 -0
  13. tencentcloud/cvm/v20170312/models.py +1 -13
  14. tencentcloud/cynosdb/v20190107/models.py +9 -6
  15. tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
  16. tencentcloud/dbbrain/v20210527/models.py +867 -0
  17. tencentcloud/dnspod/v20210323/errorcodes.py +7 -7
  18. tencentcloud/dnspod/v20210323/models.py +13 -1
  19. tencentcloud/ecm/v20190719/models.py +15 -2
  20. tencentcloud/eis/v20210601/errorcodes.py +3 -0
  21. tencentcloud/emr/v20190103/errorcodes.py +3 -0
  22. tencentcloud/ess/v20201111/ess_client.py +25 -13
  23. tencentcloud/ess/v20201111/models.py +162 -120
  24. tencentcloud/essbasic/v20210526/essbasic_client.py +7 -0
  25. tencentcloud/essbasic/v20210526/models.py +22 -15
  26. tencentcloud/faceid/v20180301/models.py +17 -1
  27. tencentcloud/iotexplorer/v20190423/errorcodes.py +1 -1
  28. tencentcloud/lcic/v20220817/errorcodes.py +3 -0
  29. tencentcloud/lcic/v20220817/models.py +74 -0
  30. tencentcloud/live/v20180801/live_client.py +23 -0
  31. tencentcloud/live/v20180801/models.py +131 -0
  32. tencentcloud/monitor/v20180724/models.py +182 -2
  33. tencentcloud/monitor/v20180724/monitor_client.py +23 -0
  34. tencentcloud/mps/v20190612/models.py +304 -0
  35. tencentcloud/oceanus/v20190422/models.py +15 -1
  36. tencentcloud/ses/v20201002/models.py +1 -1
  37. tencentcloud/sqlserver/v20180328/models.py +3 -3
  38. tencentcloud/sqlserver/v20180328/sqlserver_client.py +0 -1
  39. tencentcloud/ssl/v20191205/models.py +1836 -50
  40. tencentcloud/ssl/v20191205/ssl_client.py +69 -0
  41. tencentcloud/tdmq/v20200217/models.py +587 -1
  42. tencentcloud/tdmq/v20200217/tdmq_client.py +46 -0
  43. tencentcloud/tem/v20210701/errorcodes.py +3 -0
  44. tencentcloud/teo/v20220901/errorcodes.py +21 -0
  45. tencentcloud/teo/v20220901/models.py +96 -0
  46. tencentcloud/teo/v20220901/teo_client.py +23 -0
  47. tencentcloud/tione/v20211111/models.py +121 -0
  48. tencentcloud/trtc/v20190722/models.py +5 -2
  49. tencentcloud/tse/v20201207/models.py +13 -0
  50. tencentcloud/tsf/v20180326/models.py +5 -4
  51. tencentcloud/tsf/v20180326/tsf_client.py +1 -1
  52. tencentcloud/vod/v20180717/models.py +1 -1
  53. tencentcloud/vpc/v20170312/errorcodes.py +3 -0
  54. {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.975.dist-info}/METADATA +1 -1
  55. {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.975.dist-info}/RECORD +58 -58
  56. {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.975.dist-info}/LICENSE +0 -0
  57. {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.975.dist-info}/WHEEL +0 -0
  58. {tencentcloud_sdk_python-3.0.973.dist-info → tencentcloud_sdk_python-3.0.975.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.973'
17
+ __version__ = '3.0.975'
@@ -131,15 +131,16 @@ class AsrClient(AbstractClient):
131
131
 
132
132
 
133
133
  def CreateRecTask(self, request):
134
- """本接口服务对时长5小时以内的录音文件进行识别,异步返回识别全部结果。
135
- 支持中文普通话、英语、粤语、日语、越南语、马来语、印度尼西亚语、菲律宾语、葡萄牙语、土耳其语、阿拉伯语、西班牙语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。
136
- 支持wav、mp3、m4a、flv、mp4、wma、3gp、amr、aac、ogg-opus、flac格式。
137
- 支持语音 URL 和本地语音文件两种请求方式。语音 URL 的音频时长不能长于5小时,文件大小不超过1GB。本地语音文件调用不能大于5MB。推荐使用 [ 腾讯云COS](https://cloud.tencent.com/document/product/436/38484) 来存储&生成URL提交任务,无外网&流量下行费用,节约成本、提升任务速度。(COS桶权限需要设置公有读私有写,或URL设置外部可访问)
138
- 提交录音文件识别请求后,在3小时内完成识别(大多数情况下1小时音频约3分钟以内完成识别,半小时内发送超过1000小时录音或者2万条识别任务的除外),识别结果在服务端可保存7天。
139
- 支持回调或轮询的方式获取结果,结果获取请参考[ 录音文件识别结果查询](https://cloud.tencent.com/document/product/1093/37822)
140
- 生成字幕场景可设置参数ResTextFormat为3,解析ResultDetail结构生成字幕,可参考 [生成字幕最佳实践](https://cloud.tencent.com/document/product/1093/84291)。
141
- 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。
142
- 默认接口请求频率限制:20次/秒。
134
+ """本接口可对较长的录音文件进行识别。如希望直接使用带界面的语音识别产品,请访问[产品体验中心](https://console.cloud.tencent.com/asr/demonstrate)。产品计费标准请查阅 [计费概述(在线版)](https://cloud.tencent.com/document/product/1093/35686)
135
+ 接口默认限频:20次/秒。此处仅限制任务提交频次,与识别结果返回时效无关
136
+ 返回时效:异步回调,非实时返回。最长3小时返回识别结果,**大多数情况下,1小时的音频1-3分钟即可完成识别**。请注意:上述返回时长不含音频下载时延,且30分钟内发送超过1000小时录音或2万条任务的情况除外
137
+ 音频格式:wav、mp3、m4a、flv、mp4、wma、3gp、amr、aac、ogg-opus、flac
138
+ 支持语言:在本页面上搜索 **EngineModelType**,或前往 [产品功能](https://cloud.tencent.com/document/product/1093/35682) 查看
139
+ 音频提交方式:本接口支持**音频 URL 、本地音频文件**两种请求方式。推荐使用 [腾讯云COS](https://cloud.tencent.com/document/product/436/38484) 来存储、生成URL并提交任务,此种方式将不产生外网和流量下行费用,可节约成本、提升任务速度(COS桶权限需要设置公有读私有写,或URL设置外部可访问)
140
+ 音频限制:音频 URL 时长不能大于5小时,文件大小不超过1GB;本地音频文件不能大于5MB
141
+ 如何获取识别结果:支持**回调或轮询**的方式获取结果,具体请参考 [录音文件识别结果查询](https://cloud.tencent.com/document/product/1093/37822)
142
+ 识别结果有效时间:在服务端保存7天
143
+ • 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法 v3
143
144
 
144
145
  :param request: Request instance for CreateRecTask.
145
146
  :type request: :class:`tencentcloud.asr.v20190614.models.CreateRecTaskRequest`
@@ -444,7 +445,7 @@ class AsrClient(AbstractClient):
444
445
 
445
446
 
446
447
  def SentenceRecognition(self, request):
447
- """本接口用于对60秒之内的短音频文件进行识别。<br>• 支持中文普通话、英语、粤语、日语、越南语、马来语、印度尼西亚语、菲律宾语、泰语、葡萄牙语、土耳其语、阿拉伯语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。<br>• 支持本地语音文件上传和语音URL上传两种请求方式,音频时长不能超过60s,音频文件大小不能超过3MB。<br>• 音频格式支持wav、pcm、ogg-opus、speex、silk、mp3、m4a、aac。<br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"<br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。<br>• 默认接口请求频率限制:30次/秒,如您有提高请求频率限制的需求,请[前往购买](https://buy.cloud.tencent.com/asr)。
448
+ """本接口用于对60秒之内的短音频文件进行识别。<br>• 支持中文普通话、英语、粤语、日语、越南语、马来语、印度尼西亚语、菲律宾语、泰语、葡萄牙语、土耳其语、阿拉伯语、印地语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。<br>• 支持本地语音文件上传和语音URL上传两种请求方式,音频时长不能超过60s,音频文件大小不能超过3MB。<br>• 音频格式支持wav、pcm、ogg-opus、speex、silk、mp3、m4a、aac。<br>• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"<br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。<br>• 默认接口请求频率限制:30次/秒,如您有提高请求频率限制的需求,请[前往购买](https://buy.cloud.tencent.com/asr)。
448
449
 
449
450
  :param request: Request instance for SentenceRecognition.
450
451
  :type request: :class:`tencentcloud.asr.v20190614.models.SentenceRecognitionRequest`
@@ -290,6 +290,7 @@ class CreateAsyncRecognitionTaskRequest(AbstractModel):
290
290
  • 16k_tr:土耳其语;
291
291
  • 16k_ar:阿拉伯语;
292
292
  • 16k_es:西班牙语;
293
+ • 16k_hi:印地语;
293
294
  :type EngineType: str
294
295
  :param _Url: 语音流地址,支持rtmp、rtsp等流媒体协议,以及各类基于http协议的直播流(不支持hls, m3u8)
295
296
  :type Url: str
@@ -587,15 +588,19 @@ class CreateRecTaskRequest(AbstractModel):
587
588
 
588
589
  def __init__(self):
589
590
  r"""
590
- :param _EngineModelType: 引擎模型类型。注意:非电话场景请务必使用16k的引擎。
591
- 电话场景:
592
- • 8k_zh:中文电话通用;
593
- • 8k_en:英文电话通用;
594
-
595
- 非电话场景:
596
- • 16k_zh:中文通用;
597
- • 16k_zh-PY:中英粤;
598
- • 16k_zh_medical:中文医疗;
591
+ :param _EngineModelType: 引擎模型类型
592
+
593
+ 电话通讯场景引擎:
594
+ **注意:电话通讯场景,请务必使用以下8k引擎**
595
+ • 8k_zh:中文电话通讯;
596
+ • 8k_en:英文电话通讯;
597
+ 如您有电话通讯场景识别需求,但发现需求语种仅支持16k,可将8k音频传入下方16k引擎,亦能获取识别结果。但**16k引擎并非基于电话通讯数据训练,无法承诺此种调用方式的识别效果,需由您自行验证识别结果是否可用**。
598
+
599
+ 通用场景引擎:
600
+ **注意:除电话通讯场景以外的其它识别场景,请务必使用以下16k引擎**
601
+ • 16k_zh:中文普通话通用引擎,支持中文普通话和少量英语,使用丰富的中文普通话语料训练,覆盖场景广泛,适用于除电话通讯外的所有中文普通话识别场景;
602
+ • 16k_zh-PY:中英粤混合引擎,使用一个引擎同时识别中文普通话、英语、粤语三个语言;
603
+ • 16k_zh_dialect:中文普通话+多方言混合引擎,除普通话外支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
599
604
  • 16k_en:英语;
600
605
  • 16k_yue:粤语;
601
606
  • 16k_ja:日语;
@@ -609,21 +614,46 @@ class CreateRecTaskRequest(AbstractModel):
609
614
  • 16k_tr:土耳其语;
610
615
  • 16k_ar:阿拉伯语;
611
616
  • 16k_es:西班牙语;
612
- 16k_zh_dialect:多方言,支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
617
+ 16k_hi:印地语;
618
+ • 16k_zh_medical:中文医疗引擎
613
619
  :type EngineModelType: str
614
- :param _ChannelNum: 识别声道数。1:单声道(非电话场景,直接选择单声道即可,忽略音频声道数);2:双声道(仅支持8k_zh电话场景,双声道应分别对应通话双方)。注意:双声道的电话音频已物理分离说话人,无需再开启说话人分离功能。
620
+ :param _ChannelNum: 识别声道数
621
+ 1:单声道(16k音频仅支持单声道,**请勿**设置为双声道);
622
+ 2:双声道(仅支持8k电话音频,且双声道应分别为通话双方)
623
+
624
+ 注意:
625
+ • 16k音频:仅支持单声道识别,**需设置ChannelNum=1**
626
+ • 8k电话音频:支持单声道、双声道识别,**建议设置ChannelNum=2,即双声道**。双声道能够物理区分说话人、避免说话双方重叠产生的识别错误,能达到最好的说话人分离效果和识别效果。设置双声道后,将自动区分说话人,因此**无需再开启说话人分离功能**,相关参数(**SpeakerDiarization、SpeakerNumber**)使用默认值即可
615
627
  :type ChannelNum: int
616
- :param _ResTextFormat: 识别结果返回形式。0: 识别结果文本(含分段时间戳); 1:词级别粒度的[详细识别结果](https://cloud.tencent.com/document/api/1093/37824#SentenceDetail)(不含标点,含语速值);2:词级别粒度的详细识别结果(包含标点、语速值);3: 标点符号分段,包含每段时间戳,特别适用于字幕场景(包含词级时间、标点、语速值)。4:【增值付费功能】对识别结果按照语义分段,并展示词级别粒度的详细识别结果,仅支持8k_zh、16k_zh引擎,需购买对应资源包使用(注意:如果账号后付费功能开启并使用此功能,将[自动计费](https://cloud.tencent.com/document/product/1093/35686))
628
+ :param _ResTextFormat: 识别结果返回形式
629
+ 0: 识别结果文本(含分段时间戳);
630
+ 1:词级别粒度的[详细识别结果](https://cloud.tencent.com/document/api/1093/37824#SentenceDetail)(不含标点,含语速值);
631
+ 2:词级别粒度的详细识别结果(包含标点、语速值);
632
+ 3: 标点符号分段,包含每段时间戳,特别适用于字幕场景(包含词级时间、标点、语速值)
633
+ 4:【增值付费功能】对识别结果按照语义分段,并展示词级别粒度的详细识别结果,仅支持8k_zh、16k_zh引擎,需购买对应资源包使用(注意:如果账号后付费功能开启并使用此功能,将[自动计费](https://cloud.tencent.com/document/product/1093/35686))
617
634
  :type ResTextFormat: int
618
- :param _SourceType: 语音数据来源。0:语音 URL;1:语音数据(post body)。
635
+ :param _SourceType: 语音数据来源
636
+ 0:语音 URL;
637
+ 1:语音数据(post body)
619
638
  :type SourceType: int
620
- :param _SpeakerDiarization: 是否开启说话人分离,0:不开启,1:开启(仅支持8k_zh/16k_zh,ChannelNum=1时可用),默认值为 0。
621
- 注意:8k电话场景建议使用双声道来区分通话双方,设置ChannelNum=2即可,不用开启说话人分离,如果设置了ChannelNum=1,后台会先转码成单声道,说话人分离结果可能产生偏差。
639
+ :param _SpeakerDiarization: 是否开启说话人分离
640
+ 0:不开启;
641
+ 1:开启(仅支持8k_zh/16k_zh,且ChannelNum=1时可用);
642
+ 默认值为 0
643
+
644
+ 注意:
645
+ 8k双声道电话音频请按 **ChannelNum 识别声道数** 的参数描述使用默认值
622
646
  :type SpeakerDiarization: int
623
- :param _SpeakerNumber: 说话人分离人数(需配合开启说话人分离使用),取值范围:0-10,0代表自动分离(目前仅支持≤6个人),1-10代表指定说话人数分离。默认值为 0。
624
- 注:此功能结果仅供参考,请根据您的需要谨慎使用。
647
+ :param _SpeakerNumber: 说话人分离人数
648
+ **需配合开启说话人分离使用,不开启无效**,取值范围:0-10
649
+ 0:自动分离(最多分离出20个人);
650
+ 1-10:指定人数分离;
651
+ 默认值为 0
652
+
653
+ 注意:此功能结果仅供参考
625
654
  :type SpeakerNumber: int
626
- :param _CallbackUrl: 回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。回调格式&内容详见:[录音识别回调说明](https://cloud.tencent.com/document/product/1093/52632)
655
+ :param _CallbackUrl: 回调 URL:用户自行搭建的用于接收识别结果的服务URL。回调格式和内容详见:[录音识别回调说明](https://cloud.tencent.com/document/product/1093/52632)
656
+ 如果用户使用轮询方式获取识别结果,则无需提交该参数。
627
657
  :type CallbackUrl: str
628
658
  :param _Url: 语音的URL地址,需要公网环境浏览器可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不需要填写。注意:请确保录音文件时长在5个小时之内,否则可能识别失败。请保证文件的下载速度,否则可能下载失败。
629
659
  :type Url: str
@@ -2291,6 +2321,7 @@ class SentenceRecognitionRequest(AbstractModel):
2291
2321
  • 16k_tr:土耳其语;
2292
2322
  • 16k_ar:阿拉伯语;
2293
2323
  • 16k_es:西班牙语;
2324
+ • 16k_hi:印地语;
2294
2325
  • 16k_zh_dialect:多方言,支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
2295
2326
  :type EngSerViceType: str
2296
2327
  :param _SourceType: 语音数据来源。0:语音 URL;1:语音数据(post body)。
@@ -1869,11 +1869,11 @@ class CreateUserSigRequest(AbstractModel):
1869
1869
  r"""
1870
1870
  :param _SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
1871
1871
  :type SdkAppId: int
1872
- :param _Uid: 用户 ID
1872
+ :param _Uid: 用户 ID,该值必须与 ClientData 字段中 Uid 的值一致
1873
1873
  :type Uid: str
1874
1874
  :param _ExpiredTime: 有效期,单位秒,不超过 1 小时
1875
1875
  :type ExpiredTime: int
1876
- :param _ClientData: 用户签名数据
1876
+ :param _ClientData: 用户签名数据,必填字段,为标准 JSON 格式
1877
1877
  :type ClientData: str
1878
1878
  """
1879
1879
  self._SdkAppId = None
@@ -80,6 +80,9 @@ FAILEDOPERATION_GETPRIVILEGEERROR = 'FailedOperation.GetPrivilegeError'
80
80
  # 查询失败。
81
81
  FAILEDOPERATION_INSTANCEQUERYERROR = 'FailedOperation.InstanceQueryError'
82
82
 
83
+ # 实例任务冲突错误。
84
+ FAILEDOPERATION_INSTANCETASKCONFLICTERROR = 'FailedOperation.InstanceTaskConflictError'
85
+
83
86
  # json序列化失败。
84
87
  FAILEDOPERATION_JSONMARSHALERROR = 'FailedOperation.JsonMarshalError'
85
88
 
@@ -215,6 +218,9 @@ INTERNALERROR_FTPERROR = 'InternalError.FtpError'
215
218
  # Http请求异常。
216
219
  INTERNALERROR_HTTPERROR = 'InternalError.HttpError'
217
220
 
221
+ # 请求失败。
222
+ INTERNALERROR_HTTPREQUESTERROR = 'InternalError.HttpRequestError'
223
+
218
224
  # 导入失败。
219
225
  INTERNALERROR_IMPORTERROR = 'InternalError.ImportError'
220
226
 
@@ -1146,6 +1146,70 @@ class CreateInstanceNewResponse(AbstractModel):
1146
1146
  self._RequestId = params.get("RequestId")
1147
1147
 
1148
1148
 
1149
+ class DatabasePrivilegeInfo(AbstractModel):
1150
+ """数据库权限信息
1151
+
1152
+ """
1153
+
1154
+ def __init__(self):
1155
+ r"""
1156
+ :param _DatabaseName: 数据库名称
1157
+ :type DatabaseName: str
1158
+ :param _DatabasePrivileges: //库表权限,SELECT、INSERT_ALL、ALTER、TRUNCATE、DROP_TABLE、CREATE_TABLE、DROP_DATABASE
1159
+ 注意:此字段可能返回 null,表示取不到有效值。
1160
+ :type DatabasePrivileges: list of str
1161
+ :param _TablePrivilegeList: // 库下面的表权限
1162
+ 注意:此字段可能返回 null,表示取不到有效值。
1163
+ :type TablePrivilegeList: list of TablePrivilegeInfo
1164
+ """
1165
+ self._DatabaseName = None
1166
+ self._DatabasePrivileges = None
1167
+ self._TablePrivilegeList = None
1168
+
1169
+ @property
1170
+ def DatabaseName(self):
1171
+ return self._DatabaseName
1172
+
1173
+ @DatabaseName.setter
1174
+ def DatabaseName(self, DatabaseName):
1175
+ self._DatabaseName = DatabaseName
1176
+
1177
+ @property
1178
+ def DatabasePrivileges(self):
1179
+ return self._DatabasePrivileges
1180
+
1181
+ @DatabasePrivileges.setter
1182
+ def DatabasePrivileges(self, DatabasePrivileges):
1183
+ self._DatabasePrivileges = DatabasePrivileges
1184
+
1185
+ @property
1186
+ def TablePrivilegeList(self):
1187
+ return self._TablePrivilegeList
1188
+
1189
+ @TablePrivilegeList.setter
1190
+ def TablePrivilegeList(self, TablePrivilegeList):
1191
+ self._TablePrivilegeList = TablePrivilegeList
1192
+
1193
+
1194
+ def _deserialize(self, params):
1195
+ self._DatabaseName = params.get("DatabaseName")
1196
+ self._DatabasePrivileges = params.get("DatabasePrivileges")
1197
+ if params.get("TablePrivilegeList") is not None:
1198
+ self._TablePrivilegeList = []
1199
+ for item in params.get("TablePrivilegeList"):
1200
+ obj = TablePrivilegeInfo()
1201
+ obj._deserialize(item)
1202
+ self._TablePrivilegeList.append(obj)
1203
+ memeber_set = set(params.keys())
1204
+ for name, value in vars(self).items():
1205
+ property_name = name[1:]
1206
+ if property_name in memeber_set:
1207
+ memeber_set.remove(property_name)
1208
+ if len(memeber_set) > 0:
1209
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1210
+
1211
+
1212
+
1149
1213
  class DeleteBackUpDataRequest(AbstractModel):
1150
1214
  """DeleteBackUpData请求参数结构体
1151
1215
 
@@ -4051,6 +4115,98 @@ class ModifyUserNewPrivilegeRequest(AbstractModel):
4051
4115
 
4052
4116
  """
4053
4117
 
4118
+ def __init__(self):
4119
+ r"""
4120
+ :param _InstanceId: 实例id
4121
+ :type InstanceId: str
4122
+ :param _Cluster: cluster名称
4123
+ :type Cluster: str
4124
+ :param _UserName: 用户名
4125
+ :type UserName: str
4126
+ :param _AllDatabase: 是否所有数据库表
4127
+ :type AllDatabase: bool
4128
+ :param _GlobalPrivileges: 全局权限
4129
+ :type GlobalPrivileges: list of str
4130
+ :param _DatabasePrivilegeList: 数据库表权限
4131
+ :type DatabasePrivilegeList: list of DatabasePrivilegeInfo
4132
+ """
4133
+ self._InstanceId = None
4134
+ self._Cluster = None
4135
+ self._UserName = None
4136
+ self._AllDatabase = None
4137
+ self._GlobalPrivileges = None
4138
+ self._DatabasePrivilegeList = None
4139
+
4140
+ @property
4141
+ def InstanceId(self):
4142
+ return self._InstanceId
4143
+
4144
+ @InstanceId.setter
4145
+ def InstanceId(self, InstanceId):
4146
+ self._InstanceId = InstanceId
4147
+
4148
+ @property
4149
+ def Cluster(self):
4150
+ return self._Cluster
4151
+
4152
+ @Cluster.setter
4153
+ def Cluster(self, Cluster):
4154
+ self._Cluster = Cluster
4155
+
4156
+ @property
4157
+ def UserName(self):
4158
+ return self._UserName
4159
+
4160
+ @UserName.setter
4161
+ def UserName(self, UserName):
4162
+ self._UserName = UserName
4163
+
4164
+ @property
4165
+ def AllDatabase(self):
4166
+ return self._AllDatabase
4167
+
4168
+ @AllDatabase.setter
4169
+ def AllDatabase(self, AllDatabase):
4170
+ self._AllDatabase = AllDatabase
4171
+
4172
+ @property
4173
+ def GlobalPrivileges(self):
4174
+ return self._GlobalPrivileges
4175
+
4176
+ @GlobalPrivileges.setter
4177
+ def GlobalPrivileges(self, GlobalPrivileges):
4178
+ self._GlobalPrivileges = GlobalPrivileges
4179
+
4180
+ @property
4181
+ def DatabasePrivilegeList(self):
4182
+ return self._DatabasePrivilegeList
4183
+
4184
+ @DatabasePrivilegeList.setter
4185
+ def DatabasePrivilegeList(self, DatabasePrivilegeList):
4186
+ self._DatabasePrivilegeList = DatabasePrivilegeList
4187
+
4188
+
4189
+ def _deserialize(self, params):
4190
+ self._InstanceId = params.get("InstanceId")
4191
+ self._Cluster = params.get("Cluster")
4192
+ self._UserName = params.get("UserName")
4193
+ self._AllDatabase = params.get("AllDatabase")
4194
+ self._GlobalPrivileges = params.get("GlobalPrivileges")
4195
+ if params.get("DatabasePrivilegeList") is not None:
4196
+ self._DatabasePrivilegeList = []
4197
+ for item in params.get("DatabasePrivilegeList"):
4198
+ obj = DatabasePrivilegeInfo()
4199
+ obj._deserialize(item)
4200
+ self._DatabasePrivilegeList.append(obj)
4201
+ memeber_set = set(params.keys())
4202
+ for name, value in vars(self).items():
4203
+ property_name = name[1:]
4204
+ if property_name in memeber_set:
4205
+ memeber_set.remove(property_name)
4206
+ if len(memeber_set) > 0:
4207
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4208
+
4209
+
4054
4210
 
4055
4211
  class ModifyUserNewPrivilegeResponse(AbstractModel):
4056
4212
  """ModifyUserNewPrivilege返回参数结构体
@@ -5268,6 +5424,51 @@ class ServiceInfo(AbstractModel):
5268
5424
 
5269
5425
 
5270
5426
 
5427
+ class TablePrivilegeInfo(AbstractModel):
5428
+ """表权限
5429
+
5430
+ """
5431
+
5432
+ def __init__(self):
5433
+ r"""
5434
+ :param _TableName: 表名称
5435
+ :type TableName: str
5436
+ :param _TablePrivileges: 表权限列表 SELECT、INSERT_ALL、ALTER、TRUNCATE、DROP_TABLE 查询、插入、设置、清空表、删除表
5437
+ :type TablePrivileges: list of str
5438
+ """
5439
+ self._TableName = None
5440
+ self._TablePrivileges = None
5441
+
5442
+ @property
5443
+ def TableName(self):
5444
+ return self._TableName
5445
+
5446
+ @TableName.setter
5447
+ def TableName(self, TableName):
5448
+ self._TableName = TableName
5449
+
5450
+ @property
5451
+ def TablePrivileges(self):
5452
+ return self._TablePrivileges
5453
+
5454
+ @TablePrivileges.setter
5455
+ def TablePrivileges(self, TablePrivileges):
5456
+ self._TablePrivileges = TablePrivileges
5457
+
5458
+
5459
+ def _deserialize(self, params):
5460
+ self._TableName = params.get("TableName")
5461
+ self._TablePrivileges = params.get("TablePrivileges")
5462
+ memeber_set = set(params.keys())
5463
+ for name, value in vars(self).items():
5464
+ property_name = name[1:]
5465
+ if property_name in memeber_set:
5466
+ memeber_set.remove(property_name)
5467
+ if len(memeber_set) > 0:
5468
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5469
+
5470
+
5471
+
5271
5472
  class Tag(AbstractModel):
5272
5473
  """标签描述
5273
5474
 
@@ -141,6 +141,29 @@ class CfwClient(AbstractClient):
141
141
  raise TencentCloudSDKException(type(e).__name__, str(e))
142
142
 
143
143
 
144
+ def CreateBlockIgnoreRuleList(self, request):
145
+ """批量添加入侵防御封禁列表、放通列表规则
146
+
147
+ :param request: Request instance for CreateBlockIgnoreRuleList.
148
+ :type request: :class:`tencentcloud.cfw.v20190904.models.CreateBlockIgnoreRuleListRequest`
149
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.CreateBlockIgnoreRuleListResponse`
150
+
151
+ """
152
+ try:
153
+ params = request._serialize()
154
+ headers = request.headers
155
+ body = self.call("CreateBlockIgnoreRuleList", params, headers=headers)
156
+ response = json.loads(body)
157
+ model = models.CreateBlockIgnoreRuleListResponse()
158
+ model._deserialize(response["Response"])
159
+ return model
160
+ except Exception as e:
161
+ if isinstance(e, TencentCloudSDKException):
162
+ raise
163
+ else:
164
+ raise TencentCloudSDKException(type(e).__name__, str(e))
165
+
166
+
144
167
  def CreateChooseVpcs(self, request):
145
168
  """创建、选择vpc
146
169
 
@@ -1248,6 +1271,30 @@ class CfwClient(AbstractClient):
1248
1271
  raise TencentCloudSDKException(type(e).__name__, str(e))
1249
1272
 
1250
1273
 
1274
+ def ModifyEWRuleStatus(self, request):
1275
+ """启用停用VPC间规则或Nat边界规则
1276
+ VPC间规则需指定EdgeId。Nat边界规则需指定地域Region与Direction。
1277
+
1278
+ :param request: Request instance for ModifyEWRuleStatus.
1279
+ :type request: :class:`tencentcloud.cfw.v20190904.models.ModifyEWRuleStatusRequest`
1280
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.ModifyEWRuleStatusResponse`
1281
+
1282
+ """
1283
+ try:
1284
+ params = request._serialize()
1285
+ headers = request.headers
1286
+ body = self.call("ModifyEWRuleStatus", params, headers=headers)
1287
+ response = json.loads(body)
1288
+ model = models.ModifyEWRuleStatusResponse()
1289
+ model._deserialize(response["Response"])
1290
+ return model
1291
+ except Exception as e:
1292
+ if isinstance(e, TencentCloudSDKException):
1293
+ raise
1294
+ else:
1295
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1296
+
1297
+
1251
1298
  def ModifyEnterpriseSecurityDispatchStatus(self, request):
1252
1299
  """修改企业安全组下发状态
1253
1300