tccli 3.0.1221.1__py2.py3-none-any.whl → 3.0.1223.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/billing/v20180709/api.json +392 -392
- tccli/services/billing/v20180709/examples.json +8 -8
- tccli/services/bsca/v20210811/api.json +11 -1
- tccli/services/cfs/v20190719/api.json +1 -1
- tccli/services/cfs/v20190719/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +5 -5
- tccli/services/dbdc/v20201029/api.json +43 -43
- tccli/services/dbdc/v20201029/examples.json +5 -5
- tccli/services/dcdb/v20180411/api.json +203 -215
- tccli/services/dnspod/dnspod_client.py +139 -33
- tccli/services/dnspod/v20210323/api.json +105 -1
- tccli/services/dnspod/v20210323/examples.json +16 -0
- tccli/services/dts/v20211206/api.json +1 -1
- tccli/services/ess/v20201111/api.json +4 -4
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/goosefs/v20220519/api.json +9 -0
- tccli/services/gwlb/v20240906/api.json +6 -6
- tccli/services/gwlb/v20240906/examples.json +4 -4
- tccli/services/hunyuan/v20230901/api.json +11 -0
- tccli/services/iotexplorer/v20190423/api.json +5 -5
- tccli/services/lcic/v20220817/api.json +10 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/live/live_client.py +1339 -332
- tccli/services/live/v20180801/api.json +1461 -166
- tccli/services/live/v20180801/examples.json +152 -0
- tccli/services/lke/v20231130/api.json +709 -101
- tccli/services/lke/v20231130/examples.json +16 -16
- tccli/services/mariadb/v20170312/api.json +212 -230
- tccli/services/mps/v20190612/api.json +11 -1
- tccli/services/oceanus/v20190422/api.json +10 -0
- tccli/services/ocr/v20181119/api.json +30 -0
- tccli/services/ocr/v20181119/examples.json +4 -10
- tccli/services/privatedns/privatedns_client.py +4 -534
- tccli/services/privatedns/v20201028/api.json +4 -943
- tccli/services/privatedns/v20201028/examples.json +0 -80
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/svp/v20240125/api.json +4 -4
- tccli/services/teo/v20220901/api.json +5 -0
- tccli/services/tke/v20180525/api.json +10 -0
- tccli/services/tke/v20220501/api.json +3 -1
- tccli/services/trtc/v20190722/api.json +55 -72
- tccli/services/tse/v20201207/api.json +35 -31
- tccli/services/tse/v20201207/examples.json +19 -19
- tccli/services/vod/v20180717/api.json +19 -0
- tccli/services/vpc/v20170312/api.json +29 -0
- tccli/services/wedata/v20210820/api.json +3 -3
- {tccli-3.0.1221.1.dist-info → tccli-3.0.1223.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1221.1.dist-info → tccli-3.0.1223.1.dist-info}/RECORD +54 -54
- {tccli-3.0.1221.1.dist-info → tccli-3.0.1223.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1221.1.dist-info → tccli-3.0.1223.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1221.1.dist-info → tccli-3.0.1223.1.dist-info}/license_files/LICENSE +0 -0
@@ -901,7 +901,7 @@ def doDescribeLiveSnapshotRules(args, parsed_globals):
|
|
901
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
902
|
|
903
903
|
|
904
|
-
def
|
904
|
+
def doReleaseCaster(args, parsed_globals):
|
905
905
|
g_param = parse_global_arg(parsed_globals)
|
906
906
|
|
907
907
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -930,11 +930,11 @@ def doDescribeTimeShiftStreamList(args, parsed_globals):
|
|
930
930
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
931
931
|
client._sdkVersion += ("_CLI_" + __version__)
|
932
932
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
933
|
-
model = models.
|
933
|
+
model = models.ReleaseCasterRequest()
|
934
934
|
model.from_json_string(json.dumps(args))
|
935
935
|
start_time = time.time()
|
936
936
|
while True:
|
937
|
-
rsp = client.
|
937
|
+
rsp = client.ReleaseCaster(model)
|
938
938
|
result = rsp.to_json_string()
|
939
939
|
try:
|
940
940
|
json_obj = json.loads(result)
|
@@ -953,7 +953,7 @@ def doDescribeTimeShiftStreamList(args, parsed_globals):
|
|
953
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
954
|
|
955
955
|
|
956
|
-
def
|
956
|
+
def doDescribeTimeShiftStreamList(args, parsed_globals):
|
957
957
|
g_param = parse_global_arg(parsed_globals)
|
958
958
|
|
959
959
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -982,11 +982,11 @@ def doDeleteLiveTranscodeTemplate(args, parsed_globals):
|
|
982
982
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
983
983
|
client._sdkVersion += ("_CLI_" + __version__)
|
984
984
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
985
|
-
model = models.
|
985
|
+
model = models.DescribeTimeShiftStreamListRequest()
|
986
986
|
model.from_json_string(json.dumps(args))
|
987
987
|
start_time = time.time()
|
988
988
|
while True:
|
989
|
-
rsp = client.
|
989
|
+
rsp = client.DescribeTimeShiftStreamList(model)
|
990
990
|
result = rsp.to_json_string()
|
991
991
|
try:
|
992
992
|
json_obj = json.loads(result)
|
@@ -1005,7 +1005,7 @@ def doDeleteLiveTranscodeTemplate(args, parsed_globals):
|
|
1005
1005
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1006
1006
|
|
1007
1007
|
|
1008
|
-
def
|
1008
|
+
def doAddCasterInputInfo(args, parsed_globals):
|
1009
1009
|
g_param = parse_global_arg(parsed_globals)
|
1010
1010
|
|
1011
1011
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1034,11 +1034,11 @@ def doCreateLivePadTemplate(args, parsed_globals):
|
|
1034
1034
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1035
1035
|
client._sdkVersion += ("_CLI_" + __version__)
|
1036
1036
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1037
|
-
model = models.
|
1037
|
+
model = models.AddCasterInputInfoRequest()
|
1038
1038
|
model.from_json_string(json.dumps(args))
|
1039
1039
|
start_time = time.time()
|
1040
1040
|
while True:
|
1041
|
-
rsp = client.
|
1041
|
+
rsp = client.AddCasterInputInfo(model)
|
1042
1042
|
result = rsp.to_json_string()
|
1043
1043
|
try:
|
1044
1044
|
json_obj = json.loads(result)
|
@@ -1057,7 +1057,7 @@ def doCreateLivePadTemplate(args, parsed_globals):
|
|
1057
1057
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1058
1058
|
|
1059
1059
|
|
1060
|
-
def
|
1060
|
+
def doCreateLivePadTemplate(args, parsed_globals):
|
1061
1061
|
g_param = parse_global_arg(parsed_globals)
|
1062
1062
|
|
1063
1063
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1086,11 +1086,11 @@ def doCreateLiveStreamMonitor(args, parsed_globals):
|
|
1086
1086
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1087
1087
|
client._sdkVersion += ("_CLI_" + __version__)
|
1088
1088
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1089
|
-
model = models.
|
1089
|
+
model = models.CreateLivePadTemplateRequest()
|
1090
1090
|
model.from_json_string(json.dumps(args))
|
1091
1091
|
start_time = time.time()
|
1092
1092
|
while True:
|
1093
|
-
rsp = client.
|
1093
|
+
rsp = client.CreateLivePadTemplate(model)
|
1094
1094
|
result = rsp.to_json_string()
|
1095
1095
|
try:
|
1096
1096
|
json_obj = json.loads(result)
|
@@ -1109,7 +1109,7 @@ def doCreateLiveStreamMonitor(args, parsed_globals):
|
|
1109
1109
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1110
1110
|
|
1111
1111
|
|
1112
|
-
def
|
1112
|
+
def doCreateLiveStreamMonitor(args, parsed_globals):
|
1113
1113
|
g_param = parse_global_arg(parsed_globals)
|
1114
1114
|
|
1115
1115
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1138,11 +1138,11 @@ def doDescribeLiveDomainReferer(args, parsed_globals):
|
|
1138
1138
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1139
1139
|
client._sdkVersion += ("_CLI_" + __version__)
|
1140
1140
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1141
|
-
model = models.
|
1141
|
+
model = models.CreateLiveStreamMonitorRequest()
|
1142
1142
|
model.from_json_string(json.dumps(args))
|
1143
1143
|
start_time = time.time()
|
1144
1144
|
while True:
|
1145
|
-
rsp = client.
|
1145
|
+
rsp = client.CreateLiveStreamMonitor(model)
|
1146
1146
|
result = rsp.to_json_string()
|
1147
1147
|
try:
|
1148
1148
|
json_obj = json.loads(result)
|
@@ -1161,7 +1161,7 @@ def doDescribeLiveDomainReferer(args, parsed_globals):
|
|
1161
1161
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1162
1162
|
|
1163
1163
|
|
1164
|
-
def
|
1164
|
+
def doDescribeLiveDomainReferer(args, parsed_globals):
|
1165
1165
|
g_param = parse_global_arg(parsed_globals)
|
1166
1166
|
|
1167
1167
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1190,11 +1190,11 @@ def doDeleteScreenshotTask(args, parsed_globals):
|
|
1190
1190
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1191
1191
|
client._sdkVersion += ("_CLI_" + __version__)
|
1192
1192
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1193
|
-
model = models.
|
1193
|
+
model = models.DescribeLiveDomainRefererRequest()
|
1194
1194
|
model.from_json_string(json.dumps(args))
|
1195
1195
|
start_time = time.time()
|
1196
1196
|
while True:
|
1197
|
-
rsp = client.
|
1197
|
+
rsp = client.DescribeLiveDomainReferer(model)
|
1198
1198
|
result = rsp.to_json_string()
|
1199
1199
|
try:
|
1200
1200
|
json_obj = json.loads(result)
|
@@ -1213,7 +1213,7 @@ def doDeleteScreenshotTask(args, parsed_globals):
|
|
1213
1213
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1214
|
|
1215
1215
|
|
1216
|
-
def
|
1216
|
+
def doDeleteScreenshotTask(args, parsed_globals):
|
1217
1217
|
g_param = parse_global_arg(parsed_globals)
|
1218
1218
|
|
1219
1219
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1242,11 +1242,11 @@ def doDescribeTopClientIpSumInfoList(args, parsed_globals):
|
|
1242
1242
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1243
1243
|
client._sdkVersion += ("_CLI_" + __version__)
|
1244
1244
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1245
|
-
model = models.
|
1245
|
+
model = models.DeleteScreenshotTaskRequest()
|
1246
1246
|
model.from_json_string(json.dumps(args))
|
1247
1247
|
start_time = time.time()
|
1248
1248
|
while True:
|
1249
|
-
rsp = client.
|
1249
|
+
rsp = client.DeleteScreenshotTask(model)
|
1250
1250
|
result = rsp.to_json_string()
|
1251
1251
|
try:
|
1252
1252
|
json_obj = json.loads(result)
|
@@ -1265,7 +1265,7 @@ def doDescribeTopClientIpSumInfoList(args, parsed_globals):
|
|
1265
1265
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
1266
|
|
1267
1267
|
|
1268
|
-
def
|
1268
|
+
def doDescribeTopClientIpSumInfoList(args, parsed_globals):
|
1269
1269
|
g_param = parse_global_arg(parsed_globals)
|
1270
1270
|
|
1271
1271
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1294,11 +1294,11 @@ def doModifyPullStreamStatus(args, parsed_globals):
|
|
1294
1294
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1295
1295
|
client._sdkVersion += ("_CLI_" + __version__)
|
1296
1296
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1297
|
-
model = models.
|
1297
|
+
model = models.DescribeTopClientIpSumInfoListRequest()
|
1298
1298
|
model.from_json_string(json.dumps(args))
|
1299
1299
|
start_time = time.time()
|
1300
1300
|
while True:
|
1301
|
-
rsp = client.
|
1301
|
+
rsp = client.DescribeTopClientIpSumInfoList(model)
|
1302
1302
|
result = rsp.to_json_string()
|
1303
1303
|
try:
|
1304
1304
|
json_obj = json.loads(result)
|
@@ -1317,7 +1317,7 @@ def doModifyPullStreamStatus(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
-
def
|
1320
|
+
def doCreateCasterInputPushUrl(args, parsed_globals):
|
1321
1321
|
g_param = parse_global_arg(parsed_globals)
|
1322
1322
|
|
1323
1323
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1346,11 +1346,11 @@ def doCreateScreenshotTask(args, parsed_globals):
|
|
1346
1346
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
1347
|
client._sdkVersion += ("_CLI_" + __version__)
|
1348
1348
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
-
model = models.
|
1349
|
+
model = models.CreateCasterInputPushUrlRequest()
|
1350
1350
|
model.from_json_string(json.dumps(args))
|
1351
1351
|
start_time = time.time()
|
1352
1352
|
while True:
|
1353
|
-
rsp = client.
|
1353
|
+
rsp = client.CreateCasterInputPushUrl(model)
|
1354
1354
|
result = rsp.to_json_string()
|
1355
1355
|
try:
|
1356
1356
|
json_obj = json.loads(result)
|
@@ -1369,7 +1369,7 @@ def doCreateScreenshotTask(args, parsed_globals):
|
|
1369
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
1370
|
|
1371
1371
|
|
1372
|
-
def
|
1372
|
+
def doCreateLivePadRule(args, parsed_globals):
|
1373
1373
|
g_param = parse_global_arg(parsed_globals)
|
1374
1374
|
|
1375
1375
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1398,11 +1398,11 @@ def doDescribeLiveRecordTemplates(args, parsed_globals):
|
|
1398
1398
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
1399
|
client._sdkVersion += ("_CLI_" + __version__)
|
1400
1400
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
-
model = models.
|
1401
|
+
model = models.CreateLivePadRuleRequest()
|
1402
1402
|
model.from_json_string(json.dumps(args))
|
1403
1403
|
start_time = time.time()
|
1404
1404
|
while True:
|
1405
|
-
rsp = client.
|
1405
|
+
rsp = client.CreateLivePadRule(model)
|
1406
1406
|
result = rsp.to_json_string()
|
1407
1407
|
try:
|
1408
1408
|
json_obj = json.loads(result)
|
@@ -1421,7 +1421,7 @@ def doDescribeLiveRecordTemplates(args, parsed_globals):
|
|
1421
1421
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
1422
|
|
1423
1423
|
|
1424
|
-
def
|
1424
|
+
def doCreateScreenshotTask(args, parsed_globals):
|
1425
1425
|
g_param = parse_global_arg(parsed_globals)
|
1426
1426
|
|
1427
1427
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1450,11 +1450,11 @@ def doAuthenticateDomainOwner(args, parsed_globals):
|
|
1450
1450
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
1451
|
client._sdkVersion += ("_CLI_" + __version__)
|
1452
1452
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
-
model = models.
|
1453
|
+
model = models.CreateScreenshotTaskRequest()
|
1454
1454
|
model.from_json_string(json.dumps(args))
|
1455
1455
|
start_time = time.time()
|
1456
1456
|
while True:
|
1457
|
-
rsp = client.
|
1457
|
+
rsp = client.CreateScreenshotTask(model)
|
1458
1458
|
result = rsp.to_json_string()
|
1459
1459
|
try:
|
1460
1460
|
json_obj = json.loads(result)
|
@@ -1473,7 +1473,7 @@ def doAuthenticateDomainOwner(args, parsed_globals):
|
|
1473
1473
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1474
|
|
1475
1475
|
|
1476
|
-
def
|
1476
|
+
def doDescribeLiveRecordTemplates(args, parsed_globals):
|
1477
1477
|
g_param = parse_global_arg(parsed_globals)
|
1478
1478
|
|
1479
1479
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1502,11 +1502,11 @@ def doModifyLiveStreamMonitor(args, parsed_globals):
|
|
1502
1502
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
1503
|
client._sdkVersion += ("_CLI_" + __version__)
|
1504
1504
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
-
model = models.
|
1505
|
+
model = models.DescribeLiveRecordTemplatesRequest()
|
1506
1506
|
model.from_json_string(json.dumps(args))
|
1507
1507
|
start_time = time.time()
|
1508
1508
|
while True:
|
1509
|
-
rsp = client.
|
1509
|
+
rsp = client.DescribeLiveRecordTemplates(model)
|
1510
1510
|
result = rsp.to_json_string()
|
1511
1511
|
try:
|
1512
1512
|
json_obj = json.loads(result)
|
@@ -1525,7 +1525,7 @@ def doModifyLiveStreamMonitor(args, parsed_globals):
|
|
1525
1525
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
1526
|
|
1527
1527
|
|
1528
|
-
def
|
1528
|
+
def doAuthenticateDomainOwner(args, parsed_globals):
|
1529
1529
|
g_param = parse_global_arg(parsed_globals)
|
1530
1530
|
|
1531
1531
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1554,11 +1554,11 @@ def doDescribeVisitTopSumInfoList(args, parsed_globals):
|
|
1554
1554
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1555
1555
|
client._sdkVersion += ("_CLI_" + __version__)
|
1556
1556
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1557
|
-
model = models.
|
1557
|
+
model = models.AuthenticateDomainOwnerRequest()
|
1558
1558
|
model.from_json_string(json.dumps(args))
|
1559
1559
|
start_time = time.time()
|
1560
1560
|
while True:
|
1561
|
-
rsp = client.
|
1561
|
+
rsp = client.AuthenticateDomainOwner(model)
|
1562
1562
|
result = rsp.to_json_string()
|
1563
1563
|
try:
|
1564
1564
|
json_obj = json.loads(result)
|
@@ -1577,7 +1577,7 @@ def doDescribeVisitTopSumInfoList(args, parsed_globals):
|
|
1577
1577
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
1578
|
|
1579
1579
|
|
1580
|
-
def
|
1580
|
+
def doModifyLiveStreamMonitor(args, parsed_globals):
|
1581
1581
|
g_param = parse_global_arg(parsed_globals)
|
1582
1582
|
|
1583
1583
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1606,11 +1606,11 @@ def doModifyLiveRecordTemplate(args, parsed_globals):
|
|
1606
1606
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1607
1607
|
client._sdkVersion += ("_CLI_" + __version__)
|
1608
1608
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1609
|
-
model = models.
|
1609
|
+
model = models.ModifyLiveStreamMonitorRequest()
|
1610
1610
|
model.from_json_string(json.dumps(args))
|
1611
1611
|
start_time = time.time()
|
1612
1612
|
while True:
|
1613
|
-
rsp = client.
|
1613
|
+
rsp = client.ModifyLiveStreamMonitor(model)
|
1614
1614
|
result = rsp.to_json_string()
|
1615
1615
|
try:
|
1616
1616
|
json_obj = json.loads(result)
|
@@ -1629,7 +1629,7 @@ def doModifyLiveRecordTemplate(args, parsed_globals):
|
|
1629
1629
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
1630
|
|
1631
1631
|
|
1632
|
-
def
|
1632
|
+
def doDescribeCasterInputInfos(args, parsed_globals):
|
1633
1633
|
g_param = parse_global_arg(parsed_globals)
|
1634
1634
|
|
1635
1635
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1658,11 +1658,11 @@ def doDescribeLiveDomainCert(args, parsed_globals):
|
|
1658
1658
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1659
1659
|
client._sdkVersion += ("_CLI_" + __version__)
|
1660
1660
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1661
|
-
model = models.
|
1661
|
+
model = models.DescribeCasterInputInfosRequest()
|
1662
1662
|
model.from_json_string(json.dumps(args))
|
1663
1663
|
start_time = time.time()
|
1664
1664
|
while True:
|
1665
|
-
rsp = client.
|
1665
|
+
rsp = client.DescribeCasterInputInfos(model)
|
1666
1666
|
result = rsp.to_json_string()
|
1667
1667
|
try:
|
1668
1668
|
json_obj = json.loads(result)
|
@@ -1681,7 +1681,7 @@ def doDescribeLiveDomainCert(args, parsed_globals):
|
|
1681
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1682
|
|
1683
1683
|
|
1684
|
-
def
|
1684
|
+
def doDescribeVisitTopSumInfoList(args, parsed_globals):
|
1685
1685
|
g_param = parse_global_arg(parsed_globals)
|
1686
1686
|
|
1687
1687
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1710,11 +1710,11 @@ def doAddLiveWatermark(args, parsed_globals):
|
|
1710
1710
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
1711
|
client._sdkVersion += ("_CLI_" + __version__)
|
1712
1712
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
-
model = models.
|
1713
|
+
model = models.DescribeVisitTopSumInfoListRequest()
|
1714
1714
|
model.from_json_string(json.dumps(args))
|
1715
1715
|
start_time = time.time()
|
1716
1716
|
while True:
|
1717
|
-
rsp = client.
|
1717
|
+
rsp = client.DescribeVisitTopSumInfoList(model)
|
1718
1718
|
result = rsp.to_json_string()
|
1719
1719
|
try:
|
1720
1720
|
json_obj = json.loads(result)
|
@@ -1733,7 +1733,7 @@ def doAddLiveWatermark(args, parsed_globals):
|
|
1733
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
1734
|
|
1735
1735
|
|
1736
|
-
def
|
1736
|
+
def doModifyLiveRecordTemplate(args, parsed_globals):
|
1737
1737
|
g_param = parse_global_arg(parsed_globals)
|
1738
1738
|
|
1739
1739
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1762,11 +1762,11 @@ def doDescribeAreaBillBandwidthAndFluxList(args, parsed_globals):
|
|
1762
1762
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
1763
|
client._sdkVersion += ("_CLI_" + __version__)
|
1764
1764
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
-
model = models.
|
1765
|
+
model = models.ModifyLiveRecordTemplateRequest()
|
1766
1766
|
model.from_json_string(json.dumps(args))
|
1767
1767
|
start_time = time.time()
|
1768
1768
|
while True:
|
1769
|
-
rsp = client.
|
1769
|
+
rsp = client.ModifyLiveRecordTemplate(model)
|
1770
1770
|
result = rsp.to_json_string()
|
1771
1771
|
try:
|
1772
1772
|
json_obj = json.loads(result)
|
@@ -1785,7 +1785,7 @@ def doDescribeAreaBillBandwidthAndFluxList(args, parsed_globals):
|
|
1785
1785
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
1786
|
|
1787
1787
|
|
1788
|
-
def
|
1788
|
+
def doAddCasterLayoutInfo(args, parsed_globals):
|
1789
1789
|
g_param = parse_global_arg(parsed_globals)
|
1790
1790
|
|
1791
1791
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1814,11 +1814,11 @@ def doDeleteLiveWatermarkRule(args, parsed_globals):
|
|
1814
1814
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
1815
|
client._sdkVersion += ("_CLI_" + __version__)
|
1816
1816
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
-
model = models.
|
1817
|
+
model = models.AddCasterLayoutInfoRequest()
|
1818
1818
|
model.from_json_string(json.dumps(args))
|
1819
1819
|
start_time = time.time()
|
1820
1820
|
while True:
|
1821
|
-
rsp = client.
|
1821
|
+
rsp = client.AddCasterLayoutInfo(model)
|
1822
1822
|
result = rsp.to_json_string()
|
1823
1823
|
try:
|
1824
1824
|
json_obj = json.loads(result)
|
@@ -1837,7 +1837,7 @@ def doDeleteLiveWatermarkRule(args, parsed_globals):
|
|
1837
1837
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1838
|
|
1839
1839
|
|
1840
|
-
def
|
1840
|
+
def doDescribeLiveDomainCert(args, parsed_globals):
|
1841
1841
|
g_param = parse_global_arg(parsed_globals)
|
1842
1842
|
|
1843
1843
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +1866,11 @@ def doDescribeDeliverBandwidthList(args, parsed_globals):
|
|
1866
1866
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
1867
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
1868
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
1869
|
+
model = models.DescribeLiveDomainCertRequest()
|
1870
1870
|
model.from_json_string(json.dumps(args))
|
1871
1871
|
start_time = time.time()
|
1872
1872
|
while True:
|
1873
|
-
rsp = client.
|
1873
|
+
rsp = client.DescribeLiveDomainCert(model)
|
1874
1874
|
result = rsp.to_json_string()
|
1875
1875
|
try:
|
1876
1876
|
json_obj = json.loads(result)
|
@@ -1889,7 +1889,7 @@ def doDescribeDeliverBandwidthList(args, parsed_globals):
|
|
1889
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1890
|
|
1891
1891
|
|
1892
|
-
def
|
1892
|
+
def doAddLiveWatermark(args, parsed_globals):
|
1893
1893
|
g_param = parse_global_arg(parsed_globals)
|
1894
1894
|
|
1895
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +1918,11 @@ def doDeleteLiveCallbackRule(args, parsed_globals):
|
|
1918
1918
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
1921
|
+
model = models.AddLiveWatermarkRequest()
|
1922
1922
|
model.from_json_string(json.dumps(args))
|
1923
1923
|
start_time = time.time()
|
1924
1924
|
while True:
|
1925
|
-
rsp = client.
|
1925
|
+
rsp = client.AddLiveWatermark(model)
|
1926
1926
|
result = rsp.to_json_string()
|
1927
1927
|
try:
|
1928
1928
|
json_obj = json.loads(result)
|
@@ -1941,7 +1941,7 @@ def doDeleteLiveCallbackRule(args, parsed_globals):
|
|
1941
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1942
1942
|
|
1943
1943
|
|
1944
|
-
def
|
1944
|
+
def doDescribeAreaBillBandwidthAndFluxList(args, parsed_globals):
|
1945
1945
|
g_param = parse_global_arg(parsed_globals)
|
1946
1946
|
|
1947
1947
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1970,11 +1970,11 @@ def doModifyPullStreamConfig(args, parsed_globals):
|
|
1970
1970
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
1971
1971
|
client._sdkVersion += ("_CLI_" + __version__)
|
1972
1972
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1973
|
-
model = models.
|
1973
|
+
model = models.DescribeAreaBillBandwidthAndFluxListRequest()
|
1974
1974
|
model.from_json_string(json.dumps(args))
|
1975
1975
|
start_time = time.time()
|
1976
1976
|
while True:
|
1977
|
-
rsp = client.
|
1977
|
+
rsp = client.DescribeAreaBillBandwidthAndFluxList(model)
|
1978
1978
|
result = rsp.to_json_string()
|
1979
1979
|
try:
|
1980
1980
|
json_obj = json.loads(result)
|
@@ -1993,7 +1993,7 @@ def doModifyPullStreamConfig(args, parsed_globals):
|
|
1993
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
1994
|
|
1995
1995
|
|
1996
|
-
def
|
1996
|
+
def doDescribeLiveTranscodeRules(args, parsed_globals):
|
1997
1997
|
g_param = parse_global_arg(parsed_globals)
|
1998
1998
|
|
1999
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2022,11 +2022,11 @@ def doCreateLiveSnapshotTemplate(args, parsed_globals):
|
|
2022
2022
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
2024
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
-
model = models.
|
2025
|
+
model = models.DescribeLiveTranscodeRulesRequest()
|
2026
2026
|
model.from_json_string(json.dumps(args))
|
2027
2027
|
start_time = time.time()
|
2028
2028
|
while True:
|
2029
|
-
rsp = client.
|
2029
|
+
rsp = client.DescribeLiveTranscodeRules(model)
|
2030
2030
|
result = rsp.to_json_string()
|
2031
2031
|
try:
|
2032
2032
|
json_obj = json.loads(result)
|
@@ -2045,7 +2045,7 @@ def doCreateLiveSnapshotTemplate(args, parsed_globals):
|
|
2045
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2046
2046
|
|
2047
2047
|
|
2048
|
-
def
|
2048
|
+
def doStopCasterPvw(args, parsed_globals):
|
2049
2049
|
g_param = parse_global_arg(parsed_globals)
|
2050
2050
|
|
2051
2051
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2074,11 +2074,11 @@ def doDescribeLiveStreamOnlineList(args, parsed_globals):
|
|
2074
2074
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2075
2075
|
client._sdkVersion += ("_CLI_" + __version__)
|
2076
2076
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2077
|
-
model = models.
|
2077
|
+
model = models.StopCasterPvwRequest()
|
2078
2078
|
model.from_json_string(json.dumps(args))
|
2079
2079
|
start_time = time.time()
|
2080
2080
|
while True:
|
2081
|
-
rsp = client.
|
2081
|
+
rsp = client.StopCasterPvw(model)
|
2082
2082
|
result = rsp.to_json_string()
|
2083
2083
|
try:
|
2084
2084
|
json_obj = json.loads(result)
|
@@ -2097,7 +2097,7 @@ def doDescribeLiveStreamOnlineList(args, parsed_globals):
|
|
2097
2097
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
2098
|
|
2099
2099
|
|
2100
|
-
def
|
2100
|
+
def doDeleteCasterLayoutInfo(args, parsed_globals):
|
2101
2101
|
g_param = parse_global_arg(parsed_globals)
|
2102
2102
|
|
2103
2103
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2126,11 +2126,11 @@ def doEnableOptimalSwitching(args, parsed_globals):
|
|
2126
2126
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2127
2127
|
client._sdkVersion += ("_CLI_" + __version__)
|
2128
2128
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2129
|
-
model = models.
|
2129
|
+
model = models.DeleteCasterLayoutInfoRequest()
|
2130
2130
|
model.from_json_string(json.dumps(args))
|
2131
2131
|
start_time = time.time()
|
2132
2132
|
while True:
|
2133
|
-
rsp = client.
|
2133
|
+
rsp = client.DeleteCasterLayoutInfo(model)
|
2134
2134
|
result = rsp.to_json_string()
|
2135
2135
|
try:
|
2136
2136
|
json_obj = json.loads(result)
|
@@ -2149,7 +2149,7 @@ def doEnableOptimalSwitching(args, parsed_globals):
|
|
2149
2149
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
2150
|
|
2151
2151
|
|
2152
|
-
def
|
2152
|
+
def doDeleteLiveWatermarkRule(args, parsed_globals):
|
2153
2153
|
g_param = parse_global_arg(parsed_globals)
|
2154
2154
|
|
2155
2155
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2178,11 +2178,11 @@ def doDeleteLiveCallbackTemplate(args, parsed_globals):
|
|
2178
2178
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2179
2179
|
client._sdkVersion += ("_CLI_" + __version__)
|
2180
2180
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2181
|
-
model = models.
|
2181
|
+
model = models.DeleteLiveWatermarkRuleRequest()
|
2182
2182
|
model.from_json_string(json.dumps(args))
|
2183
2183
|
start_time = time.time()
|
2184
2184
|
while True:
|
2185
|
-
rsp = client.
|
2185
|
+
rsp = client.DeleteLiveWatermarkRule(model)
|
2186
2186
|
result = rsp.to_json_string()
|
2187
2187
|
try:
|
2188
2188
|
json_obj = json.loads(result)
|
@@ -2201,7 +2201,7 @@ def doDeleteLiveCallbackTemplate(args, parsed_globals):
|
|
2201
2201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2202
|
|
2203
2203
|
|
2204
|
-
def
|
2204
|
+
def doDescribeDeliverBandwidthList(args, parsed_globals):
|
2205
2205
|
g_param = parse_global_arg(parsed_globals)
|
2206
2206
|
|
2207
2207
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2230,11 +2230,11 @@ def doDescribeCasterPlayUrl(args, parsed_globals):
|
|
2230
2230
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
2231
|
client._sdkVersion += ("_CLI_" + __version__)
|
2232
2232
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
-
model = models.
|
2233
|
+
model = models.DescribeDeliverBandwidthListRequest()
|
2234
2234
|
model.from_json_string(json.dumps(args))
|
2235
2235
|
start_time = time.time()
|
2236
2236
|
while True:
|
2237
|
-
rsp = client.
|
2237
|
+
rsp = client.DescribeDeliverBandwidthList(model)
|
2238
2238
|
result = rsp.to_json_string()
|
2239
2239
|
try:
|
2240
2240
|
json_obj = json.loads(result)
|
@@ -2253,7 +2253,7 @@ def doDescribeCasterPlayUrl(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 doDeleteLiveCallbackRule(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 doDescribeLivePushAuthKey(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.DeleteLiveCallbackRuleRequest()
|
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.DeleteLiveCallbackRule(model)
|
2290
2290
|
result = rsp.to_json_string()
|
2291
2291
|
try:
|
2292
2292
|
json_obj = json.loads(result)
|
@@ -2305,7 +2305,7 @@ def doDescribeLivePushAuthKey(args, parsed_globals):
|
|
2305
2305
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2306
2306
|
|
2307
2307
|
|
2308
|
-
def
|
2308
|
+
def doModifyPullStreamConfig(args, parsed_globals):
|
2309
2309
|
g_param = parse_global_arg(parsed_globals)
|
2310
2310
|
|
2311
2311
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2334,11 +2334,11 @@ def doDeletePullStreamConfig(args, parsed_globals):
|
|
2334
2334
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2335
2335
|
client._sdkVersion += ("_CLI_" + __version__)
|
2336
2336
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2337
|
-
model = models.
|
2337
|
+
model = models.ModifyPullStreamConfigRequest()
|
2338
2338
|
model.from_json_string(json.dumps(args))
|
2339
2339
|
start_time = time.time()
|
2340
2340
|
while True:
|
2341
|
-
rsp = client.
|
2341
|
+
rsp = client.ModifyPullStreamConfig(model)
|
2342
2342
|
result = rsp.to_json_string()
|
2343
2343
|
try:
|
2344
2344
|
json_obj = json.loads(result)
|
@@ -2357,7 +2357,7 @@ def doDeletePullStreamConfig(args, parsed_globals):
|
|
2357
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
2358
|
|
2359
2359
|
|
2360
|
-
def
|
2360
|
+
def doCreateLiveSnapshotTemplate(args, parsed_globals):
|
2361
2361
|
g_param = parse_global_arg(parsed_globals)
|
2362
2362
|
|
2363
2363
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2386,11 +2386,11 @@ def doDescribeTimeShiftRecordDetail(args, parsed_globals):
|
|
2386
2386
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2387
2387
|
client._sdkVersion += ("_CLI_" + __version__)
|
2388
2388
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2389
|
-
model = models.
|
2389
|
+
model = models.CreateLiveSnapshotTemplateRequest()
|
2390
2390
|
model.from_json_string(json.dumps(args))
|
2391
2391
|
start_time = time.time()
|
2392
2392
|
while True:
|
2393
|
-
rsp = client.
|
2393
|
+
rsp = client.CreateLiveSnapshotTemplate(model)
|
2394
2394
|
result = rsp.to_json_string()
|
2395
2395
|
try:
|
2396
2396
|
json_obj = json.loads(result)
|
@@ -2409,7 +2409,7 @@ def doDescribeTimeShiftRecordDetail(args, parsed_globals):
|
|
2409
2409
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2410
2410
|
|
2411
2411
|
|
2412
|
-
def
|
2412
|
+
def doDescribeLiveStreamOnlineList(args, parsed_globals):
|
2413
2413
|
g_param = parse_global_arg(parsed_globals)
|
2414
2414
|
|
2415
2415
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2438,11 +2438,11 @@ def doDescribeLiveRecordTemplate(args, parsed_globals):
|
|
2438
2438
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2439
2439
|
client._sdkVersion += ("_CLI_" + __version__)
|
2440
2440
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2441
|
-
model = models.
|
2441
|
+
model = models.DescribeLiveStreamOnlineListRequest()
|
2442
2442
|
model.from_json_string(json.dumps(args))
|
2443
2443
|
start_time = time.time()
|
2444
2444
|
while True:
|
2445
|
-
rsp = client.
|
2445
|
+
rsp = client.DescribeLiveStreamOnlineList(model)
|
2446
2446
|
result = rsp.to_json_string()
|
2447
2447
|
try:
|
2448
2448
|
json_obj = json.loads(result)
|
@@ -2461,7 +2461,7 @@ def doDescribeLiveRecordTemplate(args, parsed_globals):
|
|
2461
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2462
2462
|
|
2463
2463
|
|
2464
|
-
def
|
2464
|
+
def doEnableOptimalSwitching(args, parsed_globals):
|
2465
2465
|
g_param = parse_global_arg(parsed_globals)
|
2466
2466
|
|
2467
2467
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2490,11 +2490,11 @@ def doDescribeLivePadTemplate(args, parsed_globals):
|
|
2490
2490
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2491
2491
|
client._sdkVersion += ("_CLI_" + __version__)
|
2492
2492
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2493
|
-
model = models.
|
2493
|
+
model = models.EnableOptimalSwitchingRequest()
|
2494
2494
|
model.from_json_string(json.dumps(args))
|
2495
2495
|
start_time = time.time()
|
2496
2496
|
while True:
|
2497
|
-
rsp = client.
|
2497
|
+
rsp = client.EnableOptimalSwitching(model)
|
2498
2498
|
result = rsp.to_json_string()
|
2499
2499
|
try:
|
2500
2500
|
json_obj = json.loads(result)
|
@@ -2513,7 +2513,7 @@ def doDescribeLivePadTemplate(args, parsed_globals):
|
|
2513
2513
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
2514
|
|
2515
2515
|
|
2516
|
-
def
|
2516
|
+
def doDeleteLiveCallbackTemplate(args, parsed_globals):
|
2517
2517
|
g_param = parse_global_arg(parsed_globals)
|
2518
2518
|
|
2519
2519
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2542,11 +2542,11 @@ def doStopScreenshotTask(args, parsed_globals):
|
|
2542
2542
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2543
2543
|
client._sdkVersion += ("_CLI_" + __version__)
|
2544
2544
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2545
|
-
model = models.
|
2545
|
+
model = models.DeleteLiveCallbackTemplateRequest()
|
2546
2546
|
model.from_json_string(json.dumps(args))
|
2547
2547
|
start_time = time.time()
|
2548
2548
|
while True:
|
2549
|
-
rsp = client.
|
2549
|
+
rsp = client.DeleteLiveCallbackTemplate(model)
|
2550
2550
|
result = rsp.to_json_string()
|
2551
2551
|
try:
|
2552
2552
|
json_obj = json.loads(result)
|
@@ -2565,7 +2565,7 @@ def doStopScreenshotTask(args, parsed_globals):
|
|
2565
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2566
2566
|
|
2567
2567
|
|
2568
|
-
def
|
2568
|
+
def doDescribeCasterPlayUrl(args, parsed_globals):
|
2569
2569
|
g_param = parse_global_arg(parsed_globals)
|
2570
2570
|
|
2571
2571
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2594,11 +2594,11 @@ def doDescribeMonitorReport(args, parsed_globals):
|
|
2594
2594
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2595
2595
|
client._sdkVersion += ("_CLI_" + __version__)
|
2596
2596
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2597
|
-
model = models.
|
2597
|
+
model = models.DescribeCasterPlayUrlRequest()
|
2598
2598
|
model.from_json_string(json.dumps(args))
|
2599
2599
|
start_time = time.time()
|
2600
2600
|
while True:
|
2601
|
-
rsp = client.
|
2601
|
+
rsp = client.DescribeCasterPlayUrl(model)
|
2602
2602
|
result = rsp.to_json_string()
|
2603
2603
|
try:
|
2604
2604
|
json_obj = json.loads(result)
|
@@ -2617,7 +2617,7 @@ def doDescribeMonitorReport(args, parsed_globals):
|
|
2617
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
2618
|
|
2619
2619
|
|
2620
|
-
def
|
2620
|
+
def doDescribeLivePushAuthKey(args, parsed_globals):
|
2621
2621
|
g_param = parse_global_arg(parsed_globals)
|
2622
2622
|
|
2623
2623
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2646,11 +2646,11 @@ def doCreateCommonMixStream(args, parsed_globals):
|
|
2646
2646
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2647
2647
|
client._sdkVersion += ("_CLI_" + __version__)
|
2648
2648
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2649
|
-
model = models.
|
2649
|
+
model = models.DescribeLivePushAuthKeyRequest()
|
2650
2650
|
model.from_json_string(json.dumps(args))
|
2651
2651
|
start_time = time.time()
|
2652
2652
|
while True:
|
2653
|
-
rsp = client.
|
2653
|
+
rsp = client.DescribeLivePushAuthKey(model)
|
2654
2654
|
result = rsp.to_json_string()
|
2655
2655
|
try:
|
2656
2656
|
json_obj = json.loads(result)
|
@@ -2669,7 +2669,7 @@ def doCreateCommonMixStream(args, parsed_globals):
|
|
2669
2669
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
2670
|
|
2671
2671
|
|
2672
|
-
def
|
2672
|
+
def doDeletePullStreamConfig(args, parsed_globals):
|
2673
2673
|
g_param = parse_global_arg(parsed_globals)
|
2674
2674
|
|
2675
2675
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2698,11 +2698,11 @@ def doDescribeLiveStreamMonitor(args, parsed_globals):
|
|
2698
2698
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2699
2699
|
client._sdkVersion += ("_CLI_" + __version__)
|
2700
2700
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2701
|
-
model = models.
|
2701
|
+
model = models.DeletePullStreamConfigRequest()
|
2702
2702
|
model.from_json_string(json.dumps(args))
|
2703
2703
|
start_time = time.time()
|
2704
2704
|
while True:
|
2705
|
-
rsp = client.
|
2705
|
+
rsp = client.DeletePullStreamConfig(model)
|
2706
2706
|
result = rsp.to_json_string()
|
2707
2707
|
try:
|
2708
2708
|
json_obj = json.loads(result)
|
@@ -2721,7 +2721,7 @@ def doDescribeLiveStreamMonitor(args, parsed_globals):
|
|
2721
2721
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2722
2722
|
|
2723
2723
|
|
2724
|
-
def
|
2724
|
+
def doDescribeTimeShiftRecordDetail(args, parsed_globals):
|
2725
2725
|
g_param = parse_global_arg(parsed_globals)
|
2726
2726
|
|
2727
2727
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2750,11 +2750,11 @@ def doDeleteLiveWatermark(args, parsed_globals):
|
|
2750
2750
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
2751
|
client._sdkVersion += ("_CLI_" + __version__)
|
2752
2752
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
-
model = models.
|
2753
|
+
model = models.DescribeTimeShiftRecordDetailRequest()
|
2754
2754
|
model.from_json_string(json.dumps(args))
|
2755
2755
|
start_time = time.time()
|
2756
2756
|
while True:
|
2757
|
-
rsp = client.
|
2757
|
+
rsp = client.DescribeTimeShiftRecordDetail(model)
|
2758
2758
|
result = rsp.to_json_string()
|
2759
2759
|
try:
|
2760
2760
|
json_obj = json.loads(result)
|
@@ -2773,7 +2773,7 @@ def doDeleteLiveWatermark(args, parsed_globals):
|
|
2773
2773
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
2774
|
|
2775
2775
|
|
2776
|
-
def
|
2776
|
+
def doDescribeLiveRecordTemplate(args, parsed_globals):
|
2777
2777
|
g_param = parse_global_arg(parsed_globals)
|
2778
2778
|
|
2779
2779
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2802,11 +2802,11 @@ def doModifyCaster(args, parsed_globals):
|
|
2802
2802
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2803
2803
|
client._sdkVersion += ("_CLI_" + __version__)
|
2804
2804
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2805
|
-
model = models.
|
2805
|
+
model = models.DescribeLiveRecordTemplateRequest()
|
2806
2806
|
model.from_json_string(json.dumps(args))
|
2807
2807
|
start_time = time.time()
|
2808
2808
|
while True:
|
2809
|
-
rsp = client.
|
2809
|
+
rsp = client.DescribeLiveRecordTemplate(model)
|
2810
2810
|
result = rsp.to_json_string()
|
2811
2811
|
try:
|
2812
2812
|
json_obj = json.loads(result)
|
@@ -2825,7 +2825,7 @@ def doModifyCaster(args, parsed_globals):
|
|
2825
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
2826
|
|
2827
2827
|
|
2828
|
-
def
|
2828
|
+
def doDescribeLivePadTemplate(args, parsed_globals):
|
2829
2829
|
g_param = parse_global_arg(parsed_globals)
|
2830
2830
|
|
2831
2831
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2854,11 +2854,11 @@ def doDescribeLiveDomainCertBindings(args, parsed_globals):
|
|
2854
2854
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
2856
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
-
model = models.
|
2857
|
+
model = models.DescribeLivePadTemplateRequest()
|
2858
2858
|
model.from_json_string(json.dumps(args))
|
2859
2859
|
start_time = time.time()
|
2860
2860
|
while True:
|
2861
|
-
rsp = client.
|
2861
|
+
rsp = client.DescribeLivePadTemplate(model)
|
2862
2862
|
result = rsp.to_json_string()
|
2863
2863
|
try:
|
2864
2864
|
json_obj = json.loads(result)
|
@@ -2877,7 +2877,7 @@ def doDescribeLiveDomainCertBindings(args, parsed_globals):
|
|
2877
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2878
|
|
2879
2879
|
|
2880
|
-
def
|
2880
|
+
def doStopScreenshotTask(args, parsed_globals):
|
2881
2881
|
g_param = parse_global_arg(parsed_globals)
|
2882
2882
|
|
2883
2883
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2906,11 +2906,11 @@ def doDescribePlayErrorCodeSumInfoList(args, parsed_globals):
|
|
2906
2906
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
2907
|
client._sdkVersion += ("_CLI_" + __version__)
|
2908
2908
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
-
model = models.
|
2909
|
+
model = models.StopScreenshotTaskRequest()
|
2910
2910
|
model.from_json_string(json.dumps(args))
|
2911
2911
|
start_time = time.time()
|
2912
2912
|
while True:
|
2913
|
-
rsp = client.
|
2913
|
+
rsp = client.StopScreenshotTask(model)
|
2914
2914
|
result = rsp.to_json_string()
|
2915
2915
|
try:
|
2916
2916
|
json_obj = json.loads(result)
|
@@ -2929,7 +2929,7 @@ def doDescribePlayErrorCodeSumInfoList(args, parsed_globals):
|
|
2929
2929
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
2930
|
|
2931
2931
|
|
2932
|
-
def
|
2932
|
+
def doDescribeMonitorReport(args, parsed_globals):
|
2933
2933
|
g_param = parse_global_arg(parsed_globals)
|
2934
2934
|
|
2935
2935
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2958,11 +2958,11 @@ def doAddDelayLiveStream(args, parsed_globals):
|
|
2958
2958
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
2959
|
client._sdkVersion += ("_CLI_" + __version__)
|
2960
2960
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
-
model = models.
|
2961
|
+
model = models.DescribeMonitorReportRequest()
|
2962
2962
|
model.from_json_string(json.dumps(args))
|
2963
2963
|
start_time = time.time()
|
2964
2964
|
while True:
|
2965
|
-
rsp = client.
|
2965
|
+
rsp = client.DescribeMonitorReport(model)
|
2966
2966
|
result = rsp.to_json_string()
|
2967
2967
|
try:
|
2968
2968
|
json_obj = json.loads(result)
|
@@ -2981,7 +2981,7 @@ def doAddDelayLiveStream(args, parsed_globals):
|
|
2981
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
2982
|
|
2983
2983
|
|
2984
|
-
def
|
2984
|
+
def doCreateCommonMixStream(args, parsed_globals):
|
2985
2985
|
g_param = parse_global_arg(parsed_globals)
|
2986
2986
|
|
2987
2987
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3010,11 +3010,11 @@ def doDescribeUploadStreamNums(args, parsed_globals):
|
|
3010
3010
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3011
3011
|
client._sdkVersion += ("_CLI_" + __version__)
|
3012
3012
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3013
|
-
model = models.
|
3013
|
+
model = models.CreateCommonMixStreamRequest()
|
3014
3014
|
model.from_json_string(json.dumps(args))
|
3015
3015
|
start_time = time.time()
|
3016
3016
|
while True:
|
3017
|
-
rsp = client.
|
3017
|
+
rsp = client.CreateCommonMixStream(model)
|
3018
3018
|
result = rsp.to_json_string()
|
3019
3019
|
try:
|
3020
3020
|
json_obj = json.loads(result)
|
@@ -3033,7 +3033,7 @@ def doDescribeUploadStreamNums(args, parsed_globals):
|
|
3033
3033
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
3034
|
|
3035
3035
|
|
3036
|
-
def
|
3036
|
+
def doDescribeLiveStreamMonitor(args, parsed_globals):
|
3037
3037
|
g_param = parse_global_arg(parsed_globals)
|
3038
3038
|
|
3039
3039
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3062,11 +3062,11 @@ def doDescribeStreamDayPlayInfoList(args, parsed_globals):
|
|
3062
3062
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3063
3063
|
client._sdkVersion += ("_CLI_" + __version__)
|
3064
3064
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3065
|
-
model = models.
|
3065
|
+
model = models.DescribeLiveStreamMonitorRequest()
|
3066
3066
|
model.from_json_string(json.dumps(args))
|
3067
3067
|
start_time = time.time()
|
3068
3068
|
while True:
|
3069
|
-
rsp = client.
|
3069
|
+
rsp = client.DescribeLiveStreamMonitor(model)
|
3070
3070
|
result = rsp.to_json_string()
|
3071
3071
|
try:
|
3072
3072
|
json_obj = json.loads(result)
|
@@ -3085,7 +3085,7 @@ def doDescribeStreamDayPlayInfoList(args, parsed_globals):
|
|
3085
3085
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3086
3086
|
|
3087
3087
|
|
3088
|
-
def
|
3088
|
+
def doDeleteLiveWatermark(args, parsed_globals):
|
3089
3089
|
g_param = parse_global_arg(parsed_globals)
|
3090
3090
|
|
3091
3091
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3114,11 +3114,11 @@ def doModifyLivePlayDomain(args, parsed_globals):
|
|
3114
3114
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3115
3115
|
client._sdkVersion += ("_CLI_" + __version__)
|
3116
3116
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3117
|
-
model = models.
|
3117
|
+
model = models.DeleteLiveWatermarkRequest()
|
3118
3118
|
model.from_json_string(json.dumps(args))
|
3119
3119
|
start_time = time.time()
|
3120
3120
|
while True:
|
3121
|
-
rsp = client.
|
3121
|
+
rsp = client.DeleteLiveWatermark(model)
|
3122
3122
|
result = rsp.to_json_string()
|
3123
3123
|
try:
|
3124
3124
|
json_obj = json.loads(result)
|
@@ -3137,7 +3137,7 @@ def doModifyLivePlayDomain(args, parsed_globals):
|
|
3137
3137
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3138
3138
|
|
3139
3139
|
|
3140
|
-
def
|
3140
|
+
def doModifyCaster(args, parsed_globals):
|
3141
3141
|
g_param = parse_global_arg(parsed_globals)
|
3142
3142
|
|
3143
3143
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3166,11 +3166,11 @@ def doModifyLiveTranscodeTemplate(args, parsed_globals):
|
|
3166
3166
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3167
3167
|
client._sdkVersion += ("_CLI_" + __version__)
|
3168
3168
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3169
|
-
model = models.
|
3169
|
+
model = models.ModifyCasterRequest()
|
3170
3170
|
model.from_json_string(json.dumps(args))
|
3171
3171
|
start_time = time.time()
|
3172
3172
|
while True:
|
3173
|
-
rsp = client.
|
3173
|
+
rsp = client.ModifyCaster(model)
|
3174
3174
|
result = rsp.to_json_string()
|
3175
3175
|
try:
|
3176
3176
|
json_obj = json.loads(result)
|
@@ -3189,7 +3189,7 @@ def doModifyLiveTranscodeTemplate(args, parsed_globals):
|
|
3189
3189
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3190
3190
|
|
3191
3191
|
|
3192
|
-
def
|
3192
|
+
def doDescribeLiveDomainCertBindings(args, parsed_globals):
|
3193
3193
|
g_param = parse_global_arg(parsed_globals)
|
3194
3194
|
|
3195
3195
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3218,11 +3218,11 @@ def doDeleteLiveTranscodeRule(args, parsed_globals):
|
|
3218
3218
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3219
3219
|
client._sdkVersion += ("_CLI_" + __version__)
|
3220
3220
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3221
|
-
model = models.
|
3221
|
+
model = models.DescribeLiveDomainCertBindingsRequest()
|
3222
3222
|
model.from_json_string(json.dumps(args))
|
3223
3223
|
start_time = time.time()
|
3224
3224
|
while True:
|
3225
|
-
rsp = client.
|
3225
|
+
rsp = client.DescribeLiveDomainCertBindings(model)
|
3226
3226
|
result = rsp.to_json_string()
|
3227
3227
|
try:
|
3228
3228
|
json_obj = json.loads(result)
|
@@ -3241,7 +3241,839 @@ def doDeleteLiveTranscodeRule(args, parsed_globals):
|
|
3241
3241
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3242
3242
|
|
3243
3243
|
|
3244
|
-
def
|
3244
|
+
def doDescribePlayErrorCodeSumInfoList(args, parsed_globals):
|
3245
|
+
g_param = parse_global_arg(parsed_globals)
|
3246
|
+
|
3247
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3248
|
+
cred = credential.CVMRoleCredential()
|
3249
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3250
|
+
cred = credential.STSAssumeRoleCredential(
|
3251
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3252
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3253
|
+
)
|
3254
|
+
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):
|
3255
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3256
|
+
else:
|
3257
|
+
cred = credential.Credential(
|
3258
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3259
|
+
)
|
3260
|
+
http_profile = HttpProfile(
|
3261
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3262
|
+
reqMethod="POST",
|
3263
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3264
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3265
|
+
)
|
3266
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3267
|
+
if g_param[OptionsDefine.Language]:
|
3268
|
+
profile.language = g_param[OptionsDefine.Language]
|
3269
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3270
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3271
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3272
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3273
|
+
model = models.DescribePlayErrorCodeSumInfoListRequest()
|
3274
|
+
model.from_json_string(json.dumps(args))
|
3275
|
+
start_time = time.time()
|
3276
|
+
while True:
|
3277
|
+
rsp = client.DescribePlayErrorCodeSumInfoList(model)
|
3278
|
+
result = rsp.to_json_string()
|
3279
|
+
try:
|
3280
|
+
json_obj = json.loads(result)
|
3281
|
+
except TypeError as e:
|
3282
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3283
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3284
|
+
break
|
3285
|
+
cur_time = time.time()
|
3286
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3287
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3288
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3289
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3290
|
+
else:
|
3291
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3292
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3293
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3294
|
+
|
3295
|
+
|
3296
|
+
def doAddDelayLiveStream(args, parsed_globals):
|
3297
|
+
g_param = parse_global_arg(parsed_globals)
|
3298
|
+
|
3299
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3300
|
+
cred = credential.CVMRoleCredential()
|
3301
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3302
|
+
cred = credential.STSAssumeRoleCredential(
|
3303
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3304
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3305
|
+
)
|
3306
|
+
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):
|
3307
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3308
|
+
else:
|
3309
|
+
cred = credential.Credential(
|
3310
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3311
|
+
)
|
3312
|
+
http_profile = HttpProfile(
|
3313
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3314
|
+
reqMethod="POST",
|
3315
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3316
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3317
|
+
)
|
3318
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3319
|
+
if g_param[OptionsDefine.Language]:
|
3320
|
+
profile.language = g_param[OptionsDefine.Language]
|
3321
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3322
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3323
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3324
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3325
|
+
model = models.AddDelayLiveStreamRequest()
|
3326
|
+
model.from_json_string(json.dumps(args))
|
3327
|
+
start_time = time.time()
|
3328
|
+
while True:
|
3329
|
+
rsp = client.AddDelayLiveStream(model)
|
3330
|
+
result = rsp.to_json_string()
|
3331
|
+
try:
|
3332
|
+
json_obj = json.loads(result)
|
3333
|
+
except TypeError as e:
|
3334
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3335
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3336
|
+
break
|
3337
|
+
cur_time = time.time()
|
3338
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3339
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3340
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3341
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3342
|
+
else:
|
3343
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3344
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3345
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3346
|
+
|
3347
|
+
|
3348
|
+
def doDescribeUploadStreamNums(args, parsed_globals):
|
3349
|
+
g_param = parse_global_arg(parsed_globals)
|
3350
|
+
|
3351
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3352
|
+
cred = credential.CVMRoleCredential()
|
3353
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3354
|
+
cred = credential.STSAssumeRoleCredential(
|
3355
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3356
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3357
|
+
)
|
3358
|
+
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):
|
3359
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3360
|
+
else:
|
3361
|
+
cred = credential.Credential(
|
3362
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3363
|
+
)
|
3364
|
+
http_profile = HttpProfile(
|
3365
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3366
|
+
reqMethod="POST",
|
3367
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3368
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3369
|
+
)
|
3370
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3371
|
+
if g_param[OptionsDefine.Language]:
|
3372
|
+
profile.language = g_param[OptionsDefine.Language]
|
3373
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3374
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3375
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3376
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3377
|
+
model = models.DescribeUploadStreamNumsRequest()
|
3378
|
+
model.from_json_string(json.dumps(args))
|
3379
|
+
start_time = time.time()
|
3380
|
+
while True:
|
3381
|
+
rsp = client.DescribeUploadStreamNums(model)
|
3382
|
+
result = rsp.to_json_string()
|
3383
|
+
try:
|
3384
|
+
json_obj = json.loads(result)
|
3385
|
+
except TypeError as e:
|
3386
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3387
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3388
|
+
break
|
3389
|
+
cur_time = time.time()
|
3390
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3391
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3392
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3393
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3394
|
+
else:
|
3395
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3396
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3397
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3398
|
+
|
3399
|
+
|
3400
|
+
def doDescribeStreamDayPlayInfoList(args, parsed_globals):
|
3401
|
+
g_param = parse_global_arg(parsed_globals)
|
3402
|
+
|
3403
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3404
|
+
cred = credential.CVMRoleCredential()
|
3405
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3406
|
+
cred = credential.STSAssumeRoleCredential(
|
3407
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3408
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3409
|
+
)
|
3410
|
+
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):
|
3411
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3412
|
+
else:
|
3413
|
+
cred = credential.Credential(
|
3414
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3415
|
+
)
|
3416
|
+
http_profile = HttpProfile(
|
3417
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3418
|
+
reqMethod="POST",
|
3419
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3420
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3421
|
+
)
|
3422
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3423
|
+
if g_param[OptionsDefine.Language]:
|
3424
|
+
profile.language = g_param[OptionsDefine.Language]
|
3425
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3426
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3427
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3428
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3429
|
+
model = models.DescribeStreamDayPlayInfoListRequest()
|
3430
|
+
model.from_json_string(json.dumps(args))
|
3431
|
+
start_time = time.time()
|
3432
|
+
while True:
|
3433
|
+
rsp = client.DescribeStreamDayPlayInfoList(model)
|
3434
|
+
result = rsp.to_json_string()
|
3435
|
+
try:
|
3436
|
+
json_obj = json.loads(result)
|
3437
|
+
except TypeError as e:
|
3438
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3439
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3440
|
+
break
|
3441
|
+
cur_time = time.time()
|
3442
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3443
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3444
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3445
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3446
|
+
else:
|
3447
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3448
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3449
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3450
|
+
|
3451
|
+
|
3452
|
+
def doModifyLivePlayDomain(args, parsed_globals):
|
3453
|
+
g_param = parse_global_arg(parsed_globals)
|
3454
|
+
|
3455
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3456
|
+
cred = credential.CVMRoleCredential()
|
3457
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3458
|
+
cred = credential.STSAssumeRoleCredential(
|
3459
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3460
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3461
|
+
)
|
3462
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3463
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3464
|
+
else:
|
3465
|
+
cred = credential.Credential(
|
3466
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3467
|
+
)
|
3468
|
+
http_profile = HttpProfile(
|
3469
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3470
|
+
reqMethod="POST",
|
3471
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3472
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3473
|
+
)
|
3474
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3475
|
+
if g_param[OptionsDefine.Language]:
|
3476
|
+
profile.language = g_param[OptionsDefine.Language]
|
3477
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3478
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3479
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3480
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3481
|
+
model = models.ModifyLivePlayDomainRequest()
|
3482
|
+
model.from_json_string(json.dumps(args))
|
3483
|
+
start_time = time.time()
|
3484
|
+
while True:
|
3485
|
+
rsp = client.ModifyLivePlayDomain(model)
|
3486
|
+
result = rsp.to_json_string()
|
3487
|
+
try:
|
3488
|
+
json_obj = json.loads(result)
|
3489
|
+
except TypeError as e:
|
3490
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3491
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3492
|
+
break
|
3493
|
+
cur_time = time.time()
|
3494
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3495
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3496
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3497
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3498
|
+
else:
|
3499
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3500
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3501
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
|
+
|
3503
|
+
|
3504
|
+
def doModifyLiveTranscodeTemplate(args, parsed_globals):
|
3505
|
+
g_param = parse_global_arg(parsed_globals)
|
3506
|
+
|
3507
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3508
|
+
cred = credential.CVMRoleCredential()
|
3509
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3510
|
+
cred = credential.STSAssumeRoleCredential(
|
3511
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3512
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3513
|
+
)
|
3514
|
+
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):
|
3515
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3516
|
+
else:
|
3517
|
+
cred = credential.Credential(
|
3518
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3519
|
+
)
|
3520
|
+
http_profile = HttpProfile(
|
3521
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3522
|
+
reqMethod="POST",
|
3523
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3524
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3525
|
+
)
|
3526
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3527
|
+
if g_param[OptionsDefine.Language]:
|
3528
|
+
profile.language = g_param[OptionsDefine.Language]
|
3529
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3530
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3531
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3532
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3533
|
+
model = models.ModifyLiveTranscodeTemplateRequest()
|
3534
|
+
model.from_json_string(json.dumps(args))
|
3535
|
+
start_time = time.time()
|
3536
|
+
while True:
|
3537
|
+
rsp = client.ModifyLiveTranscodeTemplate(model)
|
3538
|
+
result = rsp.to_json_string()
|
3539
|
+
try:
|
3540
|
+
json_obj = json.loads(result)
|
3541
|
+
except TypeError as e:
|
3542
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3543
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3544
|
+
break
|
3545
|
+
cur_time = time.time()
|
3546
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3547
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3548
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3549
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3550
|
+
else:
|
3551
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3552
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3553
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
|
+
|
3555
|
+
|
3556
|
+
def doDeleteLiveTranscodeRule(args, parsed_globals):
|
3557
|
+
g_param = parse_global_arg(parsed_globals)
|
3558
|
+
|
3559
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3560
|
+
cred = credential.CVMRoleCredential()
|
3561
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3562
|
+
cred = credential.STSAssumeRoleCredential(
|
3563
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3564
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3565
|
+
)
|
3566
|
+
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):
|
3567
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3568
|
+
else:
|
3569
|
+
cred = credential.Credential(
|
3570
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3571
|
+
)
|
3572
|
+
http_profile = HttpProfile(
|
3573
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3574
|
+
reqMethod="POST",
|
3575
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3576
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3577
|
+
)
|
3578
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3579
|
+
if g_param[OptionsDefine.Language]:
|
3580
|
+
profile.language = g_param[OptionsDefine.Language]
|
3581
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3582
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3583
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3584
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3585
|
+
model = models.DeleteLiveTranscodeRuleRequest()
|
3586
|
+
model.from_json_string(json.dumps(args))
|
3587
|
+
start_time = time.time()
|
3588
|
+
while True:
|
3589
|
+
rsp = client.DeleteLiveTranscodeRule(model)
|
3590
|
+
result = rsp.to_json_string()
|
3591
|
+
try:
|
3592
|
+
json_obj = json.loads(result)
|
3593
|
+
except TypeError as e:
|
3594
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3595
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3596
|
+
break
|
3597
|
+
cur_time = time.time()
|
3598
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3599
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3600
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3601
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3602
|
+
else:
|
3603
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3604
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3605
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3606
|
+
|
3607
|
+
|
3608
|
+
def doDescribeLiveTranscodeTotalInfo(args, parsed_globals):
|
3609
|
+
g_param = parse_global_arg(parsed_globals)
|
3610
|
+
|
3611
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3612
|
+
cred = credential.CVMRoleCredential()
|
3613
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3614
|
+
cred = credential.STSAssumeRoleCredential(
|
3615
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3616
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3617
|
+
)
|
3618
|
+
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):
|
3619
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3620
|
+
else:
|
3621
|
+
cred = credential.Credential(
|
3622
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3623
|
+
)
|
3624
|
+
http_profile = HttpProfile(
|
3625
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3626
|
+
reqMethod="POST",
|
3627
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3628
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3629
|
+
)
|
3630
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3631
|
+
if g_param[OptionsDefine.Language]:
|
3632
|
+
profile.language = g_param[OptionsDefine.Language]
|
3633
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3634
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3635
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3636
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3637
|
+
model = models.DescribeLiveTranscodeTotalInfoRequest()
|
3638
|
+
model.from_json_string(json.dumps(args))
|
3639
|
+
start_time = time.time()
|
3640
|
+
while True:
|
3641
|
+
rsp = client.DescribeLiveTranscodeTotalInfo(model)
|
3642
|
+
result = rsp.to_json_string()
|
3643
|
+
try:
|
3644
|
+
json_obj = json.loads(result)
|
3645
|
+
except TypeError as e:
|
3646
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3647
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3648
|
+
break
|
3649
|
+
cur_time = time.time()
|
3650
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3651
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3652
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3653
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3654
|
+
else:
|
3655
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3656
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3657
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3658
|
+
|
3659
|
+
|
3660
|
+
def doDeleteLiveSnapshotRule(args, parsed_globals):
|
3661
|
+
g_param = parse_global_arg(parsed_globals)
|
3662
|
+
|
3663
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3664
|
+
cred = credential.CVMRoleCredential()
|
3665
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3666
|
+
cred = credential.STSAssumeRoleCredential(
|
3667
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3668
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3669
|
+
)
|
3670
|
+
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):
|
3671
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3672
|
+
else:
|
3673
|
+
cred = credential.Credential(
|
3674
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3675
|
+
)
|
3676
|
+
http_profile = HttpProfile(
|
3677
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3678
|
+
reqMethod="POST",
|
3679
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3680
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3681
|
+
)
|
3682
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3683
|
+
if g_param[OptionsDefine.Language]:
|
3684
|
+
profile.language = g_param[OptionsDefine.Language]
|
3685
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3686
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3687
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3688
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3689
|
+
model = models.DeleteLiveSnapshotRuleRequest()
|
3690
|
+
model.from_json_string(json.dumps(args))
|
3691
|
+
start_time = time.time()
|
3692
|
+
while True:
|
3693
|
+
rsp = client.DeleteLiveSnapshotRule(model)
|
3694
|
+
result = rsp.to_json_string()
|
3695
|
+
try:
|
3696
|
+
json_obj = json.loads(result)
|
3697
|
+
except TypeError as e:
|
3698
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3699
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3700
|
+
break
|
3701
|
+
cur_time = time.time()
|
3702
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3703
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3704
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3705
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3706
|
+
else:
|
3707
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3708
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3709
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3710
|
+
|
3711
|
+
|
3712
|
+
def doDeleteLivePullStreamTask(args, parsed_globals):
|
3713
|
+
g_param = parse_global_arg(parsed_globals)
|
3714
|
+
|
3715
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3716
|
+
cred = credential.CVMRoleCredential()
|
3717
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3718
|
+
cred = credential.STSAssumeRoleCredential(
|
3719
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3720
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3721
|
+
)
|
3722
|
+
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):
|
3723
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3724
|
+
else:
|
3725
|
+
cred = credential.Credential(
|
3726
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3727
|
+
)
|
3728
|
+
http_profile = HttpProfile(
|
3729
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3730
|
+
reqMethod="POST",
|
3731
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3732
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3733
|
+
)
|
3734
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3735
|
+
if g_param[OptionsDefine.Language]:
|
3736
|
+
profile.language = g_param[OptionsDefine.Language]
|
3737
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3738
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3739
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3740
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3741
|
+
model = models.DeleteLivePullStreamTaskRequest()
|
3742
|
+
model.from_json_string(json.dumps(args))
|
3743
|
+
start_time = time.time()
|
3744
|
+
while True:
|
3745
|
+
rsp = client.DeleteLivePullStreamTask(model)
|
3746
|
+
result = rsp.to_json_string()
|
3747
|
+
try:
|
3748
|
+
json_obj = json.loads(result)
|
3749
|
+
except TypeError as e:
|
3750
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3751
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3752
|
+
break
|
3753
|
+
cur_time = time.time()
|
3754
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3755
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3756
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3757
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3758
|
+
else:
|
3759
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3760
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3761
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
|
+
|
3763
|
+
|
3764
|
+
def doDescribeLiveForbidStreamList(args, parsed_globals):
|
3765
|
+
g_param = parse_global_arg(parsed_globals)
|
3766
|
+
|
3767
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3768
|
+
cred = credential.CVMRoleCredential()
|
3769
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3770
|
+
cred = credential.STSAssumeRoleCredential(
|
3771
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3772
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3773
|
+
)
|
3774
|
+
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):
|
3775
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3776
|
+
else:
|
3777
|
+
cred = credential.Credential(
|
3778
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3779
|
+
)
|
3780
|
+
http_profile = HttpProfile(
|
3781
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3782
|
+
reqMethod="POST",
|
3783
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3784
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3785
|
+
)
|
3786
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3787
|
+
if g_param[OptionsDefine.Language]:
|
3788
|
+
profile.language = g_param[OptionsDefine.Language]
|
3789
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3790
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3791
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3792
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3793
|
+
model = models.DescribeLiveForbidStreamListRequest()
|
3794
|
+
model.from_json_string(json.dumps(args))
|
3795
|
+
start_time = time.time()
|
3796
|
+
while True:
|
3797
|
+
rsp = client.DescribeLiveForbidStreamList(model)
|
3798
|
+
result = rsp.to_json_string()
|
3799
|
+
try:
|
3800
|
+
json_obj = json.loads(result)
|
3801
|
+
except TypeError as e:
|
3802
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3803
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3804
|
+
break
|
3805
|
+
cur_time = time.time()
|
3806
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3807
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3808
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3809
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3810
|
+
else:
|
3811
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3812
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3813
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
|
+
|
3815
|
+
|
3816
|
+
def doModifyLivePadTemplate(args, parsed_globals):
|
3817
|
+
g_param = parse_global_arg(parsed_globals)
|
3818
|
+
|
3819
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3820
|
+
cred = credential.CVMRoleCredential()
|
3821
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3822
|
+
cred = credential.STSAssumeRoleCredential(
|
3823
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3824
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3825
|
+
)
|
3826
|
+
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):
|
3827
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3828
|
+
else:
|
3829
|
+
cred = credential.Credential(
|
3830
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3831
|
+
)
|
3832
|
+
http_profile = HttpProfile(
|
3833
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3834
|
+
reqMethod="POST",
|
3835
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3836
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3837
|
+
)
|
3838
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3839
|
+
if g_param[OptionsDefine.Language]:
|
3840
|
+
profile.language = g_param[OptionsDefine.Language]
|
3841
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3842
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3844
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
+
model = models.ModifyLivePadTemplateRequest()
|
3846
|
+
model.from_json_string(json.dumps(args))
|
3847
|
+
start_time = time.time()
|
3848
|
+
while True:
|
3849
|
+
rsp = client.ModifyLivePadTemplate(model)
|
3850
|
+
result = rsp.to_json_string()
|
3851
|
+
try:
|
3852
|
+
json_obj = json.loads(result)
|
3853
|
+
except TypeError as e:
|
3854
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3855
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3856
|
+
break
|
3857
|
+
cur_time = time.time()
|
3858
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3859
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3860
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3861
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3862
|
+
else:
|
3863
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3864
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3865
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
|
+
|
3867
|
+
|
3868
|
+
def doCreateLivePullStreamTask(args, parsed_globals):
|
3869
|
+
g_param = parse_global_arg(parsed_globals)
|
3870
|
+
|
3871
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3872
|
+
cred = credential.CVMRoleCredential()
|
3873
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3874
|
+
cred = credential.STSAssumeRoleCredential(
|
3875
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3876
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3877
|
+
)
|
3878
|
+
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):
|
3879
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3880
|
+
else:
|
3881
|
+
cred = credential.Credential(
|
3882
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3883
|
+
)
|
3884
|
+
http_profile = HttpProfile(
|
3885
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3886
|
+
reqMethod="POST",
|
3887
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3888
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3889
|
+
)
|
3890
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3891
|
+
if g_param[OptionsDefine.Language]:
|
3892
|
+
profile.language = g_param[OptionsDefine.Language]
|
3893
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3894
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3895
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3896
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3897
|
+
model = models.CreateLivePullStreamTaskRequest()
|
3898
|
+
model.from_json_string(json.dumps(args))
|
3899
|
+
start_time = time.time()
|
3900
|
+
while True:
|
3901
|
+
rsp = client.CreateLivePullStreamTask(model)
|
3902
|
+
result = rsp.to_json_string()
|
3903
|
+
try:
|
3904
|
+
json_obj = json.loads(result)
|
3905
|
+
except TypeError as e:
|
3906
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3907
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3908
|
+
break
|
3909
|
+
cur_time = time.time()
|
3910
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3911
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3912
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3913
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3914
|
+
else:
|
3915
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3916
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3917
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
|
+
|
3919
|
+
|
3920
|
+
def doDescribeLiveCert(args, parsed_globals):
|
3921
|
+
g_param = parse_global_arg(parsed_globals)
|
3922
|
+
|
3923
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3924
|
+
cred = credential.CVMRoleCredential()
|
3925
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3926
|
+
cred = credential.STSAssumeRoleCredential(
|
3927
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3928
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3929
|
+
)
|
3930
|
+
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):
|
3931
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3932
|
+
else:
|
3933
|
+
cred = credential.Credential(
|
3934
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3935
|
+
)
|
3936
|
+
http_profile = HttpProfile(
|
3937
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3938
|
+
reqMethod="POST",
|
3939
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3940
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3941
|
+
)
|
3942
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3943
|
+
if g_param[OptionsDefine.Language]:
|
3944
|
+
profile.language = g_param[OptionsDefine.Language]
|
3945
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3946
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3948
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
+
model = models.DescribeLiveCertRequest()
|
3950
|
+
model.from_json_string(json.dumps(args))
|
3951
|
+
start_time = time.time()
|
3952
|
+
while True:
|
3953
|
+
rsp = client.DescribeLiveCert(model)
|
3954
|
+
result = rsp.to_json_string()
|
3955
|
+
try:
|
3956
|
+
json_obj = json.loads(result)
|
3957
|
+
except TypeError as e:
|
3958
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3959
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3960
|
+
break
|
3961
|
+
cur_time = time.time()
|
3962
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3963
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3964
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3965
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3966
|
+
else:
|
3967
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3968
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3969
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
|
+
|
3971
|
+
|
3972
|
+
def doModifyLiveDomainCertBindings(args, parsed_globals):
|
3973
|
+
g_param = parse_global_arg(parsed_globals)
|
3974
|
+
|
3975
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3976
|
+
cred = credential.CVMRoleCredential()
|
3977
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3978
|
+
cred = credential.STSAssumeRoleCredential(
|
3979
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3980
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3981
|
+
)
|
3982
|
+
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):
|
3983
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3984
|
+
else:
|
3985
|
+
cred = credential.Credential(
|
3986
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3987
|
+
)
|
3988
|
+
http_profile = HttpProfile(
|
3989
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3990
|
+
reqMethod="POST",
|
3991
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3992
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3993
|
+
)
|
3994
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3995
|
+
if g_param[OptionsDefine.Language]:
|
3996
|
+
profile.language = g_param[OptionsDefine.Language]
|
3997
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3998
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3999
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4000
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4001
|
+
model = models.ModifyLiveDomainCertBindingsRequest()
|
4002
|
+
model.from_json_string(json.dumps(args))
|
4003
|
+
start_time = time.time()
|
4004
|
+
while True:
|
4005
|
+
rsp = client.ModifyLiveDomainCertBindings(model)
|
4006
|
+
result = rsp.to_json_string()
|
4007
|
+
try:
|
4008
|
+
json_obj = json.loads(result)
|
4009
|
+
except TypeError as e:
|
4010
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4011
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4012
|
+
break
|
4013
|
+
cur_time = time.time()
|
4014
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4015
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4016
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4017
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4018
|
+
else:
|
4019
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4020
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4021
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4022
|
+
|
4023
|
+
|
4024
|
+
def doDescribeDeliverLogDownList(args, parsed_globals):
|
4025
|
+
g_param = parse_global_arg(parsed_globals)
|
4026
|
+
|
4027
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4028
|
+
cred = credential.CVMRoleCredential()
|
4029
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4030
|
+
cred = credential.STSAssumeRoleCredential(
|
4031
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4032
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4033
|
+
)
|
4034
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
4035
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4036
|
+
else:
|
4037
|
+
cred = credential.Credential(
|
4038
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4039
|
+
)
|
4040
|
+
http_profile = HttpProfile(
|
4041
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4042
|
+
reqMethod="POST",
|
4043
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4044
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4045
|
+
)
|
4046
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4047
|
+
if g_param[OptionsDefine.Language]:
|
4048
|
+
profile.language = g_param[OptionsDefine.Language]
|
4049
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4050
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4051
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4052
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4053
|
+
model = models.DescribeDeliverLogDownListRequest()
|
4054
|
+
model.from_json_string(json.dumps(args))
|
4055
|
+
start_time = time.time()
|
4056
|
+
while True:
|
4057
|
+
rsp = client.DescribeDeliverLogDownList(model)
|
4058
|
+
result = rsp.to_json_string()
|
4059
|
+
try:
|
4060
|
+
json_obj = json.loads(result)
|
4061
|
+
except TypeError as e:
|
4062
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4063
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4064
|
+
break
|
4065
|
+
cur_time = time.time()
|
4066
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4067
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4068
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4069
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4070
|
+
else:
|
4071
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4072
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4073
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4074
|
+
|
4075
|
+
|
4076
|
+
def doDescribeLiveDomains(args, parsed_globals):
|
3245
4077
|
g_param = parse_global_arg(parsed_globals)
|
3246
4078
|
|
3247
4079
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3270,11 +4102,11 @@ def doDescribeLiveTranscodeTotalInfo(args, parsed_globals):
|
|
3270
4102
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3271
4103
|
client._sdkVersion += ("_CLI_" + __version__)
|
3272
4104
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3273
|
-
model = models.
|
4105
|
+
model = models.DescribeLiveDomainsRequest()
|
3274
4106
|
model.from_json_string(json.dumps(args))
|
3275
4107
|
start_time = time.time()
|
3276
4108
|
while True:
|
3277
|
-
rsp = client.
|
4109
|
+
rsp = client.DescribeLiveDomains(model)
|
3278
4110
|
result = rsp.to_json_string()
|
3279
4111
|
try:
|
3280
4112
|
json_obj = json.loads(result)
|
@@ -3293,7 +4125,7 @@ def doDescribeLiveTranscodeTotalInfo(args, parsed_globals):
|
|
3293
4125
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3294
4126
|
|
3295
4127
|
|
3296
|
-
def
|
4128
|
+
def doDescribePullTransformPushInfo(args, parsed_globals):
|
3297
4129
|
g_param = parse_global_arg(parsed_globals)
|
3298
4130
|
|
3299
4131
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3322,11 +4154,11 @@ def doDeleteLiveSnapshotRule(args, parsed_globals):
|
|
3322
4154
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3323
4155
|
client._sdkVersion += ("_CLI_" + __version__)
|
3324
4156
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3325
|
-
model = models.
|
4157
|
+
model = models.DescribePullTransformPushInfoRequest()
|
3326
4158
|
model.from_json_string(json.dumps(args))
|
3327
4159
|
start_time = time.time()
|
3328
4160
|
while True:
|
3329
|
-
rsp = client.
|
4161
|
+
rsp = client.DescribePullTransformPushInfo(model)
|
3330
4162
|
result = rsp.to_json_string()
|
3331
4163
|
try:
|
3332
4164
|
json_obj = json.loads(result)
|
@@ -3345,7 +4177,7 @@ def doDeleteLiveSnapshotRule(args, parsed_globals):
|
|
3345
4177
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3346
4178
|
|
3347
4179
|
|
3348
|
-
def
|
4180
|
+
def doCreateLiveCallbackTemplate(args, parsed_globals):
|
3349
4181
|
g_param = parse_global_arg(parsed_globals)
|
3350
4182
|
|
3351
4183
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3374,11 +4206,11 @@ def doDeleteLivePullStreamTask(args, parsed_globals):
|
|
3374
4206
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3375
4207
|
client._sdkVersion += ("_CLI_" + __version__)
|
3376
4208
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3377
|
-
model = models.
|
4209
|
+
model = models.CreateLiveCallbackTemplateRequest()
|
3378
4210
|
model.from_json_string(json.dumps(args))
|
3379
4211
|
start_time = time.time()
|
3380
4212
|
while True:
|
3381
|
-
rsp = client.
|
4213
|
+
rsp = client.CreateLiveCallbackTemplate(model)
|
3382
4214
|
result = rsp.to_json_string()
|
3383
4215
|
try:
|
3384
4216
|
json_obj = json.loads(result)
|
@@ -3397,7 +4229,7 @@ def doDeleteLivePullStreamTask(args, parsed_globals):
|
|
3397
4229
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3398
4230
|
|
3399
4231
|
|
3400
|
-
def
|
4232
|
+
def doCreateCasterPgm(args, parsed_globals):
|
3401
4233
|
g_param = parse_global_arg(parsed_globals)
|
3402
4234
|
|
3403
4235
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3426,11 +4258,11 @@ def doDescribeLiveForbidStreamList(args, parsed_globals):
|
|
3426
4258
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3427
4259
|
client._sdkVersion += ("_CLI_" + __version__)
|
3428
4260
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3429
|
-
model = models.
|
4261
|
+
model = models.CreateCasterPgmRequest()
|
3430
4262
|
model.from_json_string(json.dumps(args))
|
3431
4263
|
start_time = time.time()
|
3432
4264
|
while True:
|
3433
|
-
rsp = client.
|
4265
|
+
rsp = client.CreateCasterPgm(model)
|
3434
4266
|
result = rsp.to_json_string()
|
3435
4267
|
try:
|
3436
4268
|
json_obj = json.loads(result)
|
@@ -3449,7 +4281,7 @@ def doDescribeLiveForbidStreamList(args, parsed_globals):
|
|
3449
4281
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3450
4282
|
|
3451
4283
|
|
3452
|
-
def
|
4284
|
+
def doModifyCasterOutputInfo(args, parsed_globals):
|
3453
4285
|
g_param = parse_global_arg(parsed_globals)
|
3454
4286
|
|
3455
4287
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3478,11 +4310,11 @@ def doModifyLivePadTemplate(args, parsed_globals):
|
|
3478
4310
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3479
4311
|
client._sdkVersion += ("_CLI_" + __version__)
|
3480
4312
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3481
|
-
model = models.
|
4313
|
+
model = models.ModifyCasterOutputInfoRequest()
|
3482
4314
|
model.from_json_string(json.dumps(args))
|
3483
4315
|
start_time = time.time()
|
3484
4316
|
while True:
|
3485
|
-
rsp = client.
|
4317
|
+
rsp = client.ModifyCasterOutputInfo(model)
|
3486
4318
|
result = rsp.to_json_string()
|
3487
4319
|
try:
|
3488
4320
|
json_obj = json.loads(result)
|
@@ -3501,7 +4333,7 @@ def doModifyLivePadTemplate(args, parsed_globals):
|
|
3501
4333
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
4334
|
|
3503
4335
|
|
3504
|
-
def
|
4336
|
+
def doCreateCasterPvw(args, parsed_globals):
|
3505
4337
|
g_param = parse_global_arg(parsed_globals)
|
3506
4338
|
|
3507
4339
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3530,11 +4362,11 @@ def doCreateLivePullStreamTask(args, parsed_globals):
|
|
3530
4362
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3531
4363
|
client._sdkVersion += ("_CLI_" + __version__)
|
3532
4364
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3533
|
-
model = models.
|
4365
|
+
model = models.CreateCasterPvwRequest()
|
3534
4366
|
model.from_json_string(json.dumps(args))
|
3535
4367
|
start_time = time.time()
|
3536
4368
|
while True:
|
3537
|
-
rsp = client.
|
4369
|
+
rsp = client.CreateCasterPvw(model)
|
3538
4370
|
result = rsp.to_json_string()
|
3539
4371
|
try:
|
3540
4372
|
json_obj = json.loads(result)
|
@@ -3553,7 +4385,7 @@ def doCreateLivePullStreamTask(args, parsed_globals):
|
|
3553
4385
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
4386
|
|
3555
4387
|
|
3556
|
-
def
|
4388
|
+
def doResumeLiveStream(args, parsed_globals):
|
3557
4389
|
g_param = parse_global_arg(parsed_globals)
|
3558
4390
|
|
3559
4391
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3582,11 +4414,11 @@ def doDescribeLiveCert(args, parsed_globals):
|
|
3582
4414
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3583
4415
|
client._sdkVersion += ("_CLI_" + __version__)
|
3584
4416
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3585
|
-
model = models.
|
4417
|
+
model = models.ResumeLiveStreamRequest()
|
3586
4418
|
model.from_json_string(json.dumps(args))
|
3587
4419
|
start_time = time.time()
|
3588
4420
|
while True:
|
3589
|
-
rsp = client.
|
4421
|
+
rsp = client.ResumeLiveStream(model)
|
3590
4422
|
result = rsp.to_json_string()
|
3591
4423
|
try:
|
3592
4424
|
json_obj = json.loads(result)
|
@@ -3605,7 +4437,7 @@ def doDescribeLiveCert(args, parsed_globals):
|
|
3605
4437
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3606
4438
|
|
3607
4439
|
|
3608
|
-
def
|
4440
|
+
def doModifyLivePullStreamTask(args, parsed_globals):
|
3609
4441
|
g_param = parse_global_arg(parsed_globals)
|
3610
4442
|
|
3611
4443
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3634,11 +4466,11 @@ def doModifyLiveDomainCertBindings(args, parsed_globals):
|
|
3634
4466
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3635
4467
|
client._sdkVersion += ("_CLI_" + __version__)
|
3636
4468
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3637
|
-
model = models.
|
4469
|
+
model = models.ModifyLivePullStreamTaskRequest()
|
3638
4470
|
model.from_json_string(json.dumps(args))
|
3639
4471
|
start_time = time.time()
|
3640
4472
|
while True:
|
3641
|
-
rsp = client.
|
4473
|
+
rsp = client.ModifyLivePullStreamTask(model)
|
3642
4474
|
result = rsp.to_json_string()
|
3643
4475
|
try:
|
3644
4476
|
json_obj = json.loads(result)
|
@@ -3657,7 +4489,7 @@ def doModifyLiveDomainCertBindings(args, parsed_globals):
|
|
3657
4489
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3658
4490
|
|
3659
4491
|
|
3660
|
-
def
|
4492
|
+
def doDeleteLiveDomain(args, parsed_globals):
|
3661
4493
|
g_param = parse_global_arg(parsed_globals)
|
3662
4494
|
|
3663
4495
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3686,11 +4518,11 @@ def doDescribeDeliverLogDownList(args, parsed_globals):
|
|
3686
4518
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3687
4519
|
client._sdkVersion += ("_CLI_" + __version__)
|
3688
4520
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3689
|
-
model = models.
|
4521
|
+
model = models.DeleteLiveDomainRequest()
|
3690
4522
|
model.from_json_string(json.dumps(args))
|
3691
4523
|
start_time = time.time()
|
3692
4524
|
while True:
|
3693
|
-
rsp = client.
|
4525
|
+
rsp = client.DeleteLiveDomain(model)
|
3694
4526
|
result = rsp.to_json_string()
|
3695
4527
|
try:
|
3696
4528
|
json_obj = json.loads(result)
|
@@ -3709,7 +4541,7 @@ def doDescribeDeliverLogDownList(args, parsed_globals):
|
|
3709
4541
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3710
4542
|
|
3711
4543
|
|
3712
|
-
def
|
4544
|
+
def doModifyLiveCallbackTemplate(args, parsed_globals):
|
3713
4545
|
g_param = parse_global_arg(parsed_globals)
|
3714
4546
|
|
3715
4547
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3738,11 +4570,11 @@ def doDescribeLiveDomains(args, parsed_globals):
|
|
3738
4570
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3739
4571
|
client._sdkVersion += ("_CLI_" + __version__)
|
3740
4572
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3741
|
-
model = models.
|
4573
|
+
model = models.ModifyLiveCallbackTemplateRequest()
|
3742
4574
|
model.from_json_string(json.dumps(args))
|
3743
4575
|
start_time = time.time()
|
3744
4576
|
while True:
|
3745
|
-
rsp = client.
|
4577
|
+
rsp = client.ModifyLiveCallbackTemplate(model)
|
3746
4578
|
result = rsp.to_json_string()
|
3747
4579
|
try:
|
3748
4580
|
json_obj = json.loads(result)
|
@@ -3761,7 +4593,7 @@ def doDescribeLiveDomains(args, parsed_globals):
|
|
3761
4593
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
4594
|
|
3763
4595
|
|
3764
|
-
def
|
4596
|
+
def doDeleteLiveTimeShiftTemplate(args, parsed_globals):
|
3765
4597
|
g_param = parse_global_arg(parsed_globals)
|
3766
4598
|
|
3767
4599
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3790,11 +4622,11 @@ def doDescribePullTransformPushInfo(args, parsed_globals):
|
|
3790
4622
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3791
4623
|
client._sdkVersion += ("_CLI_" + __version__)
|
3792
4624
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3793
|
-
model = models.
|
4625
|
+
model = models.DeleteLiveTimeShiftTemplateRequest()
|
3794
4626
|
model.from_json_string(json.dumps(args))
|
3795
4627
|
start_time = time.time()
|
3796
4628
|
while True:
|
3797
|
-
rsp = client.
|
4629
|
+
rsp = client.DeleteLiveTimeShiftTemplate(model)
|
3798
4630
|
result = rsp.to_json_string()
|
3799
4631
|
try:
|
3800
4632
|
json_obj = json.loads(result)
|
@@ -3813,7 +4645,7 @@ def doDescribePullTransformPushInfo(args, parsed_globals):
|
|
3813
4645
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
4646
|
|
3815
4647
|
|
3816
|
-
def
|
4648
|
+
def doDescribeGroupProIspPlayInfoList(args, parsed_globals):
|
3817
4649
|
g_param = parse_global_arg(parsed_globals)
|
3818
4650
|
|
3819
4651
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3842,11 +4674,11 @@ def doCreateLiveCallbackTemplate(args, parsed_globals):
|
|
3842
4674
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
4675
|
client._sdkVersion += ("_CLI_" + __version__)
|
3844
4676
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
-
model = models.
|
4677
|
+
model = models.DescribeGroupProIspPlayInfoListRequest()
|
3846
4678
|
model.from_json_string(json.dumps(args))
|
3847
4679
|
start_time = time.time()
|
3848
4680
|
while True:
|
3849
|
-
rsp = client.
|
4681
|
+
rsp = client.DescribeGroupProIspPlayInfoList(model)
|
3850
4682
|
result = rsp.to_json_string()
|
3851
4683
|
try:
|
3852
4684
|
json_obj = json.loads(result)
|
@@ -3865,7 +4697,7 @@ def doCreateLiveCallbackTemplate(args, parsed_globals):
|
|
3865
4697
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
4698
|
|
3867
4699
|
|
3868
|
-
def
|
4700
|
+
def doDescribeStreamPlayInfoList(args, parsed_globals):
|
3869
4701
|
g_param = parse_global_arg(parsed_globals)
|
3870
4702
|
|
3871
4703
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3894,11 +4726,11 @@ def doResumeLiveStream(args, parsed_globals):
|
|
3894
4726
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3895
4727
|
client._sdkVersion += ("_CLI_" + __version__)
|
3896
4728
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3897
|
-
model = models.
|
4729
|
+
model = models.DescribeStreamPlayInfoListRequest()
|
3898
4730
|
model.from_json_string(json.dumps(args))
|
3899
4731
|
start_time = time.time()
|
3900
4732
|
while True:
|
3901
|
-
rsp = client.
|
4733
|
+
rsp = client.DescribeStreamPlayInfoList(model)
|
3902
4734
|
result = rsp.to_json_string()
|
3903
4735
|
try:
|
3904
4736
|
json_obj = json.loads(result)
|
@@ -3917,7 +4749,7 @@ def doResumeLiveStream(args, parsed_globals):
|
|
3917
4749
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
4750
|
|
3919
4751
|
|
3920
|
-
def
|
4752
|
+
def doDescribeCasterUserStatus(args, parsed_globals):
|
3921
4753
|
g_param = parse_global_arg(parsed_globals)
|
3922
4754
|
|
3923
4755
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3946,11 +4778,11 @@ def doModifyLivePullStreamTask(args, parsed_globals):
|
|
3946
4778
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
4779
|
client._sdkVersion += ("_CLI_" + __version__)
|
3948
4780
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
-
model = models.
|
4781
|
+
model = models.DescribeCasterUserStatusRequest()
|
3950
4782
|
model.from_json_string(json.dumps(args))
|
3951
4783
|
start_time = time.time()
|
3952
4784
|
while True:
|
3953
|
-
rsp = client.
|
4785
|
+
rsp = client.DescribeCasterUserStatus(model)
|
3954
4786
|
result = rsp.to_json_string()
|
3955
4787
|
try:
|
3956
4788
|
json_obj = json.loads(result)
|
@@ -3969,7 +4801,7 @@ def doModifyLivePullStreamTask(args, parsed_globals):
|
|
3969
4801
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
4802
|
|
3971
4803
|
|
3972
|
-
def
|
4804
|
+
def doDescribeCasterLayoutInfos(args, parsed_globals):
|
3973
4805
|
g_param = parse_global_arg(parsed_globals)
|
3974
4806
|
|
3975
4807
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3998,11 +4830,11 @@ def doDeleteLiveDomain(args, parsed_globals):
|
|
3998
4830
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3999
4831
|
client._sdkVersion += ("_CLI_" + __version__)
|
4000
4832
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4001
|
-
model = models.
|
4833
|
+
model = models.DescribeCasterLayoutInfosRequest()
|
4002
4834
|
model.from_json_string(json.dumps(args))
|
4003
4835
|
start_time = time.time()
|
4004
4836
|
while True:
|
4005
|
-
rsp = client.
|
4837
|
+
rsp = client.DescribeCasterLayoutInfos(model)
|
4006
4838
|
result = rsp.to_json_string()
|
4007
4839
|
try:
|
4008
4840
|
json_obj = json.loads(result)
|
@@ -4021,7 +4853,7 @@ def doDeleteLiveDomain(args, parsed_globals):
|
|
4021
4853
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4022
4854
|
|
4023
4855
|
|
4024
|
-
def
|
4856
|
+
def doDescribeLivePullStreamTaskStatus(args, parsed_globals):
|
4025
4857
|
g_param = parse_global_arg(parsed_globals)
|
4026
4858
|
|
4027
4859
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4050,11 +4882,11 @@ def doModifyLiveCallbackTemplate(args, parsed_globals):
|
|
4050
4882
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4051
4883
|
client._sdkVersion += ("_CLI_" + __version__)
|
4052
4884
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4053
|
-
model = models.
|
4885
|
+
model = models.DescribeLivePullStreamTaskStatusRequest()
|
4054
4886
|
model.from_json_string(json.dumps(args))
|
4055
4887
|
start_time = time.time()
|
4056
4888
|
while True:
|
4057
|
-
rsp = client.
|
4889
|
+
rsp = client.DescribeLivePullStreamTaskStatus(model)
|
4058
4890
|
result = rsp.to_json_string()
|
4059
4891
|
try:
|
4060
4892
|
json_obj = json.loads(result)
|
@@ -4073,7 +4905,7 @@ def doModifyLiveCallbackTemplate(args, parsed_globals):
|
|
4073
4905
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4074
4906
|
|
4075
4907
|
|
4076
|
-
def
|
4908
|
+
def doDescribeLiveSnapshotTemplate(args, parsed_globals):
|
4077
4909
|
g_param = parse_global_arg(parsed_globals)
|
4078
4910
|
|
4079
4911
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4102,11 +4934,11 @@ def doDescribeLivePullStreamTasks(args, parsed_globals):
|
|
4102
4934
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4103
4935
|
client._sdkVersion += ("_CLI_" + __version__)
|
4104
4936
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4105
|
-
model = models.
|
4937
|
+
model = models.DescribeLiveSnapshotTemplateRequest()
|
4106
4938
|
model.from_json_string(json.dumps(args))
|
4107
4939
|
start_time = time.time()
|
4108
4940
|
while True:
|
4109
|
-
rsp = client.
|
4941
|
+
rsp = client.DescribeLiveSnapshotTemplate(model)
|
4110
4942
|
result = rsp.to_json_string()
|
4111
4943
|
try:
|
4112
4944
|
json_obj = json.loads(result)
|
@@ -4125,7 +4957,7 @@ def doDescribeLivePullStreamTasks(args, parsed_globals):
|
|
4125
4957
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4126
4958
|
|
4127
4959
|
|
4128
|
-
def
|
4960
|
+
def doDescribeLiveCallbackTemplates(args, parsed_globals):
|
4129
4961
|
g_param = parse_global_arg(parsed_globals)
|
4130
4962
|
|
4131
4963
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4154,11 +4986,11 @@ def doDescribeGroupProIspPlayInfoList(args, parsed_globals):
|
|
4154
4986
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4155
4987
|
client._sdkVersion += ("_CLI_" + __version__)
|
4156
4988
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4157
|
-
model = models.
|
4989
|
+
model = models.DescribeLiveCallbackTemplatesRequest()
|
4158
4990
|
model.from_json_string(json.dumps(args))
|
4159
4991
|
start_time = time.time()
|
4160
4992
|
while True:
|
4161
|
-
rsp = client.
|
4993
|
+
rsp = client.DescribeLiveCallbackTemplates(model)
|
4162
4994
|
result = rsp.to_json_string()
|
4163
4995
|
try:
|
4164
4996
|
json_obj = json.loads(result)
|
@@ -4177,7 +5009,7 @@ def doDescribeGroupProIspPlayInfoList(args, parsed_globals):
|
|
4177
5009
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4178
5010
|
|
4179
5011
|
|
4180
|
-
def
|
5012
|
+
def doStopRecordTask(args, parsed_globals):
|
4181
5013
|
g_param = parse_global_arg(parsed_globals)
|
4182
5014
|
|
4183
5015
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4206,11 +5038,11 @@ def doDescribeStreamPlayInfoList(args, parsed_globals):
|
|
4206
5038
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4207
5039
|
client._sdkVersion += ("_CLI_" + __version__)
|
4208
5040
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4209
|
-
model = models.
|
5041
|
+
model = models.StopRecordTaskRequest()
|
4210
5042
|
model.from_json_string(json.dumps(args))
|
4211
5043
|
start_time = time.time()
|
4212
5044
|
while True:
|
4213
|
-
rsp = client.
|
5045
|
+
rsp = client.StopRecordTask(model)
|
4214
5046
|
result = rsp.to_json_string()
|
4215
5047
|
try:
|
4216
5048
|
json_obj = json.loads(result)
|
@@ -4229,7 +5061,7 @@ def doDescribeStreamPlayInfoList(args, parsed_globals):
|
|
4229
5061
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4230
5062
|
|
4231
5063
|
|
4232
|
-
def
|
5064
|
+
def doModifyLiveTimeShiftTemplate(args, parsed_globals):
|
4233
5065
|
g_param = parse_global_arg(parsed_globals)
|
4234
5066
|
|
4235
5067
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4258,11 +5090,11 @@ def doDescribeCasterUserStatus(args, parsed_globals):
|
|
4258
5090
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4259
5091
|
client._sdkVersion += ("_CLI_" + __version__)
|
4260
5092
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4261
|
-
model = models.
|
5093
|
+
model = models.ModifyLiveTimeShiftTemplateRequest()
|
4262
5094
|
model.from_json_string(json.dumps(args))
|
4263
5095
|
start_time = time.time()
|
4264
5096
|
while True:
|
4265
|
-
rsp = client.
|
5097
|
+
rsp = client.ModifyLiveTimeShiftTemplate(model)
|
4266
5098
|
result = rsp.to_json_string()
|
4267
5099
|
try:
|
4268
5100
|
json_obj = json.loads(result)
|
@@ -4281,7 +5113,7 @@ def doDescribeCasterUserStatus(args, parsed_globals):
|
|
4281
5113
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4282
5114
|
|
4283
5115
|
|
4284
|
-
def
|
5116
|
+
def doDescribeLiveSnapshotTemplates(args, parsed_globals):
|
4285
5117
|
g_param = parse_global_arg(parsed_globals)
|
4286
5118
|
|
4287
5119
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4310,11 +5142,11 @@ def doDescribeLivePullStreamTaskStatus(args, parsed_globals):
|
|
4310
5142
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4311
5143
|
client._sdkVersion += ("_CLI_" + __version__)
|
4312
5144
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4313
|
-
model = models.
|
5145
|
+
model = models.DescribeLiveSnapshotTemplatesRequest()
|
4314
5146
|
model.from_json_string(json.dumps(args))
|
4315
5147
|
start_time = time.time()
|
4316
5148
|
while True:
|
4317
|
-
rsp = client.
|
5149
|
+
rsp = client.DescribeLiveSnapshotTemplates(model)
|
4318
5150
|
result = rsp.to_json_string()
|
4319
5151
|
try:
|
4320
5152
|
json_obj = json.loads(result)
|
@@ -4333,7 +5165,7 @@ def doDescribeLivePullStreamTaskStatus(args, parsed_globals):
|
|
4333
5165
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4334
5166
|
|
4335
5167
|
|
4336
|
-
def
|
5168
|
+
def doDescribeCasterOutputInfos(args, parsed_globals):
|
4337
5169
|
g_param = parse_global_arg(parsed_globals)
|
4338
5170
|
|
4339
5171
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4362,11 +5194,11 @@ def doDescribeLiveSnapshotTemplate(args, parsed_globals):
|
|
4362
5194
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4363
5195
|
client._sdkVersion += ("_CLI_" + __version__)
|
4364
5196
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4365
|
-
model = models.
|
5197
|
+
model = models.DescribeCasterOutputInfosRequest()
|
4366
5198
|
model.from_json_string(json.dumps(args))
|
4367
5199
|
start_time = time.time()
|
4368
5200
|
while True:
|
4369
|
-
rsp = client.
|
5201
|
+
rsp = client.DescribeCasterOutputInfos(model)
|
4370
5202
|
result = rsp.to_json_string()
|
4371
5203
|
try:
|
4372
5204
|
json_obj = json.loads(result)
|
@@ -4385,7 +5217,7 @@ def doDescribeLiveSnapshotTemplate(args, parsed_globals):
|
|
4385
5217
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4386
5218
|
|
4387
5219
|
|
4388
|
-
def
|
5220
|
+
def doStopLiveRecord(args, parsed_globals):
|
4389
5221
|
g_param = parse_global_arg(parsed_globals)
|
4390
5222
|
|
4391
5223
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4414,11 +5246,11 @@ def doDescribeLiveCallbackTemplates(args, parsed_globals):
|
|
4414
5246
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4415
5247
|
client._sdkVersion += ("_CLI_" + __version__)
|
4416
5248
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4417
|
-
model = models.
|
5249
|
+
model = models.StopLiveRecordRequest()
|
4418
5250
|
model.from_json_string(json.dumps(args))
|
4419
5251
|
start_time = time.time()
|
4420
5252
|
while True:
|
4421
|
-
rsp = client.
|
5253
|
+
rsp = client.StopLiveRecord(model)
|
4422
5254
|
result = rsp.to_json_string()
|
4423
5255
|
try:
|
4424
5256
|
json_obj = json.loads(result)
|
@@ -4437,7 +5269,7 @@ def doDescribeLiveCallbackTemplates(args, parsed_globals):
|
|
4437
5269
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4438
5270
|
|
4439
5271
|
|
4440
|
-
def
|
5272
|
+
def doModifyLivePlayAuthKey(args, parsed_globals):
|
4441
5273
|
g_param = parse_global_arg(parsed_globals)
|
4442
5274
|
|
4443
5275
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4466,11 +5298,11 @@ def doStopRecordTask(args, parsed_globals):
|
|
4466
5298
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4467
5299
|
client._sdkVersion += ("_CLI_" + __version__)
|
4468
5300
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4469
|
-
model = models.
|
5301
|
+
model = models.ModifyLivePlayAuthKeyRequest()
|
4470
5302
|
model.from_json_string(json.dumps(args))
|
4471
5303
|
start_time = time.time()
|
4472
5304
|
while True:
|
4473
|
-
rsp = client.
|
5305
|
+
rsp = client.ModifyLivePlayAuthKey(model)
|
4474
5306
|
result = rsp.to_json_string()
|
4475
5307
|
try:
|
4476
5308
|
json_obj = json.loads(result)
|
@@ -4489,7 +5321,7 @@ def doStopRecordTask(args, parsed_globals):
|
|
4489
5321
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4490
5322
|
|
4491
5323
|
|
4492
|
-
def
|
5324
|
+
def doDeleteCaster(args, parsed_globals):
|
4493
5325
|
g_param = parse_global_arg(parsed_globals)
|
4494
5326
|
|
4495
5327
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4518,11 +5350,11 @@ def doModifyLiveTimeShiftTemplate(args, parsed_globals):
|
|
4518
5350
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4519
5351
|
client._sdkVersion += ("_CLI_" + __version__)
|
4520
5352
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4521
|
-
model = models.
|
5353
|
+
model = models.DeleteCasterRequest()
|
4522
5354
|
model.from_json_string(json.dumps(args))
|
4523
5355
|
start_time = time.time()
|
4524
5356
|
while True:
|
4525
|
-
rsp = client.
|
5357
|
+
rsp = client.DeleteCaster(model)
|
4526
5358
|
result = rsp.to_json_string()
|
4527
5359
|
try:
|
4528
5360
|
json_obj = json.loads(result)
|
@@ -4541,7 +5373,7 @@ def doModifyLiveTimeShiftTemplate(args, parsed_globals):
|
|
4541
5373
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
5374
|
|
4543
5375
|
|
4544
|
-
def
|
5376
|
+
def doDescribeLiveTranscodeTemplate(args, parsed_globals):
|
4545
5377
|
g_param = parse_global_arg(parsed_globals)
|
4546
5378
|
|
4547
5379
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4570,11 +5402,11 @@ def doDescribeLiveSnapshotTemplates(args, parsed_globals):
|
|
4570
5402
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4571
5403
|
client._sdkVersion += ("_CLI_" + __version__)
|
4572
5404
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4573
|
-
model = models.
|
5405
|
+
model = models.DescribeLiveTranscodeTemplateRequest()
|
4574
5406
|
model.from_json_string(json.dumps(args))
|
4575
5407
|
start_time = time.time()
|
4576
5408
|
while True:
|
4577
|
-
rsp = client.
|
5409
|
+
rsp = client.DescribeLiveTranscodeTemplate(model)
|
4578
5410
|
result = rsp.to_json_string()
|
4579
5411
|
try:
|
4580
5412
|
json_obj = json.loads(result)
|
@@ -4593,7 +5425,7 @@ def doDescribeLiveSnapshotTemplates(args, parsed_globals):
|
|
4593
5425
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4594
5426
|
|
4595
5427
|
|
4596
|
-
def
|
5428
|
+
def doDescribeScreenShotSheetNumList(args, parsed_globals):
|
4597
5429
|
g_param = parse_global_arg(parsed_globals)
|
4598
5430
|
|
4599
5431
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4622,11 +5454,11 @@ def doCreateLivePadRule(args, parsed_globals):
|
|
4622
5454
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4623
5455
|
client._sdkVersion += ("_CLI_" + __version__)
|
4624
5456
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4625
|
-
model = models.
|
5457
|
+
model = models.DescribeScreenShotSheetNumListRequest()
|
4626
5458
|
model.from_json_string(json.dumps(args))
|
4627
5459
|
start_time = time.time()
|
4628
5460
|
while True:
|
4629
|
-
rsp = client.
|
5461
|
+
rsp = client.DescribeScreenShotSheetNumList(model)
|
4630
5462
|
result = rsp.to_json_string()
|
4631
5463
|
try:
|
4632
5464
|
json_obj = json.loads(result)
|
@@ -4645,7 +5477,7 @@ def doCreateLivePadRule(args, parsed_globals):
|
|
4645
5477
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4646
5478
|
|
4647
5479
|
|
4648
|
-
def
|
5480
|
+
def doUnBindLiveDomainCert(args, parsed_globals):
|
4649
5481
|
g_param = parse_global_arg(parsed_globals)
|
4650
5482
|
|
4651
5483
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4674,11 +5506,11 @@ def doStopLiveRecord(args, parsed_globals):
|
|
4674
5506
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4675
5507
|
client._sdkVersion += ("_CLI_" + __version__)
|
4676
5508
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4677
|
-
model = models.
|
5509
|
+
model = models.UnBindLiveDomainCertRequest()
|
4678
5510
|
model.from_json_string(json.dumps(args))
|
4679
5511
|
start_time = time.time()
|
4680
5512
|
while True:
|
4681
|
-
rsp = client.
|
5513
|
+
rsp = client.UnBindLiveDomainCert(model)
|
4682
5514
|
result = rsp.to_json_string()
|
4683
5515
|
try:
|
4684
5516
|
json_obj = json.loads(result)
|
@@ -4697,7 +5529,7 @@ def doStopLiveRecord(args, parsed_globals):
|
|
4697
5529
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4698
5530
|
|
4699
5531
|
|
4700
|
-
def
|
5532
|
+
def doDeleteRecordTask(args, parsed_globals):
|
4701
5533
|
g_param = parse_global_arg(parsed_globals)
|
4702
5534
|
|
4703
5535
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4726,11 +5558,11 @@ def doModifyLivePlayAuthKey(args, parsed_globals):
|
|
4726
5558
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4727
5559
|
client._sdkVersion += ("_CLI_" + __version__)
|
4728
5560
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4729
|
-
model = models.
|
5561
|
+
model = models.DeleteRecordTaskRequest()
|
4730
5562
|
model.from_json_string(json.dumps(args))
|
4731
5563
|
start_time = time.time()
|
4732
5564
|
while True:
|
4733
|
-
rsp = client.
|
5565
|
+
rsp = client.DeleteRecordTask(model)
|
4734
5566
|
result = rsp.to_json_string()
|
4735
5567
|
try:
|
4736
5568
|
json_obj = json.loads(result)
|
@@ -4749,7 +5581,7 @@ def doModifyLivePlayAuthKey(args, parsed_globals):
|
|
4749
5581
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4750
5582
|
|
4751
5583
|
|
4752
|
-
def
|
5584
|
+
def doDescribeLiveTranscodeDetailInfo(args, parsed_globals):
|
4753
5585
|
g_param = parse_global_arg(parsed_globals)
|
4754
5586
|
|
4755
5587
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4778,11 +5610,11 @@ def doDeleteCaster(args, parsed_globals):
|
|
4778
5610
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4779
5611
|
client._sdkVersion += ("_CLI_" + __version__)
|
4780
5612
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4781
|
-
model = models.
|
5613
|
+
model = models.DescribeLiveTranscodeDetailInfoRequest()
|
4782
5614
|
model.from_json_string(json.dumps(args))
|
4783
5615
|
start_time = time.time()
|
4784
5616
|
while True:
|
4785
|
-
rsp = client.
|
5617
|
+
rsp = client.DescribeLiveTranscodeDetailInfo(model)
|
4786
5618
|
result = rsp.to_json_string()
|
4787
5619
|
try:
|
4788
5620
|
json_obj = json.loads(result)
|
@@ -4801,7 +5633,7 @@ def doDeleteCaster(args, parsed_globals):
|
|
4801
5633
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4802
5634
|
|
4803
5635
|
|
4804
|
-
def
|
5636
|
+
def doDescribeLogDownloadList(args, parsed_globals):
|
4805
5637
|
g_param = parse_global_arg(parsed_globals)
|
4806
5638
|
|
4807
5639
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4830,11 +5662,11 @@ def doDescribeLiveTranscodeTemplate(args, parsed_globals):
|
|
4830
5662
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4831
5663
|
client._sdkVersion += ("_CLI_" + __version__)
|
4832
5664
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4833
|
-
model = models.
|
5665
|
+
model = models.DescribeLogDownloadListRequest()
|
4834
5666
|
model.from_json_string(json.dumps(args))
|
4835
5667
|
start_time = time.time()
|
4836
5668
|
while True:
|
4837
|
-
rsp = client.
|
5669
|
+
rsp = client.DescribeLogDownloadList(model)
|
4838
5670
|
result = rsp.to_json_string()
|
4839
5671
|
try:
|
4840
5672
|
json_obj = json.loads(result)
|
@@ -4853,7 +5685,7 @@ def doDescribeLiveTranscodeTemplate(args, parsed_globals):
|
|
4853
5685
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4854
5686
|
|
4855
5687
|
|
4856
|
-
def
|
5688
|
+
def doAddCasterOutputInfo(args, parsed_globals):
|
4857
5689
|
g_param = parse_global_arg(parsed_globals)
|
4858
5690
|
|
4859
5691
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4882,11 +5714,11 @@ def doDescribeScreenShotSheetNumList(args, parsed_globals):
|
|
4882
5714
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4883
5715
|
client._sdkVersion += ("_CLI_" + __version__)
|
4884
5716
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4885
|
-
model = models.
|
5717
|
+
model = models.AddCasterOutputInfoRequest()
|
4886
5718
|
model.from_json_string(json.dumps(args))
|
4887
5719
|
start_time = time.time()
|
4888
5720
|
while True:
|
4889
|
-
rsp = client.
|
5721
|
+
rsp = client.AddCasterOutputInfo(model)
|
4890
5722
|
result = rsp.to_json_string()
|
4891
5723
|
try:
|
4892
5724
|
json_obj = json.loads(result)
|
@@ -4905,7 +5737,7 @@ def doDescribeScreenShotSheetNumList(args, parsed_globals):
|
|
4905
5737
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4906
5738
|
|
4907
5739
|
|
4908
|
-
def
|
5740
|
+
def doDescribeLiveRecordRules(args, parsed_globals):
|
4909
5741
|
g_param = parse_global_arg(parsed_globals)
|
4910
5742
|
|
4911
5743
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4934,11 +5766,11 @@ def doUnBindLiveDomainCert(args, parsed_globals):
|
|
4934
5766
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4935
5767
|
client._sdkVersion += ("_CLI_" + __version__)
|
4936
5768
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4937
|
-
model = models.
|
5769
|
+
model = models.DescribeLiveRecordRulesRequest()
|
4938
5770
|
model.from_json_string(json.dumps(args))
|
4939
5771
|
start_time = time.time()
|
4940
5772
|
while True:
|
4941
|
-
rsp = client.
|
5773
|
+
rsp = client.DescribeLiveRecordRules(model)
|
4942
5774
|
result = rsp.to_json_string()
|
4943
5775
|
try:
|
4944
5776
|
json_obj = json.loads(result)
|
@@ -4957,7 +5789,7 @@ def doUnBindLiveDomainCert(args, parsed_globals):
|
|
4957
5789
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4958
5790
|
|
4959
5791
|
|
4960
|
-
def
|
5792
|
+
def doCancelCommonMixStream(args, parsed_globals):
|
4961
5793
|
g_param = parse_global_arg(parsed_globals)
|
4962
5794
|
|
4963
5795
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4986,11 +5818,11 @@ def doDeleteRecordTask(args, parsed_globals):
|
|
4986
5818
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4987
5819
|
client._sdkVersion += ("_CLI_" + __version__)
|
4988
5820
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4989
|
-
model = models.
|
5821
|
+
model = models.CancelCommonMixStreamRequest()
|
4990
5822
|
model.from_json_string(json.dumps(args))
|
4991
5823
|
start_time = time.time()
|
4992
5824
|
while True:
|
4993
|
-
rsp = client.
|
5825
|
+
rsp = client.CancelCommonMixStream(model)
|
4994
5826
|
result = rsp.to_json_string()
|
4995
5827
|
try:
|
4996
5828
|
json_obj = json.loads(result)
|
@@ -5009,7 +5841,7 @@ def doDeleteRecordTask(args, parsed_globals):
|
|
5009
5841
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5010
5842
|
|
5011
5843
|
|
5012
|
-
def
|
5844
|
+
def doDescribeLiveXP2PDetailInfoList(args, parsed_globals):
|
5013
5845
|
g_param = parse_global_arg(parsed_globals)
|
5014
5846
|
|
5015
5847
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5038,11 +5870,11 @@ def doDescribeLiveTranscodeDetailInfo(args, parsed_globals):
|
|
5038
5870
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5039
5871
|
client._sdkVersion += ("_CLI_" + __version__)
|
5040
5872
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5041
|
-
model = models.
|
5873
|
+
model = models.DescribeLiveXP2PDetailInfoListRequest()
|
5042
5874
|
model.from_json_string(json.dumps(args))
|
5043
5875
|
start_time = time.time()
|
5044
5876
|
while True:
|
5045
|
-
rsp = client.
|
5877
|
+
rsp = client.DescribeLiveXP2PDetailInfoList(model)
|
5046
5878
|
result = rsp.to_json_string()
|
5047
5879
|
try:
|
5048
5880
|
json_obj = json.loads(result)
|
@@ -5061,7 +5893,7 @@ def doDescribeLiveTranscodeDetailInfo(args, parsed_globals):
|
|
5061
5893
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5062
5894
|
|
5063
5895
|
|
5064
|
-
def
|
5896
|
+
def doDescribeLiveTimeShiftTemplates(args, parsed_globals):
|
5065
5897
|
g_param = parse_global_arg(parsed_globals)
|
5066
5898
|
|
5067
5899
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5090,11 +5922,11 @@ def doDescribeLogDownloadList(args, parsed_globals):
|
|
5090
5922
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5091
5923
|
client._sdkVersion += ("_CLI_" + __version__)
|
5092
5924
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5093
|
-
model = models.
|
5925
|
+
model = models.DescribeLiveTimeShiftTemplatesRequest()
|
5094
5926
|
model.from_json_string(json.dumps(args))
|
5095
5927
|
start_time = time.time()
|
5096
5928
|
while True:
|
5097
|
-
rsp = client.
|
5929
|
+
rsp = client.DescribeLiveTimeShiftTemplates(model)
|
5098
5930
|
result = rsp.to_json_string()
|
5099
5931
|
try:
|
5100
5932
|
json_obj = json.loads(result)
|
@@ -5113,7 +5945,7 @@ def doDescribeLogDownloadList(args, parsed_globals):
|
|
5113
5945
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5114
5946
|
|
5115
5947
|
|
5116
|
-
def
|
5948
|
+
def doModifyCasterLayoutInfo(args, parsed_globals):
|
5117
5949
|
g_param = parse_global_arg(parsed_globals)
|
5118
5950
|
|
5119
5951
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5142,11 +5974,11 @@ def doDescribeLiveRecordRules(args, parsed_globals):
|
|
5142
5974
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5143
5975
|
client._sdkVersion += ("_CLI_" + __version__)
|
5144
5976
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5145
|
-
model = models.
|
5977
|
+
model = models.ModifyCasterLayoutInfoRequest()
|
5146
5978
|
model.from_json_string(json.dumps(args))
|
5147
5979
|
start_time = time.time()
|
5148
5980
|
while True:
|
5149
|
-
rsp = client.
|
5981
|
+
rsp = client.ModifyCasterLayoutInfo(model)
|
5150
5982
|
result = rsp.to_json_string()
|
5151
5983
|
try:
|
5152
5984
|
json_obj = json.loads(result)
|
@@ -5165,7 +5997,7 @@ def doDescribeLiveRecordRules(args, parsed_globals):
|
|
5165
5997
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5166
5998
|
|
5167
5999
|
|
5168
|
-
def
|
6000
|
+
def doDescribeLiveDelayInfoList(args, parsed_globals):
|
5169
6001
|
g_param = parse_global_arg(parsed_globals)
|
5170
6002
|
|
5171
6003
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5194,11 +6026,11 @@ def doDescribeLiveTimeShiftTemplates(args, parsed_globals):
|
|
5194
6026
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5195
6027
|
client._sdkVersion += ("_CLI_" + __version__)
|
5196
6028
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5197
|
-
model = models.
|
6029
|
+
model = models.DescribeLiveDelayInfoListRequest()
|
5198
6030
|
model.from_json_string(json.dumps(args))
|
5199
6031
|
start_time = time.time()
|
5200
6032
|
while True:
|
5201
|
-
rsp = client.
|
6033
|
+
rsp = client.DescribeLiveDelayInfoList(model)
|
5202
6034
|
result = rsp.to_json_string()
|
5203
6035
|
try:
|
5204
6036
|
json_obj = json.loads(result)
|
@@ -5217,7 +6049,7 @@ def doDescribeLiveTimeShiftTemplates(args, parsed_globals):
|
|
5217
6049
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5218
6050
|
|
5219
6051
|
|
5220
|
-
def
|
6052
|
+
def doDescribeLiveTimeShiftRules(args, parsed_globals):
|
5221
6053
|
g_param = parse_global_arg(parsed_globals)
|
5222
6054
|
|
5223
6055
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5246,11 +6078,11 @@ def doDescribeLiveXP2PDetailInfoList(args, parsed_globals):
|
|
5246
6078
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5247
6079
|
client._sdkVersion += ("_CLI_" + __version__)
|
5248
6080
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5249
|
-
model = models.
|
6081
|
+
model = models.DescribeLiveTimeShiftRulesRequest()
|
5250
6082
|
model.from_json_string(json.dumps(args))
|
5251
6083
|
start_time = time.time()
|
5252
6084
|
while True:
|
5253
|
-
rsp = client.
|
6085
|
+
rsp = client.DescribeLiveTimeShiftRules(model)
|
5254
6086
|
result = rsp.to_json_string()
|
5255
6087
|
try:
|
5256
6088
|
json_obj = json.loads(result)
|
@@ -5269,7 +6101,7 @@ def doDescribeLiveXP2PDetailInfoList(args, parsed_globals):
|
|
5269
6101
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5270
6102
|
|
5271
6103
|
|
5272
|
-
def
|
6104
|
+
def doDeleteLiveRecordRule(args, parsed_globals):
|
5273
6105
|
g_param = parse_global_arg(parsed_globals)
|
5274
6106
|
|
5275
6107
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5298,11 +6130,11 @@ def doDescribeLiveDelayInfoList(args, parsed_globals):
|
|
5298
6130
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5299
6131
|
client._sdkVersion += ("_CLI_" + __version__)
|
5300
6132
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5301
|
-
model = models.
|
6133
|
+
model = models.DeleteLiveRecordRuleRequest()
|
5302
6134
|
model.from_json_string(json.dumps(args))
|
5303
6135
|
start_time = time.time()
|
5304
6136
|
while True:
|
5305
|
-
rsp = client.
|
6137
|
+
rsp = client.DeleteLiveRecordRule(model)
|
5306
6138
|
result = rsp.to_json_string()
|
5307
6139
|
try:
|
5308
6140
|
json_obj = json.loads(result)
|
@@ -5321,7 +6153,7 @@ def doDescribeLiveDelayInfoList(args, parsed_globals):
|
|
5321
6153
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5322
6154
|
|
5323
6155
|
|
5324
|
-
def
|
6156
|
+
def doDescribeLiveDomain(args, parsed_globals):
|
5325
6157
|
g_param = parse_global_arg(parsed_globals)
|
5326
6158
|
|
5327
6159
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5350,11 +6182,11 @@ def doDescribeLiveTimeShiftRules(args, parsed_globals):
|
|
5350
6182
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5351
6183
|
client._sdkVersion += ("_CLI_" + __version__)
|
5352
6184
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5353
|
-
model = models.
|
6185
|
+
model = models.DescribeLiveDomainRequest()
|
5354
6186
|
model.from_json_string(json.dumps(args))
|
5355
6187
|
start_time = time.time()
|
5356
6188
|
while True:
|
5357
|
-
rsp = client.
|
6189
|
+
rsp = client.DescribeLiveDomain(model)
|
5358
6190
|
result = rsp.to_json_string()
|
5359
6191
|
try:
|
5360
6192
|
json_obj = json.loads(result)
|
@@ -5373,7 +6205,7 @@ def doDescribeLiveTimeShiftRules(args, parsed_globals):
|
|
5373
6205
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5374
6206
|
|
5375
6207
|
|
5376
|
-
def
|
6208
|
+
def doDeleteLivePadRule(args, parsed_globals):
|
5377
6209
|
g_param = parse_global_arg(parsed_globals)
|
5378
6210
|
|
5379
6211
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5402,11 +6234,11 @@ def doDeleteLiveRecordRule(args, parsed_globals):
|
|
5402
6234
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5403
6235
|
client._sdkVersion += ("_CLI_" + __version__)
|
5404
6236
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5405
|
-
model = models.
|
6237
|
+
model = models.DeleteLivePadRuleRequest()
|
5406
6238
|
model.from_json_string(json.dumps(args))
|
5407
6239
|
start_time = time.time()
|
5408
6240
|
while True:
|
5409
|
-
rsp = client.
|
6241
|
+
rsp = client.DeleteLivePadRule(model)
|
5410
6242
|
result = rsp.to_json_string()
|
5411
6243
|
try:
|
5412
6244
|
json_obj = json.loads(result)
|
@@ -5425,7 +6257,7 @@ def doDeleteLiveRecordRule(args, parsed_globals):
|
|
5425
6257
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5426
6258
|
|
5427
6259
|
|
5428
|
-
def
|
6260
|
+
def doCreateLiveCallbackRule(args, parsed_globals):
|
5429
6261
|
g_param = parse_global_arg(parsed_globals)
|
5430
6262
|
|
5431
6263
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5454,11 +6286,11 @@ def doDescribeLiveDomain(args, parsed_globals):
|
|
5454
6286
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5455
6287
|
client._sdkVersion += ("_CLI_" + __version__)
|
5456
6288
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5457
|
-
model = models.
|
6289
|
+
model = models.CreateLiveCallbackRuleRequest()
|
5458
6290
|
model.from_json_string(json.dumps(args))
|
5459
6291
|
start_time = time.time()
|
5460
6292
|
while True:
|
5461
|
-
rsp = client.
|
6293
|
+
rsp = client.CreateLiveCallbackRule(model)
|
5462
6294
|
result = rsp.to_json_string()
|
5463
6295
|
try:
|
5464
6296
|
json_obj = json.loads(result)
|
@@ -5477,7 +6309,7 @@ def doDescribeLiveDomain(args, parsed_globals):
|
|
5477
6309
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5478
6310
|
|
5479
6311
|
|
5480
|
-
def
|
6312
|
+
def doDescribeLiveCallbackRules(args, parsed_globals):
|
5481
6313
|
g_param = parse_global_arg(parsed_globals)
|
5482
6314
|
|
5483
6315
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5506,11 +6338,11 @@ def doDeleteLivePadRule(args, parsed_globals):
|
|
5506
6338
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5507
6339
|
client._sdkVersion += ("_CLI_" + __version__)
|
5508
6340
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5509
|
-
model = models.
|
6341
|
+
model = models.DescribeLiveCallbackRulesRequest()
|
5510
6342
|
model.from_json_string(json.dumps(args))
|
5511
6343
|
start_time = time.time()
|
5512
6344
|
while True:
|
5513
|
-
rsp = client.
|
6345
|
+
rsp = client.DescribeLiveCallbackRules(model)
|
5514
6346
|
result = rsp.to_json_string()
|
5515
6347
|
try:
|
5516
6348
|
json_obj = json.loads(result)
|
@@ -5529,7 +6361,7 @@ def doDeleteLivePadRule(args, parsed_globals):
|
|
5529
6361
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5530
6362
|
|
5531
6363
|
|
5532
|
-
def
|
6364
|
+
def doDescribePlayErrorCodeDetailInfoList(args, parsed_globals):
|
5533
6365
|
g_param = parse_global_arg(parsed_globals)
|
5534
6366
|
|
5535
6367
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5558,11 +6390,11 @@ def doCreateLiveCallbackRule(args, parsed_globals):
|
|
5558
6390
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5559
6391
|
client._sdkVersion += ("_CLI_" + __version__)
|
5560
6392
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5561
|
-
model = models.
|
6393
|
+
model = models.DescribePlayErrorCodeDetailInfoListRequest()
|
5562
6394
|
model.from_json_string(json.dumps(args))
|
5563
6395
|
start_time = time.time()
|
5564
6396
|
while True:
|
5565
|
-
rsp = client.
|
6397
|
+
rsp = client.DescribePlayErrorCodeDetailInfoList(model)
|
5566
6398
|
result = rsp.to_json_string()
|
5567
6399
|
try:
|
5568
6400
|
json_obj = json.loads(result)
|
@@ -5581,7 +6413,7 @@ def doCreateLiveCallbackRule(args, parsed_globals):
|
|
5581
6413
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5582
6414
|
|
5583
6415
|
|
5584
|
-
def
|
6416
|
+
def doDescribeLiveTimeShiftBillInfoList(args, parsed_globals):
|
5585
6417
|
g_param = parse_global_arg(parsed_globals)
|
5586
6418
|
|
5587
6419
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5610,11 +6442,11 @@ def doDescribeLiveCallbackRules(args, parsed_globals):
|
|
5610
6442
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5611
6443
|
client._sdkVersion += ("_CLI_" + __version__)
|
5612
6444
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5613
|
-
model = models.
|
6445
|
+
model = models.DescribeLiveTimeShiftBillInfoListRequest()
|
5614
6446
|
model.from_json_string(json.dumps(args))
|
5615
6447
|
start_time = time.time()
|
5616
6448
|
while True:
|
5617
|
-
rsp = client.
|
6449
|
+
rsp = client.DescribeLiveTimeShiftBillInfoList(model)
|
5618
6450
|
result = rsp.to_json_string()
|
5619
6451
|
try:
|
5620
6452
|
json_obj = json.loads(result)
|
@@ -5633,7 +6465,7 @@ def doDescribeLiveCallbackRules(args, parsed_globals):
|
|
5633
6465
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5634
6466
|
|
5635
6467
|
|
5636
|
-
def
|
6468
|
+
def doDescribeLiveStreamPublishedList(args, parsed_globals):
|
5637
6469
|
g_param = parse_global_arg(parsed_globals)
|
5638
6470
|
|
5639
6471
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5662,11 +6494,11 @@ def doDescribePlayErrorCodeDetailInfoList(args, parsed_globals):
|
|
5662
6494
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5663
6495
|
client._sdkVersion += ("_CLI_" + __version__)
|
5664
6496
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5665
|
-
model = models.
|
6497
|
+
model = models.DescribeLiveStreamPublishedListRequest()
|
5666
6498
|
model.from_json_string(json.dumps(args))
|
5667
6499
|
start_time = time.time()
|
5668
6500
|
while True:
|
5669
|
-
rsp = client.
|
6501
|
+
rsp = client.DescribeLiveStreamPublishedList(model)
|
5670
6502
|
result = rsp.to_json_string()
|
5671
6503
|
try:
|
5672
6504
|
json_obj = json.loads(result)
|
@@ -5685,7 +6517,7 @@ def doDescribePlayErrorCodeDetailInfoList(args, parsed_globals):
|
|
5685
6517
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5686
6518
|
|
5687
6519
|
|
5688
|
-
def
|
6520
|
+
def doDescribeScreenshotTask(args, parsed_globals):
|
5689
6521
|
g_param = parse_global_arg(parsed_globals)
|
5690
6522
|
|
5691
6523
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5714,11 +6546,11 @@ def doDescribeLiveTimeShiftBillInfoList(args, parsed_globals):
|
|
5714
6546
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5715
6547
|
client._sdkVersion += ("_CLI_" + __version__)
|
5716
6548
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5717
|
-
model = models.
|
6549
|
+
model = models.DescribeScreenshotTaskRequest()
|
5718
6550
|
model.from_json_string(json.dumps(args))
|
5719
6551
|
start_time = time.time()
|
5720
6552
|
while True:
|
5721
|
-
rsp = client.
|
6553
|
+
rsp = client.DescribeScreenshotTask(model)
|
5722
6554
|
result = rsp.to_json_string()
|
5723
6555
|
try:
|
5724
6556
|
json_obj = json.loads(result)
|
@@ -5737,7 +6569,7 @@ def doDescribeLiveTimeShiftBillInfoList(args, parsed_globals):
|
|
5737
6569
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5738
6570
|
|
5739
6571
|
|
5740
|
-
def
|
6572
|
+
def doDescribeLivePadProcessorList(args, parsed_globals):
|
5741
6573
|
g_param = parse_global_arg(parsed_globals)
|
5742
6574
|
|
5743
6575
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5766,11 +6598,11 @@ def doDescribeLiveStreamPublishedList(args, parsed_globals):
|
|
5766
6598
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5767
6599
|
client._sdkVersion += ("_CLI_" + __version__)
|
5768
6600
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5769
|
-
model = models.
|
6601
|
+
model = models.DescribeLivePadProcessorListRequest()
|
5770
6602
|
model.from_json_string(json.dumps(args))
|
5771
6603
|
start_time = time.time()
|
5772
6604
|
while True:
|
5773
|
-
rsp = client.
|
6605
|
+
rsp = client.DescribeLivePadProcessorList(model)
|
5774
6606
|
result = rsp.to_json_string()
|
5775
6607
|
try:
|
5776
6608
|
json_obj = json.loads(result)
|
@@ -5789,7 +6621,7 @@ def doDescribeLiveStreamPublishedList(args, parsed_globals):
|
|
5789
6621
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5790
6622
|
|
5791
6623
|
|
5792
|
-
def
|
6624
|
+
def doDescribePushBandwidthAndFluxList(args, parsed_globals):
|
5793
6625
|
g_param = parse_global_arg(parsed_globals)
|
5794
6626
|
|
5795
6627
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5818,11 +6650,11 @@ def doDescribeScreenshotTask(args, parsed_globals):
|
|
5818
6650
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5819
6651
|
client._sdkVersion += ("_CLI_" + __version__)
|
5820
6652
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5821
|
-
model = models.
|
6653
|
+
model = models.DescribePushBandwidthAndFluxListRequest()
|
5822
6654
|
model.from_json_string(json.dumps(args))
|
5823
6655
|
start_time = time.time()
|
5824
6656
|
while True:
|
5825
|
-
rsp = client.
|
6657
|
+
rsp = client.DescribePushBandwidthAndFluxList(model)
|
5826
6658
|
result = rsp.to_json_string()
|
5827
6659
|
try:
|
5828
6660
|
json_obj = json.loads(result)
|
@@ -5841,7 +6673,7 @@ def doDescribeScreenshotTask(args, parsed_globals):
|
|
5841
6673
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5842
6674
|
|
5843
6675
|
|
5844
|
-
def
|
6676
|
+
def doDescribeLiveCallbackTemplate(args, parsed_globals):
|
5845
6677
|
g_param = parse_global_arg(parsed_globals)
|
5846
6678
|
|
5847
6679
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5870,11 +6702,11 @@ def doDescribeLivePadProcessorList(args, parsed_globals):
|
|
5870
6702
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5871
6703
|
client._sdkVersion += ("_CLI_" + __version__)
|
5872
6704
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5873
|
-
model = models.
|
6705
|
+
model = models.DescribeLiveCallbackTemplateRequest()
|
5874
6706
|
model.from_json_string(json.dumps(args))
|
5875
6707
|
start_time = time.time()
|
5876
6708
|
while True:
|
5877
|
-
rsp = client.
|
6709
|
+
rsp = client.DescribeLiveCallbackTemplate(model)
|
5878
6710
|
result = rsp.to_json_string()
|
5879
6711
|
try:
|
5880
6712
|
json_obj = json.loads(result)
|
@@ -5893,7 +6725,7 @@ def doDescribeLivePadProcessorList(args, parsed_globals):
|
|
5893
6725
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5894
6726
|
|
5895
6727
|
|
5896
|
-
def
|
6728
|
+
def doDescribeLivePackageInfo(args, parsed_globals):
|
5897
6729
|
g_param = parse_global_arg(parsed_globals)
|
5898
6730
|
|
5899
6731
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5922,11 +6754,11 @@ def doDescribePushBandwidthAndFluxList(args, parsed_globals):
|
|
5922
6754
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5923
6755
|
client._sdkVersion += ("_CLI_" + __version__)
|
5924
6756
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5925
|
-
model = models.
|
6757
|
+
model = models.DescribeLivePackageInfoRequest()
|
5926
6758
|
model.from_json_string(json.dumps(args))
|
5927
6759
|
start_time = time.time()
|
5928
6760
|
while True:
|
5929
|
-
rsp = client.
|
6761
|
+
rsp = client.DescribeLivePackageInfo(model)
|
5930
6762
|
result = rsp.to_json_string()
|
5931
6763
|
try:
|
5932
6764
|
json_obj = json.loads(result)
|
@@ -5945,7 +6777,7 @@ def doDescribePushBandwidthAndFluxList(args, parsed_globals):
|
|
5945
6777
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5946
6778
|
|
5947
6779
|
|
5948
|
-
def
|
6780
|
+
def doDescribeLiveTimeShiftWriteSizeInfoList(args, parsed_globals):
|
5949
6781
|
g_param = parse_global_arg(parsed_globals)
|
5950
6782
|
|
5951
6783
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5974,11 +6806,11 @@ def doDescribeLiveCallbackTemplate(args, parsed_globals):
|
|
5974
6806
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
5975
6807
|
client._sdkVersion += ("_CLI_" + __version__)
|
5976
6808
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5977
|
-
model = models.
|
6809
|
+
model = models.DescribeLiveTimeShiftWriteSizeInfoListRequest()
|
5978
6810
|
model.from_json_string(json.dumps(args))
|
5979
6811
|
start_time = time.time()
|
5980
6812
|
while True:
|
5981
|
-
rsp = client.
|
6813
|
+
rsp = client.DescribeLiveTimeShiftWriteSizeInfoList(model)
|
5982
6814
|
result = rsp.to_json_string()
|
5983
6815
|
try:
|
5984
6816
|
json_obj = json.loads(result)
|
@@ -5997,7 +6829,7 @@ def doDescribeLiveCallbackTemplate(args, parsed_globals):
|
|
5997
6829
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5998
6830
|
|
5999
6831
|
|
6000
|
-
def
|
6832
|
+
def doForbidLiveStream(args, parsed_globals):
|
6001
6833
|
g_param = parse_global_arg(parsed_globals)
|
6002
6834
|
|
6003
6835
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6026,11 +6858,11 @@ def doDescribeLiveTimeShiftWriteSizeInfoList(args, parsed_globals):
|
|
6026
6858
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
6027
6859
|
client._sdkVersion += ("_CLI_" + __version__)
|
6028
6860
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6029
|
-
model = models.
|
6861
|
+
model = models.ForbidLiveStreamRequest()
|
6030
6862
|
model.from_json_string(json.dumps(args))
|
6031
6863
|
start_time = time.time()
|
6032
6864
|
while True:
|
6033
|
-
rsp = client.
|
6865
|
+
rsp = client.ForbidLiveStream(model)
|
6034
6866
|
result = rsp.to_json_string()
|
6035
6867
|
try:
|
6036
6868
|
json_obj = json.loads(result)
|
@@ -6049,7 +6881,7 @@ def doDescribeLiveTimeShiftWriteSizeInfoList(args, parsed_globals):
|
|
6049
6881
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6050
6882
|
|
6051
6883
|
|
6052
|
-
def
|
6884
|
+
def doAddLiveDomain(args, parsed_globals):
|
6053
6885
|
g_param = parse_global_arg(parsed_globals)
|
6054
6886
|
|
6055
6887
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6078,11 +6910,11 @@ def doForbidLiveStream(args, parsed_globals):
|
|
6078
6910
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
6079
6911
|
client._sdkVersion += ("_CLI_" + __version__)
|
6080
6912
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6081
|
-
model = models.
|
6913
|
+
model = models.AddLiveDomainRequest()
|
6082
6914
|
model.from_json_string(json.dumps(args))
|
6083
6915
|
start_time = time.time()
|
6084
6916
|
while True:
|
6085
|
-
rsp = client.
|
6917
|
+
rsp = client.AddLiveDomain(model)
|
6086
6918
|
result = rsp.to_json_string()
|
6087
6919
|
try:
|
6088
6920
|
json_obj = json.loads(result)
|
@@ -6101,7 +6933,7 @@ def doForbidLiveStream(args, parsed_globals):
|
|
6101
6933
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6102
6934
|
|
6103
6935
|
|
6104
|
-
def
|
6936
|
+
def doModifyPullStreamStatus(args, parsed_globals):
|
6105
6937
|
g_param = parse_global_arg(parsed_globals)
|
6106
6938
|
|
6107
6939
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6130,11 +6962,11 @@ def doAddLiveDomain(args, parsed_globals):
|
|
6130
6962
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
6131
6963
|
client._sdkVersion += ("_CLI_" + __version__)
|
6132
6964
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6133
|
-
model = models.
|
6965
|
+
model = models.ModifyPullStreamStatusRequest()
|
6134
6966
|
model.from_json_string(json.dumps(args))
|
6135
6967
|
start_time = time.time()
|
6136
6968
|
while True:
|
6137
|
-
rsp = client.
|
6969
|
+
rsp = client.ModifyPullStreamStatus(model)
|
6138
6970
|
result = rsp.to_json_string()
|
6139
6971
|
try:
|
6140
6972
|
json_obj = json.loads(result)
|
@@ -6881,7 +7713,7 @@ def doRestartLivePullStreamTask(args, parsed_globals):
|
|
6881
7713
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6882
7714
|
|
6883
7715
|
|
6884
|
-
def
|
7716
|
+
def doCreatePullStreamConfig(args, parsed_globals):
|
6885
7717
|
g_param = parse_global_arg(parsed_globals)
|
6886
7718
|
|
6887
7719
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -6910,11 +7742,11 @@ def doDescribeLivePadTemplates(args, parsed_globals):
|
|
6910
7742
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
6911
7743
|
client._sdkVersion += ("_CLI_" + __version__)
|
6912
7744
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6913
|
-
model = models.
|
7745
|
+
model = models.CreatePullStreamConfigRequest()
|
6914
7746
|
model.from_json_string(json.dumps(args))
|
6915
7747
|
start_time = time.time()
|
6916
7748
|
while True:
|
6917
|
-
rsp = client.
|
7749
|
+
rsp = client.CreatePullStreamConfig(model)
|
6918
7750
|
result = rsp.to_json_string()
|
6919
7751
|
try:
|
6920
7752
|
json_obj = json.loads(result)
|
@@ -7037,6 +7869,58 @@ def doDescribeLivePadRules(args, parsed_globals):
|
|
7037
7869
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7038
7870
|
|
7039
7871
|
|
7872
|
+
def doDeleteCasterInputInfo(args, parsed_globals):
|
7873
|
+
g_param = parse_global_arg(parsed_globals)
|
7874
|
+
|
7875
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7876
|
+
cred = credential.CVMRoleCredential()
|
7877
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7878
|
+
cred = credential.STSAssumeRoleCredential(
|
7879
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7880
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7881
|
+
)
|
7882
|
+
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):
|
7883
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7884
|
+
else:
|
7885
|
+
cred = credential.Credential(
|
7886
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7887
|
+
)
|
7888
|
+
http_profile = HttpProfile(
|
7889
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7890
|
+
reqMethod="POST",
|
7891
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7892
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7893
|
+
)
|
7894
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7895
|
+
if g_param[OptionsDefine.Language]:
|
7896
|
+
profile.language = g_param[OptionsDefine.Language]
|
7897
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7898
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
7899
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7900
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7901
|
+
model = models.DeleteCasterInputInfoRequest()
|
7902
|
+
model.from_json_string(json.dumps(args))
|
7903
|
+
start_time = time.time()
|
7904
|
+
while True:
|
7905
|
+
rsp = client.DeleteCasterInputInfo(model)
|
7906
|
+
result = rsp.to_json_string()
|
7907
|
+
try:
|
7908
|
+
json_obj = json.loads(result)
|
7909
|
+
except TypeError as e:
|
7910
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7911
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7912
|
+
break
|
7913
|
+
cur_time = time.time()
|
7914
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7915
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7916
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7917
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7918
|
+
else:
|
7919
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7920
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7921
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7922
|
+
|
7923
|
+
|
7040
7924
|
def doDeleteLiveRecord(args, parsed_globals):
|
7041
7925
|
g_param = parse_global_arg(parsed_globals)
|
7042
7926
|
|
@@ -7349,7 +8233,7 @@ def doDescribeCaster(args, parsed_globals):
|
|
7349
8233
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7350
8234
|
|
7351
8235
|
|
7352
|
-
def
|
8236
|
+
def doDescribeLivePullStreamTasks(args, parsed_globals):
|
7353
8237
|
g_param = parse_global_arg(parsed_globals)
|
7354
8238
|
|
7355
8239
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7378,11 +8262,11 @@ def doDeleteLiveTimeShiftTemplate(args, parsed_globals):
|
|
7378
8262
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
7379
8263
|
client._sdkVersion += ("_CLI_" + __version__)
|
7380
8264
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7381
|
-
model = models.
|
8265
|
+
model = models.DescribeLivePullStreamTasksRequest()
|
7382
8266
|
model.from_json_string(json.dumps(args))
|
7383
8267
|
start_time = time.time()
|
7384
8268
|
while True:
|
7385
|
-
rsp = client.
|
8269
|
+
rsp = client.DescribeLivePullStreamTasks(model)
|
7386
8270
|
result = rsp.to_json_string()
|
7387
8271
|
try:
|
7388
8272
|
json_obj = json.loads(result)
|
@@ -7557,6 +8441,58 @@ def doDescribeLivePlayAuthKey(args, parsed_globals):
|
|
7557
8441
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7558
8442
|
|
7559
8443
|
|
8444
|
+
def doCreateCasterPgmFromPvw(args, parsed_globals):
|
8445
|
+
g_param = parse_global_arg(parsed_globals)
|
8446
|
+
|
8447
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
8448
|
+
cred = credential.CVMRoleCredential()
|
8449
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
8450
|
+
cred = credential.STSAssumeRoleCredential(
|
8451
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
8452
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
8453
|
+
)
|
8454
|
+
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):
|
8455
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
8456
|
+
else:
|
8457
|
+
cred = credential.Credential(
|
8458
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
8459
|
+
)
|
8460
|
+
http_profile = HttpProfile(
|
8461
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
8462
|
+
reqMethod="POST",
|
8463
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
8464
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
8465
|
+
)
|
8466
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
8467
|
+
if g_param[OptionsDefine.Language]:
|
8468
|
+
profile.language = g_param[OptionsDefine.Language]
|
8469
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8470
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
8471
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
8472
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8473
|
+
model = models.CreateCasterPgmFromPvwRequest()
|
8474
|
+
model.from_json_string(json.dumps(args))
|
8475
|
+
start_time = time.time()
|
8476
|
+
while True:
|
8477
|
+
rsp = client.CreateCasterPgmFromPvw(model)
|
8478
|
+
result = rsp.to_json_string()
|
8479
|
+
try:
|
8480
|
+
json_obj = json.loads(result)
|
8481
|
+
except TypeError as e:
|
8482
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8483
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8484
|
+
break
|
8485
|
+
cur_time = time.time()
|
8486
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8487
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8488
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8489
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8490
|
+
else:
|
8491
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8492
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8493
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8494
|
+
|
8495
|
+
|
7560
8496
|
def doDescribeCasterTransitionTypes(args, parsed_globals):
|
7561
8497
|
g_param = parse_global_arg(parsed_globals)
|
7562
8498
|
|
@@ -7973,6 +8909,58 @@ def doCopyCaster(args, parsed_globals):
|
|
7973
8909
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7974
8910
|
|
7975
8911
|
|
8912
|
+
def doModifyCasterInputInfo(args, parsed_globals):
|
8913
|
+
g_param = parse_global_arg(parsed_globals)
|
8914
|
+
|
8915
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
8916
|
+
cred = credential.CVMRoleCredential()
|
8917
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
8918
|
+
cred = credential.STSAssumeRoleCredential(
|
8919
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
8920
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
8921
|
+
)
|
8922
|
+
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):
|
8923
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
8924
|
+
else:
|
8925
|
+
cred = credential.Credential(
|
8926
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
8927
|
+
)
|
8928
|
+
http_profile = HttpProfile(
|
8929
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
8930
|
+
reqMethod="POST",
|
8931
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
8932
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
8933
|
+
)
|
8934
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
8935
|
+
if g_param[OptionsDefine.Language]:
|
8936
|
+
profile.language = g_param[OptionsDefine.Language]
|
8937
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8938
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
8939
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
8940
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8941
|
+
model = models.ModifyCasterInputInfoRequest()
|
8942
|
+
model.from_json_string(json.dumps(args))
|
8943
|
+
start_time = time.time()
|
8944
|
+
while True:
|
8945
|
+
rsp = client.ModifyCasterInputInfo(model)
|
8946
|
+
result = rsp.to_json_string()
|
8947
|
+
try:
|
8948
|
+
json_obj = json.loads(result)
|
8949
|
+
except TypeError as e:
|
8950
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8951
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8952
|
+
break
|
8953
|
+
cur_time = time.time()
|
8954
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8955
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8956
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8957
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8958
|
+
else:
|
8959
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8960
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8961
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8962
|
+
|
8963
|
+
|
7976
8964
|
def doDescribeBackupStreamList(args, parsed_globals):
|
7977
8965
|
g_param = parse_global_arg(parsed_globals)
|
7978
8966
|
|
@@ -8233,7 +9221,7 @@ def doDescribeLiveCerts(args, parsed_globals):
|
|
8233
9221
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8234
9222
|
|
8235
9223
|
|
8236
|
-
def
|
9224
|
+
def doStopCasterPgm(args, parsed_globals):
|
8237
9225
|
g_param = parse_global_arg(parsed_globals)
|
8238
9226
|
|
8239
9227
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -8262,11 +9250,11 @@ def doDescribeLiveTranscodeRules(args, parsed_globals):
|
|
8262
9250
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
8263
9251
|
client._sdkVersion += ("_CLI_" + __version__)
|
8264
9252
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8265
|
-
model = models.
|
9253
|
+
model = models.StopCasterPgmRequest()
|
8266
9254
|
model.from_json_string(json.dumps(args))
|
8267
9255
|
start_time = time.time()
|
8268
9256
|
while True:
|
8269
|
-
rsp = client.
|
9257
|
+
rsp = client.StopCasterPgm(model)
|
8270
9258
|
result = rsp.to_json_string()
|
8271
9259
|
try:
|
8272
9260
|
json_obj = json.loads(result)
|
@@ -8337,7 +9325,7 @@ def doEnableLiveDomain(args, parsed_globals):
|
|
8337
9325
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8338
9326
|
|
8339
9327
|
|
8340
|
-
def
|
9328
|
+
def doDeleteCasterOutputInfo(args, parsed_globals):
|
8341
9329
|
g_param = parse_global_arg(parsed_globals)
|
8342
9330
|
|
8343
9331
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -8366,11 +9354,11 @@ def doCancelCommonMixStream(args, parsed_globals):
|
|
8366
9354
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
8367
9355
|
client._sdkVersion += ("_CLI_" + __version__)
|
8368
9356
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8369
|
-
model = models.
|
9357
|
+
model = models.DeleteCasterOutputInfoRequest()
|
8370
9358
|
model.from_json_string(json.dumps(args))
|
8371
9359
|
start_time = time.time()
|
8372
9360
|
while True:
|
8373
|
-
rsp = client.
|
9361
|
+
rsp = client.DeleteCasterOutputInfo(model)
|
8374
9362
|
result = rsp.to_json_string()
|
8375
9363
|
try:
|
8376
9364
|
json_obj = json.loads(result)
|
@@ -8441,7 +9429,7 @@ def doStopLivePadProcessor(args, parsed_globals):
|
|
8441
9429
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8442
9430
|
|
8443
9431
|
|
8444
|
-
def
|
9432
|
+
def doDeleteLiveTranscodeTemplate(args, parsed_globals):
|
8445
9433
|
g_param = parse_global_arg(parsed_globals)
|
8446
9434
|
|
8447
9435
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -8470,11 +9458,11 @@ def doDescribeLivePackageInfo(args, parsed_globals):
|
|
8470
9458
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
8471
9459
|
client._sdkVersion += ("_CLI_" + __version__)
|
8472
9460
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8473
|
-
model = models.
|
9461
|
+
model = models.DeleteLiveTranscodeTemplateRequest()
|
8474
9462
|
model.from_json_string(json.dumps(args))
|
8475
9463
|
start_time = time.time()
|
8476
9464
|
while True:
|
8477
|
-
rsp = client.
|
9465
|
+
rsp = client.DeleteLiveTranscodeTemplate(model)
|
8478
9466
|
result = rsp.to_json_string()
|
8479
9467
|
try:
|
8480
9468
|
json_obj = json.loads(result)
|
@@ -8493,7 +9481,7 @@ def doDescribeLivePackageInfo(args, parsed_globals):
|
|
8493
9481
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8494
9482
|
|
8495
9483
|
|
8496
|
-
def
|
9484
|
+
def doDescribeLivePadTemplates(args, parsed_globals):
|
8497
9485
|
g_param = parse_global_arg(parsed_globals)
|
8498
9486
|
|
8499
9487
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -8522,11 +9510,11 @@ def doCreatePullStreamConfig(args, parsed_globals):
|
|
8522
9510
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
8523
9511
|
client._sdkVersion += ("_CLI_" + __version__)
|
8524
9512
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8525
|
-
model = models.
|
9513
|
+
model = models.DescribeLivePadTemplatesRequest()
|
8526
9514
|
model.from_json_string(json.dumps(args))
|
8527
9515
|
start_time = time.time()
|
8528
9516
|
while True:
|
8529
|
-
rsp = client.
|
9517
|
+
rsp = client.DescribeLivePadTemplates(model)
|
8530
9518
|
result = rsp.to_json_string()
|
8531
9519
|
try:
|
8532
9520
|
json_obj = json.loads(result)
|
@@ -8729,23 +9717,30 @@ ACTION_MAP = {
|
|
8729
9717
|
"DescribeStreamPushInfoList": doDescribeStreamPushInfoList,
|
8730
9718
|
"StartLiveStreamMonitor": doStartLiveStreamMonitor,
|
8731
9719
|
"DescribeLiveSnapshotRules": doDescribeLiveSnapshotRules,
|
9720
|
+
"ReleaseCaster": doReleaseCaster,
|
8732
9721
|
"DescribeTimeShiftStreamList": doDescribeTimeShiftStreamList,
|
8733
|
-
"
|
9722
|
+
"AddCasterInputInfo": doAddCasterInputInfo,
|
8734
9723
|
"CreateLivePadTemplate": doCreateLivePadTemplate,
|
8735
9724
|
"CreateLiveStreamMonitor": doCreateLiveStreamMonitor,
|
8736
9725
|
"DescribeLiveDomainReferer": doDescribeLiveDomainReferer,
|
8737
9726
|
"DeleteScreenshotTask": doDeleteScreenshotTask,
|
8738
9727
|
"DescribeTopClientIpSumInfoList": doDescribeTopClientIpSumInfoList,
|
8739
|
-
"
|
9728
|
+
"CreateCasterInputPushUrl": doCreateCasterInputPushUrl,
|
9729
|
+
"CreateLivePadRule": doCreateLivePadRule,
|
8740
9730
|
"CreateScreenshotTask": doCreateScreenshotTask,
|
8741
9731
|
"DescribeLiveRecordTemplates": doDescribeLiveRecordTemplates,
|
8742
9732
|
"AuthenticateDomainOwner": doAuthenticateDomainOwner,
|
8743
9733
|
"ModifyLiveStreamMonitor": doModifyLiveStreamMonitor,
|
9734
|
+
"DescribeCasterInputInfos": doDescribeCasterInputInfos,
|
8744
9735
|
"DescribeVisitTopSumInfoList": doDescribeVisitTopSumInfoList,
|
8745
9736
|
"ModifyLiveRecordTemplate": doModifyLiveRecordTemplate,
|
9737
|
+
"AddCasterLayoutInfo": doAddCasterLayoutInfo,
|
8746
9738
|
"DescribeLiveDomainCert": doDescribeLiveDomainCert,
|
8747
9739
|
"AddLiveWatermark": doAddLiveWatermark,
|
8748
9740
|
"DescribeAreaBillBandwidthAndFluxList": doDescribeAreaBillBandwidthAndFluxList,
|
9741
|
+
"DescribeLiveTranscodeRules": doDescribeLiveTranscodeRules,
|
9742
|
+
"StopCasterPvw": doStopCasterPvw,
|
9743
|
+
"DeleteCasterLayoutInfo": doDeleteCasterLayoutInfo,
|
8749
9744
|
"DeleteLiveWatermarkRule": doDeleteLiveWatermarkRule,
|
8750
9745
|
"DescribeDeliverBandwidthList": doDescribeDeliverBandwidthList,
|
8751
9746
|
"DeleteLiveCallbackRule": doDeleteLiveCallbackRule,
|
@@ -8786,21 +9781,25 @@ ACTION_MAP = {
|
|
8786
9781
|
"DescribeLiveDomains": doDescribeLiveDomains,
|
8787
9782
|
"DescribePullTransformPushInfo": doDescribePullTransformPushInfo,
|
8788
9783
|
"CreateLiveCallbackTemplate": doCreateLiveCallbackTemplate,
|
9784
|
+
"CreateCasterPgm": doCreateCasterPgm,
|
9785
|
+
"ModifyCasterOutputInfo": doModifyCasterOutputInfo,
|
9786
|
+
"CreateCasterPvw": doCreateCasterPvw,
|
8789
9787
|
"ResumeLiveStream": doResumeLiveStream,
|
8790
9788
|
"ModifyLivePullStreamTask": doModifyLivePullStreamTask,
|
8791
9789
|
"DeleteLiveDomain": doDeleteLiveDomain,
|
8792
9790
|
"ModifyLiveCallbackTemplate": doModifyLiveCallbackTemplate,
|
8793
|
-
"
|
9791
|
+
"DeleteLiveTimeShiftTemplate": doDeleteLiveTimeShiftTemplate,
|
8794
9792
|
"DescribeGroupProIspPlayInfoList": doDescribeGroupProIspPlayInfoList,
|
8795
9793
|
"DescribeStreamPlayInfoList": doDescribeStreamPlayInfoList,
|
8796
9794
|
"DescribeCasterUserStatus": doDescribeCasterUserStatus,
|
9795
|
+
"DescribeCasterLayoutInfos": doDescribeCasterLayoutInfos,
|
8797
9796
|
"DescribeLivePullStreamTaskStatus": doDescribeLivePullStreamTaskStatus,
|
8798
9797
|
"DescribeLiveSnapshotTemplate": doDescribeLiveSnapshotTemplate,
|
8799
9798
|
"DescribeLiveCallbackTemplates": doDescribeLiveCallbackTemplates,
|
8800
9799
|
"StopRecordTask": doStopRecordTask,
|
8801
9800
|
"ModifyLiveTimeShiftTemplate": doModifyLiveTimeShiftTemplate,
|
8802
9801
|
"DescribeLiveSnapshotTemplates": doDescribeLiveSnapshotTemplates,
|
8803
|
-
"
|
9802
|
+
"DescribeCasterOutputInfos": doDescribeCasterOutputInfos,
|
8804
9803
|
"StopLiveRecord": doStopLiveRecord,
|
8805
9804
|
"ModifyLivePlayAuthKey": doModifyLivePlayAuthKey,
|
8806
9805
|
"DeleteCaster": doDeleteCaster,
|
@@ -8810,9 +9809,12 @@ ACTION_MAP = {
|
|
8810
9809
|
"DeleteRecordTask": doDeleteRecordTask,
|
8811
9810
|
"DescribeLiveTranscodeDetailInfo": doDescribeLiveTranscodeDetailInfo,
|
8812
9811
|
"DescribeLogDownloadList": doDescribeLogDownloadList,
|
9812
|
+
"AddCasterOutputInfo": doAddCasterOutputInfo,
|
8813
9813
|
"DescribeLiveRecordRules": doDescribeLiveRecordRules,
|
8814
|
-
"
|
9814
|
+
"CancelCommonMixStream": doCancelCommonMixStream,
|
8815
9815
|
"DescribeLiveXP2PDetailInfoList": doDescribeLiveXP2PDetailInfoList,
|
9816
|
+
"DescribeLiveTimeShiftTemplates": doDescribeLiveTimeShiftTemplates,
|
9817
|
+
"ModifyCasterLayoutInfo": doModifyCasterLayoutInfo,
|
8816
9818
|
"DescribeLiveDelayInfoList": doDescribeLiveDelayInfoList,
|
8817
9819
|
"DescribeLiveTimeShiftRules": doDescribeLiveTimeShiftRules,
|
8818
9820
|
"DeleteLiveRecordRule": doDeleteLiveRecordRule,
|
@@ -8827,9 +9829,11 @@ ACTION_MAP = {
|
|
8827
9829
|
"DescribeLivePadProcessorList": doDescribeLivePadProcessorList,
|
8828
9830
|
"DescribePushBandwidthAndFluxList": doDescribePushBandwidthAndFluxList,
|
8829
9831
|
"DescribeLiveCallbackTemplate": doDescribeLiveCallbackTemplate,
|
9832
|
+
"DescribeLivePackageInfo": doDescribeLivePackageInfo,
|
8830
9833
|
"DescribeLiveTimeShiftWriteSizeInfoList": doDescribeLiveTimeShiftWriteSizeInfoList,
|
8831
9834
|
"ForbidLiveStream": doForbidLiveStream,
|
8832
9835
|
"AddLiveDomain": doAddLiveDomain,
|
9836
|
+
"ModifyPullStreamStatus": doModifyPullStreamStatus,
|
8833
9837
|
"DeleteLivePadTemplate": doDeleteLivePadTemplate,
|
8834
9838
|
"SwitchBackupStream": doSwitchBackupStream,
|
8835
9839
|
"DescribeLiveDomainPlayInfoList": doDescribeLiveDomainPlayInfoList,
|
@@ -8844,19 +9848,21 @@ ACTION_MAP = {
|
|
8844
9848
|
"CreateLiveTranscodeRule": doCreateLiveTranscodeRule,
|
8845
9849
|
"DeleteLiveTimeShiftRule": doDeleteLiveTimeShiftRule,
|
8846
9850
|
"RestartLivePullStreamTask": doRestartLivePullStreamTask,
|
8847
|
-
"
|
9851
|
+
"CreatePullStreamConfig": doCreatePullStreamConfig,
|
8848
9852
|
"DescribeLiveWatermarkRules": doDescribeLiveWatermarkRules,
|
8849
9853
|
"DescribeLivePadRules": doDescribeLivePadRules,
|
9854
|
+
"DeleteCasterInputInfo": doDeleteCasterInputInfo,
|
8850
9855
|
"DeleteLiveRecord": doDeleteLiveRecord,
|
8851
9856
|
"DescribeLiveStreamMonitorList": doDescribeLiveStreamMonitorList,
|
8852
9857
|
"CreateLiveSnapshotRule": doCreateLiveSnapshotRule,
|
8853
9858
|
"CreateLiveTimeShiftTemplate": doCreateLiveTimeShiftTemplate,
|
8854
9859
|
"DeleteLiveStreamMonitor": doDeleteLiveStreamMonitor,
|
8855
9860
|
"DescribeCaster": doDescribeCaster,
|
8856
|
-
"
|
9861
|
+
"DescribeLivePullStreamTasks": doDescribeLivePullStreamTasks,
|
8857
9862
|
"DescribeProIspPlaySumInfoList": doDescribeProIspPlaySumInfoList,
|
8858
9863
|
"DescribeAllStreamPlayInfoList": doDescribeAllStreamPlayInfoList,
|
8859
9864
|
"DescribeLivePlayAuthKey": doDescribeLivePlayAuthKey,
|
9865
|
+
"CreateCasterPgmFromPvw": doCreateCasterPgmFromPvw,
|
8860
9866
|
"DescribeCasterTransitionTypes": doDescribeCasterTransitionTypes,
|
8861
9867
|
"DescribeCasterDisplayInfo": doDescribeCasterDisplayInfo,
|
8862
9868
|
"StopLiveStreamMonitor": doStopLiveStreamMonitor,
|
@@ -8865,17 +9871,18 @@ ACTION_MAP = {
|
|
8865
9871
|
"ModifyLiveDomainReferer": doModifyLiveDomainReferer,
|
8866
9872
|
"DeleteLiveRecordTemplate": doDeleteLiveRecordTemplate,
|
8867
9873
|
"CopyCaster": doCopyCaster,
|
9874
|
+
"ModifyCasterInputInfo": doModifyCasterInputInfo,
|
8868
9875
|
"DescribeBackupStreamList": doDescribeBackupStreamList,
|
8869
9876
|
"ResumeDelayLiveStream": doResumeDelayLiveStream,
|
8870
9877
|
"CreateRecordTask": doCreateRecordTask,
|
8871
9878
|
"CreateLiveTranscodeTemplate": doCreateLiveTranscodeTemplate,
|
8872
9879
|
"DescribeLiveCerts": doDescribeLiveCerts,
|
8873
|
-
"
|
9880
|
+
"StopCasterPgm": doStopCasterPgm,
|
8874
9881
|
"EnableLiveDomain": doEnableLiveDomain,
|
8875
|
-
"
|
9882
|
+
"DeleteCasterOutputInfo": doDeleteCasterOutputInfo,
|
8876
9883
|
"StopLivePadProcessor": doStopLivePadProcessor,
|
8877
|
-
"
|
8878
|
-
"
|
9884
|
+
"DeleteLiveTranscodeTemplate": doDeleteLiveTranscodeTemplate,
|
9885
|
+
"DescribeLivePadTemplates": doDescribeLivePadTemplates,
|
8879
9886
|
"DescribeTranscodeTaskNum": doDescribeTranscodeTaskNum,
|
8880
9887
|
"DescribeLiveStreamPushInfoList": doDescribeLiveStreamPushInfoList,
|
8881
9888
|
"DeleteLiveSnapshotTemplate": doDeleteLiveSnapshotTemplate,
|