tccli-intl-en 3.1.8.1__py2.py3-none-any.whl → 3.1.13.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +6 -0
- tccli/services/ai3d/__init__.py +4 -0
- tccli/services/ai3d/ai3d_client.py +266 -0
- tccli/services/ai3d/v20250513/api.json +264 -0
- tccli/services/ai3d/v20250513/examples.json +20 -0
- tccli/services/cvm/v20170312/api.json +3 -3
- tccli/services/cvm/v20170312/examples.json +31 -31
- tccli/services/faceid/v20180301/api.json +2 -2
- tccli/services/hunyuan/__init__.py +4 -0
- tccli/services/hunyuan/hunyuan_client.py +266 -0
- tccli/services/hunyuan/v20230901/api.json +270 -0
- tccli/services/hunyuan/v20230901/examples.json +20 -0
- tccli/services/mdl/mdl_client.py +192 -24
- tccli/services/mdl/v20200326/api.json +418 -5
- tccli/services/mdl/v20200326/examples.json +24 -0
- tccli/services/monitor/v20180724/api.json +3 -3
- tccli/services/mps/mps_client.py +56 -0
- tccli/services/mps/v20190612/api.json +208 -9
- tccli/services/mps/v20190612/examples.json +36 -22
- tccli/services/teo/teo_client.py +225 -57
- tccli/services/teo/v20220901/api.json +251 -7
- tccli/services/teo/v20220901/examples.json +36 -0
- {tccli_intl_en-3.1.8.1.dist-info → tccli_intl_en-3.1.13.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.1.8.1.dist-info → tccli_intl_en-3.1.13.1.dist-info}/RECORD +29 -21
- {tccli_intl_en-3.1.8.1.dist-info → tccli_intl_en-3.1.13.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.1.8.1.dist-info → tccli_intl_en-3.1.13.1.dist-info}/WHEEL +0 -0
- {tccli_intl_en-3.1.8.1.dist-info → tccli_intl_en-3.1.13.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.1.8.1.dist-info → tccli_intl_en-3.1.13.1.dist-info}/top_level.txt +0 -0
tccli/services/mdl/mdl_client.py
CHANGED
|
@@ -72,6 +72,61 @@ def doDescribeStreamLiveChannelAlerts(args, parsed_globals):
|
|
|
72
72
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
def doDescribeWatermarkDetection(args, parsed_globals):
|
|
76
|
+
g_param = parse_global_arg(parsed_globals)
|
|
77
|
+
|
|
78
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
79
|
+
cred = credential.CVMRoleCredential()
|
|
80
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
81
|
+
cred = credential.STSAssumeRoleCredential(
|
|
82
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
83
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
84
|
+
)
|
|
85
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
86
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
87
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
88
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
89
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
90
|
+
else:
|
|
91
|
+
cred = credential.Credential(
|
|
92
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
93
|
+
)
|
|
94
|
+
http_profile = HttpProfile(
|
|
95
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
96
|
+
reqMethod="POST",
|
|
97
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
98
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
99
|
+
)
|
|
100
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
101
|
+
if g_param[OptionsDefine.Language]:
|
|
102
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
103
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
104
|
+
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
105
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
106
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
107
|
+
model = models.DescribeWatermarkDetectionRequest()
|
|
108
|
+
model.from_json_string(json.dumps(args))
|
|
109
|
+
start_time = time.time()
|
|
110
|
+
while True:
|
|
111
|
+
rsp = client.DescribeWatermarkDetection(model)
|
|
112
|
+
result = rsp.to_json_string()
|
|
113
|
+
try:
|
|
114
|
+
json_obj = json.loads(result)
|
|
115
|
+
except TypeError as e:
|
|
116
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
117
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
118
|
+
break
|
|
119
|
+
cur_time = time.time()
|
|
120
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
121
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
122
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
123
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
124
|
+
else:
|
|
125
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
126
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
127
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
128
|
+
|
|
129
|
+
|
|
75
130
|
def doDescribeStreamLiveChannel(args, parsed_globals):
|
|
76
131
|
g_param = parse_global_arg(parsed_globals)
|
|
77
132
|
|
|
@@ -182,7 +237,7 @@ def doCreateStreamLiveInput(args, parsed_globals):
|
|
|
182
237
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
183
238
|
|
|
184
239
|
|
|
185
|
-
def
|
|
240
|
+
def doDescribeStreamLiveChannelLogs(args, parsed_globals):
|
|
186
241
|
g_param = parse_global_arg(parsed_globals)
|
|
187
242
|
|
|
188
243
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -214,11 +269,11 @@ def doDeleteStreamLivePlan(args, parsed_globals):
|
|
|
214
269
|
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
215
270
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
216
271
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
217
|
-
model = models.
|
|
272
|
+
model = models.DescribeStreamLiveChannelLogsRequest()
|
|
218
273
|
model.from_json_string(json.dumps(args))
|
|
219
274
|
start_time = time.time()
|
|
220
275
|
while True:
|
|
221
|
-
rsp = client.
|
|
276
|
+
rsp = client.DescribeStreamLiveChannelLogs(model)
|
|
222
277
|
result = rsp.to_json_string()
|
|
223
278
|
try:
|
|
224
279
|
json_obj = json.loads(result)
|
|
@@ -292,6 +347,61 @@ def doDescribeStreamLiveInputSecurityGroups(args, parsed_globals):
|
|
|
292
347
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
293
348
|
|
|
294
349
|
|
|
350
|
+
def doCreateWatermarkDetection(args, parsed_globals):
|
|
351
|
+
g_param = parse_global_arg(parsed_globals)
|
|
352
|
+
|
|
353
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
354
|
+
cred = credential.CVMRoleCredential()
|
|
355
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
356
|
+
cred = credential.STSAssumeRoleCredential(
|
|
357
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
358
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
359
|
+
)
|
|
360
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
361
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
362
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
363
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
364
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
365
|
+
else:
|
|
366
|
+
cred = credential.Credential(
|
|
367
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
368
|
+
)
|
|
369
|
+
http_profile = HttpProfile(
|
|
370
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
371
|
+
reqMethod="POST",
|
|
372
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
373
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
374
|
+
)
|
|
375
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
376
|
+
if g_param[OptionsDefine.Language]:
|
|
377
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
378
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
379
|
+
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
380
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
381
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
382
|
+
model = models.CreateWatermarkDetectionRequest()
|
|
383
|
+
model.from_json_string(json.dumps(args))
|
|
384
|
+
start_time = time.time()
|
|
385
|
+
while True:
|
|
386
|
+
rsp = client.CreateWatermarkDetection(model)
|
|
387
|
+
result = rsp.to_json_string()
|
|
388
|
+
try:
|
|
389
|
+
json_obj = json.loads(result)
|
|
390
|
+
except TypeError as e:
|
|
391
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
392
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
393
|
+
break
|
|
394
|
+
cur_time = time.time()
|
|
395
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
396
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
397
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
398
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
399
|
+
else:
|
|
400
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
401
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
402
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
403
|
+
|
|
404
|
+
|
|
295
405
|
def doDescribeStreamLiveChannelInputStatistics(args, parsed_globals):
|
|
296
406
|
g_param = parse_global_arg(parsed_globals)
|
|
297
407
|
|
|
@@ -842,6 +952,61 @@ def doDescribeStreamLivePlans(args, parsed_globals):
|
|
|
842
952
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
843
953
|
|
|
844
954
|
|
|
955
|
+
def doDescribeWatermarkDetections(args, parsed_globals):
|
|
956
|
+
g_param = parse_global_arg(parsed_globals)
|
|
957
|
+
|
|
958
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
959
|
+
cred = credential.CVMRoleCredential()
|
|
960
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
961
|
+
cred = credential.STSAssumeRoleCredential(
|
|
962
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
963
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
964
|
+
)
|
|
965
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
966
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
967
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
968
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
969
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
970
|
+
else:
|
|
971
|
+
cred = credential.Credential(
|
|
972
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
973
|
+
)
|
|
974
|
+
http_profile = HttpProfile(
|
|
975
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
976
|
+
reqMethod="POST",
|
|
977
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
978
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
979
|
+
)
|
|
980
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
981
|
+
if g_param[OptionsDefine.Language]:
|
|
982
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
983
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
984
|
+
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
985
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
986
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
987
|
+
model = models.DescribeWatermarkDetectionsRequest()
|
|
988
|
+
model.from_json_string(json.dumps(args))
|
|
989
|
+
start_time = time.time()
|
|
990
|
+
while True:
|
|
991
|
+
rsp = client.DescribeWatermarkDetections(model)
|
|
992
|
+
result = rsp.to_json_string()
|
|
993
|
+
try:
|
|
994
|
+
json_obj = json.loads(result)
|
|
995
|
+
except TypeError as e:
|
|
996
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
997
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
998
|
+
break
|
|
999
|
+
cur_time = time.time()
|
|
1000
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1001
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1002
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1003
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1004
|
+
else:
|
|
1005
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1006
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1007
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1008
|
+
|
|
1009
|
+
|
|
845
1010
|
def doModifyStreamLiveWatermark(args, parsed_globals):
|
|
846
1011
|
g_param = parse_global_arg(parsed_globals)
|
|
847
1012
|
|
|
@@ -1062,7 +1227,7 @@ def doDescribeStreamLiveWatermark(args, parsed_globals):
|
|
|
1062
1227
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1063
1228
|
|
|
1064
1229
|
|
|
1065
|
-
def
|
|
1230
|
+
def doStartStreamLiveChannel(args, parsed_globals):
|
|
1066
1231
|
g_param = parse_global_arg(parsed_globals)
|
|
1067
1232
|
|
|
1068
1233
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1094,11 +1259,11 @@ def doDescribeStreamLiveChannelLogs(args, parsed_globals):
|
|
|
1094
1259
|
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1095
1260
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1096
1261
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1097
|
-
model = models.
|
|
1262
|
+
model = models.StartStreamLiveChannelRequest()
|
|
1098
1263
|
model.from_json_string(json.dumps(args))
|
|
1099
1264
|
start_time = time.time()
|
|
1100
1265
|
while True:
|
|
1101
|
-
rsp = client.
|
|
1266
|
+
rsp = client.StartStreamLiveChannel(model)
|
|
1102
1267
|
result = rsp.to_json_string()
|
|
1103
1268
|
try:
|
|
1104
1269
|
json_obj = json.loads(result)
|
|
@@ -1557,7 +1722,7 @@ def doStopStreamLiveChannel(args, parsed_globals):
|
|
|
1557
1722
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1558
1723
|
|
|
1559
1724
|
|
|
1560
|
-
def
|
|
1725
|
+
def doDeleteStreamLivePlan(args, parsed_globals):
|
|
1561
1726
|
g_param = parse_global_arg(parsed_globals)
|
|
1562
1727
|
|
|
1563
1728
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1589,11 +1754,11 @@ def doDescribeStreamLiveWatermarks(args, parsed_globals):
|
|
|
1589
1754
|
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1590
1755
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1591
1756
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1592
|
-
model = models.
|
|
1757
|
+
model = models.DeleteStreamLivePlanRequest()
|
|
1593
1758
|
model.from_json_string(json.dumps(args))
|
|
1594
1759
|
start_time = time.time()
|
|
1595
1760
|
while True:
|
|
1596
|
-
rsp = client.
|
|
1761
|
+
rsp = client.DeleteStreamLivePlan(model)
|
|
1597
1762
|
result = rsp.to_json_string()
|
|
1598
1763
|
try:
|
|
1599
1764
|
json_obj = json.loads(result)
|
|
@@ -1612,7 +1777,7 @@ def doDescribeStreamLiveWatermarks(args, parsed_globals):
|
|
|
1612
1777
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1613
1778
|
|
|
1614
1779
|
|
|
1615
|
-
def
|
|
1780
|
+
def doDescribeStreamLiveWatermarks(args, parsed_globals):
|
|
1616
1781
|
g_param = parse_global_arg(parsed_globals)
|
|
1617
1782
|
|
|
1618
1783
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1644,11 +1809,11 @@ def doGetAbWatermarkPlayUrl(args, parsed_globals):
|
|
|
1644
1809
|
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1645
1810
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1646
1811
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1647
|
-
model = models.
|
|
1812
|
+
model = models.DescribeStreamLiveWatermarksRequest()
|
|
1648
1813
|
model.from_json_string(json.dumps(args))
|
|
1649
1814
|
start_time = time.time()
|
|
1650
1815
|
while True:
|
|
1651
|
-
rsp = client.
|
|
1816
|
+
rsp = client.DescribeStreamLiveWatermarks(model)
|
|
1652
1817
|
result = rsp.to_json_string()
|
|
1653
1818
|
try:
|
|
1654
1819
|
json_obj = json.loads(result)
|
|
@@ -1667,7 +1832,7 @@ def doGetAbWatermarkPlayUrl(args, parsed_globals):
|
|
|
1667
1832
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1668
1833
|
|
|
1669
1834
|
|
|
1670
|
-
def
|
|
1835
|
+
def doGetAbWatermarkPlayUrl(args, parsed_globals):
|
|
1671
1836
|
g_param = parse_global_arg(parsed_globals)
|
|
1672
1837
|
|
|
1673
1838
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1699,11 +1864,11 @@ def doDeleteStreamLiveInputSecurityGroup(args, parsed_globals):
|
|
|
1699
1864
|
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1700
1865
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1701
1866
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1702
|
-
model = models.
|
|
1867
|
+
model = models.GetAbWatermarkPlayUrlRequest()
|
|
1703
1868
|
model.from_json_string(json.dumps(args))
|
|
1704
1869
|
start_time = time.time()
|
|
1705
1870
|
while True:
|
|
1706
|
-
rsp = client.
|
|
1871
|
+
rsp = client.GetAbWatermarkPlayUrl(model)
|
|
1707
1872
|
result = rsp.to_json_string()
|
|
1708
1873
|
try:
|
|
1709
1874
|
json_obj = json.loads(result)
|
|
@@ -1722,7 +1887,7 @@ def doDeleteStreamLiveInputSecurityGroup(args, parsed_globals):
|
|
|
1722
1887
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1723
1888
|
|
|
1724
1889
|
|
|
1725
|
-
def
|
|
1890
|
+
def doDeleteStreamLiveInputSecurityGroup(args, parsed_globals):
|
|
1726
1891
|
g_param = parse_global_arg(parsed_globals)
|
|
1727
1892
|
|
|
1728
1893
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1754,11 +1919,11 @@ def doCreateStreamLiveInputSecurityGroup(args, parsed_globals):
|
|
|
1754
1919
|
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1755
1920
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1756
1921
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1757
|
-
model = models.
|
|
1922
|
+
model = models.DeleteStreamLiveInputSecurityGroupRequest()
|
|
1758
1923
|
model.from_json_string(json.dumps(args))
|
|
1759
1924
|
start_time = time.time()
|
|
1760
1925
|
while True:
|
|
1761
|
-
rsp = client.
|
|
1926
|
+
rsp = client.DeleteStreamLiveInputSecurityGroup(model)
|
|
1762
1927
|
result = rsp.to_json_string()
|
|
1763
1928
|
try:
|
|
1764
1929
|
json_obj = json.loads(result)
|
|
@@ -1777,7 +1942,7 @@ def doCreateStreamLiveInputSecurityGroup(args, parsed_globals):
|
|
|
1777
1942
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1778
1943
|
|
|
1779
1944
|
|
|
1780
|
-
def
|
|
1945
|
+
def doCreateStreamLiveInputSecurityGroup(args, parsed_globals):
|
|
1781
1946
|
g_param = parse_global_arg(parsed_globals)
|
|
1782
1947
|
|
|
1783
1948
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1809,11 +1974,11 @@ def doStartStreamLiveChannel(args, parsed_globals):
|
|
|
1809
1974
|
client = mod.MdlClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1810
1975
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1811
1976
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1812
|
-
model = models.
|
|
1977
|
+
model = models.CreateStreamLiveInputSecurityGroupRequest()
|
|
1813
1978
|
model.from_json_string(json.dumps(args))
|
|
1814
1979
|
start_time = time.time()
|
|
1815
1980
|
while True:
|
|
1816
|
-
rsp = client.
|
|
1981
|
+
rsp = client.CreateStreamLiveInputSecurityGroup(model)
|
|
1817
1982
|
result = rsp.to_json_string()
|
|
1818
1983
|
try:
|
|
1819
1984
|
json_obj = json.loads(result)
|
|
@@ -1844,10 +2009,12 @@ MODELS_MAP = {
|
|
|
1844
2009
|
|
|
1845
2010
|
ACTION_MAP = {
|
|
1846
2011
|
"DescribeStreamLiveChannelAlerts": doDescribeStreamLiveChannelAlerts,
|
|
2012
|
+
"DescribeWatermarkDetection": doDescribeWatermarkDetection,
|
|
1847
2013
|
"DescribeStreamLiveChannel": doDescribeStreamLiveChannel,
|
|
1848
2014
|
"CreateStreamLiveInput": doCreateStreamLiveInput,
|
|
1849
|
-
"
|
|
2015
|
+
"DescribeStreamLiveChannelLogs": doDescribeStreamLiveChannelLogs,
|
|
1850
2016
|
"DescribeStreamLiveInputSecurityGroups": doDescribeStreamLiveInputSecurityGroups,
|
|
2017
|
+
"CreateWatermarkDetection": doCreateWatermarkDetection,
|
|
1851
2018
|
"DescribeStreamLiveChannelInputStatistics": doDescribeStreamLiveChannelInputStatistics,
|
|
1852
2019
|
"DeleteStreamLiveChannel": doDeleteStreamLiveChannel,
|
|
1853
2020
|
"DescribeStreamLiveRegions": doDescribeStreamLiveRegions,
|
|
@@ -1858,11 +2025,12 @@ ACTION_MAP = {
|
|
|
1858
2025
|
"ModifyStreamLiveChannel": doModifyStreamLiveChannel,
|
|
1859
2026
|
"DescribeStreamLiveChannels": doDescribeStreamLiveChannels,
|
|
1860
2027
|
"DescribeStreamLivePlans": doDescribeStreamLivePlans,
|
|
2028
|
+
"DescribeWatermarkDetections": doDescribeWatermarkDetections,
|
|
1861
2029
|
"ModifyStreamLiveWatermark": doModifyStreamLiveWatermark,
|
|
1862
2030
|
"CreateStreamLiveWatermark": doCreateStreamLiveWatermark,
|
|
1863
2031
|
"DescribeStreamLiveInputs": doDescribeStreamLiveInputs,
|
|
1864
2032
|
"DescribeStreamLiveWatermark": doDescribeStreamLiveWatermark,
|
|
1865
|
-
"
|
|
2033
|
+
"StartStreamLiveChannel": doStartStreamLiveChannel,
|
|
1866
2034
|
"QueryInputStreamState": doQueryInputStreamState,
|
|
1867
2035
|
"DescribeStreamLiveInput": doDescribeStreamLiveInput,
|
|
1868
2036
|
"DeleteStreamLiveWatermark": doDeleteStreamLiveWatermark,
|
|
@@ -1871,11 +2039,11 @@ ACTION_MAP = {
|
|
|
1871
2039
|
"DeleteStreamLiveInput": doDeleteStreamLiveInput,
|
|
1872
2040
|
"DescribeStreamLiveChannelOutputStatistics": doDescribeStreamLiveChannelOutputStatistics,
|
|
1873
2041
|
"StopStreamLiveChannel": doStopStreamLiveChannel,
|
|
2042
|
+
"DeleteStreamLivePlan": doDeleteStreamLivePlan,
|
|
1874
2043
|
"DescribeStreamLiveWatermarks": doDescribeStreamLiveWatermarks,
|
|
1875
2044
|
"GetAbWatermarkPlayUrl": doGetAbWatermarkPlayUrl,
|
|
1876
2045
|
"DeleteStreamLiveInputSecurityGroup": doDeleteStreamLiveInputSecurityGroup,
|
|
1877
2046
|
"CreateStreamLiveInputSecurityGroup": doCreateStreamLiveInputSecurityGroup,
|
|
1878
|
-
"StartStreamLiveChannel": doStartStreamLiveChannel,
|
|
1879
2047
|
|
|
1880
2048
|
}
|
|
1881
2049
|
|