tccli-intl-en 3.0.1237.1__py2.py3-none-any.whl → 3.0.1282.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 +17 -1
- tccli/services/advisor/advisor_client.py +8 -2
- tccli/services/aiart/aiart_client.py +4 -1
- tccli/services/ams/ams_client.py +16 -4
- tccli/services/antiddos/antiddos_client.py +280 -70
- tccli/services/apigateway/apigateway_client.py +372 -93
- tccli/services/apm/apm_client.py +52 -13
- tccli/services/asr/asr_client.py +8 -2
- tccli/services/autoscaling/autoscaling_client.py +232 -58
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/batch/batch_client.py +112 -28
- tccli/services/bi/bi_client.py +1242 -4
- tccli/services/bi/v20220105/api.json +5340 -107
- tccli/services/bi/v20220105/examples.json +196 -1
- tccli/services/billing/billing_client.py +168 -42
- tccli/services/cam/cam_client.py +324 -81
- tccli/services/captcha/captcha_client.py +4 -1
- tccli/services/car/car_client.py +132 -33
- tccli/services/cbs/cbs_client.py +152 -38
- tccli/services/ccc/ccc_client.py +732 -98
- tccli/services/ccc/v20200210/api.json +1727 -196
- tccli/services/ccc/v20200210/examples.json +64 -0
- tccli/services/cdb/cdb_client.py +532 -133
- tccli/services/cdc/cdc_client.py +80 -20
- tccli/services/cdc/v20201214/api.json +2 -2
- tccli/services/cdc/v20201214/examples.json +4 -4
- tccli/services/cdn/cdn_client.py +176 -44
- tccli/services/cdwdoris/cdwdoris_client.py +308 -77
- tccli/services/cdwpg/cdwpg_client.py +96 -24
- tccli/services/cdz/__init__.py +4 -0
- tccli/services/cdz/cdz_client.py +210 -0
- tccli/services/cdz/v20221123/api.json +233 -0
- tccli/services/cdz/v20221123/examples.json +12 -0
- tccli/services/cfg/cfg_client.py +64 -16
- tccli/services/cfs/cfs_client.py +156 -39
- tccli/services/cfw/cfw_client.py +264 -66
- tccli/services/chdfs/chdfs_client.py +116 -29
- tccli/services/ciam/ciam_client.py +64 -16
- tccli/services/ckafka/ckafka_client.py +575 -77
- tccli/services/ckafka/v20190819/api.json +2749 -1470
- tccli/services/ckafka/v20190819/examples.json +209 -155
- tccli/services/clb/clb_client.py +332 -83
- tccli/services/clb/v20180317/api.json +29 -14
- tccli/services/cloudaudit/cloudaudit_client.py +72 -18
- tccli/services/cls/cls_client.py +348 -87
- tccli/services/cmq/cmq_client.py +12 -801
- tccli/services/cmq/v20190304/api.json +173 -1367
- tccli/services/cmq/v20190304/examples.json +0 -120
- tccli/services/config/config_client.py +24 -6
- tccli/services/controlcenter/controlcenter_client.py +4 -1
- tccli/services/csip/csip_client.py +136 -34
- tccli/services/ctsdb/ctsdb_client.py +8 -2
- tccli/services/cvm/cvm_client.py +627 -110
- tccli/services/cvm/v20170312/api.json +750 -340
- tccli/services/cvm/v20170312/examples.json +105 -59
- tccli/services/cwp/cwp_client.py +1860 -465
- tccli/services/cynosdb/cynosdb_client.py +1749 -439
- tccli/services/cynosdb/v20190107/api.json +11763 -7697
- tccli/services/cynosdb/v20190107/examples.json +132 -4
- tccli/services/dataintegration/dataintegration_client.py +4 -1
- tccli/services/dayu/dayu_client.py +412 -103
- tccli/services/dbbrain/dbbrain_client.py +168 -42
- tccli/services/dc/dc_client.py +72 -18
- tccli/services/dcdb/dcdb_client.py +248 -62
- tccli/services/dlc/dlc_client.py +756 -111
- tccli/services/dlc/v20210125/api.json +637 -13
- tccli/services/dlc/v20210125/examples.json +48 -0
- tccli/services/dms/dms_client.py +8 -2
- tccli/services/dnspod/dnspod_client.py +353 -74
- tccli/services/dnspod/v20210323/api.json +196 -0
- tccli/services/dnspod/v20210323/examples.json +24 -0
- tccli/services/domain/domain_client.py +96 -24
- tccli/services/dts/dts_client.py +332 -83
- tccli/services/eb/eb_client.py +104 -26
- tccli/services/ecdn/ecdn_client.py +60 -15
- tccli/services/ecm/ecm_client.py +496 -124
- tccli/services/eiam/eiam_client.py +160 -40
- tccli/services/emr/emr_client.py +2784 -115
- tccli/services/emr/v20190103/api.json +14647 -4756
- tccli/services/emr/v20190103/examples.json +408 -40
- tccli/services/es/es_client.py +84 -21
- tccli/services/facefusion/facefusion_client.py +12 -3
- tccli/services/faceid/faceid_client.py +76 -19
- tccli/services/faceid/v20180301/api.json +79 -14
- tccli/services/faceid/v20180301/examples.json +3 -3
- tccli/services/gaap/gaap_client.py +352 -88
- tccli/services/gme/gme_client.py +40 -10
- tccli/services/gpm/gpm_client.py +72 -18
- tccli/services/gse/gse_client.py +88 -22
- tccli/services/gwlb/gwlb_client.py +72 -18
- tccli/services/iai/iai_client.py +116 -29
- tccli/services/iap/iap_client.py +24 -6
- tccli/services/ims/ims_client.py +4 -1
- tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +168 -42
- tccli/services/intlpartnersmgt/v20220928/api.json +11 -11
- tccli/services/iotcloud/iotcloud_client.py +80 -20
- tccli/services/ip/ip_client.py +24 -6
- tccli/services/kms/kms_client.py +272 -68
- tccli/services/lcic/lcic_client.py +212 -53
- tccli/services/lighthouse/lighthouse_client.py +296 -74
- tccli/services/lighthouse/v20200324/api.json +14 -14
- tccli/services/lighthouse/v20200324/examples.json +5 -5
- tccli/services/live/live_client.py +480 -120
- tccli/services/lke/lke_client.py +360 -90
- tccli/services/lke/v20231130/api.json +182 -39
- tccli/services/lkeap/__init__.py +4 -0
- tccli/services/lkeap/lkeap_client.py +546 -0
- tccli/services/lkeap/v20240522/api.json +855 -0
- tccli/services/lkeap/v20240522/examples.json +72 -0
- tccli/services/mariadb/mariadb_client.py +200 -50
- tccli/services/mdc/mdc_client.py +72 -18
- tccli/services/mdl/mdl_client.py +132 -33
- tccli/services/mdl/v20200326/api.json +186 -12
- tccli/services/mdl/v20200326/examples.json +16 -16
- tccli/services/mdp/mdp_client.py +680 -70
- tccli/services/mdp/v20200527/api.json +748 -23
- tccli/services/mdp/v20200527/examples.json +143 -79
- tccli/services/message/__init__.py +4 -0
- tccli/services/message/message_client.py +210 -0
- tccli/services/message/v20181225/api.json +72 -0
- tccli/services/message/v20181225/examples.json +13 -0
- tccli/services/mongodb/mongodb_client.py +340 -29
- tccli/services/mongodb/v20190725/api.json +811 -226
- tccli/services/mongodb/v20190725/examples.json +54 -22
- tccli/services/monitor/monitor_client.py +864 -152
- tccli/services/monitor/v20180724/api.json +657 -8
- tccli/services/monitor/v20180724/examples.json +152 -4
- tccli/services/mps/mps_client.py +592 -92
- tccli/services/mps/v20190612/api.json +2931 -399
- tccli/services/mps/v20190612/examples.json +64 -14
- tccli/services/msp/msp_client.py +28 -7
- tccli/services/ocr/ocr_client.py +212 -45
- tccli/services/ocr/v20181119/api.json +872 -112
- tccli/services/ocr/v20181119/examples.json +12 -4
- tccli/services/omics/omics_client.py +80 -20
- tccli/services/organization/organization_client.py +464 -116
- tccli/services/postgres/postgres_client.py +364 -91
- tccli/services/postgres/v20170312/api.json +134 -109
- tccli/services/postgres/v20170312/examples.json +14 -14
- tccli/services/privatedns/privatedns_client.py +124 -31
- tccli/services/pts/pts_client.py +192 -48
- tccli/services/quota/__init__.py +4 -0
- tccli/services/quota/quota_client.py +434 -0
- tccli/services/quota/v20241204/api.json +548 -0
- tccli/services/quota/v20241204/examples.json +51 -0
- tccli/services/rce/rce_client.py +4 -1
- tccli/services/redis/redis_client.py +592 -106
- tccli/services/redis/v20180412/api.json +636 -240
- tccli/services/redis/v20180412/examples.json +98 -56
- tccli/services/region/region_client.py +12 -3
- tccli/services/rum/rum_client.py +240 -60
- tccli/services/scf/scf_client.py +168 -42
- tccli/services/ses/ses_client.py +116 -29
- tccli/services/sms/sms_client.py +72 -18
- tccli/services/sqlserver/sqlserver_client.py +3772 -387
- tccli/services/sqlserver/v20180328/api.json +9760 -3380
- tccli/services/sqlserver/v20180328/examples.json +478 -18
- tccli/services/ssl/ssl_client.py +152 -38
- tccli/services/ssm/ssm_client.py +96 -24
- tccli/services/sts/sts_client.py +20 -5
- tccli/services/tag/tag_client.py +120 -30
- tccli/services/tat/tat_client.py +76 -19
- tccli/services/tbaas/tbaas_client.py +16 -4
- tccli/services/tcaplusdb/tcaplusdb_client.py +208 -52
- tccli/services/tcaplusdb/v20190823/api.json +836 -760
- tccli/services/tcaplusdb/v20190823/examples.json +3 -3
- tccli/services/tchd/tchd_client.py +4 -1
- tccli/services/tcmpp/tcmpp_client.py +416 -104
- tccli/services/tcr/tcr_client.py +304 -76
- tccli/services/tcsas/tcsas_client.py +236 -59
- tccli/services/tcsas/v20250106/api.json +155 -79
- tccli/services/tcsas/v20250106/examples.json +3 -3
- tccli/services/tcss/tcss_client.py +1320 -330
- tccli/services/tdid/tdid_client.py +192 -48
- tccli/services/tdmq/tdmq_client.py +376 -94
- tccli/services/tem/tem_client.py +224 -56
- tccli/services/teo/teo_client.py +1127 -245
- tccli/services/teo/v20220901/api.json +382 -58
- tccli/services/teo/v20220901/examples.json +24 -0
- tccli/services/tione/__init__.py +4 -0
- tccli/services/tione/tione_client.py +210 -0
- tccli/services/tione/v20211111/api.json +3074 -0
- tccli/services/tione/v20211111/examples.json +12 -0
- tccli/services/tiw/tiw_client.py +204 -51
- tccli/services/tke/tke_client.py +552 -138
- tccli/services/tms/tms_client.py +4 -1
- tccli/services/tmt/tmt_client.py +4 -1
- tccli/services/trabbit/trabbit_client.py +116 -29
- tccli/services/trro/trro_client.py +76 -19
- tccli/services/trtc/trtc_client.py +420 -55
- tccli/services/trtc/v20190722/api.json +685 -23
- tccli/services/trtc/v20190722/examples.json +39 -7
- tccli/services/tts/tts_client.py +4 -1
- tccli/services/vclm/vclm_client.py +8 -2
- tccli/services/vm/vm_client.py +16 -4
- tccli/services/vod/v20180717/examples.json +1 -1
- tccli/services/vod/vod_client.py +716 -179
- tccli/services/vpc/v20170312/api.json +970 -75
- tccli/services/vpc/v20170312/examples.json +106 -10
- tccli/services/vpc/vpc_client.py +1876 -361
- tccli/services/waf/v20180125/api.json +1372 -194
- tccli/services/waf/v20180125/examples.json +89 -1
- tccli/services/waf/waf_client.py +1051 -147
- tccli/services/wedata/v20250806/api.json +13644 -0
- tccli/services/wedata/v20250806/examples.json +621 -0
- tccli/services/wedata/wedata_client.py +5830 -1026
- tccli/services/yunjing/yunjing_client.py +284 -71
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/METADATA +4 -7
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/RECORD +214 -192
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/entry_points.txt +0 -1
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/top_level.txt +0 -0
|
@@ -8,6 +8,14 @@
|
|
|
8
8
|
"title": "Send broadcast text"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
|
+
"CreateCloudModeration": [
|
|
12
|
+
{
|
|
13
|
+
"document": "This example shows you how to start a cloud moderation task for the specified room (room number: 150) with SdkAppId 200806.\n\nThis example shows you how to set the idle time for the room to 30 seconds.\nThis example shows you how to set the moderation mode to send a video frame screenshot to Tencent ACE for moderation every 5 seconds.\nThis example shows you how to send a 15-second audio to Tencent ACE for moderation every 15 seconds.\nThis example shows you how to send the moderation result to the customers through the configured callback URL.",
|
|
14
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudSliceTask\n<Common request parameters>\n\n{\n \"SdkAppId\": 200806,\n \"RoomId\": \"150\",\n \"RoomIdType\": 1,\n \"UserId\": \"inspect\",\n \"UserSig\": \"eJwszc3KgkAUxvF7Odv3xY6jx2KgRU1NPHMy3CnQIZEJBDxf1SulLZcs*pAAuveqIuFaeqrW2kMVyAFYogrTGbnBiScDmm2zf0*HdqoLAhxQ85dn4vMn4*N8zFT7f-aXIf3Zj0fWn78*ktBUUyJoEmHMS0ChM83AAD---1NMfA_\",\n \"ModerationParams\": {\n \"ModerationType\": 1,\n \"MaxIdleTime\": 30,\n \"SliceAudio\": 15,\n \"SliceVideo\": 5,\n \"ModerationSupplier\": \"ace\",\n \"ModerationSupplierParam\": {\n \"AppID\": \"2501\",\n \"SecretId\": \"ace_ugc_20521\",\n \"SecretKey\": \"637ae34f4069afb92xxxxxxx\",\n \"AudioBizType\": \"2001\",\n \"ImageBizType\": \"2002\"\n },\n \"SaveModerationFile\": 0,\n \"CallbackAllResults\": 0\n },\n \"ModerationStorageParams\": {\n \"CloudModerationStorage\": {\n \"Vendor\": 0,\n \"Region\": \"ap-guangzhou\",\n \"Bucket\": \"av-recover-prod-1258344699\",\n \"AccessKey\": \"AKIDiGYZYrugBPM3TbS2MO9dqmRp\",\n \"SecretKey\": \"91w4wXswiDSQ7XfX8So31Bm6\",\n \"FileNamePrefix\": [\n \"testname\"\n ]\n }\n },\n \"ResourceExpiredHour\": 72\n}",
|
|
15
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6c8eac0c-a46e-4002-893a-935160b43b34\",\n \"TaskId\": \"-npVqpdU7qidKD61us+k9KlbamMCLrDbczWnLoK-2OqyoZWQndib8Ma8fbGq2JxnW26LgE.\"\n }\n}",
|
|
16
|
+
"title": "Creating Cloud Moderation Tasks"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
11
19
|
"CreateCloudRecording": [
|
|
12
20
|
{
|
|
13
21
|
"document": "This example shows you how to start on-cloud recording in room 3560 under the application whose `SDKAppID` is `1234`.\n\nThe timeout period for recording is one minute.\nThe recording mode is mixed-stream recording.\nThe type of the streams recorded are audio and video.\nThe streams of all anchors in the room are subscribed.\nThe resolution of the recorded video is 360 x 640, the frame rate is 15 fps, and the bitrate is 500,000 bps. The default background color is used.\nThe grid layout template is used.\nThe recording file is saved to Tencent Cloud VOD.",
|
|
@@ -24,6 +32,14 @@
|
|
|
24
32
|
"title": "Creating a Slicing Task"
|
|
25
33
|
}
|
|
26
34
|
],
|
|
35
|
+
"DeleteCloudModeration": [
|
|
36
|
+
{
|
|
37
|
+
"document": "",
|
|
38
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCloudModeration\n<Common request parameters>\n\n{\n \"SdkAppId\": 20010806,\n \"TaskId\": \"-nHwQ8NU7t7Ps1bc3MXN7wTw1-BZVg7bbhyXLoK-mumNM6KipeAYnB3iUGIpBL-ajrCF-pd2AQ..\"\n}",
|
|
39
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"93186328-a0f6-4127-a0cb-72c85b6af982\",\n \"TaskId\": \"-nHwQ8NU7t7Ps1bc3MXN7wTw1-BZVg7bbhyXLoK-mumNM6KipeAYnB3iUGIpBL-ajrCF-pd2AQ..\"\n }\n}",
|
|
40
|
+
"title": "Stopping Cloud Moderation Tasks"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
27
43
|
"DeleteCloudRecording": [
|
|
28
44
|
{
|
|
29
45
|
"document": "This example shows you how to stop the on-cloud recording task whose ID is xx under the application whose `SDKAppID` is `1234`.",
|
|
@@ -64,6 +80,14 @@
|
|
|
64
80
|
"title": "Querying the user list and call metrics"
|
|
65
81
|
}
|
|
66
82
|
],
|
|
83
|
+
"DescribeCloudModeration": [
|
|
84
|
+
{
|
|
85
|
+
"document": "",
|
|
86
|
+
"input": "POST / HTTP/1.1\nHost: xxx.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudModeration\n<Common request parameters>\n\n{\n \"SdkAppId\": 20010806,\n \"TaskId\": \"-nHwQ8NU7t7Ps1bc3MXN7wTw1-BZVg7bbhyXLoK-mumNM6KipeAYnB3iUGIpBL-ajrCF-pd2AQ..\"\n}",
|
|
87
|
+
"output": "{\n \"Response\": {\n \"TaskId\": \"-npVoIhU7nVF+0aF9cAU08H4y253LKPbBX+UIoK-4pycoZWQndibGOPu9klhRT7bEDv5XoewCQE.\",\n \"Status\": \"InProgress\",\n \"RequestId\": \"uis_mock\",\n \"SubscribeStreamUserIds\": {\n \"SubscribeAudioUserIds\": [],\n \"UnSubscribeAudioUserIds\": [],\n \"SubscribeVideoUserIds\": [],\n \"UnSubscribeVideoUserIds\": []\n }\n }\n}",
|
|
88
|
+
"title": "Querying Information About Cloud Moderation Tasks"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
67
91
|
"DescribeCloudRecording": [
|
|
68
92
|
{
|
|
69
93
|
"document": " ",
|
|
@@ -224,6 +248,14 @@
|
|
|
224
248
|
"title": "Closing a room"
|
|
225
249
|
}
|
|
226
250
|
],
|
|
251
|
+
"ModifyCloudModeration": [
|
|
252
|
+
{
|
|
253
|
+
"document": "",
|
|
254
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCloudModeration\n<Common request parameters>\n\n{\n \"SdkAppId\": 20010806,\n \"TaskId\": \"-nHwQ8NU7t7Ps1bc3MXN7wTw1-BZVg7bbhyXLoK-mumNM6KipeAYnB3iUGIpBL-ajrCF-pd2AQ..\",\n \"SubscribeStreamUserIds\": {\n \"SubscribeAudioUserIds\": [\n \"user1\"\n ]\n }\n}",
|
|
255
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"b4d09681-4413-4f21-972d-bba98422aa30\",\n \"TaskId\": \"-nHwQ8NU7t7Ps1bc3MXN7wTw1-BZVg7bbhyXLoK-mumNM6KipeAYnB3iUGIpBL-ajrCF-pd2AQ..\"\n }\n}",
|
|
256
|
+
"title": "Modifying Cloud Moderation Tasks"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
227
259
|
"ModifyCloudRecording": [
|
|
228
260
|
{
|
|
229
261
|
"document": "This example shows you how to subscribe to the video and audio streams of user 123 and 456 and customize the layout for the recording task whose task ID is xx under the application whose `SDKAppID` is `1234`.",
|
|
@@ -293,43 +325,43 @@
|
|
|
293
325
|
"document": "",
|
|
294
326
|
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<Common request parameters>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 1536,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"PureAudioHoldPlaceMode\": 0,\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 640,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_1\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n }\n ]\n },\n \"BackGroundColor\": \"0xFF0000\",\n \"WaterMarkList\": [\n {\n \"WaterMarkType\": 0,\n \"WaterMarkImage\": {\n \"LocationX\": 64,\n \"LocationY\": 64,\n \"WaterMarkHeight\": 64,\n \"WaterMarkWidth\": 64,\n \"WaterMarkUrl\": \"https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png\",\n \"ZOrder\": 3\n }\n }\n ]\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
|
|
295
327
|
"output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7vxyBSmXYsRx1Xy9Kf4bVVfbbhSKC4K-4pycoZWKv542xbi139uTvGt1zAHoAQ..\",\n \"RequestId\": \"b934c535-8d82-4f52-bd52-a1cbb043c4be\"\n }\n}",
|
|
296
|
-
"title": "
|
|
328
|
+
"title": "Mix AV & Relay"
|
|
297
329
|
},
|
|
298
330
|
{
|
|
299
331
|
"document": "",
|
|
300
332
|
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<Common request parameters>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n },\n \"SubscribeAudioList\": [\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_1\"\n }\n }\n ]\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
|
|
301
333
|
"output": "{\n \"Response\": {\n \"RequestId\": \"388014ec-a0b8-4b8f-86bc-1f467448f5f0\",\n \"TaskId\": \"-m9lnV5U7nj4rkLBWMXF9n8-EohONCXbalWuLYK-4pycoZWQndibcqSVnrlqKF5om7EIDVk4awE.\"\n }\n}",
|
|
302
|
-
"title": "
|
|
334
|
+
"title": "Mix Audio & Relay "
|
|
303
335
|
},
|
|
304
336
|
{
|
|
305
337
|
"document": "",
|
|
306
338
|
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<Common request parameters>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 1536,\n \"Gop\": 2\n }\n },\n \"SingleSubscribeParams\": {\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 0,\n \"RoomId\": \"295066\"\n}",
|
|
307
339
|
"output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7tq6nEsHR89259B8aCDblqnbGhWKC4K-4pycoZWpyHnld1jC9aCD+EU7V8WRAQ..\",\n \"RequestId\": \"f23d95bf-ddaf-4d0c-86c0-6bf50c74c0a0\"\n }\n}",
|
|
308
|
-
"title": "
|
|
340
|
+
"title": "Relay AV"
|
|
309
341
|
},
|
|
310
342
|
{
|
|
311
343
|
"document": "",
|
|
312
344
|
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<Common request parameters>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"SingleSubscribeParams\": {\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 0,\n \"RoomId\": \"295066\"\n}",
|
|
313
345
|
"output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7r57nZBesMa84KgzxhH0OBbbCRaKC4K-4pycoZW7yFPtusNuZOen1Ca0qtQQAQ..\",\n \"RequestId\": \"ef089f8b-d0d1-4131-894d-4edd68d61605\"\n }\n}",
|
|
314
|
-
"title": "
|
|
346
|
+
"title": "Relay Audio"
|
|
315
347
|
},
|
|
316
348
|
{
|
|
317
349
|
"document": "",
|
|
318
350
|
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<Common request parameters>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 1536,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"PureAudioHoldPlaceMode\": 0,\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 640,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_1\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n }\n ]\n },\n \"BackGroundColor\": \"0xFF0000\",\n \"WaterMarkList\": [\n {\n \"WaterMarkType\": 0,\n \"WaterMarkImage\": {\n \"LocationX\": 64,\n \"LocationY\": 64,\n \"WaterMarkHeight\": 64,\n \"WaterMarkWidth\": 64,\n \"WaterMarkUrl\": \"https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png\",\n \"ZOrder\": 3\n }\n }\n ]\n },\n \"FeedBackRoomParams\": [\n {\n \"RoomId\": \"630777\",\n \"RoomIdType\": 0,\n \"UserId\": \"trtc_partner_test_2\",\n \"UserSig\": \"eJwtjEELgjAYhv-Ldy10m7mtQYcQOtklU6mLSFs1LVnzq4Tovwfa8Xmel-cD*zQLXsaDAhYQmI9stenQnu2o0eOpcrXHzvgKTY8V*8963dbOWQ2KLgihUkacTwXt3YCigpIlo0KyyZrBWW9ARZyQ-4O9gIJrYfK365M85PEw02HZPneNaJJbg4-1Nj6KQqZZacVhI1fw-QEkCzYe\"\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
|
|
319
351
|
"output": "{\n \"Response\": {\n \"RequestId\": \"921e9cf6-b77c-4a7a-ab0e-c66a3e66fc59\",\n \"TaskId\": \"-m9lnV5U7n7TwoLKSsii1JivUn7DLDDbP16uLYK-4pycoZWQndib8GQJZEMMXFyOHe9Ds6WfxAE.\"\n }\n}",
|
|
320
|
-
"title": "
|
|
352
|
+
"title": "Mix AV, then Feedback"
|
|
321
353
|
},
|
|
322
354
|
{
|
|
323
355
|
"document": "",
|
|
324
356
|
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<Common request parameters>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 1536,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"PureAudioHoldPlaceMode\": 0,\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 640,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_1\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n }\n ]\n },\n \"BackGroundColor\": \"0xFF0000\",\n \"WaterMarkList\": [\n {\n \"WaterMarkType\": 0,\n \"WaterMarkImage\": {\n \"LocationX\": 64,\n \"LocationY\": 64,\n \"WaterMarkHeight\": 64,\n \"WaterMarkWidth\": 64,\n \"WaterMarkUrl\": \"https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png\",\n \"ZOrder\": 3\n }\n }\n ]\n },\n \"SeiParams\": {\n \"LayoutVolume\": {\n \"AppData\": \"layout_sei_test\",\n \"PayloadType\": 100,\n \"Interval\": 1000,\n \"FollowIdr\": 1\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
|
|
325
357
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6dfc18cc-2123-4a11-9591-f1e873fbbd65\",\n \"TaskId\": \"-m9lnV5U7nzo2Xwh48Dc-YCDrR5Bk8DbJ1WrLYK-4pycoZWQndibrNig9cq-7ljX4SenbKWlZAE.\"\n }\n}",
|
|
326
|
-
"title": "
|
|
358
|
+
"title": "Mix AV & Relay with layout"
|
|
327
359
|
},
|
|
328
360
|
{
|
|
329
361
|
"document": "",
|
|
330
362
|
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<common request parameters>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n },\n \"SubscribeAudioList\": [\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295067\",\n \"UserId\": \"Trtc_User_1\"\n }\n }\n ]\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 1536,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"PureAudioHoldPlaceMode\": 0,\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 640,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295067\",\n \"UserId\": \"Trtc_User_1\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n }\n ]\n },\n \"BackGroundColor\": \"0xFF0000\",\n \"WaterMarkList\": [\n {\n \"WaterMarkType\": 0,\n \"WaterMarkImage\": {\n \"LocationX\": 64,\n \"LocationY\": 64,\n \"WaterMarkHeight\": 64,\n \"WaterMarkWidth\": 64,\n \"WaterMarkUrl\": \"https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png\",\n \"ZOrder\": 3\n }\n }\n ]\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
|
|
331
363
|
"output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7vxyBSmXYsRx1Xy9Kf4bVVfbbhSKC4K-4pycoZWKv542xbi139uTvGt1zAHoAQ..\",\n \"RequestId\": \"b934c535-8d82-4f52-bd52-a1cbb043c4be\"\n }\n}",
|
|
332
|
-
"title": ""
|
|
364
|
+
"title": "Cross-Room Stream Relaying"
|
|
333
365
|
}
|
|
334
366
|
],
|
|
335
367
|
"StartStreamIngest": [
|
tccli/services/tts/tts_client.py
CHANGED
|
@@ -27,7 +27,10 @@ def doTextToVoice(args, parsed_globals):
|
|
|
27
27
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
28
28
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
29
29
|
)
|
|
30
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
30
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
31
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
32
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
33
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
31
34
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
32
35
|
else:
|
|
33
36
|
cred = credential.Credential(
|
|
@@ -27,7 +27,10 @@ def doDescribeImageAnimateJob(args, parsed_globals):
|
|
|
27
27
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
28
28
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
29
29
|
)
|
|
30
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
30
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
31
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
32
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
33
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
31
34
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
32
35
|
else:
|
|
33
36
|
cred = credential.Credential(
|
|
@@ -79,7 +82,10 @@ def doSubmitImageAnimateJob(args, parsed_globals):
|
|
|
79
82
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
80
83
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
81
84
|
)
|
|
82
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
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):
|
|
83
89
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
84
90
|
else:
|
|
85
91
|
cred = credential.Credential(
|
tccli/services/vm/vm_client.py
CHANGED
|
@@ -29,7 +29,10 @@ def doDescribeTaskDetail(args, parsed_globals):
|
|
|
29
29
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
30
30
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
31
31
|
)
|
|
32
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
32
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
33
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
34
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
35
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
33
36
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
34
37
|
else:
|
|
35
38
|
cred = credential.Credential(
|
|
@@ -81,7 +84,10 @@ def doCreateVideoModerationTask(args, parsed_globals):
|
|
|
81
84
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
82
85
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
83
86
|
)
|
|
84
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
87
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
88
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
89
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
90
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
85
91
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
86
92
|
else:
|
|
87
93
|
cred = credential.Credential(
|
|
@@ -133,7 +139,10 @@ def doDescribeTasks(args, parsed_globals):
|
|
|
133
139
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
134
140
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
135
141
|
)
|
|
136
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
142
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
143
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
144
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
145
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
137
146
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
138
147
|
else:
|
|
139
148
|
cred = credential.Credential(
|
|
@@ -185,7 +194,10 @@ def doCancelTask(args, parsed_globals):
|
|
|
185
194
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
186
195
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
187
196
|
)
|
|
188
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
197
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
198
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
199
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
200
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
189
201
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
190
202
|
else:
|
|
191
203
|
cred = credential.Credential(
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"document": "Successful application upload examples.",
|
|
6
6
|
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ApplyUpload\n<Public Request Parameter>\n\n{\n \"SubAppId\": \"1\",\n \"MediaType\": \"mp4\"\n}",
|
|
7
|
-
"output": "{\n \"Response\": {\n \"CoverStoragePath\": \"/dir/cover.xx\",\n \"RequestId\": \"880f3005-a8c9-4bba-8c87-74e216a17a0b\",\n \"StorageBucket\": \"
|
|
7
|
+
"output": "{\n \"Response\": {\n \"CoverStoragePath\": \"/dir/cover.xx\",\n \"RequestId\": \"880f3005-a8c9-4bba-8c87-74e216a17a0b\",\n \"StorageBucket\": \"xadacq111211-100922\",\n \"StorageRegion\": \"ap-chongqing\",\n \"MediaStoragePath\": \"/dir/name.xx\",\n \"VodSessionKey\": \"VodSessionKey\",\n \"TempCertificate\": {\n \"SecretId\": \"xxxxxxx\",\n \"SecretKey\": \"xxxxxxxx\",\n \"Token\": \"xxxxxxxx\",\n \"ExpiredTime\": 182823331\n }\n }\n}",
|
|
8
8
|
"title": "Successful application upload examples"
|
|
9
9
|
}
|
|
10
10
|
],
|