tccli-intl-en 3.0.1267.1__py2.py3-none-any.whl → 3.0.1268.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/mps/mps_client.py +212 -0
- tccli/services/mps/v20190612/api.json +417 -0
- tccli/services/mps/v20190612/examples.json +50 -0
- {tccli_intl_en-3.0.1267.1.dist-info → tccli_intl_en-3.0.1268.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.0.1267.1.dist-info → tccli_intl_en-3.0.1268.1.dist-info}/RECORD +10 -10
- {tccli_intl_en-3.0.1267.1.dist-info → tccli_intl_en-3.0.1268.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1267.1.dist-info → tccli_intl_en-3.0.1268.1.dist-info}/WHEEL +0 -0
- {tccli_intl_en-3.0.1267.1.dist-info → tccli_intl_en-3.0.1268.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.0.1267.1.dist-info → tccli_intl_en-3.0.1268.1.dist-info}/top_level.txt +0 -0
tccli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.1268.1'
|
tccli/services/mps/mps_client.py
CHANGED
|
@@ -2253,6 +2253,110 @@ def doProcessImage(args, parsed_globals):
|
|
|
2253
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2254
2254
|
|
|
2255
2255
|
|
|
2256
|
+
def doDescribeSmartEraseTemplates(args, parsed_globals):
|
|
2257
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2258
|
+
|
|
2259
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2260
|
+
cred = credential.CVMRoleCredential()
|
|
2261
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2262
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2263
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2264
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2265
|
+
)
|
|
2266
|
+
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):
|
|
2267
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2268
|
+
else:
|
|
2269
|
+
cred = credential.Credential(
|
|
2270
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2271
|
+
)
|
|
2272
|
+
http_profile = HttpProfile(
|
|
2273
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2274
|
+
reqMethod="POST",
|
|
2275
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2276
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2277
|
+
)
|
|
2278
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2279
|
+
if g_param[OptionsDefine.Language]:
|
|
2280
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2281
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2282
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2283
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2284
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2285
|
+
model = models.DescribeSmartEraseTemplatesRequest()
|
|
2286
|
+
model.from_json_string(json.dumps(args))
|
|
2287
|
+
start_time = time.time()
|
|
2288
|
+
while True:
|
|
2289
|
+
rsp = client.DescribeSmartEraseTemplates(model)
|
|
2290
|
+
result = rsp.to_json_string()
|
|
2291
|
+
try:
|
|
2292
|
+
json_obj = json.loads(result)
|
|
2293
|
+
except TypeError as e:
|
|
2294
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2295
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2296
|
+
break
|
|
2297
|
+
cur_time = time.time()
|
|
2298
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2299
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2300
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2301
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2302
|
+
else:
|
|
2303
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2304
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2305
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
def doModifySmartEraseTemplate(args, parsed_globals):
|
|
2309
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2310
|
+
|
|
2311
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2312
|
+
cred = credential.CVMRoleCredential()
|
|
2313
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2314
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2315
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2316
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2317
|
+
)
|
|
2318
|
+
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):
|
|
2319
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2320
|
+
else:
|
|
2321
|
+
cred = credential.Credential(
|
|
2322
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2323
|
+
)
|
|
2324
|
+
http_profile = HttpProfile(
|
|
2325
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2326
|
+
reqMethod="POST",
|
|
2327
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2328
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2329
|
+
)
|
|
2330
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2331
|
+
if g_param[OptionsDefine.Language]:
|
|
2332
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2333
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2334
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2335
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2336
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2337
|
+
model = models.ModifySmartEraseTemplateRequest()
|
|
2338
|
+
model.from_json_string(json.dumps(args))
|
|
2339
|
+
start_time = time.time()
|
|
2340
|
+
while True:
|
|
2341
|
+
rsp = client.ModifySmartEraseTemplate(model)
|
|
2342
|
+
result = rsp.to_json_string()
|
|
2343
|
+
try:
|
|
2344
|
+
json_obj = json.loads(result)
|
|
2345
|
+
except TypeError as e:
|
|
2346
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2347
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2348
|
+
break
|
|
2349
|
+
cur_time = time.time()
|
|
2350
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2351
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2352
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2353
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2354
|
+
else:
|
|
2355
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2356
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2357
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2358
|
+
|
|
2359
|
+
|
|
2256
2360
|
def doCreateSmartSubtitleTemplate(args, parsed_globals):
|
|
2257
2361
|
g_param = parse_global_arg(parsed_globals)
|
|
2258
2362
|
|
|
@@ -4541,6 +4645,58 @@ def doDisableSchedule(args, parsed_globals):
|
|
|
4541
4645
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4542
4646
|
|
|
4543
4647
|
|
|
4648
|
+
def doCreateSmartEraseTemplate(args, parsed_globals):
|
|
4649
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4650
|
+
|
|
4651
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4652
|
+
cred = credential.CVMRoleCredential()
|
|
4653
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4654
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4655
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4656
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4657
|
+
)
|
|
4658
|
+
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):
|
|
4659
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4660
|
+
else:
|
|
4661
|
+
cred = credential.Credential(
|
|
4662
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4663
|
+
)
|
|
4664
|
+
http_profile = HttpProfile(
|
|
4665
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4666
|
+
reqMethod="POST",
|
|
4667
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4668
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4669
|
+
)
|
|
4670
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
4671
|
+
if g_param[OptionsDefine.Language]:
|
|
4672
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4673
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4674
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4675
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4676
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4677
|
+
model = models.CreateSmartEraseTemplateRequest()
|
|
4678
|
+
model.from_json_string(json.dumps(args))
|
|
4679
|
+
start_time = time.time()
|
|
4680
|
+
while True:
|
|
4681
|
+
rsp = client.CreateSmartEraseTemplate(model)
|
|
4682
|
+
result = rsp.to_json_string()
|
|
4683
|
+
try:
|
|
4684
|
+
json_obj = json.loads(result)
|
|
4685
|
+
except TypeError as e:
|
|
4686
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4687
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4688
|
+
break
|
|
4689
|
+
cur_time = time.time()
|
|
4690
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4691
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4692
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4693
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4694
|
+
else:
|
|
4695
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4696
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4697
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4698
|
+
|
|
4699
|
+
|
|
4544
4700
|
def doModifyContentReviewTemplate(args, parsed_globals):
|
|
4545
4701
|
g_param = parse_global_arg(parsed_globals)
|
|
4546
4702
|
|
|
@@ -4697,6 +4853,58 @@ def doModifyAIRecognitionTemplate(args, parsed_globals):
|
|
|
4697
4853
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4698
4854
|
|
|
4699
4855
|
|
|
4856
|
+
def doDeleteSmartEraseTemplate(args, parsed_globals):
|
|
4857
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4858
|
+
|
|
4859
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4860
|
+
cred = credential.CVMRoleCredential()
|
|
4861
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4862
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4863
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4864
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4865
|
+
)
|
|
4866
|
+
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):
|
|
4867
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4868
|
+
else:
|
|
4869
|
+
cred = credential.Credential(
|
|
4870
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4871
|
+
)
|
|
4872
|
+
http_profile = HttpProfile(
|
|
4873
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4874
|
+
reqMethod="POST",
|
|
4875
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4876
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4877
|
+
)
|
|
4878
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
4879
|
+
if g_param[OptionsDefine.Language]:
|
|
4880
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4881
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4882
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4883
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4884
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4885
|
+
model = models.DeleteSmartEraseTemplateRequest()
|
|
4886
|
+
model.from_json_string(json.dumps(args))
|
|
4887
|
+
start_time = time.time()
|
|
4888
|
+
while True:
|
|
4889
|
+
rsp = client.DeleteSmartEraseTemplate(model)
|
|
4890
|
+
result = rsp.to_json_string()
|
|
4891
|
+
try:
|
|
4892
|
+
json_obj = json.loads(result)
|
|
4893
|
+
except TypeError as e:
|
|
4894
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4895
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4896
|
+
break
|
|
4897
|
+
cur_time = time.time()
|
|
4898
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4899
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4900
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4901
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4902
|
+
else:
|
|
4903
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4904
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4905
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4906
|
+
|
|
4907
|
+
|
|
4700
4908
|
def doModifyAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
4701
4909
|
g_param = parse_global_arg(parsed_globals)
|
|
4702
4910
|
|
|
@@ -4855,6 +5063,8 @@ ACTION_MAP = {
|
|
|
4855
5063
|
"ModifyImageSpriteTemplate": doModifyImageSpriteTemplate,
|
|
4856
5064
|
"DescribeTranscodeTemplates": doDescribeTranscodeTemplates,
|
|
4857
5065
|
"ProcessImage": doProcessImage,
|
|
5066
|
+
"DescribeSmartEraseTemplates": doDescribeSmartEraseTemplates,
|
|
5067
|
+
"ModifySmartEraseTemplate": doModifySmartEraseTemplate,
|
|
4858
5068
|
"CreateSmartSubtitleTemplate": doCreateSmartSubtitleTemplate,
|
|
4859
5069
|
"DescribeSchedules": doDescribeSchedules,
|
|
4860
5070
|
"ModifyPersonSample": doModifyPersonSample,
|
|
@@ -4899,9 +5109,11 @@ ACTION_MAP = {
|
|
|
4899
5109
|
"CreatePersonSample": doCreatePersonSample,
|
|
4900
5110
|
"DescribeQualityControlTemplates": doDescribeQualityControlTemplates,
|
|
4901
5111
|
"DisableSchedule": doDisableSchedule,
|
|
5112
|
+
"CreateSmartEraseTemplate": doCreateSmartEraseTemplate,
|
|
4902
5113
|
"ModifyContentReviewTemplate": doModifyContentReviewTemplate,
|
|
4903
5114
|
"CreateAIRecognitionTemplate": doCreateAIRecognitionTemplate,
|
|
4904
5115
|
"ModifyAIRecognitionTemplate": doModifyAIRecognitionTemplate,
|
|
5116
|
+
"DeleteSmartEraseTemplate": doDeleteSmartEraseTemplate,
|
|
4905
5117
|
"ModifyAdaptiveDynamicStreamingTemplate": doModifyAdaptiveDynamicStreamingTemplate,
|
|
4906
5118
|
"DeleteImageSpriteTemplate": doDeleteImageSpriteTemplate,
|
|
4907
5119
|
|
|
@@ -91,6 +91,13 @@
|
|
|
91
91
|
"output": "CreateScheduleResponse",
|
|
92
92
|
"status": "online"
|
|
93
93
|
},
|
|
94
|
+
"CreateSmartEraseTemplate": {
|
|
95
|
+
"document": "This API is used to create a custom smart erasing template.",
|
|
96
|
+
"input": "CreateSmartEraseTemplateRequest",
|
|
97
|
+
"name": "Creates a smart erasing template",
|
|
98
|
+
"output": "CreateSmartEraseTemplateResponse",
|
|
99
|
+
"status": "online"
|
|
100
|
+
},
|
|
94
101
|
"CreateSmartSubtitleTemplate": {
|
|
95
102
|
"document": "This API is used to create a custom smart subtitle template.",
|
|
96
103
|
"input": "CreateSmartSubtitleTemplateRequest",
|
|
@@ -217,6 +224,13 @@
|
|
|
217
224
|
"output": "DeleteScheduleResponse",
|
|
218
225
|
"status": "online"
|
|
219
226
|
},
|
|
227
|
+
"DeleteSmartEraseTemplate": {
|
|
228
|
+
"document": "This API is used to delete a user-defined smart erasing template.",
|
|
229
|
+
"input": "DeleteSmartEraseTemplateRequest",
|
|
230
|
+
"name": "Deletes a smart erasing template",
|
|
231
|
+
"output": "DeleteSmartEraseTemplateResponse",
|
|
232
|
+
"status": "online"
|
|
233
|
+
},
|
|
220
234
|
"DeleteSmartSubtitleTemplate": {
|
|
221
235
|
"document": "This API is used to delete a user-defined smart subtitle template.",
|
|
222
236
|
"input": "DeleteSmartSubtitleTemplateRequest",
|
|
@@ -371,6 +385,13 @@
|
|
|
371
385
|
"output": "DescribeSchedulesResponse",
|
|
372
386
|
"status": "online"
|
|
373
387
|
},
|
|
388
|
+
"DescribeSmartEraseTemplates": {
|
|
389
|
+
"document": "This API is used to obtain the list of smart erasing template details based on the unique identifier of the template. The returned result includes all matching user-defined smart erasing templates and system preset smart erasing templates.",
|
|
390
|
+
"input": "DescribeSmartEraseTemplatesRequest",
|
|
391
|
+
"name": "Obtains the smart erasing template list",
|
|
392
|
+
"output": "DescribeSmartEraseTemplatesResponse",
|
|
393
|
+
"status": "online"
|
|
394
|
+
},
|
|
374
395
|
"DescribeSmartSubtitleTemplates": {
|
|
375
396
|
"document": "This API is used to obtain the list of smart subtitle templates based on template unique identifier. The returned result includes all matching user-defined smart subtitle templates and system preset smart subtitle templates.",
|
|
376
397
|
"input": "DescribeSmartSubtitleTemplatesRequest",
|
|
@@ -567,6 +588,13 @@
|
|
|
567
588
|
"output": "ModifyScheduleResponse",
|
|
568
589
|
"status": "online"
|
|
569
590
|
},
|
|
591
|
+
"ModifySmartEraseTemplate": {
|
|
592
|
+
"document": "This API is used to modify a user-defined smart erasing template.",
|
|
593
|
+
"input": "ModifySmartEraseTemplateRequest",
|
|
594
|
+
"name": "Modifies a smart erasing template",
|
|
595
|
+
"output": "ModifySmartEraseTemplateResponse",
|
|
596
|
+
"status": "online"
|
|
597
|
+
},
|
|
570
598
|
"ModifySmartSubtitleTemplate": {
|
|
571
599
|
"document": "This API is used to modify a user-defined smart subtitle template.",
|
|
572
600
|
"input": "ModifySmartSubtitleTemplateRequest",
|
|
@@ -9452,6 +9480,88 @@
|
|
|
9452
9480
|
],
|
|
9453
9481
|
"type": "object"
|
|
9454
9482
|
},
|
|
9483
|
+
"CreateSmartEraseTemplateRequest": {
|
|
9484
|
+
"document": "CreateSmartEraseTemplate request structure.",
|
|
9485
|
+
"members": [
|
|
9486
|
+
{
|
|
9487
|
+
"disabled": false,
|
|
9488
|
+
"document": "Length limit for the smart erasing template name: 64 characters.",
|
|
9489
|
+
"example": "智能擦除模板",
|
|
9490
|
+
"member": "string",
|
|
9491
|
+
"name": "Name",
|
|
9492
|
+
"required": true,
|
|
9493
|
+
"type": "string"
|
|
9494
|
+
},
|
|
9495
|
+
{
|
|
9496
|
+
"disabled": false,
|
|
9497
|
+
"document": "Erasing type.\n-subtitle: subtitle removal.\n-watermark: watermark removal.\n-privacy: privacy protection.",
|
|
9498
|
+
"example": "subtitle",
|
|
9499
|
+
"member": "string",
|
|
9500
|
+
"name": "EraseType",
|
|
9501
|
+
"required": true,
|
|
9502
|
+
"type": "string"
|
|
9503
|
+
},
|
|
9504
|
+
{
|
|
9505
|
+
"disabled": false,
|
|
9506
|
+
"document": "Length limit for the description information of the smart erasing template: 256 characters.",
|
|
9507
|
+
"example": "模板2",
|
|
9508
|
+
"member": "string",
|
|
9509
|
+
"name": "Comment",
|
|
9510
|
+
"required": false,
|
|
9511
|
+
"type": "string"
|
|
9512
|
+
},
|
|
9513
|
+
{
|
|
9514
|
+
"disabled": false,
|
|
9515
|
+
"document": "Subtitle erasing configuration. This parameter is required and valid only when the value of EraseType is set to subtitle.",
|
|
9516
|
+
"example": "无",
|
|
9517
|
+
"member": "SmartEraseSubtitleConfig",
|
|
9518
|
+
"name": "EraseSubtitleConfig",
|
|
9519
|
+
"required": false,
|
|
9520
|
+
"type": "object"
|
|
9521
|
+
},
|
|
9522
|
+
{
|
|
9523
|
+
"disabled": false,
|
|
9524
|
+
"document": "Watermark erasing configuration. This parameter is required and valid only when the value of EraseType is set to watermark.",
|
|
9525
|
+
"example": "无",
|
|
9526
|
+
"member": "SmartEraseWatermarkConfig",
|
|
9527
|
+
"name": "EraseWatermarkConfig",
|
|
9528
|
+
"required": false,
|
|
9529
|
+
"type": "object"
|
|
9530
|
+
},
|
|
9531
|
+
{
|
|
9532
|
+
"disabled": false,
|
|
9533
|
+
"document": "Privacy protection configuration. This parameter is required and valid only when the value of EraseType is set to privacy.",
|
|
9534
|
+
"example": "无",
|
|
9535
|
+
"member": "SmartErasePrivacyConfig",
|
|
9536
|
+
"name": "ErasePrivacyConfig",
|
|
9537
|
+
"required": false,
|
|
9538
|
+
"type": "object"
|
|
9539
|
+
}
|
|
9540
|
+
],
|
|
9541
|
+
"type": "object"
|
|
9542
|
+
},
|
|
9543
|
+
"CreateSmartEraseTemplateResponse": {
|
|
9544
|
+
"document": "CreateSmartEraseTemplate response structure.",
|
|
9545
|
+
"members": [
|
|
9546
|
+
{
|
|
9547
|
+
"disabled": false,
|
|
9548
|
+
"document": "Unique identifier of the smart erasing template.",
|
|
9549
|
+
"example": "200",
|
|
9550
|
+
"member": "int64",
|
|
9551
|
+
"name": "Definition",
|
|
9552
|
+
"output_required": true,
|
|
9553
|
+
"type": "int",
|
|
9554
|
+
"value_allowed_null": false
|
|
9555
|
+
},
|
|
9556
|
+
{
|
|
9557
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
9558
|
+
"member": "string",
|
|
9559
|
+
"name": "RequestId",
|
|
9560
|
+
"type": "string"
|
|
9561
|
+
}
|
|
9562
|
+
],
|
|
9563
|
+
"type": "object"
|
|
9564
|
+
},
|
|
9455
9565
|
"CreateSmartSubtitleTemplateRequest": {
|
|
9456
9566
|
"document": "CreateSmartSubtitleTemplate request structure.",
|
|
9457
9567
|
"members": [
|
|
@@ -10358,6 +10468,33 @@
|
|
|
10358
10468
|
],
|
|
10359
10469
|
"type": "object"
|
|
10360
10470
|
},
|
|
10471
|
+
"DeleteSmartEraseTemplateRequest": {
|
|
10472
|
+
"document": "DeleteSmartEraseTemplate request structure.",
|
|
10473
|
+
"members": [
|
|
10474
|
+
{
|
|
10475
|
+
"disabled": false,
|
|
10476
|
+
"document": "Unique identifier of the smart erasing template.",
|
|
10477
|
+
"example": "30",
|
|
10478
|
+
"member": "int64",
|
|
10479
|
+
"name": "Definition",
|
|
10480
|
+
"required": true,
|
|
10481
|
+
"type": "int"
|
|
10482
|
+
}
|
|
10483
|
+
],
|
|
10484
|
+
"type": "object"
|
|
10485
|
+
},
|
|
10486
|
+
"DeleteSmartEraseTemplateResponse": {
|
|
10487
|
+
"document": "DeleteSmartEraseTemplate response structure.",
|
|
10488
|
+
"members": [
|
|
10489
|
+
{
|
|
10490
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
10491
|
+
"member": "string",
|
|
10492
|
+
"name": "RequestId",
|
|
10493
|
+
"type": "string"
|
|
10494
|
+
}
|
|
10495
|
+
],
|
|
10496
|
+
"type": "object"
|
|
10497
|
+
},
|
|
10361
10498
|
"DeleteSmartSubtitleTemplateRequest": {
|
|
10362
10499
|
"document": "DeleteSmartSubtitleTemplate request structure.",
|
|
10363
10500
|
"members": [
|
|
@@ -12025,6 +12162,89 @@
|
|
|
12025
12162
|
],
|
|
12026
12163
|
"type": "object"
|
|
12027
12164
|
},
|
|
12165
|
+
"DescribeSmartEraseTemplatesRequest": {
|
|
12166
|
+
"document": "DescribeSmartEraseTemplates request structure.",
|
|
12167
|
+
"members": [
|
|
12168
|
+
{
|
|
12169
|
+
"disabled": false,
|
|
12170
|
+
"document": "Filtering condition for the unique identifier of the smart erasing template. Length limit of the array: 100.",
|
|
12171
|
+
"example": "[30]",
|
|
12172
|
+
"member": "int64",
|
|
12173
|
+
"name": "Definitions",
|
|
12174
|
+
"required": false,
|
|
12175
|
+
"type": "list"
|
|
12176
|
+
},
|
|
12177
|
+
{
|
|
12178
|
+
"disabled": false,
|
|
12179
|
+
"document": "Pagination offset. Default value: 0.",
|
|
12180
|
+
"example": "0",
|
|
12181
|
+
"member": "uint64",
|
|
12182
|
+
"name": "Offset",
|
|
12183
|
+
"required": false,
|
|
12184
|
+
"type": "int"
|
|
12185
|
+
},
|
|
12186
|
+
{
|
|
12187
|
+
"disabled": false,
|
|
12188
|
+
"document": "Number of returned entries. Default value: 10. Maximum value: 100.",
|
|
12189
|
+
"example": "10",
|
|
12190
|
+
"member": "uint64",
|
|
12191
|
+
"name": "Limit",
|
|
12192
|
+
"required": false,
|
|
12193
|
+
"type": "int"
|
|
12194
|
+
},
|
|
12195
|
+
{
|
|
12196
|
+
"disabled": false,
|
|
12197
|
+
"document": "Filtering conditions for template type. If this parameter is not specified, all templates are returned. Valid values:\n* Preset: system preset template.\n* Custom: user-defined template.",
|
|
12198
|
+
"example": "Preset",
|
|
12199
|
+
"member": "string",
|
|
12200
|
+
"name": "Type",
|
|
12201
|
+
"required": false,
|
|
12202
|
+
"type": "string"
|
|
12203
|
+
},
|
|
12204
|
+
{
|
|
12205
|
+
"disabled": false,
|
|
12206
|
+
"document": "Filtering condition for the smart erasing template name. Length limit: 64 characters.",
|
|
12207
|
+
"example": "擦除模板1",
|
|
12208
|
+
"member": "string",
|
|
12209
|
+
"name": "Name",
|
|
12210
|
+
"required": false,
|
|
12211
|
+
"type": "string"
|
|
12212
|
+
}
|
|
12213
|
+
],
|
|
12214
|
+
"type": "object"
|
|
12215
|
+
},
|
|
12216
|
+
"DescribeSmartEraseTemplatesResponse": {
|
|
12217
|
+
"document": "DescribeSmartEraseTemplates response structure.",
|
|
12218
|
+
"members": [
|
|
12219
|
+
{
|
|
12220
|
+
"disabled": false,
|
|
12221
|
+
"document": "Total number of records that meet the filtering conditions.",
|
|
12222
|
+
"example": "1",
|
|
12223
|
+
"member": "uint64",
|
|
12224
|
+
"name": "TotalCount",
|
|
12225
|
+
"output_required": true,
|
|
12226
|
+
"type": "int",
|
|
12227
|
+
"value_allowed_null": false
|
|
12228
|
+
},
|
|
12229
|
+
{
|
|
12230
|
+
"disabled": false,
|
|
12231
|
+
"document": "List of smart erasing template details.",
|
|
12232
|
+
"example": "无",
|
|
12233
|
+
"member": "SmartEraseTemplateItem",
|
|
12234
|
+
"name": "SmartEraseTemplateSet",
|
|
12235
|
+
"output_required": true,
|
|
12236
|
+
"type": "list",
|
|
12237
|
+
"value_allowed_null": false
|
|
12238
|
+
},
|
|
12239
|
+
{
|
|
12240
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
12241
|
+
"member": "string",
|
|
12242
|
+
"name": "RequestId",
|
|
12243
|
+
"type": "string"
|
|
12244
|
+
}
|
|
12245
|
+
],
|
|
12246
|
+
"type": "object"
|
|
12247
|
+
},
|
|
12028
12248
|
"DescribeSmartSubtitleTemplatesRequest": {
|
|
12029
12249
|
"document": "DescribeSmartSubtitleTemplates request structure.",
|
|
12030
12250
|
"members": [
|
|
@@ -19722,6 +19942,87 @@
|
|
|
19722
19942
|
],
|
|
19723
19943
|
"type": "object"
|
|
19724
19944
|
},
|
|
19945
|
+
"ModifySmartEraseTemplateRequest": {
|
|
19946
|
+
"document": "ModifySmartEraseTemplate request structure.",
|
|
19947
|
+
"members": [
|
|
19948
|
+
{
|
|
19949
|
+
"disabled": false,
|
|
19950
|
+
"document": "Unique identifier of the smart erasing template.",
|
|
19951
|
+
"example": "30",
|
|
19952
|
+
"member": "int64",
|
|
19953
|
+
"name": "Definition",
|
|
19954
|
+
"required": true,
|
|
19955
|
+
"type": "int"
|
|
19956
|
+
},
|
|
19957
|
+
{
|
|
19958
|
+
"disabled": false,
|
|
19959
|
+
"document": "Length limit for the smart erasing template name: 64 characters.",
|
|
19960
|
+
"example": "模板1",
|
|
19961
|
+
"member": "string",
|
|
19962
|
+
"name": "Name",
|
|
19963
|
+
"required": false,
|
|
19964
|
+
"type": "string"
|
|
19965
|
+
},
|
|
19966
|
+
{
|
|
19967
|
+
"disabled": false,
|
|
19968
|
+
"document": "Length limit for the description information of the smart erasing template: 256 characters.",
|
|
19969
|
+
"example": "模板2",
|
|
19970
|
+
"member": "string",
|
|
19971
|
+
"name": "Comment",
|
|
19972
|
+
"required": false,
|
|
19973
|
+
"type": "string"
|
|
19974
|
+
},
|
|
19975
|
+
{
|
|
19976
|
+
"disabled": false,
|
|
19977
|
+
"document": "Erasing type.\n-subtitle: subtitle removal.\n-watermark: watermark removal.\n-privacy: privacy protection.",
|
|
19978
|
+
"example": "subtitle",
|
|
19979
|
+
"member": "string",
|
|
19980
|
+
"name": "EraseType",
|
|
19981
|
+
"required": false,
|
|
19982
|
+
"type": "string"
|
|
19983
|
+
},
|
|
19984
|
+
{
|
|
19985
|
+
"disabled": false,
|
|
19986
|
+
"document": "Subtitle erasing configuration. It takes effect when the value of EraseType is set to subtitle, or when the value of EraseType is left unspecified but the original EraseType value of the modified template is subtitle.",
|
|
19987
|
+
"example": "无",
|
|
19988
|
+
"member": "SmartEraseSubtitleConfig",
|
|
19989
|
+
"name": "EraseSubtitleConfig",
|
|
19990
|
+
"required": false,
|
|
19991
|
+
"type": "object"
|
|
19992
|
+
},
|
|
19993
|
+
{
|
|
19994
|
+
"disabled": false,
|
|
19995
|
+
"document": "Watermark erasing configuration. The value of EraseType can be set to watermark or left unspecified. This parameter is valid only when the value of EraseType of the corresponding template is set to watermark.",
|
|
19996
|
+
"example": "无",
|
|
19997
|
+
"member": "SmartEraseWatermarkConfig",
|
|
19998
|
+
"name": "EraseWatermarkConfig",
|
|
19999
|
+
"required": false,
|
|
20000
|
+
"type": "object"
|
|
20001
|
+
},
|
|
20002
|
+
{
|
|
20003
|
+
"disabled": false,
|
|
20004
|
+
"document": "Privacy protection configuration. The value of EraseType can be set to privacy or left unspecified. This parameter is valid only when the value of EraseType of the corresponding template is set to privacy.",
|
|
20005
|
+
"example": "无",
|
|
20006
|
+
"member": "SmartErasePrivacyConfig",
|
|
20007
|
+
"name": "ErasePrivacyConfig",
|
|
20008
|
+
"required": false,
|
|
20009
|
+
"type": "object"
|
|
20010
|
+
}
|
|
20011
|
+
],
|
|
20012
|
+
"type": "object"
|
|
20013
|
+
},
|
|
20014
|
+
"ModifySmartEraseTemplateResponse": {
|
|
20015
|
+
"document": "ModifySmartEraseTemplate response structure.",
|
|
20016
|
+
"members": [
|
|
20017
|
+
{
|
|
20018
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
20019
|
+
"member": "string",
|
|
20020
|
+
"name": "RequestId",
|
|
20021
|
+
"type": "string"
|
|
20022
|
+
}
|
|
20023
|
+
],
|
|
20024
|
+
"type": "object"
|
|
20025
|
+
},
|
|
19725
20026
|
"ModifySmartSubtitleTemplateRequest": {
|
|
19726
20027
|
"document": "ModifySmartSubtitleTemplate request structure.",
|
|
19727
20028
|
"members": [
|
|
@@ -24357,6 +24658,122 @@
|
|
|
24357
24658
|
],
|
|
24358
24659
|
"usage": "out"
|
|
24359
24660
|
},
|
|
24661
|
+
"SmartEraseTemplateItem": {
|
|
24662
|
+
"document": "Smart erasing template details.",
|
|
24663
|
+
"members": [
|
|
24664
|
+
{
|
|
24665
|
+
"disabled": false,
|
|
24666
|
+
"document": "Unique identifier of the smart erasing template.",
|
|
24667
|
+
"example": "30",
|
|
24668
|
+
"member": "int64",
|
|
24669
|
+
"name": "Definition",
|
|
24670
|
+
"output_required": true,
|
|
24671
|
+
"type": "int",
|
|
24672
|
+
"value_allowed_null": false
|
|
24673
|
+
},
|
|
24674
|
+
{
|
|
24675
|
+
"disabled": false,
|
|
24676
|
+
"document": "Smart erasing template name.",
|
|
24677
|
+
"example": "模板1",
|
|
24678
|
+
"member": "string",
|
|
24679
|
+
"name": "Name",
|
|
24680
|
+
"output_required": false,
|
|
24681
|
+
"type": "string",
|
|
24682
|
+
"value_allowed_null": false
|
|
24683
|
+
},
|
|
24684
|
+
{
|
|
24685
|
+
"disabled": false,
|
|
24686
|
+
"document": "Smart erasing template description information.",
|
|
24687
|
+
"example": "用于A的模板",
|
|
24688
|
+
"member": "string",
|
|
24689
|
+
"name": "Comment",
|
|
24690
|
+
"output_required": false,
|
|
24691
|
+
"type": "string",
|
|
24692
|
+
"value_allowed_null": false
|
|
24693
|
+
},
|
|
24694
|
+
{
|
|
24695
|
+
"disabled": false,
|
|
24696
|
+
"document": "Template type. Valid values:\n* Preset: system preset template.\n* Custom: user-defined template.",
|
|
24697
|
+
"example": "Preset",
|
|
24698
|
+
"member": "string",
|
|
24699
|
+
"name": "Type",
|
|
24700
|
+
"output_required": false,
|
|
24701
|
+
"type": "string",
|
|
24702
|
+
"value_allowed_null": false
|
|
24703
|
+
},
|
|
24704
|
+
{
|
|
24705
|
+
"disabled": false,
|
|
24706
|
+
"document": "Erasing type.\n-subtitle: subtitle removal.\n-watermark: watermark removal.\n-privacy: privacy protection.",
|
|
24707
|
+
"example": "subtitle",
|
|
24708
|
+
"member": "string",
|
|
24709
|
+
"name": "EraseType",
|
|
24710
|
+
"output_required": false,
|
|
24711
|
+
"type": "string",
|
|
24712
|
+
"value_allowed_null": false
|
|
24713
|
+
},
|
|
24714
|
+
{
|
|
24715
|
+
"disabled": false,
|
|
24716
|
+
"document": "Subtitle erasing configuration.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
24717
|
+
"example": "无",
|
|
24718
|
+
"member": "SmartEraseSubtitleConfig",
|
|
24719
|
+
"name": "EraseSubtitleConfig",
|
|
24720
|
+
"output_required": false,
|
|
24721
|
+
"type": "object",
|
|
24722
|
+
"value_allowed_null": true
|
|
24723
|
+
},
|
|
24724
|
+
{
|
|
24725
|
+
"disabled": false,
|
|
24726
|
+
"document": "Watermark erasing configuration.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
24727
|
+
"example": "无",
|
|
24728
|
+
"member": "SmartEraseWatermarkConfig",
|
|
24729
|
+
"name": "EraseWatermarkConfig",
|
|
24730
|
+
"output_required": false,
|
|
24731
|
+
"type": "object",
|
|
24732
|
+
"value_allowed_null": true
|
|
24733
|
+
},
|
|
24734
|
+
{
|
|
24735
|
+
"disabled": false,
|
|
24736
|
+
"document": "Privacy protection configuration.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
24737
|
+
"example": "无",
|
|
24738
|
+
"member": "SmartErasePrivacyConfig",
|
|
24739
|
+
"name": "ErasePrivacyConfig",
|
|
24740
|
+
"output_required": false,
|
|
24741
|
+
"type": "object",
|
|
24742
|
+
"value_allowed_null": true
|
|
24743
|
+
},
|
|
24744
|
+
{
|
|
24745
|
+
"disabled": false,
|
|
24746
|
+
"document": "Template creation time in [ISO datetime format](https://www.tencentcloud.comom/document/product/862/37710?from_cn_redirect=1#52).",
|
|
24747
|
+
"example": "2023-10-05T14:30:00Z",
|
|
24748
|
+
"member": "string",
|
|
24749
|
+
"name": "CreateTime",
|
|
24750
|
+
"output_required": true,
|
|
24751
|
+
"type": "string",
|
|
24752
|
+
"value_allowed_null": false
|
|
24753
|
+
},
|
|
24754
|
+
{
|
|
24755
|
+
"disabled": false,
|
|
24756
|
+
"document": "Last modification time of the template in [ISO datetime format](https://www.tencentcloud.comom/document/product/862/37710?from_cn_redirect=1#52).",
|
|
24757
|
+
"example": "2024-10-05T14:32:00Z",
|
|
24758
|
+
"member": "string",
|
|
24759
|
+
"name": "UpdateTime",
|
|
24760
|
+
"output_required": true,
|
|
24761
|
+
"type": "string",
|
|
24762
|
+
"value_allowed_null": false
|
|
24763
|
+
},
|
|
24764
|
+
{
|
|
24765
|
+
"disabled": false,
|
|
24766
|
+
"document": "Alias of the preset smart erasing template.",
|
|
24767
|
+
"example": "PresetTemplate1",
|
|
24768
|
+
"member": "string",
|
|
24769
|
+
"name": "AliasName",
|
|
24770
|
+
"output_required": false,
|
|
24771
|
+
"type": "string",
|
|
24772
|
+
"value_allowed_null": false
|
|
24773
|
+
}
|
|
24774
|
+
],
|
|
24775
|
+
"usage": "out"
|
|
24776
|
+
},
|
|
24360
24777
|
"SmartEraseWatermarkConfig": {
|
|
24361
24778
|
"document": "smart erasure template watermark configuration.",
|
|
24362
24779
|
"members": [
|
|
@@ -152,6 +152,20 @@
|
|
|
152
152
|
"title": "Configuring a transcoding rule"
|
|
153
153
|
}
|
|
154
154
|
],
|
|
155
|
+
"CreateSmartEraseTemplate": [
|
|
156
|
+
{
|
|
157
|
+
"document": "This example shows you how to create a subtitle erasing template with extraction and translation features.",
|
|
158
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSmartEraseTemplate\n<Common request parameters>\n\n{\n \"Name\": \"Subtitle erasing template 2.\",\n \"EraseType\": \"subtitle\",\n \"EraseSubtitleConfig\": {\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"OcrSwitch\": \"ON\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleFormat\": \"vtt\",\n \"TransSwitch\": \"ON\",\n \"TransDstLang\": \"en\"\n }\n}",
|
|
159
|
+
"output": "{\n \"Response\": {\n \"Definition\": 200409,\n \"RequestId\": \"ac14b422-1c7b-407d-9b95-530f1eea063d\"\n }\n}",
|
|
160
|
+
"title": "Creating a Subtitle Erasing Template with Extraction and Translation Features"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"document": "This example shows you how to create a subtitle erasing template that has the capability to detect and erase the text in the preset area while also allowing for direct erasure in the specified area during the specified time period.",
|
|
164
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSmartEraseTemplate\n<Common request parameters>\n\n{\n \"Name\": \"Subtitle erasing template 2.\",\n \"EraseType\": \"subtitle\",\n \"EraseSubtitleConfig\": {\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"CustomAreas\": [\n {\n \"BeginMs\": 200,\n \"EndMs\": 3000,\n \"Areas\": [\n {\n \"LeftTopX\": 0.05,\n \"LeftTopY\": 0.1,\n \"RightBottomX\": 0.75,\n \"RightBottomY\": 0.9,\n \"Unit\": 1\n }\n ]\n }\n ]\n }\n}",
|
|
165
|
+
"output": "{\n \"Response\": {\n \"Definition\": 200410,\n \"RequestId\": \"835f2ecd-8666-4717-998b-02680437a8ef\"\n }\n}",
|
|
166
|
+
"title": "Creating a Subtitle Erasing Template with Automatic and Area Erasing Capabilities"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
155
169
|
"CreateSmartSubtitleTemplate": [
|
|
156
170
|
{
|
|
157
171
|
"document": "",
|
|
@@ -314,6 +328,14 @@
|
|
|
314
328
|
"title": "Deleting a scheme"
|
|
315
329
|
}
|
|
316
330
|
],
|
|
331
|
+
"DeleteSmartEraseTemplate": [
|
|
332
|
+
{
|
|
333
|
+
"document": "This example shows you how to delete the specified smart erasing template.",
|
|
334
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteSmartEraseTemplate\n<Common request parameters>\n\n{\n \"Definition\": 200019\n}",
|
|
335
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3d3a3b90-9be7-4a3c-bd53-52fe399d976c\"\n }\n}",
|
|
336
|
+
"title": "Deleting the Specified Smart Erasing Template"
|
|
337
|
+
}
|
|
338
|
+
],
|
|
317
339
|
"DeleteSmartSubtitleTemplate": [
|
|
318
340
|
{
|
|
319
341
|
"document": "This example shows you how to delete a user-defined smart subtitle template.",
|
|
@@ -514,6 +536,20 @@
|
|
|
514
536
|
"title": "Querying a scheme"
|
|
515
537
|
}
|
|
516
538
|
],
|
|
539
|
+
"DescribeSmartEraseTemplates": [
|
|
540
|
+
{
|
|
541
|
+
"document": "This example shows you how to query information about all smart erasing templates, including system preset templates and custom templates.",
|
|
542
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSmartEraseTemplates\n<Common request parameters>\n\n{}",
|
|
543
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e2ad2688-ca7c-4f85-bbb0-1cfbdf258013\",\n \"SmartEraseTemplateSet\": [\n {\n \"AliasName\": \"FaceAndLicensePlateBlur\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 302,\n \"ErasePrivacyConfig\": {\n \"PrivacyModel\": \"blur\",\n \"PrivacyTargets\": [\n \"plate\",\n \"face\"\n ]\n },\n \"EraseSubtitleConfig\": null,\n \"EraseType\": \"privacy\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"The human face and license plate are blurred.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T10:51:04+08:00\"\n },\n {\n \"AliasName\": \"FaceBlur\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 301,\n \"ErasePrivacyConfig\": {\n \"PrivacyModel\": \"blur\",\n \"PrivacyTargets\": [\n \"face\"\n ]\n },\n \"EraseSubtitleConfig\": null,\n \"EraseType\": \"privacy\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"The human face is blurred.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T10:51:04+08:00\"\n },\n {\n \"AliasName\": \"WatermarkRemoval-AdvancedVersion\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 201,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": null,\n \"EraseType\": \"watermark\",\n \"EraseWatermarkConfig\": {\n \"WatermarkEraseMethod\": \"auto\",\n \"WatermarkModel\": \"advanced\"\n },\n \"Name\": \"Watermark removal-Advanced Edition.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T10:51:04+08:00\"\n },\n {\n \"AliasName\": \"SubtitleRemoval_OCRExtractSubtitlesAndTranslateToEnglish\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 103,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"ON\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleModel\": \"standard\",\n \"TransDstLang\": \"en\",\n \"TransSwitch\": \"ON\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Subtitle removal_extract subtitles through OCR and translate them into English.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T18:36:53+08:00\"\n },\n {\n \"AliasName\": \"SubtitleRemovalAndOCRExtractSubtitles\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 102,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"ON\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Subtitle removal_extract subtitles through OCR.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T18:36:53+08:00\"\n },\n {\n \"AliasName\": \"SubtitleRemoval\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 101,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Subtitle removal.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T10:51:04+08:00\"\n },\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-08-04T15:16:25+08:00\",\n \"Definition\": 200385,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 8.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n },\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-02T20:49:04+08:00\",\n \"Definition\": 200022,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 7.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n },\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-02T20:48:48+08:00\",\n \"Definition\": 200021,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 6.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n },\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-02T19:21:24+08:00\",\n \"Definition\": 200019,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"custom\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 5.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n }\n ],\n \"TotalCount\": 14\n }\n}",
|
|
544
|
+
"title": "Querying All Smart Erasing Templates"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"document": "This example shows you how to query information about the specified smart erasing template.",
|
|
548
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSmartEraseTemplates\n<Common request parameters>\n\n{\n \"Definitions\": [\n 200019\n ]\n}",
|
|
549
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"83c6c7c2-3dab-4c6a-bedb-227371c038c0\",\n \"SmartEraseTemplateSet\": [\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-02T19:21:24+08:00\",\n \"Definition\": 200019,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"custom\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 5.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n }\n ],\n \"TotalCount\": 1\n }\n}",
|
|
550
|
+
"title": "Querying the Specified Smart Erasing Template"
|
|
551
|
+
}
|
|
552
|
+
],
|
|
517
553
|
"DescribeSmartSubtitleTemplates": [
|
|
518
554
|
{
|
|
519
555
|
"document": "",
|
|
@@ -822,6 +858,20 @@
|
|
|
822
858
|
"title": "Modifying Orchestration"
|
|
823
859
|
}
|
|
824
860
|
],
|
|
861
|
+
"ModifySmartEraseTemplate": [
|
|
862
|
+
{
|
|
863
|
+
"document": "This example shows you how to modify a subtitle erasing template and enable the OCR extraction and translation features.",
|
|
864
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySmartEraseTemplate\n<Common request parameters>\n\n{\n \"Definition\": 200410,\n \"EraseSubtitleConfig\": {\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"OcrSwitch\": \"ON\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleFormat\": \"vtt\",\n \"TransSwitch\": \"ON\",\n \"TransDstLang\": \"en\"\n }\n}",
|
|
865
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"84265f8e-43ec-4449-9521-b9332f64ee79\"\n }\n}",
|
|
866
|
+
"title": "Modifying a Subtitle Erasing Template and Enabling the Extraction Feature"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"document": "This example shows you how to modify a watermark erasing template and change the watermark erasing model to the Advanced Edition.",
|
|
870
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySmartEraseTemplate\n<Common request parameters>\n\n{\n \"Definition\": 200407,\n \"EraseWatermarkConfig\": {\n \"WatermarkEraseMethod\": \"auto\",\n \"WatermarkModel\": \"advanced\"\n }\n}",
|
|
871
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e4d526f3-f1bb-4030-9f0d-00df485a7eae\"\n }\n}",
|
|
872
|
+
"title": "Modifying a Watermark Erasing Template and Changing the Model"
|
|
873
|
+
}
|
|
874
|
+
],
|
|
825
875
|
"ModifySmartSubtitleTemplate": [
|
|
826
876
|
{
|
|
827
877
|
"document": "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tccli-intl-en
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1268.1
|
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-cli-intl-en.git
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -22,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.4
|
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.5
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.6
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: tencentcloud-sdk-python-intl-en (>=3.0.
|
|
25
|
+
Requires-Dist: tencentcloud-sdk-python-intl-en (>=3.0.1268)
|
|
26
26
|
Requires-Dist: jmespath (==0.10.0)
|
|
27
27
|
Requires-Dist: six (==1.16.0)
|
|
28
28
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tccli/__init__.py,sha256=
|
|
1
|
+
tccli/__init__.py,sha256=AKVNUQPC59KAyG3plliAIAOY0xgzKn0NzgLAwFfk5N0,28
|
|
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
|
|
@@ -377,9 +377,9 @@ tccli/services/monitor/monitor_client.py,sha256=2cGyvKz9tgr0U-v1XsPZ1JYTEWUzXmUD
|
|
|
377
377
|
tccli/services/monitor/v20180724/api.json,sha256=gL_d2VZy96mCg2SzszZ5frO-gmPcfvZyxeoeJci4XP8,636036
|
|
378
378
|
tccli/services/monitor/v20180724/examples.json,sha256=LzC8p9xNNhp-OPrj9QmC_OYy2Hj0Wydvtnsd5AtJFjI,210616
|
|
379
379
|
tccli/services/mps/__init__.py,sha256=4M5o2xc0u3rqtgz_5an9Qxw2QaOqwBq8Fjc3IB64p2o,85
|
|
380
|
-
tccli/services/mps/mps_client.py,sha256=
|
|
381
|
-
tccli/services/mps/v20190612/api.json,sha256=
|
|
382
|
-
tccli/services/mps/v20190612/examples.json,sha256=
|
|
380
|
+
tccli/services/mps/mps_client.py,sha256=zOdddLMjMuuWaiPbgozfUv1xfIfwMUliQSq4g2MUiWQ,305103
|
|
381
|
+
tccli/services/mps/v20190612/api.json,sha256=4VzL6W4mRh9-dKzfeFhsOGFeLm7dFg9NL4QdQ74h_Mk,1174655
|
|
382
|
+
tccli/services/mps/v20190612/examples.json,sha256=K_OAIJ72WlReSd98B7t2yHGrfmAJct0BOwlF_vjPEdw,282824
|
|
383
383
|
tccli/services/msp/__init__.py,sha256=0k_5yz4kYV72TCSBHRT9p4FBqtVxKOiOrNCR-QXcjEA,85
|
|
384
384
|
tccli/services/msp/msp_client.py,sha256=c9mp5t5nyCC00NeYhjThQY-lEJVCSauBnVZiXB49AKo,27905
|
|
385
385
|
tccli/services/msp/v20180319/api.json,sha256=PUGm-MEDPWDfGFbQzE_XM2QGC68xgf1Oy3otIjOWkG0,22901
|
|
@@ -586,9 +586,9 @@ tccli/services/yunjing/__init__.py,sha256=8HTKN8_ow1j67tspqAbBMQgeteXAagLvtb9WAf
|
|
|
586
586
|
tccli/services/yunjing/yunjing_client.py,sha256=Vh5vFOLjDJ53q_RX9WADwLT610kGcUxwCmtny95k3js,226485
|
|
587
587
|
tccli/services/yunjing/v20180228/api.json,sha256=zYojacZyPgPCi71CLBjuHsQR9mIxcZjCX5JwA9TYr1s,173428
|
|
588
588
|
tccli/services/yunjing/v20180228/examples.json,sha256=j3GL3TtNTkZpNLlksz0nJNCVDxYGUqfRqOt94Y-P8OE,58723
|
|
589
|
-
tccli_intl_en-3.0.
|
|
590
|
-
tccli_intl_en-3.0.
|
|
591
|
-
tccli_intl_en-3.0.
|
|
592
|
-
tccli_intl_en-3.0.
|
|
593
|
-
tccli_intl_en-3.0.
|
|
594
|
-
tccli_intl_en-3.0.
|
|
589
|
+
tccli_intl_en-3.0.1268.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
590
|
+
tccli_intl_en-3.0.1268.1.dist-info/METADATA,sha256=6Z6MYdMeFrH33HCfOGOKYVsLIM0k672HLjryXFfjzkU,3092
|
|
591
|
+
tccli_intl_en-3.0.1268.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
592
|
+
tccli_intl_en-3.0.1268.1.dist-info/entry_points.txt,sha256=68P7ZjqXFm4zPWf5RsAVabzbECUWYFB2VyUnnv8XgMI,86
|
|
593
|
+
tccli_intl_en-3.0.1268.1.dist-info/top_level.txt,sha256=gYFrQRE3IqZ_46Syp-vkVwwvNaYEtKcM4fE_C4Puomk,6
|
|
594
|
+
tccli_intl_en-3.0.1268.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|