tccli 3.0.1099.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 (83) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cls/v20201016/CreateCosRecharge.md +4 -4
  3. tccli/examples/cls/v20201016/CreateDashboardSubscribe.md +18 -0
  4. tccli/examples/cls/v20201016/DeleteDashboardSubscribe.md +18 -0
  5. tccli/examples/cls/v20201016/DescribeDashboardSubscribes.md +18 -0
  6. tccli/examples/cls/v20201016/ModifyCosRecharge.md +3 -3
  7. tccli/examples/cls/v20201016/ModifyDashboardSubscribe.md +18 -0
  8. tccli/examples/cls/v20201016/SearchDashboardSubscribe.md +35 -0
  9. tccli/examples/dlc/v20210125/CreateSparkSessionBatchSQL.md +1 -1
  10. tccli/examples/domain/v20180808/ModifyTemplate.md +73 -0
  11. tccli/examples/ess/v20201111/DescribeBatchOrganizationRegistrationUrls.md +27 -0
  12. tccli/examples/hunyuan/v20230901/ChatCompletions.md +141 -1
  13. tccli/examples/hunyuan/v20230901/ChatPro.md +2 -2
  14. tccli/examples/lke/v20231130/GetEmbedding.md +1 -1
  15. tccli/examples/lke/v20231130/GetMsgRecord.md +4 -1
  16. tccli/examples/ocr/v20181119/RecognizeGeneralTextImageWarn.md +83 -0
  17. tccli/examples/rum/v20210622/CreateWhitelist.md +2 -2
  18. tccli/examples/rum/v20210622/DescribeRumGroupLog.md +3 -3
  19. tccli/examples/rum/v20210622/DescribeRumLogExport.md +6 -6
  20. tccli/examples/rum/v20210622/DescribeRumStatsLogList.md +2 -2
  21. tccli/examples/teo/v20220901/CreatePlan.md +47 -0
  22. tccli/examples/teo/v20220901/DestroyPlan.md +20 -0
  23. tccli/examples/teo/v20220901/IncreasePlanQuota.md +46 -0
  24. tccli/examples/teo/v20220901/ModifyPlan.md +21 -0
  25. tccli/examples/teo/v20220901/RenewPlan.md +23 -0
  26. tccli/examples/teo/v20220901/UpgradePlan.md +23 -0
  27. tccli/examples/tione/v20191022/UpdateCodeRepository.md +1 -1
  28. tccli/examples/tke/v20180525/CheckInstancesUpgradeAble.md +15 -7
  29. tccli/examples/tke/v20180525/CreateCluster.md +58 -142
  30. tccli/examples/tke/v20180525/DescribeClusterNodePools.md +1 -0
  31. tccli/examples/tke/v20180525/GetUpgradeInstanceProgress.md +18 -19
  32. tccli/examples/tke/v20180525/ModifyClusterAuthenticationOptions.md +3 -0
  33. tccli/examples/tke/v20180525/ModifyNodePoolInstanceTypes.md +1 -1
  34. tccli/examples/tms/v20201229/AnswerQuestion.md +21 -0
  35. tccli/examples/vpc/v20170312/DescribeVpnGatewayRoutes.md +2 -1
  36. tccli/examples/vpc/v20170312/ModifyVpnGatewayRoutes.md +8 -4
  37. tccli/services/aiart/v20221229/api.json +5 -5
  38. tccli/services/cls/cls_client.py +337 -72
  39. tccli/services/cls/v20201016/api.json +433 -22
  40. tccli/services/cls/v20201016/examples.json +44 -4
  41. tccli/services/dlc/v20210125/api.json +14 -4
  42. tccli/services/dlc/v20210125/examples.json +1 -1
  43. tccli/services/domain/domain_client.py +53 -0
  44. tccli/services/domain/v20180808/api.json +62 -0
  45. tccli/services/domain/v20180808/examples.json +8 -0
  46. tccli/services/dts/v20211206/api.json +1 -1
  47. tccli/services/ess/ess_client.py +57 -4
  48. tccli/services/ess/v20201111/api.json +88 -0
  49. tccli/services/ess/v20201111/examples.json +8 -0
  50. tccli/services/essbasic/v20210526/api.json +1 -1
  51. tccli/services/hunyuan/v20230901/api.json +10 -10
  52. tccli/services/hunyuan/v20230901/examples.json +26 -2
  53. tccli/services/ims/v20201229/api.json +2 -1
  54. tccli/services/iotvideo/v20211125/api.json +15 -0
  55. tccli/services/lke/lke_client.py +114 -8
  56. tccli/services/lke/v20231130/api.json +492 -0
  57. tccli/services/lke/v20231130/examples.json +18 -2
  58. tccli/services/ocr/ocr_client.py +53 -0
  59. tccli/services/ocr/v20181119/api.json +156 -0
  60. tccli/services/ocr/v20181119/examples.json +8 -0
  61. tccli/services/rce/v20201103/api.json +9 -9
  62. tccli/services/rum/v20210622/api.json +35 -33
  63. tccli/services/rum/v20210622/examples.json +7 -7
  64. tccli/services/tdmq/v20200217/api.json +6 -6
  65. tccli/services/teo/teo_client.py +338 -20
  66. tccli/services/teo/v20220901/api.json +375 -1
  67. tccli/services/teo/v20220901/examples.json +60 -0
  68. tccli/services/tione/v20191022/api.json +6 -7
  69. tccli/services/tione/v20191022/examples.json +1 -1
  70. tccli/services/tione/v20211111/api.json +2 -0
  71. tccli/services/tke/v20180525/api.json +77 -93
  72. tccli/services/tke/v20180525/examples.json +7 -7
  73. tccli/services/tms/tms_client.py +53 -0
  74. tccli/services/tms/v20201229/api.json +44 -0
  75. tccli/services/tms/v20201229/examples.json +8 -0
  76. tccli/services/tse/v20201207/api.json +49 -1
  77. tccli/services/vpc/v20170312/api.json +3 -0
  78. tccli/services/vpc/v20170312/examples.json +3 -3
  79. {tccli-3.0.1099.1.dist-info → tccli-3.0.1100.1.dist-info}/METADATA +2 -2
  80. {tccli-3.0.1099.1.dist-info → tccli-3.0.1100.1.dist-info}/RECORD +83 -68
  81. {tccli-3.0.1099.1.dist-info → tccli-3.0.1100.1.dist-info}/WHEEL +0 -0
  82. {tccli-3.0.1099.1.dist-info → tccli-3.0.1100.1.dist-info}/entry_points.txt +0 -0
  83. {tccli-3.0.1099.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",
@@ -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的日志",
@@ -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",
@@ -641,6 +641,58 @@ def doCreateFlowGroupSignReview(args, parsed_globals):
641
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
642
 
643
643
 
644
+ def doUnbindEmployeeUserIdWithClientOpenId(args, parsed_globals):
645
+ g_param = parse_global_arg(parsed_globals)
646
+
647
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
648
+ cred = credential.CVMRoleCredential()
649
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
650
+ cred = credential.STSAssumeRoleCredential(
651
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
652
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
653
+ )
654
+ 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):
655
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
656
+ else:
657
+ cred = credential.Credential(
658
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
659
+ )
660
+ http_profile = HttpProfile(
661
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
662
+ reqMethod="POST",
663
+ endpoint=g_param[OptionsDefine.Endpoint],
664
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
665
+ )
666
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
667
+ if g_param[OptionsDefine.Language]:
668
+ profile.language = g_param[OptionsDefine.Language]
669
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
670
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
671
+ client._sdkVersion += ("_CLI_" + __version__)
672
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
+ model = models.UnbindEmployeeUserIdWithClientOpenIdRequest()
674
+ model.from_json_string(json.dumps(args))
675
+ start_time = time.time()
676
+ while True:
677
+ rsp = client.UnbindEmployeeUserIdWithClientOpenId(model)
678
+ result = rsp.to_json_string()
679
+ try:
680
+ json_obj = json.loads(result)
681
+ except TypeError as e:
682
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
683
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
684
+ break
685
+ cur_time = time.time()
686
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
687
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
688
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
689
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
690
+ else:
691
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
692
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
693
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
+
695
+
644
696
  def doRenewAutoSignLicense(args, parsed_globals):
645
697
  g_param = parse_global_arg(parsed_globals)
646
698
 
@@ -849,7 +901,7 @@ def doModifyExtendedService(args, parsed_globals):
849
901
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
902
 
851
903
 
852
- def doUnbindEmployeeUserIdWithClientOpenId(args, parsed_globals):
904
+ def doDescribeBatchOrganizationRegistrationUrls(args, parsed_globals):
853
905
  g_param = parse_global_arg(parsed_globals)
854
906
 
855
907
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -878,11 +930,11 @@ def doUnbindEmployeeUserIdWithClientOpenId(args, parsed_globals):
878
930
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
879
931
  client._sdkVersion += ("_CLI_" + __version__)
880
932
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
881
- model = models.UnbindEmployeeUserIdWithClientOpenIdRequest()
933
+ model = models.DescribeBatchOrganizationRegistrationUrlsRequest()
882
934
  model.from_json_string(json.dumps(args))
883
935
  start_time = time.time()
884
936
  while True:
885
- rsp = client.UnbindEmployeeUserIdWithClientOpenId(model)
937
+ rsp = client.DescribeBatchOrganizationRegistrationUrls(model)
886
938
  result = rsp.to_json_string()
887
939
  try:
888
940
  json_obj = json.loads(result)
@@ -4096,11 +4148,12 @@ ACTION_MAP = {
4096
4148
  "CreateUserAutoSignSealUrl": doCreateUserAutoSignSealUrl,
4097
4149
  "CreateUserAutoSignEnableUrl": doCreateUserAutoSignEnableUrl,
4098
4150
  "CreateFlowGroupSignReview": doCreateFlowGroupSignReview,
4151
+ "UnbindEmployeeUserIdWithClientOpenId": doUnbindEmployeeUserIdWithClientOpenId,
4099
4152
  "RenewAutoSignLicense": doRenewAutoSignLicense,
4100
4153
  "CreateEmbedWebUrl": doCreateEmbedWebUrl,
4101
4154
  "VerifyPdf": doVerifyPdf,
4102
4155
  "ModifyExtendedService": doModifyExtendedService,
4103
- "UnbindEmployeeUserIdWithClientOpenId": doUnbindEmployeeUserIdWithClientOpenId,
4156
+ "DescribeBatchOrganizationRegistrationUrls": doDescribeBatchOrganizationRegistrationUrls,
4104
4157
  "CreateBatchCancelFlowUrl": doCreateBatchCancelFlowUrl,
4105
4158
  "ModifyFlowDeadline": doModifyFlowDeadline,
4106
4159
  "BindEmployeeUserIdWithClientOpenId": doBindEmployeeUserIdWithClientOpenId,
@@ -315,6 +315,13 @@
315
315
  "output": "DeleteSealPoliciesResponse",
316
316
  "status": "online"
317
317
  },
318
+ "DescribeBatchOrganizationRegistrationUrls": {
319
+ "document": "此接口用于获取企业批量认证异步任务的状态及结果。\n\n前提条件:已调用 CreateBatchOrganizationRegistrationTasks创建企业批量认证链接任务接口,并得到了任务Id。\n\n异步任务的处理完成时间视当前已提交的任务量、任务的复杂程度等因素决定,正常情况下 3~5 秒即可完成,但也可能需要更长的时间",
320
+ "input": "DescribeBatchOrganizationRegistrationUrlsRequest",
321
+ "name": "查询企业批量认证链接",
322
+ "output": "DescribeBatchOrganizationRegistrationUrlsResponse",
323
+ "status": "online"
324
+ },
318
325
  "DescribeBillUsage": {
319
326
  "document": "通过此接口(DescribeBillUsage)查询该企业的套餐套餐使用情况。",
320
327
  "input": "DescribeBillUsageRequest",
@@ -6563,6 +6570,61 @@
6563
6570
  ],
6564
6571
  "usage": "both"
6565
6572
  },
6573
+ "DescribeBatchOrganizationRegistrationUrlsRequest": {
6574
+ "document": "DescribeBatchOrganizationRegistrationUrls请求参数结构体",
6575
+ "members": [
6576
+ {
6577
+ "disabled": false,
6578
+ "document": "执行本接口操作的员工信息。\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
6579
+ "example": "无",
6580
+ "member": "UserInfo",
6581
+ "name": "Operator",
6582
+ "required": true,
6583
+ "type": "object"
6584
+ },
6585
+ {
6586
+ "disabled": false,
6587
+ "document": "通过接口CreateBatchOrganizationRegistrationTasks创建企业批量认证链接任得到的任务Id",
6588
+ "example": "无",
6589
+ "member": "string",
6590
+ "name": "TaskId",
6591
+ "required": true,
6592
+ "type": "string"
6593
+ },
6594
+ {
6595
+ "disabled": false,
6596
+ "document": "代理相关应用信息,如集团主企业代子企业操作的场景中ProxyOrganizationId必填",
6597
+ "example": "无",
6598
+ "member": "Agent",
6599
+ "name": "Agent",
6600
+ "required": false,
6601
+ "type": "object"
6602
+ }
6603
+ ],
6604
+ "type": "object"
6605
+ },
6606
+ "DescribeBatchOrganizationRegistrationUrlsResponse": {
6607
+ "document": "DescribeBatchOrganizationRegistrationUrls返回参数结构体",
6608
+ "members": [
6609
+ {
6610
+ "disabled": false,
6611
+ "document": "企业批量注册链接信息",
6612
+ "example": "无",
6613
+ "member": "OrganizationAuthUrl",
6614
+ "name": "OrganizationAuthUrls",
6615
+ "output_required": false,
6616
+ "type": "list",
6617
+ "value_allowed_null": false
6618
+ },
6619
+ {
6620
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
6621
+ "member": "string",
6622
+ "name": "RequestId",
6623
+ "type": "string"
6624
+ }
6625
+ ],
6626
+ "type": "object"
6627
+ },
6566
6628
  "DescribeBillUsageDetailRequest": {
6567
6629
  "document": "DescribeBillUsageDetail请求参数结构体",
6568
6630
  "members": [
@@ -11083,6 +11145,32 @@
11083
11145
  ],
11084
11146
  "usage": "out"
11085
11147
  },
11148
+ "OrganizationAuthUrl": {
11149
+ "document": "企业批量注册链接信息",
11150
+ "members": [
11151
+ {
11152
+ "disabled": false,
11153
+ "document": "企业批量注册链接,根据Endpoint的不同设置,返回不同的链接地址。失效时间:7天\n跳转链接, 链接的有效期根据企业,员工状态和终端等有区别, 可以参考下表\n<table> <thead> <tr> <th>Endpoint</th> <th>示例</th> <th>链接有效期限</th> </tr> </thead> <tbody>\n <tr> <td>PC</td> <td>https://qian.tencent.com/console/batch-register?token=yDSx0UUgtjuaf4UEfd2MjCnfI1iuXFE6&orgName=批量认证线上测试企业9</td> <td>7天</td> </tr> \n<tr> <td>PC_SHORT_URL</td> <td>https://test.essurl.cn/8gDKUBAWK8</td> <td>7天</td> </tr> \n<tr> <td>APP</td> <td>/pages/guide/index?to=REGISTER_ENTERPRISE_FOR_BATCH&urlAuthToken=yDSx0UUgtjuaf4UEfd2MjCnfI1iuXFE6&orgName=批量认证线上测试企业9</td> <td>7天</td> </tr> </tbody> </table>\n注: \n`1.创建的链接应避免被转义,如:&被转义为\\u0026;如使用Postman请求后,请选择响应类型为 JSON,否则链接将被转义`\n",
11154
+ "example": "无",
11155
+ "member": "string",
11156
+ "name": "AuthUrl",
11157
+ "output_required": false,
11158
+ "type": "string",
11159
+ "value_allowed_null": false
11160
+ },
11161
+ {
11162
+ "disabled": false,
11163
+ "document": "企业批量注册的错误信息,例如:企业三要素不通过\t",
11164
+ "example": "无",
11165
+ "member": "string",
11166
+ "name": "ErrorMessage",
11167
+ "output_required": false,
11168
+ "type": "string",
11169
+ "value_allowed_null": false
11170
+ }
11171
+ ],
11172
+ "usage": "out"
11173
+ },
11086
11174
  "OrganizationInfo": {
11087
11175
  "document": "机构信息",
11088
11176
  "members": [
@@ -1080,6 +1080,14 @@
1080
1080
  "title": "撤销印章授权"
1081
1081
  }
1082
1082
  ],
1083
+ "DescribeBatchOrganizationRegistrationUrls": [
1084
+ {
1085
+ "document": "",
1086
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBatchOrganizationRegistrationUrls\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDSxSUUxxxxxxxx21JXBlJZsaj\"\n },\n \"Agent\": {},\n \"TaskId\": \"yDSxSUUxxxxxxxx21JXBlJZsaj\"\n}",
1087
+ "output": "{\n \"Response\": {\n \"OrganizationAuthUrls\": [\n {\n \"AuthUrl\": \"https://test.qian.tencent.cn/console/batch-register?token=yDxxxxxxxxxgENliu9LD&orgName=典子谦批量认证企业\",\n \"ErrorMessage\": \"\"\n }\n ],\n \"RequestId\": \"s1702447767875624775\"\n }\n}",
1088
+ "title": "查询批量企业认证"
1089
+ }
1090
+ ],
1083
1091
  "DescribeBillUsage": [
1084
1092
  {
1085
1093
  "document": "",
@@ -10593,7 +10593,7 @@
10593
10593
  },
10594
10594
  {
10595
10595
  "disabled": false,
10596
- "document": "组织机构超管姓名。\n在注册流程中,这个手机号必须跟操作人在电子签注册的个人手机号一致。",
10596
+ "document": "组织机构超管手机号。\n在注册流程中,这个手机号必须跟操作人在电子签注册的个人手机号一致。",
10597
10597
  "example": "无",
10598
10598
  "member": "string",
10599
10599
  "name": "AdminMobile",