tccli 3.0.1406.1__py2.py3-none-any.whl → 3.0.1408.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 (40) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ccc/v20200210/api.json +9 -0
  3. tccli/services/cdb/cdb_client.py +53 -0
  4. tccli/services/cdb/v20170320/api.json +54 -0
  5. tccli/services/cdb/v20170320/examples.json +8 -0
  6. tccli/services/dbbrain/v20210527/api.json +7 -7
  7. tccli/services/dcdb/v20180411/api.json +1 -1
  8. tccli/services/dts/v20211206/api.json +3 -3
  9. tccli/services/ess/ess_client.py +106 -0
  10. tccli/services/ess/v20201111/api.json +163 -0
  11. tccli/services/ess/v20201111/examples.json +16 -0
  12. tccli/services/essbasic/v20210526/api.json +3 -3
  13. tccli/services/essbasic/v20210526/examples.json +6 -6
  14. tccli/services/gaap/v20180529/api.json +13 -3
  15. tccli/services/ioa/ioa_client.py +61 -8
  16. tccli/services/ioa/v20220601/api.json +126 -0
  17. tccli/services/ioa/v20220601/examples.json +8 -0
  18. tccli/services/lighthouse/v20200324/api.json +36 -0
  19. tccli/services/lighthouse/v20200324/examples.json +1 -1
  20. tccli/services/live/v20180801/examples.json +6 -0
  21. tccli/services/mariadb/v20170312/api.json +1 -1
  22. tccli/services/mps/v20190612/api.json +270 -4
  23. tccli/services/oceanus/v20190422/api.json +2 -2
  24. tccli/services/oceanus/v20190422/examples.json +2 -2
  25. tccli/services/ocr/v20181119/api.json +10 -0
  26. tccli/services/pts/v20210728/api.json +2 -2
  27. tccli/services/rum/v20210622/api.json +18 -0
  28. tccli/services/teo/v20220901/api.json +155 -15
  29. tccli/services/teo/v20220901/examples.json +32 -8
  30. tccli/services/tmt/v20180321/api.json +78 -1
  31. tccli/services/tsf/v20180326/api.json +3 -0
  32. tccli/services/vpc/v20170312/api.json +819 -0
  33. tccli/services/vpc/v20170312/examples.json +96 -0
  34. tccli/services/vpc/vpc_client.py +669 -33
  35. tccli/services/wedata/v20250806/api.json +46 -7
  36. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/METADATA +2 -2
  37. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/RECORD +40 -40
  38. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/WHEEL +0 -0
  39. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/entry_points.txt +0 -0
  40. {tccli-3.0.1406.1.dist-info → tccli-3.0.1408.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1406.1'
1
+ __version__ = '3.0.1408.1'
@@ -1268,6 +1268,15 @@
1268
1268
  "name": "CallInInterface",
1269
1269
  "required": false,
1270
1270
  "type": "object"
1271
+ },
1272
+ {
1273
+ "disabled": false,
1274
+ "document": "绑定号码类型: inner: 内线号码 | number: 正常线路号码",
1275
+ "example": "number",
1276
+ "member": "string",
1277
+ "name": "NumberType",
1278
+ "required": false,
1279
+ "type": "string"
1271
1280
  }
1272
1281
  ],
1273
1282
  "type": "object"
@@ -3553,6 +3553,58 @@ def doDescribeDBInstanceConfig(args, parsed_globals):
3553
3553
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
3554
 
3555
3555
 
3556
+ def doDescribeInstancePasswordComplexity(args, parsed_globals):
3557
+ g_param = parse_global_arg(parsed_globals)
3558
+
3559
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3560
+ cred = credential.CVMRoleCredential()
3561
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3562
+ cred = credential.STSAssumeRoleCredential(
3563
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3564
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3565
+ )
3566
+ 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):
3567
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3568
+ else:
3569
+ cred = credential.Credential(
3570
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3571
+ )
3572
+ http_profile = HttpProfile(
3573
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3574
+ reqMethod="POST",
3575
+ endpoint=g_param[OptionsDefine.Endpoint],
3576
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3577
+ )
3578
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3579
+ if g_param[OptionsDefine.Language]:
3580
+ profile.language = g_param[OptionsDefine.Language]
3581
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3582
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3583
+ client._sdkVersion += ("_CLI_" + __version__)
3584
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3585
+ model = models.DescribeInstancePasswordComplexityRequest()
3586
+ model.from_json_string(json.dumps(args))
3587
+ start_time = time.time()
3588
+ while True:
3589
+ rsp = client.DescribeInstancePasswordComplexity(model)
3590
+ result = rsp.to_json_string()
3591
+ try:
3592
+ json_obj = json.loads(result)
3593
+ except TypeError as e:
3594
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3595
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3596
+ break
3597
+ cur_time = time.time()
3598
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3599
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3600
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3601
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3602
+ else:
3603
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3604
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3605
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3606
+
3607
+
3556
3608
  def doCreateCdbProxyAddress(args, parsed_globals):
3557
3609
  g_param = parse_global_arg(parsed_globals)
3558
3610
 
@@ -9196,6 +9248,7 @@ ACTION_MAP = {
9196
9248
  "CreateBackup": doCreateBackup,
9197
9249
  "ModifyDBInstanceVipVport": doModifyDBInstanceVipVport,
9198
9250
  "DescribeDBInstanceConfig": doDescribeDBInstanceConfig,
9251
+ "DescribeInstancePasswordComplexity": doDescribeInstancePasswordComplexity,
9199
9252
  "CreateCdbProxyAddress": doCreateCdbProxyAddress,
9200
9253
  "DeleteAuditPolicy": doDeleteAuditPolicy,
9201
9254
  "DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
@@ -609,6 +609,13 @@
609
609
  "output": "DescribeInstanceParamsResponse",
610
610
  "status": "online"
611
611
  },
612
+ "DescribeInstancePasswordComplexity": {
613
+ "document": "该接口(DescribeInstancePasswordComplexity)用于查询实例的密码复杂度参数列表。",
614
+ "input": "DescribeInstancePasswordComplexityRequest",
615
+ "name": "查询实例的密码复杂度",
616
+ "output": "DescribeInstancePasswordComplexityResponse",
617
+ "status": "online"
618
+ },
612
619
  "DescribeInstanceUpgradeCheckJob": {
613
620
  "document": "该接口(DescribeInstanceUpgradeCheckJob)查询实例版本升级校验任务。",
614
621
  "input": "DescribeInstanceUpgradeCheckJobRequest",
@@ -11814,6 +11821,53 @@
11814
11821
  ],
11815
11822
  "type": "object"
11816
11823
  },
11824
+ "DescribeInstancePasswordComplexityRequest": {
11825
+ "document": "DescribeInstancePasswordComplexity请求参数结构体",
11826
+ "members": [
11827
+ {
11828
+ "disabled": false,
11829
+ "document": "实例ID ",
11830
+ "example": "\"cdb-1urqrvpf\"",
11831
+ "member": "string",
11832
+ "name": "InstanceId",
11833
+ "required": true,
11834
+ "type": "string"
11835
+ }
11836
+ ],
11837
+ "type": "object"
11838
+ },
11839
+ "DescribeInstancePasswordComplexityResponse": {
11840
+ "document": "DescribeInstancePasswordComplexity返回参数结构体",
11841
+ "members": [
11842
+ {
11843
+ "disabled": false,
11844
+ "document": "实例的参数总数",
11845
+ "example": "72",
11846
+ "member": "int64",
11847
+ "name": "TotalCount",
11848
+ "output_required": true,
11849
+ "type": "int",
11850
+ "value_allowed_null": false
11851
+ },
11852
+ {
11853
+ "disabled": false,
11854
+ "document": "参数详情",
11855
+ "example": "[ ]",
11856
+ "member": "ParameterDetail",
11857
+ "name": "Items",
11858
+ "output_required": true,
11859
+ "type": "list",
11860
+ "value_allowed_null": false
11861
+ },
11862
+ {
11863
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11864
+ "member": "string",
11865
+ "name": "RequestId",
11866
+ "type": "string"
11867
+ }
11868
+ ],
11869
+ "type": "object"
11870
+ },
11817
11871
  "DescribeInstanceUpgradeCheckJobRequest": {
11818
11872
  "document": "DescribeInstanceUpgradeCheckJob请求参数结构体",
11819
11873
  "members": [
@@ -750,6 +750,14 @@
750
750
  "title": "查询实例的可设置参数列表"
751
751
  }
752
752
  ],
753
+ "DescribeInstancePasswordComplexity": [
754
+ {
755
+ "document": "查询实例的密码复杂度",
756
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstancePasswordComplexity\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-1urqrvpf\"\n}",
757
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CurrentValue\": \"8\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of characters that validate_password requires passwords to have.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 64,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_length\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n },\n {\n \"CurrentValue\": \"1\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of lowercase and uppercase characters that validate_password requires passwords to have if the password policy is MEDIUM or stronger.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 16,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_mixed_case_count\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n },\n {\n \"CurrentValue\": \"2\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of numeric (digit) characters that validate_password requires passwords to have if the password policy is MEDIUM or stronger.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 16,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_number_count\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n },\n {\n \"CurrentValue\": \"MEDIUM\",\n \"Default\": \"LOW\",\n \"Description\": \"The password policy enforced by validate_password. The validate_password.policy value can be specified using numeric values 0, 1, 2.\",\n \"EnumValue\": [\n \"LOW\",\n \"MEDIUM\",\n \"STRONG\"\n ],\n \"IsNotSupportEdit\": false,\n \"Max\": 0,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_policy\",\n \"NeedReboot\": 0,\n \"ParamType\": \"enum\"\n },\n {\n \"CurrentValue\": \"3\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of nonalphanumeric characters that validate_password requires passwords to have if the password policy is MEDIUM or stronger.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 16,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_special_char_count\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n }\n ],\n \"RequestId\": \"103be0cb-4ca7-400b-a6b1-4c3fc7b7227c\",\n \"TotalCount\": 5\n }\n}",
758
+ "title": "查询实例的密码复杂度"
759
+ }
760
+ ],
753
761
  "DescribeInstanceUpgradeCheckJob": [
754
762
  {
755
763
  "document": "无",
@@ -10950,7 +10950,7 @@
10950
10950
  "members": [
10951
10951
  {
10952
10952
  "disabled": false,
10953
- "document": "命令模版。",
10953
+ "document": "命令模板。",
10954
10954
  "example": "bgsave",
10955
10955
  "member": "string",
10956
10956
  "name": "Cmd",
@@ -10980,7 +10980,7 @@
10980
10980
  },
10981
10981
  {
10982
10982
  "disabled": false,
10983
- "document": "总耗时。",
10983
+ "document": "总耗时。单位:s",
10984
10984
  "example": "0.01",
10985
10985
  "member": "float",
10986
10986
  "name": "QueryTime",
@@ -10990,7 +10990,7 @@
10990
10990
  },
10991
10991
  {
10992
10992
  "disabled": false,
10993
- "document": "平均执行时间。",
10993
+ "document": "平均执行时间。单位:s",
10994
10994
  "example": "0.01",
10995
10995
  "member": "float",
10996
10996
  "name": "QueryTimeAvg",
@@ -11000,7 +11000,7 @@
11000
11000
  },
11001
11001
  {
11002
11002
  "disabled": false,
11003
- "document": "最大执行时间。",
11003
+ "document": "最大执行时间。单位:s",
11004
11004
  "example": "0.02",
11005
11005
  "member": "float",
11006
11006
  "name": "QueryTimeMax",
@@ -11010,7 +11010,7 @@
11010
11010
  },
11011
11011
  {
11012
11012
  "disabled": false,
11013
- "document": "最小执行时间。",
11013
+ "document": "最小执行时间。单位:s",
11014
11014
  "example": "0.001",
11015
11015
  "member": "float",
11016
11016
  "name": "QueryTimeMin",
@@ -11020,8 +11020,8 @@
11020
11020
  },
11021
11021
  {
11022
11022
  "disabled": false,
11023
- "document": "总耗时占比",
11024
- "example": "100",
11023
+ "document": "总耗时占比。单位:%",
11024
+ "example": "100.0",
11025
11025
  "member": "float",
11026
11026
  "name": "QueryTimeRatio",
11027
11027
  "output_required": false,
@@ -8132,7 +8132,7 @@
8132
8132
  {
8133
8133
  "disabled": false,
8134
8134
  "document": "要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。<br>注意:该入参会全量替换存量已有安全组集合,并非增量更新。修改需传入全量的预期集合。",
8135
- "example": "[\"sg-ajr1jzgj\\n\"]",
8135
+ "example": "[\"sg-ajr1jzgj\"]",
8136
8136
  "member": "string",
8137
8137
  "name": "SecurityGroupIds",
8138
8138
  "required": true,
@@ -9515,7 +9515,7 @@
9515
9515
  "members": [
9516
9516
  {
9517
9517
  "disabled": false,
9518
- "document": "迁移任务 Id",
9518
+ "document": "迁移任务 Id,可通过[DescribeMigrationJobs](https://cloud.tencent.com/document/product/571/82084)接口获取。\n",
9519
9519
  "example": "dts-amm1jw5q",
9520
9520
  "member": "string",
9521
9521
  "name": "JobId",
@@ -9524,7 +9524,7 @@
9524
9524
  },
9525
9525
  {
9526
9526
  "disabled": false,
9527
- "document": "对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9",
9527
+ "document": "对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9,可通过[DescribeMigrationJobs](https://cloud.tencent.com/document/product/571/82084)接口获取。\n",
9528
9528
  "example": "dts-8yv4w2i1-cmp-37skmii9",
9529
9529
  "member": "string",
9530
9530
  "name": "CompareTaskId",
@@ -9533,7 +9533,7 @@
9533
9533
  },
9534
9534
  {
9535
9535
  "disabled": false,
9536
- "document": "是否强制停止。如果填true,同步任务增量阶段会跳过一致性校验产生的binlog,达到快速恢复任务的效果",
9536
+ "document": "是否强制停止。默认值为false,表示不强制停止;如果填true,同步任务增量阶段会跳过一致性校验产生的binlog,达到快速恢复任务的效果",
9537
9537
  "example": "true",
9538
9538
  "member": "bool",
9539
9539
  "name": "ForceStop",
@@ -4021,6 +4021,58 @@ def doCreateBatchOrganizationAuthorizationUrl(args, parsed_globals):
4021
4021
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4022
4022
 
4023
4023
 
4024
+ def doDescribeInformationExtractionWebUrl(args, parsed_globals):
4025
+ g_param = parse_global_arg(parsed_globals)
4026
+
4027
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4028
+ cred = credential.CVMRoleCredential()
4029
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4030
+ cred = credential.STSAssumeRoleCredential(
4031
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4032
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4033
+ )
4034
+ 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):
4035
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4036
+ else:
4037
+ cred = credential.Credential(
4038
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4039
+ )
4040
+ http_profile = HttpProfile(
4041
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4042
+ reqMethod="POST",
4043
+ endpoint=g_param[OptionsDefine.Endpoint],
4044
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4045
+ )
4046
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4047
+ if g_param[OptionsDefine.Language]:
4048
+ profile.language = g_param[OptionsDefine.Language]
4049
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4050
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
4051
+ client._sdkVersion += ("_CLI_" + __version__)
4052
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4053
+ model = models.DescribeInformationExtractionWebUrlRequest()
4054
+ model.from_json_string(json.dumps(args))
4055
+ start_time = time.time()
4056
+ while True:
4057
+ rsp = client.DescribeInformationExtractionWebUrl(model)
4058
+ result = rsp.to_json_string()
4059
+ try:
4060
+ json_obj = json.loads(result)
4061
+ except TypeError as e:
4062
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4063
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4064
+ break
4065
+ cur_time = time.time()
4066
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4067
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4068
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4069
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4070
+ else:
4071
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4072
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4073
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4074
+
4075
+
4024
4076
  def doDescribeUserVerifyStatus(args, parsed_globals):
4025
4077
  g_param = parse_global_arg(parsed_globals)
4026
4078
 
@@ -4229,6 +4281,58 @@ def doCreateEmployeeQualificationSealQrCode(args, parsed_globals):
4229
4281
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4230
4282
 
4231
4283
 
4284
+ def doCreateInformationExtractionWebUrl(args, parsed_globals):
4285
+ g_param = parse_global_arg(parsed_globals)
4286
+
4287
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4288
+ cred = credential.CVMRoleCredential()
4289
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4290
+ cred = credential.STSAssumeRoleCredential(
4291
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4292
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4293
+ )
4294
+ 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):
4295
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4296
+ else:
4297
+ cred = credential.Credential(
4298
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4299
+ )
4300
+ http_profile = HttpProfile(
4301
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4302
+ reqMethod="POST",
4303
+ endpoint=g_param[OptionsDefine.Endpoint],
4304
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4305
+ )
4306
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4307
+ if g_param[OptionsDefine.Language]:
4308
+ profile.language = g_param[OptionsDefine.Language]
4309
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4310
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
4311
+ client._sdkVersion += ("_CLI_" + __version__)
4312
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4313
+ model = models.CreateInformationExtractionWebUrlRequest()
4314
+ model.from_json_string(json.dumps(args))
4315
+ start_time = time.time()
4316
+ while True:
4317
+ rsp = client.CreateInformationExtractionWebUrl(model)
4318
+ result = rsp.to_json_string()
4319
+ try:
4320
+ json_obj = json.loads(result)
4321
+ except TypeError as e:
4322
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4323
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4324
+ break
4325
+ cur_time = time.time()
4326
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4327
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4328
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4329
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4330
+ else:
4331
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4332
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4333
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4334
+
4335
+
4232
4336
  def doCreateExtendedServiceAuthInfos(args, parsed_globals):
4233
4337
  g_param = parse_global_arg(parsed_globals)
4234
4338
 
@@ -6605,10 +6709,12 @@ ACTION_MAP = {
6605
6709
  "DescribeContractReviewTask": doDescribeContractReviewTask,
6606
6710
  "CreateFlowBlockchainEvidenceUrl": doCreateFlowBlockchainEvidenceUrl,
6607
6711
  "CreateBatchOrganizationAuthorizationUrl": doCreateBatchOrganizationAuthorizationUrl,
6712
+ "DescribeInformationExtractionWebUrl": doDescribeInformationExtractionWebUrl,
6608
6713
  "DescribeUserVerifyStatus": doDescribeUserVerifyStatus,
6609
6714
  "ModifyIntegrationRole": doModifyIntegrationRole,
6610
6715
  "CreateBatchOrganizationRegistrationTasks": doCreateBatchOrganizationRegistrationTasks,
6611
6716
  "CreateEmployeeQualificationSealQrCode": doCreateEmployeeQualificationSealQrCode,
6717
+ "CreateInformationExtractionWebUrl": doCreateInformationExtractionWebUrl,
6612
6718
  "CreateExtendedServiceAuthInfos": doCreateExtendedServiceAuthInfos,
6613
6719
  "CreateOrganizationInfoChangeUrl": doCreateOrganizationInfoChangeUrl,
6614
6720
  "CreateConvertTaskApi": doCreateConvertTaskApi,
@@ -252,6 +252,13 @@
252
252
  "output": "CreateFlowSignUrlResponse",
253
253
  "status": "online"
254
254
  },
255
+ "CreateInformationExtractionWebUrl": {
256
+ "document": "此接口(CreateInformationExtractionWebUrl)用来创建合同信息提取web页面链接(此web页面可以通过iframe方式嵌入到贵方系统的网页中)。\n\n注: \n1. pdf、word格式限制大小为10M以下\n2. pdg、jpeg、jpg格式限制大小为5M以下",
257
+ "input": "CreateInformationExtractionWebUrlRequest",
258
+ "name": "创建合同智能提取web页面",
259
+ "output": "CreateInformationExtractionWebUrlResponse",
260
+ "status": "online"
261
+ },
255
262
  "CreateIntegrationDepartment": {
256
263
  "document": "此接口(CreateIntegrationDepartment)用于创建企业的部门信息,支持绑定客户系统部门ID。",
257
264
  "input": "CreateIntegrationDepartmentRequest",
@@ -644,6 +651,13 @@
644
651
  "output": "DescribeInformationExtractionTaskResponse",
645
652
  "status": "online"
646
653
  },
654
+ "DescribeInformationExtractionWebUrl": {
655
+ "document": "此接口(DescribeInformationExtractionWebUrl)用来获取合同信息提取web页面链接(此web页面可以通过iframe方式嵌入到贵方系统的网页中)。",
656
+ "input": "DescribeInformationExtractionWebUrlRequest",
657
+ "name": "获取合同智能提取结果web页面",
658
+ "output": "DescribeInformationExtractionWebUrlResponse",
659
+ "status": "online"
660
+ },
647
661
  "DescribeIntegrationDepartments": {
648
662
  "document": "此接口(DescribeIntegrationDepartments)用于查询企业的部门信息列表,支持查询单个部门节点或单个部门节点及一级子节点部门列表。",
649
663
  "input": "DescribeIntegrationDepartmentsRequest",
@@ -5803,6 +5817,70 @@
5803
5817
  ],
5804
5818
  "type": "object"
5805
5819
  },
5820
+ "CreateInformationExtractionWebUrlRequest": {
5821
+ "document": "CreateInformationExtractionWebUrl请求参数结构体",
5822
+ "members": [
5823
+ {
5824
+ "disabled": false,
5825
+ "document": "执行本接口操作的员工信息。使用此接口时,必须填写userId。\n\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
5826
+ "example": "无",
5827
+ "member": "UserInfo",
5828
+ "name": "Operator",
5829
+ "required": true,
5830
+ "type": "object"
5831
+ },
5832
+ {
5833
+ "disabled": false,
5834
+ "document": "需要提取的合同文件资源ID,可通过<a href=\"https://qian.tencent.com/developers/companyApis/templatesAndFiles/UploadFiles\" target=\"_blank\">UploadFiles</a>接口获取文件资源ID。\n\n注: \n- `word、pdf文件每个文件限制在10M以下`\n- `png、jpg、jpeg文件每个限制在5M以下`",
5835
+ "example": "[\"yDtGEUUgydz\"]",
5836
+ "member": "string",
5837
+ "name": "ResourceIds",
5838
+ "required": false,
5839
+ "type": "list"
5840
+ },
5841
+ {
5842
+ "disabled": false,
5843
+ "document": "调用方自定义的个性化字段(可自定义此名称),并以base64方式编码,支持的最大数据大小为 1024长度。\n\n在合同状态变更的回调信息等场景中,该字段的信息将原封不动地透传给贵方。回调的相关说明可参考开发者中心的[回调通知](https://qian.tencent.com/developers/company/callback_types_v2)模块。",
5844
+ "example": "5rWL6K+V5pWw5o2u",
5845
+ "member": "string",
5846
+ "name": "UserData",
5847
+ "required": false,
5848
+ "type": "string"
5849
+ },
5850
+ {
5851
+ "disabled": false,
5852
+ "document": "个性化参数,用于控制页面展示内容",
5853
+ "example": "无",
5854
+ "member": "WebUrlOption",
5855
+ "name": "Option",
5856
+ "required": false,
5857
+ "type": "object"
5858
+ }
5859
+ ],
5860
+ "type": "object"
5861
+ },
5862
+ "CreateInformationExtractionWebUrlResponse": {
5863
+ "document": "CreateInformationExtractionWebUrl返回参数结构体",
5864
+ "members": [
5865
+ {
5866
+ "disabled": false,
5867
+ "document": "合同信息提取嵌入式web页面链接。\n\n注意:`链接有效期为5分钟,且链接仅能使用一次。`",
5868
+ "example": "https://embed.test.qian.tencent.cn/ai-contract-info-extract-embed?embed=1&code=xxx&channel=TENCENTCLOUD&embedType=CONTRACT_EXTRACTION&shortKey=xx",
5869
+ "member": "string",
5870
+ "name": "Url",
5871
+ "output_required": true,
5872
+ "type": "string",
5873
+ "value_allowed_null": false
5874
+ },
5875
+ {
5876
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5877
+ "member": "string",
5878
+ "name": "RequestId",
5879
+ "type": "string"
5880
+ }
5881
+ ],
5882
+ "type": "object"
5883
+ },
5806
5884
  "CreateIntegrationDepartmentRequest": {
5807
5885
  "document": "CreateIntegrationDepartment请求参数结构体",
5808
5886
  "members": [
@@ -11521,6 +11599,52 @@
11521
11599
  ],
11522
11600
  "type": "object"
11523
11601
  },
11602
+ "DescribeInformationExtractionWebUrlRequest": {
11603
+ "document": "DescribeInformationExtractionWebUrl请求参数结构体",
11604
+ "members": [
11605
+ {
11606
+ "disabled": false,
11607
+ "document": "执行本接口操作的员工信息。使用此接口时,必须填写userId。\n\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
11608
+ "example": "无",
11609
+ "member": "UserInfo",
11610
+ "name": "Operator",
11611
+ "required": true,
11612
+ "type": "object"
11613
+ },
11614
+ {
11615
+ "disabled": false,
11616
+ "document": "合同信息提取任务ID,该参数可通过回调事件[回调通知](https://qian.tencent.com/developers/company/callback_types_v2)获取或者从控制台信息提取任务列表获取。\n\n注意:`不填写任务ID时返回信息提取任务列表URL,填写任务ID时返回信息提取任务详情URL`",
11617
+ "example": "yDtGEUUgydjcwqRz",
11618
+ "member": "string",
11619
+ "name": "TaskId",
11620
+ "required": false,
11621
+ "type": "string"
11622
+ }
11623
+ ],
11624
+ "type": "object"
11625
+ },
11626
+ "DescribeInformationExtractionWebUrlResponse": {
11627
+ "document": "DescribeInformationExtractionWebUrl返回参数结构体",
11628
+ "members": [
11629
+ {
11630
+ "disabled": false,
11631
+ "document": "合同信息提取嵌入式web页面链接。\n注意:`链接有效期为5分钟,且链接仅能使用一次。`",
11632
+ "example": "https://embed.test.qian.tencent.cn/ai-contract-info-extract-e",
11633
+ "member": "string",
11634
+ "name": "Url",
11635
+ "output_required": true,
11636
+ "type": "string",
11637
+ "value_allowed_null": false
11638
+ },
11639
+ {
11640
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11641
+ "member": "string",
11642
+ "name": "RequestId",
11643
+ "type": "string"
11644
+ }
11645
+ ],
11646
+ "type": "object"
11647
+ },
11524
11648
  "DescribeIntegrationDepartmentsRequest": {
11525
11649
  "document": "DescribeIntegrationDepartments请求参数结构体",
11526
11650
  "members": [
@@ -19758,6 +19882,45 @@
19758
19882
  }
19759
19883
  ],
19760
19884
  "usage": "in"
19885
+ },
19886
+ "WebUrlOption": {
19887
+ "document": "提取web嵌入页面个性化设置",
19888
+ "members": [
19889
+ {
19890
+ "disabled": false,
19891
+ "document": "禁用链接预览",
19892
+ "example": "false",
19893
+ "member": "bool",
19894
+ "name": "DisableLinkPreview",
19895
+ "output_required": false,
19896
+ "required": false,
19897
+ "type": "bool",
19898
+ "value_allowed_null": false
19899
+ },
19900
+ {
19901
+ "disabled": false,
19902
+ "document": "禁用任务编辑",
19903
+ "example": "false",
19904
+ "member": "bool",
19905
+ "name": "DisableTaskEditing",
19906
+ "output_required": false,
19907
+ "required": false,
19908
+ "type": "bool",
19909
+ "value_allowed_null": false
19910
+ },
19911
+ {
19912
+ "disabled": false,
19913
+ "document": "禁用任务结果编辑",
19914
+ "example": "false",
19915
+ "member": "bool",
19916
+ "name": "DisableTaskResultEditing",
19917
+ "output_required": false,
19918
+ "required": false,
19919
+ "type": "bool",
19920
+ "value_allowed_null": false
19921
+ }
19922
+ ],
19923
+ "usage": "both"
19761
19924
  }
19762
19925
  },
19763
19926
  "version": "1.0"
@@ -816,6 +816,14 @@
816
816
  "title": "错误示例-创建个人用户签署链接,传错签署人姓名"
817
817
  }
818
818
  ],
819
+ "CreateInformationExtractionWebUrl": [
820
+ {
821
+ "document": "",
822
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateInformationExtractionWebUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDtGEUUxxxmcwqRz\"\n },\n \"UserData\": \"5rWL6K+V5pWw5o2u\"\n}",
823
+ "output": "{\n \"Response\": {\n \"RequestId\": \"s1757576271425719631\",\n \"Url\": \"https://embed.test.qian.tencent.cn/ai-contract-info-extract-embed?embed=1&code=xx&channel=TENCENTCLOUD&embedType=CONTRACT_EXTRACTION&shortKey=xx\"\n }\n}",
824
+ "title": "创建合同智能提取web页面"
825
+ }
826
+ ],
819
827
  "CreateIntegrationDepartment": [
820
828
  {
821
829
  "document": "创建部门,指定父部门ID,部门被创建至父部门节点下。",
@@ -1702,6 +1710,14 @@
1702
1710
  "title": "获取合同智能提取任务详情"
1703
1711
  }
1704
1712
  ],
1713
+ "DescribeInformationExtractionWebUrl": [
1714
+ {
1715
+ "document": "",
1716
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInformationExtractionWebUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDwqbUUckp3o2xYIKo7\"\n },\n \"TaskId\": \"yDwqxj1FlhYIKo7\"\n}",
1717
+ "output": "{\n \"Response\": {\n \"RequestId\": \"s1757576271425719631\",\n \"Url\": \"https://embed.test.qian.tencent.cn/ai-contract-info-extract-embed?embed=1&code=xx&channel=TENCENTCLOUD&embedType=CONTRACT_EXTRACTION&shortKey=xx\"\n }\n}",
1718
+ "title": "获取信息提取嵌入链接"
1719
+ }
1720
+ ],
1705
1721
  "DescribeIntegrationDepartments": [
1706
1722
  {
1707
1723
  "document": "适用于需要查询指定部门信息,且不需要子部门信息的场景。\n1. 设置查询类型QueryType为0表示查询单个部门节点;\n2. 设置DeptId表示通过部门ID查询相关部门信息。",