tccli 3.0.1337.1__py2.py3-none-any.whl → 3.0.1339.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/apm/v20210622/api.json +10 -0
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/ccc/v20200210/api.json +100 -1
- tccli/services/cdb/v20170320/api.json +37 -37
- tccli/services/cdb/v20170320/examples.json +7 -7
- tccli/services/cdn/v20180606/api.json +2 -2
- tccli/services/cdwdoris/v20211228/api.json +2 -2
- tccli/services/cfs/v20190719/api.json +15 -3
- tccli/services/cfw/v20190904/examples.json +12 -0
- tccli/services/ckafka/v20190819/api.json +19 -0
- tccli/services/cls/v20201016/api.json +2 -2
- tccli/services/csip/csip_client.py +791 -102
- tccli/services/csip/v20221121/api.json +6108 -3458
- tccli/services/csip/v20221121/examples.json +104 -0
- tccli/services/dts/v20211206/api.json +11 -0
- tccli/services/es/v20180416/api.json +55 -0
- tccli/services/es/v20250101/api.json +21 -0
- tccli/services/ess/ess_client.py +159 -0
- tccli/services/ess/v20201111/api.json +284 -4
- tccli/services/ess/v20201111/examples.json +28 -4
- tccli/services/essbasic/essbasic_client.py +171 -12
- tccli/services/essbasic/v20210526/api.json +256 -5
- tccli/services/essbasic/v20210526/examples.json +25 -1
- tccli/services/gwlb/v20240906/api.json +1 -1
- tccli/services/gwlb/v20240906/examples.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/ioa/v20220601/api.json +55 -0
- tccli/services/ioa/v20220601/examples.json +1 -1
- tccli/services/iotexplorer/iotexplorer_client.py +57 -4
- tccli/services/iotexplorer/v20190423/api.json +145 -19
- tccli/services/iotexplorer/v20190423/examples.json +8 -0
- tccli/services/live/live_client.py +208 -49
- tccli/services/live/v20180801/api.json +498 -73
- tccli/services/live/v20180801/examples.json +35 -11
- tccli/services/lkeap/lkeap_client.py +0 -53
- tccli/services/lkeap/v20240522/api.json +0 -90
- tccli/services/lkeap/v20240522/examples.json +0 -8
- tccli/services/ocr/v20181119/api.json +21 -1
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/ssl/ssl_client.py +212 -0
- tccli/services/ssl/v20191205/api.json +625 -10
- tccli/services/ssl/v20191205/examples.json +38 -0
- tccli/services/tcbr/v20220217/api.json +11 -0
- tccli/services/tdmq/v20200217/api.json +56 -47
- tccli/services/tdmq/v20200217/examples.json +8 -8
- tccli/services/trocket/trocket_client.py +104 -51
- tccli/services/trocket/v20230308/api.json +238 -61
- tccli/services/trocket/v20230308/examples.json +20 -12
- tccli/services/trtc/v20190722/api.json +3 -3
- tccli/services/tse/v20201207/api.json +19 -0
- tccli/services/tsf/v20180326/api.json +1 -1
- tccli/services/wedata/v20210820/api.json +607 -3
- tccli/services/wedata/v20210820/examples.json +18 -8
- tccli/services/wedata/wedata_client.py +106 -0
- {tccli-3.0.1337.1.dist-info → tccli-3.0.1339.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1337.1.dist-info → tccli-3.0.1339.1.dist-info}/RECORD +60 -60
- {tccli-3.0.1337.1.dist-info → tccli-3.0.1339.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1337.1.dist-info → tccli-3.0.1339.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1337.1.dist-info → tccli-3.0.1339.1.dist-info}/license_files/LICENSE +0 -0
@@ -745,7 +745,7 @@ def doDescribeProvinceIspPlayInfoList(args, parsed_globals):
|
|
745
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
746
|
|
747
747
|
|
748
|
-
def
|
748
|
+
def doModifyLivePlayDomain(args, parsed_globals):
|
749
749
|
g_param = parse_global_arg(parsed_globals)
|
750
750
|
|
751
751
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -774,11 +774,11 @@ def doModifyLivePushAuthKey(args, parsed_globals):
|
|
774
774
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
775
775
|
client._sdkVersion += ("_CLI_" + __version__)
|
776
776
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
777
|
-
model = models.
|
777
|
+
model = models.ModifyLivePlayDomainRequest()
|
778
778
|
model.from_json_string(json.dumps(args))
|
779
779
|
start_time = time.time()
|
780
780
|
while True:
|
781
|
-
rsp = client.
|
781
|
+
rsp = client.ModifyLivePlayDomain(model)
|
782
782
|
result = rsp.to_json_string()
|
783
783
|
try:
|
784
784
|
json_obj = json.loads(result)
|
@@ -2253,7 +2253,7 @@ def doDeleteLiveWatermarkRule(args, parsed_globals):
|
|
2253
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
2254
|
|
2255
2255
|
|
2256
|
-
def
|
2256
|
+
def doSendLiveCloudEffect(args, parsed_globals):
|
2257
2257
|
g_param = parse_global_arg(parsed_globals)
|
2258
2258
|
|
2259
2259
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2282,11 +2282,11 @@ def doDescribeDeliverBandwidthList(args, parsed_globals):
|
|
2282
2282
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2283
2283
|
client._sdkVersion += ("_CLI_" + __version__)
|
2284
2284
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2285
|
-
model = models.
|
2285
|
+
model = models.SendLiveCloudEffectRequest()
|
2286
2286
|
model.from_json_string(json.dumps(args))
|
2287
2287
|
start_time = time.time()
|
2288
2288
|
while True:
|
2289
|
-
rsp = client.
|
2289
|
+
rsp = client.SendLiveCloudEffect(model)
|
2290
2290
|
result = rsp.to_json_string()
|
2291
2291
|
try:
|
2292
2292
|
json_obj = json.loads(result)
|
@@ -2461,6 +2461,58 @@ def doCreateLiveSnapshotTemplate(args, parsed_globals):
|
|
2461
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2462
2462
|
|
2463
2463
|
|
2464
|
+
def doDescribeDeliverBandwidthList(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.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2491
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2492
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2493
|
+
model = models.DescribeDeliverBandwidthListRequest()
|
2494
|
+
model.from_json_string(json.dumps(args))
|
2495
|
+
start_time = time.time()
|
2496
|
+
while True:
|
2497
|
+
rsp = client.DescribeDeliverBandwidthList(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
|
+
|
2464
2516
|
def doDescribeLiveStreamOnlineList(args, parsed_globals):
|
2465
2517
|
g_param = parse_global_arg(parsed_globals)
|
2466
2518
|
|
@@ -3605,7 +3657,7 @@ def doDescribeStreamDayPlayInfoList(args, parsed_globals):
|
|
3605
3657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3606
3658
|
|
3607
3659
|
|
3608
|
-
def
|
3660
|
+
def doDescribeLivePadStreamList(args, parsed_globals):
|
3609
3661
|
g_param = parse_global_arg(parsed_globals)
|
3610
3662
|
|
3611
3663
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3634,11 +3686,11 @@ def doModifyLivePlayDomain(args, parsed_globals):
|
|
3634
3686
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3635
3687
|
client._sdkVersion += ("_CLI_" + __version__)
|
3636
3688
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3637
|
-
model = models.
|
3689
|
+
model = models.DescribeLivePadStreamListRequest()
|
3638
3690
|
model.from_json_string(json.dumps(args))
|
3639
3691
|
start_time = time.time()
|
3640
3692
|
while True:
|
3641
|
-
rsp = client.
|
3693
|
+
rsp = client.DescribeLivePadStreamList(model)
|
3642
3694
|
result = rsp.to_json_string()
|
3643
3695
|
try:
|
3644
3696
|
json_obj = json.loads(result)
|
@@ -5061,7 +5113,7 @@ def doDescribeStreamPlayInfoList(args, parsed_globals):
|
|
5061
5113
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5062
5114
|
|
5063
5115
|
|
5064
|
-
def
|
5116
|
+
def doDescribeLiveCloudEffectList(args, parsed_globals):
|
5065
5117
|
g_param = parse_global_arg(parsed_globals)
|
5066
5118
|
|
5067
5119
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5090,11 +5142,11 @@ def doCreateCaster(args, parsed_globals):
|
|
5090
5142
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5091
5143
|
client._sdkVersion += ("_CLI_" + __version__)
|
5092
5144
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5093
|
-
model = models.
|
5145
|
+
model = models.DescribeLiveCloudEffectListRequest()
|
5094
5146
|
model.from_json_string(json.dumps(args))
|
5095
5147
|
start_time = time.time()
|
5096
5148
|
while True:
|
5097
|
-
rsp = client.
|
5149
|
+
rsp = client.DescribeLiveCloudEffectList(model)
|
5098
5150
|
result = rsp.to_json_string()
|
5099
5151
|
try:
|
5100
5152
|
json_obj = json.loads(result)
|
@@ -6933,7 +6985,7 @@ def doDescribeScreenshotTask(args, parsed_globals):
|
|
6933
6985
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6934
6986
|
|
6935
6987
|
|
6936
|
-
def
|
6988
|
+
def doDescribePushBandwidthAndFluxList(args, parsed_globals):
|
6937
6989
|
g_param = parse_global_arg(parsed_globals)
|
6938
6990
|
|
6939
6991
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6962,11 +7014,11 @@ def doDescribeLivePadProcessorList(args, parsed_globals):
|
|
6962
7014
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
6963
7015
|
client._sdkVersion += ("_CLI_" + __version__)
|
6964
7016
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6965
|
-
model = models.
|
7017
|
+
model = models.DescribePushBandwidthAndFluxListRequest()
|
6966
7018
|
model.from_json_string(json.dumps(args))
|
6967
7019
|
start_time = time.time()
|
6968
7020
|
while True:
|
6969
|
-
rsp = client.
|
7021
|
+
rsp = client.DescribePushBandwidthAndFluxList(model)
|
6970
7022
|
result = rsp.to_json_string()
|
6971
7023
|
try:
|
6972
7024
|
json_obj = json.loads(result)
|
@@ -6985,7 +7037,7 @@ def doDescribeLivePadProcessorList(args, parsed_globals):
|
|
6985
7037
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6986
7038
|
|
6987
7039
|
|
6988
|
-
def
|
7040
|
+
def doDescribeLiveCallbackTemplate(args, parsed_globals):
|
6989
7041
|
g_param = parse_global_arg(parsed_globals)
|
6990
7042
|
|
6991
7043
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7014,11 +7066,11 @@ def doDescribePushBandwidthAndFluxList(args, parsed_globals):
|
|
7014
7066
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
7015
7067
|
client._sdkVersion += ("_CLI_" + __version__)
|
7016
7068
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7017
|
-
model = models.
|
7069
|
+
model = models.DescribeLiveCallbackTemplateRequest()
|
7018
7070
|
model.from_json_string(json.dumps(args))
|
7019
7071
|
start_time = time.time()
|
7020
7072
|
while True:
|
7021
|
-
rsp = client.
|
7073
|
+
rsp = client.DescribeLiveCallbackTemplate(model)
|
7022
7074
|
result = rsp.to_json_string()
|
7023
7075
|
try:
|
7024
7076
|
json_obj = json.loads(result)
|
@@ -7037,7 +7089,7 @@ def doDescribePushBandwidthAndFluxList(args, parsed_globals):
|
|
7037
7089
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7038
7090
|
|
7039
7091
|
|
7040
|
-
def
|
7092
|
+
def doDescribeCasterUserStatus(args, parsed_globals):
|
7041
7093
|
g_param = parse_global_arg(parsed_globals)
|
7042
7094
|
|
7043
7095
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7066,11 +7118,11 @@ def doDescribeLiveCallbackTemplate(args, parsed_globals):
|
|
7066
7118
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
7067
7119
|
client._sdkVersion += ("_CLI_" + __version__)
|
7068
7120
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7069
|
-
model = models.
|
7121
|
+
model = models.DescribeCasterUserStatusRequest()
|
7070
7122
|
model.from_json_string(json.dumps(args))
|
7071
7123
|
start_time = time.time()
|
7072
7124
|
while True:
|
7073
|
-
rsp = client.
|
7125
|
+
rsp = client.DescribeCasterUserStatus(model)
|
7074
7126
|
result = rsp.to_json_string()
|
7075
7127
|
try:
|
7076
7128
|
json_obj = json.loads(result)
|
@@ -7609,6 +7661,58 @@ def doDescribeCallbackRecordsList(args, parsed_globals):
|
|
7609
7661
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7610
7662
|
|
7611
7663
|
|
7664
|
+
def doStopLivePadStream(args, parsed_globals):
|
7665
|
+
g_param = parse_global_arg(parsed_globals)
|
7666
|
+
|
7667
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7668
|
+
cred = credential.CVMRoleCredential()
|
7669
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7670
|
+
cred = credential.STSAssumeRoleCredential(
|
7671
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7672
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7673
|
+
)
|
7674
|
+
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):
|
7675
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7676
|
+
else:
|
7677
|
+
cred = credential.Credential(
|
7678
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7679
|
+
)
|
7680
|
+
http_profile = HttpProfile(
|
7681
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7682
|
+
reqMethod="POST",
|
7683
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7684
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7685
|
+
)
|
7686
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7687
|
+
if g_param[OptionsDefine.Language]:
|
7688
|
+
profile.language = g_param[OptionsDefine.Language]
|
7689
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7690
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
7691
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7692
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7693
|
+
model = models.StopLivePadStreamRequest()
|
7694
|
+
model.from_json_string(json.dumps(args))
|
7695
|
+
start_time = time.time()
|
7696
|
+
while True:
|
7697
|
+
rsp = client.StopLivePadStream(model)
|
7698
|
+
result = rsp.to_json_string()
|
7699
|
+
try:
|
7700
|
+
json_obj = json.loads(result)
|
7701
|
+
except TypeError as e:
|
7702
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7703
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7704
|
+
break
|
7705
|
+
cur_time = time.time()
|
7706
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7707
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7708
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7709
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7710
|
+
else:
|
7711
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7712
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7713
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7714
|
+
|
7715
|
+
|
7612
7716
|
def doCreateLiveRecordRule(args, parsed_globals):
|
7613
7717
|
g_param = parse_global_arg(parsed_globals)
|
7614
7718
|
|
@@ -8129,6 +8233,58 @@ def doCreatePullStreamConfig(args, parsed_globals):
|
|
8129
8233
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8130
8234
|
|
8131
8235
|
|
8236
|
+
def doModifyLivePushAuthKey(args, parsed_globals):
|
8237
|
+
g_param = parse_global_arg(parsed_globals)
|
8238
|
+
|
8239
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
8240
|
+
cred = credential.CVMRoleCredential()
|
8241
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
8242
|
+
cred = credential.STSAssumeRoleCredential(
|
8243
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
8244
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
8245
|
+
)
|
8246
|
+
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):
|
8247
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
8248
|
+
else:
|
8249
|
+
cred = credential.Credential(
|
8250
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
8251
|
+
)
|
8252
|
+
http_profile = HttpProfile(
|
8253
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
8254
|
+
reqMethod="POST",
|
8255
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
8256
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
8257
|
+
)
|
8258
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
8259
|
+
if g_param[OptionsDefine.Language]:
|
8260
|
+
profile.language = g_param[OptionsDefine.Language]
|
8261
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8262
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
8263
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
8264
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8265
|
+
model = models.ModifyLivePushAuthKeyRequest()
|
8266
|
+
model.from_json_string(json.dumps(args))
|
8267
|
+
start_time = time.time()
|
8268
|
+
while True:
|
8269
|
+
rsp = client.ModifyLivePushAuthKey(model)
|
8270
|
+
result = rsp.to_json_string()
|
8271
|
+
try:
|
8272
|
+
json_obj = json.loads(result)
|
8273
|
+
except TypeError as e:
|
8274
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8275
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8276
|
+
break
|
8277
|
+
cur_time = time.time()
|
8278
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8279
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8280
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8281
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8282
|
+
else:
|
8283
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8284
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8285
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8286
|
+
|
8287
|
+
|
8132
8288
|
def doDescribeLiveWatermarkRules(args, parsed_globals):
|
8133
8289
|
g_param = parse_global_arg(parsed_globals)
|
8134
8290
|
|
@@ -9013,7 +9169,7 @@ def doModifyLiveStreamMonitor(args, parsed_globals):
|
|
9013
9169
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9014
9170
|
|
9015
9171
|
|
9016
|
-
def
|
9172
|
+
def doCreateCaster(args, parsed_globals):
|
9017
9173
|
g_param = parse_global_arg(parsed_globals)
|
9018
9174
|
|
9019
9175
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -9042,11 +9198,11 @@ def doDescribeCasterUserStatus(args, parsed_globals):
|
|
9042
9198
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
9043
9199
|
client._sdkVersion += ("_CLI_" + __version__)
|
9044
9200
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9045
|
-
model = models.
|
9201
|
+
model = models.CreateCasterRequest()
|
9046
9202
|
model.from_json_string(json.dumps(args))
|
9047
9203
|
start_time = time.time()
|
9048
9204
|
while True:
|
9049
|
-
rsp = client.
|
9205
|
+
rsp = client.CreateCaster(model)
|
9050
9206
|
result = rsp.to_json_string()
|
9051
9207
|
try:
|
9052
9208
|
json_obj = json.loads(result)
|
@@ -9845,7 +10001,7 @@ def doDeleteCasterOutputInfo(args, parsed_globals):
|
|
9845
10001
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9846
10002
|
|
9847
10003
|
|
9848
|
-
def
|
10004
|
+
def doDeleteLiveTranscodeTemplate(args, parsed_globals):
|
9849
10005
|
g_param = parse_global_arg(parsed_globals)
|
9850
10006
|
|
9851
10007
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -9874,11 +10030,11 @@ def doStopLivePadProcessor(args, parsed_globals):
|
|
9874
10030
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
9875
10031
|
client._sdkVersion += ("_CLI_" + __version__)
|
9876
10032
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9877
|
-
model = models.
|
10033
|
+
model = models.DeleteLiveTranscodeTemplateRequest()
|
9878
10034
|
model.from_json_string(json.dumps(args))
|
9879
10035
|
start_time = time.time()
|
9880
10036
|
while True:
|
9881
|
-
rsp = client.
|
10037
|
+
rsp = client.DeleteLiveTranscodeTemplate(model)
|
9882
10038
|
result = rsp.to_json_string()
|
9883
10039
|
try:
|
9884
10040
|
json_obj = json.loads(result)
|
@@ -9897,7 +10053,7 @@ def doStopLivePadProcessor(args, parsed_globals):
|
|
9897
10053
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9898
10054
|
|
9899
10055
|
|
9900
|
-
def
|
10056
|
+
def doDescribeLivePadTemplates(args, parsed_globals):
|
9901
10057
|
g_param = parse_global_arg(parsed_globals)
|
9902
10058
|
|
9903
10059
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -9926,11 +10082,11 @@ def doDeleteLiveTranscodeTemplate(args, parsed_globals):
|
|
9926
10082
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
9927
10083
|
client._sdkVersion += ("_CLI_" + __version__)
|
9928
10084
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9929
|
-
model = models.
|
10085
|
+
model = models.DescribeLivePadTemplatesRequest()
|
9930
10086
|
model.from_json_string(json.dumps(args))
|
9931
10087
|
start_time = time.time()
|
9932
10088
|
while True:
|
9933
|
-
rsp = client.
|
10089
|
+
rsp = client.DescribeLivePadTemplates(model)
|
9934
10090
|
result = rsp.to_json_string()
|
9935
10091
|
try:
|
9936
10092
|
json_obj = json.loads(result)
|
@@ -9949,7 +10105,7 @@ def doDeleteLiveTranscodeTemplate(args, parsed_globals):
|
|
9949
10105
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9950
10106
|
|
9951
10107
|
|
9952
|
-
def
|
10108
|
+
def doDescribeTranscodeTaskNum(args, parsed_globals):
|
9953
10109
|
g_param = parse_global_arg(parsed_globals)
|
9954
10110
|
|
9955
10111
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -9978,11 +10134,11 @@ def doDescribeLivePadTemplates(args, parsed_globals):
|
|
9978
10134
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
9979
10135
|
client._sdkVersion += ("_CLI_" + __version__)
|
9980
10136
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9981
|
-
model = models.
|
10137
|
+
model = models.DescribeTranscodeTaskNumRequest()
|
9982
10138
|
model.from_json_string(json.dumps(args))
|
9983
10139
|
start_time = time.time()
|
9984
10140
|
while True:
|
9985
|
-
rsp = client.
|
10141
|
+
rsp = client.DescribeTranscodeTaskNum(model)
|
9986
10142
|
result = rsp.to_json_string()
|
9987
10143
|
try:
|
9988
10144
|
json_obj = json.loads(result)
|
@@ -10001,7 +10157,7 @@ def doDescribeLivePadTemplates(args, parsed_globals):
|
|
10001
10157
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10002
10158
|
|
10003
10159
|
|
10004
|
-
def
|
10160
|
+
def doDescribeLiveStreamPushInfoList(args, parsed_globals):
|
10005
10161
|
g_param = parse_global_arg(parsed_globals)
|
10006
10162
|
|
10007
10163
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -10030,11 +10186,11 @@ def doDescribeTranscodeTaskNum(args, parsed_globals):
|
|
10030
10186
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
10031
10187
|
client._sdkVersion += ("_CLI_" + __version__)
|
10032
10188
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
10033
|
-
model = models.
|
10189
|
+
model = models.DescribeLiveStreamPushInfoListRequest()
|
10034
10190
|
model.from_json_string(json.dumps(args))
|
10035
10191
|
start_time = time.time()
|
10036
10192
|
while True:
|
10037
|
-
rsp = client.
|
10193
|
+
rsp = client.DescribeLiveStreamPushInfoList(model)
|
10038
10194
|
result = rsp.to_json_string()
|
10039
10195
|
try:
|
10040
10196
|
json_obj = json.loads(result)
|
@@ -10053,7 +10209,7 @@ def doDescribeTranscodeTaskNum(args, parsed_globals):
|
|
10053
10209
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10054
10210
|
|
10055
10211
|
|
10056
|
-
def
|
10212
|
+
def doDeleteLiveSnapshotTemplate(args, parsed_globals):
|
10057
10213
|
g_param = parse_global_arg(parsed_globals)
|
10058
10214
|
|
10059
10215
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -10082,11 +10238,11 @@ def doDescribeLiveStreamPushInfoList(args, parsed_globals):
|
|
10082
10238
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
10083
10239
|
client._sdkVersion += ("_CLI_" + __version__)
|
10084
10240
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
10085
|
-
model = models.
|
10241
|
+
model = models.DeleteLiveSnapshotTemplateRequest()
|
10086
10242
|
model.from_json_string(json.dumps(args))
|
10087
10243
|
start_time = time.time()
|
10088
10244
|
while True:
|
10089
|
-
rsp = client.
|
10245
|
+
rsp = client.DeleteLiveSnapshotTemplate(model)
|
10090
10246
|
result = rsp.to_json_string()
|
10091
10247
|
try:
|
10092
10248
|
json_obj = json.loads(result)
|
@@ -10105,7 +10261,7 @@ def doDescribeLiveStreamPushInfoList(args, parsed_globals):
|
|
10105
10261
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10106
10262
|
|
10107
10263
|
|
10108
|
-
def
|
10264
|
+
def doStartLivePadStream(args, parsed_globals):
|
10109
10265
|
g_param = parse_global_arg(parsed_globals)
|
10110
10266
|
|
10111
10267
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -10134,11 +10290,11 @@ def doDeleteLiveSnapshotTemplate(args, parsed_globals):
|
|
10134
10290
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
10135
10291
|
client._sdkVersion += ("_CLI_" + __version__)
|
10136
10292
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
10137
|
-
model = models.
|
10293
|
+
model = models.StartLivePadStreamRequest()
|
10138
10294
|
model.from_json_string(json.dumps(args))
|
10139
10295
|
start_time = time.time()
|
10140
10296
|
while True:
|
10141
|
-
rsp = client.
|
10297
|
+
rsp = client.StartLivePadStream(model)
|
10142
10298
|
result = rsp.to_json_string()
|
10143
10299
|
try:
|
10144
10300
|
json_obj = json.loads(result)
|
@@ -10182,7 +10338,7 @@ ACTION_MAP = {
|
|
10182
10338
|
"DescribePullStreamConfigs": doDescribePullStreamConfigs,
|
10183
10339
|
"DescribeHttpStatusInfoList": doDescribeHttpStatusInfoList,
|
10184
10340
|
"DescribeProvinceIspPlayInfoList": doDescribeProvinceIspPlayInfoList,
|
10185
|
-
"
|
10341
|
+
"ModifyLivePlayDomain": doModifyLivePlayDomain,
|
10186
10342
|
"DescribeStreamPushInfoList": doDescribeStreamPushInfoList,
|
10187
10343
|
"StartLiveStreamMonitor": doStartLiveStreamMonitor,
|
10188
10344
|
"DescribeLiveSnapshotRules": doDescribeLiveSnapshotRules,
|
@@ -10211,10 +10367,11 @@ ACTION_MAP = {
|
|
10211
10367
|
"DescribeCasterMarkWordInfos": doDescribeCasterMarkWordInfos,
|
10212
10368
|
"DeleteCasterLayoutInfo": doDeleteCasterLayoutInfo,
|
10213
10369
|
"DeleteLiveWatermarkRule": doDeleteLiveWatermarkRule,
|
10214
|
-
"
|
10370
|
+
"SendLiveCloudEffect": doSendLiveCloudEffect,
|
10215
10371
|
"DeleteLiveCallbackRule": doDeleteLiveCallbackRule,
|
10216
10372
|
"ModifyPullStreamConfig": doModifyPullStreamConfig,
|
10217
10373
|
"CreateLiveSnapshotTemplate": doCreateLiveSnapshotTemplate,
|
10374
|
+
"DescribeDeliverBandwidthList": doDescribeDeliverBandwidthList,
|
10218
10375
|
"DescribeLiveStreamOnlineList": doDescribeLiveStreamOnlineList,
|
10219
10376
|
"EnableOptimalSwitching": doEnableOptimalSwitching,
|
10220
10377
|
"DeleteLiveCallbackTemplate": doDeleteLiveCallbackTemplate,
|
@@ -10237,7 +10394,7 @@ ACTION_MAP = {
|
|
10237
10394
|
"AddDelayLiveStream": doAddDelayLiveStream,
|
10238
10395
|
"DescribeUploadStreamNums": doDescribeUploadStreamNums,
|
10239
10396
|
"DescribeStreamDayPlayInfoList": doDescribeStreamDayPlayInfoList,
|
10240
|
-
"
|
10397
|
+
"DescribeLivePadStreamList": doDescribeLivePadStreamList,
|
10241
10398
|
"ModifyLiveTranscodeTemplate": doModifyLiveTranscodeTemplate,
|
10242
10399
|
"DeleteLiveTranscodeRule": doDeleteLiveTranscodeRule,
|
10243
10400
|
"DescribeLiveTranscodeTotalInfo": doDescribeLiveTranscodeTotalInfo,
|
@@ -10265,7 +10422,7 @@ ACTION_MAP = {
|
|
10265
10422
|
"DeleteLiveTimeShiftTemplate": doDeleteLiveTimeShiftTemplate,
|
10266
10423
|
"DescribeGroupProIspPlayInfoList": doDescribeGroupProIspPlayInfoList,
|
10267
10424
|
"DescribeStreamPlayInfoList": doDescribeStreamPlayInfoList,
|
10268
|
-
"
|
10425
|
+
"DescribeLiveCloudEffectList": doDescribeLiveCloudEffectList,
|
10269
10426
|
"DescribeCasterLayoutInfos": doDescribeCasterLayoutInfos,
|
10270
10427
|
"DescribeLivePullStreamTaskStatus": doDescribeLivePullStreamTaskStatus,
|
10271
10428
|
"DescribeLiveSnapshotTemplate": doDescribeLiveSnapshotTemplate,
|
@@ -10301,9 +10458,9 @@ ACTION_MAP = {
|
|
10301
10458
|
"DescribeLiveTimeShiftBillInfoList": doDescribeLiveTimeShiftBillInfoList,
|
10302
10459
|
"DescribeLiveStreamPublishedList": doDescribeLiveStreamPublishedList,
|
10303
10460
|
"DescribeScreenshotTask": doDescribeScreenshotTask,
|
10304
|
-
"DescribeLivePadProcessorList": doDescribeLivePadProcessorList,
|
10305
10461
|
"DescribePushBandwidthAndFluxList": doDescribePushBandwidthAndFluxList,
|
10306
10462
|
"DescribeLiveCallbackTemplate": doDescribeLiveCallbackTemplate,
|
10463
|
+
"DescribeCasterUserStatus": doDescribeCasterUserStatus,
|
10307
10464
|
"DescribeLivePackageInfo": doDescribeLivePackageInfo,
|
10308
10465
|
"DescribeLiveTimeShiftWriteSizeInfoList": doDescribeLiveTimeShiftWriteSizeInfoList,
|
10309
10466
|
"ForbidLiveStream": doForbidLiveStream,
|
@@ -10314,6 +10471,7 @@ ACTION_MAP = {
|
|
10314
10471
|
"DescribeLiveDomainPlayInfoList": doDescribeLiveDomainPlayInfoList,
|
10315
10472
|
"CreateLiveTimeShiftRule": doCreateLiveTimeShiftRule,
|
10316
10473
|
"DescribeCallbackRecordsList": doDescribeCallbackRecordsList,
|
10474
|
+
"StopLivePadStream": doStopLivePadStream,
|
10317
10475
|
"CreateLiveRecordRule": doCreateLiveRecordRule,
|
10318
10476
|
"DescribeLiveWatermark": doDescribeLiveWatermark,
|
10319
10477
|
"DescribeLiveTranscodeTemplates": doDescribeLiveTranscodeTemplates,
|
@@ -10324,6 +10482,7 @@ ACTION_MAP = {
|
|
10324
10482
|
"DeleteLiveTimeShiftRule": doDeleteLiveTimeShiftRule,
|
10325
10483
|
"RestartLivePullStreamTask": doRestartLivePullStreamTask,
|
10326
10484
|
"CreatePullStreamConfig": doCreatePullStreamConfig,
|
10485
|
+
"ModifyLivePushAuthKey": doModifyLivePushAuthKey,
|
10327
10486
|
"DescribeLiveWatermarkRules": doDescribeLiveWatermarkRules,
|
10328
10487
|
"DescribeLivePadRules": doDescribeLivePadRules,
|
10329
10488
|
"DeleteCasterInputInfo": doDeleteCasterInputInfo,
|
@@ -10341,7 +10500,7 @@ ACTION_MAP = {
|
|
10341
10500
|
"DescribeCasterTransitionTypes": doDescribeCasterTransitionTypes,
|
10342
10501
|
"DescribeCasterDisplayInfo": doDescribeCasterDisplayInfo,
|
10343
10502
|
"ModifyLiveStreamMonitor": doModifyLiveStreamMonitor,
|
10344
|
-
"
|
10503
|
+
"CreateCaster": doCreateCaster,
|
10345
10504
|
"DescribeLiveStreamState": doDescribeLiveStreamState,
|
10346
10505
|
"ModifyLiveDomainReferer": doModifyLiveDomainReferer,
|
10347
10506
|
"DeleteLiveRecordTemplate": doDeleteLiveRecordTemplate,
|
@@ -10357,12 +10516,12 @@ ACTION_MAP = {
|
|
10357
10516
|
"StopCasterPgm": doStopCasterPgm,
|
10358
10517
|
"EnableLiveDomain": doEnableLiveDomain,
|
10359
10518
|
"DeleteCasterOutputInfo": doDeleteCasterOutputInfo,
|
10360
|
-
"StopLivePadProcessor": doStopLivePadProcessor,
|
10361
10519
|
"DeleteLiveTranscodeTemplate": doDeleteLiveTranscodeTemplate,
|
10362
10520
|
"DescribeLivePadTemplates": doDescribeLivePadTemplates,
|
10363
10521
|
"DescribeTranscodeTaskNum": doDescribeTranscodeTaskNum,
|
10364
10522
|
"DescribeLiveStreamPushInfoList": doDescribeLiveStreamPushInfoList,
|
10365
10523
|
"DeleteLiveSnapshotTemplate": doDeleteLiveSnapshotTemplate,
|
10524
|
+
"StartLivePadStream": doStartLivePadStream,
|
10366
10525
|
|
10367
10526
|
}
|
10368
10527
|
|