tccli 3.0.1349.1__py2.py3-none-any.whl → 3.0.1350.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.
@@ -1107,7 +1107,7 @@
1107
1107
  "members": [
1108
1108
  {
1109
1109
  "disabled": false,
1110
- "document": "传入需要进行检测的带有人脸的图片或视频(当前仅支持单人脸检测),使用base64编码的形式。\n- 图片的Base64值:\n建议整体图像480x640的分辨率,脸部 大小 100X100 以上。\nBase64编码后的图片数据大小建议不超过3M、最大不可超过10M,仅支持jpg、png格式。\n请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。\n\n- 视频的Base64值:\nBase64编码后的大小建议不超过8M、最大不可超过10M,支持mp4、avi、flv格式。\n请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。\n视频时长最大支持20s,建议时长2~5s。\n建议视频分辨率为480x640,帧率在25fps~30fps之间。\n\n示例值:/9j/4AAQSkZJRg.....s97n//2Q==",
1110
+ "document": "传入需要检测的人脸图片或人脸视频(当前仅支持单人脸检测),使用base64编码的形式,如您的场景视频和图片都有,我们更建议您使用视频进行检测,为了提供更好的检测效果,请您注意以下输入数据的限制与建议:\n\n- 图片的Base64值:\n建议整体图像480x640的分辨率,脸部大小在 100X100 以上,由手机前置摄像头拍摄。\nBase64编码后的图片数据大小建议不超过3M、最大不可超过10M,仅支持jpg、png格式。\n请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。\n\n- 视频的Base64值:\nBase64编码后的大小建议在8M以内、最大不可超过10M,支持mp4、avi、flv格式,由手机前置摄像头拍摄。\n视频建议时长为2~5s,最大不可超过20s。\n视频分辨率建议为480x640(最大支持720p),帧率在25fps~30fps之间。\n请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。\n\n示例值:/9j/4AAQSkZJRg.....s97n//2Q==",
1111
1111
  "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
1112
1112
  "member": "string",
1113
1113
  "name": "FaceInput",
@@ -1149,7 +1149,7 @@
1149
1149
  "members": [
1150
1150
  {
1151
1151
  "disabled": false,
1152
- "document": "检测到的图片是否存在攻击。\n- Low:无攻击风险。\n- Mid:中度疑似攻击。\n- High:高度疑似攻击。",
1152
+ "document": "对于输入图片/视频的检测结果,检测是否存在人脸攻击。\n- Low:低攻击风险。\n- Mid:中度疑似攻击。\n- High:高度疑似攻击。\n\n建议返回值为High时判断为拦截,Mid和Low判断为通过,以更好平衡安全性和通过率。",
1153
1153
  "example": "Mid",
1154
1154
  "member": "string",
1155
1155
  "name": "AttackRiskLevel",
@@ -1159,7 +1159,7 @@
1159
1159
  },
1160
1160
  {
1161
1161
  "disabled": false,
1162
- "document": "检测到疑似的攻击痕迹列表。\n- 说明:未检测到攻击痕迹时,返回空数组。\n- 此出参仅作为结果判断的参考,实际应用仍建议使用AttackRiskLevel的结果。",
1162
+ "document": "检测到的疑似攻击痕迹列表,仅当AttackRiskLevel为High或Mid时返回。\n- 说明:未检测到攻击痕迹时,返回空数组。\n- 此出参仅作为结果判断的参考,实际应用仍建议使用AttackRiskLevel的结果。",
1163
1163
  "example": "[{ Type:\"SuspectedSpoofingAttack\" }]",
1164
1164
  "member": "AttackRiskDetail",
1165
1165
  "name": "AttackRiskDetailList",
@@ -3449,6 +3449,58 @@ def doDescribeLiveDomainCertBindings(args, parsed_globals):
3449
3449
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
3450
 
3451
3451
 
3452
+ def doCreateAuditKeywords(args, parsed_globals):
3453
+ g_param = parse_global_arg(parsed_globals)
3454
+
3455
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3456
+ cred = credential.CVMRoleCredential()
3457
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3458
+ cred = credential.STSAssumeRoleCredential(
3459
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3460
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3461
+ )
3462
+ 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):
3463
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3464
+ else:
3465
+ cred = credential.Credential(
3466
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3467
+ )
3468
+ http_profile = HttpProfile(
3469
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3470
+ reqMethod="POST",
3471
+ endpoint=g_param[OptionsDefine.Endpoint],
3472
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3473
+ )
3474
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3475
+ if g_param[OptionsDefine.Language]:
3476
+ profile.language = g_param[OptionsDefine.Language]
3477
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3478
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
3479
+ client._sdkVersion += ("_CLI_" + __version__)
3480
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3481
+ model = models.CreateAuditKeywordsRequest()
3482
+ model.from_json_string(json.dumps(args))
3483
+ start_time = time.time()
3484
+ while True:
3485
+ rsp = client.CreateAuditKeywords(model)
3486
+ result = rsp.to_json_string()
3487
+ try:
3488
+ json_obj = json.loads(result)
3489
+ except TypeError as e:
3490
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3491
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3492
+ break
3493
+ cur_time = time.time()
3494
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3495
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3496
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3497
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3498
+ else:
3499
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3500
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3501
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
+
3503
+
3452
3504
  def doDescribePlayErrorCodeSumInfoList(args, parsed_globals):
3453
3505
  g_param = parse_global_arg(parsed_globals)
3454
3506
 
@@ -4489,6 +4541,58 @@ def doCreateLiveCallbackTemplate(args, parsed_globals):
4489
4541
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4490
4542
 
4491
4543
 
4544
+ def doDeleteAuditKeywords(args, parsed_globals):
4545
+ g_param = parse_global_arg(parsed_globals)
4546
+
4547
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4548
+ cred = credential.CVMRoleCredential()
4549
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4550
+ cred = credential.STSAssumeRoleCredential(
4551
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4552
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4553
+ )
4554
+ 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):
4555
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4556
+ else:
4557
+ cred = credential.Credential(
4558
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4559
+ )
4560
+ http_profile = HttpProfile(
4561
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4562
+ reqMethod="POST",
4563
+ endpoint=g_param[OptionsDefine.Endpoint],
4564
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4565
+ )
4566
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4567
+ if g_param[OptionsDefine.Language]:
4568
+ profile.language = g_param[OptionsDefine.Language]
4569
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4570
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
4571
+ client._sdkVersion += ("_CLI_" + __version__)
4572
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4573
+ model = models.DeleteAuditKeywordsRequest()
4574
+ model.from_json_string(json.dumps(args))
4575
+ start_time = time.time()
4576
+ while True:
4577
+ rsp = client.DeleteAuditKeywords(model)
4578
+ result = rsp.to_json_string()
4579
+ try:
4580
+ json_obj = json.loads(result)
4581
+ except TypeError as e:
4582
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4583
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4584
+ break
4585
+ cur_time = time.time()
4586
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4587
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4588
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4589
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4590
+ else:
4591
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4592
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4593
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4594
+
4595
+
4492
4596
  def doDescribeLiveDomains(args, parsed_globals):
4493
4597
  g_param = parse_global_arg(parsed_globals)
4494
4598
 
@@ -4593,6 +4697,58 @@ def doModifyCasterOutputInfo(args, parsed_globals):
4593
4697
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4594
4698
 
4595
4699
 
4700
+ def doCreateRecordTask(args, parsed_globals):
4701
+ g_param = parse_global_arg(parsed_globals)
4702
+
4703
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4704
+ cred = credential.CVMRoleCredential()
4705
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4706
+ cred = credential.STSAssumeRoleCredential(
4707
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4708
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4709
+ )
4710
+ 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):
4711
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4712
+ else:
4713
+ cred = credential.Credential(
4714
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4715
+ )
4716
+ http_profile = HttpProfile(
4717
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4718
+ reqMethod="POST",
4719
+ endpoint=g_param[OptionsDefine.Endpoint],
4720
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4721
+ )
4722
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4723
+ if g_param[OptionsDefine.Language]:
4724
+ profile.language = g_param[OptionsDefine.Language]
4725
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4726
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
4727
+ client._sdkVersion += ("_CLI_" + __version__)
4728
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4729
+ model = models.CreateRecordTaskRequest()
4730
+ model.from_json_string(json.dumps(args))
4731
+ start_time = time.time()
4732
+ while True:
4733
+ rsp = client.CreateRecordTask(model)
4734
+ result = rsp.to_json_string()
4735
+ try:
4736
+ json_obj = json.loads(result)
4737
+ except TypeError as e:
4738
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4739
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4740
+ break
4741
+ cur_time = time.time()
4742
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4743
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4744
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4745
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4746
+ else:
4747
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4748
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4749
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4750
+
4751
+
4596
4752
  def doCreateCasterPvw(args, parsed_globals):
4597
4753
  g_param = parse_global_arg(parsed_globals)
4598
4754
 
@@ -7089,58 +7245,6 @@ def doDescribeLiveCallbackTemplate(args, parsed_globals):
7089
7245
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7090
7246
 
7091
7247
 
7092
- def doDescribeCasterUserStatus(args, parsed_globals):
7093
- g_param = parse_global_arg(parsed_globals)
7094
-
7095
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7096
- cred = credential.CVMRoleCredential()
7097
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7098
- cred = credential.STSAssumeRoleCredential(
7099
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7100
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7101
- )
7102
- 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):
7103
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7104
- else:
7105
- cred = credential.Credential(
7106
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7107
- )
7108
- http_profile = HttpProfile(
7109
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7110
- reqMethod="POST",
7111
- endpoint=g_param[OptionsDefine.Endpoint],
7112
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7113
- )
7114
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7115
- if g_param[OptionsDefine.Language]:
7116
- profile.language = g_param[OptionsDefine.Language]
7117
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7118
- client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
7119
- client._sdkVersion += ("_CLI_" + __version__)
7120
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
7121
- model = models.DescribeCasterUserStatusRequest()
7122
- model.from_json_string(json.dumps(args))
7123
- start_time = time.time()
7124
- while True:
7125
- rsp = client.DescribeCasterUserStatus(model)
7126
- result = rsp.to_json_string()
7127
- try:
7128
- json_obj = json.loads(result)
7129
- except TypeError as e:
7130
- json_obj = json.loads(result.decode('utf-8')) # python3.3
7131
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7132
- break
7133
- cur_time = time.time()
7134
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7135
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7136
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7137
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7138
- else:
7139
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7140
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7141
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7142
-
7143
-
7144
7248
  def doDescribeLivePackageInfo(args, parsed_globals):
7145
7249
  g_param = parse_global_arg(parsed_globals)
7146
7250
 
@@ -8701,7 +8805,7 @@ def doDeleteLiveStreamMonitor(args, parsed_globals):
8701
8805
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8702
8806
 
8703
8807
 
8704
- def doDescribeCaster(args, parsed_globals):
8808
+ def doDescribeAuditKeywords(args, parsed_globals):
8705
8809
  g_param = parse_global_arg(parsed_globals)
8706
8810
 
8707
8811
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -8730,11 +8834,11 @@ def doDescribeCaster(args, parsed_globals):
8730
8834
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
8731
8835
  client._sdkVersion += ("_CLI_" + __version__)
8732
8836
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
8733
- model = models.DescribeCasterRequest()
8837
+ model = models.DescribeAuditKeywordsRequest()
8734
8838
  model.from_json_string(json.dumps(args))
8735
8839
  start_time = time.time()
8736
8840
  while True:
8737
- rsp = client.DescribeCaster(model)
8841
+ rsp = client.DescribeAuditKeywords(model)
8738
8842
  result = rsp.to_json_string()
8739
8843
  try:
8740
8844
  json_obj = json.loads(result)
@@ -9169,7 +9273,7 @@ def doModifyLiveStreamMonitor(args, parsed_globals):
9169
9273
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9170
9274
 
9171
9275
 
9172
- def doCreateCaster(args, parsed_globals):
9276
+ def doDescribeCasterUserStatus(args, parsed_globals):
9173
9277
  g_param = parse_global_arg(parsed_globals)
9174
9278
 
9175
9279
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -9198,11 +9302,11 @@ def doCreateCaster(args, parsed_globals):
9198
9302
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
9199
9303
  client._sdkVersion += ("_CLI_" + __version__)
9200
9304
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
9201
- model = models.CreateCasterRequest()
9305
+ model = models.DescribeCasterUserStatusRequest()
9202
9306
  model.from_json_string(json.dumps(args))
9203
9307
  start_time = time.time()
9204
9308
  while True:
9205
- rsp = client.CreateCaster(model)
9309
+ rsp = client.DescribeCasterUserStatus(model)
9206
9310
  result = rsp.to_json_string()
9207
9311
  try:
9208
9312
  json_obj = json.loads(result)
@@ -9689,7 +9793,7 @@ def doResumeDelayLiveStream(args, parsed_globals):
9689
9793
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9690
9794
 
9691
9795
 
9692
- def doCreateRecordTask(args, parsed_globals):
9796
+ def doCreateCaster(args, parsed_globals):
9693
9797
  g_param = parse_global_arg(parsed_globals)
9694
9798
 
9695
9799
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -9718,11 +9822,11 @@ def doCreateRecordTask(args, parsed_globals):
9718
9822
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
9719
9823
  client._sdkVersion += ("_CLI_" + __version__)
9720
9824
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
9721
- model = models.CreateRecordTaskRequest()
9825
+ model = models.CreateCasterRequest()
9722
9826
  model.from_json_string(json.dumps(args))
9723
9827
  start_time = time.time()
9724
9828
  while True:
9725
- rsp = client.CreateRecordTask(model)
9829
+ rsp = client.CreateCaster(model)
9726
9830
  result = rsp.to_json_string()
9727
9831
  try:
9728
9832
  json_obj = json.loads(result)
@@ -10001,6 +10105,58 @@ def doDeleteCasterOutputInfo(args, parsed_globals):
10001
10105
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
10002
10106
 
10003
10107
 
10108
+ def doDescribeCaster(args, parsed_globals):
10109
+ g_param = parse_global_arg(parsed_globals)
10110
+
10111
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
10112
+ cred = credential.CVMRoleCredential()
10113
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
10114
+ cred = credential.STSAssumeRoleCredential(
10115
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
10116
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
10117
+ )
10118
+ 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):
10119
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
10120
+ else:
10121
+ cred = credential.Credential(
10122
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
10123
+ )
10124
+ http_profile = HttpProfile(
10125
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
10126
+ reqMethod="POST",
10127
+ endpoint=g_param[OptionsDefine.Endpoint],
10128
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
10129
+ )
10130
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
10131
+ if g_param[OptionsDefine.Language]:
10132
+ profile.language = g_param[OptionsDefine.Language]
10133
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
10134
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
10135
+ client._sdkVersion += ("_CLI_" + __version__)
10136
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
10137
+ model = models.DescribeCasterRequest()
10138
+ model.from_json_string(json.dumps(args))
10139
+ start_time = time.time()
10140
+ while True:
10141
+ rsp = client.DescribeCaster(model)
10142
+ result = rsp.to_json_string()
10143
+ try:
10144
+ json_obj = json.loads(result)
10145
+ except TypeError as e:
10146
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
10147
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
10148
+ break
10149
+ cur_time = time.time()
10150
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
10151
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
10152
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
10153
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
10154
+ else:
10155
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
10156
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
10157
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
10158
+
10159
+
10004
10160
  def doDeleteLiveTranscodeTemplate(args, parsed_globals):
10005
10161
  g_param = parse_global_arg(parsed_globals)
10006
10162
 
@@ -10390,6 +10546,7 @@ ACTION_MAP = {
10390
10546
  "DeleteLiveWatermark": doDeleteLiveWatermark,
10391
10547
  "ModifyCaster": doModifyCaster,
10392
10548
  "DescribeLiveDomainCertBindings": doDescribeLiveDomainCertBindings,
10549
+ "CreateAuditKeywords": doCreateAuditKeywords,
10393
10550
  "DescribePlayErrorCodeSumInfoList": doDescribePlayErrorCodeSumInfoList,
10394
10551
  "AddDelayLiveStream": doAddDelayLiveStream,
10395
10552
  "DescribeUploadStreamNums": doDescribeUploadStreamNums,
@@ -10410,8 +10567,10 @@ ACTION_MAP = {
10410
10567
  "DescribeLiveEnhanceInfoList": doDescribeLiveEnhanceInfoList,
10411
10568
  "DescribePullTransformPushInfo": doDescribePullTransformPushInfo,
10412
10569
  "CreateLiveCallbackTemplate": doCreateLiveCallbackTemplate,
10570
+ "DeleteAuditKeywords": doDeleteAuditKeywords,
10413
10571
  "DescribeLiveDomains": doDescribeLiveDomains,
10414
10572
  "ModifyCasterOutputInfo": doModifyCasterOutputInfo,
10573
+ "CreateRecordTask": doCreateRecordTask,
10415
10574
  "CreateCasterPvw": doCreateCasterPvw,
10416
10575
  "ResumeLiveStream": doResumeLiveStream,
10417
10576
  "DescribeCasterMarkPicInfos": doDescribeCasterMarkPicInfos,
@@ -10460,7 +10619,6 @@ ACTION_MAP = {
10460
10619
  "DescribeScreenshotTask": doDescribeScreenshotTask,
10461
10620
  "DescribePushBandwidthAndFluxList": doDescribePushBandwidthAndFluxList,
10462
10621
  "DescribeLiveCallbackTemplate": doDescribeLiveCallbackTemplate,
10463
- "DescribeCasterUserStatus": doDescribeCasterUserStatus,
10464
10622
  "DescribeLivePackageInfo": doDescribeLivePackageInfo,
10465
10623
  "DescribeLiveTimeShiftWriteSizeInfoList": doDescribeLiveTimeShiftWriteSizeInfoList,
10466
10624
  "ForbidLiveStream": doForbidLiveStream,
@@ -10491,7 +10649,7 @@ ACTION_MAP = {
10491
10649
  "CreateLiveSnapshotRule": doCreateLiveSnapshotRule,
10492
10650
  "CreateLiveTimeShiftTemplate": doCreateLiveTimeShiftTemplate,
10493
10651
  "DeleteLiveStreamMonitor": doDeleteLiveStreamMonitor,
10494
- "DescribeCaster": doDescribeCaster,
10652
+ "DescribeAuditKeywords": doDescribeAuditKeywords,
10495
10653
  "DescribeLivePullStreamTasks": doDescribeLivePullStreamTasks,
10496
10654
  "DescribeProIspPlaySumInfoList": doDescribeProIspPlaySumInfoList,
10497
10655
  "DescribeAllStreamPlayInfoList": doDescribeAllStreamPlayInfoList,
@@ -10500,7 +10658,7 @@ ACTION_MAP = {
10500
10658
  "DescribeCasterTransitionTypes": doDescribeCasterTransitionTypes,
10501
10659
  "DescribeCasterDisplayInfo": doDescribeCasterDisplayInfo,
10502
10660
  "ModifyLiveStreamMonitor": doModifyLiveStreamMonitor,
10503
- "CreateCaster": doCreateCaster,
10661
+ "DescribeCasterUserStatus": doDescribeCasterUserStatus,
10504
10662
  "DescribeLiveStreamState": doDescribeLiveStreamState,
10505
10663
  "ModifyLiveDomainReferer": doModifyLiveDomainReferer,
10506
10664
  "DeleteLiveRecordTemplate": doDeleteLiveRecordTemplate,
@@ -10510,12 +10668,13 @@ ACTION_MAP = {
10510
10668
  "DeleteCasterMarkWordInfo": doDeleteCasterMarkWordInfo,
10511
10669
  "DescribeBackupStreamList": doDescribeBackupStreamList,
10512
10670
  "ResumeDelayLiveStream": doResumeDelayLiveStream,
10513
- "CreateRecordTask": doCreateRecordTask,
10671
+ "CreateCaster": doCreateCaster,
10514
10672
  "CreateLiveTranscodeTemplate": doCreateLiveTranscodeTemplate,
10515
10673
  "DescribeLiveCerts": doDescribeLiveCerts,
10516
10674
  "StopCasterPgm": doStopCasterPgm,
10517
10675
  "EnableLiveDomain": doEnableLiveDomain,
10518
10676
  "DeleteCasterOutputInfo": doDeleteCasterOutputInfo,
10677
+ "DescribeCaster": doDescribeCaster,
10519
10678
  "DeleteLiveTranscodeTemplate": doDeleteLiveTranscodeTemplate,
10520
10679
  "DescribeLivePadTemplates": doDescribeLivePadTemplates,
10521
10680
  "DescribeTranscodeTaskNum": doDescribeTranscodeTaskNum,
@@ -77,6 +77,13 @@
77
77
  "output": "CopyCasterResponse",
78
78
  "status": "online"
79
79
  },
80
+ "CreateAuditKeywords": {
81
+ "document": "创建关键词,并关联到关键词库。",
82
+ "input": "CreateAuditKeywordsRequest",
83
+ "name": "直播审核创建关键词",
84
+ "output": "CreateAuditKeywordsResponse",
85
+ "status": "online"
86
+ },
80
87
  "CreateCaster": {
81
88
  "document": "该接口用来创建新的导播台",
82
89
  "input": "CreateCasterRequest",
@@ -252,6 +259,13 @@
252
259
  "output": "CreateScreenshotTaskResponse",
253
260
  "status": "online"
254
261
  },
262
+ "DeleteAuditKeywords": {
263
+ "document": "删除关键词信息。",
264
+ "input": "DeleteAuditKeywordsRequest",
265
+ "name": "直播审核删除关键词",
266
+ "output": "DeleteAuditKeywordsResponse",
267
+ "status": "online"
268
+ },
255
269
  "DeleteCaster": {
256
270
  "document": "该接口用来删除一个导播台的所有信息。\n注意,调用该接口后,所有的导播台信息将被清除,包括正在直播的内容也将直接中断。",
257
271
  "input": "DeleteCasterRequest",
@@ -455,6 +469,13 @@
455
469
  "output": "DescribeAreaBillBandwidthAndFluxListResponse",
456
470
  "status": "online"
457
471
  },
472
+ "DescribeAuditKeywords": {
473
+ "document": "获取关键词信息。",
474
+ "input": "DescribeAuditKeywordsRequest",
475
+ "name": "直播审核获取关键词",
476
+ "output": "DescribeAuditKeywordsResponse",
477
+ "status": "online"
478
+ },
458
479
  "DescribeBackupStreamList": {
459
480
  "document": "返回正在直播中的流列表。适用于推流成功后查询在线流信息。\n\n注意:\n1. 该接口仅提供辅助查询在线流列表功能,业务重要场景不可强依赖该接口。\n2. 该接口仅适用于流数少于2万路的情况,对于流数较大用户请联系售后。",
460
481
  "input": "DescribeBackupStreamListRequest",
@@ -4262,6 +4283,23 @@
4262
4283
  ],
4263
4284
  "type": "object"
4264
4285
  },
4286
+ "CreateAuditKeywordsRequest": {
4287
+ "document": "CreateAuditKeywords请求参数结构体",
4288
+ "members": [],
4289
+ "type": "object"
4290
+ },
4291
+ "CreateAuditKeywordsResponse": {
4292
+ "document": "CreateAuditKeywords返回参数结构体",
4293
+ "members": [
4294
+ {
4295
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4296
+ "member": "string",
4297
+ "name": "RequestId",
4298
+ "type": "string"
4299
+ }
4300
+ ],
4301
+ "type": "object"
4302
+ },
4265
4303
  "CreateCasterInputPushUrlRequest": {
4266
4304
  "document": "CreateCasterInputPushUrl请求参数结构体",
4267
4305
  "members": [
@@ -6848,6 +6886,23 @@
6848
6886
  ],
6849
6887
  "usage": "out"
6850
6888
  },
6889
+ "DeleteAuditKeywordsRequest": {
6890
+ "document": "DeleteAuditKeywords请求参数结构体",
6891
+ "members": [],
6892
+ "type": "object"
6893
+ },
6894
+ "DeleteAuditKeywordsResponse": {
6895
+ "document": "DeleteAuditKeywords返回参数结构体",
6896
+ "members": [
6897
+ {
6898
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
6899
+ "member": "string",
6900
+ "name": "RequestId",
6901
+ "type": "string"
6902
+ }
6903
+ ],
6904
+ "type": "object"
6905
+ },
6851
6906
  "DeleteCasterInputInfoRequest": {
6852
6907
  "document": "DeleteCasterInputInfo请求参数结构体",
6853
6908
  "members": [
@@ -7904,6 +7959,23 @@
7904
7959
  ],
7905
7960
  "type": "object"
7906
7961
  },
7962
+ "DescribeAuditKeywordsRequest": {
7963
+ "document": "DescribeAuditKeywords请求参数结构体",
7964
+ "members": [],
7965
+ "type": "object"
7966
+ },
7967
+ "DescribeAuditKeywordsResponse": {
7968
+ "document": "DescribeAuditKeywords返回参数结构体",
7969
+ "members": [
7970
+ {
7971
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
7972
+ "member": "string",
7973
+ "name": "RequestId",
7974
+ "type": "string"
7975
+ }
7976
+ ],
7977
+ "type": "object"
7978
+ },
7907
7979
  "DescribeBackupStreamListRequest": {
7908
7980
  "document": "DescribeBackupStreamList请求参数结构体",
7909
7981
  "members": [
@@ -88,6 +88,14 @@
88
88
  "title": "请求示例"
89
89
  }
90
90
  ],
91
+ "CreateAuditKeywords": [
92
+ {
93
+ "document": "",
94
+ "input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAuditKeywords\n<公共请求参数>\n\n{}",
95
+ "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
96
+ "title": "直播审核创建关键词"
97
+ }
98
+ ],
91
99
  "CreateCaster": [
92
100
  {
93
101
  "document": "请求创建导播台",
@@ -312,6 +320,14 @@
312
320
  "title": "示例"
313
321
  }
314
322
  ],
323
+ "DeleteAuditKeywords": [
324
+ {
325
+ "document": "",
326
+ "input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAuditKeywords\n<公共请求参数>\n\n{}",
327
+ "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
328
+ "title": "直播审核删除关键词"
329
+ }
330
+ ],
315
331
  "DeleteCaster": [
316
332
  {
317
333
  "document": "删除导播台",
@@ -544,6 +560,14 @@
544
560
  "title": "请求示例"
545
561
  }
546
562
  ],
563
+ "DescribeAuditKeywords": [
564
+ {
565
+ "document": "直播审核获取关键词列表搜索。",
566
+ "input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAuditKeywords\n<公共请求参数>\n\n{}",
567
+ "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
568
+ "title": "直播审核获取关键词"
569
+ }
570
+ ],
547
571
  "DescribeBackupStreamList": [
548
572
  {
549
573
  "document": "查询在推的主备流。",
@@ -2482,7 +2482,7 @@
2482
2482
  {
2483
2483
  "disabled": false,
2484
2484
  "document": "应用版本。",
2485
- "example": "{\"Type\": \"HISTORY\",\"ApplicationVersionId\": \"26\",\"Name\": \"\",\"Description\": \"\",\"Entrypoint\": \"ExomeGermlineSingleSample.wdl\",\"CreateTime\": \"2024-06-06 14:49:06\",\"CreatorName\": \"manager\",\"CreatorId\": \"df8c0fbfd4b94490aed913753473ebed\",\"GitSource\": null,\"CosSource\": null}",
2485
+ "example": "{\"Type\": \"HISTORY\",\"ApplicationVersionId\": \"26\",\"Name\": \"\",\"Description\": \"\",\"Entrypoint\": \"main.wdl\",\"CreateTime\": \"2024-06-06 14:49:06\",\"CreatorName\": \"manager\",\"CreatorId\": \"df8c0fbfd4b94490aed913753473ebed\",\"GitSource\": null,\"CosSource\": null}",
2486
2486
  "member": "ApplicationVersion",
2487
2487
  "name": "ApplicationVersion",
2488
2488
  "output_required": false,
@@ -2611,7 +2611,7 @@
2611
2611
  },
2612
2612
  {
2613
2613
  "disabled": false,
2614
- "document": "输入模版ID。",
2614
+ "document": "输入模板ID。",
2615
2615
  "example": "in-slim-yellow-coorgi-672677",
2616
2616
  "member": "string",
2617
2617
  "name": "InputTemplateId",
@@ -2682,7 +2682,7 @@
2682
2682
  {
2683
2683
  "disabled": false,
2684
2684
  "document": "错误信息。",
2685
- "example": "[{\"causedBy\": [{\"causedBy\": [{\"causedBy\": [{\"causedBy\": [],\"message\": \":\\nDisk strings should be of the format 'local-disk SIZE TYPE' or '/mount/point SIZE TYPE' but got: '50 GB'\"}],\"message\": \"Runtime attribute validation failed\"}],\"message\": \"TesAsyncBackendJobExecutionActor failed and didn't catch its exception. This condition has been handled and the job will be marked as failed.\"}],\"message\": \"Workflow failed\"}]",
2685
+ "example": "[{\"causedBy\": [{\"message\": \"The compute backend terminated the job.\", \"causedBy\": []}], \"message\": \"Workflow failed\"}]",
2686
2686
  "member": "string",
2687
2687
  "name": "ErrorMessage",
2688
2688
  "output_required": true,
@@ -66,8 +66,8 @@
66
66
  },
67
67
  "metadata": {
68
68
  "apiVersion": "2024-05-23",
69
- "api_brief": "腾讯混元生视频API,是一款提供视频生成和视频处理能力的API技术服务。包括视频风格化、图片跳舞等多项视频创作能力,基于腾讯混元大模型等一系列领先的人工智能音视频处理技术,支持用户高质量生成视频并处理视频内容。",
70
- "serviceNameCN": "腾讯混元生视频",
69
+ "api_brief": "大模型视频创作引擎API,是一款提供视频生成和视频处理能力的API技术服务。包括视频风格化、图片跳舞等多项视频创作能力,基于腾讯混元大模型等一系列领先的人工智能音视频处理技术,支持用户高质量生成视频并处理视频内容。",
70
+ "serviceNameCN": "大模型视频创作引擎",
71
71
  "serviceShortName": "vclm"
72
72
  },
73
73
  "objects": {