tccli 3.0.1308.1__py2.py3-none-any.whl → 3.0.1310.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.
- tccli/__init__.py +1 -1
- tccli/services/apm/v20210622/api.json +18 -0
- tccli/services/asr/v20190614/api.json +9 -0
- tccli/services/bh/v20230418/api.json +193 -2
- tccli/services/bh/v20230418/examples.json +2 -2
- tccli/services/cat/cat_client.py +53 -0
- tccli/services/cat/v20180409/api.json +80 -0
- tccli/services/cat/v20180409/examples.json +8 -0
- tccli/services/cdb/cdb_client.py +0 -53
- tccli/services/cdb/v20170320/api.json +0 -64
- tccli/services/cdb/v20170320/examples.json +0 -8
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +9 -0
- tccli/services/cfw/v20190904/api.json +11 -1
- tccli/services/cfw/v20190904/examples.json +2 -2
- tccli/services/dsgc/v20190723/api.json +28 -18
- tccli/services/dsgc/v20190723/examples.json +1 -1
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +103 -4
- tccli/services/ess/v20201111/examples.json +14 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +110 -2
- tccli/services/essbasic/v20210526/examples.json +14 -0
- tccli/services/gaap/gaap_client.py +12 -171
- tccli/services/gaap/v20180529/api.json +0 -325
- tccli/services/gaap/v20180529/examples.json +0 -24
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +162 -7
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/iai/v20180301/api.json +12 -12
- tccli/services/iai/v20180301/examples.json +8 -2
- tccli/services/iss/v20230517/examples.json +1 -1
- tccli/services/keewidb/v20220308/api.json +1 -1
- tccli/services/keewidb/v20220308/examples.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +2 -2
- tccli/services/mongodb/v20190725/api.json +1 -1
- tccli/services/partners/partners_client.py +57 -4
- tccli/services/partners/v20180321/api.json +151 -0
- tccli/services/partners/v20180321/examples.json +14 -0
- tccli/services/postgres/v20170312/api.json +7 -7
- tccli/services/redis/v20180412/api.json +12 -12
- tccli/services/redis/v20180412/examples.json +4 -4
- tccli/services/tcbr/v20220217/api.json +94 -0
- tccli/services/tdmq/v20200217/api.json +4 -4
- tccli/services/teo/v20220901/api.json +9 -9
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +2 -2
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +11 -11
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +183 -29
- tccli/services/waf/v20180125/examples.json +7 -1
- tccli/services/wedata/v20210820/api.json +1519 -0
- tccli/services/wedata/v20210820/examples.json +65 -1
- tccli/services/wedata/wedata_client.py +424 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/RECORD +60 -60
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/license_files/LICENSE +0 -0
@@ -5765,6 +5765,16 @@
|
|
5765
5765
|
"type": "int",
|
5766
5766
|
"value_allowed_null": false
|
5767
5767
|
},
|
5768
|
+
{
|
5769
|
+
"disabled": false,
|
5770
|
+
"document": "是否用户中止 用户中止返回true",
|
5771
|
+
"example": "false",
|
5772
|
+
"member": "bool",
|
5773
|
+
"name": "UserStopped",
|
5774
|
+
"output_required": false,
|
5775
|
+
"type": "bool",
|
5776
|
+
"value_allowed_null": false
|
5777
|
+
},
|
5768
5778
|
{
|
5769
5779
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5770
5780
|
"member": "string",
|
@@ -13751,7 +13761,7 @@
|
|
13751
13761
|
},
|
13752
13762
|
{
|
13753
13763
|
"disabled": false,
|
13754
|
-
"document": "协议;TCP/UDP/ICMP/ANY",
|
13764
|
+
"document": "协议;TCP/UDP/ICMP/ICMPv6/ANY",
|
13755
13765
|
"example": "ANY",
|
13756
13766
|
"member": "string",
|
13757
13767
|
"name": "Protocol",
|
@@ -347,8 +347,8 @@
|
|
347
347
|
"DescribeEnterpriseSGRuleProgress": [
|
348
348
|
{
|
349
349
|
"document": "",
|
350
|
-
"input": "
|
351
|
-
"output": "{\n \"Response\": {\n \"Progress\":
|
350
|
+
"input": "POST / HTTP/1.1\nHost: cfw.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEnterpriseSGRuleProgress\n<公共请求参数>\n\n{}",
|
351
|
+
"output": "{\n \"Response\": {\n \"Progress\": 100,\n \"RequestId\": \"e94a6272-4e68-4614-8433-363f87dfb28b\",\n \"UserStopped\": false\n }\n}",
|
352
352
|
"title": "查询新版安全组下发进度"
|
353
353
|
}
|
354
354
|
],
|
@@ -12777,63 +12777,73 @@
|
|
12777
12777
|
"DspaDiscoveryTask": {
|
12778
12778
|
"document": "分类分级任务相关信息",
|
12779
12779
|
"members": [
|
12780
|
+
{
|
12781
|
+
"disabled": false,
|
12782
|
+
"document": "任务ID",
|
12783
|
+
"example": "1",
|
12784
|
+
"member": "int64",
|
12785
|
+
"name": "TaskId",
|
12786
|
+
"output_required": true,
|
12787
|
+
"type": "int",
|
12788
|
+
"value_allowed_null": false
|
12789
|
+
},
|
12780
12790
|
{
|
12781
12791
|
"disabled": false,
|
12782
12792
|
"document": "任务名称",
|
12783
|
-
"example": "
|
12793
|
+
"example": "分类分级任务",
|
12784
12794
|
"member": "string",
|
12785
12795
|
"name": "Name",
|
12786
|
-
"
|
12796
|
+
"output_required": true,
|
12787
12797
|
"type": "string",
|
12788
12798
|
"value_allowed_null": false
|
12789
12799
|
},
|
12790
12800
|
{
|
12791
12801
|
"disabled": false,
|
12792
12802
|
"document": "任务描述",
|
12793
|
-
"example": "
|
12803
|
+
"example": "分类分级任务描述",
|
12794
12804
|
"member": "string",
|
12795
12805
|
"name": "Description",
|
12796
|
-
"
|
12806
|
+
"output_required": true,
|
12797
12807
|
"type": "string",
|
12798
12808
|
"value_allowed_null": false
|
12799
12809
|
},
|
12800
12810
|
{
|
12801
12811
|
"disabled": false,
|
12802
12812
|
"document": "执行周期,0单次 1每天 2每周 3每月",
|
12803
|
-
"example": "
|
12813
|
+
"example": "0",
|
12804
12814
|
"member": "int64",
|
12805
12815
|
"name": "Period",
|
12806
|
-
"
|
12816
|
+
"output_required": true,
|
12807
12817
|
"type": "int",
|
12808
12818
|
"value_allowed_null": false
|
12809
12819
|
},
|
12810
12820
|
{
|
12811
12821
|
"disabled": false,
|
12812
12822
|
"document": "执行计划,0立即 1定时",
|
12813
|
-
"example": "
|
12823
|
+
"example": "0",
|
12814
12824
|
"member": "int64",
|
12815
12825
|
"name": "Plan",
|
12816
|
-
"
|
12826
|
+
"output_required": true,
|
12817
12827
|
"type": "int",
|
12818
12828
|
"value_allowed_null": false
|
12819
12829
|
},
|
12820
12830
|
{
|
12821
12831
|
"disabled": false,
|
12822
12832
|
"document": "任务开关;1 打开,0 关闭",
|
12823
|
-
"example": "
|
12833
|
+
"example": "1",
|
12824
12834
|
"member": "int64",
|
12825
12835
|
"name": "Enable",
|
12826
|
-
"
|
12836
|
+
"output_required": true,
|
12827
12837
|
"type": "int",
|
12828
12838
|
"value_allowed_null": false
|
12829
12839
|
},
|
12830
12840
|
{
|
12831
12841
|
"disabled": false,
|
12832
12842
|
"document": "元数据对象信息",
|
12833
|
-
"example": "
|
12843
|
+
"example": "{\"ResourceRegion\":\"ap-guangzhou\",\"DataSourceId\":\"cdb-xxxxxxx\",\"DataSourceName\":\"test_db\",\"ProxyAddress\":[],\"Condition\":\"\",\"DataSourceType\":\"cdb\"}",
|
12834
12844
|
"member": "DspaDiscoveryTaskDataSource",
|
12835
12845
|
"name": "DataSourceInfo",
|
12836
|
-
"
|
12846
|
+
"output_required": true,
|
12837
12847
|
"type": "object",
|
12838
12848
|
"value_allowed_null": false
|
12839
12849
|
},
|
@@ -12843,27 +12853,27 @@
|
|
12843
12853
|
"example": "1",
|
12844
12854
|
"member": "int64",
|
12845
12855
|
"name": "GeneralRuleSetEnable",
|
12846
|
-
"
|
12856
|
+
"output_required": true,
|
12847
12857
|
"type": "int",
|
12848
12858
|
"value_allowed_null": false
|
12849
12859
|
},
|
12850
12860
|
{
|
12851
12861
|
"disabled": false,
|
12852
12862
|
"document": "任务最新的一次执行结果信息,该字段用于查询任务列表接口\n注意:此字段可能返回 null,表示取不到有效值。",
|
12853
|
-
"example": "
|
12863
|
+
"example": "{\"Id\":665,\"EndTime\":\"2025-05-12 04:53:03\",\"Status\":3,\"Result\":\"\",\"ResultDescription\":\"\",\"Suggestion\":\"\",\"Progress\":100}",
|
12854
12864
|
"member": "ScanTaskResult",
|
12855
12865
|
"name": "Result",
|
12856
|
-
"
|
12866
|
+
"output_required": true,
|
12857
12867
|
"type": "object",
|
12858
12868
|
"value_allowed_null": true
|
12859
12869
|
},
|
12860
12870
|
{
|
12861
12871
|
"disabled": false,
|
12862
12872
|
"document": "定时开始时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
12863
|
-
"example": "
|
12873
|
+
"example": "2025-05-1212:12:12",
|
12864
12874
|
"member": "string",
|
12865
12875
|
"name": "TimingStartTime",
|
12866
|
-
"
|
12876
|
+
"output_required": true,
|
12867
12877
|
"type": "string",
|
12868
12878
|
"value_allowed_null": true
|
12869
12879
|
},
|
@@ -12873,7 +12883,7 @@
|
|
12873
12883
|
"example": "true",
|
12874
12884
|
"member": "bool",
|
12875
12885
|
"name": "ComplianceUpdate",
|
12876
|
-
"
|
12886
|
+
"output_required": true,
|
12877
12887
|
"type": "bool",
|
12878
12888
|
"value_allowed_null": true
|
12879
12889
|
}
|
@@ -706,7 +706,7 @@
|
|
706
706
|
{
|
707
707
|
"document": "",
|
708
708
|
"input": "POST / HTTP/1.1\nHost: dsgc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDSPADiscoveryTasks\n<公共请求参数>\n\n{\n \"DataSourceType\": \"cdb\",\n \"DspaId\": \"dspa-001\",\n \"Limit\": \"1\",\n \"Offset\": \"0\"\n}",
|
709
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"91c7a73v-e540-4780-8b8e-74e0b65b4f1a\",\n \"TotalCount\": 1,\n \"Items\": [\n {\n \"Name\": \"通用规则集测试\",\n \"Description\": \"\",\n \"Period\": 0,\n \"Plan\": 0,\n \"Enable\": 1,\n \"TimingStartTime\": null,\n \"GeneralRuleSetEnable\": 0,\n \"DataSourceInfo\": {\n \"ResourceRegion\": \"ap-guangzhou\",\n \"DataSourceId\": \"cdb-6dcpe42v\",\n \"DataSourceName\": \"采集测试\",\n \"ProxyAddress\": null,\n \"Condition\": \"test_report,dsgctest001\",\n \"DataSourceType\": \"cdb\"\n },\n \"ComplianceUpdate\": false,\n \"Result\": {\n \"Id\": 4142,\n \"EndTime\": \"2024-11-05 17:17:30\",\n \"Status\": 3,\n \"Result\": \"\"\n }\n }\n ]\n }\n}",
|
709
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"91c7a73v-e540-4780-8b8e-74e0b65b4f1a\",\n \"TotalCount\": 1,\n \"Items\": [\n {\n \"TaskId\": 14596,\n \"Name\": \"通用规则集测试\",\n \"Description\": \"\",\n \"Period\": 0,\n \"Plan\": 0,\n \"Enable\": 1,\n \"TimingStartTime\": null,\n \"GeneralRuleSetEnable\": 0,\n \"DataSourceInfo\": {\n \"ResourceRegion\": \"ap-guangzhou\",\n \"DataSourceId\": \"cdb-6dcpe42v\",\n \"DataSourceName\": \"采集测试\",\n \"ProxyAddress\": null,\n \"Condition\": \"test_report,dsgctest001\",\n \"DataSourceType\": \"cdb\"\n },\n \"ComplianceUpdate\": false,\n \"Result\": {\n \"Id\": 4142,\n \"EndTime\": \"2024-11-05 17:17:30\",\n \"Status\": 3,\n \"Result\": \"\"\n }\n }\n ]\n }\n}",
|
710
710
|
"title": "获取分类分级任务列表"
|
711
711
|
}
|
712
712
|
],
|
tccli/services/ess/ess_client.py
CHANGED
@@ -5009,6 +5009,58 @@ def doArchiveDynamicFlow(args, parsed_globals):
|
|
5009
5009
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5010
5010
|
|
5011
5011
|
|
5012
|
+
def doCreatePrepareFlowGroup(args, parsed_globals):
|
5013
|
+
g_param = parse_global_arg(parsed_globals)
|
5014
|
+
|
5015
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5016
|
+
cred = credential.CVMRoleCredential()
|
5017
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5018
|
+
cred = credential.STSAssumeRoleCredential(
|
5019
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5020
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5021
|
+
)
|
5022
|
+
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):
|
5023
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5024
|
+
else:
|
5025
|
+
cred = credential.Credential(
|
5026
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5027
|
+
)
|
5028
|
+
http_profile = HttpProfile(
|
5029
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5030
|
+
reqMethod="POST",
|
5031
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5032
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5033
|
+
)
|
5034
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5035
|
+
if g_param[OptionsDefine.Language]:
|
5036
|
+
profile.language = g_param[OptionsDefine.Language]
|
5037
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5038
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
5039
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5040
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5041
|
+
model = models.CreatePrepareFlowGroupRequest()
|
5042
|
+
model.from_json_string(json.dumps(args))
|
5043
|
+
start_time = time.time()
|
5044
|
+
while True:
|
5045
|
+
rsp = client.CreatePrepareFlowGroup(model)
|
5046
|
+
result = rsp.to_json_string()
|
5047
|
+
try:
|
5048
|
+
json_obj = json.loads(result)
|
5049
|
+
except TypeError as e:
|
5050
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5051
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5052
|
+
break
|
5053
|
+
cur_time = time.time()
|
5054
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5055
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5056
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5057
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5058
|
+
else:
|
5059
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5060
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5061
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5062
|
+
|
5063
|
+
|
5012
5064
|
def doUpdateIntegrationEmployees(args, parsed_globals):
|
5013
5065
|
g_param = parse_global_arg(parsed_globals)
|
5014
5066
|
|
@@ -5480,6 +5532,7 @@ ACTION_MAP = {
|
|
5480
5532
|
"GetTaskResultApi": doGetTaskResultApi,
|
5481
5533
|
"DescribeBillUsage": doDescribeBillUsage,
|
5482
5534
|
"ArchiveDynamicFlow": doArchiveDynamicFlow,
|
5535
|
+
"CreatePrepareFlowGroup": doCreatePrepareFlowGroup,
|
5483
5536
|
"UpdateIntegrationEmployees": doUpdateIntegrationEmployees,
|
5484
5537
|
"CreateOrganizationBatchSignUrl": doCreateOrganizationBatchSignUrl,
|
5485
5538
|
"DescribeThirdPartyAuthCode": doDescribeThirdPartyAuthCode,
|
@@ -322,6 +322,13 @@
|
|
322
322
|
"output": "CreatePrepareFlowResponse",
|
323
323
|
"status": "online"
|
324
324
|
},
|
325
|
+
"CreatePrepareFlowGroup": {
|
326
|
+
"document": "接口(CreatePrepareFlowGroup)用于创建嵌入式合同组签署流程。\n\n- 该接口当前仅支持文件发起\n- 该接口能力和CreateFlowGroupByFiles,~~CreateFlowGroupByTemplates~~保持一致。\n- 返回的FlowGroupId 为临时id,只有在页面内成功发起后FlowGroupId才会有效。",
|
327
|
+
"input": "CreatePrepareFlowGroupRequest",
|
328
|
+
"name": "获取发起合同组嵌入链接",
|
329
|
+
"output": "CreatePrepareFlowGroupResponse",
|
330
|
+
"status": "online"
|
331
|
+
},
|
325
332
|
"CreatePreparedPersonalEsign": {
|
326
333
|
"document": "本接口(CreatePreparedPersonalEsign)用于创建导入个人印章(处方单场景专用,使用此接口请与客户经理确认)。",
|
327
334
|
"input": "CreatePreparedPersonalEsignRequest",
|
@@ -680,7 +687,7 @@
|
|
680
687
|
"status": "online"
|
681
688
|
},
|
682
689
|
"StartFlow": {
|
683
|
-
"document": "此接口用于启动流程。它是模板发起合同的最后一步。\n在[创建签署流程](https://qian.tencent.com/developers/companyApis/startFlows/CreateFlow)和[创建电子文档](https://qian.tencent.com/developers/companyApis/startFlows/CreateDocument)之后,用于开始整个合同流程, 推进流程进入到签署环节。\n\n\n\n注:\n1.<font color=\"red\">合同发起后就会扣减合同的额度</font>, 只有撤销没有参与方签署过或只有自动签署签署过的合同,才会返还合同额度。(过期,拒签,签署完成,解除完成等状态不会返还额度)\n\n2.<font color=\"red\">静默(自动)签署不支持非本企业合同签署方存在填写</font>功能\n\n3.<font color=\"red\">在发起签署流程之前,建议等待 [PDF合成完成的回调](https://qian.tencent.com/developers/company/
|
690
|
+
"document": "此接口用于启动流程。它是模板发起合同的最后一步。\n在[创建签署流程](https://qian.tencent.com/developers/companyApis/startFlows/CreateFlow)和[创建电子文档](https://qian.tencent.com/developers/companyApis/startFlows/CreateDocument)之后,用于开始整个合同流程, 推进流程进入到签署环节。\n\n\n\n注:\n1.<font color=\"red\">合同发起后就会扣减合同的额度</font>, 只有撤销没有参与方签署过或只有自动签署签署过的合同,才会返还合同额度。(过期,拒签,签署完成,解除完成等状态不会返还额度)\n\n2.<font color=\"red\">静默(自动)签署不支持非本企业合同签署方存在填写</font>功能\n\n3.<font color=\"red\">在发起签署流程之前,建议等待 [PDF合成完成的回调](https://qian.tencent.com/developers/company/callback_types_contracts_sign#%E4%B9%9D-%E5%90%88%E5%90%8C%E6%96%87%E6%A1%A3%E5%90%88%E6%88%90%E5%AE%8C%E6%88%90%E5%9B%9E%E8%B0%83)</font>,尤其是当模板中存在动态表格等复杂填写控件时,因为合成过程可能会耗费秒级别的时间。",
|
684
691
|
"input": "StartFlowRequest",
|
685
692
|
"name": "模板发起合同-发起签署流程",
|
686
693
|
"output": "StartFlowResponse",
|
@@ -2039,7 +2046,7 @@
|
|
2039
2046
|
},
|
2040
2047
|
{
|
2041
2048
|
"disabled": false,
|
2042
|
-
"document": "
|
2049
|
+
"document": "**在绝对定位方式下**,可以指定控件横向位置的位置,单位为pt(点)。",
|
2043
2050
|
"example": "100",
|
2044
2051
|
"member": "float",
|
2045
2052
|
"name": "ComponentPosX",
|
@@ -2050,7 +2057,7 @@
|
|
2050
2057
|
},
|
2051
2058
|
{
|
2052
2059
|
"disabled": false,
|
2053
|
-
"document": "
|
2060
|
+
"document": "**在绝对定位方式下**,可以指定控件纵向位置的位置,单位为pt(点)。",
|
2054
2061
|
"example": "100",
|
2055
2062
|
"member": "float",
|
2056
2063
|
"name": "ComponentPosY",
|
@@ -5992,7 +5999,7 @@
|
|
5992
5999
|
"example": "[\"yDxZtUyKQD2JuqUuO4zjERYG3XNeEJXw\"]",
|
5993
6000
|
"member": "string",
|
5994
6001
|
"name": "FlowIds",
|
5995
|
-
"required":
|
6002
|
+
"required": false,
|
5996
6003
|
"type": "list"
|
5997
6004
|
},
|
5998
6005
|
{
|
@@ -6039,6 +6046,15 @@
|
|
6039
6046
|
"name": "RecipientIds",
|
6040
6047
|
"required": false,
|
6041
6048
|
"type": "list"
|
6049
|
+
},
|
6050
|
+
{
|
6051
|
+
"disabled": false,
|
6052
|
+
"document": "合同组Id,传入此参数则可以不传FlowIds",
|
6053
|
+
"example": "yDwcCUUgyg3tgmwcUEVzyNaupO7DiB3E",
|
6054
|
+
"member": "string",
|
6055
|
+
"name": "FlowGroupId",
|
6056
|
+
"required": false,
|
6057
|
+
"type": "string"
|
6042
6058
|
}
|
6043
6059
|
],
|
6044
6060
|
"type": "object"
|
@@ -6440,6 +6456,89 @@
|
|
6440
6456
|
],
|
6441
6457
|
"type": "object"
|
6442
6458
|
},
|
6459
|
+
"CreatePrepareFlowGroupRequest": {
|
6460
|
+
"document": "CreatePrepareFlowGroup请求参数结构体",
|
6461
|
+
"members": [
|
6462
|
+
{
|
6463
|
+
"disabled": false,
|
6464
|
+
"document": "执行本接口操作的员工信息。\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
|
6465
|
+
"example": "无",
|
6466
|
+
"member": "UserInfo",
|
6467
|
+
"name": "Operator",
|
6468
|
+
"required": true,
|
6469
|
+
"type": "object"
|
6470
|
+
},
|
6471
|
+
{
|
6472
|
+
"disabled": false,
|
6473
|
+
"document": "合同(流程)组名称(可自定义此名称),长度不能超过200,只能由中文、字母、数字和下划线组成。",
|
6474
|
+
"example": "入职合同集",
|
6475
|
+
"member": "string",
|
6476
|
+
"name": "FlowGroupName",
|
6477
|
+
"required": true,
|
6478
|
+
"type": "string"
|
6479
|
+
},
|
6480
|
+
{
|
6481
|
+
"disabled": false,
|
6482
|
+
"document": "合同(流程)组的子合同信息,支持2-50个子合同",
|
6483
|
+
"example": "无",
|
6484
|
+
"member": "FlowGroupInfo",
|
6485
|
+
"name": "FlowGroupInfos",
|
6486
|
+
"required": true,
|
6487
|
+
"type": "list"
|
6488
|
+
},
|
6489
|
+
{
|
6490
|
+
"disabled": false,
|
6491
|
+
"document": "资源类型,取值有: <ul><li> **1**:模板</li> <li> **2**:文件</li></ul>",
|
6492
|
+
"example": "1",
|
6493
|
+
"member": "int64",
|
6494
|
+
"name": "ResourceType",
|
6495
|
+
"required": true,
|
6496
|
+
"type": "int"
|
6497
|
+
},
|
6498
|
+
{
|
6499
|
+
"disabled": false,
|
6500
|
+
"document": "代理企业和员工的信息。\n在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。",
|
6501
|
+
"example": "无",
|
6502
|
+
"member": "Agent",
|
6503
|
+
"name": "Agent",
|
6504
|
+
"required": false,
|
6505
|
+
"type": "object"
|
6506
|
+
}
|
6507
|
+
],
|
6508
|
+
"type": "object"
|
6509
|
+
},
|
6510
|
+
"CreatePrepareFlowGroupResponse": {
|
6511
|
+
"document": "CreatePrepareFlowGroup返回参数结构体",
|
6512
|
+
"members": [
|
6513
|
+
{
|
6514
|
+
"disabled": false,
|
6515
|
+
"document": "合同(流程)组的合同组Id",
|
6516
|
+
"example": "yDt1JUUckp77a2omUyEmko88eg49PTsN",
|
6517
|
+
"member": "string",
|
6518
|
+
"name": "FlowGroupId",
|
6519
|
+
"output_required": true,
|
6520
|
+
"type": "string",
|
6521
|
+
"value_allowed_null": false
|
6522
|
+
},
|
6523
|
+
{
|
6524
|
+
"disabled": false,
|
6525
|
+
"document": "嵌入式合同组发起链接",
|
6526
|
+
"example": "https://embed.test.qian.tencent.cn/contract-create?embed=1&expiredOn=1744785243&code=yDtBLUUckpx65&businessId=yDtBLUUckYNlO&channel=TENCENTCLOUD&operateSource=byFileGroup&themeId=saas_web_theme",
|
6527
|
+
"member": "string",
|
6528
|
+
"name": "PrepareUrl",
|
6529
|
+
"output_required": false,
|
6530
|
+
"type": "string",
|
6531
|
+
"value_allowed_null": false
|
6532
|
+
},
|
6533
|
+
{
|
6534
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6535
|
+
"member": "string",
|
6536
|
+
"name": "RequestId",
|
6537
|
+
"type": "string"
|
6538
|
+
}
|
6539
|
+
],
|
6540
|
+
"type": "object"
|
6541
|
+
},
|
6443
6542
|
"CreatePrepareFlowRequest": {
|
6444
6543
|
"document": "CreatePrepareFlow请求参数结构体",
|
6445
6544
|
"members": [
|
@@ -944,6 +944,12 @@
|
|
944
944
|
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationBatchSignUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2xun5UXXXzjEwg0vjoimj\"\n },\n \"Agent\": {\n \"ProxyOrganizationId\": \"\"\n },\n \"UserId\": \"\",\n \"Name\": \"\",\n \"Mobile\": \"\",\n \"FlowIds\": [\n \"yDC5yUUntf6vnnUxxBTyJ8Ps0WGqAuHL\",\n \"yDC5yUUntf6fccUEgcyeHwPz4wjnDSI4\"\n ],\n \"RecipientIds\": [\n \"yDC5yUUntf6vn0UxxBTyJvfv3Xlckcye\",\n \"yDC5yUUntf6mdgUEgcyeHCpCDmDjbsQJ\"\n ]\n}",
|
945
945
|
"output": "{\n \"Response\": {\n \"ExpiredTime\": 1706100107,\n \"RequestId\": \"s1705495307288609862\",\n \"SignUrl\": \"https://embed.test.qian.tencent.cn/contract-sign?embed=1&expiredOn=1706100107&code=yDCNBUUckpvlibz6UEMbkWeSzl6YurH0&shortKey=yDCNBUzgvS93aBhXs3ae&channel=TENCENTCLOUD\"\n }\n}",
|
946
946
|
"title": "基于RecipientIds 生成他方签署链接"
|
947
|
+
},
|
948
|
+
{
|
949
|
+
"document": "",
|
950
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationBatchSignUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2xun5UXXXzjEwg0vjoimj\"\n },\n \"Agent\": {\n \"ProxyOrganizationId\": \"\"\n },\n \"FlowGroupId\": \"yDwFmUUckpstqfvzUxxx3jo1f3cqjkGm\",\n \"UserId\": \"yDRCLUUgygq2xun5UXXXzjEwg0vjoimj\",\n \"Name\": \"张三\",\n \"Mobile\": \"18888888888\"\n}",
|
951
|
+
"output": "{\n \"Response\": {\n \"ExpiredTime\": 1706100107,\n \"RequestId\": \"s1705495307288609862\",\n \"SignUrl\": \"https://embed.test.qian.tencent.cn/contract-sign?embed=1&expiredOn=1706100107&code=yDCNBUUckpvlibz6UEMbkWeSzl6YurH0&shortKey=yDCNBUzgvS93aBhXs3ae&channel=TENCENTCLOUD\"\n }\n}",
|
952
|
+
"title": "获取合同组签署链接"
|
947
953
|
}
|
948
954
|
],
|
949
955
|
"CreateOrganizationGroupInvitationLink": [
|
@@ -1028,6 +1034,14 @@
|
|
1028
1034
|
"title": "文件发起,设置跳过上传文件,必须要传资源id"
|
1029
1035
|
}
|
1030
1036
|
],
|
1037
|
+
"CreatePrepareFlowGroup": [
|
1038
|
+
{
|
1039
|
+
"document": "",
|
1040
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrepareFlowGroup\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDwf3UUckps8dvypUEfH3DjwIpMfa0uw\"\n },\n \"FlowGroupInfos\": [\n {\n \"FileIds\": [\n \"yDCWiUUckpv6iggyUyuqIrwyppQVS7TR\"\n ],\n \"FlowName\": \"预发起合同\",\n \"FlowType\": \"嵌入式文件发起合同\",\n \"FlowDescription\": \"描述\",\n \"Deadline\": 1757034793,\n \"Unordered\": false,\n \"NeedSignReview\": false,\n \"UserData\": \"\",\n \"Approvers\": [\n {\n \"ApproverType\": 1,\n \"OrganizationName\": \"\",\n \"ApproverName\": \"典子签\",\n \"ApproverOption\": {\n \"CanEditApprover\": true\n },\n \"ApproverMobile\": \"18700000000\",\n \"SignComponents\": [\n {\n \"ChannelComponentId\": \"\",\n \"ChannelComponentSource\": 0,\n \"ComponentDateFontSize\": 0,\n \"ComponentExtra\": \"\",\n \"ComponentHeight\": 100,\n \"ComponentId\": \"\",\n \"ComponentName\": \"\",\n \"ComponentPage\": 3,\n \"ComponentPosX\": 160,\n \"ComponentPosY\": 360,\n \"ComponentRecipientId\": \"\",\n \"ComponentRequired\": false,\n \"ComponentType\": \"SIGN_SIGNATURE\",\n \"ComponentValue\": \"\",\n \"ComponentWidth\": 100,\n \"FileIndex\": 0,\n \"ForbidMoveAndDelete\": true,\n \"GenerateMode\": \"\",\n \"IsFormType\": false,\n \"KeywordIndexes\": [],\n \"KeywordOrder\": \"\",\n \"KeywordPage\": 0,\n \"LockComponentValue\": false,\n \"OffsetX\": 0,\n \"OffsetY\": 0,\n \"RelativeLocation\": \"\"\n }\n ]\n }\n ]\n }\n ],\n \"FlowGroupName\": \"group\",\n \"ResourceType\": 2\n}",
|
1041
|
+
"output": "{\n \"Response\": {\n \"FlowGroupId\": \"yDttAUUckpxbcziqUySqdD5Eugn0LPHo\",\n \"RequestId\": \"s1747034803503801327\",\n \"PrepareUrl\": \"https://embed.test.qian.tencent.cn/contract-create?embed=1&expiredOn=1747035103&code=yDttAUUckpxbcHI&businessId=yDttAUUckpxbcziqUySqdD5o&channel=TENCENTCLOUD&operateSource=byFileGroup&themeId=saas_web_theme_yDhk9nE0qLixm\"\n }\n}",
|
1042
|
+
"title": "文件发起嵌入式合同组"
|
1043
|
+
}
|
1044
|
+
],
|
1031
1045
|
"CreatePreparedPersonalEsign": [
|
1032
1046
|
{
|
1033
1047
|
"document": "通过准备好的印章图片创建个人印章",
|
@@ -3815,6 +3815,58 @@ def doCreateBatchOrganizationAuthorizationUrl(args, parsed_globals):
|
|
3815
3815
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3816
3816
|
|
3817
3817
|
|
3818
|
+
def doChannelCreatePrepareFlowGroup(args, parsed_globals):
|
3819
|
+
g_param = parse_global_arg(parsed_globals)
|
3820
|
+
|
3821
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3822
|
+
cred = credential.CVMRoleCredential()
|
3823
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3824
|
+
cred = credential.STSAssumeRoleCredential(
|
3825
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3826
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3827
|
+
)
|
3828
|
+
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):
|
3829
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3830
|
+
else:
|
3831
|
+
cred = credential.Credential(
|
3832
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3833
|
+
)
|
3834
|
+
http_profile = HttpProfile(
|
3835
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3836
|
+
reqMethod="POST",
|
3837
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3838
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3839
|
+
)
|
3840
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3841
|
+
if g_param[OptionsDefine.Language]:
|
3842
|
+
profile.language = g_param[OptionsDefine.Language]
|
3843
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3844
|
+
client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
|
3845
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3846
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3847
|
+
model = models.ChannelCreatePrepareFlowGroupRequest()
|
3848
|
+
model.from_json_string(json.dumps(args))
|
3849
|
+
start_time = time.time()
|
3850
|
+
while True:
|
3851
|
+
rsp = client.ChannelCreatePrepareFlowGroup(model)
|
3852
|
+
result = rsp.to_json_string()
|
3853
|
+
try:
|
3854
|
+
json_obj = json.loads(result)
|
3855
|
+
except TypeError as e:
|
3856
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3857
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3858
|
+
break
|
3859
|
+
cur_time = time.time()
|
3860
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3861
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3862
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3863
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3864
|
+
else:
|
3865
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3866
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3867
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3868
|
+
|
3869
|
+
|
3818
3870
|
def doChannelCreateBatchQuickSignUrl(args, parsed_globals):
|
3819
3871
|
g_param = parse_global_arg(parsed_globals)
|
3820
3872
|
|
@@ -7489,6 +7541,7 @@ ACTION_MAP = {
|
|
7489
7541
|
"DescribeFlowFiles": doDescribeFlowFiles,
|
7490
7542
|
"CreateFlowBlockchainEvidenceUrl": doCreateFlowBlockchainEvidenceUrl,
|
7491
7543
|
"CreateBatchOrganizationAuthorizationUrl": doCreateBatchOrganizationAuthorizationUrl,
|
7544
|
+
"ChannelCreatePrepareFlowGroup": doChannelCreatePrepareFlowGroup,
|
7492
7545
|
"ChannelCreateBatchQuickSignUrl": doChannelCreateBatchQuickSignUrl,
|
7493
7546
|
"ChannelDisableUserAutoSign": doChannelDisableUserAutoSign,
|
7494
7547
|
"CreateBatchOrganizationRegistrationTasks": doCreateBatchOrganizationRegistrationTasks,
|