tccli 3.0.1215.1__py2.py3-none-any.whl → 3.0.1217.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/argparser.py +1 -1
- tccli/command.py +2 -2
- tccli/configure.py +46 -1
- tccli/credentials.py +25 -0
- tccli/main.py +6 -2
- tccli/plugins/sso/__init__.py +61 -0
- tccli/plugins/sso/configs.py +4 -0
- tccli/plugins/sso/configure.py +45 -0
- tccli/plugins/sso/login.py +144 -0
- tccli/plugins/sso/logout.py +21 -0
- tccli/plugins/sso/terminal.py +161 -0
- tccli/plugins/sso/texts.py +40 -0
- tccli/services/__init__.py +6 -3
- tccli/services/acp/v20220105/api.json +7 -7
- tccli/services/acp/v20220105/examples.json +2 -2
- tccli/services/aiart/v20221229/api.json +29 -29
- tccli/services/aiart/v20221229/examples.json +8 -8
- tccli/services/apigateway/v20180808/api.json +18 -17
- tccli/services/apigateway/v20180808/examples.json +12 -12
- tccli/services/apm/v20210622/api.json +118 -4
- tccli/services/asr/v20190614/api.json +21 -20
- tccli/services/asr/v20190614/examples.json +13 -13
- tccli/services/autoscaling/v20180419/api.json +371 -309
- tccli/services/autoscaling/v20180419/examples.json +17 -17
- tccli/services/batch/v20170312/api.json +7 -7
- tccli/services/bda/v20200324/api.json +39 -31
- tccli/services/bda/v20200324/examples.json +9 -9
- tccli/services/bh/__init__.py +4 -0
- tccli/services/bh/bh_client.py +3428 -0
- tccli/services/bh/v20230418/api.json +8180 -0
- tccli/services/bh/v20230418/examples.json +519 -0
- tccli/services/bi/v20220105/api.json +80 -4
- tccli/services/bi/v20220105/examples.json +1 -1
- tccli/services/billing/billing_client.py +53 -0
- tccli/services/billing/v20180709/api.json +330 -24
- tccli/services/billing/v20180709/examples.json +8 -0
- tccli/services/bsca/v20210811/api.json +223 -18
- tccli/services/bsca/v20210811/examples.json +4 -4
- tccli/services/btoe/v20210514/api.json +4 -4
- tccli/services/btoe/v20210514/examples.json +2 -2
- tccli/services/ca/v20230228/api.json +60 -0
- tccli/services/cam/v20190116/api.json +11 -11
- tccli/services/cat/v20180409/api.json +9 -0
- tccli/services/cbs/v20170312/api.json +200 -188
- tccli/services/cbs/v20170312/examples.json +4 -4
- tccli/services/ccc/ccc_client.py +53 -0
- tccli/services/ccc/v20200210/api.json +541 -325
- tccli/services/ccc/v20200210/examples.json +26 -18
- tccli/services/cdb/cdb_client.py +13 -13
- tccli/services/cdb/v20170320/api.json +308 -274
- tccli/services/cdb/v20170320/examples.json +38 -38
- tccli/services/cdc/v20201214/api.json +283 -270
- tccli/services/cdc/v20201214/examples.json +26 -26
- tccli/services/cdn/v20180606/api.json +5 -3
- tccli/services/cds/v20180420/api.json +82 -76
- tccli/services/cds/v20180420/examples.json +1 -1
- tccli/services/cdwch/v20200915/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +54 -4
- tccli/services/cdz/v20221123/api.json +41 -5
- tccli/services/cfg/v20210820/api.json +31 -0
- tccli/services/cfs/v20190719/api.json +89 -1
- tccli/services/cfs/v20190719/examples.json +1 -1
- tccli/services/cfw/cfw_client.py +0 -53
- tccli/services/cfw/v20190904/api.json +1895 -2011
- tccli/services/cfw/v20190904/examples.json +175 -171
- tccli/services/ciam/v20220331/api.json +316 -315
- tccli/services/ciam/v20220331/examples.json +49 -49
- tccli/services/ckafka/v20190819/api.json +104 -75
- tccli/services/clb/v20180317/api.json +48 -26
- tccli/services/clb/v20180317/examples.json +1 -1
- tccli/services/cloudapp/v20220530/api.json +5 -1
- tccli/services/cloudaudit/cloudaudit_client.py +30 -30
- tccli/services/cloudaudit/v20190319/api.json +254 -211
- tccli/services/cloudaudit/v20190319/examples.json +19 -19
- tccli/services/cloudstudio/v20230508/api.json +38 -37
- tccli/services/cloudstudio/v20230508/examples.json +4 -4
- tccli/services/cls/cls_client.py +216 -4
- tccli/services/cls/v20201016/api.json +935 -147
- tccli/services/cls/v20201016/examples.json +43 -5
- tccli/services/csip/v20221121/api.json +2566 -2386
- tccli/services/csip/v20221121/examples.json +108 -108
- tccli/services/cvm/v20170312/api.json +191 -112
- tccli/services/cvm/v20170312/examples.json +2 -2
- tccli/services/cwp/cwp_client.py +4 -110
- tccli/services/cwp/v20180228/api.json +6498 -6252
- tccli/services/cwp/v20180228/examples.json +372 -412
- tccli/services/cynosdb/v20190107/api.json +170 -110
- tccli/services/cynosdb/v20190107/examples.json +91 -91
- tccli/services/dasb/v20191018/api.json +859 -637
- tccli/services/dasb/v20191018/examples.json +101 -101
- tccli/services/dcdb/dcdb_client.py +114 -61
- tccli/services/dcdb/v20180411/api.json +141 -7
- tccli/services/dcdb/v20180411/examples.json +32 -0
- tccli/services/dlc/v20210125/api.json +21 -11
- tccli/services/dnspod/dnspod_client.py +417 -46
- tccli/services/dnspod/v20210323/api.json +751 -30
- tccli/services/dnspod/v20210323/examples.json +62 -0
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/dts/v20211206/api.json +4 -4
- tccli/services/eb/v20210416/api.json +15 -15
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/ecm/v20190719/api.json +2 -2
- tccli/services/emr/v20190103/api.json +339 -114
- tccli/services/emr/v20190103/examples.json +64 -82
- tccli/services/es/es_client.py +249 -37
- tccli/services/es/v20180416/api.json +550 -0
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +192 -38
- tccli/services/ess/v20201111/examples.json +35 -9
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +287 -60
- tccli/services/essbasic/v20210526/examples.json +58 -18
- tccli/services/facefusion/v20181201/api.json +47 -45
- tccli/services/facefusion/v20181201/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +54 -48
- tccli/services/facefusion/v20220927/examples.json +5 -5
- tccli/services/faceid/v20180301/api.json +497 -496
- tccli/services/faceid/v20180301/examples.json +219 -101
- tccli/services/fmu/v20191213/api.json +59 -67
- tccli/services/fmu/v20191213/examples.json +22 -22
- tccli/services/ft/v20200304/api.json +53 -57
- tccli/services/ft/v20200304/examples.json +14 -14
- tccli/services/gaap/v20180529/api.json +44 -26
- tccli/services/gaap/v20180529/examples.json +24 -30
- tccli/services/gme/v20180711/api.json +21 -11
- tccli/services/gme/v20180711/examples.json +1 -1
- tccli/services/hai/v20230812/api.json +116 -9
- tccli/services/hai/v20230812/examples.json +4 -4
- tccli/services/hunyuan/hunyuan_client.py +436 -12
- tccli/services/hunyuan/v20230901/api.json +1482 -118
- tccli/services/hunyuan/v20230901/examples.json +82 -18
- tccli/services/iai/v20180301/api.json +23 -19
- tccli/services/iai/v20180301/examples.json +2 -2
- tccli/services/iai/v20200303/api.json +530 -511
- tccli/services/iai/v20200303/examples.json +116 -86
- tccli/services/ig/__init__.py +4 -0
- tccli/services/ig/ig_client.py +195 -0
- tccli/services/ig/v20210518/api.json +83 -0
- tccli/services/ig/v20210518/examples.json +13 -0
- tccli/services/ioa/ioa_client.py +53 -0
- tccli/services/ioa/v20220601/api.json +662 -413
- tccli/services/ioa/v20220601/examples.json +24 -10
- tccli/services/iotexplorer/v20190423/api.json +73 -13
- tccli/services/iotexplorer/v20190423/examples.json +3 -3
- tccli/services/iotvideo/iotvideo_client.py +106 -0
- tccli/services/iotvideo/v20191126/api.json +256 -24
- tccli/services/iotvideo/v20191126/examples.json +19 -3
- tccli/services/iotvideo/v20201215/api.json +1 -1
- tccli/services/iotvideo/v20201215/examples.json +1 -1
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/iotvideo/v20211125/examples.json +2 -2
- tccli/services/iss/iss_client.py +69 -122
- tccli/services/iss/v20230517/api.json +10 -54
- tccli/services/iss/v20230517/examples.json +0 -14
- tccli/services/kms/v20190118/api.json +301 -268
- tccli/services/kms/v20190118/examples.json +45 -51
- tccli/services/lcic/lcic_client.py +159 -0
- tccli/services/lcic/v20220817/api.json +273 -1
- tccli/services/lcic/v20220817/examples.json +24 -0
- tccli/services/lighthouse/v20200324/api.json +56 -0
- tccli/services/live/live_client.py +159 -0
- tccli/services/live/v20180801/api.json +279 -9
- tccli/services/live/v20180801/examples.json +24 -0
- tccli/services/lke/v20231130/api.json +17 -17
- tccli/services/lke/v20231130/examples.json +19 -25
- tccli/services/mariadb/v20170312/api.json +7 -7
- tccli/services/market/v20191010/api.json +3 -3
- tccli/services/market/v20191010/examples.json +2 -2
- tccli/services/mmps/v20200710/api.json +47 -47
- tccli/services/mmps/v20200710/examples.json +3 -3
- tccli/services/mongodb/v20190725/api.json +10 -12
- tccli/services/monitor/v20180724/api.json +46 -19
- tccli/services/mps/v20190612/api.json +282 -5
- tccli/services/mps/v20190612/examples.json +25 -1
- tccli/services/mqtt/v20240516/api.json +2 -2
- tccli/services/mrs/v20200910/api.json +72 -34
- tccli/services/mrs/v20200910/examples.json +2 -2
- tccli/services/ms/v20180408/api.json +535 -506
- tccli/services/ms/v20180408/examples.json +25 -25
- tccli/services/oceanus/v20190422/api.json +130 -0
- tccli/services/ocr/ocr_client.py +232 -20
- tccli/services/ocr/v20181119/api.json +2263 -758
- tccli/services/ocr/v20181119/examples.json +200 -180
- tccli/services/omics/v20221128/api.json +614 -553
- tccli/services/omics/v20221128/examples.json +9 -9
- tccli/services/organization/organization_client.py +352 -34
- tccli/services/organization/v20210331/api.json +464 -4
- tccli/services/organization/v20210331/examples.json +49 -1
- tccli/services/partners/v20180321/api.json +244 -234
- tccli/services/partners/v20180321/examples.json +19 -19
- tccli/services/privatedns/privatedns_client.py +428 -4
- tccli/services/privatedns/v20201028/api.json +815 -11
- tccli/services/privatedns/v20201028/examples.json +64 -0
- tccli/services/pts/v20210728/api.json +18 -0
- tccli/services/pts/v20210728/examples.json +1 -1
- tccli/services/rce/rce_client.py +53 -0
- tccli/services/rce/v20201103/api.json +146 -0
- tccli/services/rce/v20201103/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +42 -42
- tccli/services/redis/v20180412/examples.json +19 -19
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +9 -0
- tccli/services/scf/scf_client.py +269 -4
- tccli/services/scf/v20180416/api.json +569 -15
- tccli/services/scf/v20180416/examples.json +47 -1
- tccli/services/smop/v20201203/api.json +46 -42
- tccli/services/smop/v20201203/examples.json +2 -2
- tccli/services/soe/v20180724/api.json +10 -10
- tccli/services/sqlserver/v20180328/api.json +21 -8
- tccli/services/sqlserver/v20180328/examples.json +5 -5
- tccli/services/ssl/v20191205/api.json +98 -5
- tccli/services/ssm/v20190923/api.json +292 -231
- tccli/services/ssm/v20190923/examples.json +42 -42
- tccli/services/tat/v20201028/api.json +124 -122
- tccli/services/tat/v20201028/examples.json +24 -30
- tccli/services/tchd/v20230306/api.json +5 -5
- tccli/services/tchd/v20230306/examples.json +3 -3
- tccli/services/tcr/v20190924/api.json +1 -1
- tccli/services/tcr/v20190924/examples.json +1 -1
- tccli/services/tcss/v20201101/api.json +1984 -1437
- tccli/services/tcss/v20201101/examples.json +350 -368
- tccli/services/tdmq/v20200217/api.json +603 -464
- tccli/services/tdmq/v20200217/examples.json +105 -105
- tccli/services/tds/v20220801/api.json +4 -4
- tccli/services/tem/v20210701/api.json +429 -372
- tccli/services/tem/v20210701/examples.json +85 -85
- tccli/services/teo/teo_client.py +277 -12
- tccli/services/teo/v20220901/api.json +1029 -124
- tccli/services/teo/v20220901/examples.json +84 -8
- tccli/services/thpc/v20230321/api.json +5 -5
- tccli/services/tke/tke_client.py +270 -58
- tccli/services/tke/v20180525/api.json +79 -27
- tccli/services/tke/v20180525/examples.json +9 -1
- tccli/services/tke/v20220501/api.json +176 -0
- tccli/services/tke/v20220501/examples.json +24 -0
- tccli/services/tms/tms_client.py +4 -57
- tccli/services/tms/v20201229/api.json +0 -354
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +38 -8
- tccli/services/trp/v20210515/api.json +86 -74
- tccli/services/trp/v20210515/examples.json +65 -65
- tccli/services/trro/v20220325/api.json +72 -71
- tccli/services/trro/v20220325/examples.json +8 -8
- tccli/services/trtc/trtc_client.py +8 -61
- tccli/services/trtc/v20190722/api.json +293 -52
- tccli/services/trtc/v20190722/examples.json +3 -11
- tccli/services/tse/tse_client.py +110 -4
- tccli/services/tse/v20201207/api.json +122 -7
- tccli/services/tse/v20201207/examples.json +25 -9
- tccli/services/vclm/v20240523/api.json +225 -82
- tccli/services/vclm/v20240523/examples.json +13 -19
- tccli/services/vod/v20180717/api.json +431 -4
- tccli/services/vod/v20180717/examples.json +25 -5
- tccli/services/vod/v20240718/api.json +11 -11
- tccli/services/vod/v20240718/examples.json +4 -4
- tccli/services/vod/vod_client.py +53 -0
- tccli/services/vpc/v20170312/api.json +1195 -892
- tccli/services/vpc/v20170312/examples.json +84 -68
- tccli/services/vpc/vpc_client.py +168 -62
- tccli/services/waf/v20180125/api.json +2611 -2187
- tccli/services/waf/v20180125/examples.json +224 -284
- tccli/services/waf/waf_client.py +225 -119
- tccli/services/wav/v20210129/api.json +48 -48
- tccli/services/wav/v20210129/examples.json +4 -4
- tccli/services/wedata/v20210820/api.json +1595 -25
- tccli/services/wedata/v20210820/examples.json +44 -4
- tccli/services/wedata/wedata_client.py +265 -0
- tccli/services/weilingwith/v20230427/api.json +6 -6
- tccli/services/weilingwith/v20230427/examples.json +3 -3
- tccli/sso.py +229 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/METADATA +6 -2
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/RECORD +278 -265
- tccli/services/cr/__init__.py +0 -4
- tccli/services/cr/cr_client.py +0 -1626
- tccli/services/cr/v20180321/api.json +0 -2829
- tccli/services/cr/v20180321/examples.json +0 -235
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/license_files/LICENSE +0 -0
@@ -231,6 +231,13 @@
|
|
231
231
|
"output": "DescribeQuestionListResponse",
|
232
232
|
"status": "online"
|
233
233
|
},
|
234
|
+
"DescribeRecord": {
|
235
|
+
"document": "查询录制信息",
|
236
|
+
"input": "DescribeRecordRequest",
|
237
|
+
"name": "查询录制信息",
|
238
|
+
"output": "DescribeRecordResponse",
|
239
|
+
"status": "online"
|
240
|
+
},
|
234
241
|
"DescribeRecordStream": {
|
235
242
|
"document": "录制流查询",
|
236
243
|
"input": "DescribeRecordStreamRequest",
|
@@ -413,6 +420,13 @@
|
|
413
420
|
"output": "SetWatermarkResponse",
|
414
421
|
"status": "online"
|
415
422
|
},
|
423
|
+
"StartRecord": {
|
424
|
+
"document": "开始录制",
|
425
|
+
"input": "StartRecordRequest",
|
426
|
+
"name": "开启录制",
|
427
|
+
"output": "StartRecordResponse",
|
428
|
+
"status": "online"
|
429
|
+
},
|
416
430
|
"StartRoom": {
|
417
431
|
"document": "开始房间的直播。 说明:开始房间接口调用之前需要有用户进入课堂初始化课堂信息。",
|
418
432
|
"input": "StartRoomRequest",
|
@@ -420,6 +434,13 @@
|
|
420
434
|
"output": "StartRoomResponse",
|
421
435
|
"status": "online"
|
422
436
|
},
|
437
|
+
"StopRecord": {
|
438
|
+
"document": "停止录制",
|
439
|
+
"input": "StopRecordRequest",
|
440
|
+
"name": "停止录制",
|
441
|
+
"output": "StopRecordResponse",
|
442
|
+
"status": "online"
|
443
|
+
},
|
423
444
|
"UnbindDocumentFromRoom": {
|
424
445
|
"document": "文档从房间解绑",
|
425
446
|
"input": "UnbindDocumentFromRoomRequest",
|
@@ -1890,6 +1911,100 @@
|
|
1890
1911
|
],
|
1891
1912
|
"usage": "both"
|
1892
1913
|
},
|
1914
|
+
"CustomRecordInfo": {
|
1915
|
+
"document": "自定义录制信息",
|
1916
|
+
"members": [
|
1917
|
+
{
|
1918
|
+
"disabled": false,
|
1919
|
+
"document": "开始时间",
|
1920
|
+
"example": "1234231",
|
1921
|
+
"member": "uint64",
|
1922
|
+
"name": "StartTime",
|
1923
|
+
"output_required": false,
|
1924
|
+
"required": false,
|
1925
|
+
"type": "int",
|
1926
|
+
"value_allowed_null": false
|
1927
|
+
},
|
1928
|
+
{
|
1929
|
+
"disabled": false,
|
1930
|
+
"document": "结束时间",
|
1931
|
+
"example": "4323213",
|
1932
|
+
"member": "uint64",
|
1933
|
+
"name": "StopTime",
|
1934
|
+
"output_required": false,
|
1935
|
+
"required": false,
|
1936
|
+
"type": "int",
|
1937
|
+
"value_allowed_null": false
|
1938
|
+
},
|
1939
|
+
{
|
1940
|
+
"disabled": false,
|
1941
|
+
"document": "总时长",
|
1942
|
+
"example": "32313",
|
1943
|
+
"member": "uint64",
|
1944
|
+
"name": "Duration",
|
1945
|
+
"output_required": false,
|
1946
|
+
"required": false,
|
1947
|
+
"type": "int",
|
1948
|
+
"value_allowed_null": false
|
1949
|
+
},
|
1950
|
+
{
|
1951
|
+
"disabled": false,
|
1952
|
+
"document": "文件格式",
|
1953
|
+
"example": "mp4",
|
1954
|
+
"member": "string",
|
1955
|
+
"name": "FileFormat",
|
1956
|
+
"output_required": false,
|
1957
|
+
"required": false,
|
1958
|
+
"type": "string",
|
1959
|
+
"value_allowed_null": false
|
1960
|
+
},
|
1961
|
+
{
|
1962
|
+
"disabled": false,
|
1963
|
+
"document": "流url",
|
1964
|
+
"example": "http://123.com",
|
1965
|
+
"member": "string",
|
1966
|
+
"name": "RecordUrl",
|
1967
|
+
"output_required": false,
|
1968
|
+
"required": false,
|
1969
|
+
"type": "string",
|
1970
|
+
"value_allowed_null": false
|
1971
|
+
},
|
1972
|
+
{
|
1973
|
+
"disabled": false,
|
1974
|
+
"document": "流大小",
|
1975
|
+
"example": "2342",
|
1976
|
+
"member": "uint64",
|
1977
|
+
"name": "RecordSize",
|
1978
|
+
"output_required": false,
|
1979
|
+
"required": false,
|
1980
|
+
"type": "int",
|
1981
|
+
"value_allowed_null": false
|
1982
|
+
},
|
1983
|
+
{
|
1984
|
+
"disabled": false,
|
1985
|
+
"document": "流ID",
|
1986
|
+
"example": "43232423",
|
1987
|
+
"member": "string",
|
1988
|
+
"name": "VideoId",
|
1989
|
+
"output_required": false,
|
1990
|
+
"required": false,
|
1991
|
+
"type": "string",
|
1992
|
+
"value_allowed_null": false
|
1993
|
+
},
|
1994
|
+
{
|
1995
|
+
"disabled": false,
|
1996
|
+
"document": "任务Id",
|
1997
|
+
"example": "324323e",
|
1998
|
+
"member": "string",
|
1999
|
+
"name": "TaskId",
|
2000
|
+
"output_required": false,
|
2001
|
+
"required": false,
|
2002
|
+
"type": "string",
|
2003
|
+
"value_allowed_null": false
|
2004
|
+
}
|
2005
|
+
],
|
2006
|
+
"usage": "both"
|
2007
|
+
},
|
1893
2008
|
"DeleteAppCustomContentRequest": {
|
1894
2009
|
"document": "DeleteAppCustomContent请求参数结构体",
|
1895
2010
|
"members": [
|
@@ -3096,6 +3211,72 @@
|
|
3096
3211
|
],
|
3097
3212
|
"type": "object"
|
3098
3213
|
},
|
3214
|
+
"DescribeRecordRequest": {
|
3215
|
+
"document": "DescribeRecord请求参数结构体",
|
3216
|
+
"members": [
|
3217
|
+
{
|
3218
|
+
"disabled": false,
|
3219
|
+
"document": "学校ID",
|
3220
|
+
"example": "123",
|
3221
|
+
"member": "uint64",
|
3222
|
+
"name": "SdkAppId",
|
3223
|
+
"required": true,
|
3224
|
+
"type": "int"
|
3225
|
+
},
|
3226
|
+
{
|
3227
|
+
"disabled": false,
|
3228
|
+
"document": "房间ID",
|
3229
|
+
"example": "9090",
|
3230
|
+
"member": "uint64",
|
3231
|
+
"name": "RoomId",
|
3232
|
+
"required": true,
|
3233
|
+
"type": "int"
|
3234
|
+
}
|
3235
|
+
],
|
3236
|
+
"type": "object"
|
3237
|
+
},
|
3238
|
+
"DescribeRecordResponse": {
|
3239
|
+
"document": "DescribeRecord返回参数结构体",
|
3240
|
+
"members": [
|
3241
|
+
{
|
3242
|
+
"disabled": false,
|
3243
|
+
"document": "学校ID",
|
3244
|
+
"example": "328910",
|
3245
|
+
"member": "uint64",
|
3246
|
+
"name": "SchoolId",
|
3247
|
+
"output_required": false,
|
3248
|
+
"type": "int",
|
3249
|
+
"value_allowed_null": false
|
3250
|
+
},
|
3251
|
+
{
|
3252
|
+
"disabled": false,
|
3253
|
+
"document": "课堂ID",
|
3254
|
+
"example": "123",
|
3255
|
+
"member": "uint64",
|
3256
|
+
"name": "ClassId",
|
3257
|
+
"output_required": false,
|
3258
|
+
"type": "int",
|
3259
|
+
"value_allowed_null": false
|
3260
|
+
},
|
3261
|
+
{
|
3262
|
+
"disabled": false,
|
3263
|
+
"document": "录制信息",
|
3264
|
+
"example": "无",
|
3265
|
+
"member": "CustomRecordInfo",
|
3266
|
+
"name": "RecordInfo",
|
3267
|
+
"output_required": false,
|
3268
|
+
"type": "list",
|
3269
|
+
"value_allowed_null": false
|
3270
|
+
},
|
3271
|
+
{
|
3272
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3273
|
+
"member": "string",
|
3274
|
+
"name": "RequestId",
|
3275
|
+
"type": "string"
|
3276
|
+
}
|
3277
|
+
],
|
3278
|
+
"type": "object"
|
3279
|
+
},
|
3099
3280
|
"DescribeRecordStreamRequest": {
|
3100
3281
|
"document": "DescribeRecordStream请求参数结构体",
|
3101
3282
|
"members": [
|
@@ -3518,7 +3699,7 @@
|
|
3518
3699
|
{
|
3519
3700
|
"disabled": false,
|
3520
3701
|
"document": "RTMP推流链接",
|
3521
|
-
"example": "
|
3702
|
+
"example": "rtmp://rtmp.rtc.qq.com/push/301234567?sdkappid=141234567&userid=abcdefg123456789&usersig=eJwsztFLhTAYBfD-5Xs17Nu3NeegJw1KBkEFSW-W5pxaLDMN4-7vF66*-s7hcP7hxTyn7i*GyYGmm5wQry4WrPuaQxvcBBqoi1K8L8PKfByHD1e0ZpSqlLVH2Os-dmhiDBY0E4ic8YzyIwkeNHz31YaoirV5vH7q5GZ48ioqkajaxsU3d7-3oi-N-FaKh9tjcg6fDjTLOKqciGjXZT*UIpzOAQAA--8wZTch&use_number_room_id=1",
|
3522
3703
|
"member": "string",
|
3523
3704
|
"name": "RTMPStreamingURL",
|
3524
3705
|
"output_required": false,
|
@@ -6952,6 +7133,52 @@
|
|
6952
7133
|
],
|
6953
7134
|
"usage": "both"
|
6954
7135
|
},
|
7136
|
+
"StartRecordRequest": {
|
7137
|
+
"document": "StartRecord请求参数结构体",
|
7138
|
+
"members": [
|
7139
|
+
{
|
7140
|
+
"disabled": false,
|
7141
|
+
"document": "学校ID",
|
7142
|
+
"example": "3452141",
|
7143
|
+
"member": "uint64",
|
7144
|
+
"name": "SdkAppId",
|
7145
|
+
"required": true,
|
7146
|
+
"type": "int"
|
7147
|
+
},
|
7148
|
+
{
|
7149
|
+
"disabled": false,
|
7150
|
+
"document": "房间ID",
|
7151
|
+
"example": "23121",
|
7152
|
+
"member": "uint64",
|
7153
|
+
"name": "RoomId",
|
7154
|
+
"required": true,
|
7155
|
+
"type": "int"
|
7156
|
+
}
|
7157
|
+
],
|
7158
|
+
"type": "object"
|
7159
|
+
},
|
7160
|
+
"StartRecordResponse": {
|
7161
|
+
"document": "StartRecord返回参数结构体",
|
7162
|
+
"members": [
|
7163
|
+
{
|
7164
|
+
"disabled": false,
|
7165
|
+
"document": "任务ID",
|
7166
|
+
"example": "232313421",
|
7167
|
+
"member": "string",
|
7168
|
+
"name": "TaskId",
|
7169
|
+
"output_required": false,
|
7170
|
+
"type": "string",
|
7171
|
+
"value_allowed_null": false
|
7172
|
+
},
|
7173
|
+
{
|
7174
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7175
|
+
"member": "string",
|
7176
|
+
"name": "RequestId",
|
7177
|
+
"type": "string"
|
7178
|
+
}
|
7179
|
+
],
|
7180
|
+
"type": "object"
|
7181
|
+
},
|
6955
7182
|
"StartRoomRequest": {
|
6956
7183
|
"document": "StartRoom请求参数结构体",
|
6957
7184
|
"members": [
|
@@ -6979,6 +7206,51 @@
|
|
6979
7206
|
],
|
6980
7207
|
"type": "object"
|
6981
7208
|
},
|
7209
|
+
"StopRecordRequest": {
|
7210
|
+
"document": "StopRecord请求参数结构体",
|
7211
|
+
"members": [
|
7212
|
+
{
|
7213
|
+
"disabled": false,
|
7214
|
+
"document": "学校ID",
|
7215
|
+
"example": "134112232",
|
7216
|
+
"member": "uint64",
|
7217
|
+
"name": "SdkAppId",
|
7218
|
+
"required": true,
|
7219
|
+
"type": "int"
|
7220
|
+
},
|
7221
|
+
{
|
7222
|
+
"disabled": false,
|
7223
|
+
"document": "房间ID",
|
7224
|
+
"example": "31211232",
|
7225
|
+
"member": "uint64",
|
7226
|
+
"name": "RoomId",
|
7227
|
+
"required": true,
|
7228
|
+
"type": "int"
|
7229
|
+
},
|
7230
|
+
{
|
7231
|
+
"disabled": false,
|
7232
|
+
"document": "任务ID",
|
7233
|
+
"example": "ds12322123",
|
7234
|
+
"member": "string",
|
7235
|
+
"name": "TaskId",
|
7236
|
+
"required": true,
|
7237
|
+
"type": "string"
|
7238
|
+
}
|
7239
|
+
],
|
7240
|
+
"type": "object"
|
7241
|
+
},
|
7242
|
+
"StopRecordResponse": {
|
7243
|
+
"document": "StopRecord返回参数结构体",
|
7244
|
+
"members": [
|
7245
|
+
{
|
7246
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7247
|
+
"member": "string",
|
7248
|
+
"name": "RequestId",
|
7249
|
+
"type": "string"
|
7250
|
+
}
|
7251
|
+
],
|
7252
|
+
"type": "object"
|
7253
|
+
},
|
6982
7254
|
"TextMarkConfig": {
|
6983
7255
|
"document": "文字水印配置",
|
6984
7256
|
"members": [
|
@@ -282,6 +282,14 @@
|
|
282
282
|
"title": "示例"
|
283
283
|
}
|
284
284
|
],
|
285
|
+
"DescribeRecord": [
|
286
|
+
{
|
287
|
+
"document": "",
|
288
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRecord\n<公共请求参数>\n\n{\n \"SdkAppId\": 34234,\n \"RoomId\": 1242\n}",
|
289
|
+
"output": "{\n \"Response\": {\n \"ClassId\": 343121517,\n \"RecordInfo\": [\n {\n \"Duration\": 274,\n \"FileFormat\": \"mp4\",\n \"RecordSize\": 3172788,\n \"RecordUrl\": \"https://10018181/1fe1c5e51397757897946447816/f0.mp4\",\n \"StartTime\": 1732094036,\n \"StopTime\": 1732094310,\n \"TaskId\": \"c2f8969d0d-5971-95f5-a07f6efcecb9\",\n \"VideoId\": \"1397797946447816\"\n }\n ],\n \"RequestId\": \"cba5909ae-8924-4ae6-850e-099332ffd535\",\n \"SchoolId\": 3523371\n }\n}",
|
290
|
+
"title": "查询录制信息"
|
291
|
+
}
|
292
|
+
],
|
285
293
|
"DescribeRecordStream": [
|
286
294
|
{
|
287
295
|
"document": "获取流信息",
|
@@ -502,6 +510,14 @@
|
|
502
510
|
"title": "示例"
|
503
511
|
}
|
504
512
|
],
|
513
|
+
"StartRecord": [
|
514
|
+
{
|
515
|
+
"document": "",
|
516
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartRecord\n<公共请求参数>\n\n{\n \"SdkAppId\": 34234,\n \"RoomId\": 1242\n}",
|
517
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"23d81-3ebf-41c6-8979-d053198f1841\",\n \"TaskId\": \"c2239d-490d-5971-95f5-a07f6efcecb9\"\n }\n}",
|
518
|
+
"title": "StartRecord"
|
519
|
+
}
|
520
|
+
],
|
505
521
|
"StartRoom": [
|
506
522
|
{
|
507
523
|
"document": "房间不存在示例",
|
@@ -510,6 +526,14 @@
|
|
510
526
|
"title": "开始房间"
|
511
527
|
}
|
512
528
|
],
|
529
|
+
"StopRecord": [
|
530
|
+
{
|
531
|
+
"document": "",
|
532
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopRecord\n<公共请求参数>\n\n{\n \"SdkAppId\": 1,\n \"RoomId\": 1,\n \"TaskId\": \"abc-23423423-fcsd\"\n}",
|
533
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"34ef3bd6-cd3a-4559-8b44-6cbac805632e\"\n }\n}",
|
534
|
+
"title": "停止录制"
|
535
|
+
}
|
536
|
+
],
|
513
537
|
"UnbindDocumentFromRoom": [
|
514
538
|
{
|
515
539
|
"document": "",
|
@@ -7091,6 +7091,16 @@
|
|
7091
7091
|
"output_required": false,
|
7092
7092
|
"type": "string",
|
7093
7093
|
"value_allowed_null": false
|
7094
|
+
},
|
7095
|
+
{
|
7096
|
+
"disabled": false,
|
7097
|
+
"document": "实例违规详情。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7098
|
+
"example": "无",
|
7099
|
+
"member": "InstanceViolationDetail",
|
7100
|
+
"name": "InstanceViolationDetail",
|
7101
|
+
"output_required": false,
|
7102
|
+
"type": "object",
|
7103
|
+
"value_allowed_null": true
|
7094
7104
|
}
|
7095
7105
|
],
|
7096
7106
|
"usage": "out"
|
@@ -7337,6 +7347,52 @@
|
|
7337
7347
|
],
|
7338
7348
|
"usage": "out"
|
7339
7349
|
},
|
7350
|
+
"InstanceViolationDetail": {
|
7351
|
+
"document": "实例违规详情。",
|
7352
|
+
"members": [
|
7353
|
+
{
|
7354
|
+
"disabled": false,
|
7355
|
+
"document": " 来源:RESTRICT:封禁、FREEZW:冻结\n注意:此字段可能返回 null,表示取不到有效值。",
|
7356
|
+
"example": "无",
|
7357
|
+
"member": "string",
|
7358
|
+
"name": "Source",
|
7359
|
+
"output_required": false,
|
7360
|
+
"type": "string",
|
7361
|
+
"value_allowed_null": true
|
7362
|
+
},
|
7363
|
+
{
|
7364
|
+
"disabled": false,
|
7365
|
+
"document": "是否允许自助解封:1是,2否\n注意:此字段可能返回 null,表示取不到有效值。",
|
7366
|
+
"example": "无",
|
7367
|
+
"member": "string",
|
7368
|
+
"name": "State",
|
7369
|
+
"output_required": false,
|
7370
|
+
"type": "string",
|
7371
|
+
"value_allowed_null": true
|
7372
|
+
},
|
7373
|
+
{
|
7374
|
+
"disabled": false,
|
7375
|
+
"document": "违规类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
7376
|
+
"example": "无",
|
7377
|
+
"member": "string",
|
7378
|
+
"name": "Reason",
|
7379
|
+
"output_required": false,
|
7380
|
+
"type": "string",
|
7381
|
+
"value_allowed_null": true
|
7382
|
+
},
|
7383
|
+
{
|
7384
|
+
"disabled": false,
|
7385
|
+
"document": "违规内容(URL、关联域名)\n注意:此字段可能返回 null,表示取不到有效值。",
|
7386
|
+
"example": "无",
|
7387
|
+
"member": "string",
|
7388
|
+
"name": "Content",
|
7389
|
+
"output_required": false,
|
7390
|
+
"type": "string",
|
7391
|
+
"value_allowed_null": true
|
7392
|
+
}
|
7393
|
+
],
|
7394
|
+
"usage": "out"
|
7395
|
+
},
|
7340
7396
|
"InternetAccessible": {
|
7341
7397
|
"document": "描述了启动配置创建实例的公网可访问性,声明了实例的公网使用计费模式,最大带宽等。",
|
7342
7398
|
"members": [
|
@@ -17,6 +17,58 @@ from tencentcloud.live.v20180801 import models as models_v20180801
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
+
def doDescribeCasterList(args, parsed_globals):
|
21
|
+
g_param = parse_global_arg(parsed_globals)
|
22
|
+
|
23
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
24
|
+
cred = credential.CVMRoleCredential()
|
25
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
|
+
cred = credential.STSAssumeRoleCredential(
|
27
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
|
+
)
|
30
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
31
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
32
|
+
else:
|
33
|
+
cred = credential.Credential(
|
34
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
35
|
+
)
|
36
|
+
http_profile = HttpProfile(
|
37
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
38
|
+
reqMethod="POST",
|
39
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
40
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
41
|
+
)
|
42
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
43
|
+
if g_param[OptionsDefine.Language]:
|
44
|
+
profile.language = g_param[OptionsDefine.Language]
|
45
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
46
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
+
model = models.DescribeCasterListRequest()
|
50
|
+
model.from_json_string(json.dumps(args))
|
51
|
+
start_time = time.time()
|
52
|
+
while True:
|
53
|
+
rsp = client.DescribeCasterList(model)
|
54
|
+
result = rsp.to_json_string()
|
55
|
+
try:
|
56
|
+
json_obj = json.loads(result)
|
57
|
+
except TypeError as e:
|
58
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
59
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
60
|
+
break
|
61
|
+
cur_time = time.time()
|
62
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
63
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
64
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
65
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
66
|
+
else:
|
67
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
68
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
69
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
|
+
|
71
|
+
|
20
72
|
def doDropLiveStream(args, parsed_globals):
|
21
73
|
g_param = parse_global_arg(parsed_globals)
|
22
74
|
|
@@ -4021,6 +4073,58 @@ def doDescribeStreamPlayInfoList(args, parsed_globals):
|
|
4021
4073
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4022
4074
|
|
4023
4075
|
|
4076
|
+
def doDescribeCasterUserStatus(args, parsed_globals):
|
4077
|
+
g_param = parse_global_arg(parsed_globals)
|
4078
|
+
|
4079
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4080
|
+
cred = credential.CVMRoleCredential()
|
4081
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4082
|
+
cred = credential.STSAssumeRoleCredential(
|
4083
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4084
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4085
|
+
)
|
4086
|
+
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):
|
4087
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4088
|
+
else:
|
4089
|
+
cred = credential.Credential(
|
4090
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4091
|
+
)
|
4092
|
+
http_profile = HttpProfile(
|
4093
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4094
|
+
reqMethod="POST",
|
4095
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4096
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4097
|
+
)
|
4098
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4099
|
+
if g_param[OptionsDefine.Language]:
|
4100
|
+
profile.language = g_param[OptionsDefine.Language]
|
4101
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4102
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4103
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4104
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4105
|
+
model = models.DescribeCasterUserStatusRequest()
|
4106
|
+
model.from_json_string(json.dumps(args))
|
4107
|
+
start_time = time.time()
|
4108
|
+
while True:
|
4109
|
+
rsp = client.DescribeCasterUserStatus(model)
|
4110
|
+
result = rsp.to_json_string()
|
4111
|
+
try:
|
4112
|
+
json_obj = json.loads(result)
|
4113
|
+
except TypeError as e:
|
4114
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4115
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4116
|
+
break
|
4117
|
+
cur_time = time.time()
|
4118
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4119
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4120
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4121
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4122
|
+
else:
|
4123
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4124
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4125
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4126
|
+
|
4127
|
+
|
4024
4128
|
def doDescribeLivePullStreamTaskStatus(args, parsed_globals):
|
4025
4129
|
g_param = parse_global_arg(parsed_globals)
|
4026
4130
|
|
@@ -7193,6 +7297,58 @@ def doDescribeLivePlayAuthKey(args, parsed_globals):
|
|
7193
7297
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7194
7298
|
|
7195
7299
|
|
7300
|
+
def doDescribeCasterTransitionTypes(args, parsed_globals):
|
7301
|
+
g_param = parse_global_arg(parsed_globals)
|
7302
|
+
|
7303
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7304
|
+
cred = credential.CVMRoleCredential()
|
7305
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7306
|
+
cred = credential.STSAssumeRoleCredential(
|
7307
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7308
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7309
|
+
)
|
7310
|
+
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):
|
7311
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7312
|
+
else:
|
7313
|
+
cred = credential.Credential(
|
7314
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7315
|
+
)
|
7316
|
+
http_profile = HttpProfile(
|
7317
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7318
|
+
reqMethod="POST",
|
7319
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7320
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7321
|
+
)
|
7322
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7323
|
+
if g_param[OptionsDefine.Language]:
|
7324
|
+
profile.language = g_param[OptionsDefine.Language]
|
7325
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7326
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
7327
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7328
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7329
|
+
model = models.DescribeCasterTransitionTypesRequest()
|
7330
|
+
model.from_json_string(json.dumps(args))
|
7331
|
+
start_time = time.time()
|
7332
|
+
while True:
|
7333
|
+
rsp = client.DescribeCasterTransitionTypes(model)
|
7334
|
+
result = rsp.to_json_string()
|
7335
|
+
try:
|
7336
|
+
json_obj = json.loads(result)
|
7337
|
+
except TypeError as e:
|
7338
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7339
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7340
|
+
break
|
7341
|
+
cur_time = time.time()
|
7342
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7343
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7344
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7345
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7346
|
+
else:
|
7347
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7348
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7349
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7350
|
+
|
7351
|
+
|
7196
7352
|
def doStopLiveStreamMonitor(args, parsed_globals):
|
7197
7353
|
g_param = parse_global_arg(parsed_globals)
|
7198
7354
|
|
@@ -8140,6 +8296,7 @@ MODELS_MAP = {
|
|
8140
8296
|
}
|
8141
8297
|
|
8142
8298
|
ACTION_MAP = {
|
8299
|
+
"DescribeCasterList": doDescribeCasterList,
|
8143
8300
|
"DropLiveStream": doDropLiveStream,
|
8144
8301
|
"DescribeLiveWatermarks": doDescribeLiveWatermarks,
|
8145
8302
|
"DescribeConcurrentRecordStreamNum": doDescribeConcurrentRecordStreamNum,
|
@@ -8217,6 +8374,7 @@ ACTION_MAP = {
|
|
8217
8374
|
"DescribeLivePullStreamTasks": doDescribeLivePullStreamTasks,
|
8218
8375
|
"DescribeGroupProIspPlayInfoList": doDescribeGroupProIspPlayInfoList,
|
8219
8376
|
"DescribeStreamPlayInfoList": doDescribeStreamPlayInfoList,
|
8377
|
+
"DescribeCasterUserStatus": doDescribeCasterUserStatus,
|
8220
8378
|
"DescribeLivePullStreamTaskStatus": doDescribeLivePullStreamTaskStatus,
|
8221
8379
|
"DescribeLiveSnapshotTemplate": doDescribeLiveSnapshotTemplate,
|
8222
8380
|
"DescribeLiveCallbackTemplates": doDescribeLiveCallbackTemplates,
|
@@ -8278,6 +8436,7 @@ ACTION_MAP = {
|
|
8278
8436
|
"DescribeProIspPlaySumInfoList": doDescribeProIspPlaySumInfoList,
|
8279
8437
|
"DescribeAllStreamPlayInfoList": doDescribeAllStreamPlayInfoList,
|
8280
8438
|
"DescribeLivePlayAuthKey": doDescribeLivePlayAuthKey,
|
8439
|
+
"DescribeCasterTransitionTypes": doDescribeCasterTransitionTypes,
|
8281
8440
|
"StopLiveStreamMonitor": doStopLiveStreamMonitor,
|
8282
8441
|
"DescribeLiveStreamState": doDescribeLiveStreamState,
|
8283
8442
|
"ModifyLiveDomainReferer": doModifyLiveDomainReferer,
|