tccli 3.0.1289.1__py2.py3-none-any.whl → 3.0.1290.1__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.
- tccli/__init__.py +1 -1
- tccli/services/billing/v20180709/api.json +16 -16
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +64 -0
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/clb/v20180317/api.json +19 -14
- tccli/services/cls/v20201016/api.json +230 -198
- tccli/services/cls/v20201016/examples.json +2 -2
- tccli/services/cynosdb/v20190107/api.json +2 -2
- tccli/services/dbbrain/v20191016/api.json +24 -21
- tccli/services/dbbrain/v20210527/api.json +22 -22
- tccli/services/domain/v20180808/api.json +8 -8
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/fmu/v20191213/api.json +2 -2
- tccli/services/goosefs/v20220519/api.json +2 -2
- tccli/services/gwlb/v20240906/api.json +1 -1
- tccli/services/iotcloud/v20210408/api.json +66 -66
- tccli/services/iotcloud/v20210408/examples.json +13 -13
- tccli/services/lighthouse/v20200324/api.json +8 -8
- tccli/services/lke/v20231130/api.json +10 -0
- tccli/services/lowcode/v20210108/api.json +2 -2
- tccli/services/monitor/monitor_client.py +53 -0
- tccli/services/monitor/v20180724/api.json +144 -0
- tccli/services/monitor/v20180724/examples.json +8 -0
- tccli/services/mps/mps_client.py +501 -24
- tccli/services/mps/v20190612/api.json +2067 -278
- tccli/services/mps/v20190612/examples.json +72 -0
- tccli/services/mqtt/v20240516/api.json +1 -1
- tccli/services/mqtt/v20240516/examples.json +1 -1
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +34 -0
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/tcb/tcb_client.py +53 -0
- tccli/services/tcb/v20180608/api.json +220 -153
- tccli/services/tcb/v20180608/examples.json +8 -0
- tccli/services/tcbr/v20220217/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +379 -285
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +54 -0
- tccli/services/weilingwith/v20230427/api.json +997 -997
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/RECORD +47 -47
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/license_files/LICENSE +0 -0
@@ -80,6 +80,14 @@
|
|
80
80
|
"title": "创建转动图模板"
|
81
81
|
}
|
82
82
|
],
|
83
|
+
"CreateAsrHotwords": [
|
84
|
+
{
|
85
|
+
"document": "",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAsrHotwords\n<公共请求参数>\n\n{\n \"Type\": 0,\n \"Name\": \"HotwordsNameExample\",\n \"Content\": \"腾讯云|10,语音识别|5,ASR|10\"\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"HotwordsId\": \"hwd-aexxxxxxxxxxxxxx1481\",\n \"RequestId\": \"1ebaa15b-14b5-480c-9904-ec90c536e701\"\n }\n}",
|
88
|
+
"title": "CreateAsrHotwordsExample"
|
89
|
+
}
|
90
|
+
],
|
83
91
|
"CreateContentReviewTemplate": [
|
84
92
|
{
|
85
93
|
"document": "创建一个自定义 AI 内容审核模板,开启画面内容令人反感的信息任务,同时开启画面令人不安全的信息及画面令人不适宜的信息任务,判定为违规的分数阈值及判定为需要人工识别的分数阈值都为默认,且不指定过滤标签。",
|
@@ -160,6 +168,14 @@
|
|
160
168
|
"title": "设置转码规则"
|
161
169
|
}
|
162
170
|
],
|
171
|
+
"CreateSmartSubtitleTemplate": [
|
172
|
+
{
|
173
|
+
"document": "",
|
174
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSmartSubtitleTemplate\n<公共请求参数>\n\n{\n \"Name\": \"示例\",\n \"VideoSrcLanguage\": \"zh\",\n \"SubtitleType\": 0\n}",
|
175
|
+
"output": "{\n \"Response\": {\n \"Definition\": 202281,\n \"RequestId\": \"42dc919b-2ec7-412c-85f0-88f003813d04\"\n }\n}",
|
176
|
+
"title": "创建模板"
|
177
|
+
}
|
178
|
+
],
|
163
179
|
"CreateSnapshotByTimeOffsetTemplate": [
|
164
180
|
{
|
165
181
|
"document": "",
|
@@ -312,6 +328,14 @@
|
|
312
328
|
"title": "删除转动图模板"
|
313
329
|
}
|
314
330
|
],
|
331
|
+
"DeleteAsrHotwords": [
|
332
|
+
{
|
333
|
+
"document": "",
|
334
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAsrHotwords\n<公共请求参数>\n\n{\n \"HotwordsId\": \"hwd-aexxxxxxxxxxxxxx1481\"\n}",
|
335
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"b3529414-e832-400d-9629-d9998a4e170c\"\n }\n}",
|
336
|
+
"title": "DeleteAsrHotwords"
|
337
|
+
}
|
338
|
+
],
|
315
339
|
"DeleteContentReviewTemplate": [
|
316
340
|
{
|
317
341
|
"document": "删除用户自定义 AI 内容审核模板。",
|
@@ -368,6 +392,14 @@
|
|
368
392
|
"title": "示例"
|
369
393
|
}
|
370
394
|
],
|
395
|
+
"DeleteSmartSubtitleTemplate": [
|
396
|
+
{
|
397
|
+
"document": "删除用户自定义智能字幕模板。",
|
398
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteSmartSubtitleTemplate\n<公共请求参数>\n\n{\n \"Definition\": 202281\n}",
|
399
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a7922ab4-645f-413a-abd9-c0dfba945e3c\"\n }\n}",
|
400
|
+
"title": "删除智能字幕模板"
|
401
|
+
}
|
402
|
+
],
|
371
403
|
"DeleteSnapshotByTimeOffsetTemplate": [
|
372
404
|
{
|
373
405
|
"document": "",
|
@@ -490,6 +522,22 @@
|
|
490
522
|
"title": "获取转动图模板列表"
|
491
523
|
}
|
492
524
|
],
|
525
|
+
"DescribeAsrHotwords": [
|
526
|
+
{
|
527
|
+
"document": "",
|
528
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAsrHotwords\n<公共请求参数>\n\n{\n \"HotwordsId\": \"hwd-aexxxxxxxxxxxxxx1481\"\n}",
|
529
|
+
"output": "{\n \"Response\": {\n \"Content\": \"腾讯云|10,语音识别|5,ASR|10\",\n \"CreateTime\": \"2025-03-19T03:29:06Z\",\n \"FileName\": \"\",\n \"HotWords\": [\n {\n \"Id\": 1,\n \"Text\": \"腾讯云\",\n \"Weight\": 10\n },\n {\n \"Id\": 2,\n \"Text\": \"语音识别\",\n \"Weight\": 5\n },\n {\n \"Id\": 3,\n \"Text\": \"ASR\",\n \"Weight\": 10\n }\n ],\n \"HotwordsId\": \"hwd-aexxxxxxxxxxxxxx1481\",\n \"Limit\": 0,\n \"Name\": \"HotwordsNameExample\",\n \"Offset\": 0,\n \"RequestId\": \"bad606d3-8a49-427f-a6a6-26c9f1fe1dc3\",\n \"Status\": 0,\n \"Type\": 0,\n \"UpdateTime\": \"2025-03-19T03:29:06Z\",\n \"WordCount\": 3\n }\n}",
|
530
|
+
"title": "DescribeAsrHotwords"
|
531
|
+
}
|
532
|
+
],
|
533
|
+
"DescribeAsrHotwordsList": [
|
534
|
+
{
|
535
|
+
"document": "",
|
536
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAsrHotwordsList\n<公共请求参数>\n\n{\n \"HotwordsId\": \"hwd-aexxxxxxxxxxxxxx1481\"\n}",
|
537
|
+
"output": "{\n \"Response\": {\n \"AsrHotwordsSet\": [\n {\n \"CreateTime\": \"2025-03-19T03:29:06Z\",\n \"FileName\": \"\",\n \"HotwordsId\": \"hwd-aexxxxxxxxxxxxxx1481\",\n \"Name\": \"HotwordsNameExample\",\n \"Status\": 0,\n \"Type\": 0,\n \"UpdateTime\": \"2025-03-19T03:29:06Z\",\n \"WordCount\": 3\n }\n ],\n \"Limit\": 0,\n \"Offset\": 0,\n \"RequestId\": \"0beec64c-8390-43dd-8b3a-14df16cc9ca7\",\n \"TotalCount\": 1\n }\n}",
|
538
|
+
"title": "DescribeAsrHotwordsList"
|
539
|
+
}
|
540
|
+
],
|
493
541
|
"DescribeContentReviewTemplates": [
|
494
542
|
{
|
495
543
|
"document": "从序号 0 开始,获取 10 个智能审核模板,包括系统默认智能审核模板。",
|
@@ -568,6 +616,14 @@
|
|
568
616
|
"title": "示例"
|
569
617
|
}
|
570
618
|
],
|
619
|
+
"DescribeSmartSubtitleTemplates": [
|
620
|
+
{
|
621
|
+
"document": "",
|
622
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSmartSubtitleTemplates\n<公共请求参数>\n\n{}",
|
623
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"f89a1f41-1a26-4cda-9be1-2747cb44a045\",\n \"SmartSubtitleTemplateSet\": [\n {\n \"AliasName\": \"Generate_Chinese_And_English_Subtitle_For_English_Video\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"\",\n \"Switch\": \"OFF\"\n },\n \"AsrHotWordsLibraryName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-02-11T15:41:29+08:00\",\n \"Definition\": 212,\n \"Name\": \"英文源视频-生成中英文字幕\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleType\": 2,\n \"TranslateDstLanguage\": \"zh\",\n \"TranslateSwitch\": \"ON\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-02-11T15:41:29+08:00\",\n \"VideoSrcLanguage\": \"en\"\n },\n {\n \"AliasName\": \"Generate_Chinese_Subtitle_For_English_Video\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"\",\n \"Switch\": \"OFF\"\n },\n \"AsrHotWordsLibraryName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-02-11T15:41:29+08:00\",\n \"Definition\": 211,\n \"Name\": \"英文源视频-生成中文字幕\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleType\": 1,\n \"TranslateDstLanguage\": \"zh\",\n \"TranslateSwitch\": \"ON\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-02-11T15:41:29+08:00\",\n \"VideoSrcLanguage\": \"en\"\n },\n {\n \"AliasName\": \"Generate_English_Subtitle_For_English_Video\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"\",\n \"Switch\": \"OFF\"\n },\n \"AsrHotWordsLibraryName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-02-11T15:41:29+08:00\",\n \"Definition\": 200,\n \"Name\": \"英文源视频-生成英文字幕\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleType\": 0,\n \"TranslateDstLanguage\": \"en\",\n \"TranslateSwitch\": \"OFF\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-02-11T15:41:29+08:00\",\n \"VideoSrcLanguage\": \"en\"\n },\n {\n \"AliasName\": \"Generate_Chinese_And_English_Subtitle_For_Chinese_Video\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"\",\n \"Switch\": \"OFF\"\n },\n \"AsrHotWordsLibraryName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-02-11T15:41:29+08:00\",\n \"Definition\": 122,\n \"Name\": \"中文源视频-生成中英文字幕\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleType\": 2,\n \"TranslateDstLanguage\": \"en\",\n \"TranslateSwitch\": \"ON\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-02-11T15:41:29+08:00\",\n \"VideoSrcLanguage\": \"zh\"\n },\n {\n \"AliasName\": \"Generate_English_Subtitle_For_Chinese_Video\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"\",\n \"Switch\": \"OFF\"\n },\n \"AsrHotWordsLibraryName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-02-11T15:41:29+08:00\",\n \"Definition\": 121,\n \"Name\": \"中文源视频-生成英文字幕\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleType\": 1,\n \"TranslateDstLanguage\": \"en\",\n \"TranslateSwitch\": \"ON\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-02-11T15:41:29+08:00\",\n \"VideoSrcLanguage\": \"zh\"\n },\n {\n \"AliasName\": \"Generate_Chinese_Subtitle_For_Chinese_Video\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"\",\n \"Switch\": \"OFF\"\n },\n \"AsrHotWordsLibraryName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-02-11T15:41:29+08:00\",\n \"Definition\": 100,\n \"Name\": \"中文源视频-生成中文字幕\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleType\": 0,\n \"TranslateDstLanguage\": \"en\",\n \"TranslateSwitch\": \"OFF\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-02-11T15:41:29+08:00\",\n \"VideoSrcLanguage\": \"zh\"\n },\n {\n \"AliasName\": \"\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"\",\n \"Switch\": \"OFF\"\n },\n \"AsrHotWordsLibraryName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-03-04T18:18:35+08:00\",\n \"Definition\": 202226,\n \"Name\": \"aaaaa\",\n \"SubtitleFormat\": \"\",\n \"SubtitleType\": 0,\n \"TranslateDstLanguage\": \"\",\n \"TranslateSwitch\": \"OFF\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-03-04T18:18:35+08:00\",\n \"VideoSrcLanguage\": \"zh\"\n },\n {\n \"AliasName\": \"\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"hwd-390af315ba0c31545156\",\n \"Switch\": \"ON\"\n },\n \"AsrHotWordsLibraryName\": \"ValidName\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-02-21T16:26:37+08:00\",\n \"Definition\": 201309,\n \"Name\": \"0221\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleType\": 0,\n \"TranslateDstLanguage\": \"\",\n \"TranslateSwitch\": \"OFF\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-02-21T16:26:37+08:00\",\n \"VideoSrcLanguage\": \"zh\"\n },\n {\n \"AliasName\": \"\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"\",\n \"Switch\": \"OFF\"\n },\n \"AsrHotWordsLibraryName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-02-21T16:13:06+08:00\",\n \"Definition\": 201308,\n \"Name\": \"0221\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleType\": 0,\n \"TranslateDstLanguage\": \"\",\n \"TranslateSwitch\": \"OFF\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-02-21T16:13:06+08:00\",\n \"VideoSrcLanguage\": \"zh\"\n },\n {\n \"AliasName\": \"\",\n \"AsrHotWordsConfigure\": {\n \"LibraryId\": \"hwd-f1d930ebc6d9a7d910\",\n \"Switch\": \"ON\"\n },\n \"AsrHotWordsLibraryName\": \"HotwordsName1\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-02-21T16:08:45+08:00\",\n \"Definition\": 201307,\n \"Name\": \"0221\",\n \"SubtitleFormat\": \"\",\n \"SubtitleType\": 0,\n \"TranslateDstLanguage\": \"\",\n \"TranslateSwitch\": \"OFF\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-02-21T17:50:15+08:00\",\n \"VideoSrcLanguage\": \"zh\"\n }\n ],\n \"TotalCount\": 21\n }\n}",
|
624
|
+
"title": "查询智能字幕模板"
|
625
|
+
}
|
626
|
+
],
|
571
627
|
"DescribeSnapshotByTimeOffsetTemplates": [
|
572
628
|
{
|
573
629
|
"document": "",
|
@@ -894,6 +950,14 @@
|
|
894
950
|
"title": "修改转动图模板"
|
895
951
|
}
|
896
952
|
],
|
953
|
+
"ModifyAsrHotwords": [
|
954
|
+
{
|
955
|
+
"document": "",
|
956
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAsrHotwords\n<公共请求参数>\n\n{\n \"HotwordsId\": \"hwd-aexxxxxxxxxxxxxx1481\",\n \"Name\": \"HotwordsNameNew\",\n \"Content\": \"腾讯云|10,语音识别|5,ASR|10\"\n}",
|
957
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"bebd190b-4864-4911-b919-ec713c102498\"\n }\n}",
|
958
|
+
"title": "ModifyAsrHotwords"
|
959
|
+
}
|
960
|
+
],
|
897
961
|
"ModifyContentReviewTemplate": [
|
898
962
|
{
|
899
963
|
"document": "修改自定义 AI 内容审核模板。不指定过滤标签,将画面令人反感的信息的任务判定为违规的分数阈值和画面令人反感的信息的任务判定为需要人工内容审核的分数阈值修改为默认。",
|
@@ -980,6 +1044,14 @@
|
|
980
1044
|
"title": "修改编排"
|
981
1045
|
}
|
982
1046
|
],
|
1047
|
+
"ModifySmartSubtitleTemplate": [
|
1048
|
+
{
|
1049
|
+
"document": "",
|
1050
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySmartSubtitleTemplate\n<公共请求参数>\n\n{\n \"Definition\": 202281,\n \"TranslateSwitch\": \"ON\",\n \"Name\": \"新名字\",\n \"SubtitleType\": 1,\n \"TranslateDstLanguage\": \"en\"\n}",
|
1051
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"569d5d19-d01c-4efc-97dc-4ea53ae95647\"\n }\n}",
|
1052
|
+
"title": "修改智能字幕模板"
|
1053
|
+
}
|
1054
|
+
],
|
983
1055
|
"ModifySnapshotByTimeOffsetTemplate": [
|
984
1056
|
{
|
985
1057
|
"document": "",
|
@@ -3339,7 +3339,7 @@
|
|
3339
3339
|
{
|
3340
3340
|
"disabled": false,
|
3341
3341
|
"document": "角色信息列表",
|
3342
|
-
"example": "[ \t\t\t{ \t\t\t\t\"CreatedTime\": 1705392159000, \t\t\t\t\"ModifiedTime\": 1705392159000, \t\t\t\t\"Password\": \"
|
3342
|
+
"example": "[ \t\t\t{ \t\t\t\t\"CreatedTime\": 1705392159000, \t\t\t\t\"ModifiedTime\": 1705392159000, \t\t\t\t\"Password\": \"pwd1\", \t\t\t\t\"PermRead\": true, \t\t\t\t\"PermWrite\": true, \t\t\t\t\"Remark\": \"\", \t\t\t\t\"Username\": \"user1\" \t\t\t} \t\t]",
|
3343
3343
|
"member": "MQTTUserItem",
|
3344
3344
|
"name": "Data",
|
3345
3345
|
"output_required": true,
|
@@ -52,7 +52,7 @@
|
|
52
52
|
{
|
53
53
|
"document": "示例",
|
54
54
|
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateMQTTInstance\n<公共请求参数>\n\n{\n \"InstanceType\": \"BASIC\",\n \"Name\": \"instance-1\",\n \"SkuCode\": \"basic_1k\",\n \"Remark\": \"this is remark\",\n \"VpcList\": [\n {\n \"VpcId\": \"vpc-9a5wnirv\",\n \"SubnetId\": \"subnet-0tw6tlfi\"\n }\n ],\n \"IpRules\": [\n {\n \"Ip\": \"1.1.1.1\",\n \"Allow\": true,\n \"Remark\": \"remark\"\n }\n ]\n}",
|
55
|
-
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"InstanceId\": \"mqtt-7pnqmkrx\",\n \"RequestId\": \"
|
55
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"InstanceId\": \"mqtt-7pnqmkrx\",\n \"RequestId\": \"request-id\"\n }\n}",
|
56
56
|
"title": "示例"
|
57
57
|
}
|
58
58
|
],
|
@@ -4801,6 +4801,58 @@ def doDescribeInstances(args, parsed_globals):
|
|
4801
4801
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4802
4802
|
|
4803
4803
|
|
4804
|
+
def doRemoveReplicationGroup(args, parsed_globals):
|
4805
|
+
g_param = parse_global_arg(parsed_globals)
|
4806
|
+
|
4807
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4808
|
+
cred = credential.CVMRoleCredential()
|
4809
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4810
|
+
cred = credential.STSAssumeRoleCredential(
|
4811
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4812
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4813
|
+
)
|
4814
|
+
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):
|
4815
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4816
|
+
else:
|
4817
|
+
cred = credential.Credential(
|
4818
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4819
|
+
)
|
4820
|
+
http_profile = HttpProfile(
|
4821
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4822
|
+
reqMethod="POST",
|
4823
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4824
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4825
|
+
)
|
4826
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4827
|
+
if g_param[OptionsDefine.Language]:
|
4828
|
+
profile.language = g_param[OptionsDefine.Language]
|
4829
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4830
|
+
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
4831
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4832
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4833
|
+
model = models.RemoveReplicationGroupRequest()
|
4834
|
+
model.from_json_string(json.dumps(args))
|
4835
|
+
start_time = time.time()
|
4836
|
+
while True:
|
4837
|
+
rsp = client.RemoveReplicationGroup(model)
|
4838
|
+
result = rsp.to_json_string()
|
4839
|
+
try:
|
4840
|
+
json_obj = json.loads(result)
|
4841
|
+
except TypeError as e:
|
4842
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4843
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4844
|
+
break
|
4845
|
+
cur_time = time.time()
|
4846
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4847
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4848
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4849
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4850
|
+
else:
|
4851
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4852
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4853
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4854
|
+
|
4855
|
+
|
4804
4856
|
def doOpenSSL(args, parsed_globals):
|
4805
4857
|
g_param = parse_global_arg(parsed_globals)
|
4806
4858
|
|
@@ -5788,6 +5840,7 @@ ACTION_MAP = {
|
|
5788
5840
|
"DescribeInstanceShards": doDescribeInstanceShards,
|
5789
5841
|
"RestoreInstance": doRestoreInstance,
|
5790
5842
|
"DescribeInstances": doDescribeInstances,
|
5843
|
+
"RemoveReplicationGroup": doRemoveReplicationGroup,
|
5791
5844
|
"OpenSSL": doOpenSSL,
|
5792
5845
|
"DescribeAutoBackupConfig": doDescribeAutoBackupConfig,
|
5793
5846
|
"DescribeBandwidthRange": doDescribeBandwidthRange,
|
@@ -672,6 +672,13 @@
|
|
672
672
|
"output": "ReleaseWanAddressResponse",
|
673
673
|
"status": "online"
|
674
674
|
},
|
675
|
+
"RemoveReplicationGroup": {
|
676
|
+
"document": "删除复制组",
|
677
|
+
"input": "RemoveReplicationGroupRequest",
|
678
|
+
"name": "删除复制组",
|
679
|
+
"output": "RemoveReplicationGroupResponse",
|
680
|
+
"status": "online"
|
681
|
+
},
|
675
682
|
"RemoveReplicationInstance": {
|
676
683
|
"document": "本接口(RemoveReplicationInstance)用于移除复制组中的实例。",
|
677
684
|
"input": "RemoveReplicationInstanceRequest",
|
@@ -11160,6 +11167,33 @@
|
|
11160
11167
|
],
|
11161
11168
|
"type": "object"
|
11162
11169
|
},
|
11170
|
+
"RemoveReplicationGroupRequest": {
|
11171
|
+
"document": "RemoveReplicationGroup请求参数结构体",
|
11172
|
+
"members": [
|
11173
|
+
{
|
11174
|
+
"disabled": false,
|
11175
|
+
"document": "复制组ID",
|
11176
|
+
"example": "crs-rpl-xxx",
|
11177
|
+
"member": "string",
|
11178
|
+
"name": "GroupId",
|
11179
|
+
"required": true,
|
11180
|
+
"type": "string"
|
11181
|
+
}
|
11182
|
+
],
|
11183
|
+
"type": "object"
|
11184
|
+
},
|
11185
|
+
"RemoveReplicationGroupResponse": {
|
11186
|
+
"document": "RemoveReplicationGroup返回参数结构体",
|
11187
|
+
"members": [
|
11188
|
+
{
|
11189
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11190
|
+
"member": "string",
|
11191
|
+
"name": "RequestId",
|
11192
|
+
"type": "string"
|
11193
|
+
}
|
11194
|
+
],
|
11195
|
+
"type": "object"
|
11196
|
+
},
|
11163
11197
|
"RemoveReplicationInstanceRequest": {
|
11164
11198
|
"document": "RemoveReplicationInstance请求参数结构体",
|
11165
11199
|
"members": [
|
@@ -774,6 +774,14 @@
|
|
774
774
|
"title": "关闭外网实例"
|
775
775
|
}
|
776
776
|
],
|
777
|
+
"RemoveReplicationGroup": [
|
778
|
+
{
|
779
|
+
"document": "当复制组内没有实例时,删除复制组",
|
780
|
+
"input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveReplicationGroup\n<公共请求参数>\n\n{\n \"GroupId\": \"crs-rpl-oxsincthdd\"\n}",
|
781
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
782
|
+
"title": "删除复制组"
|
783
|
+
}
|
784
|
+
],
|
777
785
|
"RemoveReplicationInstance": [
|
778
786
|
{
|
779
787
|
"document": "移除复制组的实例,数据同步类型为强同步。",
|
tccli/services/tcb/tcb_client.py
CHANGED
@@ -1317,6 +1317,58 @@ def doCreateStaticStore(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
+
def doEditAuthConfig(args, parsed_globals):
|
1321
|
+
g_param = parse_global_arg(parsed_globals)
|
1322
|
+
|
1323
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1324
|
+
cred = credential.CVMRoleCredential()
|
1325
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1326
|
+
cred = credential.STSAssumeRoleCredential(
|
1327
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1328
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1329
|
+
)
|
1330
|
+
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):
|
1331
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1332
|
+
else:
|
1333
|
+
cred = credential.Credential(
|
1334
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1335
|
+
)
|
1336
|
+
http_profile = HttpProfile(
|
1337
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1338
|
+
reqMethod="POST",
|
1339
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1340
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1341
|
+
)
|
1342
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1343
|
+
if g_param[OptionsDefine.Language]:
|
1344
|
+
profile.language = g_param[OptionsDefine.Language]
|
1345
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1346
|
+
client = mod.TcbClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
+
model = models.EditAuthConfigRequest()
|
1350
|
+
model.from_json_string(json.dumps(args))
|
1351
|
+
start_time = time.time()
|
1352
|
+
while True:
|
1353
|
+
rsp = client.EditAuthConfig(model)
|
1354
|
+
result = rsp.to_json_string()
|
1355
|
+
try:
|
1356
|
+
json_obj = json.loads(result)
|
1357
|
+
except TypeError as e:
|
1358
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1359
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1360
|
+
break
|
1361
|
+
cur_time = time.time()
|
1362
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1363
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1364
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1365
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1366
|
+
else:
|
1367
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1368
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1369
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
|
+
|
1371
|
+
|
1320
1372
|
def doDescribeSpecialCostItems(args, parsed_globals):
|
1321
1373
|
g_param = parse_global_arg(parsed_globals)
|
1322
1374
|
|
@@ -4681,6 +4733,7 @@ ACTION_MAP = {
|
|
4681
4733
|
"DescribeStandaloneGatewayPackage": doDescribeStandaloneGatewayPackage,
|
4682
4734
|
"BindEnvGateway": doBindEnvGateway,
|
4683
4735
|
"CreateStaticStore": doCreateStaticStore,
|
4736
|
+
"EditAuthConfig": doEditAuthConfig,
|
4684
4737
|
"DescribeSpecialCostItems": doDescribeSpecialCostItems,
|
4685
4738
|
"DeleteGatewayVersion": doDeleteGatewayVersion,
|
4686
4739
|
"ModifyClsTopic": doModifyClsTopic,
|