tccli 3.0.1284.1__py2.py3-none-any.whl → 3.0.1286.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +88 -86
  3. tccli/services/bh/bh_client.py +53 -0
  4. tccli/services/bh/v20230418/api.json +199 -0
  5. tccli/services/bh/v20230418/examples.json +8 -0
  6. tccli/services/cdwch/v20200915/api.json +19 -9
  7. tccli/services/cdwch/v20200915/examples.json +1 -1
  8. tccli/services/cfg/v20210820/api.json +43 -19
  9. tccli/services/cfg/v20210820/examples.json +8 -2
  10. tccli/services/clb/v20180317/api.json +1 -1
  11. tccli/services/cmq/v20190304/api.json +92 -92
  12. tccli/services/cynosdb/v20190107/api.json +379 -379
  13. tccli/services/dlc/dlc_client.py +61 -8
  14. tccli/services/dlc/v20210125/api.json +254 -3
  15. tccli/services/dlc/v20210125/examples.json +11 -3
  16. tccli/services/domain/v20180808/api.json +157 -157
  17. tccli/services/dsgc/v20190723/api.json +2 -2
  18. tccli/services/dts/v20180330/api.json +3 -3
  19. tccli/services/dts/v20211206/api.json +336 -330
  20. tccli/services/emr/emr_client.py +53 -0
  21. tccli/services/emr/v20190103/api.json +247 -0
  22. tccli/services/emr/v20190103/examples.json +8 -0
  23. tccli/services/es/v20180416/api.json +10 -0
  24. tccli/services/es/v20180416/examples.json +1 -1
  25. tccli/services/fmu/fmu_client.py +8 -167
  26. tccli/services/fmu/v20191213/api.json +0 -292
  27. tccli/services/fmu/v20191213/examples.json +0 -24
  28. tccli/services/iotcloud/v20210408/api.json +27 -27
  29. tccli/services/iotcloud/v20210408/examples.json +6 -6
  30. tccli/services/iotexplorer/iotexplorer_client.py +0 -106
  31. tccli/services/iotexplorer/v20190423/api.json +0 -274
  32. tccli/services/iotexplorer/v20190423/examples.json +0 -16
  33. tccli/services/iss/v20230517/api.json +547 -537
  34. tccli/services/iss/v20230517/examples.json +2 -2
  35. tccli/services/kms/v20190118/api.json +20 -0
  36. tccli/services/lcic/lcic_client.py +114 -8
  37. tccli/services/lcic/v20220817/api.json +108 -0
  38. tccli/services/lcic/v20220817/examples.json +16 -0
  39. tccli/services/mongodb/mongodb_client.py +57 -4
  40. tccli/services/mongodb/v20190725/api.json +63 -0
  41. tccli/services/mongodb/v20190725/examples.json +14 -0
  42. tccli/services/monitor/v20180724/api.json +29 -29
  43. tccli/services/monitor/v20180724/examples.json +8 -8
  44. tccli/services/rum/v20210622/api.json +2 -2
  45. tccli/services/svp/svp_client.py +57 -4
  46. tccli/services/svp/v20240125/api.json +319 -0
  47. tccli/services/svp/v20240125/examples.json +8 -0
  48. tccli/services/tiw/tiw_client.py +91 -1416
  49. tccli/services/tiw/v20190919/api.json +351 -2897
  50. tccli/services/tiw/v20190919/examples.json +6 -206
  51. tccli/services/trtc/v20190722/api.json +16 -5
  52. tccli/services/tsf/tsf_client.py +53 -0
  53. tccli/services/tsf/v20180326/api.json +48 -4
  54. tccli/services/tsf/v20180326/examples.json +8 -0
  55. tccli/services/vpc/v20170312/api.json +54 -0
  56. tccli/services/vpc/v20170312/examples.json +8 -0
  57. tccli/services/vpc/vpc_client.py +53 -0
  58. tccli/services/wedata/v20210820/api.json +383 -0
  59. tccli/services/wedata/v20210820/examples.json +8 -0
  60. tccli/services/wedata/wedata_client.py +53 -0
  61. {tccli-3.0.1284.1.dist-info → tccli-3.0.1286.1.dist-info}/METADATA +2 -2
  62. {tccli-3.0.1284.1.dist-info → tccli-3.0.1286.1.dist-info}/RECORD +65 -65
  63. {tccli-3.0.1284.1.dist-info → tccli-3.0.1286.1.dist-info}/WHEEL +0 -0
  64. {tccli-3.0.1284.1.dist-info → tccli-3.0.1286.1.dist-info}/entry_points.txt +0 -0
  65. {tccli-3.0.1284.1.dist-info → tccli-3.0.1286.1.dist-info}/license_files/LICENSE +0 -0
@@ -196,6 +196,13 @@
196
196
  "output": "CheckDefaultSubnetResponse",
197
197
  "status": "online"
198
198
  },
199
+ "CheckGatewayFlowMonitor": {
200
+ "document": "本接口(CheckGatewayFlowMonitor)用于查询网关是否启用流量监控。",
201
+ "input": "CheckGatewayFlowMonitorRequest",
202
+ "name": "查询网关是否启用流量监控",
203
+ "output": "CheckGatewayFlowMonitorResponse",
204
+ "status": "online"
205
+ },
199
206
  "CheckNetDetectState": {
200
207
  "document": "本接口(CheckNetDetectState)用于验证网络探测。",
201
208
  "input": "CheckNetDetectStateRequest",
@@ -6919,6 +6926,53 @@
6919
6926
  ],
6920
6927
  "type": "object"
6921
6928
  },
6929
+ "CheckGatewayFlowMonitorRequest": {
6930
+ "document": "CheckGatewayFlowMonitor请求参数结构体",
6931
+ "members": [
6932
+ {
6933
+ "disabled": false,
6934
+ "document": "网关实例ID,目前我们支持的网关实例类型有,\n专线网关实例ID,形如,`dcg-ltjahce6`;\nNat网关实例ID,形如,`nat-ltjahce6`;\nVPN网关实例ID,形如,`vpn-ltjahce6`。",
6935
+ "example": "vpngw-4je9dgin",
6936
+ "member": "string",
6937
+ "name": "GatewayId",
6938
+ "required": true,
6939
+ "type": "string"
6940
+ }
6941
+ ],
6942
+ "type": "object"
6943
+ },
6944
+ "CheckGatewayFlowMonitorResponse": {
6945
+ "document": "CheckGatewayFlowMonitor返回参数结构体",
6946
+ "members": [
6947
+ {
6948
+ "disabled": false,
6949
+ "document": "网关是否启用了流控。true为启用,false未启用。",
6950
+ "example": "1",
6951
+ "member": "bool",
6952
+ "name": "Enabled",
6953
+ "required": true,
6954
+ "type": "bool",
6955
+ "value_allowed_null": false
6956
+ },
6957
+ {
6958
+ "disabled": false,
6959
+ "document": "网关的带宽。",
6960
+ "example": "5",
6961
+ "member": "uint64",
6962
+ "name": "Bandwidth",
6963
+ "required": true,
6964
+ "type": "int",
6965
+ "value_allowed_null": false
6966
+ },
6967
+ {
6968
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
6969
+ "member": "string",
6970
+ "name": "RequestId",
6971
+ "type": "string"
6972
+ }
6973
+ ],
6974
+ "type": "object"
6975
+ },
6922
6976
  "CheckNetDetectStateRequest": {
6923
6977
  "document": "CheckNetDetectState请求参数结构体",
6924
6978
  "members": [
@@ -278,6 +278,14 @@
278
278
  "title": "预判是否可建默认子网"
279
279
  }
280
280
  ],
281
+ "CheckGatewayFlowMonitor": [
282
+ {
283
+ "document": "",
284
+ "input": "https://vpc.tencentcloudapi.com/?Action=CheckGatewayFlowMonitor\n&GatewayId=vpngw-4je9dgin\n&<公共请求参数>",
285
+ "output": "{\n \"Response\": {\n \"Enabled\": true,\n \"Bandwidth\": 5,\n \"RequestId\": \"5cf1a813-d4f8-4e0c-8f90-c155a84a3ea1\"\n }\n}",
286
+ "title": "示例1 查询VPN网关是否开启了网关流控"
287
+ }
288
+ ],
281
289
  "CheckNetDetectState": [
282
290
  {
283
291
  "document": "根据网络探测ID验证探测参数",
@@ -641,6 +641,58 @@ def doDescribeAddresses(args, parsed_globals):
641
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
642
 
643
643
 
644
+ def doCheckGatewayFlowMonitor(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.VpcClient(cred, g_param[OptionsDefine.Region], profile)
671
+ client._sdkVersion += ("_CLI_" + __version__)
672
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
+ model = models.CheckGatewayFlowMonitorRequest()
674
+ model.from_json_string(json.dumps(args))
675
+ start_time = time.time()
676
+ while True:
677
+ rsp = client.CheckGatewayFlowMonitor(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 doCreateCcnRouteTables(args, parsed_globals):
645
697
  g_param = parse_global_arg(parsed_globals)
646
698
 
@@ -20944,6 +20996,7 @@ ACTION_MAP = {
20944
20996
  "AcceptVpcPeeringConnection": doAcceptVpcPeeringConnection,
20945
20997
  "EnableGatewayFlowMonitor": doEnableGatewayFlowMonitor,
20946
20998
  "DescribeAddresses": doDescribeAddresses,
20999
+ "CheckGatewayFlowMonitor": doCheckGatewayFlowMonitor,
20947
21000
  "CreateCcnRouteTables": doCreateCcnRouteTables,
20948
21001
  "ReplaceCcnRouteTableBroadcastPolicys": doReplaceCcnRouteTableBroadcastPolicys,
20949
21002
  "ModifyVpnGatewaySslClientCert": doModifyVpnGatewaySslClientCert,
@@ -1673,6 +1673,13 @@
1673
1673
  "output": "TriggerEventResponse",
1674
1674
  "status": "online"
1675
1675
  },
1676
+ "TriggerManualTasks": {
1677
+ "document": "手动任务触发运行",
1678
+ "input": "TriggerManualTasksRequest",
1679
+ "name": "手动任务触发运行",
1680
+ "output": "TriggerManualTasksResponse",
1681
+ "status": "online"
1682
+ },
1676
1683
  "UnlockIntegrationTask": {
1677
1684
  "document": "解锁集成任务",
1678
1685
  "input": "UnlockIntegrationTaskRequest",
@@ -29587,6 +29594,34 @@
29587
29594
  ],
29588
29595
  "type": "object"
29589
29596
  },
29597
+ "KVPair": {
29598
+ "document": "键值对",
29599
+ "members": [
29600
+ {
29601
+ "disabled": false,
29602
+ "document": "键名\n注意:此字段可能返回 null,表示取不到有效值。",
29603
+ "example": "Name",
29604
+ "member": "string",
29605
+ "name": "K",
29606
+ "output_required": true,
29607
+ "required": true,
29608
+ "type": "string",
29609
+ "value_allowed_null": true
29610
+ },
29611
+ {
29612
+ "disabled": false,
29613
+ "document": "值\n注意:此字段可能返回 null,表示取不到有效值。",
29614
+ "example": "Tom",
29615
+ "member": "string",
29616
+ "name": "V",
29617
+ "output_required": true,
29618
+ "required": true,
29619
+ "type": "string",
29620
+ "value_allowed_null": true
29621
+ }
29622
+ ],
29623
+ "usage": "both"
29624
+ },
29590
29625
  "KillOpsMakePlanInstancesRequest": {
29591
29626
  "document": "KillOpsMakePlanInstances请求参数结构体",
29592
29627
  "members": [
@@ -30715,6 +30750,199 @@
30715
30750
  ],
30716
30751
  "usage": "out"
30717
30752
  },
30753
+ "ManualTriggerRecordOpsDto": {
30754
+ "document": "手动工作流触发运行记录实体",
30755
+ "members": [
30756
+ {
30757
+ "disabled": false,
30758
+ "document": "运行触发记录ID\n注意:此字段可能返回 null,表示取不到有效值。",
30759
+ "example": "a123",
30760
+ "member": "string",
30761
+ "name": "TriggerId",
30762
+ "output_required": false,
30763
+ "required": false,
30764
+ "type": "string",
30765
+ "value_allowed_null": true
30766
+ },
30767
+ {
30768
+ "disabled": false,
30769
+ "document": "用户提交运行时配置的运行名称\n注意:此字段可能返回 null,表示取不到有效值。",
30770
+ "example": "test_t1",
30771
+ "member": "string",
30772
+ "name": "TriggerName",
30773
+ "output_required": false,
30774
+ "required": false,
30775
+ "type": "string",
30776
+ "value_allowed_null": true
30777
+ },
30778
+ {
30779
+ "disabled": false,
30780
+ "document": "用户提交运行的备注\n注意:此字段可能返回 null,表示取不到有效值。",
30781
+ "example": "run",
30782
+ "member": "string",
30783
+ "name": "Remark",
30784
+ "output_required": false,
30785
+ "required": false,
30786
+ "type": "string",
30787
+ "value_allowed_null": true
30788
+ },
30789
+ {
30790
+ "disabled": false,
30791
+ "document": "数据时间列表\n注意:此字段可能返回 null,表示取不到有效值。",
30792
+ "example": "[2024-12-12 11:11:11]",
30793
+ "member": "string",
30794
+ "name": "DatetimeList",
30795
+ "output_required": false,
30796
+ "required": false,
30797
+ "type": "list",
30798
+ "value_allowed_null": true
30799
+ },
30800
+ {
30801
+ "disabled": false,
30802
+ "document": "任务数\n注意:此字段可能返回 null,表示取不到有效值。",
30803
+ "example": "1",
30804
+ "member": "uint64",
30805
+ "name": "TaskCnt",
30806
+ "output_required": false,
30807
+ "required": false,
30808
+ "type": "int",
30809
+ "value_allowed_null": true
30810
+ },
30811
+ {
30812
+ "disabled": false,
30813
+ "document": "实例数\n注意:此字段可能返回 null,表示取不到有效值。",
30814
+ "example": "1",
30815
+ "member": "uint64",
30816
+ "name": "InstanceCnt",
30817
+ "output_required": false,
30818
+ "required": false,
30819
+ "type": "int",
30820
+ "value_allowed_null": true
30821
+ },
30822
+ {
30823
+ "disabled": false,
30824
+ "document": "已完成的实例数\n注意:此字段可能返回 null,表示取不到有效值。",
30825
+ "example": "0",
30826
+ "member": "uint64",
30827
+ "name": "FinishedInstanceCnt",
30828
+ "output_required": false,
30829
+ "required": false,
30830
+ "type": "int",
30831
+ "value_allowed_null": true
30832
+ },
30833
+ {
30834
+ "disabled": false,
30835
+ "document": "成功的实例数\n注意:此字段可能返回 null,表示取不到有效值。",
30836
+ "example": "0",
30837
+ "member": "uint64",
30838
+ "name": "SuccessInstanceCnt",
30839
+ "output_required": false,
30840
+ "required": false,
30841
+ "type": "int",
30842
+ "value_allowed_null": true
30843
+ },
30844
+ {
30845
+ "disabled": false,
30846
+ "document": "记录运行状态\n INIT, RUNNING, FINISHED\n注意:此字段可能返回 null,表示取不到有效值。",
30847
+ "example": "INIT",
30848
+ "member": "string",
30849
+ "name": "Status",
30850
+ "output_required": false,
30851
+ "required": false,
30852
+ "type": "string",
30853
+ "value_allowed_null": true
30854
+ },
30855
+ {
30856
+ "disabled": false,
30857
+ "document": "用户提交运行时的入参,主要用于前端反显和记录原始提交信息\n注意:此字段可能返回 null,表示取不到有效值。",
30858
+ "example": "{\"ProjectId\": \"1\",\"TriggerName\": \"test1\",\"TriggerScope\": \"ENTIRE_WORKFLOW\",\"DataTimeList\": \"[2024-12-12 11:11:11]\",WorkflowId\":\"9256-11ed-8909-bc\", \"TaskIds\": \"[20240611101643545]\", \"SchedulerResourceGroup\": \"202406111033\",\"ExecOrder\":\"ASC\"}",
30859
+ "member": "string",
30860
+ "name": "TriggerParams",
30861
+ "output_required": false,
30862
+ "required": false,
30863
+ "type": "string",
30864
+ "value_allowed_null": true
30865
+ },
30866
+ {
30867
+ "disabled": false,
30868
+ "document": "用户主账号ID\n注意:此字段可能返回 null,表示取不到有效值。",
30869
+ "example": "100028649389",
30870
+ "member": "string",
30871
+ "name": "OwnerUin",
30872
+ "output_required": false,
30873
+ "required": false,
30874
+ "type": "string",
30875
+ "value_allowed_null": true
30876
+ },
30877
+ {
30878
+ "disabled": false,
30879
+ "document": "用户ID\n注意:此字段可能返回 null,表示取不到有效值。",
30880
+ "example": "10002864933",
30881
+ "member": "string",
30882
+ "name": "UserUin",
30883
+ "output_required": false,
30884
+ "required": false,
30885
+ "type": "string",
30886
+ "value_allowed_null": true
30887
+ },
30888
+ {
30889
+ "disabled": false,
30890
+ "document": "用户展示名\n注意:此字段可能返回 null,表示取不到有效值。",
30891
+ "example": "jack",
30892
+ "member": "string",
30893
+ "name": "UserName",
30894
+ "output_required": false,
30895
+ "required": false,
30896
+ "type": "string",
30897
+ "value_allowed_null": true
30898
+ },
30899
+ {
30900
+ "disabled": false,
30901
+ "document": "租户ID\n注意:此字段可能返回 null,表示取不到有效值。",
30902
+ "example": "10002864",
30903
+ "member": "string",
30904
+ "name": "TenantId",
30905
+ "output_required": false,
30906
+ "required": false,
30907
+ "type": "string",
30908
+ "value_allowed_null": true
30909
+ },
30910
+ {
30911
+ "disabled": false,
30912
+ "document": "项目ID\n注意:此字段可能返回 null,表示取不到有效值。",
30913
+ "example": "1",
30914
+ "member": "string",
30915
+ "name": "ProjectId",
30916
+ "output_required": false,
30917
+ "required": false,
30918
+ "type": "string",
30919
+ "value_allowed_null": true
30920
+ },
30921
+ {
30922
+ "disabled": false,
30923
+ "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
30924
+ "example": "2024-12-12 11:11:11]",
30925
+ "member": "string",
30926
+ "name": "CreateTime",
30927
+ "output_required": false,
30928
+ "required": false,
30929
+ "type": "string",
30930
+ "value_allowed_null": true
30931
+ },
30932
+ {
30933
+ "disabled": false,
30934
+ "document": "数据实例时间的时区\n注意:此字段可能返回 null,表示取不到有效值。",
30935
+ "example": "UTC+8",
30936
+ "member": "string",
30937
+ "name": "ScheduleTimeZone",
30938
+ "output_required": false,
30939
+ "required": false,
30940
+ "type": "string",
30941
+ "value_allowed_null": true
30942
+ }
30943
+ ],
30944
+ "usage": "both"
30945
+ },
30718
30946
  "ModifyApproveStatusRequest": {
30719
30947
  "document": "ModifyApproveStatus请求参数结构体",
30720
30948
  "members": [
@@ -47185,6 +47413,161 @@
47185
47413
  ],
47186
47414
  "type": "object"
47187
47415
  },
47416
+ "TriggerManualTasksRequest": {
47417
+ "document": "TriggerManualTasks请求参数结构体",
47418
+ "members": [
47419
+ {
47420
+ "disabled": false,
47421
+ "document": "项目ID",
47422
+ "example": "1",
47423
+ "member": "string",
47424
+ "name": "ProjectId",
47425
+ "required": true,
47426
+ "type": "string"
47427
+ },
47428
+ {
47429
+ "disabled": false,
47430
+ "document": "触发运行名称",
47431
+ "example": "task_t1",
47432
+ "member": "string",
47433
+ "name": "TriggerName",
47434
+ "required": true,
47435
+ "type": "string"
47436
+ },
47437
+ {
47438
+ "disabled": false,
47439
+ "document": "运行范围 ENTIRE_WORKFLOW or SPECIFIED_TASK",
47440
+ "example": "ENTIRE_WORKFLOW",
47441
+ "member": "string",
47442
+ "name": "TriggerScope",
47443
+ "required": true,
47444
+ "type": "string"
47445
+ },
47446
+ {
47447
+ "disabled": false,
47448
+ "document": "运行数据时间列表",
47449
+ "example": "[2024-12-12 11:11:11]",
47450
+ "member": "string",
47451
+ "name": "DataTimeList",
47452
+ "required": true,
47453
+ "type": "list"
47454
+ },
47455
+ {
47456
+ "disabled": false,
47457
+ "document": "工作流ID",
47458
+ "example": "9256-11ed-8909-bc",
47459
+ "member": "string",
47460
+ "name": "WorkflowId",
47461
+ "required": true,
47462
+ "type": "string"
47463
+ },
47464
+ {
47465
+ "disabled": false,
47466
+ "document": "备注",
47467
+ "example": "备注",
47468
+ "member": "string",
47469
+ "name": "Remark",
47470
+ "required": false,
47471
+ "type": "string"
47472
+ },
47473
+ {
47474
+ "disabled": false,
47475
+ "document": "需要运行的任务列表\nTriggerScope=ENTIRE_WORKFLOW 时无需传此参数,TriggerScope=SPECIFIED_TASK此参数必传",
47476
+ "example": "[20240611101643545]",
47477
+ "member": "string",
47478
+ "name": "TaskIds",
47479
+ "required": false,
47480
+ "type": "list"
47481
+ },
47482
+ {
47483
+ "disabled": false,
47484
+ "document": "用户提交运行时指定的调度资源组,未指定时使用任务配置的调度资源组",
47485
+ "example": "202406111033",
47486
+ "member": "string",
47487
+ "name": "SchedulerResourceGroup",
47488
+ "required": false,
47489
+ "type": "string"
47490
+ },
47491
+ {
47492
+ "disabled": false,
47493
+ "document": "用户提交运行时指定的集成资源组,未指定时使用任务配置的集成资源组",
47494
+ "example": "202406111044",
47495
+ "member": "string",
47496
+ "name": "IntegrationResourceGroup",
47497
+ "required": false,
47498
+ "type": "string"
47499
+ },
47500
+ {
47501
+ "disabled": false,
47502
+ "document": "执行顺序 ASC、RAND、DESC",
47503
+ "example": "ASC",
47504
+ "member": "string",
47505
+ "name": "ExecOrder",
47506
+ "required": false,
47507
+ "type": "string"
47508
+ },
47509
+ {
47510
+ "disabled": false,
47511
+ "document": "自定义参数,最高优先级",
47512
+ "example": "[{Key:name,Value:jack}]",
47513
+ "member": "KVPair",
47514
+ "name": "CustomParams",
47515
+ "required": false,
47516
+ "type": "list"
47517
+ },
47518
+ {
47519
+ "disabled": false,
47520
+ "document": "页面反显使用,无业务含义",
47521
+ "example": "jsonString",
47522
+ "member": "string",
47523
+ "name": "ExtraParams",
47524
+ "required": false,
47525
+ "type": "string"
47526
+ },
47527
+ {
47528
+ "disabled": false,
47529
+ "document": "实例时间的时区",
47530
+ "example": "UTC+8",
47531
+ "member": "string",
47532
+ "name": "ScheduleTimeZone",
47533
+ "required": false,
47534
+ "type": "string"
47535
+ }
47536
+ ],
47537
+ "type": "object"
47538
+ },
47539
+ "TriggerManualTasksResponse": {
47540
+ "document": "TriggerManualTasks返回参数结构体",
47541
+ "members": [
47542
+ {
47543
+ "disabled": false,
47544
+ "document": "请求来源,WEB 前端;CLIENT 客户端\n注意:此字段可能返回 null,表示取不到有效值。",
47545
+ "example": "无",
47546
+ "member": "string",
47547
+ "name": "RequestFromSource",
47548
+ "output_required": false,
47549
+ "type": "string",
47550
+ "value_allowed_null": true
47551
+ },
47552
+ {
47553
+ "disabled": false,
47554
+ "document": "详情结果\n注意:此字段可能返回 null,表示取不到有效值。",
47555
+ "example": "无",
47556
+ "member": "ManualTriggerRecordOpsDto",
47557
+ "name": "Data",
47558
+ "output_required": false,
47559
+ "type": "object",
47560
+ "value_allowed_null": true
47561
+ },
47562
+ {
47563
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
47564
+ "member": "string",
47565
+ "name": "RequestId",
47566
+ "type": "string"
47567
+ }
47568
+ ],
47569
+ "type": "object"
47570
+ },
47188
47571
  "UnlockIntegrationTaskRequest": {
47189
47572
  "document": "UnlockIntegrationTask请求参数结构体",
47190
47573
  "members": [
@@ -2068,6 +2068,14 @@
2068
2068
  "title": "触发事件"
2069
2069
  }
2070
2070
  ],
2071
+ "TriggerManualTasks": [
2072
+ {
2073
+ "document": "手动任务触发运行",
2074
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TriggerManualTasks\n<公共请求参数>\n\n{\n \"ProjectId\": \"1464962169590902784\",\n \"TriggerName\": \"test_name\",\n \"TriggerScope\": \"ENTIRE_WORKFLOW\",\n \"DataTimeList\": [\n \"2025-01-14 00:00:00\",\n \"2025-01-14 01:00:00\"\n ],\n \"WorkflowId\": \"d4d7e9a7-0649-4410-a2ae-89818043c58a\",\n \"Remark\": \"\",\n \"TaskIds\": [],\n \"SchedulerResourceGroup\": \"20240703113703331017\",\n \"IntegrationResourceGroup\": \"\",\n \"ExecOrder\": \"RAND\",\n \"CustomParams\": [\n {\n \"K\": \"param1\",\n \"V\": \"10\"\n }\n ]\n}",
2075
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"CreateTime\": \"2025-01-14T17:42:37.069\",\n \"DatetimeList\": [\n \"2025-01-14 00:00:00\",\n \"2025-01-14 01:00:00\"\n ],\n \"FinishedInstanceCnt\": null,\n \"InstanceCnt\": null,\n \"OwnerUin\": \"100028448903\",\n \"ProjectId\": \"1464962169590902784\",\n \"Remark\": \"\",\n \"Status\": \"INIT\",\n \"SuccessInstanceCnt\": null,\n \"TaskCnt\": null,\n \"TenantId\": \"1315051789\",\n \"TriggerId\": \"9a350a12-40bd-4610-9d9e-445ee8730d6e\",\n \"TriggerName\": \"test_name\",\n \"TriggerParams\": \"{\\\"ProjectId\\\":\\\"1464962169590902784\\\",\\\"TriggerName\\\":\\\"test_name\\\",\\\"Remark\\\":\\\"\\\",\\\"TriggerScope\\\":\\\"ENTIRE_WORKFLOW\\\",\\\"WorkflowId\\\":\\\"d4d7e9a7-0649-4410-a2ae-89818043c58a\\\",\\\"TaskIds\\\":[\\\"20241223224113778\\\",\\\"20241224171752455\\\",\\\"20241223224056125\\\"],\\\"DataTimeList\\\":[\\\"2025-01-14 00:00:00\\\",\\\"2025-01-14 01:00:00\\\"],\\\"SchedulerResourceGroup\\\":\\\"20240703113703331017\\\",\\\"IntegrationResourceGroup\\\":\\\"\\\",\\\"ExecOrder\\\":\\\"RAND\\\",\\\"CustomParams\\\":[{\\\"K\\\":\\\"param1\\\",\\\"V\\\":\\\"10\\\"}],\\\"ExtraParams\\\":null}\",\n \"UserName\": \"wenjieyao\",\n \"UserUin\": \"100028579606\"\n },\n \"RequestId\": \"da12b6d9-fd32-4b3e-8716-5085722e06e5\"\n }\n}",
2076
+ "title": "手动任务触发运行"
2077
+ }
2078
+ ],
2071
2079
  "UnlockIntegrationTask": [
2072
2080
  {
2073
2081
  "document": "",
@@ -3345,6 +3345,58 @@ def doCreateRuleTemplate(args, parsed_globals):
3345
3345
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
3346
 
3347
3347
 
3348
+ def doTriggerManualTasks(args, parsed_globals):
3349
+ g_param = parse_global_arg(parsed_globals)
3350
+
3351
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3352
+ cred = credential.CVMRoleCredential()
3353
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3354
+ cred = credential.STSAssumeRoleCredential(
3355
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3356
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3357
+ )
3358
+ 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):
3359
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3360
+ else:
3361
+ cred = credential.Credential(
3362
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3363
+ )
3364
+ http_profile = HttpProfile(
3365
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3366
+ reqMethod="POST",
3367
+ endpoint=g_param[OptionsDefine.Endpoint],
3368
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3369
+ )
3370
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3371
+ if g_param[OptionsDefine.Language]:
3372
+ profile.language = g_param[OptionsDefine.Language]
3373
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3374
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
3375
+ client._sdkVersion += ("_CLI_" + __version__)
3376
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3377
+ model = models.TriggerManualTasksRequest()
3378
+ model.from_json_string(json.dumps(args))
3379
+ start_time = time.time()
3380
+ while True:
3381
+ rsp = client.TriggerManualTasks(model)
3382
+ result = rsp.to_json_string()
3383
+ try:
3384
+ json_obj = json.loads(result)
3385
+ except TypeError as e:
3386
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3387
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3388
+ break
3389
+ cur_time = time.time()
3390
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3391
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3392
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3393
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3394
+ else:
3395
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3396
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3397
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3398
+
3399
+
3348
3400
  def doSubmitTaskTestRun(args, parsed_globals):
3349
3401
  g_param = parse_global_arg(parsed_globals)
3350
3402
 
@@ -12780,6 +12832,7 @@ ACTION_MAP = {
12780
12832
  "DescribeOrganizationalFunctions": doDescribeOrganizationalFunctions,
12781
12833
  "DescribeDsFolderTree": doDescribeDsFolderTree,
12782
12834
  "CreateRuleTemplate": doCreateRuleTemplate,
12835
+ "TriggerManualTasks": doTriggerManualTasks,
12783
12836
  "SubmitTaskTestRun": doSubmitTaskTestRun,
12784
12837
  "DescribeApproveTypeList": doDescribeApproveTypeList,
12785
12838
  "DescribeRuleExecLog": doDescribeRuleExecLog,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1284.1
3
+ Version: 3.0.1286.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.1284
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1286
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介