tccli 3.0.1341.1__py2.py3-none-any.whl → 3.0.1342.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/plugins/sso/__init__.py +14 -0
- tccli/plugins/sso/login.py +23 -6
- tccli/plugins/sso/texts.py +4 -0
- tccli/services/__init__.py +3 -0
- tccli/services/ams/v20201229/api.json +195 -185
- tccli/services/apm/v20210622/api.json +10 -0
- tccli/services/cdb/v20170320/api.json +15 -15
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/ctem/__init__.py +4 -0
- tccli/services/ctem/ctem_client.py +1479 -0
- tccli/services/ctem/v20231128/api.json +6138 -0
- tccli/services/ctem/v20231128/examples.json +205 -0
- tccli/services/dlc/v20210125/api.json +15 -6
- tccli/services/hunyuan/v20230901/api.json +10 -1
- tccli/services/ims/v20201229/api.json +30 -30
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/iotvideo/v20201215/api.json +2 -2
- tccli/services/iotvideo/v20201215/examples.json +1 -1
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/iotvideo/v20211125/examples.json +1 -1
- tccli/services/lke/v20231130/api.json +22 -1
- tccli/services/mongodb/v20190725/api.json +10 -0
- tccli/services/mps/v20190612/api.json +113 -25
- tccli/services/mqtt/mqtt_client.py +53 -0
- tccli/services/mqtt/v20240516/api.json +150 -0
- tccli/services/mqtt/v20240516/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +3 -3
- tccli/services/redis/v20180412/examples.json +19 -1
- tccli/services/tke/v20180525/api.json +10 -0
- tccli/services/trocket/v20230308/api.json +71 -71
- tccli/services/trocket/v20230308/examples.json +4 -4
- tccli/services/vm/v20210922/api.json +363 -333
- tccli/services/wedata/v20210820/api.json +128 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1342.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1342.1.dist-info}/RECORD +42 -38
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1342.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1342.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1341.1.dist-info → tccli-3.0.1342.1.dist-info}/license_files/LICENSE +0 -0
@@ -668,7 +668,7 @@
|
|
668
668
|
{
|
669
669
|
"document": "",
|
670
670
|
"input": "POST / HTTP/1.1\nHost: iotvideo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GenerateSignedVideoURL\n<公共请求参数>\n\n{\n \"ExpireTime\": 1619331648,\n \"VideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8\"\n}",
|
671
|
-
"output": "{\n \"Response\": {\n \"SignedVideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8?sign=x\",\n \"RequestId\": \"
|
671
|
+
"output": "{\n \"Response\": {\n \"SignedVideoURL\": \"http://zylcb.iotvideo.tencentcs.com/timeshift/live/1.m3u8?sign=x\",\n \"RequestId\": \"requestid\"\n }\n}",
|
672
672
|
"title": "获取视频防盗链播放URL"
|
673
673
|
}
|
674
674
|
],
|
@@ -9858,6 +9858,16 @@
|
|
9858
9858
|
"output_required": false,
|
9859
9859
|
"type": "float",
|
9860
9860
|
"value_allowed_null": true
|
9861
|
+
},
|
9862
|
+
{
|
9863
|
+
"disabled": false,
|
9864
|
+
"document": "知识库类型:0默认1共享",
|
9865
|
+
"example": "1",
|
9866
|
+
"member": "int64",
|
9867
|
+
"name": "KnowledgeType",
|
9868
|
+
"output_required": false,
|
9869
|
+
"type": "int",
|
9870
|
+
"value_allowed_null": false
|
9861
9871
|
}
|
9862
9872
|
],
|
9863
9873
|
"usage": "out"
|
@@ -9911,7 +9921,7 @@
|
|
9911
9921
|
},
|
9912
9922
|
{
|
9913
9923
|
"disabled": false,
|
9914
|
-
"document": "
|
9924
|
+
"document": "废弃\n注意:此字段可能返回 null,表示取不到有效值。",
|
9915
9925
|
"example": "无",
|
9916
9926
|
"member": "bool",
|
9917
9927
|
"name": "IsSharedKnowledge",
|
@@ -9919,6 +9929,17 @@
|
|
9919
9929
|
"required": false,
|
9920
9930
|
"type": "bool",
|
9921
9931
|
"value_allowed_null": true
|
9932
|
+
},
|
9933
|
+
{
|
9934
|
+
"disabled": false,
|
9935
|
+
"document": "知识库类型:0默认1共享",
|
9936
|
+
"example": "1",
|
9937
|
+
"member": "int64",
|
9938
|
+
"name": "KnowledgeType",
|
9939
|
+
"output_required": false,
|
9940
|
+
"required": false,
|
9941
|
+
"type": "int",
|
9942
|
+
"value_allowed_null": false
|
9922
9943
|
}
|
9923
9944
|
],
|
9924
9945
|
"usage": "both"
|
@@ -6381,6 +6381,16 @@
|
|
6381
6381
|
"type": "string",
|
6382
6382
|
"value_allowed_null": false
|
6383
6383
|
},
|
6384
|
+
{
|
6385
|
+
"disabled": false,
|
6386
|
+
"document": "queryHash",
|
6387
|
+
"example": "abcdefg",
|
6388
|
+
"member": "string",
|
6389
|
+
"name": "QueryHash",
|
6390
|
+
"output_required": false,
|
6391
|
+
"type": "string",
|
6392
|
+
"value_allowed_null": false
|
6393
|
+
},
|
6384
6394
|
{
|
6385
6395
|
"disabled": false,
|
6386
6396
|
"document": "最大执行时间",
|
@@ -8557,9 +8557,10 @@
|
|
8557
8557
|
{
|
8558
8558
|
"disabled": false,
|
8559
8559
|
"document": "媒体处理对象文件所在的 COS Bucket 名,如 TopRankVideo-125xxx88。",
|
8560
|
-
"example": "
|
8560
|
+
"example": "TopRankVideo-125xxx88",
|
8561
8561
|
"member": "string",
|
8562
8562
|
"name": "Bucket",
|
8563
|
+
"output_required": true,
|
8563
8564
|
"required": true,
|
8564
8565
|
"type": "string",
|
8565
8566
|
"value_allowed_null": false
|
@@ -8567,9 +8568,10 @@
|
|
8567
8568
|
{
|
8568
8569
|
"disabled": false,
|
8569
8570
|
"document": "媒体处理对象文件所在的 COS Bucket 所属园区,如 ap-chongqing。",
|
8570
|
-
"example": "
|
8571
|
+
"example": "ap-chongqing",
|
8571
8572
|
"member": "string",
|
8572
8573
|
"name": "Region",
|
8574
|
+
"output_required": true,
|
8573
8575
|
"required": true,
|
8574
8576
|
"type": "string",
|
8575
8577
|
"value_allowed_null": false
|
@@ -8577,9 +8579,10 @@
|
|
8577
8579
|
{
|
8578
8580
|
"disabled": false,
|
8579
8581
|
"document": "媒体处理对象文件的输入路径,如`/movie/201907/WildAnimal.mov`。",
|
8580
|
-
"example": "
|
8582
|
+
"example": "/movie/201907/WildAnimal.mov",
|
8581
8583
|
"member": "string",
|
8582
8584
|
"name": "Object",
|
8585
|
+
"output_required": true,
|
8583
8586
|
"required": true,
|
8584
8587
|
"type": "string",
|
8585
8588
|
"value_allowed_null": false
|
@@ -8593,9 +8596,10 @@
|
|
8593
8596
|
{
|
8594
8597
|
"disabled": false,
|
8595
8598
|
"document": "媒体处理生成的文件输出的目标 Bucket 名,如 TopRankVideo-125xxx88。如果不填,表示继承上层。",
|
8596
|
-
"example": "
|
8599
|
+
"example": "TopRankVideo-125xxx88",
|
8597
8600
|
"member": "string",
|
8598
8601
|
"name": "Bucket",
|
8602
|
+
"output_required": true,
|
8599
8603
|
"required": false,
|
8600
8604
|
"type": "string",
|
8601
8605
|
"value_allowed_null": false
|
@@ -8603,9 +8607,10 @@
|
|
8603
8607
|
{
|
8604
8608
|
"disabled": false,
|
8605
8609
|
"document": "媒体处理生成的文件输出的目标 Bucket 的园区,如 ap-chongqing。如果不填,表示继承上层。",
|
8606
|
-
"example": "
|
8610
|
+
"example": "ap-chongqing",
|
8607
8611
|
"member": "string",
|
8608
8612
|
"name": "Region",
|
8613
|
+
"output_required": true,
|
8609
8614
|
"required": false,
|
8610
8615
|
"type": "string",
|
8611
8616
|
"value_allowed_null": false
|
@@ -21160,6 +21165,16 @@
|
|
21160
21165
|
"output_required": false,
|
21161
21166
|
"type": "list",
|
21162
21167
|
"value_allowed_null": true
|
21168
|
+
},
|
21169
|
+
{
|
21170
|
+
"disabled": false,
|
21171
|
+
"document": "摘要思维导图地址\n注意:此字段可能返回 null,表示取不到有效值。",
|
21172
|
+
"example": "https://xxxx.cos.myqcloud.com",
|
21173
|
+
"member": "string",
|
21174
|
+
"name": "MindMapUrl",
|
21175
|
+
"output_required": false,
|
21176
|
+
"type": "string",
|
21177
|
+
"value_allowed_null": true
|
21163
21178
|
}
|
21164
21179
|
],
|
21165
21180
|
"usage": "out"
|
@@ -21899,6 +21914,7 @@
|
|
21899
21914
|
"example": "NULL",
|
21900
21915
|
"member": "string",
|
21901
21916
|
"name": "Type",
|
21917
|
+
"output_required": true,
|
21902
21918
|
"required": true,
|
21903
21919
|
"type": "string",
|
21904
21920
|
"value_allowed_null": false
|
@@ -21909,6 +21925,7 @@
|
|
21909
21925
|
"example": "NULL",
|
21910
21926
|
"member": "CosInputInfo",
|
21911
21927
|
"name": "CosInputInfo",
|
21928
|
+
"output_required": true,
|
21912
21929
|
"required": false,
|
21913
21930
|
"type": "object",
|
21914
21931
|
"value_allowed_null": false
|
@@ -21919,6 +21936,7 @@
|
|
21919
21936
|
"example": "NULL",
|
21920
21937
|
"member": "UrlInputInfo",
|
21921
21938
|
"name": "UrlInputInfo",
|
21939
|
+
"output_required": true,
|
21922
21940
|
"required": false,
|
21923
21941
|
"type": "object",
|
21924
21942
|
"value_allowed_null": true
|
@@ -21929,6 +21947,7 @@
|
|
21929
21947
|
"example": "NULL",
|
21930
21948
|
"member": "S3InputInfo",
|
21931
21949
|
"name": "S3InputInfo",
|
21950
|
+
"output_required": true,
|
21932
21951
|
"required": false,
|
21933
21952
|
"type": "object",
|
21934
21953
|
"value_allowed_null": true
|
@@ -27101,7 +27120,7 @@
|
|
27101
27120
|
{
|
27102
27121
|
"disabled": false,
|
27103
27122
|
"document": "质检项名称。质检项取值如下:\n<li>LowEvaluation:无参考打分</li>\n<li>Mosaic:马赛克检测</li>\n<li>CrashScreen:花屏检测</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>",
|
27104
|
-
"example": "
|
27123
|
+
"example": "Mosaic",
|
27105
27124
|
"member": "string",
|
27106
27125
|
"name": "Type",
|
27107
27126
|
"output_required": true,
|
@@ -27112,7 +27131,7 @@
|
|
27112
27131
|
{
|
27113
27132
|
"disabled": false,
|
27114
27133
|
"document": "能力配置开关,可选值:\n<li>ON:开启;</li>\n<li>OFF:关闭。</li>\n默认值:ON。\n注意:此字段可能返回 null,表示取不到有效值。",
|
27115
|
-
"example": "
|
27134
|
+
"example": "ON",
|
27116
27135
|
"member": "string",
|
27117
27136
|
"name": "Switch",
|
27118
27137
|
"output_required": false,
|
@@ -27145,7 +27164,7 @@
|
|
27145
27164
|
{
|
27146
27165
|
"disabled": false,
|
27147
27166
|
"document": "异常持续时间,单位:ms。\n注意:此字段可能返回 null,表示取不到有效值。",
|
27148
|
-
"example": "
|
27167
|
+
"example": "1000",
|
27149
27168
|
"member": "uint64",
|
27150
27169
|
"name": "Duration",
|
27151
27170
|
"output_required": false,
|
@@ -27156,7 +27175,7 @@
|
|
27156
27175
|
{
|
27157
27176
|
"disabled": false,
|
27158
27177
|
"document": "检测项对应的阈值,不同检测项对应阈值不同。\n注意:此字段可能返回 null,表示取不到有效值。",
|
27159
|
-
"example": "
|
27178
|
+
"example": "80",
|
27160
27179
|
"member": "string",
|
27161
27180
|
"name": "Threshold",
|
27162
27181
|
"output_required": false,
|
@@ -27199,7 +27218,7 @@
|
|
27199
27218
|
{
|
27200
27219
|
"disabled": false,
|
27201
27220
|
"document": "媒体质检模板唯一标识。",
|
27202
|
-
"example": "
|
27221
|
+
"example": "10",
|
27203
27222
|
"member": "int64",
|
27204
27223
|
"name": "Definition",
|
27205
27224
|
"output_required": true,
|
@@ -27209,7 +27228,7 @@
|
|
27209
27228
|
{
|
27210
27229
|
"disabled": false,
|
27211
27230
|
"document": "媒体质检模板名称。\n注意:此字段可能返回 null,表示取不到有效值。",
|
27212
|
-
"example": "
|
27231
|
+
"example": "test",
|
27213
27232
|
"member": "string",
|
27214
27233
|
"name": "Name",
|
27215
27234
|
"output_required": false,
|
@@ -27219,7 +27238,7 @@
|
|
27219
27238
|
{
|
27220
27239
|
"disabled": false,
|
27221
27240
|
"document": "模板描述信息。\n注意:此字段可能返回 null,表示取不到有效值。",
|
27222
|
-
"example": "
|
27241
|
+
"example": "my test media quality control template",
|
27223
27242
|
"member": "string",
|
27224
27243
|
"name": "Comment",
|
27225
27244
|
"output_required": false,
|
@@ -27229,7 +27248,7 @@
|
|
27229
27248
|
{
|
27230
27249
|
"disabled": false,
|
27231
27250
|
"document": "模板类型,取值:\n<li>Preset:系统预置模板;</li>\n<li>Custom:用户自定义模板。</li>\n注意:此字段可能返回 null,表示取不到有效值。",
|
27232
|
-
"example": "
|
27251
|
+
"example": "Custom",
|
27233
27252
|
"member": "string",
|
27234
27253
|
"name": "Type",
|
27235
27254
|
"output_required": false,
|
@@ -27249,7 +27268,7 @@
|
|
27249
27268
|
{
|
27250
27269
|
"disabled": false,
|
27251
27270
|
"document": "模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。\n注意:此字段可能返回 null,表示取不到有效值。",
|
27252
|
-
"example": "
|
27271
|
+
"example": "2021-02-03T04:05:06Z",
|
27253
27272
|
"member": "string",
|
27254
27273
|
"name": "CreateTime",
|
27255
27274
|
"output_required": false,
|
@@ -27259,7 +27278,7 @@
|
|
27259
27278
|
{
|
27260
27279
|
"disabled": false,
|
27261
27280
|
"document": "模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。\n注意:此字段可能返回 null,表示取不到有效值。",
|
27262
|
-
"example": "
|
27281
|
+
"example": "2022-02-03T04:05:06Z",
|
27263
27282
|
"member": "string",
|
27264
27283
|
"name": "UpdateTime",
|
27265
27284
|
"output_required": false,
|
@@ -30375,7 +30394,7 @@
|
|
30375
30394
|
{
|
30376
30395
|
"disabled": false,
|
30377
30396
|
"document": "要压制到视频中的字幕文件地址。\n注意:此字段可能返回 null,表示取不到有效值。",
|
30378
|
-
"example": "
|
30397
|
+
"example": "https://test-123xxxx456.cos.ap-nanjing.myqcloud.com/xxxxx/subtitle/1.srt",
|
30379
30398
|
"member": "string",
|
30380
30399
|
"name": "Path",
|
30381
30400
|
"output_required": false,
|
@@ -30385,8 +30404,8 @@
|
|
30385
30404
|
},
|
30386
30405
|
{
|
30387
30406
|
"disabled": false,
|
30388
|
-
"document": "
|
30389
|
-
"example": "
|
30407
|
+
"document": "指定要压制到视频中的字幕轨道,Path 和 StreamIndex 至少指定一个;如果指定了Path,则优先使用Path。\nStreamindex的取值须与源文件中的字幕轨索引一致。例如,源文件中的字幕轨为stream#0:3,则StreamIndex应为3,否则可能导致任务处理失败。\n\n\n注意:此字段可能返回 null,表示取不到有效值。",
|
30408
|
+
"example": "0",
|
30390
30409
|
"member": "int64",
|
30391
30410
|
"name": "StreamIndex",
|
30392
30411
|
"output_required": false,
|
@@ -30396,8 +30415,8 @@
|
|
30396
30415
|
},
|
30397
30416
|
{
|
30398
30417
|
"disabled": false,
|
30399
|
-
"document": "
|
30400
|
-
"example": "
|
30418
|
+
"document": "字体类型,支持:\n<li>hei.ttf:黑体</li>\n<li>song.ttf:宋体</li>\n<li>kai.ttf(推荐)或 simkai.ttf:楷体</li>\n<li>msyh.ttf:微软雅黑</li>\n<li>msyhbd.ttf:微软雅黑加粗</li>\n<li>hkjgt.ttf:华康金刚体</li>\n<li>dhttx.ttf:典黑体特细</li>\n<li>xqgdzt.ttf:喜鹊古字典体</li>\n<li>qpcyt.ttf:巧拼超圆体</li>\n<li>arial.ttf:仅支持英文</li>\n<li>dinalternate.ttf:DIN Alternate Bold</li>\n<li>helveticalt.ttf:Helvetica</li>\n<li>helveticains.ttf:Helvetica Inserat</li>\n<li>trajanpro.ttf:TrajanPro-Bold</li>\n<li>korean.ttf:韩语</li>\n<li>japanese.ttf:日语</li>\n<li>thai.ttf:泰语</li>\n默认:hei.ttf 黑体。\n注意:此字段可能返回 null,表示取不到有效值。",
|
30419
|
+
"example": "kai.ttf",
|
30401
30420
|
"member": "string",
|
30402
30421
|
"name": "FontType",
|
30403
30422
|
"output_required": false,
|
@@ -30407,8 +30426,8 @@
|
|
30407
30426
|
},
|
30408
30427
|
{
|
30409
30428
|
"disabled": false,
|
30410
|
-
"document": "字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。\n注意:此字段可能返回 null,表示取不到有效值。",
|
30411
|
-
"example": "
|
30429
|
+
"document": "字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。\n默认源视频高度的5%。\n注意:此字段可能返回 null,表示取不到有效值。",
|
30430
|
+
"example": "50px",
|
30412
30431
|
"member": "string",
|
30413
30432
|
"name": "FontSize",
|
30414
30433
|
"output_required": false,
|
@@ -30418,8 +30437,8 @@
|
|
30418
30437
|
},
|
30419
30438
|
{
|
30420
30439
|
"disabled": false,
|
30421
|
-
"document": "字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF
|
30422
|
-
"example": "
|
30440
|
+
"document": "字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。\n注意:此字段可能返回 null,表示取不到有效值。",
|
30441
|
+
"example": "0xFFFFFF",
|
30423
30442
|
"member": "string",
|
30424
30443
|
"name": "FontColor",
|
30425
30444
|
"output_required": false,
|
@@ -30437,6 +30456,72 @@
|
|
30437
30456
|
"required": false,
|
30438
30457
|
"type": "float",
|
30439
30458
|
"value_allowed_null": true
|
30459
|
+
},
|
30460
|
+
{
|
30461
|
+
"disabled": false,
|
30462
|
+
"document": "字幕y轴坐标位置,指定此参数会忽略字幕文件自带坐标;支持像素和百分比格式:\n\n- 像素:Npx,N范围:[0,4096]。\n- 百分百:N%,N范围:[0,100];例如10%表示字幕y坐标=10%*源视频高度。\n\n默认值:源视频高度*4%。\n注意:坐标轴原点在源视频中轴线底部,字幕基准点在字幕中轴线底部,参考下图:\n\n\n注意:此字段可能返回 null,表示取不到有效值。",
|
30463
|
+
"example": "4%",
|
30464
|
+
"member": "string",
|
30465
|
+
"name": "YPos",
|
30466
|
+
"output_required": false,
|
30467
|
+
"required": false,
|
30468
|
+
"type": "string",
|
30469
|
+
"value_allowed_null": true
|
30470
|
+
},
|
30471
|
+
{
|
30472
|
+
"disabled": false,
|
30473
|
+
"document": "字幕背景底板的y轴坐标位置;支持像素和百分比格式:\n\n- 像素:Npx,N范围:[0,4096]。\n- 百分百:N%,N范围:[0,100];例如10%表示字幕背景底板y坐标=10%*源视频高度。\n\n不传表示不开启字幕背景底板。\n注意:坐标轴原点位于源视频的中轴线底部,字幕背景底板的基准点在其中轴线底部,参考下图:\n\n\n注意:此字段可能返回 null,表示取不到有效值。",
|
30474
|
+
"example": "1%",
|
30475
|
+
"member": "string",
|
30476
|
+
"name": "BoardY",
|
30477
|
+
"output_required": false,
|
30478
|
+
"required": false,
|
30479
|
+
"type": "string",
|
30480
|
+
"value_allowed_null": true
|
30481
|
+
},
|
30482
|
+
{
|
30483
|
+
"disabled": false,
|
30484
|
+
"document": "底板的宽度,单位为像素,取值范围:[0,4096]。\n默认源视频宽像素的90%。\n\n注意:此字段可能返回 null,表示取不到有效值。",
|
30485
|
+
"example": "1920",
|
30486
|
+
"member": "int64",
|
30487
|
+
"name": "BoardWidth",
|
30488
|
+
"output_required": false,
|
30489
|
+
"required": false,
|
30490
|
+
"type": "int",
|
30491
|
+
"value_allowed_null": true
|
30492
|
+
},
|
30493
|
+
{
|
30494
|
+
"disabled": false,
|
30495
|
+
"document": "底板的高度。单位为像素,取值范围:[0,4096]。\n默认为源视频高像素的15%。\n注意:此字段可能返回 null,表示取不到有效值。",
|
30496
|
+
"example": "100",
|
30497
|
+
"member": "int64",
|
30498
|
+
"name": "BoardHeight",
|
30499
|
+
"output_required": false,
|
30500
|
+
"required": false,
|
30501
|
+
"type": "int",
|
30502
|
+
"value_allowed_null": true
|
30503
|
+
},
|
30504
|
+
{
|
30505
|
+
"disabled": false,
|
30506
|
+
"document": "底板颜色。格式:0xRRGGBB,\n默认值:0x000000(黑色)。\n注意:此字段可能返回 null,表示取不到有效值。",
|
30507
|
+
"example": "0x000000",
|
30508
|
+
"member": "string",
|
30509
|
+
"name": "BoardColor",
|
30510
|
+
"output_required": false,
|
30511
|
+
"required": false,
|
30512
|
+
"type": "string",
|
30513
|
+
"value_allowed_null": true
|
30514
|
+
},
|
30515
|
+
{
|
30516
|
+
"disabled": false,
|
30517
|
+
"document": "字幕背景板透明度,取值范围:[0, 1]\n<li>0:完全透明</li>\n<li>1:完全不透明</li>\n默认值:0.8。\n注意:此字段可能返回 null,表示取不到有效值。",
|
30518
|
+
"example": "0.8",
|
30519
|
+
"member": "float",
|
30520
|
+
"name": "BoardAlpha",
|
30521
|
+
"output_required": false,
|
30522
|
+
"required": false,
|
30523
|
+
"type": "float",
|
30524
|
+
"value_allowed_null": true
|
30440
30525
|
}
|
30441
30526
|
],
|
30442
30527
|
"usage": "both"
|
@@ -30732,6 +30817,7 @@
|
|
30732
30817
|
"example": "NULL",
|
30733
30818
|
"member": "string",
|
30734
30819
|
"name": "Type",
|
30820
|
+
"output_required": true,
|
30735
30821
|
"required": true,
|
30736
30822
|
"type": "string",
|
30737
30823
|
"value_allowed_null": false
|
@@ -30742,6 +30828,7 @@
|
|
30742
30828
|
"example": "NULL",
|
30743
30829
|
"member": "CosOutputStorage",
|
30744
30830
|
"name": "CosOutputStorage",
|
30831
|
+
"output_required": true,
|
30745
30832
|
"required": false,
|
30746
30833
|
"type": "object",
|
30747
30834
|
"value_allowed_null": true
|
@@ -30752,6 +30839,7 @@
|
|
30752
30839
|
"example": "NULL",
|
30753
30840
|
"member": "S3OutputStorage",
|
30754
30841
|
"name": "S3OutputStorage",
|
30842
|
+
"output_required": true,
|
30755
30843
|
"required": false,
|
30756
30844
|
"type": "object",
|
30757
30845
|
"value_allowed_null": true
|
@@ -32975,7 +33063,7 @@
|
|
32975
33063
|
},
|
32976
33064
|
{
|
32977
33065
|
"disabled": false,
|
32978
|
-
"document": "原点位置,可选值:\n<li>
|
33066
|
+
"document": "原点位置,可选值:\n<li>TopLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角;</li>\n<li>TopRight:表示坐标原点位于视频图像的右上角,水印原点为图片或文字的右上角;</li>\n<li>BottomLeft:表示坐标原点位于视频图像的左下角,水印原点为图片或文字的左下角;</li>\n<li>BottomRight:表示坐标原点位于视频图像的右下角,水印原点为图片或文字的右下角。</li>",
|
32979
33067
|
"example": "TopLeft",
|
32980
33068
|
"member": "string",
|
32981
33069
|
"name": "CoordinateOrigin",
|
@@ -1681,6 +1681,58 @@ def doDescribeInstance(args, parsed_globals):
|
|
1681
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1682
|
|
1683
1683
|
|
1684
|
+
def doDescribeMessageDetails(args, parsed_globals):
|
1685
|
+
g_param = parse_global_arg(parsed_globals)
|
1686
|
+
|
1687
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1688
|
+
cred = credential.CVMRoleCredential()
|
1689
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1690
|
+
cred = credential.STSAssumeRoleCredential(
|
1691
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1692
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1693
|
+
)
|
1694
|
+
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):
|
1695
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1696
|
+
else:
|
1697
|
+
cred = credential.Credential(
|
1698
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1699
|
+
)
|
1700
|
+
http_profile = HttpProfile(
|
1701
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1702
|
+
reqMethod="POST",
|
1703
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1704
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1705
|
+
)
|
1706
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1707
|
+
if g_param[OptionsDefine.Language]:
|
1708
|
+
profile.language = g_param[OptionsDefine.Language]
|
1709
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1710
|
+
client = mod.MqttClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1712
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
+
model = models.DescribeMessageDetailsRequest()
|
1714
|
+
model.from_json_string(json.dumps(args))
|
1715
|
+
start_time = time.time()
|
1716
|
+
while True:
|
1717
|
+
rsp = client.DescribeMessageDetails(model)
|
1718
|
+
result = rsp.to_json_string()
|
1719
|
+
try:
|
1720
|
+
json_obj = json.loads(result)
|
1721
|
+
except TypeError as e:
|
1722
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1723
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1724
|
+
break
|
1725
|
+
cur_time = time.time()
|
1726
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1727
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1728
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1729
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1730
|
+
else:
|
1731
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1732
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1733
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
|
+
|
1735
|
+
|
1684
1736
|
def doDeleteTopic(args, parsed_globals):
|
1685
1737
|
g_param = parse_global_arg(parsed_globals)
|
1686
1738
|
|
@@ -2816,6 +2868,7 @@ ACTION_MAP = {
|
|
2816
2868
|
"RevokedDeviceCertificate": doRevokedDeviceCertificate,
|
2817
2869
|
"DescribeSharedSubscriptionLag": doDescribeSharedSubscriptionLag,
|
2818
2870
|
"DescribeInstance": doDescribeInstance,
|
2871
|
+
"DescribeMessageDetails": doDescribeMessageDetails,
|
2819
2872
|
"DeleteTopic": doDeleteTopic,
|
2820
2873
|
"DeleteUser": doDeleteUser,
|
2821
2874
|
"DescribeCaCertificate": doDescribeCaCertificate,
|