tccli 3.0.1245.1__py2.py3-none-any.whl → 3.0.1247.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/billing/v20180709/api.json +55 -1
  4. tccli/services/cam/v20190116/api.json +14 -14
  5. tccli/services/ccc/v20200210/api.json +61 -1
  6. tccli/services/cdb/cdb_client.py +53 -0
  7. tccli/services/cdb/v20170320/api.json +72 -0
  8. tccli/services/cdb/v20170320/examples.json +8 -0
  9. tccli/services/cls/v20201016/api.json +3 -3
  10. tccli/services/dbbrain/v20210527/api.json +14 -5
  11. tccli/services/dbdc/v20201029/api.json +72 -72
  12. tccli/services/dcdb/v20180411/api.json +3 -3
  13. tccli/services/dcdb/v20180411/examples.json +1 -1
  14. tccli/services/ecm/v20190719/api.json +17 -11
  15. tccli/services/ecm/v20190719/examples.json +1 -1
  16. tccli/services/ess/v20201111/api.json +1 -1
  17. tccli/services/essbasic/v20210526/api.json +1 -1
  18. tccli/services/hunyuan/v20230901/api.json +4 -4
  19. tccli/services/iotexplorer/iotexplorer_client.py +216 -4
  20. tccli/services/iotexplorer/v20190423/api.json +146 -1
  21. tccli/services/iotexplorer/v20190423/examples.json +34 -2
  22. tccli/services/lcic/v20220817/api.json +110 -111
  23. tccli/services/lcic/v20220817/examples.json +40 -40
  24. tccli/services/lkeap/__init__.py +4 -0
  25. tccli/services/lkeap/lkeap_client.py +1479 -0
  26. tccli/services/lkeap/v20240522/api.json +1973 -0
  27. tccli/services/lkeap/v20240522/examples.json +223 -0
  28. tccli/services/mna/v20210119/api.json +7 -7
  29. tccli/services/mna/v20210119/examples.json +9 -9
  30. tccli/services/mongodb/v20180408/api.json +153 -112
  31. tccli/services/mongodb/v20180408/examples.json +2 -2
  32. tccli/services/mongodb/v20190725/api.json +202 -167
  33. tccli/services/mongodb/v20190725/examples.json +8 -8
  34. tccli/services/monitor/v20180724/api.json +19 -0
  35. tccli/services/ocr/v20181119/api.json +10 -10
  36. tccli/services/ocr/v20181119/examples.json +15 -15
  37. tccli/services/sqlserver/v20180328/api.json +43 -5
  38. tccli/services/sqlserver/v20180328/examples.json +2 -2
  39. tccli/services/ssl/v20191205/api.json +1 -1
  40. tccli/services/tcb/v20180608/api.json +281 -258
  41. tccli/services/tcb/v20180608/examples.json +18 -18
  42. tccli/services/tcbr/v20220217/api.json +46 -13
  43. tccli/services/tcbr/v20220217/examples.json +2 -8
  44. tccli/services/tcr/v20190924/api.json +125 -121
  45. tccli/services/tcr/v20190924/examples.json +53 -53
  46. tccli/services/tdmq/tdmq_client.py +57 -4
  47. tccli/services/tdmq/v20200217/api.json +107 -0
  48. tccli/services/tdmq/v20200217/examples.json +8 -0
  49. tccli/services/trtc/v20190722/api.json +33 -33
  50. tccli/services/vdb/v20230616/api.json +2 -2
  51. tccli/services/vpc/v20170312/api.json +38 -25
  52. tccli/services/vpc/v20170312/examples.json +29 -7
  53. tccli/services/wedata/v20210820/api.json +34 -1
  54. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/METADATA +2 -2
  55. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/RECORD +58 -54
  56. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/WHEEL +0 -0
  57. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/entry_points.txt +0 -0
  58. {tccli-3.0.1245.1.dist-info → tccli-3.0.1247.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1245.1'
1
+ __version__ = '3.0.1247.1'
@@ -469,6 +469,9 @@ SERVICE_VERSIONS = {
469
469
  "lke": [
470
470
  "2023-11-30"
471
471
  ],
472
+ "lkeap": [
473
+ "2024-05-22"
474
+ ],
472
475
  "lowcode": [
473
476
  "2021-01-08"
474
477
  ],
@@ -13456,6 +13456,60 @@
13456
13456
  "name": "VoucherSubType",
13457
13457
  "required": false,
13458
13458
  "type": "string"
13459
+ },
13460
+ {
13461
+ "disabled": false,
13462
+ "document": "券有效时间开始时间",
13463
+ "example": "2021-01-01",
13464
+ "member": "string",
13465
+ "name": "StartTimeFrom",
13466
+ "required": false,
13467
+ "type": "string"
13468
+ },
13469
+ {
13470
+ "disabled": false,
13471
+ "document": "券有效时间结束时间",
13472
+ "example": "2021-01-01",
13473
+ "member": "string",
13474
+ "name": "StartTimeTo",
13475
+ "required": false,
13476
+ "type": "string"
13477
+ },
13478
+ {
13479
+ "disabled": false,
13480
+ "document": "券失效时间开始时间",
13481
+ "example": "2021-01-01",
13482
+ "member": "string",
13483
+ "name": "EndTimeFrom",
13484
+ "required": false,
13485
+ "type": "string"
13486
+ },
13487
+ {
13488
+ "disabled": false,
13489
+ "document": "券失效时间结束时间",
13490
+ "example": "2021-01-01",
13491
+ "member": "string",
13492
+ "name": "EndTimeTo",
13493
+ "required": false,
13494
+ "type": "string"
13495
+ },
13496
+ {
13497
+ "disabled": false,
13498
+ "document": "发券时间开始时间",
13499
+ "example": "2021-01-01",
13500
+ "member": "string",
13501
+ "name": "CreateTimeFrom",
13502
+ "required": false,
13503
+ "type": "string"
13504
+ },
13505
+ {
13506
+ "disabled": false,
13507
+ "document": "发券时间结束时间",
13508
+ "example": "2021-01-01",
13509
+ "member": "string",
13510
+ "name": "CreateTimeTo",
13511
+ "required": false,
13512
+ "type": "string"
13459
13513
  }
13460
13514
  ],
13461
13515
  "type": "object"
@@ -13486,7 +13540,7 @@
13486
13540
  {
13487
13541
  "disabled": false,
13488
13542
  "document": "代金券相关信息",
13489
- "example": "{\"Status\":\"used\",\"PayScene\":\"all\",\"EndTime\":\"2024-04-22 23:59:59\",\"NominalValue\":2000000,\"VoucherId\":\"JTZFEPHBZMRDH33MM45JGU\",\"BeginTime\":\"2022-04-22 00:00:00\",\"ExcludedProducts\":[{\"PayMode\":\"*\",\"GoodsName\":\"Cloud_Market-One_Time\"},{\"PayMode\":\"*\",\"GoodsName\":\"Customer product training\"},{\"PayMode\":\"*\",\"GoodsName\":\"Cloud_Market-Package\"},{\"PayMode\":\"*\",\"GoodsName\":\"Cloud_Market-Package_Cycle\"},{\"PayMode\":\"*\",\"GoodsName\":\"Saving Plan\"},{\"PayMode\":\"*\",\"GoodsName\":\"marketplace image\"},{\"PayMode\":\"*\",\"GoodsName\":\"market\"}],\"OwnerUin\":\"909619400\",\"Balance\":0,\"PayMode\":\"*\",\"ApplicableProducts\":{\"PayMode\":\"*\",\"GoodsName\":\"Common for all products\"}}",
13543
+ "example": "",
13490
13544
  "member": "VoucherInfos",
13491
13545
  "name": "VoucherInfos",
13492
13546
  "output_required": true,
@@ -3013,17 +3013,17 @@
3013
3013
  "example": "11",
3014
3014
  "member": "uint64",
3015
3015
  "name": "ProviderType",
3016
- "required": true,
3016
+ "output_required": true,
3017
3017
  "type": "int",
3018
3018
  "value_allowed_null": false
3019
3019
  },
3020
3020
  {
3021
3021
  "disabled": false,
3022
3022
  "document": "身份提供商URL",
3023
- "example": "11",
3023
+ "example": "http://test-idp.com",
3024
3024
  "member": "string",
3025
3025
  "name": "IdentityUrl",
3026
- "required": true,
3026
+ "output_required": true,
3027
3027
  "type": "string",
3028
3028
  "value_allowed_null": false
3029
3029
  },
@@ -3033,7 +3033,7 @@
3033
3033
  "example": "无",
3034
3034
  "member": "string",
3035
3035
  "name": "IdentityKey",
3036
- "required": true,
3036
+ "output_required": true,
3037
3037
  "type": "string",
3038
3038
  "value_allowed_null": false
3039
3039
  },
@@ -3043,17 +3043,17 @@
3043
3043
  "example": "无",
3044
3044
  "member": "string",
3045
3045
  "name": "ClientId",
3046
- "required": true,
3046
+ "output_required": true,
3047
3047
  "type": "string",
3048
3048
  "value_allowed_null": false
3049
3049
  },
3050
3050
  {
3051
3051
  "disabled": false,
3052
3052
  "document": "状态:0:未设置,11:已开启,2:已禁用",
3053
- "example": "1",
3053
+ "example": "11",
3054
3054
  "member": "uint64",
3055
3055
  "name": "Status",
3056
- "required": true,
3056
+ "output_required": true,
3057
3057
  "type": "int",
3058
3058
  "value_allowed_null": false
3059
3059
  },
@@ -3063,7 +3063,7 @@
3063
3063
  "example": "无",
3064
3064
  "member": "string",
3065
3065
  "name": "AuthorizationEndpoint",
3066
- "required": true,
3066
+ "output_required": true,
3067
3067
  "type": "string",
3068
3068
  "value_allowed_null": false
3069
3069
  },
@@ -3073,7 +3073,7 @@
3073
3073
  "example": "无",
3074
3074
  "member": "string",
3075
3075
  "name": "Scope",
3076
- "required": true,
3076
+ "output_required": true,
3077
3077
  "type": "list",
3078
3078
  "value_allowed_null": false
3079
3079
  },
@@ -3083,7 +3083,7 @@
3083
3083
  "example": "无",
3084
3084
  "member": "string",
3085
3085
  "name": "ResponseType",
3086
- "required": true,
3086
+ "output_required": true,
3087
3087
  "type": "string",
3088
3088
  "value_allowed_null": false
3089
3089
  },
@@ -3093,7 +3093,7 @@
3093
3093
  "example": "无",
3094
3094
  "member": "string",
3095
3095
  "name": "ResponseMode",
3096
- "required": true,
3096
+ "output_required": true,
3097
3097
  "type": "string",
3098
3098
  "value_allowed_null": false
3099
3099
  },
@@ -3103,7 +3103,7 @@
3103
3103
  "example": "无",
3104
3104
  "member": "string",
3105
3105
  "name": "MappingFiled",
3106
- "required": true,
3106
+ "output_required": true,
3107
3107
  "type": "string",
3108
3108
  "value_allowed_null": false
3109
3109
  },
@@ -3113,7 +3113,7 @@
3113
3113
  "example": "无",
3114
3114
  "member": "string",
3115
3115
  "name": "Description",
3116
- "required": true,
3116
+ "output_required": true,
3117
3117
  "type": "string",
3118
3118
  "value_allowed_null": false
3119
3119
  },
@@ -3146,7 +3146,7 @@
3146
3146
  },
3147
3147
  {
3148
3148
  "disabled": false,
3149
- "document": "状态:0:未设置,1:已开启,2:已禁用",
3149
+ "document": "状态:0:未设置,11:已开启,2:已禁用",
3150
3150
  "example": "11",
3151
3151
  "member": "uint64",
3152
3152
  "name": "Status",
@@ -442,6 +442,39 @@
442
442
  "serviceShortName": "ccc"
443
443
  },
444
444
  "objects": {
445
+ "AITransferItem": {
446
+ "document": "AI转人工配置项",
447
+ "members": [
448
+ {
449
+ "disabled": false,
450
+ "document": "转人工的function calling 名称",
451
+ "example": "transfer_to_human",
452
+ "member": "string",
453
+ "name": "TransferFunctionName",
454
+ "required": true,
455
+ "type": "string"
456
+ },
457
+ {
458
+ "disabled": false,
459
+ "document": "TransferFunctionEnable为true时生效;transfer_to_human function calling的desc,默认为 \"Transfer to human when the user has to transfer to human (like says transfer to human) or you are instructed to do so.\"",
460
+ "example": "无",
461
+ "member": "string",
462
+ "name": "TransferFunctionDesc",
463
+ "required": true,
464
+ "type": "string"
465
+ },
466
+ {
467
+ "disabled": false,
468
+ "document": "转人工的技能组ID",
469
+ "example": "1",
470
+ "member": "uint64",
471
+ "name": "TransferSkillGroupId",
472
+ "required": true,
473
+ "type": "int"
474
+ }
475
+ ],
476
+ "usage": "in"
477
+ },
445
478
  "AbortPredictiveDialingCampaignRequest": {
446
479
  "document": "AbortPredictiveDialingCampaign请求参数结构体",
447
480
  "members": [
@@ -1674,6 +1707,24 @@
1674
1707
  "required": false,
1675
1708
  "type": "string"
1676
1709
  },
1710
+ {
1711
+ "disabled": false,
1712
+ "document": "模型是否支持(或者开启)transfer_to_human function calling",
1713
+ "example": "true",
1714
+ "member": "bool",
1715
+ "name": "TransferFunctionEnable",
1716
+ "required": false,
1717
+ "type": "bool"
1718
+ },
1719
+ {
1720
+ "disabled": false,
1721
+ "document": "TransferFunctionEnable为true的时候生效: 转人工配置",
1722
+ "example": "无",
1723
+ "member": "AITransferItem",
1724
+ "name": "TransferItems",
1725
+ "required": false,
1726
+ "type": "list"
1727
+ },
1677
1728
  {
1678
1729
  "disabled": false,
1679
1730
  "document": "用户多久没说话提示时长,最小10秒,默认10秒",
@@ -1704,11 +1755,20 @@
1704
1755
  {
1705
1756
  "disabled": false,
1706
1757
  "document": "<p>和VoiceType字段需要选填一个,这里是使用自己自定义的TTS,VoiceType是系统内置的一些音色</p>\n<ul>\n<li>Tencent TTS<br>\n配置请参考<a href=\"https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823\" target=\"_blank\">腾讯云TTS文档链接</a></li>\n</ul>\n<div><div class=\"v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class\"><pre class=\"v-md-prism-\"><code>{ \n &quot;TTSType&quot;: &quot;tencent&quot;, // String TTS类型, 目前支持&quot;tencent&quot; 和 “minixmax”, 其他的厂商支持中\n   &quot;AppId&quot;: &quot;您的应用ID&quot;, // String 必填\n   &quot;SecretId&quot;: &quot;您的密钥ID&quot;, // String 必填\n   &quot;SecretKey&quot;: &quot;您的密钥Key&quot;, // String 必填\n   &quot;VoiceType&quot;: 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见语音合成计费概述。完整的音色 ID 列表请参见语音合成音色列表。\n   &quot;Speed&quot;: 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 语速转换\n   &quot;Volume&quot;: 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。\n   &quot;PrimaryLanguage&quot;: 1, // Integer 可选 主要语言 1-中文(默认) 2-英文 3-日文\n &quot;FastVoiceType&quot;: &quot;xxxx&quot; // 可选参数, 快速声音复刻的参数 \n  }\n</code></pre>\n\n </div></div><ul>\n<li>Minimax TTS<br>\n配置请参考<a href=\"https://platform.minimaxi.com/document/T2A%20V2?key=66719005a427f0c8a5701643\" target=\"_blank\">Minimax TTS文档链接</a>。注意Minimax TTS存在频率限制,超频可能会导致回答卡顿,<a href=\"https://platform.minimaxi.com/document/Rate%20limits?key=66b19417290299a26b234572\" target=\"_blank\">Minimax TTS频率限制相关文档链接</a>。</li>\n</ul>\n<div><div class=\"v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class\"><pre class=\"v-md-prism-\"><code>{\n &quot;TTSType&quot;: &quot;minimax&quot;, // String TTS类型, \n &quot;Model&quot;: &quot;speech-01-turbo&quot;,\n &quot;APIUrl&quot;: &quot;https://api.minimax.chat/v1/t2a_v2&quot;,\n &quot;APIKey&quot;: &quot;eyxxxx&quot;,\n &quot;GroupId&quot;: &quot;181000000000000&quot;,\n &quot;VoiceType&quot;:&quot;female-tianmei-jingpin&quot;,\n &quot;Speed&quot;: 1.2\n}\n</code></pre>\n</div></div><ul>\n<li>火山 TTS</li>\n</ul>\n<p>配置音色类型参考<a href=\"https://www.volcengine.com/docs/6561/162929\" target=\"_blank\">火山TTS文档链接</a><br>\n语音合成音色列表–语音技术-火山引擎<br>\n大模型语音合成音色列表–语音技术-火山引擎</p>\n<div><div class=\"v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class\"><pre class=\"v-md-prism-\"><code>{\n &quot;TTSType&quot;: &quot;volcengine&quot;, // 必填:String TTS类型\n &quot;AppId&quot; : &quot;xxxxxxxx&quot;, // 必填:String 火山引擎分配的Appid\n &quot;Token&quot; : &quot;TY9d4sQXHxxxxxxx&quot;, // 必填: String类型 火山引擎的访问token\n &quot;Speed&quot; : 1.0, // 可选参数 语速,默认为1.0\n &quot;Volume&quot;: 1.0, // 可选参数, 音量大小, 默认为1.0\n &quot;Cluster&quot; : &quot;volcano_tts&quot;, // 可选参数,业务集群, 默认是 volcano_tts\n &quot;VoiceType&quot; : &quot;zh_male_aojiaobazong_moon_bigtts&quot; // 音色类型, 默认为大模型语音合成的音色。 如果使用普通语音合成,则需要填写对应的音色类型。 音色类型填写错误会导致没有声音。\n}\n</code></pre>\n\n</div></div><ul>\n<li>Azure TTS<br>\n配置请参考<a href=\"https://docs.azure.cn/zh-cn/ai-services/speech-service/speech-synthesis-markup-voice\" target=\"_blank\">AzureTTS文档链接</a></li>\n</ul>\n<div><div class=\"v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class\"><pre class=\"v-md-prism-\"><code>{\n &quot;TTSType&quot;: &quot;azure&quot;, // 必填:String TTS类型\n &quot;SubscriptionKey&quot;: &quot;xxxxxxxx&quot;, // 必填:String 订阅的Key\n &quot;Region&quot;: &quot;chinanorth3&quot;, // 必填:String 订阅的地区\n &quot;VoiceName&quot;: &quot;zh-CN-XiaoxiaoNeural&quot;, // 必填:String 音色名必填\n &quot;Language&quot;: &quot;zh-CN&quot;, // 必填:String 合成的语言 \n &quot;Rate&quot;: 1 // 选填:float 语速 0.5~2 默认为 1\n}\n</code></pre>\n\n</div></div><ul>\n<li>自定义</li>\n</ul>\n<p>TTS<br>\n具体协议规范请参考<a href=\"https://doc.weixin.qq.com/doc/w3_ANQAiAbdAFwHILbJBmtSqSbV1WZ3L?scode=AJEAIQdfAAo5a1xajYANQAiAbdAFw\" target=\"_blank\">腾讯文档</a></p>\n<div><div class=\"v-md-pre-wrapper copy-code-mode v-md-pre-wrapper- extra-class\"><pre class=\"v-md-prism-\"><code>{\n &quot;TTSType&quot;: &quot;custom&quot;, // String 必填\n &quot;APIKey&quot;: &quot;ApiKey&quot;, // String 必填 用来鉴权\n &quot;APIUrl&quot;: &quot;http://0.0.0.0:8080/stream-audio&quot; // String,必填,TTS API URL\n &quot;AudioFormat&quot;: &quot;wav&quot;, // String, 非必填,期望输出的音频格式,如mp3, ogg_opus,pcm,wav,默认为 wav,目前只支持pcm和wav,\n &quot;SampleRate&quot;: 16000, // Integer,非必填,音频采样率,默认为16000(16k),推荐值为16000\n &quot;AudioChannel&quot;: 1, // Integer,非必填,音频通道数,取值:1 或 2 默认为1 \n}\n</code></pre>\n\n</div></div>",
1707
- "example": "{ \t\"TTSType\": \"azure\", \t\"SubscriptionKey\": \"xxxxxxxx\", \t\"Region\": \"chinanorth3\", \t\"VoiceName\": \"zh-CN-XiaoxiaoNeural\", \t\"Language\": \"zh-CN\", \t\"Rate\": 1 }",
1758
+ "example": "{ \"TTSType\": \"azure\", \"SubscriptionKey\": \"xx\", \"Region\": \"chinanorth3\", \"VoiceName\": \"zh-CN-\", \"Language\": \"zh-CN\", \"Rate\": 1 }",
1708
1759
  "member": "string",
1709
1760
  "name": "CustomTTSConfig",
1710
1761
  "required": false,
1711
1762
  "type": "string"
1763
+ },
1764
+ {
1765
+ "disabled": false,
1766
+ "document": "提示词变量",
1767
+ "example": "[{\"Key\":\"foo\",\"Value\":\"bar\"}]",
1768
+ "member": "Variable",
1769
+ "name": "PromptVariables",
1770
+ "required": false,
1771
+ "type": "list"
1712
1772
  }
1713
1773
  ],
1714
1774
  "type": "object"
@@ -173,6 +173,58 @@ def doCreateAuditPolicy(args, parsed_globals):
173
173
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
174
 
175
175
 
176
+ def doDescribeTableColumns(args, parsed_globals):
177
+ g_param = parse_global_arg(parsed_globals)
178
+
179
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
180
+ cred = credential.CVMRoleCredential()
181
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
182
+ cred = credential.STSAssumeRoleCredential(
183
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
184
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
185
+ )
186
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
187
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
188
+ else:
189
+ cred = credential.Credential(
190
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
191
+ )
192
+ http_profile = HttpProfile(
193
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
194
+ reqMethod="POST",
195
+ endpoint=g_param[OptionsDefine.Endpoint],
196
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
197
+ )
198
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
199
+ if g_param[OptionsDefine.Language]:
200
+ profile.language = g_param[OptionsDefine.Language]
201
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
202
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
203
+ client._sdkVersion += ("_CLI_" + __version__)
204
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
+ model = models.DescribeTableColumnsRequest()
206
+ model.from_json_string(json.dumps(args))
207
+ start_time = time.time()
208
+ while True:
209
+ rsp = client.DescribeTableColumns(model)
210
+ result = rsp.to_json_string()
211
+ try:
212
+ json_obj = json.loads(result)
213
+ except TypeError as e:
214
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
215
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
216
+ break
217
+ cur_time = time.time()
218
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
219
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
220
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
221
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
222
+ else:
223
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
224
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
225
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
+
227
+
176
228
  def doDescribeDBInstanceLogToCLS(args, parsed_globals):
177
229
  g_param = parse_global_arg(parsed_globals)
178
230
 
@@ -8923,6 +8975,7 @@ ACTION_MAP = {
8923
8975
  "DescribeDBInstanceGTID": doDescribeDBInstanceGTID,
8924
8976
  "CreateRoInstanceIp": doCreateRoInstanceIp,
8925
8977
  "CreateAuditPolicy": doCreateAuditPolicy,
8978
+ "DescribeTableColumns": doDescribeTableColumns,
8926
8979
  "DescribeDBInstanceLogToCLS": doDescribeDBInstanceLogToCLS,
8927
8980
  "DescribeDBFeatures": doDescribeDBFeatures,
8928
8981
  "CreateAuditRuleTemplate": doCreateAuditRuleTemplate,
@@ -721,6 +721,13 @@
721
721
  "output": "DescribeSupportedPrivilegesResponse",
722
722
  "status": "online"
723
723
  },
724
+ "DescribeTableColumns": {
725
+ "document": "本接口(DescribeTableColumns)用于查询云数据库实例的指定数据库表的列信息,仅支持主实例和灾备实例。",
726
+ "input": "DescribeTableColumnsRequest",
727
+ "name": "查询云数据库实例的列",
728
+ "output": "DescribeTableColumnsResponse",
729
+ "status": "online"
730
+ },
724
731
  "DescribeTables": {
725
732
  "document": "本接口(DescribeTables)用于查询云数据库实例的数据库表信息,仅支持主实例和灾备实例,不支持只读实例。",
726
733
  "input": "DescribeTablesRequest",
@@ -12772,6 +12779,71 @@
12772
12779
  ],
12773
12780
  "type": "object"
12774
12781
  },
12782
+ "DescribeTableColumnsRequest": {
12783
+ "document": "DescribeTableColumns请求参数结构体",
12784
+ "members": [
12785
+ {
12786
+ "disabled": false,
12787
+ "document": "实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。",
12788
+ "example": "cdb-c1nl9rpv",
12789
+ "member": "string",
12790
+ "name": "InstanceId",
12791
+ "required": true,
12792
+ "type": "string"
12793
+ },
12794
+ {
12795
+ "disabled": false,
12796
+ "document": "数据库名称,可使用[查询数据库](https://cloud.tencent.com/document/api/253/7167)接口获得。",
12797
+ "example": "test_data_base",
12798
+ "member": "string",
12799
+ "name": "Database",
12800
+ "required": true,
12801
+ "type": "string"
12802
+ },
12803
+ {
12804
+ "disabled": false,
12805
+ "document": "数据库中的表的名称。",
12806
+ "example": "test_table",
12807
+ "member": "string",
12808
+ "name": "Table",
12809
+ "required": true,
12810
+ "type": "string"
12811
+ }
12812
+ ],
12813
+ "type": "object"
12814
+ },
12815
+ "DescribeTableColumnsResponse": {
12816
+ "document": "DescribeTableColumns返回参数结构体",
12817
+ "members": [
12818
+ {
12819
+ "disabled": false,
12820
+ "document": "符合查询条件的实例总数。",
12821
+ "example": "10",
12822
+ "member": "int64",
12823
+ "name": "TotalCount",
12824
+ "required": true,
12825
+ "type": "int",
12826
+ "value_allowed_null": false
12827
+ },
12828
+ {
12829
+ "disabled": false,
12830
+ "document": "返回的数据库列信息。",
12831
+ "example": "[ \"TABLE_CATALOG\", \"TABLE_SCHEMA\", ",
12832
+ "member": "string",
12833
+ "name": "Items",
12834
+ "required": true,
12835
+ "type": "list",
12836
+ "value_allowed_null": false
12837
+ },
12838
+ {
12839
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12840
+ "member": "string",
12841
+ "name": "RequestId",
12842
+ "type": "string"
12843
+ }
12844
+ ],
12845
+ "type": "object"
12846
+ },
12775
12847
  "DescribeTablesRequest": {
12776
12848
  "document": "DescribeTables请求参数结构体",
12777
12849
  "members": [
@@ -866,6 +866,14 @@
866
866
  "title": "查询云数据库实例支持的权限信息"
867
867
  }
868
868
  ],
869
+ "DescribeTableColumns": [
870
+ {
871
+ "document": "",
872
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableColumns\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-c1nl9rpv\",\n \"Table\": \"COLUMNS\",\n \"Database\": \"information_schema\"\n}",
873
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"TotalCount\": 20,\n \"Items\": [\n \"TABLE_CATALOG\",\n \"TABLE_SCHEMA\",\n \"TABLE_NAME\",\n \"COLUMN_NAME\",\n \"ORDINAL_POSITION\",\n \"COLUMN_DEFAULT\",\n \"IS_NULLABLE\",\n \"DATA_TYPE\",\n \"CHARACTER_MAXIMUM_LENGTH\",\n \"CHARACTER_OCTET_LENGTH\",\n \"NUMERIC_PRECISION\",\n \"NUMERIC_SCALE\",\n \"DATETIME_PRECISION\",\n \"CHARACTER_SET_NAME\",\n \"COLLATION_NAME\",\n \"COLUMN_TYPE\",\n \"COLUMN_KEY\",\n \"EXTRA\",\n \"PRIVILEGES\",\n \"COLUMN_COMMENT\"\n ]\n }\n}",
874
+ "title": "查询云数据库实例的列"
875
+ }
876
+ ],
869
877
  "DescribeTables": [
870
878
  {
871
879
  "document": "",
@@ -2735,7 +2735,7 @@
2735
2735
  {
2736
2736
  "disabled": false,
2737
2737
  "document": "允许访问的资源列表,目前仅支持一个Resource",
2738
- "example": "当Type为1时:['qcs::cls::uin/100001127589:dashboard/dashboard-1223fa03--44f9-f118-69a8-21aa33ea5aa1']; 当Type为2时:['qcs::cls:ap-guangzhou:uin/10000000001:topic/c1306921-2180-3e45-9azb-31d12217871e6']",
2738
+ "example": "当Type为1时:['qcs::cls::uin/1000:dashboard/dashboard-xx']; 当Type为2时:['qcs::cls:ap-guangzhou:uin/10000:topic/cxxx']",
2739
2739
  "member": "string",
2740
2740
  "name": "Resources",
2741
2741
  "output_required": true,
@@ -2756,7 +2756,7 @@
2756
2756
  },
2757
2757
  {
2758
2758
  "disabled": false,
2759
- "document": "验证码\n注意:此字段可能返回 null,表示取不到有效值。",
2759
+ "document": "分享链接加密访问验证码。支持0-9和a-z(不区分大小写)在内的6个字符,可为空,代表免验证码访问\n注意:此字段可能返回 null,表示取不到有效值。",
2760
2760
  "example": "lEC0V0",
2761
2761
  "member": "string",
2762
2762
  "name": "VerifyCode",
@@ -2862,7 +2862,7 @@
2862
2862
  {
2863
2863
  "disabled": false,
2864
2864
  "document": "值\n注意:此字段可能返回 null,表示取不到有效值。",
2865
- "example": "test",
2865
+ "example": "* | select *",
2866
2866
  "member": "string",
2867
2867
  "name": "Value",
2868
2868
  "output_required": false,
@@ -4363,7 +4363,7 @@
4363
4363
  {
4364
4364
  "disabled": false,
4365
4365
  "document": "实例ID。",
4366
- "example": "cdb-c1nl9rpv",
4366
+ "example": "crs-c1nl9rpv",
4367
4367
  "member": "string",
4368
4368
  "name": "InstanceId",
4369
4369
  "required": true,
@@ -4381,7 +4381,7 @@
4381
4381
  {
4382
4382
  "disabled": false,
4383
4383
  "document": "服务产品类型,支持值包括 \"redis\" - 云数据库 Redis。",
4384
- "example": "mysql",
4384
+ "example": "redis",
4385
4385
  "member": "string",
4386
4386
  "name": "Product",
4387
4387
  "required": true,
@@ -4389,12 +4389,21 @@
4389
4389
  },
4390
4390
  {
4391
4391
  "disabled": false,
4392
- "document": "查询数目,默认为20,最大值为100。",
4392
+ "document": "查询数目,默认为20,最大值为500。",
4393
4393
  "example": "20",
4394
4394
  "member": "int64",
4395
4395
  "name": "Limit",
4396
4396
  "required": false,
4397
4397
  "type": "int"
4398
+ },
4399
+ {
4400
+ "disabled": false,
4401
+ "document": "分片ID数组。",
4402
+ "example": "[1]",
4403
+ "member": "int64",
4404
+ "name": "ShardIds",
4405
+ "required": false,
4406
+ "type": "list"
4398
4407
  }
4399
4408
  ],
4400
4409
  "type": "object"
@@ -4408,7 +4417,7 @@
4408
4417
  "example": "无",
4409
4418
  "member": "RedisPreKeySpaceData",
4410
4419
  "name": "Items",
4411
- "required": true,
4420
+ "output_required": true,
4412
4421
  "type": "list",
4413
4422
  "value_allowed_null": false
4414
4423
  },
@@ -4418,7 +4427,7 @@
4418
4427
  "example": "1618890295",
4419
4428
  "member": "int64",
4420
4429
  "name": "Timestamp",
4421
- "required": true,
4430
+ "output_required": true,
4422
4431
  "type": "int",
4423
4432
  "value_allowed_null": false
4424
4433
  },