tccli 3.0.847.1__py2.py3-none-any.whl → 3.0.849.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 +1 -0
  3. tccli/services/billing/v20180709/api.json +1 -9
  4. tccli/services/billing/v20180709/examples.json +1 -1
  5. tccli/services/bma/v20221115/api.json +9 -0
  6. tccli/services/bma/v20221115/examples.json +1 -1
  7. tccli/services/cdn/v20180606/api.json +0 -14
  8. tccli/services/cdn/v20180606/examples.json +2 -2
  9. tccli/services/cfs/v20190719/api.json +2 -2
  10. tccli/services/ckafka/ckafka_client.py +61 -8
  11. tccli/services/ckafka/v20190819/api.json +78 -15
  12. tccli/services/ckafka/v20190819/examples.json +11 -3
  13. tccli/services/cwp/cwp_client.py +61 -8
  14. tccli/services/cwp/v20180228/api.json +361 -117
  15. tccli/services/cwp/v20180228/examples.json +25 -17
  16. tccli/services/dcdb/v20180411/api.json +8 -50
  17. tccli/services/dcdb/v20180411/examples.json +3 -3
  18. tccli/services/dlc/v20210125/api.json +1 -1
  19. tccli/services/ess/v20201111/api.json +51 -2
  20. tccli/services/ess/v20201111/examples.json +1 -1
  21. tccli/services/live/v20180801/api.json +0 -4
  22. tccli/services/live/v20180801/examples.json +1 -1
  23. tccli/services/mariadb/v20170312/api.json +8 -55
  24. tccli/services/mariadb/v20170312/examples.json +3 -3
  25. tccli/services/mongodb/v20190725/api.json +5 -20
  26. tccli/services/mongodb/v20190725/examples.json +5 -5
  27. tccli/services/monitor/v20180724/api.json +2 -32
  28. tccli/services/ocr/v20181119/api.json +20 -1
  29. tccli/services/ocr/v20181119/examples.json +1 -1
  30. tccli/services/region/v20220627/api.json +16 -6
  31. tccli/services/region/v20220627/examples.json +7 -7
  32. tccli/services/ssl/v20191205/api.json +18 -53
  33. tccli/services/ssl/v20191205/examples.json +6 -6
  34. tccli/services/tcb/v20180608/api.json +16 -137
  35. tccli/services/tcb/v20180608/examples.json +10 -10
  36. tccli/services/tcr/v20190924/api.json +4 -4
  37. tccli/services/tdmq/v20200217/api.json +0 -2
  38. tccli/services/tdmq/v20200217/examples.json +2 -2
  39. tccli/services/thpc/thpc_client.py +13 -8
  40. tccli/services/thpc/v20230321/api.json +2414 -0
  41. tccli/services/thpc/v20230321/examples.json +125 -0
  42. tccli/services/tiw/tiw_client.py +53 -0
  43. tccli/services/tiw/v20190919/api.json +216 -0
  44. tccli/services/tiw/v20190919/examples.json +8 -0
  45. tccli/services/trtc/v20190722/api.json +5 -17
  46. tccli/services/tse/v20201207/api.json +45 -2
  47. tccli/services/tts/v20190823/api.json +10 -21
  48. tccli/services/tts/v20190823/examples.json +1 -1
  49. tccli/services/vod/v20180717/api.json +20 -12
  50. tccli/services/vod/v20180717/examples.json +1 -1
  51. tccli/services/vpc/v20170312/api.json +6 -5
  52. tccli/services/vpc/v20170312/examples.json +2 -2
  53. {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/METADATA +2 -2
  54. {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/RECORD +58 -56
  55. {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/LICENSE +0 -0
  56. {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/WHEEL +0 -0
  57. {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/entry_points.txt +0 -0
  58. {tccli-3.0.847.1.dist-info → tccli-3.0.849.1.dist-info}/top_level.txt +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.847.1'
1
+ __version__ = '3.0.849.1'
@@ -617,6 +617,7 @@ SERVICE_VERSIONS = {
617
617
  "2022-01-06"
618
618
  ],
619
619
  "thpc": [
620
+ "2023-03-21",
620
621
  "2022-04-01",
621
622
  "2021-11-09"
622
623
  ],
@@ -3588,7 +3588,6 @@
3588
3588
  "document": "DescribeBillSummaryByTag请求参数结构体",
3589
3589
  "members": [
3590
3590
  {
3591
- "default": "",
3592
3591
  "document": "目前必须和EndTime相同月份,不支持跨月查询,且查询结果是整月数据,例如 BeginTime为2018-09,EndTime 为 2018-09,查询结果是 2018 年 9 月数据。",
3593
3592
  "example": "2019-09",
3594
3593
  "member": "string",
@@ -3597,7 +3596,6 @@
3597
3596
  "type": "string"
3598
3597
  },
3599
3598
  {
3600
- "default": "",
3601
3599
  "document": "目前必须和BeginTime为相同月份,不支持跨月查询,且查询结果是整月数据,例如 BeginTime为2018-09,EndTime 为 2018-09,查询结果是 2018 年 9 月数据。",
3602
3600
  "example": "2019-09",
3603
3601
  "member": "string",
@@ -3606,8 +3604,7 @@
3606
3604
  "type": "string"
3607
3605
  },
3608
3606
  {
3609
- "default": "",
3610
- "document": "分账标签键",
3607
+ "document": "分账标签键,用户自定义",
3611
3608
  "example": "province",
3612
3609
  "member": "string",
3613
3610
  "name": "TagKey",
@@ -3615,7 +3612,6 @@
3615
3612
  "type": "string"
3616
3613
  },
3617
3614
  {
3618
- "default": "",
3619
3615
  "document": "查询账单数据的用户UIN",
3620
3616
  "example": "xxx",
3621
3617
  "member": "string",
@@ -3624,7 +3620,6 @@
3624
3620
  "type": "string"
3625
3621
  },
3626
3622
  {
3627
- "default": "",
3628
3623
  "document": "分账标签值",
3629
3624
  "example": "0",
3630
3625
  "member": "string",
@@ -3643,7 +3638,6 @@
3643
3638
  "example": "1",
3644
3639
  "member": "uint64",
3645
3640
  "name": "Ready",
3646
- "required": true,
3647
3641
  "type": "int",
3648
3642
  "value_allowed_null": false
3649
3643
  },
@@ -3652,7 +3646,6 @@
3652
3646
  "example": "无",
3653
3647
  "member": "TagSummaryOverviewItem",
3654
3648
  "name": "SummaryOverview",
3655
- "required": true,
3656
3649
  "type": "list",
3657
3650
  "value_allowed_null": true
3658
3651
  },
@@ -3661,7 +3654,6 @@
3661
3654
  "example": "无",
3662
3655
  "member": "SummaryTotal",
3663
3656
  "name": "SummaryTotal",
3664
- "required": true,
3665
3657
  "type": "object",
3666
3658
  "value_allowed_null": true
3667
3659
  },
@@ -66,7 +66,7 @@
66
66
  ],
67
67
  "DescribeBillSummaryByTag": [
68
68
  {
69
- "document": "",
69
+ "document": "获取按标签汇总费用分布",
70
70
  "input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBillSummaryByTag\n<公共请求参数>\n\n{\n \"TagKey\": \"province\",\n \"EndTime\": \"2019-09\",\n \"BeginTime\": \"2019-09\"\n}",
71
71
  "output": "{\n \"Response\": {\n \"Ready\": 1,\n \"SummaryOverview\": [\n {\n \"TagValue\": \"\",\n \"RealTotalCost\": \"3081.26707105\",\n \"TotalCost\": \"5026.37707609\",\n \"RealTotalCostRatio\": \"99.88\",\n \"CashPayAmount\": \"3081.26707105\",\n \"IncentivePayAmount\": \"0.00000000\",\n \"VoucherPayAmount\": \"0.00000000\",\n \"TransferPayAmount\": \"0.00000000\"\n },\n {\n \"TagValue\": \"kCH0vYyI\",\n \"RealTotalCost\": \"3.77264000\",\n \"TotalCost\": \"4.71580000\",\n \"RealTotalCostRatio\": \"0.12\",\n \"CashPayAmount\": \"3.77264000\",\n \"IncentivePayAmount\": \"0.00000000\",\n \"VoucherPayAmount\": \"0.00000000\",\n \"TransferPayAmount\": \"0.00000000\"\n }\n ],\n \"SummaryTotal\": {\n \"RealTotalCost\": \"3085.03971105\",\n \"TotalCost\": \"5031.09287609\"\n },\n \"RequestId\": \"0cdd9b57-4597-4e78-a60b-0e72f7637a3a\"\n }\n}",
72
72
  "title": "获取按标签汇总费用分布"
@@ -204,6 +204,15 @@
204
204
  "required": false,
205
205
  "type": "object",
206
206
  "value_allowed_null": false
207
+ },
208
+ {
209
+ "document": "账号id",
210
+ "example": "无",
211
+ "member": "string",
212
+ "name": "Uin",
213
+ "required": false,
214
+ "type": "string",
215
+ "value_allowed_null": false
207
216
  }
208
217
  ],
209
218
  "usage": "out"
@@ -60,7 +60,7 @@
60
60
  {
61
61
  "document": "查询品牌列表",
62
62
  "input": "POST / HTTP/1.1\nHost: bma.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBPBrands\n<公共请求参数>\n\n{}",
63
- "output": "{\n \"Response\": {\n \"Brands\": [\n {\n \"CompanyId\": 0,\n \"CompanyName\": \"xx\",\n \"BrandName\": \"xx\",\n \"Phone\": \"xx\",\n \"License\": \"xx\",\n \"LicenseStatus\": 0,\n \"LicenseNote\": \"xx\",\n \"Authorization\": \"xx\",\n \"AuthorizationStatus\": 0,\n \"AuthorizationNote\": \"xx\",\n \"Trademarks\": [\n {\n \"Trademark\": \"xx\",\n \"TrademarkStatus\": 0,\n \"TrademarkNote\": \"xx\",\n \"TrademarkId\": 0,\n \"Transfer\": \"xx\",\n \"TransferStatus\": 0,\n \"TransferNote\": \"xx\",\n \"TrademarkName\": \"xx\"\n }\n ],\n \"InsertTime\": \"xx\",\n \"Services\": {\n \"ProtectURLCount\": 0,\n \"ProtectURLExpireTime\": \"xx\",\n \"ProtectAPPCount\": 0,\n \"ProtectAPPExpireTime\": \"xx\",\n \"ProtectOfficialAccountCount\": 0,\n \"ProtectOfficialAccountExpireTime\": \"xx\",\n \"ProtectMiniProgramCount\": 0,\n \"ProtectMiniProgramExpireTime\": \"xx\",\n \"OfflineCount\": 0\n }\n }\n ],\n \"NoticeStatus\": 0,\n \"RequestId\": \"xx\"\n }\n}",
63
+ "output": "{\n \"Response\": {\n \"Brands\": [\n {\n \"Uin\": \"abc\",\n \"CompanyId\": 0,\n \"CompanyName\": \"abc\",\n \"BrandName\": \"abc\",\n \"Phone\": \"abc\",\n \"License\": \"abc\",\n \"LicenseStatus\": 0,\n \"LicenseNote\": \"abc\",\n \"Authorization\": \"abc\",\n \"AuthorizationStatus\": 0,\n \"AuthorizationNote\": \"abc\",\n \"Trademarks\": [\n {\n \"Trademark\": \"abc\",\n \"TrademarkStatus\": 0,\n \"TrademarkNote\": \"abc\",\n \"TrademarkId\": 0,\n \"Transfer\": \"abc\",\n \"TransferStatus\": 0,\n \"TransferNote\": \"abc\",\n \"TrademarkName\": \"abc\"\n }\n ],\n \"InsertTime\": \"abc\",\n \"Services\": {\n \"ProtectURLCount\": 0,\n \"ProtectURLExpireTime\": \"abc\",\n \"ProtectAPPCount\": 0,\n \"ProtectAPPExpireTime\": \"abc\",\n \"ProtectOfficialAccountCount\": 0,\n \"ProtectOfficialAccountExpireTime\": \"abc\",\n \"ProtectMiniProgramCount\": 0,\n \"ProtectMiniProgramExpireTime\": \"abc\",\n \"OfflineCount\": 0\n }\n }\n ],\n \"NoticeStatus\": 0,\n \"RequestId\": \"abc\"\n }\n}",
64
64
  "title": "查询品牌列表"
65
65
  }
66
66
  ],
@@ -6964,7 +6964,6 @@
6964
6964
  "document": "DescribeScdnConfig请求参数结构体",
6965
6965
  "members": [
6966
6966
  {
6967
- "default": "",
6968
6967
  "document": "域名",
6969
6968
  "example": "www.test.com",
6970
6969
  "member": "string",
@@ -6983,7 +6982,6 @@
6983
6982
  "example": "无",
6984
6983
  "member": "ScdnAclConfig",
6985
6984
  "name": "Acl",
6986
- "required": true,
6987
6985
  "type": "object",
6988
6986
  "value_allowed_null": false
6989
6987
  },
@@ -6992,7 +6990,6 @@
6992
6990
  "example": "无",
6993
6991
  "member": "ScdnWafConfig",
6994
6992
  "name": "Waf",
6995
- "required": true,
6996
6993
  "type": "object",
6997
6994
  "value_allowed_null": false
6998
6995
  },
@@ -7001,7 +6998,6 @@
7001
6998
  "example": "无",
7002
6999
  "member": "ScdnConfig",
7003
7000
  "name": "CC",
7004
- "required": true,
7005
7001
  "type": "object",
7006
7002
  "value_allowed_null": false
7007
7003
  },
@@ -7010,7 +7006,6 @@
7010
7006
  "example": "无",
7011
7007
  "member": "ScdnDdosConfig",
7012
7008
  "name": "Ddos",
7013
- "required": true,
7014
7009
  "type": "object",
7015
7010
  "value_allowed_null": false
7016
7011
  },
@@ -7019,7 +7014,6 @@
7019
7014
  "example": "无",
7020
7015
  "member": "ScdnBotConfig",
7021
7016
  "name": "Bot",
7022
- "required": true,
7023
7017
  "type": "object",
7024
7018
  "value_allowed_null": false
7025
7019
  },
@@ -7028,7 +7022,6 @@
7028
7022
  "example": "online",
7029
7023
  "member": "string",
7030
7024
  "name": "Status",
7031
- "required": true,
7032
7025
  "type": "string",
7033
7026
  "value_allowed_null": true
7034
7027
  },
@@ -16494,7 +16487,6 @@
16494
16487
  "document": "UpdateScdnDomain请求参数结构体",
16495
16488
  "members": [
16496
16489
  {
16497
- "default": "",
16498
16490
  "document": "域名",
16499
16491
  "example": "www.test.com",
16500
16492
  "member": "string",
@@ -16503,7 +16495,6 @@
16503
16495
  "type": "string"
16504
16496
  },
16505
16497
  {
16506
- "default": "",
16507
16498
  "document": "Web 攻击防护(WAF)配置",
16508
16499
  "example": "无",
16509
16500
  "member": "ScdnWafConfig",
@@ -16512,7 +16503,6 @@
16512
16503
  "type": "object"
16513
16504
  },
16514
16505
  {
16515
- "default": "",
16516
16506
  "document": "自定义防护策略配置",
16517
16507
  "example": "无",
16518
16508
  "member": "ScdnAclConfig",
@@ -16521,7 +16511,6 @@
16521
16511
  "type": "object"
16522
16512
  },
16523
16513
  {
16524
- "default": "",
16525
16514
  "document": "CC 防护配置,目前 CC 防护默认开启",
16526
16515
  "example": "无",
16527
16516
  "member": "ScdnConfig",
@@ -16530,7 +16519,6 @@
16530
16519
  "type": "object"
16531
16520
  },
16532
16521
  {
16533
- "default": "",
16534
16522
  "document": "DDOS 防护配置,目前 DDoS 防护默认开启",
16535
16523
  "example": "无",
16536
16524
  "member": "ScdnDdosConfig",
@@ -16539,7 +16527,6 @@
16539
16527
  "type": "object"
16540
16528
  },
16541
16529
  {
16542
- "default": "",
16543
16530
  "document": "BOT 防护配置",
16544
16531
  "example": "无",
16545
16532
  "member": "ScdnBotConfig",
@@ -16558,7 +16545,6 @@
16558
16545
  "example": "Success",
16559
16546
  "member": "string",
16560
16547
  "name": "Result",
16561
- "required": true,
16562
16548
  "type": "string",
16563
16549
  "value_allowed_null": false
16564
16550
  },
@@ -328,7 +328,7 @@
328
328
  ],
329
329
  "DescribeScdnConfig": [
330
330
  {
331
- "document": "",
331
+ "document": "查询SCDN域名配置",
332
332
  "input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeScdnConfig\n<公共请求参数>\n\n{\n \"Domain\": \"www.test.com\"\n}",
333
333
  "output": "{\n \"Response\": {\n \"CC\": {\n \"Rules\": [\n {\n \"FrequencyLimit\": 1,\n \"RuleType\": \"file\",\n \"DetectionTime\": 1,\n \"RuleValue\": [\n \"html\"\n ],\n \"PunishmentTime\": 1,\n \"RedirectUrl\": \"https://test.com/redirect\",\n \"Action\": \"redirect\",\n \"Qps\": 1,\n \"PunishmentSwitch\": \"on\"\n }\n ],\n \"Switch\": \"on\"\n },\n \"Waf\": {\n \"Rules\": [\n {\n \"Operate\": \"observe\",\n \"AttackType\": \"xss\"\n }\n ],\n \"WebShellSwitch\": \"on\",\n \"Switch\": \"on\",\n \"ErrorPage\": {\n \"RedirectUrl\": \"https://test.com/redirect\",\n \"RedirectCode\": 302\n },\n \"Mode\": \"observe\"\n },\n \"Bot\": {\n \"Switch\": \"on\",\n \"BotJavaScript\": [\n {\n \"RuleType\": \"file\",\n \"RuleValue\": [\n \"html\"\n ],\n \"UpdateTime\": \"2020-09-22 00:00:00\",\n \"RedirectUrl\": \"https://test.com/redirect\",\n \"Switch\": \"on\",\n \"Action\": \"monitor\"\n }\n ],\n \"BotCookie\": [\n {\n \"RuleType\": \"all\",\n \"RuleValue\": [\n \"*\"\n ],\n \"UpdateTime\": \"2020-09-22 00:00:00\",\n \"RedirectUrl\": \"https://test.com/redirect\",\n \"Switch\": \"on\",\n \"Action\": \"monitor\"\n }\n ]\n },\n \"Acl\": {\n \"Switch\": \"on\",\n \"ScriptData\": [\n {\n \"Status\": \"active\",\n \"Configure\": [\n {\n \"MatchKey\": \"ip\",\n \"MatchValue\": \"10.0.0.1\",\n \"LogiOperator\": \"include\"\n }\n ],\n \"Result\": \"intercept\",\n \"RuleName\": \"rule1\"\n }\n ],\n \"ErrorPage\": {\n \"RedirectUrl\": \"https://test.com/redirect\",\n \"RedirectCode\": 301\n }\n },\n \"Status\": \"online\",\n \"Ddos\": {\n \"Switch\": \"on\"\n },\n \"RequestId\": \"1abbe623-4b0e-4727-ab51-7624902d47f4\"\n }\n}",
334
334
  "title": "查询SCDN域名配置"
@@ -638,7 +638,7 @@
638
638
  ],
639
639
  "UpdateScdnDomain": [
640
640
  {
641
- "document": "",
641
+ "document": "SCDN域名配置变更",
642
642
  "input": "https://cdn.tencentcloudapi.com/?Action=UpdateScdnDomain\n&Domain=www.test.com\n&Acl.Switch=on\n&Acl.ScriptData.0.RuleName=test\n&Acl.ScriptData.0.Result=refuse\n&Acl.ScriptData.0.Configure.0.MatchKey=params\n&Acl.ScriptData.0.Configure.0.LogiOperator=exclude\n&Acl.ScriptData.0.Configure.0.MatchValue=www.attatck.com\n&<公共请求参数>",
643
643
  "output": "{\n \"Response\": {\n \"RequestId\": \"08b287d9-6342-4b70-9ec7-201efcd93b9d\",\n \"Result\": \"Success\"\n }\n}",
644
644
  "title": "SCDN域名配置变更"
@@ -2209,7 +2209,7 @@
2209
2209
  "value_allowed_null": false
2210
2210
  },
2211
2211
  {
2212
- "document": "文件系统状态",
2212
+ "document": "文件系统状态。取值范围:\n- creating:创建中\n- mounting:挂载中\n- create_failed:创建失败\n- available:可使用\n- unserviced:停服中\n- upgrading:升级中",
2213
2213
  "example": "无",
2214
2214
  "member": "string",
2215
2215
  "name": "LifeCycleState",
@@ -2362,7 +2362,7 @@
2362
2362
  "value_allowed_null": false
2363
2363
  },
2364
2364
  {
2365
- "document": "文件系统声明周期管理状态",
2365
+ "document": "文件系统生命周期管理状态",
2366
2366
  "example": "无",
2367
2367
  "member": "string",
2368
2368
  "name": "TieringState",
@@ -641,7 +641,7 @@ def doSendMessage(args, parsed_globals):
641
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
642
 
643
643
 
644
- def doModifyTopicAttributes(args, parsed_globals):
644
+ def doDescribeUser(args, parsed_globals):
645
645
  g_param = parse_global_arg(parsed_globals)
646
646
 
647
647
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -670,11 +670,11 @@ def doModifyTopicAttributes(args, parsed_globals):
670
670
  client = mod.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
671
671
  client._sdkVersion += ("_CLI_" + __version__)
672
672
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
- model = models.ModifyTopicAttributesRequest()
673
+ model = models.DescribeUserRequest()
674
674
  model.from_json_string(json.dumps(args))
675
675
  start_time = time.time()
676
676
  while True:
677
- rsp = client.ModifyTopicAttributes(model)
677
+ rsp = client.DescribeUser(model)
678
678
  result = rsp.to_json_string()
679
679
  try:
680
680
  json_obj = json.loads(result)
@@ -1317,7 +1317,7 @@ def doDeleteGroup(args, parsed_globals):
1317
1317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
1318
 
1319
1319
 
1320
- def doDescribeUser(args, parsed_globals):
1320
+ def doModifyDatahubTopic(args, parsed_globals):
1321
1321
  g_param = parse_global_arg(parsed_globals)
1322
1322
 
1323
1323
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1346,11 +1346,11 @@ def doDescribeUser(args, parsed_globals):
1346
1346
  client = mod.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
1347
1347
  client._sdkVersion += ("_CLI_" + __version__)
1348
1348
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1349
- model = models.DescribeUserRequest()
1349
+ model = models.ModifyDatahubTopicRequest()
1350
1350
  model.from_json_string(json.dumps(args))
1351
1351
  start_time = time.time()
1352
1352
  while True:
1353
- rsp = client.DescribeUser(model)
1353
+ rsp = client.ModifyDatahubTopic(model)
1354
1354
  result = rsp.to_json_string()
1355
1355
  try:
1356
1356
  json_obj = json.loads(result)
@@ -3865,6 +3865,58 @@ def doInquireCkafkaPrice(args, parsed_globals):
3865
3865
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3866
3866
 
3867
3867
 
3868
+ def doModifyTopicAttributes(args, parsed_globals):
3869
+ g_param = parse_global_arg(parsed_globals)
3870
+
3871
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3872
+ cred = credential.CVMRoleCredential()
3873
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3874
+ cred = credential.STSAssumeRoleCredential(
3875
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3876
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3877
+ )
3878
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3879
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3880
+ else:
3881
+ cred = credential.Credential(
3882
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3883
+ )
3884
+ http_profile = HttpProfile(
3885
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3886
+ reqMethod="POST",
3887
+ endpoint=g_param[OptionsDefine.Endpoint],
3888
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3889
+ )
3890
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3891
+ if g_param[OptionsDefine.Language]:
3892
+ profile.language = g_param[OptionsDefine.Language]
3893
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3894
+ client = mod.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
3895
+ client._sdkVersion += ("_CLI_" + __version__)
3896
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3897
+ model = models.ModifyTopicAttributesRequest()
3898
+ model.from_json_string(json.dumps(args))
3899
+ start_time = time.time()
3900
+ while True:
3901
+ rsp = client.ModifyTopicAttributes(model)
3902
+ result = rsp.to_json_string()
3903
+ try:
3904
+ json_obj = json.loads(result)
3905
+ except TypeError as e:
3906
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3907
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3908
+ break
3909
+ cur_time = time.time()
3910
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3911
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3912
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3913
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3914
+ else:
3915
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3916
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3917
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3918
+
3919
+
3868
3920
  CLIENT_MAP = {
3869
3921
  "v20190819": ckafka_client_v20190819,
3870
3922
 
@@ -3888,7 +3940,7 @@ ACTION_MAP = {
3888
3940
  "BatchModifyTopicAttributes": doBatchModifyTopicAttributes,
3889
3941
  "DeleteRoute": doDeleteRoute,
3890
3942
  "SendMessage": doSendMessage,
3891
- "ModifyTopicAttributes": doModifyTopicAttributes,
3943
+ "DescribeUser": doDescribeUser,
3892
3944
  "DescribeDatahubGroupOffsets": doDescribeDatahubGroupOffsets,
3893
3945
  "CreateCdcCluster": doCreateCdcCluster,
3894
3946
  "CreateTopicIpWhiteList": doCreateTopicIpWhiteList,
@@ -3901,7 +3953,7 @@ ACTION_MAP = {
3901
3953
  "CreateRoute": doCreateRoute,
3902
3954
  "DeleteConnectResource": doDeleteConnectResource,
3903
3955
  "DeleteGroup": doDeleteGroup,
3904
- "DescribeUser": doDescribeUser,
3956
+ "ModifyDatahubTopic": doModifyDatahubTopic,
3905
3957
  "FetchMessageListByOffset": doFetchMessageListByOffset,
3906
3958
  "CreateDatahubTopic": doCreateDatahubTopic,
3907
3959
  "DescribeACL": doDescribeACL,
@@ -3950,6 +4002,7 @@ ACTION_MAP = {
3950
4002
  "DeleteTopic": doDeleteTopic,
3951
4003
  "ModifyPassword": doModifyPassword,
3952
4004
  "InquireCkafkaPrice": doInquireCkafkaPrice,
4005
+ "ModifyTopicAttributes": doModifyTopicAttributes,
3953
4006
 
3954
4007
  }
3955
4008
 
@@ -476,6 +476,13 @@
476
476
  "output": "ModifyDatahubTaskResponse",
477
477
  "status": "online"
478
478
  },
479
+ "ModifyDatahubTopic": {
480
+ "document": "修改Datahub主题属性",
481
+ "input": "ModifyDatahubTopicRequest",
482
+ "name": "修改Datahub主题属性",
483
+ "output": "ModifyDatahubTopicResponse",
484
+ "status": "online"
485
+ },
479
486
  "ModifyGroupOffsets": {
480
487
  "document": "设置Groups 消费分组offset",
481
488
  "input": "ModifyGroupOffsetsRequest",
@@ -11158,7 +11165,6 @@
11158
11165
  "document": "ModifyConnectResource请求参数结构体",
11159
11166
  "members": [
11160
11167
  {
11161
- "default": "",
11162
11168
  "document": "连接源的Id",
11163
11169
  "example": "resource-xxx",
11164
11170
  "member": "string",
@@ -11167,7 +11173,6 @@
11167
11173
  "type": "string"
11168
11174
  },
11169
11175
  {
11170
- "default": "",
11171
11176
  "document": "连接源名称,为空时不修改",
11172
11177
  "example": "xxx",
11173
11178
  "member": "string",
@@ -11176,7 +11181,6 @@
11176
11181
  "type": "string"
11177
11182
  },
11178
11183
  {
11179
- "default": "",
11180
11184
  "document": "连接源描述,为空时不修改",
11181
11185
  "example": "xxx",
11182
11186
  "member": "string",
@@ -11185,7 +11189,6 @@
11185
11189
  "type": "string"
11186
11190
  },
11187
11191
  {
11188
- "default": "",
11189
11192
  "document": "连接源类型,修改数据源参数时,需要与原Type相同,否则编辑数据源无效",
11190
11193
  "example": "xxx",
11191
11194
  "member": "string",
@@ -11194,7 +11197,6 @@
11194
11197
  "type": "string"
11195
11198
  },
11196
11199
  {
11197
- "default": "",
11198
11200
  "document": "Dts配置,Type为DTS时必填",
11199
11201
  "example": "xxx",
11200
11202
  "member": "DtsModifyConnectParam",
@@ -11203,7 +11205,6 @@
11203
11205
  "type": "object"
11204
11206
  },
11205
11207
  {
11206
- "default": "",
11207
11208
  "document": "MongoDB配置,Type为MONGODB时必填",
11208
11209
  "example": "xxx",
11209
11210
  "member": "MongoDBModifyConnectParam",
@@ -11212,7 +11213,6 @@
11212
11213
  "type": "object"
11213
11214
  },
11214
11215
  {
11215
- "default": "",
11216
11216
  "document": "Es配置,Type为ES时必填",
11217
11217
  "example": "xxx",
11218
11218
  "member": "EsModifyConnectParam",
@@ -11221,7 +11221,6 @@
11221
11221
  "type": "object"
11222
11222
  },
11223
11223
  {
11224
- "default": "",
11225
11224
  "document": "ClickHouse配置,Type为CLICKHOUSE时必填",
11226
11225
  "example": "xxx",
11227
11226
  "member": "ClickHouseModifyConnectParam",
@@ -11230,7 +11229,6 @@
11230
11229
  "type": "object"
11231
11230
  },
11232
11231
  {
11233
- "default": "",
11234
11232
  "document": "MySQL配置,Type为MYSQL或TDSQL_C_MYSQL时必填",
11235
11233
  "example": "xxx",
11236
11234
  "member": "MySQLModifyConnectParam",
@@ -11239,7 +11237,6 @@
11239
11237
  "type": "object"
11240
11238
  },
11241
11239
  {
11242
- "default": "",
11243
11240
  "document": "PostgreSQL配置,Type为POSTGRESQL或TDSQL_C_POSTGRESQL时必填",
11244
11241
  "example": "xxx",
11245
11242
  "member": "PostgreSQLModifyConnectParam",
@@ -11248,7 +11245,6 @@
11248
11245
  "type": "object"
11249
11246
  },
11250
11247
  {
11251
- "default": "",
11252
11248
  "document": "MariaDB配置,Type为MARIADB时必填",
11253
11249
  "example": "xxx",
11254
11250
  "member": "MariaDBModifyConnectParam",
@@ -11257,7 +11253,6 @@
11257
11253
  "type": "object"
11258
11254
  },
11259
11255
  {
11260
- "default": "",
11261
11256
  "document": "SQLServer配置,Type为SQLSERVER时必填",
11262
11257
  "example": "xxx",
11263
11258
  "member": "SQLServerModifyConnectParam",
@@ -11266,7 +11261,6 @@
11266
11261
  "type": "object"
11267
11262
  },
11268
11263
  {
11269
- "default": "",
11270
11264
  "document": "Ctsdb配置,Type为CTSDB",
11271
11265
  "example": "xxx",
11272
11266
  "member": "CtsdbModifyConnectParam",
@@ -11275,13 +11269,20 @@
11275
11269
  "type": "object"
11276
11270
  },
11277
11271
  {
11278
- "default": "",
11279
11272
  "document": "Doris配置,Type为DORIS",
11280
11273
  "example": "xxx",
11281
11274
  "member": "DorisModifyConnectParam",
11282
11275
  "name": "DorisConnectParam",
11283
11276
  "required": false,
11284
11277
  "type": "object"
11278
+ },
11279
+ {
11280
+ "document": "Kafka配置,Type为 KAFKA 时必填",
11281
+ "example": "xxx",
11282
+ "member": "KafkaConnectParam",
11283
+ "name": "KafkaConnectParam",
11284
+ "required": false,
11285
+ "type": "object"
11285
11286
  }
11286
11287
  ],
11287
11288
  "type": "object"
@@ -11294,7 +11295,6 @@
11294
11295
  "example": "xxx",
11295
11296
  "member": "ConnectResourceResourceIdResp",
11296
11297
  "name": "Result",
11297
- "required": true,
11298
11298
  "type": "object",
11299
11299
  "value_allowed_null": false
11300
11300
  },
@@ -11352,6 +11352,69 @@
11352
11352
  ],
11353
11353
  "type": "object"
11354
11354
  },
11355
+ "ModifyDatahubTopicRequest": {
11356
+ "document": "ModifyDatahubTopic请求参数结构体",
11357
+ "members": [
11358
+ {
11359
+ "default": "",
11360
+ "document": "名称",
11361
+ "example": "xxx",
11362
+ "member": "string",
11363
+ "name": "Name",
11364
+ "required": true,
11365
+ "type": "string"
11366
+ },
11367
+ {
11368
+ "default": "",
11369
+ "document": "消息保留时间,单位:ms,当前最小值为60000ms。",
11370
+ "example": "1000",
11371
+ "member": "int64",
11372
+ "name": "RetentionMs",
11373
+ "required": true,
11374
+ "type": "int"
11375
+ },
11376
+ {
11377
+ "default": "",
11378
+ "document": "主题备注,是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线-。",
11379
+ "example": "xxx",
11380
+ "member": "string",
11381
+ "name": "Note",
11382
+ "required": false,
11383
+ "type": "string"
11384
+ },
11385
+ {
11386
+ "default": "",
11387
+ "document": "标签列表",
11388
+ "example": "1",
11389
+ "member": "Tag",
11390
+ "name": "Tags",
11391
+ "required": false,
11392
+ "type": "list"
11393
+ }
11394
+ ],
11395
+ "type": "object"
11396
+ },
11397
+ "ModifyDatahubTopicResponse": {
11398
+ "document": "ModifyDatahubTopic返回参数结构体",
11399
+ "members": [
11400
+ {
11401
+ "document": "返回结果集",
11402
+ "example": "无",
11403
+ "member": "JgwOperateResponse",
11404
+ "name": "Result",
11405
+ "required": true,
11406
+ "type": "object",
11407
+ "value_allowed_null": false
11408
+ },
11409
+ {
11410
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
11411
+ "member": "string",
11412
+ "name": "RequestId",
11413
+ "type": "string"
11414
+ }
11415
+ ],
11416
+ "type": "object"
11417
+ },
11355
11418
  "ModifyGroupOffsetsRequest": {
11356
11419
  "document": "ModifyGroupOffsets请求参数结构体",
11357
11420
  "members": [
@@ -554,9 +554,9 @@
554
554
  ],
555
555
  "ModifyConnectResource": [
556
556
  {
557
- "document": "",
558
- "input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyConnectResource\n<公共请求参数>\n\n{\n \"Description\": \"xx\",\n \"DtsConnectParam\": {\n \"UserName\": \"xx\",\n \"Resource\": \"xx\",\n \"GroupId\": \"xx\",\n \"Password\": \"xx\",\n \"Topic\": \"xx\",\n \"Port\": 0\n },\n \"ResourceName\": \"xx\",\n \"ResourceId\": \"reource-xxx\",\n \"Type\": \"DTS\"\n}",
559
- "output": "{\n \"Response\": {\n \"Result\": {\n \"ResourceId\": \"resource-xx\"\n },\n \"RequestId\": \"xx\"\n }\n}",
557
+ "document": "编辑Datahub连接源",
558
+ "input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyConnectResource\n<公共请求参数>\n\n{\n \"Description\": \"xxx\",\n \"DtsConnectParam\": {\n \"UserName\": \"xxx\",\n \"Resource\": \"xxx\",\n \"GroupId\": \"xxx\",\n \"Password\": \"xxx\",\n \"Topic\": \"xxx\",\n \"Port\": 0\n },\n \"ResourceName\": \"xxx\",\n \"ResourceId\": \"reource-xxx\",\n \"Type\": \"DTS\"\n}",
559
+ "output": "{\n \"Response\": {\n \"Result\": {\n \"ResourceId\": \"resource-xx\"\n },\n \"RequestId\": \"xxx\"\n }\n}",
560
560
  "title": "编辑Datahub连接源"
561
561
  }
562
562
  ],
@@ -568,6 +568,14 @@
568
568
  "title": "修改Datahub任务"
569
569
  }
570
570
  ],
571
+ "ModifyDatahubTopic": [
572
+ {
573
+ "document": "",
574
+ "input": "https://ckafka.tencentcloudapi.com/?Action=ModifyDatahubTopic\n&Name=xxx\n&Note=xxx\n&RetentionMs=3600000\n&<公共请求参数>",
575
+ "output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"xx\",\n \"ReturnCode\": \"xx\",\n \"Data\": {\n \"FlowId\": 0\n }\n },\n \"RequestId\": \"xx\"\n }\n}",
576
+ "title": "设置主题属性"
577
+ }
578
+ ],
571
579
  "ModifyGroupOffsets": [
572
580
  {
573
581
  "document": "",