tccli 3.0.1406.1__py2.py3-none-any.whl → 3.0.1407.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/dts/v20211206/api.json +3 -3
- tccli/services/ess/ess_client.py +106 -0
- tccli/services/ess/v20201111/api.json +163 -0
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/mps/v20190612/api.json +244 -0
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/teo/v20220901/api.json +155 -15
- tccli/services/teo/v20220901/examples.json +32 -8
- tccli/services/wedata/v20250806/api.json +3 -3
- {tccli-3.0.1406.1.dist-info → tccli-3.0.1407.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1406.1.dist-info → tccli-3.0.1407.1.dist-info}/RECORD +15 -15
- {tccli-3.0.1406.1.dist-info → tccli-3.0.1407.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1406.1.dist-info → tccli-3.0.1407.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1406.1.dist-info → tccli-3.0.1407.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.1407.1'
|
|
@@ -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": "
|
|
9536
|
+
"document": "是否强制停止。默认值为false,表示不强制停止;如果填true,同步任务增量阶段会跳过一致性校验产生的binlog,达到快速恢复任务的效果",
|
|
9537
9537
|
"example": "true",
|
|
9538
9538
|
"member": "bool",
|
|
9539
9539
|
"name": "ForceStop",
|
tccli/services/ess/ess_client.py
CHANGED
|
@@ -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查询相关部门信息。",
|
|
@@ -27105,6 +27105,56 @@
|
|
|
27105
27105
|
],
|
|
27106
27106
|
"usage": "both"
|
|
27107
27107
|
},
|
|
27108
|
+
"OverrideEraseParameter": {
|
|
27109
|
+
"document": "智能擦除自定义参数",
|
|
27110
|
+
"members": [
|
|
27111
|
+
{
|
|
27112
|
+
"disabled": false,
|
|
27113
|
+
"document": "擦除类型\n- subtitle 去字幕\n- watermark 去水印\n- privacy 隐私保护",
|
|
27114
|
+
"example": "subtitle",
|
|
27115
|
+
"member": "string",
|
|
27116
|
+
"name": "EraseType",
|
|
27117
|
+
"output_required": false,
|
|
27118
|
+
"required": false,
|
|
27119
|
+
"type": "string",
|
|
27120
|
+
"value_allowed_null": false
|
|
27121
|
+
},
|
|
27122
|
+
{
|
|
27123
|
+
"disabled": false,
|
|
27124
|
+
"document": "字幕擦除配置;\n当EraseType值为:subtitle,此字段为必填参数",
|
|
27125
|
+
"example": "无",
|
|
27126
|
+
"member": "UpdateSmartEraseSubtitleConfig",
|
|
27127
|
+
"name": "EraseSubtitleConfig",
|
|
27128
|
+
"output_required": false,
|
|
27129
|
+
"required": false,
|
|
27130
|
+
"type": "object",
|
|
27131
|
+
"value_allowed_null": false
|
|
27132
|
+
},
|
|
27133
|
+
{
|
|
27134
|
+
"disabled": false,
|
|
27135
|
+
"document": "水印擦除配置;\n当EraseType值为:watermark,此字段为必填参数",
|
|
27136
|
+
"example": "无",
|
|
27137
|
+
"member": "UpdateSmartEraseWatermarkConfig",
|
|
27138
|
+
"name": "EraseWatermarkConfig",
|
|
27139
|
+
"output_required": false,
|
|
27140
|
+
"required": false,
|
|
27141
|
+
"type": "object",
|
|
27142
|
+
"value_allowed_null": false
|
|
27143
|
+
},
|
|
27144
|
+
{
|
|
27145
|
+
"disabled": false,
|
|
27146
|
+
"document": "隐私保护配置;\n当EraseType值为:privacy,此字段为必填参数",
|
|
27147
|
+
"example": "无",
|
|
27148
|
+
"member": "UpdateSmartErasePrivacyConfig",
|
|
27149
|
+
"name": "ErasePrivacyConfig",
|
|
27150
|
+
"output_required": false,
|
|
27151
|
+
"required": false,
|
|
27152
|
+
"type": "object",
|
|
27153
|
+
"value_allowed_null": false
|
|
27154
|
+
}
|
|
27155
|
+
],
|
|
27156
|
+
"usage": "both"
|
|
27157
|
+
},
|
|
27108
27158
|
"OverrideTranscodeParameter": {
|
|
27109
27159
|
"document": "自定义转码的规格参数。用于覆盖模板中对应参数值。",
|
|
27110
27160
|
"members": [
|
|
@@ -31484,6 +31534,17 @@
|
|
|
31484
31534
|
"type": "object",
|
|
31485
31535
|
"value_allowed_null": true
|
|
31486
31536
|
},
|
|
31537
|
+
{
|
|
31538
|
+
"disabled": false,
|
|
31539
|
+
"document": "智能擦除自定义参数,当 Definition 不填 0 时有效。 当填写了该结构中的部分擦除参数时,将使用填写的参数覆盖智能擦除模板中的参数。 该参数用于高度定制场景,建议您仅使用 Definition 指定智能擦除参数。",
|
|
31540
|
+
"example": "无",
|
|
31541
|
+
"member": "OverrideEraseParameter",
|
|
31542
|
+
"name": "OverrideParameter",
|
|
31543
|
+
"output_required": false,
|
|
31544
|
+
"required": false,
|
|
31545
|
+
"type": "object",
|
|
31546
|
+
"value_allowed_null": false
|
|
31547
|
+
},
|
|
31487
31548
|
{
|
|
31488
31549
|
"disabled": false,
|
|
31489
31550
|
"document": "文件的目标存储,不填则继承上层的 OutputStorage 值。\n注意:此字段可能返回 null,表示取不到有效值。",
|
|
@@ -34303,6 +34364,189 @@
|
|
|
34303
34364
|
],
|
|
34304
34365
|
"usage": "both"
|
|
34305
34366
|
},
|
|
34367
|
+
"UpdateSmartErasePrivacyConfig": {
|
|
34368
|
+
"document": "智能擦除模板隐私保护配置",
|
|
34369
|
+
"members": [
|
|
34370
|
+
{
|
|
34371
|
+
"disabled": false,
|
|
34372
|
+
"document": "隐私保护擦除方式。\n- blur 模糊\n- mosaic 马赛克",
|
|
34373
|
+
"example": "blur",
|
|
34374
|
+
"member": "string",
|
|
34375
|
+
"name": "PrivacyModel",
|
|
34376
|
+
"output_required": false,
|
|
34377
|
+
"required": false,
|
|
34378
|
+
"type": "string",
|
|
34379
|
+
"value_allowed_null": false
|
|
34380
|
+
},
|
|
34381
|
+
{
|
|
34382
|
+
"disabled": false,
|
|
34383
|
+
"document": "隐私保护目标,(在API Explorer上使用时无需传入数组,添加相应项并填入对应值即可)。\n- face 人脸\n- plate 车牌",
|
|
34384
|
+
"example": "[\"face\"]",
|
|
34385
|
+
"member": "string",
|
|
34386
|
+
"name": "PrivacyTargets",
|
|
34387
|
+
"output_required": false,
|
|
34388
|
+
"required": false,
|
|
34389
|
+
"type": "list",
|
|
34390
|
+
"value_allowed_null": false
|
|
34391
|
+
}
|
|
34392
|
+
],
|
|
34393
|
+
"usage": "both"
|
|
34394
|
+
},
|
|
34395
|
+
"UpdateSmartEraseSubtitleConfig": {
|
|
34396
|
+
"document": "智能擦除模板去字幕配置",
|
|
34397
|
+
"members": [
|
|
34398
|
+
{
|
|
34399
|
+
"disabled": false,
|
|
34400
|
+
"document": "字幕擦除方式。\n**自动擦除:**通过AI模型自动识别视频中的字幕文本内容,进行无痕化擦除,生成新的视频。但画面干扰、特殊字幕样式可能会带来一定漏擦误擦问题,可以通过指定区域擦除处理。\n当使用自动擦除时,若您不指定AutoAreas,将对默认区域(画面中下部)进行自动擦除;若指定AutoAreas,将改为对您指定的区域进行自动擦除。\n**指定区域擦除:**若您的字幕位置较固定,建议您直接指定擦除区域,最大程度减少漏擦的情况。\n当您选择指定区域擦除时,请在CustomAreas中至少传入一个指定区域。\n- auto 自动擦除\n- custom 指定区域擦除\n",
|
|
34401
|
+
"example": "auto",
|
|
34402
|
+
"member": "string",
|
|
34403
|
+
"name": "SubtitleEraseMethod",
|
|
34404
|
+
"output_required": false,
|
|
34405
|
+
"required": false,
|
|
34406
|
+
"type": "string",
|
|
34407
|
+
"value_allowed_null": false
|
|
34408
|
+
},
|
|
34409
|
+
{
|
|
34410
|
+
"disabled": false,
|
|
34411
|
+
"document": "字幕擦除模型。\n**标准版(推荐):**若您的字幕样式标准,通常建议选择该版本,细节无痕化效果更好。\n**区域版:**若您的字幕存在花体、阴影、动效等特殊样式,建议选择区域版,擦除面积更大,但细节效果不如标准版。\n- standard 标准模型\n- area 区域模型",
|
|
34412
|
+
"example": "standard",
|
|
34413
|
+
"member": "string",
|
|
34414
|
+
"name": "SubtitleModel",
|
|
34415
|
+
"output_required": false,
|
|
34416
|
+
"required": false,
|
|
34417
|
+
"type": "string",
|
|
34418
|
+
"value_allowed_null": false
|
|
34419
|
+
},
|
|
34420
|
+
{
|
|
34421
|
+
"disabled": false,
|
|
34422
|
+
"document": "是否开启OCR字幕提取,默认取OFF。\n当且仅当SubtitleEraseMethod取auto时支持开启OCR字幕提取,开启后将识别自动擦除区域内出现时间最长且最稳定的文字区域为字幕区域,对字幕区域中的文字进行提取和擦除。\n- ON 开启\n- OFF 关闭",
|
|
34423
|
+
"example": "ON",
|
|
34424
|
+
"member": "string",
|
|
34425
|
+
"name": "OcrSwitch",
|
|
34426
|
+
"output_required": false,
|
|
34427
|
+
"required": false,
|
|
34428
|
+
"type": "string",
|
|
34429
|
+
"value_allowed_null": false
|
|
34430
|
+
},
|
|
34431
|
+
{
|
|
34432
|
+
"disabled": false,
|
|
34433
|
+
"document": "字幕语言,用于指导OCR识别,默认取zh_en;仅当OcrSwitch取\"ON\"时生效。\n- zh_en 中英文\n- multi 其他\n其他具体支持识别如下语言:\n中文、英文、日文、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语、印地语、阿拉伯语、印度-孟加拉语、印度-古吉拉特语、印度-卡纳达语 、印度-马拉亚拉姆语 、印度-泰米尔语、印度-泰卢固语、斯洛文尼亚语、波兰语、加泰罗尼亚语、波斯尼亚语、捷克语、爱沙尼亚语、克罗地亚语、旁遮普语、马拉地语、阿塞拜疆语、印尼语、卢森堡语 、立陶宛语、拉脱维亚语、马耳他语、斯洛伐克语、土耳其语、哈萨克语、希腊语、爱尔兰语、白俄罗斯语、高棉语、他加禄语、普什图语、波斯语、塔吉克斯坦语\n\n",
|
|
34434
|
+
"example": "zh_en",
|
|
34435
|
+
"member": "string",
|
|
34436
|
+
"name": "SubtitleLang",
|
|
34437
|
+
"output_required": false,
|
|
34438
|
+
"required": false,
|
|
34439
|
+
"type": "string",
|
|
34440
|
+
"value_allowed_null": false
|
|
34441
|
+
},
|
|
34442
|
+
{
|
|
34443
|
+
"disabled": false,
|
|
34444
|
+
"document": "字幕文件格式,默认取vtt;仅当OcrSwitch取\"ON\"时生效。\n- srt srt格式\n- vtt WebVTT格式",
|
|
34445
|
+
"example": "vtt",
|
|
34446
|
+
"member": "string",
|
|
34447
|
+
"name": "SubtitleFormat",
|
|
34448
|
+
"output_required": false,
|
|
34449
|
+
"required": false,
|
|
34450
|
+
"type": "string",
|
|
34451
|
+
"value_allowed_null": false
|
|
34452
|
+
},
|
|
34453
|
+
{
|
|
34454
|
+
"disabled": false,
|
|
34455
|
+
"document": "是否开启字幕翻译,默认取OFF;仅当OcrSwitch取\"ON\"时生效。\n- ON 开启\n- OFF 关闭",
|
|
34456
|
+
"example": "ON",
|
|
34457
|
+
"member": "string",
|
|
34458
|
+
"name": "TransSwitch",
|
|
34459
|
+
"output_required": false,
|
|
34460
|
+
"required": false,
|
|
34461
|
+
"type": "string",
|
|
34462
|
+
"value_allowed_null": false
|
|
34463
|
+
},
|
|
34464
|
+
{
|
|
34465
|
+
"disabled": false,
|
|
34466
|
+
"document": "字幕翻译目标语言,默认取en;仅当TransSwitch取\"ON\"时生效。\n当前支持以下语言:\nzh:简体中文\nen:英语\nja:日语\nko:韩语\nfr:法语\nes:西班牙语\nit:意大利语\nde:德语\ntr:土耳其语\nru:俄语\npt:葡萄牙语\nvi:越南语\nid:印度尼西亚语\nms:马来语\nth:泰语\nar:阿拉伯语\nhi:印地语",
|
|
34467
|
+
"example": "en",
|
|
34468
|
+
"member": "string",
|
|
34469
|
+
"name": "TransDstLang",
|
|
34470
|
+
"output_required": false,
|
|
34471
|
+
"required": false,
|
|
34472
|
+
"type": "string",
|
|
34473
|
+
"value_allowed_null": false
|
|
34474
|
+
},
|
|
34475
|
+
{
|
|
34476
|
+
"disabled": false,
|
|
34477
|
+
"document": "自动擦除自定义区域。\n对选定区域,利用AI模型自动检测其中存在的擦除目标并擦除。\n注意:当擦除方式选择custom时,此参数将不会生效;修改模板时,清除区域请传入[],不传时将保持模板区域信息不变。",
|
|
34478
|
+
"example": "无",
|
|
34479
|
+
"member": "EraseArea",
|
|
34480
|
+
"name": "AutoAreas",
|
|
34481
|
+
"output_required": false,
|
|
34482
|
+
"required": false,
|
|
34483
|
+
"type": "list",
|
|
34484
|
+
"value_allowed_null": false
|
|
34485
|
+
},
|
|
34486
|
+
{
|
|
34487
|
+
"disabled": false,
|
|
34488
|
+
"document": "指定擦除自定义区域。\n对选定区域,在选定时间段内不进行检测识别直接进行擦除。\n注意:修改模板时,清除区域请传入[],不传时将保持模板区域信息不变。",
|
|
34489
|
+
"example": "无",
|
|
34490
|
+
"member": "EraseTimeArea",
|
|
34491
|
+
"name": "CustomAreas",
|
|
34492
|
+
"output_required": false,
|
|
34493
|
+
"required": false,
|
|
34494
|
+
"type": "list",
|
|
34495
|
+
"value_allowed_null": false
|
|
34496
|
+
}
|
|
34497
|
+
],
|
|
34498
|
+
"usage": "both"
|
|
34499
|
+
},
|
|
34500
|
+
"UpdateSmartEraseWatermarkConfig": {
|
|
34501
|
+
"document": "智能擦除模板去水印配置",
|
|
34502
|
+
"members": [
|
|
34503
|
+
{
|
|
34504
|
+
"disabled": false,
|
|
34505
|
+
"document": "水印擦除方式。\n**自动擦除:**通过A模型自动识别视频中的水印,擦除后生成新的视频。适用于动态水印。\n当使用自动擦除时,若您不指定AutoAreas,将对视频全屏进行自动擦除;若指定AutoAreas,将改为对您指定的区域进行自动擦除。\n**指定区域擦除:**针对位置较固定的静态水印,建议您直接指定擦除区域。\n当您选择指定区域擦除时,请至少传入一个指定区域。\n\n- auto 自动擦除\n- custom 指定区域擦除",
|
|
34506
|
+
"example": "auto",
|
|
34507
|
+
"member": "string",
|
|
34508
|
+
"name": "WatermarkEraseMethod",
|
|
34509
|
+
"output_required": false,
|
|
34510
|
+
"required": false,
|
|
34511
|
+
"type": "string",
|
|
34512
|
+
"value_allowed_null": false
|
|
34513
|
+
},
|
|
34514
|
+
{
|
|
34515
|
+
"disabled": false,
|
|
34516
|
+
"document": "水印擦除模型。\n基础版:效果一般,性价比高,适合动画或背景较干净的视频。\n高级版:效果更好,适合短剧等现实风格视频。\n- basic 基础版\n- advanced 高级版",
|
|
34517
|
+
"example": "basic",
|
|
34518
|
+
"member": "string",
|
|
34519
|
+
"name": "WatermarkModel",
|
|
34520
|
+
"output_required": false,
|
|
34521
|
+
"required": false,
|
|
34522
|
+
"type": "string",
|
|
34523
|
+
"value_allowed_null": false
|
|
34524
|
+
},
|
|
34525
|
+
{
|
|
34526
|
+
"disabled": false,
|
|
34527
|
+
"document": "自动擦除自定义区域。\n对选定区域,利用AI模型自动检测其中存在的擦除目标并擦除。\n注意,当擦除方式为custom时,此参数将不会生效。清除区域请传入[],不传时将保持模板区域信息不变。",
|
|
34528
|
+
"example": "无",
|
|
34529
|
+
"member": "EraseArea",
|
|
34530
|
+
"name": "AutoAreas",
|
|
34531
|
+
"output_required": false,
|
|
34532
|
+
"required": false,
|
|
34533
|
+
"type": "list",
|
|
34534
|
+
"value_allowed_null": false
|
|
34535
|
+
},
|
|
34536
|
+
{
|
|
34537
|
+
"disabled": false,
|
|
34538
|
+
"document": "指定擦除自定义区域。\n对选定区域,在选定时间段内不进行检测识别直接进行擦除。\n注意:清除区域请传入[],不传时将保持模板区域信息不变。",
|
|
34539
|
+
"example": "无",
|
|
34540
|
+
"member": "EraseTimeArea",
|
|
34541
|
+
"name": "CustomAreas",
|
|
34542
|
+
"output_required": false,
|
|
34543
|
+
"required": false,
|
|
34544
|
+
"type": "list",
|
|
34545
|
+
"value_allowed_null": false
|
|
34546
|
+
}
|
|
34547
|
+
],
|
|
34548
|
+
"usage": "both"
|
|
34549
|
+
},
|
|
34306
34550
|
"UrlInputInfo": {
|
|
34307
34551
|
"document": "媒体处理 URL 对象信息。",
|
|
34308
34552
|
"members": [
|
|
@@ -5298,6 +5298,16 @@
|
|
|
5298
5298
|
"type": "list",
|
|
5299
5299
|
"value_allowed_null": false
|
|
5300
5300
|
},
|
|
5301
|
+
{
|
|
5302
|
+
"disabled": false,
|
|
5303
|
+
"document": "全部印章信息",
|
|
5304
|
+
"example": "无",
|
|
5305
|
+
"member": "SealInfo",
|
|
5306
|
+
"name": "SealInfos",
|
|
5307
|
+
"output_required": false,
|
|
5308
|
+
"type": "list",
|
|
5309
|
+
"value_allowed_null": false
|
|
5310
|
+
},
|
|
5301
5311
|
{
|
|
5302
5312
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
5303
5313
|
"member": "string",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"status": "online"
|
|
114
114
|
},
|
|
115
115
|
"CreateFunctionRule": {
|
|
116
|
-
"document": "
|
|
116
|
+
"document": "创建边缘函数的触发规则。支持通过自定义过滤条件来决定是否需要执行函数,当需要执行函数时,提供了多种选择目标函数的方式,包括:直接指定,基于客户端归属地区选择和基于权重选择。",
|
|
117
117
|
"input": "CreateFunctionRuleRequest",
|
|
118
118
|
"name": "创建边缘函数触发规则",
|
|
119
119
|
"output": "CreateFunctionRuleResponse",
|
|
@@ -1114,7 +1114,7 @@
|
|
|
1114
1114
|
"status": "online"
|
|
1115
1115
|
},
|
|
1116
1116
|
"ModifyFunctionRule": {
|
|
1117
|
-
"document": "
|
|
1117
|
+
"document": "修改边缘函数触发规则,支持修改规则条件、执行函数以及描述信息。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。",
|
|
1118
1118
|
"input": "ModifyFunctionRuleRequest",
|
|
1119
1119
|
"name": "修改边缘函数触发规则",
|
|
1120
1120
|
"output": "ModifyFunctionRuleResponse",
|
|
@@ -6112,13 +6112,40 @@
|
|
|
6112
6112
|
},
|
|
6113
6113
|
{
|
|
6114
6114
|
"disabled": false,
|
|
6115
|
-
"document": "
|
|
6115
|
+
"document": "函数选择配置类型:\n<li> direct:直接指定执行函数;</li>\n<li> weight:基于权重比选择函数;</li>\n<li> region:基于客户端 IP 的国家/地区选择函数。</li>\n不填时默认为 direct 。",
|
|
6116
|
+
"example": "direct",
|
|
6117
|
+
"member": "string",
|
|
6118
|
+
"name": "TriggerType",
|
|
6119
|
+
"required": false,
|
|
6120
|
+
"type": "string"
|
|
6121
|
+
},
|
|
6122
|
+
{
|
|
6123
|
+
"disabled": false,
|
|
6124
|
+
"document": "指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。",
|
|
6116
6125
|
"example": "ef-0agikbrr",
|
|
6117
6126
|
"member": "string",
|
|
6118
6127
|
"name": "FunctionId",
|
|
6119
|
-
"required":
|
|
6128
|
+
"required": false,
|
|
6120
6129
|
"type": "string"
|
|
6121
6130
|
},
|
|
6131
|
+
{
|
|
6132
|
+
"disabled": false,
|
|
6133
|
+
"document": "基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。",
|
|
6134
|
+
"example": "无",
|
|
6135
|
+
"member": "FunctionRegionSelection",
|
|
6136
|
+
"name": "RegionMappingSelections",
|
|
6137
|
+
"required": false,
|
|
6138
|
+
"type": "list"
|
|
6139
|
+
},
|
|
6140
|
+
{
|
|
6141
|
+
"disabled": false,
|
|
6142
|
+
"document": "基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。",
|
|
6143
|
+
"example": "无",
|
|
6144
|
+
"member": "FunctionWeightedSelection",
|
|
6145
|
+
"name": "WeightedSelections",
|
|
6146
|
+
"required": false,
|
|
6147
|
+
"type": "list"
|
|
6148
|
+
},
|
|
6122
6149
|
{
|
|
6123
6150
|
"disabled": false,
|
|
6124
6151
|
"document": "规则描述,最大支持 60 个字符。",
|
|
@@ -16509,6 +16536,34 @@
|
|
|
16509
16536
|
],
|
|
16510
16537
|
"usage": "both"
|
|
16511
16538
|
},
|
|
16539
|
+
"FunctionRegionSelection": {
|
|
16540
|
+
"document": "地区策略配置。",
|
|
16541
|
+
"members": [
|
|
16542
|
+
{
|
|
16543
|
+
"disabled": false,
|
|
16544
|
+
"document": "函数 ID 。",
|
|
16545
|
+
"example": "ef-0agikbrr",
|
|
16546
|
+
"member": "string",
|
|
16547
|
+
"name": "FunctionId",
|
|
16548
|
+
"output_required": true,
|
|
16549
|
+
"required": true,
|
|
16550
|
+
"type": "string",
|
|
16551
|
+
"value_allowed_null": false
|
|
16552
|
+
},
|
|
16553
|
+
{
|
|
16554
|
+
"disabled": false,
|
|
16555
|
+
"document": "国家/地区列表。示例值:CN:中国,CN.GD:中国广东。取值请参考:[国家/地区及对应代码枚举](https://cloud.tencent.com/document/product/1552/112542)。",
|
|
16556
|
+
"example": "[\"CN\"]",
|
|
16557
|
+
"member": "string",
|
|
16558
|
+
"name": "Regions",
|
|
16559
|
+
"output_required": true,
|
|
16560
|
+
"required": true,
|
|
16561
|
+
"type": "list",
|
|
16562
|
+
"value_allowed_null": false
|
|
16563
|
+
}
|
|
16564
|
+
],
|
|
16565
|
+
"usage": "both"
|
|
16566
|
+
},
|
|
16512
16567
|
"FunctionRule": {
|
|
16513
16568
|
"document": "边缘函数触发规则。",
|
|
16514
16569
|
"members": [
|
|
@@ -16534,27 +16589,27 @@
|
|
|
16534
16589
|
},
|
|
16535
16590
|
{
|
|
16536
16591
|
"disabled": false,
|
|
16537
|
-
"document": "
|
|
16538
|
-
"example": "
|
|
16592
|
+
"document": "函数选择配置类型:\n<li> direct:直接指定执行函数;</li>\n<li> weight:基于权重比选择函数;</li>\n<li> region:基于客户端 IP 的国家/地区选择函数。</li>\n",
|
|
16593
|
+
"example": "direct",
|
|
16539
16594
|
"member": "string",
|
|
16540
|
-
"name": "
|
|
16595
|
+
"name": "TriggerType",
|
|
16541
16596
|
"output_required": true,
|
|
16542
16597
|
"type": "string",
|
|
16543
16598
|
"value_allowed_null": false
|
|
16544
16599
|
},
|
|
16545
16600
|
{
|
|
16546
16601
|
"disabled": false,
|
|
16547
|
-
"document": "
|
|
16548
|
-
"example": "
|
|
16602
|
+
"document": "指定执行的函数 ID。当 TriggerType 为 direct 时有效。",
|
|
16603
|
+
"example": "ef-jjhvk7ec",
|
|
16549
16604
|
"member": "string",
|
|
16550
|
-
"name": "
|
|
16605
|
+
"name": "FunctionId",
|
|
16551
16606
|
"output_required": true,
|
|
16552
16607
|
"type": "string",
|
|
16553
16608
|
"value_allowed_null": false
|
|
16554
16609
|
},
|
|
16555
16610
|
{
|
|
16556
16611
|
"disabled": false,
|
|
16557
|
-
"document": "
|
|
16612
|
+
"document": "指定执行的函数名称。",
|
|
16558
16613
|
"example": "TestFunction",
|
|
16559
16614
|
"member": "string",
|
|
16560
16615
|
"name": "FunctionName",
|
|
@@ -16562,6 +16617,26 @@
|
|
|
16562
16617
|
"type": "string",
|
|
16563
16618
|
"value_allowed_null": false
|
|
16564
16619
|
},
|
|
16620
|
+
{
|
|
16621
|
+
"disabled": false,
|
|
16622
|
+
"document": "基于客户端 IP 国家/地区的函数选择配置。",
|
|
16623
|
+
"example": "无",
|
|
16624
|
+
"member": "FunctionRegionSelection",
|
|
16625
|
+
"name": "RegionMappingSelections",
|
|
16626
|
+
"output_required": false,
|
|
16627
|
+
"type": "list",
|
|
16628
|
+
"value_allowed_null": false
|
|
16629
|
+
},
|
|
16630
|
+
{
|
|
16631
|
+
"disabled": false,
|
|
16632
|
+
"document": "基于权重的函数选择配置。",
|
|
16633
|
+
"example": "无",
|
|
16634
|
+
"member": "FunctionWeightedSelection",
|
|
16635
|
+
"name": "WeightedSelections",
|
|
16636
|
+
"output_required": false,
|
|
16637
|
+
"type": "list",
|
|
16638
|
+
"value_allowed_null": false
|
|
16639
|
+
},
|
|
16565
16640
|
{
|
|
16566
16641
|
"disabled": false,
|
|
16567
16642
|
"document": "函数触发规则优先级,数值越大,优先级越高。",
|
|
@@ -16572,10 +16647,20 @@
|
|
|
16572
16647
|
"type": "int",
|
|
16573
16648
|
"value_allowed_null": false
|
|
16574
16649
|
},
|
|
16650
|
+
{
|
|
16651
|
+
"disabled": false,
|
|
16652
|
+
"document": "规则描述。",
|
|
16653
|
+
"example": "鉴权",
|
|
16654
|
+
"member": "string",
|
|
16655
|
+
"name": "Remark",
|
|
16656
|
+
"output_required": true,
|
|
16657
|
+
"type": "string",
|
|
16658
|
+
"value_allowed_null": false
|
|
16659
|
+
},
|
|
16575
16660
|
{
|
|
16576
16661
|
"disabled": false,
|
|
16577
16662
|
"document": "创建时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。",
|
|
16578
|
-
"example": "2017-09-17T16:30:58
|
|
16663
|
+
"example": "2017-09-17T16:30:58+00:00",
|
|
16579
16664
|
"member": "datetime_iso",
|
|
16580
16665
|
"name": "CreateTime",
|
|
16581
16666
|
"output_required": true,
|
|
@@ -16585,7 +16670,7 @@
|
|
|
16585
16670
|
{
|
|
16586
16671
|
"disabled": false,
|
|
16587
16672
|
"document": "更新时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。",
|
|
16588
|
-
"example": "2017-09-17T16:30:58
|
|
16673
|
+
"example": "2017-09-17T16:30:58+00:00",
|
|
16589
16674
|
"member": "datetime_iso",
|
|
16590
16675
|
"name": "UpdateTime",
|
|
16591
16676
|
"output_required": true,
|
|
@@ -16612,6 +16697,34 @@
|
|
|
16612
16697
|
],
|
|
16613
16698
|
"usage": "both"
|
|
16614
16699
|
},
|
|
16700
|
+
"FunctionWeightedSelection": {
|
|
16701
|
+
"document": "权重策略配置。",
|
|
16702
|
+
"members": [
|
|
16703
|
+
{
|
|
16704
|
+
"disabled": false,
|
|
16705
|
+
"document": "函数 ID 。",
|
|
16706
|
+
"example": "ef-0agikbrr",
|
|
16707
|
+
"member": "string",
|
|
16708
|
+
"name": "FunctionId",
|
|
16709
|
+
"output_required": true,
|
|
16710
|
+
"required": true,
|
|
16711
|
+
"type": "string",
|
|
16712
|
+
"value_allowed_null": false
|
|
16713
|
+
},
|
|
16714
|
+
{
|
|
16715
|
+
"disabled": false,
|
|
16716
|
+
"document": "选中权重。取值范围0-100,所有的权重之和需要为100。\n选中概率计算方式为:\nweight/100。例如设置了两个函数 A 和 B ,其中 A 的权重为30,那么 B 的权重必须为70,最终选中 A 的概率为30%,选中 B 的概率为70%。",
|
|
16717
|
+
"example": "30",
|
|
16718
|
+
"member": "uint64",
|
|
16719
|
+
"name": "Weight",
|
|
16720
|
+
"output_required": true,
|
|
16721
|
+
"required": true,
|
|
16722
|
+
"type": "int",
|
|
16723
|
+
"value_allowed_null": false
|
|
16724
|
+
}
|
|
16725
|
+
],
|
|
16726
|
+
"usage": "both"
|
|
16727
|
+
},
|
|
16615
16728
|
"GatewayRegion": {
|
|
16616
16729
|
"document": "多通道安全网关可用地域",
|
|
16617
16730
|
"members": [
|
|
@@ -20031,7 +20144,7 @@
|
|
|
20031
20144
|
},
|
|
20032
20145
|
{
|
|
20033
20146
|
"disabled": false,
|
|
20034
|
-
"document": "规则 ID
|
|
20147
|
+
"document": "规则 ID。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。",
|
|
20035
20148
|
"example": "rule-02y3grbu",
|
|
20036
20149
|
"member": "string",
|
|
20037
20150
|
"name": "RuleId",
|
|
@@ -20049,13 +20162,40 @@
|
|
|
20049
20162
|
},
|
|
20050
20163
|
{
|
|
20051
20164
|
"disabled": false,
|
|
20052
|
-
"document": "
|
|
20165
|
+
"document": "函数选择配置类型:\n<li> direct:直接指定执行函数;</li>\n<li> weight:基于权重比选择函数;</li>\n<li> region:基于客户端 IP 的国家/地区选择函数。</li>\n不填时默认为 direct 。",
|
|
20166
|
+
"example": "direct",
|
|
20167
|
+
"member": "string",
|
|
20168
|
+
"name": "TriggerType",
|
|
20169
|
+
"required": false,
|
|
20170
|
+
"type": "string"
|
|
20171
|
+
},
|
|
20172
|
+
{
|
|
20173
|
+
"disabled": false,
|
|
20174
|
+
"document": "指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。",
|
|
20053
20175
|
"example": "ef-jjhvk7ec",
|
|
20054
20176
|
"member": "string",
|
|
20055
20177
|
"name": "FunctionId",
|
|
20056
20178
|
"required": false,
|
|
20057
20179
|
"type": "string"
|
|
20058
20180
|
},
|
|
20181
|
+
{
|
|
20182
|
+
"disabled": false,
|
|
20183
|
+
"document": "基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。",
|
|
20184
|
+
"example": "无",
|
|
20185
|
+
"member": "FunctionRegionSelection",
|
|
20186
|
+
"name": "RegionMappingSelections",
|
|
20187
|
+
"required": false,
|
|
20188
|
+
"type": "list"
|
|
20189
|
+
},
|
|
20190
|
+
{
|
|
20191
|
+
"disabled": false,
|
|
20192
|
+
"document": "基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。",
|
|
20193
|
+
"example": "无",
|
|
20194
|
+
"member": "FunctionWeightedSelection",
|
|
20195
|
+
"name": "WeightedSelections",
|
|
20196
|
+
"required": false,
|
|
20197
|
+
"type": "list"
|
|
20198
|
+
},
|
|
20059
20199
|
{
|
|
20060
20200
|
"disabled": false,
|
|
20061
20201
|
"document": "规则描述,最大支持 60 个字符,不填写保持原有配置。",
|
|
@@ -160,10 +160,22 @@
|
|
|
160
160
|
],
|
|
161
161
|
"CreateFunctionRule": [
|
|
162
162
|
{
|
|
163
|
-
"document": "",
|
|
164
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"
|
|
163
|
+
"document": "为站点 zone-293e7s5jne1i 创建一个边缘函数规则,当请求host为 www.function.com 时命中规则,采用 direct(直接指定)的方式选择目标函数,目标函数 ID 为 ef-1pakhnuy 。",
|
|
164
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"direct\",\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"function rule trigger direct\"\n}",
|
|
165
|
+
"output": "{\n \"Response\": {\n \"RuleId\": \"rule-vnqup0uc\",\n \"RequestId\": \"aab9a28a-4cce-434d-852f-5442275817aa\"\n }\n}",
|
|
166
|
+
"title": "创建边缘函数规则命中规则后执行指定函数"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"document": "为站点 zone-293e7s5jne1i 创建一个边缘函数规则,当请求host为 www.function.com 时命中规则,采用 region(基于客户端 IP 国家/地区)的方式选择目标函数,如果客户端的 IP 归属地为中国大陆,则执行函数 ef-1pakhnuy ,如果客户端的 IP 归属地为其他地区,则执行函数 ef-1wekxwnu 。",
|
|
170
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"region\",\n \"RegionMappingSelections\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Regions\": [\n \"CN\"\n ]\n },\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Regions\": [\n \"Default\"\n ]\n }\n ],\n \"Remark\": \"function rule trigger region\"\n}",
|
|
165
171
|
"output": "{\n \"Response\": {\n \"RuleId\": \"rule-vnqup0uc\",\n \"RequestId\": \"aab9a28a-4cce-434d-852f-5442275817aa\"\n }\n}",
|
|
166
|
-
"title": "
|
|
172
|
+
"title": "创建边缘函数规则命中规则后根据客户请求地区执行不同的函数"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"document": "为站点 zone-293e7s5jne1i 创建一个边缘函数规则,当请求host为 www.function.com 时命中规则,采用 weight(基于权重)的方式选择目标函数,有20%的概率,执行函数 ef-1pakhnuy ,有80%的概率,执行函数 ef-1wekxwnu 。",
|
|
176
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"weight\",\n \"WeightedSelections\": [\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Weight\": 80\n },\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Weight\": 20\n }\n ],\n \"Remark\": \"function rule trigger weight\"\n}",
|
|
177
|
+
"output": "{\n \"Response\": {\n \"RuleId\": \"rule-vnqup0uc\",\n \"RequestId\": \"aab9a28a-4cce-434d-852f-5442275817aa\"\n }\n}",
|
|
178
|
+
"title": "创建边缘函数规则命中规则后根据客户设置的权重执行不同的函数"
|
|
167
179
|
}
|
|
168
180
|
],
|
|
169
181
|
"CreateJustInTimeTranscodeTemplate": [
|
|
@@ -894,9 +906,9 @@
|
|
|
894
906
|
],
|
|
895
907
|
"DescribeFunctionRules": [
|
|
896
908
|
{
|
|
897
|
-
"document": "",
|
|
909
|
+
"document": "查询站点 zone-293e7s5jne1i 下的函数规则。",
|
|
898
910
|
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFunctionRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\"\n}",
|
|
899
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"d7213f7f-a67b-4602-b630-ed6740e1a124\",\n \"FunctionRules\": [\n {\n \"RuleId\": \"rule-53qpdadi\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Target\": \"url\",\n \"Values\": [\n \"/test3\"\n ],\n \"IgnoreCase\": false,\n \"Name\": \"\"\n }\n ]\n }\n ],\n \"FunctionId\": \"ef-
|
|
911
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d7213f7f-a67b-4602-b630-ed6740e1a124\",\n \"FunctionRules\": [\n {\n \"RuleId\": \"rule-53qpdadi\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Target\": \"url\",\n \"Values\": [\n \"/test3\"\n ],\n \"IgnoreCase\": false,\n \"Name\": \"\"\n }\n ]\n }\n ],\n \"TriggerType\": \"region\",\n \"RegionMappingSelections\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Regions\": [\n \"CN\"\n ]\n },\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Regions\": [\n \"Default\"\n ]\n }\n ],\n \"FunctionId\": \"\",\n \"FunctionName\": \"\",\n \"Priority\": 2,\n \"Remark\": \"my function rule\",\n \"CreateTime\": \"2023-04-19T07:32:09Z\",\n \"UpdateTime\": \"2023-04-19T07:36:43Z\"\n }\n ]\n }\n}",
|
|
900
912
|
"title": "查询边缘函数触发规则列表"
|
|
901
913
|
}
|
|
902
914
|
],
|
|
@@ -1616,10 +1628,22 @@
|
|
|
1616
1628
|
],
|
|
1617
1629
|
"ModifyFunctionRule": [
|
|
1618
1630
|
{
|
|
1619
|
-
"document": "",
|
|
1620
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-
|
|
1631
|
+
"document": "修改函数规则 rule-vnqup0uc ,当请求host为 www.function.com 时命中规则,采用 direct(直接指定)的方式选择目标函数,目标函数 ID 为 ef-1pakhnuy 。\n\n",
|
|
1632
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"direct\",\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"function rule trigger direct\"\n}",
|
|
1633
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"7a1e998f-fa00-4670-8457-ed4b4fe5018a\"\n }\n}",
|
|
1634
|
+
"title": "修改边缘函数规则命中规则后执行指定函数"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"document": "修改函数规则 rule-vnqup0uc,当请求host为 www.function.com 时命中规则,采用 region(基于客户端 IP 国家/地区)的方式选择目标函数,如果客户端的 IP 归属地为中国大陆,则执行函数 ef-1pakhnuy ,如果客户端的 IP 归属地为其他地区,则执行函数 ef-1wekxwnu 。",
|
|
1638
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"region\",\n \"RegionMappingSelections\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Regions\": [\n \"CN\"\n ]\n },\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Regions\": [\n \"Default\"\n ]\n }\n ],\n \"Remark\": \"function rule trigger region\"\n}",
|
|
1639
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"7a1e998f-fa00-4670-8457-ed4b4fe5018a\"\n }\n}",
|
|
1640
|
+
"title": "修改边缘函数规则命中规则后根据客户请求地区执行不同的函数"
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"document": "修改函数规则 rule-vnqup0uc,当请求host为 www.function.com 时命中规则,采用 weight(基于权重)的方式选择目标函数,有20%的概率,执行函数 ef-1pakhnuy ,有80%的概率,执行函数 ef-1wekxwnu 。",
|
|
1644
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"weight\",\n \"WeightedSelections\": [\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Weight\": 80\n },\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Weight\": 20\n }\n ],\n \"Remark\": \"function rule trigger weight\"\n}",
|
|
1621
1645
|
"output": "{\n \"Response\": {\n \"RequestId\": \"7a1e998f-fa00-4670-8457-ed4b4fe5018a\"\n }\n}",
|
|
1622
|
-
"title": "
|
|
1646
|
+
"title": "修改边缘函数规则命中规则后根据客户设置的权重执行不同的函数"
|
|
1623
1647
|
}
|
|
1624
1648
|
],
|
|
1625
1649
|
"ModifyFunctionRulePriority": [
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
"status": "online"
|
|
366
366
|
},
|
|
367
367
|
"GetTask": {
|
|
368
|
-
"document": "
|
|
368
|
+
"document": "获取任务详情接口",
|
|
369
369
|
"input": "GetTaskRequest",
|
|
370
370
|
"name": "获取任务详情信息",
|
|
371
371
|
"output": "GetTaskResponse",
|
|
@@ -813,7 +813,7 @@
|
|
|
813
813
|
"status": "online"
|
|
814
814
|
},
|
|
815
815
|
"UpdateTask": {
|
|
816
|
-
"document": "
|
|
816
|
+
"document": "更新任务接口",
|
|
817
817
|
"input": "UpdateTaskRequest",
|
|
818
818
|
"name": "更新任务",
|
|
819
819
|
"output": "UpdateTaskResponse",
|
|
@@ -827,7 +827,7 @@
|
|
|
827
827
|
"status": "online"
|
|
828
828
|
},
|
|
829
829
|
"UpdateWorkflowFolder": {
|
|
830
|
-
"document": "
|
|
830
|
+
"document": "更新工作流文件夹",
|
|
831
831
|
"input": "UpdateWorkflowFolderRequest",
|
|
832
832
|
"name": "更新工作流文件夹",
|
|
833
833
|
"output": "UpdateWorkflowFolderResponse",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tccli
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1407.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.
|
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1407
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
19
|
# 命令行工具简介
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tccli/__init__.py,sha256=
|
|
1
|
+
tccli/__init__.py,sha256=SrTLWXn5IpnX-ItdzdhQ4jVB5H8MexZBgNdSJRwXxtw,27
|
|
2
2
|
tccli/argparser.py,sha256=WtfpBhj2R6JHSzagy6w6Q4y3YVmyIC_yK80w3tqBPgU,5589
|
|
3
3
|
tccli/argument.py,sha256=ZtVo3AySpzM-Hw6_hPdU27FjUsc8QPB2fIuLy7JSBAk,8091
|
|
4
4
|
tccli/base_command.py,sha256=rFWNAwfS0GA6LLGNOM-iPI0RV81Jag5cZn536ZQN0pw,2859
|
|
@@ -431,7 +431,7 @@ tccli/services/dts/__init__.py,sha256=t144KIEUZhniOVdffxOCjXSzYUewJxMCs-5Dn0LPpx
|
|
|
431
431
|
tccli/services/dts/dts_client.py,sha256=ur2JuM6WEkKb-WFRXakCifBln6ep2yRfw8GX7p04hy0,266095
|
|
432
432
|
tccli/services/dts/v20180330/api.json,sha256=fJui6KEzVXBZw4hC8eRveQdJAPLITkJRjRNlaeZGidQ,98040
|
|
433
433
|
tccli/services/dts/v20180330/examples.json,sha256=smpudrR4VWtQZse26923DPLRLDIymqrm5oqxUaMcblM,20831
|
|
434
|
-
tccli/services/dts/v20211206/api.json,sha256=
|
|
434
|
+
tccli/services/dts/v20211206/api.json,sha256=6I6LnY7PJbAtCqol5lF2nH9YkbYKFvkj7HdA6QnnftM,390403
|
|
435
435
|
tccli/services/dts/v20211206/examples.json,sha256=6T3Sz7lDJQrrbM84MDQ_ajlfswLE5FwuL3Ef-smgnXE,118597
|
|
436
436
|
tccli/services/eb/__init__.py,sha256=CNHbNA5DQycRAOxyRLck0ZCUVQ0asg8PDIPH5YIHDxg,83
|
|
437
437
|
tccli/services/eb/eb_client.py,sha256=zxVjZUlkk3OlI4wNZEwCmD9niXLL2_IO8DQLUf43hrk,104326
|
|
@@ -470,9 +470,9 @@ tccli/services/es/v20180416/examples.json,sha256=PWyGXkP8mIcD8KMq52Eeg7QxcPUmLcH
|
|
|
470
470
|
tccli/services/es/v20250101/api.json,sha256=Y2F4yDbKBbgj0k4ht2APexPVnIx42IcavfOPRPCnJUA,56198
|
|
471
471
|
tccli/services/es/v20250101/examples.json,sha256=QePSDN8DvTLN7gBwz0EmODWB_xPp_tXrbafXOUPinoI,11903
|
|
472
472
|
tccli/services/ess/__init__.py,sha256=heBHzUKDuNxQ68yNutgyA8stCndyFWqYJqiQFozTiDs,85
|
|
473
|
-
tccli/services/ess/ess_client.py,sha256=
|
|
474
|
-
tccli/services/ess/v20201111/api.json,sha256=
|
|
475
|
-
tccli/services/ess/v20201111/examples.json,sha256=
|
|
473
|
+
tccli/services/ess/ess_client.py,sha256=GuTe_llPGYIzNArZ0TJWMZnOXI5NaOn3QmzC3Gd_PDM,402435
|
|
474
|
+
tccli/services/ess/v20201111/api.json,sha256=uTDY9c6WtefpZd1r_VHd1PFwnoBuZmDR5nLtBj_-GV8,1017046
|
|
475
|
+
tccli/services/ess/v20201111/examples.json,sha256=FFj2A3t0Y8vHPddtiDHOSWwFnRumRjHvXbz-wAQ5CwU,667331
|
|
476
476
|
tccli/services/essbasic/__init__.py,sha256=Uh5kuYtJvJ4F1S2w-19_B6a_JMF1ubh8Se-7p5LA0PE,95
|
|
477
477
|
tccli/services/essbasic/essbasic_client.py,sha256=5utXm-W3PYIRivS0Y5xKAab09Maoq4-_RMHme3qfc1U,461899
|
|
478
478
|
tccli/services/essbasic/v20201222/api.json,sha256=8yA-0DwpjBAZajDJnp3flQ2xn1sdkZMVQcvegUcemSM,184116
|
|
@@ -687,7 +687,7 @@ tccli/services/monitor/v20230616/api.json,sha256=eHSlhfvgT0JF1L8m916C_j3VFRgXXgg
|
|
|
687
687
|
tccli/services/monitor/v20230616/examples.json,sha256=IUk1Py3tMmQ3pemhisNxJ1wR0ApZQlKBtrypMGpOkrc,656
|
|
688
688
|
tccli/services/mps/__init__.py,sha256=4M5o2xc0u3rqtgz_5an9Qxw2QaOqwBq8Fjc3IB64p2o,85
|
|
689
689
|
tccli/services/mps/mps_client.py,sha256=E_6RrVxGemtmEnIq9KHZLPOHHDltF_jH2f3-SvKZvmU,430058
|
|
690
|
-
tccli/services/mps/v20190612/api.json,sha256=
|
|
690
|
+
tccli/services/mps/v20190612/api.json,sha256=aBYoSmzhpMe-xC_OMBRwsT4IHKeQZttHonkSI2cEcqk,1354711
|
|
691
691
|
tccli/services/mps/v20190612/examples.json,sha256=X7MREr1rR-kgENHklYrFkMv7lFJ7H-vWx3fMqRTuHD8,345086
|
|
692
692
|
tccli/services/mqtt/__init__.py,sha256=zchTxfWVKqmIOpb6siJtQcRDR5OfcpauX-ONDH5g32w,87
|
|
693
693
|
tccli/services/mqtt/mqtt_client.py,sha256=hC0R2aeuKSPthTgoFG79Ix4hJLETcM8NrqfD2D_lGko,189100
|
|
@@ -719,7 +719,7 @@ tccli/services/oceanus/v20190422/api.json,sha256=06O9-liQtRedZLSuBBrk9ftkHdTgxNO
|
|
|
719
719
|
tccli/services/oceanus/v20190422/examples.json,sha256=BlVfx00ppSz7x2sDLiDFKBjHIgMW6lBMwD_zg0ZI7yo,58634
|
|
720
720
|
tccli/services/ocr/__init__.py,sha256=1UdHN9VtB5qVwAn2FMefSi4BhMTJOjmFgYZT-zTEVBM,85
|
|
721
721
|
tccli/services/ocr/ocr_client.py,sha256=yUh0q-HohmEDXta-eqMe34hRq0pCIJ7yI0p9bWDEAw4,283371
|
|
722
|
-
tccli/services/ocr/v20181119/api.json,sha256=
|
|
722
|
+
tccli/services/ocr/v20181119/api.json,sha256=NTFn2ea2FXXLuGdRg7e3XDdXrkeQ-wVAunAq39KfqrI,898617
|
|
723
723
|
tccli/services/ocr/v20181119/examples.json,sha256=6DxTPGN3rfY7UfXechdQIU_cVa6Na3D97x2MrVeOxQs,526992
|
|
724
724
|
tccli/services/omics/__init__.py,sha256=2Uhk7Pv4ejuVCryMqNlAdn8xPMdHO2Hr4500KAZ0W-M,89
|
|
725
725
|
tccli/services/omics/omics_client.py,sha256=FMdcSDblBVzrf_RsMH7SCUVr3kFj8M24Eet4gyeeu2w,67560
|
|
@@ -905,8 +905,8 @@ tccli/services/teo/__init__.py,sha256=nvzcUSkSQuTftWEJ399BUZpUk_0jEq-l97539DwbAw
|
|
|
905
905
|
tccli/services/teo/teo_client.py,sha256=1LGKiB9EXrwN5MFwH6e4zPqXkk4_vqiKaaVJb6a3G9Q,605678
|
|
906
906
|
tccli/services/teo/v20220106/api.json,sha256=63ORoUfXCcQ9gb6UrJdHcwFdDI9CC2UtfdzbifNcRjM,29865
|
|
907
907
|
tccli/services/teo/v20220106/examples.json,sha256=2s6dgk31pZ26N8hrFLCmQzVocmsC_QK1dO8WVBdJ8A0,5325
|
|
908
|
-
tccli/services/teo/v20220901/api.json,sha256=
|
|
909
|
-
tccli/services/teo/v20220901/examples.json,sha256=
|
|
908
|
+
tccli/services/teo/v20220901/api.json,sha256=rheDP8N_rACs9dyUmaJYwz3mix6N35drN7W_Cam1L3M,1136295
|
|
909
|
+
tccli/services/teo/v20220901/examples.json,sha256=ZH4Ofc_4DpOom5x5-top0Jso2bRs4iwCwK6VIwHPpLg,532882
|
|
910
910
|
tccli/services/thpc/__init__.py,sha256=NancJ76I7PbEBt7VJCaGnBsfMEZm2ezBvYqwxyLbLHo,87
|
|
911
911
|
tccli/services/thpc/thpc_client.py,sha256=KG_emx6askyjT8nVE1MENdRNWe3ASxDbv43iwDRXaXU,102238
|
|
912
912
|
tccli/services/thpc/v20211109/api.json,sha256=5SyMj_kKwhJ9pjs2VStJJAgqDKOh8ppMnOi2VxYyrW0,42495
|
|
@@ -1057,7 +1057,7 @@ tccli/services/wedata/__init__.py,sha256=F95gQMminW0gPanAt4q4yW30-8c7_2F2FVQzZZv
|
|
|
1057
1057
|
tccli/services/wedata/wedata_client.py,sha256=z0Pt2CQ6ToSNad31OlMG62eHFNSIHq8U5vQx8pRShe0,1274383
|
|
1058
1058
|
tccli/services/wedata/v20210820/api.json,sha256=f1k6bY8YuTZpxRo9wxY_Upg-OlItOO_0xK-GB5b4m2o,2129537
|
|
1059
1059
|
tccli/services/wedata/v20210820/examples.json,sha256=PvvvcR-Npt9Cz7MXFN8_7QL8qaBFCWJXahX5_nzdHfA,798173
|
|
1060
|
-
tccli/services/wedata/v20250806/api.json,sha256=
|
|
1060
|
+
tccli/services/wedata/v20250806/api.json,sha256=hByVCc4fWcqnDdsiPPwfVb5VZkX2Q9TH6S9P2hxN7so,695735
|
|
1061
1061
|
tccli/services/wedata/v20250806/examples.json,sha256=DwHDuFV0wau0EjOjYPxPZhO_TIWUyKUUeLFrVzi-H9M,225247
|
|
1062
1062
|
tccli/services/weilingwith/__init__.py,sha256=I04f9CndPHuhInQKYjgkxKufojP4j5EJxBtfPNWLTfo,101
|
|
1063
1063
|
tccli/services/weilingwith/weilingwith_client.py,sha256=QnCAQd-sSqJlGFuJyPZI5XH5gVSq-A9LQNIJB-gwVVY,205422
|
|
@@ -1085,8 +1085,8 @@ tccli/services/yunsou/v20180504/api.json,sha256=2808fil5p3pTEJ3SqXEEq7eSrASZOiv8
|
|
|
1085
1085
|
tccli/services/yunsou/v20180504/examples.json,sha256=Jg4WuqS_Wxl7eTBMbzjem65FuUZQi3qq3xtlBNFZlTU,11870
|
|
1086
1086
|
tccli/services/yunsou/v20191115/api.json,sha256=r_p7c7fMNylQVDpSN0CkUB4Cx1nYW1lI3BM_Zi50FNs,15932
|
|
1087
1087
|
tccli/services/yunsou/v20191115/examples.json,sha256=vN5MzexHVPMckm4MbnXNiOe3KKiVchvf4_uLpjOskuk,3983
|
|
1088
|
-
tccli-3.0.
|
|
1089
|
-
tccli-3.0.
|
|
1090
|
-
tccli-3.0.
|
|
1091
|
-
tccli-3.0.
|
|
1092
|
-
tccli-3.0.
|
|
1088
|
+
tccli-3.0.1407.1.dist-info/METADATA,sha256=Ar900iQwLjp908IdiWgyQERIrj5T1235nTIuzkPg2BY,16406
|
|
1089
|
+
tccli-3.0.1407.1.dist-info/WHEEL,sha256=HyPWovjK_wfsxZqVnw7Bu5rgKxNh3Nm__lHm0ALDcb4,101
|
|
1090
|
+
tccli-3.0.1407.1.dist-info/entry_points.txt,sha256=9ZzsXxi7Xj3ZneT7VxRVJpFvnmdEOeysh999_0gWVvo,85
|
|
1091
|
+
tccli-3.0.1407.1.dist-info/license_files/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
1092
|
+
tccli-3.0.1407.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|