tccli 3.0.1223.1__py2.py3-none-any.whl → 3.0.1225.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 (65) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apigateway/apigateway_client.py +136 -30
  3. tccli/services/apigateway/v20180808/api.json +183 -0
  4. tccli/services/apigateway/v20180808/examples.json +16 -0
  5. tccli/services/autoscaling/v20180419/api.json +15 -4
  6. tccli/services/batch/v20170312/api.json +33 -11
  7. tccli/services/bi/bi_client.py +106 -0
  8. tccli/services/bi/v20220105/api.json +355 -0
  9. tccli/services/bi/v20220105/examples.json +16 -0
  10. tccli/services/billing/v20180709/api.json +274 -193
  11. tccli/services/billing/v20180709/examples.json +4 -4
  12. tccli/services/bpaas/v20181217/api.json +71 -46
  13. tccli/services/bpaas/v20181217/examples.json +1 -1
  14. tccli/services/cam/v20190116/api.json +99 -78
  15. tccli/services/cam/v20190116/examples.json +10 -10
  16. tccli/services/cbs/v20170312/api.json +1 -1
  17. tccli/services/cdwch/v20200915/api.json +1 -1
  18. tccli/services/cdwch/v20200915/examples.json +1 -1
  19. tccli/services/clb/v20180317/examples.json +1 -1
  20. tccli/services/cloudhsm/v20191112/api.json +324 -320
  21. tccli/services/cloudhsm/v20191112/examples.json +16 -16
  22. tccli/services/cls/v20201016/api.json +2 -2
  23. tccli/services/config/config_client.py +106 -0
  24. tccli/services/config/v20220802/api.json +364 -0
  25. tccli/services/config/v20220802/examples.json +16 -0
  26. tccli/services/cvm/v20170312/api.json +33 -11
  27. tccli/services/cwp/v20180228/api.json +1 -1
  28. tccli/services/cynosdb/v20190107/api.json +4 -4
  29. tccli/services/ess/v20201111/api.json +2 -2
  30. tccli/services/ess/v20201111/examples.json +2 -2
  31. tccli/services/essbasic/v20210526/api.json +2 -2
  32. tccli/services/essbasic/v20210526/examples.json +2 -2
  33. tccli/services/gwlb/v20240906/api.json +1 -1
  34. tccli/services/hunyuan/v20230901/api.json +2 -2
  35. tccli/services/iotexplorer/v20190423/api.json +11 -11
  36. tccli/services/ivld/v20210903/api.json +3 -3
  37. tccli/services/lcic/lcic_client.py +110 -4
  38. tccli/services/lcic/v20220817/api.json +297 -2
  39. tccli/services/lcic/v20220817/examples.json +16 -0
  40. tccli/services/live/live_client.py +460 -36
  41. tccli/services/live/v20180801/api.json +594 -4
  42. tccli/services/live/v20180801/examples.json +64 -0
  43. tccli/services/lke/v20231130/api.json +1 -1
  44. tccli/services/mps/v20190612/api.json +1 -1
  45. tccli/services/mrs/v20200910/api.json +4217 -4211
  46. tccli/services/mrs/v20200910/examples.json +14 -14
  47. tccli/services/ocr/ocr_client.py +310 -734
  48. tccli/services/ocr/v20181119/api.json +133 -1344
  49. tccli/services/ocr/v20181119/examples.json +0 -64
  50. tccli/services/organization/v20181225/api.json +43 -43
  51. tccli/services/organization/v20181225/examples.json +2 -2
  52. tccli/services/organization/v20210331/api.json +516 -508
  53. tccli/services/organization/v20210331/examples.json +26 -26
  54. tccli/services/teo/teo_client.py +159 -0
  55. tccli/services/teo/v20220901/api.json +199 -0
  56. tccli/services/teo/v20220901/examples.json +36 -0
  57. tccli/services/trtc/trtc_client.py +126 -20
  58. tccli/services/trtc/v20190722/api.json +138 -14
  59. tccli/services/trtc/v20190722/examples.json +16 -0
  60. tccli/services/vpc/v20170312/api.json +1 -1
  61. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/METADATA +2 -2
  62. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/RECORD +65 -65
  63. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/WHEEL +0 -0
  64. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/entry_points.txt +0 -0
  65. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/license_files/LICENSE +0 -0
@@ -381,7 +381,7 @@ def doModifyLiveSnapshotTemplate(args, parsed_globals):
381
381
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
382
 
383
383
 
384
- def doDescribeRecordTask(args, parsed_globals):
384
+ def doModifyLiveRecordTemplate(args, parsed_globals):
385
385
  g_param = parse_global_arg(parsed_globals)
386
386
 
387
387
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -410,11 +410,63 @@ def doDescribeRecordTask(args, parsed_globals):
410
410
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
411
411
  client._sdkVersion += ("_CLI_" + __version__)
412
412
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
413
- model = models.DescribeRecordTaskRequest()
413
+ model = models.ModifyLiveRecordTemplateRequest()
414
414
  model.from_json_string(json.dumps(args))
415
415
  start_time = time.time()
416
416
  while True:
417
- rsp = client.DescribeRecordTask(model)
417
+ rsp = client.ModifyLiveRecordTemplate(model)
418
+ result = rsp.to_json_string()
419
+ try:
420
+ json_obj = json.loads(result)
421
+ except TypeError as e:
422
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
423
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
424
+ break
425
+ cur_time = time.time()
426
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
427
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
428
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
429
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
430
+ else:
431
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
432
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
433
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
+
435
+
436
+ def doStopCasterPvw(args, parsed_globals):
437
+ g_param = parse_global_arg(parsed_globals)
438
+
439
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
440
+ cred = credential.CVMRoleCredential()
441
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
442
+ cred = credential.STSAssumeRoleCredential(
443
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
444
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
445
+ )
446
+ 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):
447
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
448
+ else:
449
+ cred = credential.Credential(
450
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
451
+ )
452
+ http_profile = HttpProfile(
453
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
454
+ reqMethod="POST",
455
+ endpoint=g_param[OptionsDefine.Endpoint],
456
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
457
+ )
458
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
459
+ if g_param[OptionsDefine.Language]:
460
+ profile.language = g_param[OptionsDefine.Language]
461
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
462
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
463
+ client._sdkVersion += ("_CLI_" + __version__)
464
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
+ model = models.StopCasterPvwRequest()
466
+ model.from_json_string(json.dumps(args))
467
+ start_time = time.time()
468
+ while True:
469
+ rsp = client.StopCasterPvw(model)
418
470
  result = rsp.to_json_string()
419
471
  try:
420
472
  json_obj = json.loads(result)
@@ -1577,7 +1629,7 @@ def doAuthenticateDomainOwner(args, parsed_globals):
1577
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1578
1630
 
1579
1631
 
1580
- def doModifyLiveStreamMonitor(args, parsed_globals):
1632
+ def doStopLiveStreamMonitor(args, parsed_globals):
1581
1633
  g_param = parse_global_arg(parsed_globals)
1582
1634
 
1583
1635
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1606,11 +1658,11 @@ def doModifyLiveStreamMonitor(args, parsed_globals):
1606
1658
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
1607
1659
  client._sdkVersion += ("_CLI_" + __version__)
1608
1660
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1609
- model = models.ModifyLiveStreamMonitorRequest()
1661
+ model = models.StopLiveStreamMonitorRequest()
1610
1662
  model.from_json_string(json.dumps(args))
1611
1663
  start_time = time.time()
1612
1664
  while True:
1613
- rsp = client.ModifyLiveStreamMonitor(model)
1665
+ rsp = client.StopLiveStreamMonitor(model)
1614
1666
  result = rsp.to_json_string()
1615
1667
  try:
1616
1668
  json_obj = json.loads(result)
@@ -1733,7 +1785,7 @@ def doDescribeVisitTopSumInfoList(args, parsed_globals):
1733
1785
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
1786
 
1735
1787
 
1736
- def doModifyLiveRecordTemplate(args, parsed_globals):
1788
+ def doDescribeRecordTask(args, parsed_globals):
1737
1789
  g_param = parse_global_arg(parsed_globals)
1738
1790
 
1739
1791
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1762,11 +1814,11 @@ def doModifyLiveRecordTemplate(args, parsed_globals):
1762
1814
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
1763
1815
  client._sdkVersion += ("_CLI_" + __version__)
1764
1816
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
- model = models.ModifyLiveRecordTemplateRequest()
1817
+ model = models.DescribeRecordTaskRequest()
1766
1818
  model.from_json_string(json.dumps(args))
1767
1819
  start_time = time.time()
1768
1820
  while True:
1769
- rsp = client.ModifyLiveRecordTemplate(model)
1821
+ rsp = client.DescribeRecordTask(model)
1770
1822
  result = rsp.to_json_string()
1771
1823
  try:
1772
1824
  json_obj = json.loads(result)
@@ -2045,7 +2097,7 @@ def doDescribeLiveTranscodeRules(args, parsed_globals):
2045
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
2098
 
2047
2099
 
2048
- def doStopCasterPvw(args, parsed_globals):
2100
+ def doDescribeCasterMarkWordInfos(args, parsed_globals):
2049
2101
  g_param = parse_global_arg(parsed_globals)
2050
2102
 
2051
2103
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2074,11 +2126,11 @@ def doStopCasterPvw(args, parsed_globals):
2074
2126
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
2075
2127
  client._sdkVersion += ("_CLI_" + __version__)
2076
2128
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2077
- model = models.StopCasterPvwRequest()
2129
+ model = models.DescribeCasterMarkWordInfosRequest()
2078
2130
  model.from_json_string(json.dumps(args))
2079
2131
  start_time = time.time()
2080
2132
  while True:
2081
- rsp = client.StopCasterPvw(model)
2133
+ rsp = client.DescribeCasterMarkWordInfos(model)
2082
2134
  result = rsp.to_json_string()
2083
2135
  try:
2084
2136
  json_obj = json.loads(result)
@@ -2565,6 +2617,58 @@ def doDeleteLiveCallbackTemplate(args, parsed_globals):
2565
2617
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2566
2618
 
2567
2619
 
2620
+ def doModifyCasterMarkPicInfo(args, parsed_globals):
2621
+ g_param = parse_global_arg(parsed_globals)
2622
+
2623
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2624
+ cred = credential.CVMRoleCredential()
2625
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2626
+ cred = credential.STSAssumeRoleCredential(
2627
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2628
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2629
+ )
2630
+ 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):
2631
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2632
+ else:
2633
+ cred = credential.Credential(
2634
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2635
+ )
2636
+ http_profile = HttpProfile(
2637
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2638
+ reqMethod="POST",
2639
+ endpoint=g_param[OptionsDefine.Endpoint],
2640
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2641
+ )
2642
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2643
+ if g_param[OptionsDefine.Language]:
2644
+ profile.language = g_param[OptionsDefine.Language]
2645
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2646
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
2647
+ client._sdkVersion += ("_CLI_" + __version__)
2648
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2649
+ model = models.ModifyCasterMarkPicInfoRequest()
2650
+ model.from_json_string(json.dumps(args))
2651
+ start_time = time.time()
2652
+ while True:
2653
+ rsp = client.ModifyCasterMarkPicInfo(model)
2654
+ result = rsp.to_json_string()
2655
+ try:
2656
+ json_obj = json.loads(result)
2657
+ except TypeError as e:
2658
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2659
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2660
+ break
2661
+ cur_time = time.time()
2662
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2663
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2664
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2665
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2666
+ else:
2667
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2668
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2669
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
+
2671
+
2568
2672
  def doDescribeCasterPlayUrl(args, parsed_globals):
2569
2673
  g_param = parse_global_arg(parsed_globals)
2570
2674
 
@@ -2929,6 +3033,58 @@ def doStopScreenshotTask(args, parsed_globals):
2929
3033
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
3034
 
2931
3035
 
3036
+ def doAddCasterMarkWordInfo(args, parsed_globals):
3037
+ g_param = parse_global_arg(parsed_globals)
3038
+
3039
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3040
+ cred = credential.CVMRoleCredential()
3041
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3042
+ cred = credential.STSAssumeRoleCredential(
3043
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3044
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3045
+ )
3046
+ 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):
3047
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3048
+ else:
3049
+ cred = credential.Credential(
3050
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3051
+ )
3052
+ http_profile = HttpProfile(
3053
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3054
+ reqMethod="POST",
3055
+ endpoint=g_param[OptionsDefine.Endpoint],
3056
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3057
+ )
3058
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3059
+ if g_param[OptionsDefine.Language]:
3060
+ profile.language = g_param[OptionsDefine.Language]
3061
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3062
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
3063
+ client._sdkVersion += ("_CLI_" + __version__)
3064
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3065
+ model = models.AddCasterMarkWordInfoRequest()
3066
+ model.from_json_string(json.dumps(args))
3067
+ start_time = time.time()
3068
+ while True:
3069
+ rsp = client.AddCasterMarkWordInfo(model)
3070
+ result = rsp.to_json_string()
3071
+ try:
3072
+ json_obj = json.loads(result)
3073
+ except TypeError as e:
3074
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3075
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3076
+ break
3077
+ cur_time = time.time()
3078
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3079
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3080
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3081
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3082
+ else:
3083
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3084
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3085
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3086
+
3087
+
2932
3088
  def doDescribeMonitorReport(args, parsed_globals):
2933
3089
  g_param = parse_global_arg(parsed_globals)
2934
3090
 
@@ -4073,7 +4229,7 @@ def doDescribeDeliverLogDownList(args, parsed_globals):
4073
4229
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4074
4230
 
4075
4231
 
4076
- def doDescribeLiveDomains(args, parsed_globals):
4232
+ def doCreateCasterPgm(args, parsed_globals):
4077
4233
  g_param = parse_global_arg(parsed_globals)
4078
4234
 
4079
4235
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4102,11 +4258,11 @@ def doDescribeLiveDomains(args, parsed_globals):
4102
4258
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
4103
4259
  client._sdkVersion += ("_CLI_" + __version__)
4104
4260
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4105
- model = models.DescribeLiveDomainsRequest()
4261
+ model = models.CreateCasterPgmRequest()
4106
4262
  model.from_json_string(json.dumps(args))
4107
4263
  start_time = time.time()
4108
4264
  while True:
4109
- rsp = client.DescribeLiveDomains(model)
4265
+ rsp = client.CreateCasterPgm(model)
4110
4266
  result = rsp.to_json_string()
4111
4267
  try:
4112
4268
  json_obj = json.loads(result)
@@ -4229,7 +4385,7 @@ def doCreateLiveCallbackTemplate(args, parsed_globals):
4229
4385
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4230
4386
 
4231
4387
 
4232
- def doCreateCasterPgm(args, parsed_globals):
4388
+ def doDescribeLiveDomains(args, parsed_globals):
4233
4389
  g_param = parse_global_arg(parsed_globals)
4234
4390
 
4235
4391
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4258,11 +4414,11 @@ def doCreateCasterPgm(args, parsed_globals):
4258
4414
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
4259
4415
  client._sdkVersion += ("_CLI_" + __version__)
4260
4416
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4261
- model = models.CreateCasterPgmRequest()
4417
+ model = models.DescribeLiveDomainsRequest()
4262
4418
  model.from_json_string(json.dumps(args))
4263
4419
  start_time = time.time()
4264
4420
  while True:
4265
- rsp = client.CreateCasterPgm(model)
4421
+ rsp = client.DescribeLiveDomains(model)
4266
4422
  result = rsp.to_json_string()
4267
4423
  try:
4268
4424
  json_obj = json.loads(result)
@@ -4437,6 +4593,58 @@ def doResumeLiveStream(args, parsed_globals):
4437
4593
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4438
4594
 
4439
4595
 
4596
+ def doDescribeCasterMarkPicInfos(args, parsed_globals):
4597
+ g_param = parse_global_arg(parsed_globals)
4598
+
4599
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4600
+ cred = credential.CVMRoleCredential()
4601
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4602
+ cred = credential.STSAssumeRoleCredential(
4603
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4604
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4605
+ )
4606
+ 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):
4607
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4608
+ else:
4609
+ cred = credential.Credential(
4610
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4611
+ )
4612
+ http_profile = HttpProfile(
4613
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4614
+ reqMethod="POST",
4615
+ endpoint=g_param[OptionsDefine.Endpoint],
4616
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4617
+ )
4618
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4619
+ if g_param[OptionsDefine.Language]:
4620
+ profile.language = g_param[OptionsDefine.Language]
4621
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4622
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
4623
+ client._sdkVersion += ("_CLI_" + __version__)
4624
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4625
+ model = models.DescribeCasterMarkPicInfosRequest()
4626
+ model.from_json_string(json.dumps(args))
4627
+ start_time = time.time()
4628
+ while True:
4629
+ rsp = client.DescribeCasterMarkPicInfos(model)
4630
+ result = rsp.to_json_string()
4631
+ try:
4632
+ json_obj = json.loads(result)
4633
+ except TypeError as e:
4634
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4635
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4636
+ break
4637
+ cur_time = time.time()
4638
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4639
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4640
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4641
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4642
+ else:
4643
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4644
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4645
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4646
+
4647
+
4440
4648
  def doModifyLivePullStreamTask(args, parsed_globals):
4441
4649
  g_param = parse_global_arg(parsed_globals)
4442
4650
 
@@ -4593,6 +4801,58 @@ def doModifyLiveCallbackTemplate(args, parsed_globals):
4593
4801
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4594
4802
 
4595
4803
 
4804
+ def doAddCasterMarkPicInfo(args, parsed_globals):
4805
+ g_param = parse_global_arg(parsed_globals)
4806
+
4807
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4808
+ cred = credential.CVMRoleCredential()
4809
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4810
+ cred = credential.STSAssumeRoleCredential(
4811
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4812
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4813
+ )
4814
+ 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):
4815
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4816
+ else:
4817
+ cred = credential.Credential(
4818
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4819
+ )
4820
+ http_profile = HttpProfile(
4821
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4822
+ reqMethod="POST",
4823
+ endpoint=g_param[OptionsDefine.Endpoint],
4824
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4825
+ )
4826
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4827
+ if g_param[OptionsDefine.Language]:
4828
+ profile.language = g_param[OptionsDefine.Language]
4829
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4830
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
4831
+ client._sdkVersion += ("_CLI_" + __version__)
4832
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4833
+ model = models.AddCasterMarkPicInfoRequest()
4834
+ model.from_json_string(json.dumps(args))
4835
+ start_time = time.time()
4836
+ while True:
4837
+ rsp = client.AddCasterMarkPicInfo(model)
4838
+ result = rsp.to_json_string()
4839
+ try:
4840
+ json_obj = json.loads(result)
4841
+ except TypeError as e:
4842
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4843
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4844
+ break
4845
+ cur_time = time.time()
4846
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4847
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4848
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4849
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4850
+ else:
4851
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4852
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4853
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4854
+
4855
+
4596
4856
  def doDeleteLiveTimeShiftTemplate(args, parsed_globals):
4597
4857
  g_param = parse_global_arg(parsed_globals)
4598
4858
 
@@ -4749,7 +5009,7 @@ def doDescribeStreamPlayInfoList(args, parsed_globals):
4749
5009
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4750
5010
 
4751
5011
 
4752
- def doDescribeCasterUserStatus(args, parsed_globals):
5012
+ def doCreateCaster(args, parsed_globals):
4753
5013
  g_param = parse_global_arg(parsed_globals)
4754
5014
 
4755
5015
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4778,11 +5038,11 @@ def doDescribeCasterUserStatus(args, parsed_globals):
4778
5038
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
4779
5039
  client._sdkVersion += ("_CLI_" + __version__)
4780
5040
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4781
- model = models.DescribeCasterUserStatusRequest()
5041
+ model = models.CreateCasterRequest()
4782
5042
  model.from_json_string(json.dumps(args))
4783
5043
  start_time = time.time()
4784
5044
  while True:
4785
- rsp = client.DescribeCasterUserStatus(model)
5045
+ rsp = client.CreateCaster(model)
4786
5046
  result = rsp.to_json_string()
4787
5047
  try:
4788
5048
  json_obj = json.loads(result)
@@ -5321,6 +5581,58 @@ def doModifyLivePlayAuthKey(args, parsed_globals):
5321
5581
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5322
5582
 
5323
5583
 
5584
+ def doModifyCasterMarkWordInfo(args, parsed_globals):
5585
+ g_param = parse_global_arg(parsed_globals)
5586
+
5587
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5588
+ cred = credential.CVMRoleCredential()
5589
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5590
+ cred = credential.STSAssumeRoleCredential(
5591
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5592
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5593
+ )
5594
+ 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):
5595
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5596
+ else:
5597
+ cred = credential.Credential(
5598
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5599
+ )
5600
+ http_profile = HttpProfile(
5601
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5602
+ reqMethod="POST",
5603
+ endpoint=g_param[OptionsDefine.Endpoint],
5604
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5605
+ )
5606
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5607
+ if g_param[OptionsDefine.Language]:
5608
+ profile.language = g_param[OptionsDefine.Language]
5609
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5610
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
5611
+ client._sdkVersion += ("_CLI_" + __version__)
5612
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5613
+ model = models.ModifyCasterMarkWordInfoRequest()
5614
+ model.from_json_string(json.dumps(args))
5615
+ start_time = time.time()
5616
+ while True:
5617
+ rsp = client.ModifyCasterMarkWordInfo(model)
5618
+ result = rsp.to_json_string()
5619
+ try:
5620
+ json_obj = json.loads(result)
5621
+ except TypeError as e:
5622
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5623
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5624
+ break
5625
+ cur_time = time.time()
5626
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5627
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5628
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5629
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5630
+ else:
5631
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5632
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5633
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5634
+
5635
+
5324
5636
  def doDeleteCaster(args, parsed_globals):
5325
5637
  g_param = parse_global_arg(parsed_globals)
5326
5638
 
@@ -8597,7 +8909,7 @@ def doDescribeCasterDisplayInfo(args, parsed_globals):
8597
8909
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8598
8910
 
8599
8911
 
8600
- def doStopLiveStreamMonitor(args, parsed_globals):
8912
+ def doModifyLiveStreamMonitor(args, parsed_globals):
8601
8913
  g_param = parse_global_arg(parsed_globals)
8602
8914
 
8603
8915
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -8626,11 +8938,11 @@ def doStopLiveStreamMonitor(args, parsed_globals):
8626
8938
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
8627
8939
  client._sdkVersion += ("_CLI_" + __version__)
8628
8940
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
8629
- model = models.StopLiveStreamMonitorRequest()
8941
+ model = models.ModifyLiveStreamMonitorRequest()
8630
8942
  model.from_json_string(json.dumps(args))
8631
8943
  start_time = time.time()
8632
8944
  while True:
8633
- rsp = client.StopLiveStreamMonitor(model)
8945
+ rsp = client.ModifyLiveStreamMonitor(model)
8634
8946
  result = rsp.to_json_string()
8635
8947
  try:
8636
8948
  json_obj = json.loads(result)
@@ -8649,7 +8961,7 @@ def doStopLiveStreamMonitor(args, parsed_globals):
8649
8961
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8650
8962
 
8651
8963
 
8652
- def doCreateCaster(args, parsed_globals):
8964
+ def doDescribeCasterUserStatus(args, parsed_globals):
8653
8965
  g_param = parse_global_arg(parsed_globals)
8654
8966
 
8655
8967
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -8678,11 +8990,11 @@ def doCreateCaster(args, parsed_globals):
8678
8990
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
8679
8991
  client._sdkVersion += ("_CLI_" + __version__)
8680
8992
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
8681
- model = models.CreateCasterRequest()
8993
+ model = models.DescribeCasterUserStatusRequest()
8682
8994
  model.from_json_string(json.dumps(args))
8683
8995
  start_time = time.time()
8684
8996
  while True:
8685
- rsp = client.CreateCaster(model)
8997
+ rsp = client.DescribeCasterUserStatus(model)
8686
8998
  result = rsp.to_json_string()
8687
8999
  try:
8688
9000
  json_obj = json.loads(result)
@@ -8961,6 +9273,110 @@ def doModifyCasterInputInfo(args, parsed_globals):
8961
9273
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8962
9274
 
8963
9275
 
9276
+ def doDeleteCasterMarkPicInfo(args, parsed_globals):
9277
+ g_param = parse_global_arg(parsed_globals)
9278
+
9279
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
9280
+ cred = credential.CVMRoleCredential()
9281
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
9282
+ cred = credential.STSAssumeRoleCredential(
9283
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
9284
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
9285
+ )
9286
+ 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):
9287
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
9288
+ else:
9289
+ cred = credential.Credential(
9290
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
9291
+ )
9292
+ http_profile = HttpProfile(
9293
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
9294
+ reqMethod="POST",
9295
+ endpoint=g_param[OptionsDefine.Endpoint],
9296
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
9297
+ )
9298
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9299
+ if g_param[OptionsDefine.Language]:
9300
+ profile.language = g_param[OptionsDefine.Language]
9301
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
9302
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
9303
+ client._sdkVersion += ("_CLI_" + __version__)
9304
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
9305
+ model = models.DeleteCasterMarkPicInfoRequest()
9306
+ model.from_json_string(json.dumps(args))
9307
+ start_time = time.time()
9308
+ while True:
9309
+ rsp = client.DeleteCasterMarkPicInfo(model)
9310
+ result = rsp.to_json_string()
9311
+ try:
9312
+ json_obj = json.loads(result)
9313
+ except TypeError as e:
9314
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
9315
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
9316
+ break
9317
+ cur_time = time.time()
9318
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
9319
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
9320
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
9321
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
9322
+ else:
9323
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
9324
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
9325
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9326
+
9327
+
9328
+ def doDeleteCasterMarkWordInfo(args, parsed_globals):
9329
+ g_param = parse_global_arg(parsed_globals)
9330
+
9331
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
9332
+ cred = credential.CVMRoleCredential()
9333
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
9334
+ cred = credential.STSAssumeRoleCredential(
9335
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
9336
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
9337
+ )
9338
+ 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):
9339
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
9340
+ else:
9341
+ cred = credential.Credential(
9342
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
9343
+ )
9344
+ http_profile = HttpProfile(
9345
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
9346
+ reqMethod="POST",
9347
+ endpoint=g_param[OptionsDefine.Endpoint],
9348
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
9349
+ )
9350
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9351
+ if g_param[OptionsDefine.Language]:
9352
+ profile.language = g_param[OptionsDefine.Language]
9353
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
9354
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
9355
+ client._sdkVersion += ("_CLI_" + __version__)
9356
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
9357
+ model = models.DeleteCasterMarkWordInfoRequest()
9358
+ model.from_json_string(json.dumps(args))
9359
+ start_time = time.time()
9360
+ while True:
9361
+ rsp = client.DeleteCasterMarkWordInfo(model)
9362
+ result = rsp.to_json_string()
9363
+ try:
9364
+ json_obj = json.loads(result)
9365
+ except TypeError as e:
9366
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
9367
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
9368
+ break
9369
+ cur_time = time.time()
9370
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
9371
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
9372
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
9373
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
9374
+ else:
9375
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
9376
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
9377
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9378
+
9379
+
8964
9380
  def doDescribeBackupStreamList(args, parsed_globals):
8965
9381
  g_param = parse_global_arg(parsed_globals)
8966
9382
 
@@ -9707,7 +10123,8 @@ ACTION_MAP = {
9707
10123
  "CreateLiveRecord": doCreateLiveRecord,
9708
10124
  "UpdateLiveWatermark": doUpdateLiveWatermark,
9709
10125
  "ModifyLiveSnapshotTemplate": doModifyLiveSnapshotTemplate,
9710
- "DescribeRecordTask": doDescribeRecordTask,
10126
+ "ModifyLiveRecordTemplate": doModifyLiveRecordTemplate,
10127
+ "StopCasterPvw": doStopCasterPvw,
9711
10128
  "CreateLiveWatermarkRule": doCreateLiveWatermarkRule,
9712
10129
  "DescribeLiveStreamEventList": doDescribeLiveStreamEventList,
9713
10130
  "DescribePullStreamConfigs": doDescribePullStreamConfigs,
@@ -9730,16 +10147,16 @@ ACTION_MAP = {
9730
10147
  "CreateScreenshotTask": doCreateScreenshotTask,
9731
10148
  "DescribeLiveRecordTemplates": doDescribeLiveRecordTemplates,
9732
10149
  "AuthenticateDomainOwner": doAuthenticateDomainOwner,
9733
- "ModifyLiveStreamMonitor": doModifyLiveStreamMonitor,
10150
+ "StopLiveStreamMonitor": doStopLiveStreamMonitor,
9734
10151
  "DescribeCasterInputInfos": doDescribeCasterInputInfos,
9735
10152
  "DescribeVisitTopSumInfoList": doDescribeVisitTopSumInfoList,
9736
- "ModifyLiveRecordTemplate": doModifyLiveRecordTemplate,
10153
+ "DescribeRecordTask": doDescribeRecordTask,
9737
10154
  "AddCasterLayoutInfo": doAddCasterLayoutInfo,
9738
10155
  "DescribeLiveDomainCert": doDescribeLiveDomainCert,
9739
10156
  "AddLiveWatermark": doAddLiveWatermark,
9740
10157
  "DescribeAreaBillBandwidthAndFluxList": doDescribeAreaBillBandwidthAndFluxList,
9741
10158
  "DescribeLiveTranscodeRules": doDescribeLiveTranscodeRules,
9742
- "StopCasterPvw": doStopCasterPvw,
10159
+ "DescribeCasterMarkWordInfos": doDescribeCasterMarkWordInfos,
9743
10160
  "DeleteCasterLayoutInfo": doDeleteCasterLayoutInfo,
9744
10161
  "DeleteLiveWatermarkRule": doDeleteLiveWatermarkRule,
9745
10162
  "DescribeDeliverBandwidthList": doDescribeDeliverBandwidthList,
@@ -9749,6 +10166,7 @@ ACTION_MAP = {
9749
10166
  "DescribeLiveStreamOnlineList": doDescribeLiveStreamOnlineList,
9750
10167
  "EnableOptimalSwitching": doEnableOptimalSwitching,
9751
10168
  "DeleteLiveCallbackTemplate": doDeleteLiveCallbackTemplate,
10169
+ "ModifyCasterMarkPicInfo": doModifyCasterMarkPicInfo,
9752
10170
  "DescribeCasterPlayUrl": doDescribeCasterPlayUrl,
9753
10171
  "DescribeLivePushAuthKey": doDescribeLivePushAuthKey,
9754
10172
  "DeletePullStreamConfig": doDeletePullStreamConfig,
@@ -9756,6 +10174,7 @@ ACTION_MAP = {
9756
10174
  "DescribeLiveRecordTemplate": doDescribeLiveRecordTemplate,
9757
10175
  "DescribeLivePadTemplate": doDescribeLivePadTemplate,
9758
10176
  "StopScreenshotTask": doStopScreenshotTask,
10177
+ "AddCasterMarkWordInfo": doAddCasterMarkWordInfo,
9759
10178
  "DescribeMonitorReport": doDescribeMonitorReport,
9760
10179
  "CreateCommonMixStream": doCreateCommonMixStream,
9761
10180
  "DescribeLiveStreamMonitor": doDescribeLiveStreamMonitor,
@@ -9778,20 +10197,22 @@ ACTION_MAP = {
9778
10197
  "DescribeLiveCert": doDescribeLiveCert,
9779
10198
  "ModifyLiveDomainCertBindings": doModifyLiveDomainCertBindings,
9780
10199
  "DescribeDeliverLogDownList": doDescribeDeliverLogDownList,
9781
- "DescribeLiveDomains": doDescribeLiveDomains,
10200
+ "CreateCasterPgm": doCreateCasterPgm,
9782
10201
  "DescribePullTransformPushInfo": doDescribePullTransformPushInfo,
9783
10202
  "CreateLiveCallbackTemplate": doCreateLiveCallbackTemplate,
9784
- "CreateCasterPgm": doCreateCasterPgm,
10203
+ "DescribeLiveDomains": doDescribeLiveDomains,
9785
10204
  "ModifyCasterOutputInfo": doModifyCasterOutputInfo,
9786
10205
  "CreateCasterPvw": doCreateCasterPvw,
9787
10206
  "ResumeLiveStream": doResumeLiveStream,
10207
+ "DescribeCasterMarkPicInfos": doDescribeCasterMarkPicInfos,
9788
10208
  "ModifyLivePullStreamTask": doModifyLivePullStreamTask,
9789
10209
  "DeleteLiveDomain": doDeleteLiveDomain,
9790
10210
  "ModifyLiveCallbackTemplate": doModifyLiveCallbackTemplate,
10211
+ "AddCasterMarkPicInfo": doAddCasterMarkPicInfo,
9791
10212
  "DeleteLiveTimeShiftTemplate": doDeleteLiveTimeShiftTemplate,
9792
10213
  "DescribeGroupProIspPlayInfoList": doDescribeGroupProIspPlayInfoList,
9793
10214
  "DescribeStreamPlayInfoList": doDescribeStreamPlayInfoList,
9794
- "DescribeCasterUserStatus": doDescribeCasterUserStatus,
10215
+ "CreateCaster": doCreateCaster,
9795
10216
  "DescribeCasterLayoutInfos": doDescribeCasterLayoutInfos,
9796
10217
  "DescribeLivePullStreamTaskStatus": doDescribeLivePullStreamTaskStatus,
9797
10218
  "DescribeLiveSnapshotTemplate": doDescribeLiveSnapshotTemplate,
@@ -9802,6 +10223,7 @@ ACTION_MAP = {
9802
10223
  "DescribeCasterOutputInfos": doDescribeCasterOutputInfos,
9803
10224
  "StopLiveRecord": doStopLiveRecord,
9804
10225
  "ModifyLivePlayAuthKey": doModifyLivePlayAuthKey,
10226
+ "ModifyCasterMarkWordInfo": doModifyCasterMarkWordInfo,
9805
10227
  "DeleteCaster": doDeleteCaster,
9806
10228
  "DescribeLiveTranscodeTemplate": doDescribeLiveTranscodeTemplate,
9807
10229
  "DescribeScreenShotSheetNumList": doDescribeScreenShotSheetNumList,
@@ -9865,13 +10287,15 @@ ACTION_MAP = {
9865
10287
  "CreateCasterPgmFromPvw": doCreateCasterPgmFromPvw,
9866
10288
  "DescribeCasterTransitionTypes": doDescribeCasterTransitionTypes,
9867
10289
  "DescribeCasterDisplayInfo": doDescribeCasterDisplayInfo,
9868
- "StopLiveStreamMonitor": doStopLiveStreamMonitor,
9869
- "CreateCaster": doCreateCaster,
10290
+ "ModifyLiveStreamMonitor": doModifyLiveStreamMonitor,
10291
+ "DescribeCasterUserStatus": doDescribeCasterUserStatus,
9870
10292
  "DescribeLiveStreamState": doDescribeLiveStreamState,
9871
10293
  "ModifyLiveDomainReferer": doModifyLiveDomainReferer,
9872
10294
  "DeleteLiveRecordTemplate": doDeleteLiveRecordTemplate,
9873
10295
  "CopyCaster": doCopyCaster,
9874
10296
  "ModifyCasterInputInfo": doModifyCasterInputInfo,
10297
+ "DeleteCasterMarkPicInfo": doDeleteCasterMarkPicInfo,
10298
+ "DeleteCasterMarkWordInfo": doDeleteCasterMarkWordInfo,
9875
10299
  "DescribeBackupStreamList": doDescribeBackupStreamList,
9876
10300
  "ResumeDelayLiveStream": doResumeDelayLiveStream,
9877
10301
  "CreateRecordTask": doCreateRecordTask,