tccli 3.0.1220.1__py2.py3-none-any.whl → 3.0.1222.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 +36 -36
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/bsca/v20210811/api.json +11 -1
- tccli/services/cdb/v20170320/api.json +5 -5
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/cdn/v20180606/api.json +3 -3
- tccli/services/cdwdoris/v20211228/api.json +40 -0
- tccli/services/cfg/cfg_client.py +57 -4
- tccli/services/cfg/v20210820/api.json +113 -0
- tccli/services/cfg/v20210820/examples.json +8 -0
- tccli/services/cfs/v20190719/api.json +1 -1
- tccli/services/cfs/v20190719/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +14 -0
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +15 -5
- tccli/services/dbdc/v20201029/api.json +43 -43
- tccli/services/dbdc/v20201029/examples.json +5 -5
- tccli/services/dcdb/v20180411/api.json +67 -79
- tccli/services/dnspod/v20210323/api.json +1 -1
- tccli/services/dts/v20211206/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/gwlb/v20240906/api.json +6 -6
- tccli/services/gwlb/v20240906/examples.json +4 -4
- tccli/services/iotexplorer/v20190423/api.json +5 -5
- tccli/services/live/live_client.py +731 -42
- tccli/services/live/v20180801/api.json +1060 -96
- tccli/services/live/v20180801/examples.json +104 -0
- tccli/services/lke/lke_client.py +53 -0
- tccli/services/lke/v20231130/api.json +789 -87
- tccli/services/lke/v20231130/examples.json +24 -16
- tccli/services/mariadb/v20170312/api.json +70 -88
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/svp/v20240125/api.json +6 -6
- tccli/services/thpc/v20230321/api.json +2 -2
- tccli/services/tke/v20180525/api.json +10 -0
- tccli/services/trtc/v20190722/api.json +56 -73
- tccli/services/tse/v20201207/api.json +150 -129
- tccli/services/tse/v20201207/examples.json +58 -58
- tccli/services/vpc/v20170312/api.json +13 -16
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +3 -3
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/RECORD +47 -47
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,5 +1,29 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"AddCasterInputInfo": [
|
4
|
+
{
|
5
|
+
"document": "新增一个输入源",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddCasterInputInfo\n<公共请求参数>\n\n{\n \"InputInfo\": {\n \"Description\": \"for_example\",\n \"InputIndex\": \"1\",\n \"InputType\": \"1\",\n \"InputUrl\": \"http://www.example.com/vod/example.mp4\"\n },\n \"CasterId\": \"1234\"\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"InputPlayUrl\": \"rtmp://domain/live/input_play\",\n \"InputWebRTCPlayUrl\": \"webrtc://webrtc.domain/live/input_play\"\n }\n}",
|
8
|
+
"title": "请求示例"
|
9
|
+
}
|
10
|
+
],
|
11
|
+
"AddCasterLayoutInfo": [
|
12
|
+
{
|
13
|
+
"document": "",
|
14
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddCasterLayoutInfo\n<公共请求参数>\n\n{\n \"LayoutInfo\": {\n \"LayoutIndex\": \"1\",\n \"InputIndexList\": \"1|2\",\n \"LayoutTemplateId\": \"20\"\n },\n \"CasterId\": 1234\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
16
|
+
"title": "添加布局20,绑定输入1,输入2"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"AddCasterOutputInfo": [
|
20
|
+
{
|
21
|
+
"document": "",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddCasterOutputInfo\n<公共请求参数>\n\n{\n \"CasterId\": \"1234\",\n \"OutputInfo\": {\n \"OutputIndex\": 1,\n \"OutputUrl\": \"rtmp://example.third.push.domain/live/push_stream_id\"\n }\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
24
|
+
"title": "新增一个推流到第三方配置"
|
25
|
+
}
|
26
|
+
],
|
3
27
|
"AddDelayLiveStream": [
|
4
28
|
{
|
5
29
|
"document": "",
|
@@ -56,6 +80,14 @@
|
|
56
80
|
"title": "请求示例"
|
57
81
|
}
|
58
82
|
],
|
83
|
+
"CreateCasterInputPushUrl": [
|
84
|
+
{
|
85
|
+
"document": "",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCasterInputPushUrl\n<公共请求参数>\n\n{\n \"InputIndex\": \"1\",\n \"CasterId\": \"1234\"\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"PushUrl\": \"rtmp://www.example.com/live/caster_example_stream_id?example_param=example\",\n \"RequestId\": \"c8b02a52-1062-4d6d-9837-54d48b17e8f9\"\n }\n}",
|
88
|
+
"title": "请求示例"
|
89
|
+
}
|
90
|
+
],
|
59
91
|
"CreateCommonMixStream": [
|
60
92
|
{
|
61
93
|
"document": "使用混流预置模板混流。",
|
@@ -248,6 +280,30 @@
|
|
248
280
|
"title": "请求示例"
|
249
281
|
}
|
250
282
|
],
|
283
|
+
"DeleteCasterInputInfo": [
|
284
|
+
{
|
285
|
+
"document": "删除导播台1234的输入源1。",
|
286
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCasterInputInfo\n<公共请求参数>\n\n{\n \"InputIndex\": \"1\",\n \"CasterId\": \"1234\"\n}",
|
287
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
288
|
+
"title": "请求示例"
|
289
|
+
}
|
290
|
+
],
|
291
|
+
"DeleteCasterLayoutInfo": [
|
292
|
+
{
|
293
|
+
"document": "",
|
294
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCasterLayoutInfo\n<公共请求参数>\n\n{\n \"CasterId\": \"1234\",\n \"LayoutIndex\": \"1\"\n}",
|
295
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
296
|
+
"title": "请求示例"
|
297
|
+
}
|
298
|
+
],
|
299
|
+
"DeleteCasterOutputInfo": [
|
300
|
+
{
|
301
|
+
"document": "",
|
302
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCasterOutputInfo\n<公共请求参数>\n\n{\n \"OutputIndex\": 1,\n \"CasterId\": \"1234\"\n}",
|
303
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
304
|
+
"title": "请求删除Index为1的推流配置"
|
305
|
+
}
|
306
|
+
],
|
251
307
|
"DeleteLiveCallbackRule": [
|
252
308
|
{
|
253
309
|
"document": "删除直播回调规则。",
|
@@ -472,6 +528,22 @@
|
|
472
528
|
"title": "查询导播台展示信息"
|
473
529
|
}
|
474
530
|
],
|
531
|
+
"DescribeCasterInputInfos": [
|
532
|
+
{
|
533
|
+
"document": "",
|
534
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCasterInputInfos\n<公共请求参数>\n\n{\n \"CasterId\": \"1234\"\n}",
|
535
|
+
"output": "{\n \"Response\": {\n \"InputInfos\": [\n {\n \"InputIndex\": 1,\n \"InputType\": 1,\n \"InputUrl\": \"\",\n \"Description\": \"点播\",\n \"PullPushEnable\": true,\n \"LoopEnable\": true,\n \"LoopNumber\": -1,\n \"Volume\": 100,\n \"InputUrls\": [\n \"https://www.example.com/vod.mp4\"\n ]\n }\n ],\n \"RequestId\": \"f505e243-8f0e-4d50-a212-bba4effe7bee\"\n }\n}",
|
536
|
+
"title": "查询输入源列表"
|
537
|
+
}
|
538
|
+
],
|
539
|
+
"DescribeCasterLayoutInfos": [
|
540
|
+
{
|
541
|
+
"document": "",
|
542
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCasterLayoutInfos\n<公共请求参数>\n\n{\n \"CasterId\": 1234\n}",
|
543
|
+
"output": "{\n \"Response\": {\n \"LayoutInfos\": [\n {\n \"LayoutIndex\": 1,\n \"InputIndexList\": \"1|2\",\n \"LayoutTemplateId\": 20,\n \"LayoutWidth\": 1280,\n \"LayoutHeight\": 720,\n \"LayoutParams\": [\n {\n \"LayerId\": 1,\n \"LayerWidth\": 0.5,\n \"LayerHeight\": 1,\n \"LayerLocationX\": 0,\n \"LayerLocationY\": 0,\n \"UsePortraitSegment\": false\n },\n {\n \"LayerId\": 2,\n \"LayerWidth\": 0.5,\n \"LayerHeight\": 1,\n \"LayerLocationX\": 0.5,\n \"LayerLocationY\": 0,\n \"UsePortraitSegment\": false\n }\n ]\n }\n ],\n \"RequestId\": \"203cd886-18d8-4f42-a9b4-141c182bc920\"\n }\n}",
|
544
|
+
"title": "查询导播台的布局列表"
|
545
|
+
}
|
546
|
+
],
|
475
547
|
"DescribeCasterList": [
|
476
548
|
{
|
477
549
|
"document": "获取某个账号下的所有导播台列表",
|
@@ -480,6 +552,14 @@
|
|
480
552
|
"title": "请求示例"
|
481
553
|
}
|
482
554
|
],
|
555
|
+
"DescribeCasterOutputInfos": [
|
556
|
+
{
|
557
|
+
"document": "",
|
558
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCasterOutputInfos\n<公共请求参数>\n\n{\n \"CasterId\": 1234\n}",
|
559
|
+
"output": "{\n \"Response\": {\n \"OutputInfos\": [\n {\n \"OutputIndex\": 0,\n \"OutputType\": 1,\n \"OutputUrl\": \"rtmp://example.tlive.com/live/example_stream_id\",\n \"Description\": \"\",\n \"OutputStreamId\": \"example_stream_id\",\n \"OutputDomainName\": \"example.tlive.com\",\n \"OutputAppName\": \"live\",\n \"OutputParam\": \"\"\n }\n ],\n \"RequestId\": \"a25094ea-f516-420a-81d0-5f5c54a9e823\"\n }\n}",
|
560
|
+
"title": "查询某个导播台的推流信息列表"
|
561
|
+
}
|
562
|
+
],
|
483
563
|
"DescribeCasterPlayUrl": [
|
484
564
|
{
|
485
565
|
"document": "获取某个输入或者预监、主监的播放地址",
|
@@ -1144,6 +1224,30 @@
|
|
1144
1224
|
"title": "请求示例"
|
1145
1225
|
}
|
1146
1226
|
],
|
1227
|
+
"ModifyCasterInputInfo": [
|
1228
|
+
{
|
1229
|
+
"document": "将Index为1的输入源修改为一个导播台推流地址",
|
1230
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCasterInputInfo\n<公共请求参数>\n\n{\n \"InputInfo\": {\n \"Description\": \"modify example\",\n \"InputIndex\": \"1\",\n \"InputType\": \"0\",\n \"InputUrl\": \"rtmp://caster.push.example.com/live/example\"\n },\n \"CasterId\": \"10\"\n}",
|
1231
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"InputPlayUrl\": \"http://play.example.com/live/example_stream_id\",\n \"InputWebRTCPlayUrl\": \"webrtc://webrtc.play.example.com/live/example_stream_id\"\n }\n}",
|
1232
|
+
"title": "请求示例"
|
1233
|
+
}
|
1234
|
+
],
|
1235
|
+
"ModifyCasterLayoutInfo": [
|
1236
|
+
{
|
1237
|
+
"document": "",
|
1238
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCasterLayoutInfo\n<公共请求参数>\n\n{\n \"LayoutInfo\": {\n \"LayoutIndex\": \"1\",\n \"InputIndexList\": \"2|3\",\n \"LayoutTemplateId\": \"20\"\n },\n \"CasterId\": \"1234\"\n}",
|
1239
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
1240
|
+
"title": "修改模版20的布局使用的布局为输入2,输入3"
|
1241
|
+
}
|
1242
|
+
],
|
1243
|
+
"ModifyCasterOutputInfo": [
|
1244
|
+
{
|
1245
|
+
"document": "",
|
1246
|
+
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCasterOutputInfo\n<公共请求参数>\n\n{\n \"CasterId\": \"1234\",\n \"OutputInfo\": {\n \"OutputIndex\": 1,\n \"OutputUrl\": \"rtmp://another.third.push.domain/live/another_stream_id\"\n }\n}",
|
1247
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
1248
|
+
"title": "修改Index为1的推流信息"
|
1249
|
+
}
|
1250
|
+
],
|
1147
1251
|
"ModifyLiveCallbackTemplate": [
|
1148
1252
|
{
|
1149
1253
|
"document": "请求示例",
|
tccli/services/lke/lke_client.py
CHANGED
@@ -745,6 +745,58 @@ def doListRejectedQuestionPreview(args, parsed_globals):
|
|
745
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
746
|
|
747
747
|
|
748
|
+
def doRunReRank(args, parsed_globals):
|
749
|
+
g_param = parse_global_arg(parsed_globals)
|
750
|
+
|
751
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
752
|
+
cred = credential.CVMRoleCredential()
|
753
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
754
|
+
cred = credential.STSAssumeRoleCredential(
|
755
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
756
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
757
|
+
)
|
758
|
+
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):
|
759
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
760
|
+
else:
|
761
|
+
cred = credential.Credential(
|
762
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
763
|
+
)
|
764
|
+
http_profile = HttpProfile(
|
765
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
766
|
+
reqMethod="POST",
|
767
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
768
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
769
|
+
)
|
770
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
771
|
+
if g_param[OptionsDefine.Language]:
|
772
|
+
profile.language = g_param[OptionsDefine.Language]
|
773
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
774
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
775
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
776
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
777
|
+
model = models.RunReRankRequest()
|
778
|
+
model.from_json_string(json.dumps(args))
|
779
|
+
start_time = time.time()
|
780
|
+
while True:
|
781
|
+
rsp = client.RunReRank(model)
|
782
|
+
result = rsp.to_json_string()
|
783
|
+
try:
|
784
|
+
json_obj = json.loads(result)
|
785
|
+
except TypeError as e:
|
786
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
787
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
788
|
+
break
|
789
|
+
cur_time = time.time()
|
790
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
791
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
792
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
793
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
794
|
+
else:
|
795
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
796
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
797
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
|
+
|
799
|
+
|
748
800
|
def doRetryDocParse(args, parsed_globals):
|
749
801
|
g_param = parse_global_arg(parsed_globals)
|
750
802
|
|
@@ -4722,6 +4774,7 @@ ACTION_MAP = {
|
|
4722
4774
|
"GenerateQA": doGenerateQA,
|
4723
4775
|
"DescribeAttributeLabel": doDescribeAttributeLabel,
|
4724
4776
|
"ListRejectedQuestionPreview": doListRejectedQuestionPreview,
|
4777
|
+
"RunReRank": doRunReRank,
|
4725
4778
|
"RetryDocParse": doRetryDocParse,
|
4726
4779
|
"CreateQA": doCreateQA,
|
4727
4780
|
"DescribeTokenUsageGraph": doDescribeTokenUsageGraph,
|