tccli 3.0.1098.1__py2.py3-none-any.whl → 3.0.1100.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 (109) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cfw/v20190904/DescribeIPStatusList.md +4 -4
  3. tccli/examples/cls/v20201016/CreateCosRecharge.md +4 -4
  4. tccli/examples/cls/v20201016/CreateDashboardSubscribe.md +18 -0
  5. tccli/examples/cls/v20201016/DeleteDashboardSubscribe.md +18 -0
  6. tccli/examples/cls/v20201016/DescribeDashboardSubscribes.md +18 -0
  7. tccli/examples/cls/v20201016/ModifyCosRecharge.md +3 -3
  8. tccli/examples/cls/v20201016/ModifyDashboardSubscribe.md +18 -0
  9. tccli/examples/cls/v20201016/OpenKafkaConsumer.md +1 -1
  10. tccli/examples/cls/v20201016/SearchDashboardSubscribe.md +35 -0
  11. tccli/examples/cynosdb/v20190107/DescribeChangedParamsAfterUpgrade.md +31 -0
  12. tccli/examples/dlc/v20210125/CreateSparkSessionBatchSQL.md +1 -1
  13. tccli/examples/domain/v20180808/ModifyTemplate.md +73 -0
  14. tccli/examples/ess/v20201111/DescribeBatchOrganizationRegistrationUrls.md +27 -0
  15. tccli/examples/faceid/v20180301/GetFaceIdResult.md +3 -1
  16. tccli/examples/hunyuan/v20230901/ChatCompletions.md +183 -0
  17. tccli/examples/hunyuan/v20230901/ChatPro.md +2 -2
  18. tccli/examples/ims/v20200713/ImageModeration.md +4 -1
  19. tccli/examples/lke/v20231130/GetEmbedding.md +1 -1
  20. tccli/examples/lke/v20231130/GetMsgRecord.md +4 -1
  21. tccli/examples/ocr/v20181119/RecognizeGeneralTextImageWarn.md +83 -0
  22. tccli/examples/rum/v20210622/CreateWhitelist.md +2 -2
  23. tccli/examples/rum/v20210622/DescribeRumGroupLog.md +3 -3
  24. tccli/examples/rum/v20210622/DescribeRumLogExport.md +6 -6
  25. tccli/examples/rum/v20210622/DescribeRumStatsLogList.md +2 -2
  26. tccli/examples/teo/v20220901/CreatePlan.md +47 -0
  27. tccli/examples/teo/v20220901/DescribeRealtimeLogDeliveryTasks.md +42 -21
  28. tccli/examples/teo/v20220901/DestroyPlan.md +20 -0
  29. tccli/examples/teo/v20220901/IncreasePlanQuota.md +46 -0
  30. tccli/examples/teo/v20220901/ModifyPlan.md +21 -0
  31. tccli/examples/teo/v20220901/RenewPlan.md +23 -0
  32. tccli/examples/teo/v20220901/UpgradePlan.md +23 -0
  33. tccli/examples/tione/v20191022/UpdateCodeRepository.md +1 -1
  34. tccli/examples/tke/v20180525/CheckInstancesUpgradeAble.md +15 -7
  35. tccli/examples/tke/v20180525/CreateCluster.md +58 -142
  36. tccli/examples/tke/v20180525/DescribeClusterNodePools.md +1 -0
  37. tccli/examples/tke/v20180525/GetUpgradeInstanceProgress.md +18 -19
  38. tccli/examples/tke/v20180525/ModifyClusterAuthenticationOptions.md +3 -0
  39. tccli/examples/tke/v20180525/ModifyNodePoolInstanceTypes.md +1 -1
  40. tccli/examples/tms/v20201229/AnswerQuestion.md +21 -0
  41. tccli/examples/vpc/v20170312/DescribeVpnGatewayRoutes.md +2 -1
  42. tccli/examples/vpc/v20170312/ModifyVpnGatewayRoutes.md +8 -4
  43. tccli/services/aiart/v20221229/api.json +5 -5
  44. tccli/services/ccc/v20200210/api.json +1 -1
  45. tccli/services/cfs/v20190719/api.json +27 -27
  46. tccli/services/cfw/v20190904/api.json +5 -5
  47. tccli/services/cfw/v20190904/examples.json +1 -1
  48. tccli/services/cloudstudio/v20230508/api.json +13 -4
  49. tccli/services/cls/cls_client.py +337 -72
  50. tccli/services/cls/v20201016/api.json +501 -66
  51. tccli/services/cls/v20201016/examples.json +45 -5
  52. tccli/services/cynosdb/cynosdb_client.py +53 -0
  53. tccli/services/cynosdb/v20190107/api.json +120 -2
  54. tccli/services/cynosdb/v20190107/examples.json +8 -0
  55. tccli/services/dcdb/v20180411/api.json +2 -2
  56. tccli/services/dlc/v20210125/api.json +14 -4
  57. tccli/services/dlc/v20210125/examples.json +1 -1
  58. tccli/services/domain/domain_client.py +53 -0
  59. tccli/services/domain/v20180808/api.json +62 -0
  60. tccli/services/domain/v20180808/examples.json +8 -0
  61. tccli/services/dts/v20211206/api.json +1 -1
  62. tccli/services/ess/ess_client.py +57 -4
  63. tccli/services/ess/v20201111/api.json +89 -1
  64. tccli/services/ess/v20201111/examples.json +8 -0
  65. tccli/services/essbasic/v20210526/api.json +1 -1
  66. tccli/services/faceid/v20180301/api.json +21 -1
  67. tccli/services/faceid/v20180301/examples.json +1 -1
  68. tccli/services/hunyuan/hunyuan_client.py +53 -0
  69. tccli/services/hunyuan/v20230901/api.json +165 -26
  70. tccli/services/hunyuan/v20230901/examples.json +33 -1
  71. tccli/services/ims/v20200713/api.json +13 -0
  72. tccli/services/ims/v20200713/examples.json +1 -1
  73. tccli/services/ims/v20201229/api.json +2 -1
  74. tccli/services/iotvideo/v20211125/api.json +15 -0
  75. tccli/services/lcic/v20220817/api.json +1 -1
  76. tccli/services/lke/lke_client.py +114 -8
  77. tccli/services/lke/v20231130/api.json +492 -0
  78. tccli/services/lke/v20231130/examples.json +18 -2
  79. tccli/services/mariadb/v20170312/api.json +2 -2
  80. tccli/services/monitor/v20180724/api.json +1 -1
  81. tccli/services/mps/v20190612/api.json +46 -1
  82. tccli/services/ocr/ocr_client.py +53 -0
  83. tccli/services/ocr/v20181119/api.json +156 -0
  84. tccli/services/ocr/v20181119/examples.json +8 -0
  85. tccli/services/rce/v20201103/api.json +9 -9
  86. tccli/services/rum/v20210622/api.json +37 -35
  87. tccli/services/rum/v20210622/examples.json +7 -7
  88. tccli/services/tdmq/v20200217/api.json +6 -6
  89. tccli/services/teo/teo_client.py +338 -20
  90. tccli/services/teo/v20220901/api.json +503 -18
  91. tccli/services/teo/v20220901/examples.json +62 -2
  92. tccli/services/tione/v20191022/api.json +6 -7
  93. tccli/services/tione/v20191022/examples.json +1 -1
  94. tccli/services/tione/v20211111/api.json +2 -0
  95. tccli/services/tke/v20180525/api.json +77 -93
  96. tccli/services/tke/v20180525/examples.json +7 -7
  97. tccli/services/tms/tms_client.py +53 -0
  98. tccli/services/tms/v20201229/api.json +44 -0
  99. tccli/services/tms/v20201229/examples.json +8 -0
  100. tccli/services/tmt/v20180321/api.json +1 -1
  101. tccli/services/tse/v20201207/api.json +49 -1
  102. tccli/services/vpc/v20170312/api.json +3 -0
  103. tccli/services/vpc/v20170312/examples.json +3 -3
  104. tccli/services/waf/v20180125/api.json +2 -2
  105. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/METADATA +2 -2
  106. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/RECORD +109 -92
  107. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/WHEEL +0 -0
  108. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/entry_points.txt +0 -0
  109. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/license_files/LICENSE +0 -0
@@ -109,11 +109,19 @@
109
109
  "CreateCosRecharge": [
110
110
  {
111
111
  "document": "创建cos导入任务",
112
- "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCosRecharge\n<公共请求参数>\n\n{\n \"TopicId\": \"xxx-xxx-xxx-xxx\",\n \"LogsetId\": \"xxx-xxx-xxx-xxx\",\n \"Name\": \"test_name\",\n \"Bucket\": \"examplebucket-1250000000\",\n \"BucketRegion\": \"ap-guangzhou\",\n \"Prefix\": \"text_prefix\",\n \"LogType\": \"minimalist_log\",\n \"Compress\": \"gzip\",\n \"ExtractRuleInfo\": {\n \"TimeKey\": \"date\",\n \"TimeFormat\": \"%Y-%m-%d %H:%M:%S\",\n \"Delimiter\": \"|\",\n \"LogRegex\": \".*\",\n \"BeginRegex\": \"^\",\n \"Keys\": [\n \"date\",\n \"\",\n \"content\"\n ],\n \"FilterKeyRegex\": [\n {\n \"Key\": \"xxx\",\n \"Regex\": \"ssss\"\n }\n ],\n \"UnMatchLogKey\": \"testlog\",\n \"UnMatchUpLoadSwitch\": true,\n \"Backtracking\": -1\n }\n}",
113
- "output": "{\n \"Response\": {\n \"Id\": \"abc-dec-ff-ee\",\n \"RequestId\": \"xxx-x-xx-xx\"\n }\n}",
112
+ "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCosRecharge\n<公共请求参数>\n\n{\n \"TopicId\": \"ae13f7db-00b5-41ac-916e-407802axxxxx\",\n \"LogsetId\": \"0af7e6bb-fc91-4ee8-ad24-1129e9cxxxxx\",\n \"Name\": \"test_name\",\n \"Bucket\": \"examplebucket-1250000000\",\n \"BucketRegion\": \"ap-guangzhou\",\n \"Prefix\": \"text_prefix\",\n \"LogType\": \"minimalist_log\",\n \"Compress\": \"gzip\",\n \"ExtractRuleInfo\": {\n \"TimeKey\": \"date\",\n \"TimeFormat\": \"%Y-%m-%d %H:%M:%S\",\n \"Delimiter\": \"|\",\n \"LogRegex\": \".*\",\n \"BeginRegex\": \"^\",\n \"Keys\": [\n \"date\",\n \"\",\n \"content\"\n ],\n \"FilterKeyRegex\": [\n {\n \"Key\": \"xxx\",\n \"Regex\": \"ssss\"\n }\n ],\n \"UnMatchLogKey\": \"testlog\",\n \"UnMatchUpLoadSwitch\": true,\n \"Backtracking\": -1\n }\n}",
113
+ "output": "{\n \"Response\": {\n \"Id\": \"ca092608-98e8-4ad9-83c5-a6b3bbexxxxx\",\n \"RequestId\": \"dc78ee34-237b-41c7-8fcd-601a99b271f6\"\n }\n}",
114
114
  "title": "创建cos导入任务"
115
115
  }
116
116
  ],
117
+ "CreateDashboardSubscribe": [
118
+ {
119
+ "document": "创建仪表盘订阅",
120
+ "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDashboardSubscribe\n<公共请求参数>\n\n{}",
121
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
122
+ "title": "创建仪表盘订阅"
123
+ }
124
+ ],
117
125
  "CreateDataTransform": [
118
126
  {
119
127
  "document": "数据加工提供对日志数据的过滤、清洗、脱敏、富化、分发等能力,可对标开源组件 Logstash。使用数据加工DSL(Domain Specified Language )函数,底层基于 Flink 实现,您可轻松处理日志流数据。\n",
@@ -250,6 +258,14 @@
250
258
  "title": "删除投递配置"
251
259
  }
252
260
  ],
261
+ "DeleteDashboardSubscribe": [
262
+ {
263
+ "document": "",
264
+ "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDashboardSubscribe\n<公共请求参数>\n\n{}",
265
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
266
+ "title": "创建仪表盘订阅"
267
+ }
268
+ ],
253
269
  "DeleteDataTransform": [
254
270
  {
255
271
  "document": "删除数据加工任务",
@@ -402,6 +418,14 @@
402
418
  "title": "获取cos导入配置"
403
419
  }
404
420
  ],
421
+ "DescribeDashboardSubscribes": [
422
+ {
423
+ "document": "",
424
+ "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDashboardSubscribes\n<公共请求参数>\n\n{}",
425
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
426
+ "title": "获取仪表盘订阅列表"
427
+ }
428
+ ],
405
429
  "DescribeDashboards": [
406
430
  {
407
431
  "document": "通过tag:key获取仪表盘",
@@ -617,11 +641,19 @@
617
641
  "ModifyCosRecharge": [
618
642
  {
619
643
  "document": "修改cos导入任务",
620
- "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCosRecharge\n<公共请求参数>\n\n{\n \"Id\": \"1\",\n \"TopicId\": \"xxx-xxx-xxx-xxx\",\n \"Name\": \"test_name\"\n}",
621
- "output": "{\n \"Response\": {\n \"RequestId\": \"6ef60xxx-0xxx-4xxx-bxxx-270359fb5xxx\"\n }\n}",
644
+ "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCosRecharge\n<公共请求参数>\n\n{\n \"Id\": \"ca092608-98e8-4ad9-83c5-a6b3bbexxxxx\",\n \"TopicId\": \"ae13f7db-00b5-41ac-916e-407802axxxxx\",\n \"Name\": \"test_name\"\n}",
645
+ "output": "{\n \"Response\": {\n \"RequestId\": \"dc78ee34-237b-41c7-8fcd-601a99bxxxxx\"\n }\n}",
622
646
  "title": "修改cos导入任务"
623
647
  }
624
648
  ],
649
+ "ModifyDashboardSubscribe": [
650
+ {
651
+ "document": "修改仪表盘订阅",
652
+ "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDashboardSubscribe\n<公共请求参数>\n\n{}",
653
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
654
+ "title": "修改仪表盘订阅"
655
+ }
656
+ ],
625
657
  "ModifyDataTransform": [
626
658
  {
627
659
  "document": "数据加工提供对日志数据的过滤、清洗、脱敏、富化、分发等能力,可对标开源组件 Logstash。使用数据加工DSL(Domain Specified Language )函数,底层基于 Flink 实现,您可轻松处理日志流数据。\n",
@@ -697,7 +729,7 @@
697
729
  "OpenKafkaConsumer": [
698
730
  {
699
731
  "document": "打开Kafka协议消费功能",
700
- "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenKafkaConsumer\n<公共请求参数>\n\n{\n \"FromTopicId\": \"a5ce0c9c-0690-44a5-bc79-5f2190626bd0\",\n \"Compression\": 1\n}",
732
+ "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenKafkaConsumer\n<公共请求参数>\n\n{\n \"FromTopicId\": \"a5ce0c9c-0690-44a5-bc79-5f2190626bd0\",\n \"Compression\": 0\n}",
701
733
  "output": "{\n \"Response\": {\n \"TopicID\": \"out-a5ce0c9c-0690-44a5-bc79-5f2190626bd0\",\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
702
734
  "title": "打开Kafka协议消费功能"
703
735
  }
@@ -748,6 +780,14 @@
748
780
  "title": "预览cos导入信息"
749
781
  }
750
782
  ],
783
+ "SearchDashboardSubscribe": [
784
+ {
785
+ "document": "预览仪表盘订阅",
786
+ "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SearchDashboardSubscribe\n<公共请求参数>\n\n{\n \"DashboardId\": \"xxx-xxxxxx-xxxxxx-xxxx\",\n \"Name\": \"仪表盘-CLS-日报\",\n \"SubscribeData\": {\n \"DashboardTime\": [\n \"now-5m\",\n \"now\"\n ],\n \"TemplateVariables\": [\n {\n \"Key\": \"name\",\n \"Values\": [\n \"abc\"\n ]\n }\n ],\n \"NoticeModes\": [\n {\n \"ReceiverType\": \"Uin\",\n \"Values\": [\n \"168053\"\n ],\n \"ReceiverChannels\": [\n \"Sms\"\n ]\n },\n {\n \"ReceiverType\": \"Group\",\n \"Values\": [\n \"10721522\",\n \"9553840\"\n ],\n \"ReceiverChannels\": [\n \"Sms\"\n ]\n },\n {\n \"ReceiverType\": \"Email\",\n \"Values\": [\n \"3333@qq.com\",\n \"xxx@163.com\"\n ],\n \"ReceiverChannels\": []\n }\n ],\n \"Timezone\": \"Asia/Shanghai\",\n \"SubscribeLanguage\": \"zh\",\n \"JumpDomain\": \"https://console.cloud.tencent.com\"\n }\n}",
787
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
788
+ "title": "预览仪表盘订阅"
789
+ }
790
+ ],
751
791
  "SearchLog": [
752
792
  {
753
793
  "document": "查询http响应状态码(http_code)为200的日志",
@@ -1369,6 +1369,58 @@ def doExportInstanceSlowQueries(args, parsed_globals):
1369
1369
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
1370
 
1371
1371
 
1372
+ def doDescribeChangedParamsAfterUpgrade(args, parsed_globals):
1373
+ g_param = parse_global_arg(parsed_globals)
1374
+
1375
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1376
+ cred = credential.CVMRoleCredential()
1377
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1378
+ cred = credential.STSAssumeRoleCredential(
1379
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1380
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1381
+ )
1382
+ 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):
1383
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1384
+ else:
1385
+ cred = credential.Credential(
1386
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1387
+ )
1388
+ http_profile = HttpProfile(
1389
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1390
+ reqMethod="POST",
1391
+ endpoint=g_param[OptionsDefine.Endpoint],
1392
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1393
+ )
1394
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1395
+ if g_param[OptionsDefine.Language]:
1396
+ profile.language = g_param[OptionsDefine.Language]
1397
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1398
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
1399
+ client._sdkVersion += ("_CLI_" + __version__)
1400
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
+ model = models.DescribeChangedParamsAfterUpgradeRequest()
1402
+ model.from_json_string(json.dumps(args))
1403
+ start_time = time.time()
1404
+ while True:
1405
+ rsp = client.DescribeChangedParamsAfterUpgrade(model)
1406
+ result = rsp.to_json_string()
1407
+ try:
1408
+ json_obj = json.loads(result)
1409
+ except TypeError as e:
1410
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1411
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1412
+ break
1413
+ cur_time = time.time()
1414
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1415
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1416
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1417
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1418
+ else:
1419
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1420
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1421
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
+
1423
+
1372
1424
  def doDescribeAccountPrivileges(args, parsed_globals):
1373
1425
  g_param = parse_global_arg(parsed_globals)
1374
1426
 
@@ -7074,6 +7126,7 @@ ACTION_MAP = {
7074
7126
  "DescribeProxyNodes": doDescribeProxyNodes,
7075
7127
  "DisassociateSecurityGroups": doDisassociateSecurityGroups,
7076
7128
  "ExportInstanceSlowQueries": doExportInstanceSlowQueries,
7129
+ "DescribeChangedParamsAfterUpgrade": doDescribeChangedParamsAfterUpgrade,
7077
7130
  "DescribeAccountPrivileges": doDescribeAccountPrivileges,
7078
7131
  "CloseClusterPasswordComplexity": doCloseClusterPasswordComplexity,
7079
7132
  "RollBackCluster": doRollBackCluster,
@@ -280,6 +280,13 @@
280
280
  "output": "DescribeBinlogsResponse",
281
281
  "status": "online"
282
282
  },
283
+ "DescribeChangedParamsAfterUpgrade": {
284
+ "document": "本接口(DescribeChangedParamsAfterUpgrade)用于查询升降配运行参数对比",
285
+ "input": "DescribeChangedParamsAfterUpgradeRequest",
286
+ "name": "升降配运行参数对比",
287
+ "output": "DescribeChangedParamsAfterUpgradeResponse",
288
+ "status": "online"
289
+ },
283
290
  "DescribeClusterDatabases": {
284
291
  "document": "获取集群数据库列表",
285
292
  "input": "DescribeClusterDatabasesRequest",
@@ -4476,7 +4483,7 @@
4476
4483
  },
4477
4484
  {
4478
4485
  "disabled": false,
4479
- "document": "数据库代理组节点个数",
4486
+ "document": "数据库代理组节点个数(该参数不再建议使用,建议使用ProxyZones)",
4480
4487
  "example": "2",
4481
4488
  "member": "int64",
4482
4489
  "name": "ProxyCount",
@@ -4530,7 +4537,7 @@
4530
4537
  },
4531
4538
  {
4532
4539
  "disabled": false,
4533
- "document": "数据库节点信息",
4540
+ "document": "数据库节点信息(该参数与ProxyCount需要任选一个输入)",
4534
4541
  "example": "无",
4535
4542
  "member": "ProxyZone",
4536
4543
  "name": "ProxyZones",
@@ -8553,6 +8560,71 @@
8553
8560
  ],
8554
8561
  "type": "object"
8555
8562
  },
8563
+ "DescribeChangedParamsAfterUpgradeRequest": {
8564
+ "document": "DescribeChangedParamsAfterUpgrade请求参数结构体",
8565
+ "members": [
8566
+ {
8567
+ "disabled": false,
8568
+ "document": "集群ID",
8569
+ "example": "cynosdbmysql-1xcycbu8",
8570
+ "member": "string",
8571
+ "name": "InstanceId",
8572
+ "required": true,
8573
+ "type": "string"
8574
+ },
8575
+ {
8576
+ "disabled": false,
8577
+ "document": "变配后的CPU",
8578
+ "example": "1",
8579
+ "member": "int64",
8580
+ "name": "DstCpu",
8581
+ "required": true,
8582
+ "type": "int"
8583
+ },
8584
+ {
8585
+ "disabled": false,
8586
+ "document": "变配后的MEM,单位G",
8587
+ "example": "1",
8588
+ "member": "int64",
8589
+ "name": "DstMem",
8590
+ "required": true,
8591
+ "type": "int"
8592
+ }
8593
+ ],
8594
+ "type": "object"
8595
+ },
8596
+ "DescribeChangedParamsAfterUpgradeResponse": {
8597
+ "document": "DescribeChangedParamsAfterUpgrade返回参数结构体",
8598
+ "members": [
8599
+ {
8600
+ "disabled": false,
8601
+ "document": "参数个数",
8602
+ "example": "2",
8603
+ "member": "int64",
8604
+ "name": "TotalCount",
8605
+ "output_required": true,
8606
+ "type": "int",
8607
+ "value_allowed_null": false
8608
+ },
8609
+ {
8610
+ "disabled": false,
8611
+ "document": "实例参数列表\n注意:此字段可能返回 null,表示取不到有效值。",
8612
+ "example": "无",
8613
+ "member": "ParamItemInfo",
8614
+ "name": "Items",
8615
+ "output_required": true,
8616
+ "type": "list",
8617
+ "value_allowed_null": true
8618
+ },
8619
+ {
8620
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
8621
+ "member": "string",
8622
+ "name": "RequestId",
8623
+ "type": "string"
8624
+ }
8625
+ ],
8626
+ "type": "object"
8627
+ },
8556
8628
  "DescribeClusterDatabasesRequest": {
8557
8629
  "document": "DescribeClusterDatabases请求参数结构体",
8558
8630
  "members": [
@@ -15740,6 +15812,52 @@
15740
15812
  ],
15741
15813
  "usage": "out"
15742
15814
  },
15815
+ "ParamItemInfo": {
15816
+ "document": "参数变化信息",
15817
+ "members": [
15818
+ {
15819
+ "disabled": false,
15820
+ "document": "参数名字\n注意:此字段可能返回 null,表示取不到有效值。",
15821
+ "example": "无",
15822
+ "member": "string",
15823
+ "name": "ParamName",
15824
+ "output_required": false,
15825
+ "type": "string",
15826
+ "value_allowed_null": true
15827
+ },
15828
+ {
15829
+ "disabled": false,
15830
+ "document": "参数新值\n\n注意:此字段可能返回 null,表示取不到有效值。",
15831
+ "example": "无",
15832
+ "member": "string",
15833
+ "name": "NewValue",
15834
+ "output_required": false,
15835
+ "type": "string",
15836
+ "value_allowed_null": true
15837
+ },
15838
+ {
15839
+ "disabled": false,
15840
+ "document": "参数旧值\n\n注意:此字段可能返回 null,表示取不到有效值。",
15841
+ "example": "无",
15842
+ "member": "string",
15843
+ "name": "OldValue",
15844
+ "output_required": false,
15845
+ "type": "string",
15846
+ "value_allowed_null": true
15847
+ },
15848
+ {
15849
+ "disabled": false,
15850
+ "document": "参数公式\n\n注意:此字段可能返回 null,表示取不到有效值。",
15851
+ "example": "无",
15852
+ "member": "string",
15853
+ "name": "ValueFunction",
15854
+ "output_required": false,
15855
+ "type": "string",
15856
+ "value_allowed_null": true
15857
+ }
15858
+ ],
15859
+ "usage": "out"
15860
+ },
15743
15861
  "ParamTemplateListInfo": {
15744
15862
  "document": "参数模板信息",
15745
15863
  "members": [
@@ -338,6 +338,14 @@
338
338
  "title": "查询集群Binlog日志列表"
339
339
  }
340
340
  ],
341
+ "DescribeChangedParamsAfterUpgrade": [
342
+ {
343
+ "document": "查询升降配运行参数对比",
344
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeChangedParamsAfterUpgrade\n<公共请求参数>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-p8dst5v9\",\n \"DstCpu\": 1,\n \"DstMem\": 1\n}",
345
+ "output": "{\n \"Response\": {\n \"RequestId\": \"7613eed6-5eb5-4d17-ae69-dd93c44d7ad4\",\n \"TotalCount\": 1,\n \"Items\": [\n {\n \"ParamName\": \"demoString\",\n \"NewValue\": \"demoString\",\n \"OldValue\": \"demoString\",\n \"ValueFunction\": \"demoString\"\n }\n ]\n }\n}",
346
+ "title": "查询升降配运行参数对比"
347
+ }
348
+ ],
341
349
  "DescribeClusterDatabases": [
342
350
  {
343
351
  "document": "",
@@ -15,7 +15,7 @@
15
15
  "status": "online"
16
16
  },
17
17
  "CancelDcnJob": {
18
- "document": "取消DCN同步",
18
+ "document": "本接口(CancelDcnJob)用于取消DCN同步",
19
19
  "input": "CancelDcnJobRequest",
20
20
  "name": "取消DCN同步",
21
21
  "output": "CancelDcnJobResponse",
@@ -731,7 +731,7 @@
731
731
  "example": "11211",
732
732
  "member": "int64",
733
733
  "name": "FlowId",
734
- "required": true,
734
+ "output_required": true,
735
735
  "type": "int",
736
736
  "value_allowed_null": false
737
737
  },
@@ -3532,7 +3532,7 @@
3532
3532
  },
3533
3533
  {
3534
3534
  "disabled": false,
3535
- "document": "数据访问策略,CAM Role arn",
3535
+ "document": "数据访问策略,CAM Role arn,控制台通过数据作业—>作业配置获取,SDK通过DescribeUserRoles接口获取对应的值;",
3536
3536
  "example": "12",
3537
3537
  "member": "int64",
3538
3538
  "name": "RoleArn",
@@ -14379,7 +14379,7 @@
14379
14379
  },
14380
14380
  {
14381
14381
  "disabled": false,
14382
- "document": "spark作业最近运行状态",
14382
+ "document": "spark作业最近运行状态,初始化:0,运行中:1,成功:2,数据写入中: 3, 排队中: 4, 失败: -1, 已删除: -3,已过期: -5",
14383
14383
  "example": "0",
14384
14384
  "member": "int64",
14385
14385
  "name": "JobStatus",
@@ -14556,6 +14556,16 @@
14556
14556
  "output_required": false,
14557
14557
  "type": "bool",
14558
14558
  "value_allowed_null": true
14559
+ },
14560
+ {
14561
+ "disabled": false,
14562
+ "document": "引擎详细类型:SparkSQL、PrestoSQL、SparkBatch、StandardSpark、StandardPresto\n注意:此字段可能返回 null,表示取不到有效值。",
14563
+ "example": "SparkSQL",
14564
+ "member": "string",
14565
+ "name": "EngineTypeDetail",
14566
+ "output_required": false,
14567
+ "type": "string",
14568
+ "value_allowed_null": true
14559
14569
  }
14560
14570
  ],
14561
14571
  "usage": "out"
@@ -16567,7 +16577,7 @@
16567
16577
  {
16568
16578
  "disabled": false,
16569
16579
  "document": "引擎ID",
16570
- "example": "DataEngine-xxx",
16580
+ "example": "DataEngine-1d7jxd34h",
16571
16581
  "member": "string",
16572
16582
  "name": "DataEngineId",
16573
16583
  "required": true,
@@ -16584,7 +16594,7 @@
16584
16594
  },
16585
16595
  {
16586
16596
  "disabled": false,
16587
- "document": "作业引擎资源配置模版",
16597
+ "document": "作业引擎资源配置模板",
16588
16598
  "example": "无",
16589
16599
  "member": "SessionResourceTemplate",
16590
16600
  "name": "SessionResourceTemplate",
@@ -251,7 +251,7 @@
251
251
  "CreateSparkSessionBatchSQL": [
252
252
  {
253
253
  "document": "本接口(CreateSparkSessionBatchSQL)用于向Spark作业引擎提交Spark SQL批任务",
254
- "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSparkSessionBatchSQL\n<公共请求参数>\n\n{\n \"DataEngineName\": \"data_engine_1\",\n \"ExecuteSQL\": \"select 1\",\n \"DriverSize\": \"small\",\n \"ExecutorSize\": \"small\",\n \"ExecutorNumbers\": 1,\n \"ExecutorMaxNumbers\": 1,\n \"TimeoutInSecond\": 2,\n \"SessionId\": \"\",\n \"SessionName\": \"livy-session-123\",\n \"Arguments\": [\n {\n \"Value\": \"eni\",\n \"Key\": \"test_eni\"\n }\n ]\n}",
254
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSparkSessionBatchSQL\n<公共请求参数>\n\n{\n \"DataEngineName\": \"data_engine_1\",\n \"ExecuteSQL\": \"c2VsZWN0IDE=\",\n \"DriverSize\": \"small\",\n \"ExecutorSize\": \"small\",\n \"ExecutorNumbers\": 1,\n \"ExecutorMaxNumbers\": 1,\n \"TimeoutInSecond\": 2,\n \"SessionId\": \"\",\n \"SessionName\": \"livy-session-123\",\n \"Arguments\": [\n {\n \"Value\": \"eni\",\n \"Key\": \"test_eni\"\n }\n ]\n}",
255
255
  "output": "{\n \"Response\": {\n \"BatchId\": \"d3018ad4-9a7e-4f64-a3f4-f38507c69742\",\n \"Statements\": [\n {\n \"TaskId\": \"098923ea-d6c0-4cd9-bbed-2e90c9cf04dc\",\n \"SQL\": \"select 1;\"\n }\n ],\n \"RequestId\": \"b8sd7dd7-ekd4-4e5e-993e-e5db64fa21c1\"\n }\n}",
256
256
  "title": "创建并执行Spark SQL批任务"
257
257
  }
@@ -1421,6 +1421,58 @@ def doBatchModifyDomainInfo(args, parsed_globals):
1421
1421
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
1422
 
1423
1423
 
1424
+ def doModifyTemplate(args, parsed_globals):
1425
+ g_param = parse_global_arg(parsed_globals)
1426
+
1427
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1428
+ cred = credential.CVMRoleCredential()
1429
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1430
+ cred = credential.STSAssumeRoleCredential(
1431
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1432
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1433
+ )
1434
+ 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):
1435
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1436
+ else:
1437
+ cred = credential.Credential(
1438
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1439
+ )
1440
+ http_profile = HttpProfile(
1441
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1442
+ reqMethod="POST",
1443
+ endpoint=g_param[OptionsDefine.Endpoint],
1444
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1445
+ )
1446
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1447
+ if g_param[OptionsDefine.Language]:
1448
+ profile.language = g_param[OptionsDefine.Language]
1449
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1450
+ client = mod.DomainClient(cred, g_param[OptionsDefine.Region], profile)
1451
+ client._sdkVersion += ("_CLI_" + __version__)
1452
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1453
+ model = models.ModifyTemplateRequest()
1454
+ model.from_json_string(json.dumps(args))
1455
+ start_time = time.time()
1456
+ while True:
1457
+ rsp = client.ModifyTemplate(model)
1458
+ result = rsp.to_json_string()
1459
+ try:
1460
+ json_obj = json.loads(result)
1461
+ except TypeError as e:
1462
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1463
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1464
+ break
1465
+ cur_time = time.time()
1466
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1467
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1468
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1469
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1470
+ else:
1471
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1472
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1473
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1474
+
1475
+
1424
1476
  def doTransferProhibitionBatch(args, parsed_globals):
1425
1477
  g_param = parse_global_arg(parsed_globals)
1426
1478
 
@@ -2135,6 +2187,7 @@ ACTION_MAP = {
2135
2187
  "DescribeTemplateList": doDescribeTemplateList,
2136
2188
  "DeleteReservedPreDomainInfo": doDeleteReservedPreDomainInfo,
2137
2189
  "BatchModifyDomainInfo": doBatchModifyDomainInfo,
2190
+ "ModifyTemplate": doModifyTemplate,
2138
2191
  "TransferProhibitionBatch": doTransferProhibitionBatch,
2139
2192
  "UploadImage": doUploadImage,
2140
2193
  "UpdateProhibitionBatch": doUpdateProhibitionBatch,
@@ -217,6 +217,13 @@
217
217
  "output": "ModifyIntlCustomDnsHostResponse",
218
218
  "status": "online"
219
219
  },
220
+ "ModifyTemplate": {
221
+ "document": "修改模板信息",
222
+ "input": "ModifyTemplateRequest",
223
+ "name": "修改模板",
224
+ "output": "ModifyTemplateResponse",
225
+ "status": "online"
226
+ },
220
227
  "RenewDomainBatch": {
221
228
  "document": "本接口 ( RenewDomainBatch ) 用于批量续费域名 。\n",
222
229
  "input": "RenewDomainBatchRequest",
@@ -3055,6 +3062,61 @@
3055
3062
  ],
3056
3063
  "type": "object"
3057
3064
  },
3065
+ "ModifyTemplateRequest": {
3066
+ "document": "ModifyTemplate请求参数结构体",
3067
+ "members": [
3068
+ {
3069
+ "disabled": false,
3070
+ "document": "证件信息",
3071
+ "example": "无",
3072
+ "member": "CertificateInfo",
3073
+ "name": "CertificateInfo",
3074
+ "required": true,
3075
+ "type": "object"
3076
+ },
3077
+ {
3078
+ "disabled": false,
3079
+ "document": "联系人信息",
3080
+ "example": "无",
3081
+ "member": "ContactInfo",
3082
+ "name": "ContactInfo",
3083
+ "required": true,
3084
+ "type": "object"
3085
+ },
3086
+ {
3087
+ "disabled": false,
3088
+ "document": "模板ID",
3089
+ "example": "字符串",
3090
+ "member": "string",
3091
+ "name": "TemplateId",
3092
+ "required": true,
3093
+ "type": "string"
3094
+ }
3095
+ ],
3096
+ "type": "object"
3097
+ },
3098
+ "ModifyTemplateResponse": {
3099
+ "document": "ModifyTemplate返回参数结构体",
3100
+ "members": [
3101
+ {
3102
+ "disabled": false,
3103
+ "document": "模板信息",
3104
+ "example": "无",
3105
+ "member": "TemplateInfo",
3106
+ "name": "Template",
3107
+ "required": true,
3108
+ "type": "object",
3109
+ "value_allowed_null": false
3110
+ },
3111
+ {
3112
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3113
+ "member": "string",
3114
+ "name": "RequestId",
3115
+ "type": "string"
3116
+ }
3117
+ ],
3118
+ "type": "object"
3119
+ },
3058
3120
  "PhoneEmailData": {
3059
3121
  "document": "手机号邮箱列表",
3060
3122
  "members": [
@@ -254,6 +254,14 @@
254
254
  "title": "修改自定义DNS"
255
255
  }
256
256
  ],
257
+ "ModifyTemplate": [
258
+ {
259
+ "document": "",
260
+ "input": "https://domain.tencentcloudapi.com/?Action=ModifyTemplate\n&TemplateId=字符串\n&CertificateInfo.CertificateCode=字符串\n&CertificateInfo.CertificateType=字符串\n&CertificateInfo.ImgUrl=字符串\n&ContactInfo.OrganizationNameCN=字符串\n&ContactInfo.OrganizationName=字符串\n&ContactInfo.RegistrantNameCN=字符串\n&ContactInfo.RegistrantName=字符串\n&ContactInfo.ProvinceCN=字符串\n&ContactInfo.Province=字符串\n&ContactInfo.CityCN=字符串\n&ContactInfo.City=字符串\n&ContactInfo.StreetCN=字符串\n&ContactInfo.Street=字符串\n&ContactInfo.CountryCN=字符串\n&ContactInfo.Country=字符串\n&ContactInfo.Telephone=字符串\n&ContactInfo.Email=字符串\n&ContactInfo.ZipCode=字符串\n&ContactInfo.RegistrantType=字符串\n&<公共请求参数>",
261
+ "output": "{\n \"Response\": {\n \"RequestId\": \"c9308288-2016-4197-bba1-baf0a9ea0a6f\",\n \"Template\": {\n \"AuditReason\": \"\",\n \"IsValidTemplate\": 1,\n \"UpdatedOn\": \"2020-07-30 16:44:04\",\n \"AuditStatus\": \"InAudit\",\n \"CreatedOn\": \"2020-07-30 16:44:04\",\n \"InvalidReason\": \"\",\n \"CertificateInfo\": {\n \"CertificateType\": \"YYZZ\",\n \"CertificateCode\": \"441900000553075\",\n \"ImgUrl\": \"https://wss-10039692.cos.ap-shanghai.myqcloudXj\"\n },\n \"TemplateId\": \"tmpl-3mm9fxug\",\n \"UserUin\": \"1213059621\",\n \"ContactInfo\": {\n \"Province\": \"shen zhen shi\",\n \"RegistrantType\": \"E\",\n \"OrganizationName\": \"niubihonghong\",\n \"OrganizationNameCN\": \"牛逼哄哄\",\n \"Country\": \"CN\",\n \"RegistrantName\": \"niubihonghong\",\n \"ZipCode\": \"100011\",\n \"Email\": \"1213059621@qq.com\",\n \"City\": \"nan shan qu\",\n \"RegistrantNameCN\": \"牛逼哄哄\",\n \"StreetCN\": \"万利达大厦\",\n \"Street\": \"wanlidadasha\",\n \"ProvinceCN\": \"深圳市\",\n \"CountryCN\": \"中国\",\n \"CityCN\": \"南山区\",\n \"Telephone\": \"13600147752\"\n },\n \"IsDefault\": \"no\"\n }\n }\n}",
262
+ "title": "修改模板"
263
+ }
264
+ ],
257
265
  "RenewDomainBatch": [
258
266
  {
259
267
  "document": "批量域名续费",
@@ -7864,7 +7864,7 @@
7864
7864
  },
7865
7865
  {
7866
7866
  "disabled": false,
7867
- "document": "同名表的处理,ReportErrorAfterCheck(前置校验并报错,默认)、InitializeAfterDelete(删除并重新初始化)、ExecuteAfterIgnore(忽略并继续执行)\n注意:此字段可能返回 null,表示取不到有效值。",
7867
+ "document": "同名表的处理,ReportErrorAfterCheck(前置校验并报错,默认)、ExecuteAfterIgnore(忽略并继续执行)\n注意:此字段可能返回 null,表示取不到有效值。",
7868
7868
  "example": "ReportErrorAfterCheck",
7869
7869
  "member": "string",
7870
7870
  "name": "DealOfExistSameTable",