tccli 3.0.1175.1__py2.py3-none-any.whl → 3.0.1177.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/batch/v20170312/api.json +1 -1
  3. tccli/services/ccc/v20200210/api.json +9 -9
  4. tccli/services/cdwdoris/cdwdoris_client.py +113 -113
  5. tccli/services/cdwdoris/v20211228/api.json +899 -1218
  6. tccli/services/cdwdoris/v20211228/examples.json +70 -70
  7. tccli/services/clb/v20180317/api.json +1 -1
  8. tccli/services/cvm/v20170312/api.json +1 -1
  9. tccli/services/cynosdb/cynosdb_client.py +114 -8
  10. tccli/services/cynosdb/v20190107/api.json +136 -0
  11. tccli/services/cynosdb/v20190107/examples.json +16 -0
  12. tccli/services/dcdb/v20180411/api.json +28 -1
  13. tccli/services/dnspod/v20210323/api.json +1 -0
  14. tccli/services/dsgc/v20190723/api.json +85 -9
  15. tccli/services/dsgc/v20190723/examples.json +4 -4
  16. tccli/services/ecm/v20190719/api.json +8 -6
  17. tccli/services/emr/v20190103/api.json +9 -0
  18. tccli/services/faceid/v20180301/api.json +29 -1
  19. tccli/services/hunyuan/v20230901/api.json +1 -1
  20. tccli/services/mps/v20190612/api.json +49 -29
  21. tccli/services/mrs/v20200910/api.json +3 -0
  22. tccli/services/mrs/v20200910/examples.json +1 -1
  23. tccli/services/organization/v20210331/api.json +23 -23
  24. tccli/services/organization/v20210331/examples.json +4 -4
  25. tccli/services/redis/v20180412/api.json +85 -39
  26. tccli/services/redis/v20180412/examples.json +2 -2
  27. tccli/services/trtc/trtc_client.py +106 -0
  28. tccli/services/trtc/v20190722/api.json +142 -1
  29. tccli/services/trtc/v20190722/examples.json +16 -0
  30. tccli/services/tse/v20201207/api.json +58 -0
  31. tccli/services/tts/v20190823/api.json +2 -2
  32. tccli/services/vclm/v20240523/api.json +9 -0
  33. tccli/services/vod/v20180717/api.json +341 -0
  34. tccli/services/vod/v20180717/examples.json +30 -0
  35. tccli/services/vod/vod_client.py +171 -12
  36. tccli/services/vpc/v20170312/api.json +168 -38
  37. {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/METADATA +2 -2
  38. {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/RECORD +41 -41
  39. {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/WHEEL +0 -0
  40. {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/entry_points.txt +0 -0
  41. {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/license_files/LICENSE +0 -0
@@ -3969,7 +3969,7 @@ def doDeleteMedia(args, parsed_globals):
3969
3969
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3970
3970
 
3971
3971
 
3972
- def doDescribeImageReviewUsageData(args, parsed_globals):
3972
+ def doHandleCurrentPlaylist(args, parsed_globals):
3973
3973
  g_param = parse_global_arg(parsed_globals)
3974
3974
 
3975
3975
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3998,11 +3998,63 @@ def doDescribeImageReviewUsageData(args, parsed_globals):
3998
3998
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
3999
3999
  client._sdkVersion += ("_CLI_" + __version__)
4000
4000
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4001
- model = models.DescribeImageReviewUsageDataRequest()
4001
+ model = models.HandleCurrentPlaylistRequest()
4002
4002
  model.from_json_string(json.dumps(args))
4003
4003
  start_time = time.time()
4004
4004
  while True:
4005
- rsp = client.DescribeImageReviewUsageData(model)
4005
+ rsp = client.HandleCurrentPlaylist(model)
4006
+ result = rsp.to_json_string()
4007
+ try:
4008
+ json_obj = json.loads(result)
4009
+ except TypeError as e:
4010
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4011
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4012
+ break
4013
+ cur_time = time.time()
4014
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4015
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4016
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4017
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4018
+ else:
4019
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4020
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4021
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4022
+
4023
+
4024
+ def doCreateSuperPlayerConfig(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.VodClient(cred, g_param[OptionsDefine.Region], profile)
4051
+ client._sdkVersion += ("_CLI_" + __version__)
4052
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4053
+ model = models.CreateSuperPlayerConfigRequest()
4054
+ model.from_json_string(json.dumps(args))
4055
+ start_time = time.time()
4056
+ while True:
4057
+ rsp = client.CreateSuperPlayerConfig(model)
4006
4058
  result = rsp.to_json_string()
4007
4059
  try:
4008
4060
  json_obj = json.loads(result)
@@ -4281,7 +4333,7 @@ def doCreateRebuildMediaTemplate(args, parsed_globals):
4281
4333
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4282
4334
 
4283
4335
 
4284
- def doModifyRoundPlay(args, parsed_globals):
4336
+ def doDescribeCurrentPlaylist(args, parsed_globals):
4285
4337
  g_param = parse_global_arg(parsed_globals)
4286
4338
 
4287
4339
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4310,11 +4362,11 @@ def doModifyRoundPlay(args, parsed_globals):
4310
4362
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
4311
4363
  client._sdkVersion += ("_CLI_" + __version__)
4312
4364
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4313
- model = models.ModifyRoundPlayRequest()
4365
+ model = models.DescribeCurrentPlaylistRequest()
4314
4366
  model.from_json_string(json.dumps(args))
4315
4367
  start_time = time.time()
4316
4368
  while True:
4317
- rsp = client.ModifyRoundPlay(model)
4369
+ rsp = client.DescribeCurrentPlaylist(model)
4318
4370
  result = rsp.to_json_string()
4319
4371
  try:
4320
4372
  json_obj = json.loads(result)
@@ -5009,7 +5061,7 @@ def doVerifyDomainRecord(args, parsed_globals):
5009
5061
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5010
5062
 
5011
5063
 
5012
- def doCreateSuperPlayerConfig(args, parsed_globals):
5064
+ def doDescribeImageReviewUsageData(args, parsed_globals):
5013
5065
  g_param = parse_global_arg(parsed_globals)
5014
5066
 
5015
5067
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5038,11 +5090,11 @@ def doCreateSuperPlayerConfig(args, parsed_globals):
5038
5090
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
5039
5091
  client._sdkVersion += ("_CLI_" + __version__)
5040
5092
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5041
- model = models.CreateSuperPlayerConfigRequest()
5093
+ model = models.DescribeImageReviewUsageDataRequest()
5042
5094
  model.from_json_string(json.dumps(args))
5043
5095
  start_time = time.time()
5044
5096
  while True:
5045
- rsp = client.CreateSuperPlayerConfig(model)
5097
+ rsp = client.DescribeImageReviewUsageData(model)
5046
5098
  result = rsp.to_json_string()
5047
5099
  try:
5048
5100
  json_obj = json.loads(result)
@@ -5633,6 +5685,58 @@ def doDeleteWordSamples(args, parsed_globals):
5633
5685
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5634
5686
 
5635
5687
 
5688
+ def doFastEditMedia(args, parsed_globals):
5689
+ g_param = parse_global_arg(parsed_globals)
5690
+
5691
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5692
+ cred = credential.CVMRoleCredential()
5693
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5694
+ cred = credential.STSAssumeRoleCredential(
5695
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5696
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5697
+ )
5698
+ 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):
5699
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5700
+ else:
5701
+ cred = credential.Credential(
5702
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5703
+ )
5704
+ http_profile = HttpProfile(
5705
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5706
+ reqMethod="POST",
5707
+ endpoint=g_param[OptionsDefine.Endpoint],
5708
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5709
+ )
5710
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5711
+ if g_param[OptionsDefine.Language]:
5712
+ profile.language = g_param[OptionsDefine.Language]
5713
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5714
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
5715
+ client._sdkVersion += ("_CLI_" + __version__)
5716
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5717
+ model = models.FastEditMediaRequest()
5718
+ model.from_json_string(json.dumps(args))
5719
+ start_time = time.time()
5720
+ while True:
5721
+ rsp = client.FastEditMedia(model)
5722
+ result = rsp.to_json_string()
5723
+ try:
5724
+ json_obj = json.loads(result)
5725
+ except TypeError as e:
5726
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5727
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5728
+ break
5729
+ cur_time = time.time()
5730
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5731
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5732
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5733
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5734
+ else:
5735
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5736
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5737
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5738
+
5739
+
5636
5740
  def doCreateVodDomain(args, parsed_globals):
5637
5741
  g_param = parse_global_arg(parsed_globals)
5638
5742
 
@@ -6413,6 +6517,58 @@ def doModifySubAppIdInfo(args, parsed_globals):
6413
6517
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6414
6518
 
6415
6519
 
6520
+ def doModifyRoundPlay(args, parsed_globals):
6521
+ g_param = parse_global_arg(parsed_globals)
6522
+
6523
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6524
+ cred = credential.CVMRoleCredential()
6525
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6526
+ cred = credential.STSAssumeRoleCredential(
6527
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6528
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6529
+ )
6530
+ 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):
6531
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6532
+ else:
6533
+ cred = credential.Credential(
6534
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6535
+ )
6536
+ http_profile = HttpProfile(
6537
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6538
+ reqMethod="POST",
6539
+ endpoint=g_param[OptionsDefine.Endpoint],
6540
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6541
+ )
6542
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6543
+ if g_param[OptionsDefine.Language]:
6544
+ profile.language = g_param[OptionsDefine.Language]
6545
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6546
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
6547
+ client._sdkVersion += ("_CLI_" + __version__)
6548
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6549
+ model = models.ModifyRoundPlayRequest()
6550
+ model.from_json_string(json.dumps(args))
6551
+ start_time = time.time()
6552
+ while True:
6553
+ rsp = client.ModifyRoundPlay(model)
6554
+ result = rsp.to_json_string()
6555
+ try:
6556
+ json_obj = json.loads(result)
6557
+ except TypeError as e:
6558
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6559
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6560
+ break
6561
+ cur_time = time.time()
6562
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6563
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6564
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6565
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6566
+ else:
6567
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6568
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6569
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6570
+
6571
+
6416
6572
  def doComposeMedia(args, parsed_globals):
6417
6573
  g_param = parse_global_arg(parsed_globals)
6418
6574
 
@@ -9308,13 +9464,14 @@ ACTION_MAP = {
9308
9464
  "CreateProcedureTemplate": doCreateProcedureTemplate,
9309
9465
  "PushUrlCache": doPushUrlCache,
9310
9466
  "DeleteMedia": doDeleteMedia,
9311
- "DescribeImageReviewUsageData": doDescribeImageReviewUsageData,
9467
+ "HandleCurrentPlaylist": doHandleCurrentPlaylist,
9468
+ "CreateSuperPlayerConfig": doCreateSuperPlayerConfig,
9312
9469
  "DescribeCLSPushTargets": doDescribeCLSPushTargets,
9313
9470
  "EnhanceMediaByTemplate": doEnhanceMediaByTemplate,
9314
9471
  "ModifyPersonSample": doModifyPersonSample,
9315
9472
  "CreateEnhanceMediaTemplate": doCreateEnhanceMediaTemplate,
9316
9473
  "CreateRebuildMediaTemplate": doCreateRebuildMediaTemplate,
9317
- "ModifyRoundPlay": doModifyRoundPlay,
9474
+ "DescribeCurrentPlaylist": doDescribeCurrentPlaylist,
9318
9475
  "DescribeDailyMediaPlayStat": doDescribeDailyMediaPlayStat,
9319
9476
  "DeleteAnimatedGraphicsTemplate": doDeleteAnimatedGraphicsTemplate,
9320
9477
  "DescribeCLSTopics": doDescribeCLSTopics,
@@ -9328,7 +9485,7 @@ ACTION_MAP = {
9328
9485
  "ModifyJustInTimeTranscodeTemplate": doModifyJustInTimeTranscodeTemplate,
9329
9486
  "ModifyQualityInspectTemplate": doModifyQualityInspectTemplate,
9330
9487
  "VerifyDomainRecord": doVerifyDomainRecord,
9331
- "CreateSuperPlayerConfig": doCreateSuperPlayerConfig,
9488
+ "DescribeImageReviewUsageData": doDescribeImageReviewUsageData,
9332
9489
  "ModifyVodDomainConfig": doModifyVodDomainConfig,
9333
9490
  "DescribeSnapshotByTimeOffsetTemplates": doDescribeSnapshotByTimeOffsetTemplates,
9334
9491
  "PullUpload": doPullUpload,
@@ -9340,6 +9497,7 @@ ACTION_MAP = {
9340
9497
  "ModifyWatermarkTemplate": doModifyWatermarkTemplate,
9341
9498
  "DescribeStorageDetails": doDescribeStorageDetails,
9342
9499
  "DeleteWordSamples": doDeleteWordSamples,
9500
+ "FastEditMedia": doFastEditMedia,
9343
9501
  "CreateVodDomain": doCreateVodDomain,
9344
9502
  "ProcessMedia": doProcessMedia,
9345
9503
  "DescribePersonSamples": doDescribePersonSamples,
@@ -9355,6 +9513,7 @@ ACTION_MAP = {
9355
9513
  "DescribeRoundPlays": doDescribeRoundPlays,
9356
9514
  "DescribeEventConfig": doDescribeEventConfig,
9357
9515
  "ModifySubAppIdInfo": doModifySubAppIdInfo,
9516
+ "ModifyRoundPlay": doModifyRoundPlay,
9358
9517
  "ComposeMedia": doComposeMedia,
9359
9518
  "DescribeSampleSnapshotTemplates": doDescribeSampleSnapshotTemplates,
9360
9519
  "ModifyWordSample": doModifyWordSample,