tccli 3.0.1251.1__py2.py3-none-any.whl → 3.0.1252.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 (36) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +12 -3
  3. tccli/services/bi/v20220105/api.json +6 -6
  4. tccli/services/cat/v20180409/api.json +25 -24
  5. tccli/services/cat/v20180409/examples.json +17 -17
  6. tccli/services/ccc/ccc_client.py +53 -0
  7. tccli/services/ccc/v20200210/api.json +89 -0
  8. tccli/services/ccc/v20200210/examples.json +8 -0
  9. tccli/services/cdb/v20170320/api.json +12 -0
  10. tccli/services/cdwdoris/v20211228/api.json +233 -193
  11. tccli/services/cdwdoris/v20211228/examples.json +6 -6
  12. tccli/services/cloudaudit/v20190319/api.json +2 -2
  13. tccli/services/cloudaudit/v20190319/examples.json +2 -2
  14. tccli/services/config/v20220802/api.json +20 -9
  15. tccli/services/config/v20220802/examples.json +1 -1
  16. tccli/services/ess/v20201111/api.json +94 -92
  17. tccli/services/ess/v20201111/examples.json +9 -9
  18. tccli/services/essbasic/v20210526/api.json +2 -2
  19. tccli/services/essbasic/v20210526/examples.json +6 -6
  20. tccli/services/lcic/v20220817/api.json +1 -1
  21. tccli/services/monitor/v20180724/api.json +68 -50
  22. tccli/services/monitor/v20180724/examples.json +21 -21
  23. tccli/services/mps/mps_client.py +379 -61
  24. tccli/services/mps/v20190612/api.json +495 -13
  25. tccli/services/mps/v20190612/examples.json +48 -0
  26. tccli/services/ssl/v20191205/api.json +3 -3
  27. tccli/services/ssl/v20191205/examples.json +1 -1
  28. tccli/services/trtc/v20190722/api.json +11 -0
  29. tccli/services/tse/v20201207/api.json +10 -0
  30. tccli/services/wedata/v20210820/api.json +382 -96
  31. tccli/services/wedata/v20210820/examples.json +1 -1
  32. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/METADATA +2 -2
  33. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/RECORD +36 -36
  34. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/WHEEL +0 -0
  35. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/entry_points.txt +0 -0
  36. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/license_files/LICENSE +0 -0
@@ -17,58 +17,6 @@ from tencentcloud.mps.v20190612 import models as models_v20190612
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
- def doCreateImageSpriteTemplate(args, parsed_globals):
21
- g_param = parse_global_arg(parsed_globals)
22
-
23
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
- cred = credential.CVMRoleCredential()
25
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
- cred = credential.STSAssumeRoleCredential(
27
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
- )
30
- 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):
31
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
- else:
33
- cred = credential.Credential(
34
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
- )
36
- http_profile = HttpProfile(
37
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
- reqMethod="POST",
39
- endpoint=g_param[OptionsDefine.Endpoint],
40
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
- )
42
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
- if g_param[OptionsDefine.Language]:
44
- profile.language = g_param[OptionsDefine.Language]
45
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
- client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
47
- client._sdkVersion += ("_CLI_" + __version__)
48
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.CreateImageSpriteTemplateRequest()
50
- model.from_json_string(json.dumps(args))
51
- start_time = time.time()
52
- while True:
53
- rsp = client.CreateImageSpriteTemplate(model)
54
- result = rsp.to_json_string()
55
- try:
56
- json_obj = json.loads(result)
57
- except TypeError as e:
58
- json_obj = json.loads(result.decode('utf-8')) # python3.3
59
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
- break
61
- cur_time = time.time()
62
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
- else:
67
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
-
71
-
72
20
  def doDeleteAnimatedGraphicsTemplate(args, parsed_globals):
73
21
  g_param = parse_global_arg(parsed_globals)
74
22
 
@@ -1785,6 +1733,58 @@ def doCreateContentReviewTemplate(args, parsed_globals):
1785
1733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
1734
 
1787
1735
 
1736
+ def doDescribeGroupAttachFlowsById(args, parsed_globals):
1737
+ g_param = parse_global_arg(parsed_globals)
1738
+
1739
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1740
+ cred = credential.CVMRoleCredential()
1741
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1742
+ cred = credential.STSAssumeRoleCredential(
1743
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1744
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1745
+ )
1746
+ 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):
1747
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1748
+ else:
1749
+ cred = credential.Credential(
1750
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1751
+ )
1752
+ http_profile = HttpProfile(
1753
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1754
+ reqMethod="POST",
1755
+ endpoint=g_param[OptionsDefine.Endpoint],
1756
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1757
+ )
1758
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1759
+ if g_param[OptionsDefine.Language]:
1760
+ profile.language = g_param[OptionsDefine.Language]
1761
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1762
+ client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
1763
+ client._sdkVersion += ("_CLI_" + __version__)
1764
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
+ model = models.DescribeGroupAttachFlowsByIdRequest()
1766
+ model.from_json_string(json.dumps(args))
1767
+ start_time = time.time()
1768
+ while True:
1769
+ rsp = client.DescribeGroupAttachFlowsById(model)
1770
+ result = rsp.to_json_string()
1771
+ try:
1772
+ json_obj = json.loads(result)
1773
+ except TypeError as e:
1774
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1775
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1776
+ break
1777
+ cur_time = time.time()
1778
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1779
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1780
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1781
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1782
+ else:
1783
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1784
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1785
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
+
1787
+
1788
1788
  def doCreateSampleSnapshotTemplate(args, parsed_globals):
1789
1789
  g_param = parse_global_arg(parsed_globals)
1790
1790
 
@@ -2409,6 +2409,110 @@ def doDescribeTranscodeTemplates(args, parsed_globals):
2409
2409
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2410
2410
 
2411
2411
 
2412
+ def doCreateWatermarkTemplate(args, parsed_globals):
2413
+ g_param = parse_global_arg(parsed_globals)
2414
+
2415
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2416
+ cred = credential.CVMRoleCredential()
2417
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2418
+ cred = credential.STSAssumeRoleCredential(
2419
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2420
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2421
+ )
2422
+ 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):
2423
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2424
+ else:
2425
+ cred = credential.Credential(
2426
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2427
+ )
2428
+ http_profile = HttpProfile(
2429
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2430
+ reqMethod="POST",
2431
+ endpoint=g_param[OptionsDefine.Endpoint],
2432
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2433
+ )
2434
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2435
+ if g_param[OptionsDefine.Language]:
2436
+ profile.language = g_param[OptionsDefine.Language]
2437
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2438
+ client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
2439
+ client._sdkVersion += ("_CLI_" + __version__)
2440
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2441
+ model = models.CreateWatermarkTemplateRequest()
2442
+ model.from_json_string(json.dumps(args))
2443
+ start_time = time.time()
2444
+ while True:
2445
+ rsp = client.CreateWatermarkTemplate(model)
2446
+ result = rsp.to_json_string()
2447
+ try:
2448
+ json_obj = json.loads(result)
2449
+ except TypeError as e:
2450
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2451
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2452
+ break
2453
+ cur_time = time.time()
2454
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2455
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2456
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2457
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2458
+ else:
2459
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2460
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2461
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2462
+
2463
+
2464
+ def doModifyStreamLinkSecurityGroup(args, parsed_globals):
2465
+ g_param = parse_global_arg(parsed_globals)
2466
+
2467
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2468
+ cred = credential.CVMRoleCredential()
2469
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2470
+ cred = credential.STSAssumeRoleCredential(
2471
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2472
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2473
+ )
2474
+ 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):
2475
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2476
+ else:
2477
+ cred = credential.Credential(
2478
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2479
+ )
2480
+ http_profile = HttpProfile(
2481
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2482
+ reqMethod="POST",
2483
+ endpoint=g_param[OptionsDefine.Endpoint],
2484
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2485
+ )
2486
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2487
+ if g_param[OptionsDefine.Language]:
2488
+ profile.language = g_param[OptionsDefine.Language]
2489
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2490
+ client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
2491
+ client._sdkVersion += ("_CLI_" + __version__)
2492
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2493
+ model = models.ModifyStreamLinkSecurityGroupRequest()
2494
+ model.from_json_string(json.dumps(args))
2495
+ start_time = time.time()
2496
+ while True:
2497
+ rsp = client.ModifyStreamLinkSecurityGroup(model)
2498
+ result = rsp.to_json_string()
2499
+ try:
2500
+ json_obj = json.loads(result)
2501
+ except TypeError as e:
2502
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2503
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2504
+ break
2505
+ cur_time = time.time()
2506
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2507
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2508
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2509
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2510
+ else:
2511
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2512
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2513
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2514
+
2515
+
2412
2516
  def doDeleteStreamLinkFlow(args, parsed_globals):
2413
2517
  g_param = parse_global_arg(parsed_globals)
2414
2518
 
@@ -2773,7 +2877,7 @@ def doModifyPersonSample(args, parsed_globals):
2773
2877
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
2878
 
2775
2879
 
2776
- def doDeleteContentReviewTemplate(args, parsed_globals):
2880
+ def doDescribeStreamLinkSecurityGroups(args, parsed_globals):
2777
2881
  g_param = parse_global_arg(parsed_globals)
2778
2882
 
2779
2883
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2802,11 +2906,63 @@ def doDeleteContentReviewTemplate(args, parsed_globals):
2802
2906
  client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
2803
2907
  client._sdkVersion += ("_CLI_" + __version__)
2804
2908
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2805
- model = models.DeleteContentReviewTemplateRequest()
2909
+ model = models.DescribeStreamLinkSecurityGroupsRequest()
2806
2910
  model.from_json_string(json.dumps(args))
2807
2911
  start_time = time.time()
2808
2912
  while True:
2809
- rsp = client.DeleteContentReviewTemplate(model)
2913
+ rsp = client.DescribeStreamLinkSecurityGroups(model)
2914
+ result = rsp.to_json_string()
2915
+ try:
2916
+ json_obj = json.loads(result)
2917
+ except TypeError as e:
2918
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2919
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2920
+ break
2921
+ cur_time = time.time()
2922
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2923
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2924
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2925
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2926
+ else:
2927
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2928
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2929
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
+
2931
+
2932
+ def doDeleteStreamLinkSecurityGroup(args, parsed_globals):
2933
+ g_param = parse_global_arg(parsed_globals)
2934
+
2935
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2936
+ cred = credential.CVMRoleCredential()
2937
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2938
+ cred = credential.STSAssumeRoleCredential(
2939
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2940
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2941
+ )
2942
+ 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):
2943
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2944
+ else:
2945
+ cred = credential.Credential(
2946
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2947
+ )
2948
+ http_profile = HttpProfile(
2949
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2950
+ reqMethod="POST",
2951
+ endpoint=g_param[OptionsDefine.Endpoint],
2952
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2953
+ )
2954
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2955
+ if g_param[OptionsDefine.Language]:
2956
+ profile.language = g_param[OptionsDefine.Language]
2957
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2958
+ client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
2959
+ client._sdkVersion += ("_CLI_" + __version__)
2960
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2961
+ model = models.DeleteStreamLinkSecurityGroupRequest()
2962
+ model.from_json_string(json.dumps(args))
2963
+ start_time = time.time()
2964
+ while True:
2965
+ rsp = client.DeleteStreamLinkSecurityGroup(model)
2810
2966
  result = rsp.to_json_string()
2811
2967
  try:
2812
2968
  json_obj = json.loads(result)
@@ -3605,7 +3761,7 @@ def doDescribeStreamLinkActivateState(args, parsed_globals):
3605
3761
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3606
3762
 
3607
3763
 
3608
- def doCreateWatermarkTemplate(args, parsed_globals):
3764
+ def doCreateImageSpriteTemplate(args, parsed_globals):
3609
3765
  g_param = parse_global_arg(parsed_globals)
3610
3766
 
3611
3767
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3634,11 +3790,11 @@ def doCreateWatermarkTemplate(args, parsed_globals):
3634
3790
  client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
3635
3791
  client._sdkVersion += ("_CLI_" + __version__)
3636
3792
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3637
- model = models.CreateWatermarkTemplateRequest()
3793
+ model = models.CreateImageSpriteTemplateRequest()
3638
3794
  model.from_json_string(json.dumps(args))
3639
3795
  start_time = time.time()
3640
3796
  while True:
3641
- rsp = client.CreateWatermarkTemplate(model)
3797
+ rsp = client.CreateImageSpriteTemplate(model)
3642
3798
  result = rsp.to_json_string()
3643
3799
  try:
3644
3800
  json_obj = json.loads(result)
@@ -5165,6 +5321,58 @@ def doDeleteLiveRecordTemplate(args, parsed_globals):
5165
5321
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5166
5322
 
5167
5323
 
5324
+ def doDeleteContentReviewTemplate(args, parsed_globals):
5325
+ g_param = parse_global_arg(parsed_globals)
5326
+
5327
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5328
+ cred = credential.CVMRoleCredential()
5329
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5330
+ cred = credential.STSAssumeRoleCredential(
5331
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5332
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5333
+ )
5334
+ 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):
5335
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5336
+ else:
5337
+ cred = credential.Credential(
5338
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5339
+ )
5340
+ http_profile = HttpProfile(
5341
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5342
+ reqMethod="POST",
5343
+ endpoint=g_param[OptionsDefine.Endpoint],
5344
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5345
+ )
5346
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5347
+ if g_param[OptionsDefine.Language]:
5348
+ profile.language = g_param[OptionsDefine.Language]
5349
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5350
+ client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
5351
+ client._sdkVersion += ("_CLI_" + __version__)
5352
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5353
+ model = models.DeleteContentReviewTemplateRequest()
5354
+ model.from_json_string(json.dumps(args))
5355
+ start_time = time.time()
5356
+ while True:
5357
+ rsp = client.DeleteContentReviewTemplate(model)
5358
+ result = rsp.to_json_string()
5359
+ try:
5360
+ json_obj = json.loads(result)
5361
+ except TypeError as e:
5362
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5363
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5364
+ break
5365
+ cur_time = time.time()
5366
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5367
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5368
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5369
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5370
+ else:
5371
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5372
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5373
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5374
+
5375
+
5168
5376
  def doDeleteSampleSnapshotTemplate(args, parsed_globals):
5169
5377
  g_param = parse_global_arg(parsed_globals)
5170
5378
 
@@ -5425,6 +5633,58 @@ def doDescribeQualityControlTemplates(args, parsed_globals):
5425
5633
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5426
5634
 
5427
5635
 
5636
+ def doCreateStreamLinkSecurityGroup(args, parsed_globals):
5637
+ g_param = parse_global_arg(parsed_globals)
5638
+
5639
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5640
+ cred = credential.CVMRoleCredential()
5641
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5642
+ cred = credential.STSAssumeRoleCredential(
5643
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5644
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5645
+ )
5646
+ 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):
5647
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5648
+ else:
5649
+ cred = credential.Credential(
5650
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5651
+ )
5652
+ http_profile = HttpProfile(
5653
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5654
+ reqMethod="POST",
5655
+ endpoint=g_param[OptionsDefine.Endpoint],
5656
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5657
+ )
5658
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5659
+ if g_param[OptionsDefine.Language]:
5660
+ profile.language = g_param[OptionsDefine.Language]
5661
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5662
+ client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
5663
+ client._sdkVersion += ("_CLI_" + __version__)
5664
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5665
+ model = models.CreateStreamLinkSecurityGroupRequest()
5666
+ model.from_json_string(json.dumps(args))
5667
+ start_time = time.time()
5668
+ while True:
5669
+ rsp = client.CreateStreamLinkSecurityGroup(model)
5670
+ result = rsp.to_json_string()
5671
+ try:
5672
+ json_obj = json.loads(result)
5673
+ except TypeError as e:
5674
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5675
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5676
+ break
5677
+ cur_time = time.time()
5678
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5679
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5680
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5681
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5682
+ else:
5683
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5684
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5685
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5686
+
5687
+
5428
5688
  def doDisableSchedule(args, parsed_globals):
5429
5689
  g_param = parse_global_arg(parsed_globals)
5430
5690
 
@@ -5529,6 +5789,58 @@ def doCreateStreamLinkInput(args, parsed_globals):
5529
5789
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5530
5790
 
5531
5791
 
5792
+ def doDisassociateSecurityGroup(args, parsed_globals):
5793
+ g_param = parse_global_arg(parsed_globals)
5794
+
5795
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5796
+ cred = credential.CVMRoleCredential()
5797
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5798
+ cred = credential.STSAssumeRoleCredential(
5799
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5800
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5801
+ )
5802
+ 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):
5803
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5804
+ else:
5805
+ cred = credential.Credential(
5806
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5807
+ )
5808
+ http_profile = HttpProfile(
5809
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5810
+ reqMethod="POST",
5811
+ endpoint=g_param[OptionsDefine.Endpoint],
5812
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5813
+ )
5814
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5815
+ if g_param[OptionsDefine.Language]:
5816
+ profile.language = g_param[OptionsDefine.Language]
5817
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5818
+ client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
5819
+ client._sdkVersion += ("_CLI_" + __version__)
5820
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5821
+ model = models.DisassociateSecurityGroupRequest()
5822
+ model.from_json_string(json.dumps(args))
5823
+ start_time = time.time()
5824
+ while True:
5825
+ rsp = client.DisassociateSecurityGroup(model)
5826
+ result = rsp.to_json_string()
5827
+ try:
5828
+ json_obj = json.loads(result)
5829
+ except TypeError as e:
5830
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5831
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5832
+ break
5833
+ cur_time = time.time()
5834
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5835
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5836
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5837
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5838
+ else:
5839
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5840
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5841
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5842
+
5843
+
5532
5844
  def doModifyContentReviewTemplate(args, parsed_globals):
5533
5845
  g_param = parse_global_arg(parsed_globals)
5534
5846
 
@@ -5904,7 +6216,6 @@ MODELS_MAP = {
5904
6216
  }
5905
6217
 
5906
6218
  ACTION_MAP = {
5907
- "CreateImageSpriteTemplate": doCreateImageSpriteTemplate,
5908
6219
  "DeleteAnimatedGraphicsTemplate": doDeleteAnimatedGraphicsTemplate,
5909
6220
  "DescribeStreamLinkFlowRealtimeStatus": doDescribeStreamLinkFlowRealtimeStatus,
5910
6221
  "CreateAnimatedGraphicsTemplate": doCreateAnimatedGraphicsTemplate,
@@ -5938,6 +6249,7 @@ ACTION_MAP = {
5938
6249
  "DescribeSnapshotByTimeOffsetTemplates": doDescribeSnapshotByTimeOffsetTemplates,
5939
6250
  "DeleteStreamLinkOutput": doDeleteStreamLinkOutput,
5940
6251
  "CreateContentReviewTemplate": doCreateContentReviewTemplate,
6252
+ "DescribeGroupAttachFlowsById": doDescribeGroupAttachFlowsById,
5941
6253
  "CreateSampleSnapshotTemplate": doCreateSampleSnapshotTemplate,
5942
6254
  "DeleteAIAnalysisTemplate": doDeleteAIAnalysisTemplate,
5943
6255
  "ModifySchedule": doModifySchedule,
@@ -5950,6 +6262,8 @@ ACTION_MAP = {
5950
6262
  "CreateQualityControlTemplate": doCreateQualityControlTemplate,
5951
6263
  "ModifyImageSpriteTemplate": doModifyImageSpriteTemplate,
5952
6264
  "DescribeTranscodeTemplates": doDescribeTranscodeTemplates,
6265
+ "CreateWatermarkTemplate": doCreateWatermarkTemplate,
6266
+ "ModifyStreamLinkSecurityGroup": doModifyStreamLinkSecurityGroup,
5953
6267
  "DeleteStreamLinkFlow": doDeleteStreamLinkFlow,
5954
6268
  "StartStreamLinkFlow": doStartStreamLinkFlow,
5955
6269
  "ProcessImage": doProcessImage,
@@ -5957,7 +6271,8 @@ ACTION_MAP = {
5957
6271
  "DescribeStreamLinkRegions": doDescribeStreamLinkRegions,
5958
6272
  "DescribeSchedules": doDescribeSchedules,
5959
6273
  "ModifyPersonSample": doModifyPersonSample,
5960
- "DeleteContentReviewTemplate": doDeleteContentReviewTemplate,
6274
+ "DescribeStreamLinkSecurityGroups": doDescribeStreamLinkSecurityGroups,
6275
+ "DeleteStreamLinkSecurityGroup": doDeleteStreamLinkSecurityGroup,
5961
6276
  "CreateAIAnalysisTemplate": doCreateAIAnalysisTemplate,
5962
6277
  "ModifyQualityControlTemplate": doModifyQualityControlTemplate,
5963
6278
  "StopStreamLinkFlow": doStopStreamLinkFlow,
@@ -5973,7 +6288,7 @@ ACTION_MAP = {
5973
6288
  "ModifyWatermarkTemplate": doModifyWatermarkTemplate,
5974
6289
  "DeleteWordSamples": doDeleteWordSamples,
5975
6290
  "DescribeStreamLinkActivateState": doDescribeStreamLinkActivateState,
5976
- "CreateWatermarkTemplate": doCreateWatermarkTemplate,
6291
+ "CreateImageSpriteTemplate": doCreateImageSpriteTemplate,
5977
6292
  "DescribePersonSamples": doDescribePersonSamples,
5978
6293
  "ParseNotification": doParseNotification,
5979
6294
  "DeleteAIRecognitionTemplate": doDeleteAIRecognitionTemplate,
@@ -6003,13 +6318,16 @@ ACTION_MAP = {
6003
6318
  "CreateVideoDatabaseEntryTask": doCreateVideoDatabaseEntryTask,
6004
6319
  "ProcessLiveStream": doProcessLiveStream,
6005
6320
  "DeleteLiveRecordTemplate": doDeleteLiveRecordTemplate,
6321
+ "DeleteContentReviewTemplate": doDeleteContentReviewTemplate,
6006
6322
  "DeleteSampleSnapshotTemplate": doDeleteSampleSnapshotTemplate,
6007
6323
  "DescribeStreamLinkFlowMediaStatistics": doDescribeStreamLinkFlowMediaStatistics,
6008
6324
  "CreateStreamLinkEvent": doCreateStreamLinkEvent,
6009
6325
  "CreatePersonSample": doCreatePersonSample,
6010
6326
  "DescribeQualityControlTemplates": doDescribeQualityControlTemplates,
6327
+ "CreateStreamLinkSecurityGroup": doCreateStreamLinkSecurityGroup,
6011
6328
  "DisableSchedule": doDisableSchedule,
6012
6329
  "CreateStreamLinkInput": doCreateStreamLinkInput,
6330
+ "DisassociateSecurityGroup": doDisassociateSecurityGroup,
6013
6331
  "ModifyContentReviewTemplate": doModifyContentReviewTemplate,
6014
6332
  "CreateAIRecognitionTemplate": doCreateAIRecognitionTemplate,
6015
6333
  "BatchStopStreamLinkFlow": doBatchStopStreamLinkFlow,