tccli 3.0.1175.1__py2.py3-none-any.whl → 3.0.1176.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/batch/v20170312/api.json +1 -1
- tccli/services/ccc/v20200210/api.json +9 -9
- tccli/services/cdwdoris/cdwdoris_client.py +106 -159
- tccli/services/cdwdoris/v20211228/api.json +737 -1207
- tccli/services/cdwdoris/v20211228/examples.json +62 -70
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cynosdb/cynosdb_client.py +114 -8
- tccli/services/cynosdb/v20190107/api.json +136 -0
- tccli/services/cynosdb/v20190107/examples.json +16 -0
- tccli/services/ecm/v20190719/api.json +8 -6
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/mps/v20190612/api.json +49 -29
- tccli/services/trtc/trtc_client.py +53 -0
- tccli/services/trtc/v20190722/api.json +62 -0
- tccli/services/trtc/v20190722/examples.json +8 -0
- tccli/services/vod/v20180717/api.json +341 -0
- tccli/services/vod/v20180717/examples.json +30 -0
- tccli/services/vod/vod_client.py +171 -12
- tccli/services/vpc/v20170312/api.json +10 -1
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/RECORD +27 -27
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/license_files/LICENSE +0 -0
@@ -5933,7 +5933,7 @@
|
|
5933
5933
|
{
|
5934
5934
|
"disabled": false,
|
5935
5935
|
"document": "安全组实例ID,例如:esg-33ocnj9n,可通过[DescribeSecurityGroups](https://cloud.tencent.com/document/product/1108/47697)获取。每次请求的实例的上限为100。参数不支持同时指定SecurityGroupIds和Filters。",
|
5936
|
-
"example": "",
|
5936
|
+
"example": "无",
|
5937
5937
|
"member": "string",
|
5938
5938
|
"name": "SecurityGroupIds",
|
5939
5939
|
"required": false,
|
@@ -5942,7 +5942,7 @@
|
|
5942
5942
|
{
|
5943
5943
|
"disabled": false,
|
5944
5944
|
"document": "过滤条件,参数不支持同时指定SecurityGroupIds和Filters。\nsecurity-group-id - String - (过滤条件)安全组ID。\nsecurity-group-name - String - (过滤条件)安全组名称。\ntag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。\ntag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。",
|
5945
|
-
"example": "",
|
5945
|
+
"example": "无",
|
5946
5946
|
"member": "Filter",
|
5947
5947
|
"name": "Filters",
|
5948
5948
|
"required": false,
|
@@ -5951,7 +5951,7 @@
|
|
5951
5951
|
{
|
5952
5952
|
"disabled": false,
|
5953
5953
|
"document": "偏移量,默认为0。",
|
5954
|
-
"example": "",
|
5954
|
+
"example": "无",
|
5955
5955
|
"member": "int64",
|
5956
5956
|
"name": "Offset",
|
5957
5957
|
"required": false,
|
@@ -5960,7 +5960,7 @@
|
|
5960
5960
|
{
|
5961
5961
|
"disabled": false,
|
5962
5962
|
"document": "返回数量,默认为20,最大值为100。",
|
5963
|
-
"example": "",
|
5963
|
+
"example": "无",
|
5964
5964
|
"member": "int64",
|
5965
5965
|
"name": "Limit",
|
5966
5966
|
"required": false,
|
@@ -5975,18 +5975,20 @@
|
|
5975
5975
|
{
|
5976
5976
|
"disabled": false,
|
5977
5977
|
"document": "符合条件的实例数量。",
|
5978
|
-
"example": "",
|
5978
|
+
"example": "无",
|
5979
5979
|
"member": "int64",
|
5980
5980
|
"name": "TotalCount",
|
5981
|
+
"output_required": true,
|
5981
5982
|
"type": "int",
|
5982
5983
|
"value_allowed_null": false
|
5983
5984
|
},
|
5984
5985
|
{
|
5985
5986
|
"disabled": false,
|
5986
5987
|
"document": "安全组对象。",
|
5987
|
-
"example": "",
|
5988
|
+
"example": "无",
|
5988
5989
|
"member": "SecurityGroup",
|
5989
5990
|
"name": "SecurityGroupSet",
|
5991
|
+
"output_required": true,
|
5990
5992
|
"type": "list",
|
5991
5993
|
"value_allowed_null": false
|
5992
5994
|
},
|
@@ -6944,6 +6944,15 @@
|
|
6944
6944
|
"name": "ComputeResourceId",
|
6945
6945
|
"required": false,
|
6946
6946
|
"type": "string"
|
6947
|
+
},
|
6948
|
+
{
|
6949
|
+
"disabled": false,
|
6950
|
+
"document": "扩容资源类型",
|
6951
|
+
"example": "HOST",
|
6952
|
+
"member": "string",
|
6953
|
+
"name": "HardwareResourceType",
|
6954
|
+
"required": false,
|
6955
|
+
"type": "string"
|
6947
6956
|
}
|
6948
6957
|
],
|
6949
6958
|
"type": "object"
|
@@ -311,7 +311,7 @@
|
|
311
311
|
"members": [
|
312
312
|
{
|
313
313
|
"disabled": false,
|
314
|
-
"document": "结束标志位,可能为 stop
|
314
|
+
"document": "结束标志位,可能为 stop、 sensitive或者tool_calls。\nstop 表示输出正常结束。\nsensitive 只在开启流式输出审核时会出现,表示安全审核未通过。\ntool_calls 标识函数调用。",
|
315
315
|
"example": "stop",
|
316
316
|
"member": "string",
|
317
317
|
"name": "FinishReason",
|
@@ -2839,11 +2839,11 @@
|
|
2839
2839
|
"usage": "out"
|
2840
2840
|
},
|
2841
2841
|
"AiQualityControlTaskInput": {
|
2842
|
-
"document": "
|
2842
|
+
"document": "媒体质检输入参数类型",
|
2843
2843
|
"members": [
|
2844
2844
|
{
|
2845
2845
|
"disabled": false,
|
2846
|
-
"document": "媒体质检模板 ID
|
2846
|
+
"document": "媒体质检模板 ID 。\n可以直接使用预设模板,也可以在控制台自定义模板。预设模板如下:\n- 10:开启所有质检项;\n- 20:仅开启格式诊断对应质检项;\n- 30:仅开启无参考打分对应质检项;\n- 40:仅开启画面质量对应质检项。\n注意:此字段可能返回 null,表示取不到有效值。",
|
2847
2847
|
"example": "10",
|
2848
2848
|
"member": "uint64",
|
2849
2849
|
"name": "Definition",
|
@@ -13875,31 +13875,31 @@
|
|
13875
13875
|
"members": [
|
13876
13876
|
{
|
13877
13877
|
"disabled": false,
|
13878
|
-
"document": "
|
13879
|
-
"example": "
|
13878
|
+
"document": "诊断出的异常类别,取值范围:\nDecodeParamException:解码参数异常\nTimeStampException:时间戳异常\nFrameException: 帧率异常\nStreamStatusException:流状态异常\nStreamInfo:流信息异常\nStreamAbnormalCharacteristics:流特征异常\nDecodeException:解码异常\nHLSRequirements:HLS 格式异常\n注意:此字段可能返回 null,表示取不到有效值。",
|
13879
|
+
"example": "DecodeException",
|
13880
13880
|
"member": "string",
|
13881
13881
|
"name": "Category",
|
13882
|
-
"
|
13882
|
+
"output_required": true,
|
13883
13883
|
"type": "string",
|
13884
13884
|
"value_allowed_null": true
|
13885
13885
|
},
|
13886
13886
|
{
|
13887
13887
|
"disabled": false,
|
13888
|
-
"document": "
|
13889
|
-
"example": "
|
13888
|
+
"document": "诊断出的具体异常类型,取值如下:\n\nVideoResolutionChanged:视频分辨率变化\nAudioSampleRateChanged:音频采样率变化\nAudioChannelsChanged:音频通道数变化\nParameterSetsChanged:流参数集信息发生变化\nDarOrSarInvalid:视频的宽高比异常\nTimestampFallback:DTS时间戳回退\nDtsJitter:DTS抖动过大\nPtsJitter:PTS抖动过大\nAACDurationDeviation:AAC帧时间戳间隔不合理\nAudioDroppingFrames:音频丢帧\nVideoDroppingFrames:视频丢帧\nAVTimestampInterleave:音视频交织不合理\nPtsLessThanDts:媒体流的 pts 小于 dts\nReceiveFpsJitter:网络接收帧率抖动过大\nReceiveFpsTooSmall:网络接收视频帧率过小\nFpsJitter:通过PTS计算得到的流帧率抖动过大\nStreamOpenFailed:流打开失败\nStreamEnd:流结束\nStreamParseFailed:流解析失败\nVideoFirstFrameNotIdr:首帧不是IDR帧\nStreamNALUError:NALU起始码错误\nTsStreamNoAud:mpegts的H26x流缺失 AUD NALU\nAudioStreamLack:无音频流\nVideoStreamLack:无视频流\nLackAudioRecover:缺失音频流恢复\nLackVideoRecover:缺失视频流恢复\nVideoBitrateOutofRange:视频流码率(kbps)超出范围\nAudioBitrateOutofRange:音频流码率(kbps)超出范围\nVideoDecodeFailed:视频解码错误\nAudioDecodeFailed:音频解码错误\nAudioOutOfPhase:双通道音频相位相反\nVideoDuplicatedFrame:视频流中存在重复帧\nAudioDuplicatedFrame:音频流中存在重复帧\nVideoRotation:视频画面旋转\nTsMultiPrograms:MPEG2-TS流有多个program\nMp4InvalidCodecFourcc:MP4中codec fourcc不符合Apple HLS要求\nHLSBadM3u8Format:无效的m3u8文件\nHLSInvalidMasterM3u8:无效的main m3u8文件\nHLSInvalidMediaM3u8:无效的media m3u8文件\nHLSMasterM3u8Recommended:main m3u8缺少标准推荐的参数\nHLSMediaM3u8Recommended:media m3u8缺少标准推荐的参数\nHLSMediaM3u8DiscontinuityExist:media m3u8存在EXT-X-DISCONTINUITY\nHLSMediaSegmentsStreamNumChange:切片的流数目发生变化\nHLSMediaSegmentsPTSJitterDeviation:切片间PTS跳变且没有EXT-X-DISCONTINUITY\nHLSMediaSegmentsDTSJitterDeviation:切片间DTS跳变且没有EXT-X-DISCONTINUITY\nTimecodeTrackExist:MP4存在tmcd轨道\n注意:此字段可能返回 null,表示取不到有效值。",
|
13889
|
+
"example": "VideoDecodeFailed",
|
13890
13890
|
"member": "string",
|
13891
13891
|
"name": "Type",
|
13892
|
-
"
|
13892
|
+
"output_required": true,
|
13893
13893
|
"type": "string",
|
13894
13894
|
"value_allowed_null": true
|
13895
13895
|
},
|
13896
13896
|
{
|
13897
13897
|
"disabled": false,
|
13898
13898
|
"document": "诊断出异常开始的PTS时间戳。\n注意:此字段可能返回 null,表示取不到有效值。",
|
13899
|
-
"example": "
|
13899
|
+
"example": "5.966",
|
13900
13900
|
"member": "float",
|
13901
13901
|
"name": "Timestamp",
|
13902
|
-
"
|
13902
|
+
"output_required": true,
|
13903
13903
|
"type": "float",
|
13904
13904
|
"value_allowed_null": true
|
13905
13905
|
},
|
@@ -13909,27 +13909,27 @@
|
|
13909
13909
|
"example": "无",
|
13910
13910
|
"member": "string",
|
13911
13911
|
"name": "Description",
|
13912
|
-
"
|
13912
|
+
"output_required": true,
|
13913
13913
|
"type": "string",
|
13914
13914
|
"value_allowed_null": true
|
13915
13915
|
},
|
13916
13916
|
{
|
13917
13917
|
"disabled": false,
|
13918
13918
|
"document": "诊断到异常的北京时间,采用 ISO 日期格式。\n注意:此字段可能返回 null,表示取不到有效值。",
|
13919
|
-
"example": "
|
13919
|
+
"example": "2023-06-09T06:54:32Z",
|
13920
13920
|
"member": "string",
|
13921
13921
|
"name": "DateTime",
|
13922
|
-
"
|
13922
|
+
"output_required": true,
|
13923
13923
|
"type": "string",
|
13924
13924
|
"value_allowed_null": true
|
13925
13925
|
},
|
13926
13926
|
{
|
13927
13927
|
"disabled": false,
|
13928
|
-
"document": "
|
13929
|
-
"example": "
|
13928
|
+
"document": "诊断出的异常级别,取值范围:\nFatal:影响后续播放和解析,\nError: 可能会影响播放,\nWarning: 可能会有潜在风险,但不一定会影响播放,\nNotice:比较重要的流信息,\nInfo:一般性的流信息。\n注意:此字段可能返回 null,表示取不到有效值。",
|
13929
|
+
"example": "Fatal",
|
13930
13930
|
"member": "string",
|
13931
13931
|
"name": "SeverityLevel",
|
13932
|
-
"
|
13932
|
+
"output_required": true,
|
13933
13933
|
"type": "string",
|
13934
13934
|
"value_allowed_null": true
|
13935
13935
|
}
|
@@ -16332,25 +16332,45 @@
|
|
16332
16332
|
"usage": "out"
|
16333
16333
|
},
|
16334
16334
|
"LiveStreamAiQualityControlResultInfo": {
|
16335
|
-
"document": "
|
16335
|
+
"document": "直播流媒体质检结果",
|
16336
16336
|
"members": [
|
16337
16337
|
{
|
16338
|
-
"disabled":
|
16339
|
-
"document": "
|
16338
|
+
"disabled": true,
|
16339
|
+
"document": "内容质检结果列表。\n注意:此字段可能返回 null,表示取不到有效值。",
|
16340
16340
|
"example": "无",
|
16341
16341
|
"member": "QualityControlResult",
|
16342
16342
|
"name": "QualityControlResults",
|
16343
|
-
"
|
16343
|
+
"output_required": false,
|
16344
16344
|
"type": "list",
|
16345
16345
|
"value_allowed_null": true
|
16346
16346
|
},
|
16347
16347
|
{
|
16348
|
-
"disabled":
|
16348
|
+
"disabled": true,
|
16349
16349
|
"document": "格式诊断结果列表。\n注意:此字段可能返回 null,表示取不到有效值。",
|
16350
16350
|
"example": "无",
|
16351
16351
|
"member": "DiagnoseResult",
|
16352
16352
|
"name": "DiagnoseResults",
|
16353
|
-
"
|
16353
|
+
"output_required": false,
|
16354
|
+
"type": "list",
|
16355
|
+
"value_allowed_null": true
|
16356
|
+
},
|
16357
|
+
{
|
16358
|
+
"disabled": false,
|
16359
|
+
"document": "内容质检结果列表。\n注意:此字段可能返回 null,表示取不到有效值。",
|
16360
|
+
"example": "无",
|
16361
|
+
"member": "QualityControlResult",
|
16362
|
+
"name": "QualityControlResultSet",
|
16363
|
+
"output_required": false,
|
16364
|
+
"type": "list",
|
16365
|
+
"value_allowed_null": true
|
16366
|
+
},
|
16367
|
+
{
|
16368
|
+
"disabled": false,
|
16369
|
+
"document": "格式诊断结果列表。\n注意:此字段可能返回 null,表示取不到有效值。",
|
16370
|
+
"example": "无",
|
16371
|
+
"member": "DiagnoseResult",
|
16372
|
+
"name": "DiagnoseResultSet",
|
16373
|
+
"output_required": false,
|
16354
16374
|
"type": "list",
|
16355
16375
|
"value_allowed_null": true
|
16356
16376
|
}
|
@@ -23111,8 +23131,8 @@
|
|
23111
23131
|
"members": [
|
23112
23132
|
{
|
23113
23133
|
"disabled": false,
|
23114
|
-
"document": "
|
23115
|
-
"example": "
|
23134
|
+
"document": "质检项名称。质检项取值如下:\n<li>LowEvaluation:无参考打分</li>\n<li>Mosaic:马赛克检测</li>\n<li>CrashScreen:花屏检测</li>\n<li>VideoFreezedFrame:视频冻结</li>\n<li>Blur:模糊检测</li>\n<li>BlackWhiteEdge:黑白边检测</li>\n<li>SolidColorScreen:纯色屏检测</li>\n<li>LowLighting:低光照</li>\n<li>HighLighting:过曝</li>\n<li>NoVoice:静音检测</li>\n<li>LowVoice:低音检测</li>\n<li>HighVoice:爆音检测</li>\n<li>Jitter:抖动检测</li>\n<li>Noise:噪点检测</li>\n<li>QRCode:二维码检测</li>\n<li>BarCode:条形码检测</li>\n<li>AppletCode:小程序码检测</li>\n<li>VideoResolutionChanged:视频分辨率变化</li>\n<li>AudioSampleRateChanged:音频采样率变化</li>\n<li>AudioChannelsChanged:音频通道数变化</li>\n<li>ParameterSetsChanged:流参数集信息发生变化</li>\n<li>DarOrSarInvalid:视频的宽高比异常</li>\n<li>TimestampFallback:DTS时间戳回退</li>\n<li>DtsJitter:DTS抖动过大</li>\n<li>PtsJitter:PTS抖动过大</li>\n<li>AACDurationDeviation:AAC帧时间戳间隔不合理</li>\n<li>AudioDroppingFrames:音频丢帧</li>\n<li>VideoDroppingFrames:视频丢帧</li>\n<li>AVTimestampInterleave:音视频交织不合理</li>\n<li>PtsLessThanDts:媒体流的 pts 小于 dts</li>\n<li>ReceiveFpsJitter:网络接收帧率抖动过大</li>\n<li>ReceiveFpsTooSmall:网络接收视频帧率过小</li>\n<li>FpsJitter:通过PTS计算得到的流帧率抖动过大</li>\n<li>StreamOpenFailed:流打开失败</li>\n<li>StreamEnd:流结束</li>\n<li>StreamParseFailed:流解析失败</li>\n<li>VideoFirstFrameNotIdr:首帧不是IDR帧</li>\n<li>StreamNALUError:NALU起始码错误</li>\n<li>TsStreamNoAud:mpegts的H26x流缺失 AUD NALU</li>\n<li>AudioStreamLack:无音频流</li>\n<li>VideoStreamLack:无视频流</li>\n<li>LackAudioRecover:缺失音频流恢复</li>\n<li>LackVideoRecover:缺失视频流恢复</li>\n<li>VideoBitrateOutofRange:视频流码率(kbps)超出范围</li>\n<li>AudioBitrateOutofRange:音频流码率(kbps)超出范围</li>\n<li>VideoDecodeFailed:视频解码错误</li>\n<li>AudioDecodeFailed:音频解码错误</li>\n<li>AudioOutOfPhase:双通道音频相位相反</li>\n<li>VideoDuplicatedFrame:视频流中存在重复帧</li>\n<li>AudioDuplicatedFrame:音频流中存在重复帧</li>\n<li>VideoRotation:视频画面旋转</li>\n<li>TsMultiPrograms:MPEG2-TS流有多个program</li>\n<li>Mp4InvalidCodecFourcc:MP4中codec fourcc不符合Apple HLS要求</li>\n<li>HLSBadM3u8Format:无效的m3u8文件</li>\n<li>HLSInvalidMasterM3u8:无效的main m3u8文件</li>\n<li>HLSInvalidMediaM3u8:无效的media m3u8文件</li>\n<li>HLSMasterM3u8Recommended:main m3u8缺少标准推荐的参数</li>\n<li>HLSMediaM3u8Recommended:media m3u8缺少标准推荐的参数</li>\n<li>HLSMediaM3u8DiscontinuityExist:media m3u8存在EXT-X-DISCONTINUITY</li>\n<li>HLSMediaSegmentsStreamNumChange:切片的流数目发生变化</li>\n<li>HLSMediaSegmentsPTSJitterDeviation:切片间PTS跳变且没有EXT-X-DISCONTINUITY</li>\n<li>HLSMediaSegmentsDTSJitterDeviation:切片间DTS跳变且没有EXT-X-DISCONTINUITY</li>\n<li>TimecodeTrackExist:MP4存在tmcd轨道</li>",
|
23135
|
+
"example": "无",
|
23116
23136
|
"member": "string",
|
23117
23137
|
"name": "Type",
|
23118
23138
|
"output_required": true,
|
@@ -23123,7 +23143,7 @@
|
|
23123
23143
|
{
|
23124
23144
|
"disabled": false,
|
23125
23145
|
"document": "能力配置开关,可选值:\n<li>ON:开启;</li>\n<li>OFF:关闭。</li>\n默认值:ON。\n注意:此字段可能返回 null,表示取不到有效值。",
|
23126
|
-
"example": "
|
23146
|
+
"example": "无",
|
23127
23147
|
"member": "string",
|
23128
23148
|
"name": "Switch",
|
23129
23149
|
"output_required": false,
|
@@ -23144,7 +23164,7 @@
|
|
23144
23164
|
},
|
23145
23165
|
{
|
23146
23166
|
"disabled": false,
|
23147
|
-
"document": "
|
23167
|
+
"document": "采样间隔时间,单位:ms。\n注意:此字段可能返回 null,表示取不到有效值。",
|
23148
23168
|
"example": "1000",
|
23149
23169
|
"member": "uint64",
|
23150
23170
|
"name": "IntervalTime",
|
@@ -23155,7 +23175,7 @@
|
|
23155
23175
|
},
|
23156
23176
|
{
|
23157
23177
|
"disabled": false,
|
23158
|
-
"document": "
|
23178
|
+
"document": "异常持续时间,单位:ms。\n注意:此字段可能返回 null,表示取不到有效值。",
|
23159
23179
|
"example": "100",
|
23160
23180
|
"member": "uint64",
|
23161
23181
|
"name": "Duration",
|
@@ -23166,8 +23186,8 @@
|
|
23166
23186
|
},
|
23167
23187
|
{
|
23168
23188
|
"disabled": false,
|
23169
|
-
"document": "
|
23170
|
-
"example": "
|
23189
|
+
"document": "检测项对应的阈值,不同检测项对应阈值不同。\n注意:此字段可能返回 null,表示取不到有效值。",
|
23190
|
+
"example": "无",
|
23171
23191
|
"member": "string",
|
23172
23192
|
"name": "Threshold",
|
23173
23193
|
"output_required": false,
|
@@ -797,6 +797,58 @@ def doStartStreamIngest(args, parsed_globals):
|
|
797
797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
798
|
|
799
799
|
|
800
|
+
def doUpdateStreamIngest(args, parsed_globals):
|
801
|
+
g_param = parse_global_arg(parsed_globals)
|
802
|
+
|
803
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
804
|
+
cred = credential.CVMRoleCredential()
|
805
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
806
|
+
cred = credential.STSAssumeRoleCredential(
|
807
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
808
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
809
|
+
)
|
810
|
+
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):
|
811
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
812
|
+
else:
|
813
|
+
cred = credential.Credential(
|
814
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
815
|
+
)
|
816
|
+
http_profile = HttpProfile(
|
817
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
818
|
+
reqMethod="POST",
|
819
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
820
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
821
|
+
)
|
822
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
823
|
+
if g_param[OptionsDefine.Language]:
|
824
|
+
profile.language = g_param[OptionsDefine.Language]
|
825
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
826
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
827
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
828
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
829
|
+
model = models.UpdateStreamIngestRequest()
|
830
|
+
model.from_json_string(json.dumps(args))
|
831
|
+
start_time = time.time()
|
832
|
+
while True:
|
833
|
+
rsp = client.UpdateStreamIngest(model)
|
834
|
+
result = rsp.to_json_string()
|
835
|
+
try:
|
836
|
+
json_obj = json.loads(result)
|
837
|
+
except TypeError as e:
|
838
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
839
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
840
|
+
break
|
841
|
+
cur_time = time.time()
|
842
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
843
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
844
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
845
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
846
|
+
else:
|
847
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
848
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
849
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
|
+
|
851
|
+
|
800
852
|
def doDeletePicture(args, parsed_globals):
|
801
853
|
g_param = parse_global_arg(parsed_globals)
|
802
854
|
|
@@ -2851,6 +2903,7 @@ ACTION_MAP = {
|
|
2851
2903
|
"DescribeAIConversation": doDescribeAIConversation,
|
2852
2904
|
"DescribeRecordingUsage": doDescribeRecordingUsage,
|
2853
2905
|
"StartStreamIngest": doStartStreamIngest,
|
2906
|
+
"UpdateStreamIngest": doUpdateStreamIngest,
|
2854
2907
|
"DeletePicture": doDeletePicture,
|
2855
2908
|
"DescribeTRTCRealTimeQualityMetricData": doDescribeTRTCRealTimeQualityMetricData,
|
2856
2909
|
"CreatePicture": doCreatePicture,
|
@@ -377,6 +377,13 @@
|
|
377
377
|
"name": "更新转推任务",
|
378
378
|
"output": "UpdatePublishCdnStreamResponse",
|
379
379
|
"status": "online"
|
380
|
+
},
|
381
|
+
"UpdateStreamIngest": {
|
382
|
+
"document": "更新输入在线媒体流任务的StreamUrl",
|
383
|
+
"input": "UpdateStreamIngestRequest",
|
384
|
+
"name": "更新输入在线媒体流",
|
385
|
+
"output": "UpdateStreamIngestResponse",
|
386
|
+
"status": "online"
|
380
387
|
}
|
381
388
|
},
|
382
389
|
"metadata": {
|
@@ -7119,6 +7126,61 @@
|
|
7119
7126
|
],
|
7120
7127
|
"type": "object"
|
7121
7128
|
},
|
7129
|
+
"UpdateStreamIngestRequest": {
|
7130
|
+
"document": "UpdateStreamIngest请求参数结构体",
|
7131
|
+
"members": [
|
7132
|
+
{
|
7133
|
+
"disabled": false,
|
7134
|
+
"document": "TRTC的SDKAppId,和任务的房间所对应的SDKAppId相同",
|
7135
|
+
"example": "1234",
|
7136
|
+
"member": "uint64",
|
7137
|
+
"name": "SdkAppId",
|
7138
|
+
"required": true,
|
7139
|
+
"type": "int"
|
7140
|
+
},
|
7141
|
+
{
|
7142
|
+
"disabled": false,
|
7143
|
+
"document": "任务的唯一Id,在启动任务成功后会返回。",
|
7144
|
+
"example": "1234",
|
7145
|
+
"member": "string",
|
7146
|
+
"name": "TaskId",
|
7147
|
+
"required": true,
|
7148
|
+
"type": "string"
|
7149
|
+
},
|
7150
|
+
{
|
7151
|
+
"disabled": false,
|
7152
|
+
"document": "源流URL【必填】。",
|
7153
|
+
"example": "https://a.b/test.mp4",
|
7154
|
+
"member": "string",
|
7155
|
+
"name": "StreamUrl",
|
7156
|
+
"required": true,
|
7157
|
+
"type": "string"
|
7158
|
+
}
|
7159
|
+
],
|
7160
|
+
"type": "object"
|
7161
|
+
},
|
7162
|
+
"UpdateStreamIngestResponse": {
|
7163
|
+
"document": "UpdateStreamIngest返回参数结构体",
|
7164
|
+
"members": [
|
7165
|
+
{
|
7166
|
+
"disabled": false,
|
7167
|
+
"document": "任务的状态信息。InProgress:表示当前任务正在进行中。NotExist:表示当前任务不存在。示例值:InProgress",
|
7168
|
+
"example": "InProgress",
|
7169
|
+
"member": "string",
|
7170
|
+
"name": "Status",
|
7171
|
+
"output_required": true,
|
7172
|
+
"type": "string",
|
7173
|
+
"value_allowed_null": false
|
7174
|
+
},
|
7175
|
+
{
|
7176
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7177
|
+
"member": "string",
|
7178
|
+
"name": "RequestId",
|
7179
|
+
"type": "string"
|
7180
|
+
}
|
7181
|
+
],
|
7182
|
+
"type": "object"
|
7183
|
+
},
|
7122
7184
|
"UserInformation": {
|
7123
7185
|
"document": "用户信息,包括用户进房时间,退房时间等",
|
7124
7186
|
"members": [
|
@@ -467,6 +467,14 @@
|
|
467
467
|
"output": "{\n \"Response\": {\n \"RequestId\": \"71993312-6ab8-4768-9124-118e0a20c45f\",\n \"TaskId\": \"xxxx\"\n }\n}",
|
468
468
|
"title": "更新混音和布局参数"
|
469
469
|
}
|
470
|
+
],
|
471
|
+
"UpdateStreamIngest": [
|
472
|
+
{
|
473
|
+
"document": "更新SdkAppId为1234567890下的TaskId为1234的StreamUrl",
|
474
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateStreamIngest\n<公共请求参数>\n\n{\n \"SdkAppId\": 1234567890,\n \"TaskId\": \"1234\",\n \"StreamUrl\": \"https://a.b/test.mp4\"\n}",
|
475
|
+
"output": "{\n \"Response\": {\n \"Status\": \"InProgress\",\n \"RequestId\": \"71993312-6ab8-4768-9124-118e0a20c45f\"\n }\n}",
|
476
|
+
"title": "更新任务"
|
477
|
+
}
|
470
478
|
]
|
471
479
|
},
|
472
480
|
"version": "1.0"
|