tccli 3.0.1099.1__py2.py3-none-any.whl → 3.0.1101.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 (127) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdb/v20170320/CloseSSL.md +21 -0
  3. tccli/examples/cdb/v20170320/DescribeSSLStatus.md +22 -0
  4. tccli/examples/cdb/v20170320/OpenSSL.md +21 -0
  5. tccli/examples/cls/v20201016/CreateCosRecharge.md +4 -4
  6. tccli/examples/cls/v20201016/CreateDashboardSubscribe.md +18 -0
  7. tccli/examples/cls/v20201016/DeleteConfigExtra.md +1 -1
  8. tccli/examples/cls/v20201016/DeleteDashboardSubscribe.md +18 -0
  9. tccli/examples/cls/v20201016/DescribeDashboardSubscribes.md +18 -0
  10. tccli/examples/cls/v20201016/ModifyCosRecharge.md +3 -3
  11. tccli/examples/cls/v20201016/ModifyDashboardSubscribe.md +18 -0
  12. tccli/examples/cls/v20201016/SearchDashboardSubscribe.md +35 -0
  13. tccli/examples/csip/v20221121/CreateRiskCenterScanTask.md +1 -0
  14. tccli/examples/csip/v20221121/DescribeRiskCenterAssetViewCFGRiskList.md +1 -0
  15. tccli/examples/csip/v20221121/DescribeRiskCenterAssetViewPortRiskList.md +1 -0
  16. tccli/examples/csip/v20221121/DescribeRiskCenterAssetViewVULRiskList.md +1 -0
  17. tccli/examples/csip/v20221121/DescribeRiskCenterAssetViewWeakPasswordRiskList.md +1 -0
  18. tccli/examples/csip/v20221121/DescribeRiskCenterPortViewPortRiskList.md +1 -0
  19. tccli/examples/csip/v20221121/DescribeRiskCenterServerRiskList.md +1 -0
  20. tccli/examples/csip/v20221121/DescribeRiskCenterVULViewVULRiskList.md +1 -0
  21. tccli/examples/csip/v20221121/DescribeRiskCenterWebsiteRiskList.md +1 -0
  22. tccli/examples/csip/v20221121/DescribeScanTaskList.md +1 -0
  23. tccli/examples/csip/v20221121/DescribeTaskLogURL.md +1 -0
  24. tccli/examples/csip/v20221121/ModifyRiskCenterRiskStatus.md +1 -0
  25. tccli/examples/csip/v20221121/ModifyRiskCenterScanTask.md +1 -0
  26. tccli/examples/dlc/v20210125/CreateSparkSessionBatchSQL.md +1 -1
  27. tccli/examples/domain/v20180808/ModifyTemplate.md +73 -0
  28. tccli/examples/ess/v20201111/DescribeBatchOrganizationRegistrationUrls.md +27 -0
  29. tccli/examples/hunyuan/v20230901/ChatCompletions.md +141 -1
  30. tccli/examples/hunyuan/v20230901/ChatPro.md +2 -2
  31. tccli/examples/lke/v20231130/GetEmbedding.md +1 -1
  32. tccli/examples/lke/v20231130/GetMsgRecord.md +4 -1
  33. tccli/examples/ocr/v20181119/RecognizeGeneralTextImageWarn.md +83 -0
  34. tccli/examples/postgres/v20170312/ModifyAccountRemark.md +1 -1
  35. tccli/examples/rum/v20210622/CreateWhitelist.md +2 -2
  36. tccli/examples/rum/v20210622/DescribeRumGroupLog.md +3 -3
  37. tccli/examples/rum/v20210622/DescribeRumLogExport.md +6 -6
  38. tccli/examples/rum/v20210622/DescribeRumStatsLogList.md +2 -2
  39. tccli/examples/teo/v20220901/CreatePlan.md +47 -0
  40. tccli/examples/teo/v20220901/DescribeRulesSetting.md +6 -159
  41. tccli/examples/teo/v20220901/DestroyPlan.md +20 -0
  42. tccli/examples/teo/v20220901/IncreasePlanQuota.md +46 -0
  43. tccli/examples/teo/v20220901/ModifyPlan.md +21 -0
  44. tccli/examples/teo/v20220901/RenewPlan.md +23 -0
  45. tccli/examples/teo/v20220901/UpgradePlan.md +23 -0
  46. tccli/examples/tione/v20191022/UpdateCodeRepository.md +1 -1
  47. tccli/examples/tke/v20180525/CheckInstancesUpgradeAble.md +15 -7
  48. tccli/examples/tke/v20180525/CreateCluster.md +58 -142
  49. tccli/examples/tke/v20180525/DescribeClusterNodePools.md +1 -0
  50. tccli/examples/tke/v20180525/GetUpgradeInstanceProgress.md +18 -19
  51. tccli/examples/tke/v20180525/ModifyClusterAuthenticationOptions.md +3 -0
  52. tccli/examples/tke/v20180525/ModifyNodePoolInstanceTypes.md +1 -1
  53. tccli/examples/tms/v20201229/AnswerQuestion.md +21 -0
  54. tccli/examples/tsf/v20180326/CreateCluster.md +2 -2
  55. tccli/examples/vpc/v20170312/DeleteVpnGateway.md +1 -2
  56. tccli/examples/vpc/v20170312/DescribeVpnGatewayRoutes.md +2 -1
  57. tccli/examples/vpc/v20170312/DescribeVpnGatewaySslServers.md +23 -33
  58. tccli/examples/vpc/v20170312/InquiryPriceCreateVpnGateway.md +11 -3
  59. tccli/examples/vpc/v20170312/InquiryPriceResetVpnGatewayInternetMaxBandwidth.md +14 -7
  60. tccli/examples/vpc/v20170312/ModifyVpnGatewayCcnRoutes.md +1 -1
  61. tccli/examples/vpc/v20170312/ModifyVpnGatewayRoutes.md +8 -4
  62. tccli/examples/wedata/v20210820/DescribeProject.md +58 -1
  63. tccli/services/aiart/v20221229/api.json +5 -5
  64. tccli/services/cdb/cdb_client.py +163 -4
  65. tccli/services/cdb/v20170320/api.json +169 -0
  66. tccli/services/cdb/v20170320/examples.json +24 -0
  67. tccli/services/clb/v20180317/api.json +18 -0
  68. tccli/services/cls/cls_client.py +337 -72
  69. tccli/services/cls/v20201016/api.json +461 -50
  70. tccli/services/cls/v20201016/examples.json +45 -5
  71. tccli/services/csip/v20221121/api.json +157 -4
  72. tccli/services/csip/v20221121/examples.json +13 -13
  73. tccli/services/cvm/v20170312/api.json +3 -3
  74. tccli/services/cwp/cwp_client.py +0 -53
  75. tccli/services/cwp/v20180228/api.json +0 -194
  76. tccli/services/cwp/v20180228/examples.json +0 -8
  77. tccli/services/cynosdb/v20190107/api.json +1 -1
  78. tccli/services/dlc/v20210125/api.json +14 -4
  79. tccli/services/dlc/v20210125/examples.json +1 -1
  80. tccli/services/domain/domain_client.py +53 -0
  81. tccli/services/domain/v20180808/api.json +62 -0
  82. tccli/services/domain/v20180808/examples.json +8 -0
  83. tccli/services/dts/v20211206/api.json +1 -1
  84. tccli/services/ess/ess_client.py +57 -4
  85. tccli/services/ess/v20201111/api.json +88 -0
  86. tccli/services/ess/v20201111/examples.json +8 -0
  87. tccli/services/essbasic/v20210526/api.json +1 -1
  88. tccli/services/hunyuan/v20230901/api.json +10 -10
  89. tccli/services/hunyuan/v20230901/examples.json +26 -2
  90. tccli/services/ims/v20201229/api.json +2 -1
  91. tccli/services/iotvideo/v20211125/api.json +15 -0
  92. tccli/services/lke/lke_client.py +114 -8
  93. tccli/services/lke/v20231130/api.json +492 -0
  94. tccli/services/lke/v20231130/examples.json +18 -2
  95. tccli/services/nlp/v20190408/api.json +13 -0
  96. tccli/services/ocr/ocr_client.py +53 -0
  97. tccli/services/ocr/v20181119/api.json +156 -0
  98. tccli/services/ocr/v20181119/examples.json +8 -0
  99. tccli/services/postgres/v20170312/examples.json +1 -1
  100. tccli/services/rce/v20201103/api.json +9 -9
  101. tccli/services/rum/v20210622/api.json +43 -41
  102. tccli/services/rum/v20210622/examples.json +7 -7
  103. tccli/services/ssl/v20191205/api.json +2 -2
  104. tccli/services/tdmq/v20200217/api.json +6 -6
  105. tccli/services/teo/teo_client.py +338 -20
  106. tccli/services/teo/v20220901/api.json +376 -2
  107. tccli/services/teo/v20220901/examples.json +61 -1
  108. tccli/services/tione/v20191022/api.json +6 -7
  109. tccli/services/tione/v20191022/examples.json +1 -1
  110. tccli/services/tione/v20211111/api.json +2 -0
  111. tccli/services/tke/v20180525/api.json +77 -93
  112. tccli/services/tke/v20180525/examples.json +7 -7
  113. tccli/services/tms/tms_client.py +53 -0
  114. tccli/services/tms/v20201229/api.json +44 -0
  115. tccli/services/tms/v20201229/examples.json +8 -0
  116. tccli/services/tse/v20201207/api.json +49 -1
  117. tccli/services/tsf/v20180326/api.json +80 -42
  118. tccli/services/tsf/v20180326/examples.json +1 -1
  119. tccli/services/vpc/v20170312/api.json +39 -23
  120. tccli/services/vpc/v20170312/examples.json +14 -14
  121. tccli/services/wedata/v20210820/api.json +465 -0
  122. tccli/services/wedata/v20210820/examples.json +1 -1
  123. {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/METADATA +2 -2
  124. {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/RECORD +127 -109
  125. {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/WHEEL +0 -0
  126. {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/entry_points.txt +0 -0
  127. {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/license_files/LICENSE +0 -0
@@ -19829,58 +19829,6 @@ def doModifyBaselineRule(args, parsed_globals):
19829
19829
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
19830
19830
 
19831
19831
 
19832
- def doDescribeAttackLogInfo(args, parsed_globals):
19833
- g_param = parse_global_arg(parsed_globals)
19834
-
19835
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
19836
- cred = credential.CVMRoleCredential()
19837
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
19838
- cred = credential.STSAssumeRoleCredential(
19839
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
19840
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
19841
- )
19842
- 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):
19843
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
19844
- else:
19845
- cred = credential.Credential(
19846
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
19847
- )
19848
- http_profile = HttpProfile(
19849
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
19850
- reqMethod="POST",
19851
- endpoint=g_param[OptionsDefine.Endpoint],
19852
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
19853
- )
19854
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
19855
- if g_param[OptionsDefine.Language]:
19856
- profile.language = g_param[OptionsDefine.Language]
19857
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
19858
- client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile)
19859
- client._sdkVersion += ("_CLI_" + __version__)
19860
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
19861
- model = models.DescribeAttackLogInfoRequest()
19862
- model.from_json_string(json.dumps(args))
19863
- start_time = time.time()
19864
- while True:
19865
- rsp = client.DescribeAttackLogInfo(model)
19866
- result = rsp.to_json_string()
19867
- try:
19868
- json_obj = json.loads(result)
19869
- except TypeError as e:
19870
- json_obj = json.loads(result.decode('utf-8')) # python3.3
19871
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
19872
- break
19873
- cur_time = time.time()
19874
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
19875
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
19876
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
19877
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
19878
- else:
19879
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
19880
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
19881
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
19882
-
19883
-
19884
19832
  def doModifyWebPageProtectSwitch(args, parsed_globals):
19885
19833
  g_param = parse_global_arg(parsed_globals)
19886
19834
 
@@ -27345,7 +27293,6 @@ ACTION_MAP = {
27345
27293
  "DescribeTags": doDescribeTags,
27346
27294
  "DescribeBaselineBasicInfo": doDescribeBaselineBasicInfo,
27347
27295
  "ModifyBaselineRule": doModifyBaselineRule,
27348
- "DescribeAttackLogInfo": doDescribeAttackLogInfo,
27349
27296
  "ModifyWebPageProtectSwitch": doModifyWebPageProtectSwitch,
27350
27297
  "ModifyVulDefenceEventStatus": doModifyVulDefenceEventStatus,
27351
27298
  "GetLocalStorageItem": doGetLocalStorageItem,
@@ -854,13 +854,6 @@
854
854
  "output": "DescribeAttackEventsResponse",
855
855
  "status": "online"
856
856
  },
857
- "DescribeAttackLogInfo": {
858
- "document": "DescribeAttackEventInfo 接口替代\n\n网络攻击日志详情",
859
- "input": "DescribeAttackLogInfoRequest",
860
- "name": "网络攻击日志详情",
861
- "output": "DescribeAttackLogInfoResponse",
862
- "status": "deprecated"
863
- },
864
857
  "DescribeAttackLogs": {
865
858
  "document": "按分页形式展示网络攻击日志列表",
866
859
  "input": "DescribeAttackLogsRequest",
@@ -20399,193 +20392,6 @@
20399
20392
  ],
20400
20393
  "type": "object"
20401
20394
  },
20402
- "DescribeAttackLogInfoRequest": {
20403
- "document": "DescribeAttackLogInfo请求参数结构体",
20404
- "members": [
20405
- {
20406
- "disabled": false,
20407
- "document": "日志ID",
20408
- "example": "1",
20409
- "member": "uint64",
20410
- "name": "Id",
20411
- "required": true,
20412
- "type": "int"
20413
- }
20414
- ],
20415
- "type": "object"
20416
- },
20417
- "DescribeAttackLogInfoResponse": {
20418
- "document": "DescribeAttackLogInfo返回参数结构体",
20419
- "members": [
20420
- {
20421
- "disabled": false,
20422
- "document": "日志ID",
20423
- "example": "1",
20424
- "member": "uint64",
20425
- "name": "Id",
20426
- "required": true,
20427
- "type": "int",
20428
- "value_allowed_null": false
20429
- },
20430
- {
20431
- "disabled": false,
20432
- "document": "主机ID",
20433
- "example": "1",
20434
- "member": "string",
20435
- "name": "Quuid",
20436
- "required": true,
20437
- "type": "string",
20438
- "value_allowed_null": false
20439
- },
20440
- {
20441
- "disabled": false,
20442
- "document": "攻击来源端口",
20443
- "example": "xxx",
20444
- "member": "uint64",
20445
- "name": "SrcPort",
20446
- "required": true,
20447
- "type": "int",
20448
- "value_allowed_null": false
20449
- },
20450
- {
20451
- "disabled": false,
20452
- "document": "攻击来源IP",
20453
- "example": "xxx",
20454
- "member": "string",
20455
- "name": "SrcIp",
20456
- "required": true,
20457
- "type": "string",
20458
- "value_allowed_null": false
20459
- },
20460
- {
20461
- "disabled": false,
20462
- "document": "攻击目标端口",
20463
- "example": "xxx",
20464
- "member": "uint64",
20465
- "name": "DstPort",
20466
- "required": true,
20467
- "type": "int",
20468
- "value_allowed_null": false
20469
- },
20470
- {
20471
- "disabled": false,
20472
- "document": "攻击目标IP",
20473
- "example": "xxx",
20474
- "member": "string",
20475
- "name": "DstIp",
20476
- "required": true,
20477
- "type": "string",
20478
- "value_allowed_null": false
20479
- },
20480
- {
20481
- "disabled": false,
20482
- "document": "攻击方法",
20483
- "example": "xxx",
20484
- "member": "string",
20485
- "name": "HttpMethod",
20486
- "required": true,
20487
- "type": "string",
20488
- "value_allowed_null": false
20489
- },
20490
- {
20491
- "disabled": false,
20492
- "document": "攻击目标主机",
20493
- "example": "xxx",
20494
- "member": "string",
20495
- "name": "HttpHost",
20496
- "required": true,
20497
- "type": "string",
20498
- "value_allowed_null": false
20499
- },
20500
- {
20501
- "disabled": false,
20502
- "document": "攻击头信息",
20503
- "example": "xxx",
20504
- "member": "string",
20505
- "name": "HttpHead",
20506
- "required": true,
20507
- "type": "string",
20508
- "value_allowed_null": false
20509
- },
20510
- {
20511
- "disabled": false,
20512
- "document": "攻击者浏览器标识",
20513
- "example": "xxx",
20514
- "member": "string",
20515
- "name": "HttpUserAgent",
20516
- "required": true,
20517
- "type": "string",
20518
- "value_allowed_null": false
20519
- },
20520
- {
20521
- "disabled": false,
20522
- "document": "请求源",
20523
- "example": "xxx",
20524
- "member": "string",
20525
- "name": "HttpReferer",
20526
- "required": true,
20527
- "type": "string",
20528
- "value_allowed_null": false
20529
- },
20530
- {
20531
- "disabled": false,
20532
- "document": "威胁类型",
20533
- "example": "xxx",
20534
- "member": "string",
20535
- "name": "VulType",
20536
- "required": true,
20537
- "type": "string",
20538
- "value_allowed_null": false
20539
- },
20540
- {
20541
- "disabled": false,
20542
- "document": "攻击路径",
20543
- "example": "xxx",
20544
- "member": "string",
20545
- "name": "HttpCgi",
20546
- "required": true,
20547
- "type": "string",
20548
- "value_allowed_null": false
20549
- },
20550
- {
20551
- "disabled": false,
20552
- "document": "攻击参数",
20553
- "example": "xxx",
20554
- "member": "string",
20555
- "name": "HttpParam",
20556
- "required": true,
20557
- "type": "string",
20558
- "value_allowed_null": false
20559
- },
20560
- {
20561
- "disabled": false,
20562
- "document": "攻击时间",
20563
- "example": "xxx",
20564
- "member": "string",
20565
- "name": "CreatedAt",
20566
- "required": true,
20567
- "type": "string",
20568
- "value_allowed_null": false
20569
- },
20570
- {
20571
- "disabled": false,
20572
- "document": "攻击内容",
20573
- "example": "xxx",
20574
- "member": "string",
20575
- "name": "HttpContent",
20576
- "required": true,
20577
- "type": "string",
20578
- "value_allowed_null": false
20579
- },
20580
- {
20581
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
20582
- "member": "string",
20583
- "name": "RequestId",
20584
- "type": "string"
20585
- }
20586
- ],
20587
- "type": "object"
20588
- },
20589
20395
  "DescribeAttackLogsRequest": {
20590
20396
  "document": "DescribeAttackLogs请求参数结构体",
20591
20397
  "members": [
@@ -982,14 +982,6 @@
982
982
  "title": "网络攻击检测列表"
983
983
  }
984
984
  ],
985
- "DescribeAttackLogInfo": [
986
- {
987
- "document": "网络攻击日志详情",
988
- "input": "POST / HTTP/1.1\nHost: cwp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAttackLogInfo\n<公共请求参数>\n\n{\n \"Id\": \"1023\"\n}",
989
- "output": "{\n \"Response\": {\n \"HttpParam\": \"xx\",\n \"DstIp\": \"xx\",\n \"HttpCgi\": \"xx\",\n \"VulType\": \"xx\",\n \"CreatedAt\": \"xx\",\n \"SrcPort\": 1,\n \"HttpHead\": \"xx\",\n \"HttpUserAgent\": \"xx\",\n \"HttpMethod\": \"xx\",\n \"Quuid\": \"xx\",\n \"HttpReferer\": \"xx\",\n \"SrcIp\": \"xx\",\n \"DstPort\": 1,\n \"HttpContent\": \"xx\",\n \"Id\": 1,\n \"HttpHost\": \"xx\",\n \"RequestId\": \"xx\"\n }\n}",
990
- "title": "网络攻击日志详情"
991
- }
992
- ],
993
985
  "DescribeAttackLogs": [
994
986
  {
995
987
  "document": "网络攻击日志列表",
@@ -7705,7 +7705,7 @@
7705
7705
  },
7706
7706
  {
7707
7707
  "disabled": false,
7708
- "document": "单次请求返回的数量。默认值为30,最大值为 20000。",
7708
+ "document": "单次请求返回的数量。默认值为30,最大值为 100。",
7709
7709
  "example": "10",
7710
7710
  "member": "uint64",
7711
7711
  "name": "Limit",
@@ -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,