tccli 3.0.1174.1__py2.py3-none-any.whl → 3.0.1176.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/batch/v20170312/api.json +1 -1
- tccli/services/ccc/v20200210/api.json +9 -9
- tccli/services/cdwdoris/cdwdoris_client.py +144 -144
- tccli/services/cdwdoris/v20211228/api.json +816 -1196
- tccli/services/cdwdoris/v20211228/examples.json +70 -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/dbbrain/v20210527/api.json +116 -1
- tccli/services/dbbrain/v20210527/examples.json +1 -1
- tccli/services/eb/v20210416/api.json +1 -0
- tccli/services/ecm/v20190719/api.json +8 -6
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/ess/v20201111/api.json +10 -0
- tccli/services/faceid/v20180301/api.json +20 -2
- tccli/services/faceid/v20180301/examples.json +7 -1
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/ims/v20201229/api.json +2 -2
- tccli/services/lke/v20231130/api.json +9 -0
- tccli/services/mps/v20190612/api.json +49 -29
- tccli/services/sqlserver/sqlserver_client.py +53 -0
- tccli/services/sqlserver/v20180328/api.json +108 -9
- tccli/services/sqlserver/v20180328/examples.json +8 -0
- tccli/services/tiia/tiia_client.py +4 -57
- tccli/services/tiia/v20190529/api.json +0 -296
- tccli/services/tiia/v20190529/examples.json +0 -8
- 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 +403 -5
- tccli/services/vod/v20180717/examples.json +31 -1
- tccli/services/vod/vod_client.py +171 -12
- tccli/services/vpc/v20170312/api.json +10 -1
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/RECORD +41 -41
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/license_files/LICENSE +0 -0
@@ -112,13 +112,6 @@
|
|
112
112
|
"output": "DetectProductResponse",
|
113
113
|
"status": "online"
|
114
114
|
},
|
115
|
-
"DetectProductBeta": {
|
116
|
-
"document": "产品不再维护,准备下线。\n\n商品识别-微信识物版,基于人工智能技术、海量训练图片、亿级商品库,可以实现全覆盖、细粒度、高准确率的商品识别和商品推荐功能。\n本服务可以识别出图片中的主体位置、主体商品类型,覆盖亿级SKU,输出具体商品的价格、型号等详细信息。\n客户无需自建商品库,即可快速实现商品识别、拍照搜商品等功能。\n>? \n- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。",
|
117
|
-
"input": "DetectProductBetaRequest",
|
118
|
-
"name": "商品识别-微信识物版",
|
119
|
-
"output": "DetectProductBetaResponse",
|
120
|
-
"status": "deprecated"
|
121
|
-
},
|
122
115
|
"DetectSecurity": {
|
123
116
|
"document": "安全属性识别可对图片中人体安全防护属性进行识别,支持识别安全帽,反光衣,护目镜,工服,手套,工地安全带,口罩,抽烟,玩手机等多种属性。\n\"被优选过滤\"标签值在人体优选开关开启时才会返回。\n\n|序号 | 标签名称 | 标签值 |\n| :-----| :---------- |:----------------- |\n| 1 | 安全帽识别<div style=\"width: 70pt\"> |无安全帽、有安全帽、被优选过滤|\n| 2 | 玩手机识别<div style=\"width: 70pt\"> |没有电话、打电话、玩手机、被优选过滤|\n| 3 | 抽烟识别<div style=\"width: 70pt\"> |没有抽烟、抽烟、被优选过滤\t|\n| 4 | 口罩识别<div style=\"width: 70pt\"> |无口罩、有口罩、口罩不确定、被优选过滤|\n| 5 | 工地安全带识别<div style=\"width: 70pt\"> |无工地安全带、工地安全带、被优选过滤\t|\n| 6 | 手套识别<div style=\"width: 70pt\"> |无手套、有手套、手套不确定、被优选过滤\t|\n| 7 | 工服识别<div style=\"width: 70pt\"> |无工服、有工服、被优选过滤|\n| 8 | 护目镜识别<div style=\"width: 70pt\"> |无护目镜、有护目镜、被优选过滤|\n| 9 | 反光衣识别<div style=\"width: 70pt\"> |无反光衣、有反光衣、被优选过滤|",
|
124
117
|
"input": "DetectSecurityRequest",
|
@@ -1729,81 +1722,6 @@
|
|
1729
1722
|
],
|
1730
1723
|
"type": "object"
|
1731
1724
|
},
|
1732
|
-
"DetectProductBetaRequest": {
|
1733
|
-
"document": "DetectProductBeta请求参数结构体",
|
1734
|
-
"members": [
|
1735
|
-
{
|
1736
|
-
"disabled": false,
|
1737
|
-
"document": "图片限制:内测版仅支持jpg、jpeg,图片大小不超过1M,分辨率在25万到100万之间。 \n建议先对图片进行压缩,以便提升处理速度。",
|
1738
|
-
"example": "https://test.jpg",
|
1739
|
-
"member": "string",
|
1740
|
-
"name": "ImageUrl",
|
1741
|
-
"required": false,
|
1742
|
-
"type": "string"
|
1743
|
-
},
|
1744
|
-
{
|
1745
|
-
"disabled": false,
|
1746
|
-
"document": "图片经过base64编码的内容。最大不超过1M,分辨率在25万到100万之间。 \n与ImageUrl同时存在时优先使用ImageUrl字段。",
|
1747
|
-
"example": "base64",
|
1748
|
-
"member": "string",
|
1749
|
-
"name": "ImageBase64",
|
1750
|
-
"required": false,
|
1751
|
-
"type": "string"
|
1752
|
-
},
|
1753
|
-
{
|
1754
|
-
"disabled": false,
|
1755
|
-
"document": "是否需要百科信息 1:是,0: 否,默认是0",
|
1756
|
-
"example": "1",
|
1757
|
-
"member": "int64",
|
1758
|
-
"name": "NeedLemma",
|
1759
|
-
"required": false,
|
1760
|
-
"type": "int"
|
1761
|
-
}
|
1762
|
-
],
|
1763
|
-
"type": "object"
|
1764
|
-
},
|
1765
|
-
"DetectProductBetaResponse": {
|
1766
|
-
"document": "DetectProductBeta返回参数结构体",
|
1767
|
-
"members": [
|
1768
|
-
{
|
1769
|
-
"disabled": false,
|
1770
|
-
"document": "检测到的图片中的商品位置和品类预测。 \n当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。 \n最多可以输出__3组__检测结果。",
|
1771
|
-
"example": "无",
|
1772
|
-
"member": "RegionDetected",
|
1773
|
-
"name": "RegionDetected",
|
1774
|
-
"required": true,
|
1775
|
-
"type": "list",
|
1776
|
-
"value_allowed_null": false
|
1777
|
-
},
|
1778
|
-
{
|
1779
|
-
"disabled": false,
|
1780
|
-
"document": "图像识别出的商品的详细信息。 \n当图像中检测到多个物品时,会对显著性最高的进行识别。",
|
1781
|
-
"example": "无",
|
1782
|
-
"member": "ProductInfo",
|
1783
|
-
"name": "ProductInfo",
|
1784
|
-
"required": true,
|
1785
|
-
"type": "object",
|
1786
|
-
"value_allowed_null": false
|
1787
|
-
},
|
1788
|
-
{
|
1789
|
-
"disabled": false,
|
1790
|
-
"document": "相似商品信息列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
1791
|
-
"example": "[]",
|
1792
|
-
"member": "ProductInfo",
|
1793
|
-
"name": "ProductInfoList",
|
1794
|
-
"required": true,
|
1795
|
-
"type": "list",
|
1796
|
-
"value_allowed_null": true
|
1797
|
-
},
|
1798
|
-
{
|
1799
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1800
|
-
"member": "string",
|
1801
|
-
"name": "RequestId",
|
1802
|
-
"type": "string"
|
1803
|
-
}
|
1804
|
-
],
|
1805
|
-
"type": "object"
|
1806
|
-
},
|
1807
1725
|
"DetectProductRequest": {
|
1808
1726
|
"document": "DetectProduct请求参数结构体",
|
1809
1727
|
"members": [
|
@@ -2183,88 +2101,6 @@
|
|
2183
2101
|
],
|
2184
2102
|
"usage": "out"
|
2185
2103
|
},
|
2186
|
-
"LemmaInfo": {
|
2187
|
-
"document": "百科词条信息",
|
2188
|
-
"members": [
|
2189
|
-
{
|
2190
|
-
"disabled": false,
|
2191
|
-
"document": "词条\n注意:此字段可能返回 null,表示取不到有效值。",
|
2192
|
-
"example": "string",
|
2193
|
-
"member": "string",
|
2194
|
-
"name": "LemmaTitle",
|
2195
|
-
"required": true,
|
2196
|
-
"type": "string",
|
2197
|
-
"value_allowed_null": true
|
2198
|
-
},
|
2199
|
-
{
|
2200
|
-
"disabled": false,
|
2201
|
-
"document": "词条描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
2202
|
-
"example": "string",
|
2203
|
-
"member": "string",
|
2204
|
-
"name": "LemmaAbstract",
|
2205
|
-
"required": true,
|
2206
|
-
"type": "string",
|
2207
|
-
"value_allowed_null": true
|
2208
|
-
},
|
2209
|
-
{
|
2210
|
-
"disabled": false,
|
2211
|
-
"document": "标签\n注意:此字段可能返回 null,表示取不到有效值。",
|
2212
|
-
"example": "string",
|
2213
|
-
"member": "string",
|
2214
|
-
"name": "Tag",
|
2215
|
-
"required": true,
|
2216
|
-
"type": "string",
|
2217
|
-
"value_allowed_null": true
|
2218
|
-
}
|
2219
|
-
],
|
2220
|
-
"usage": "out"
|
2221
|
-
},
|
2222
|
-
"Location": {
|
2223
|
-
"document": "检测到的主体在图片中的矩形框位置(四个顶点坐标)",
|
2224
|
-
"members": [
|
2225
|
-
{
|
2226
|
-
"disabled": false,
|
2227
|
-
"document": "位置矩形框的左上角横坐标",
|
2228
|
-
"example": "",
|
2229
|
-
"member": "int64",
|
2230
|
-
"name": "XMin",
|
2231
|
-
"required": true,
|
2232
|
-
"type": "int",
|
2233
|
-
"value_allowed_null": false
|
2234
|
-
},
|
2235
|
-
{
|
2236
|
-
"disabled": false,
|
2237
|
-
"document": "位置矩形框的左上角纵坐标",
|
2238
|
-
"example": "",
|
2239
|
-
"member": "int64",
|
2240
|
-
"name": "YMin",
|
2241
|
-
"required": true,
|
2242
|
-
"type": "int",
|
2243
|
-
"value_allowed_null": false
|
2244
|
-
},
|
2245
|
-
{
|
2246
|
-
"disabled": false,
|
2247
|
-
"document": "位置矩形框的右下角横坐标",
|
2248
|
-
"example": "",
|
2249
|
-
"member": "int64",
|
2250
|
-
"name": "XMax",
|
2251
|
-
"required": true,
|
2252
|
-
"type": "int",
|
2253
|
-
"value_allowed_null": false
|
2254
|
-
},
|
2255
|
-
{
|
2256
|
-
"disabled": false,
|
2257
|
-
"document": "位置矩形框的右下角纵坐标",
|
2258
|
-
"example": "",
|
2259
|
-
"member": "int64",
|
2260
|
-
"name": "YMax",
|
2261
|
-
"required": true,
|
2262
|
-
"type": "int",
|
2263
|
-
"value_allowed_null": false
|
2264
|
-
}
|
2265
|
-
],
|
2266
|
-
"usage": "out"
|
2267
|
-
},
|
2268
2104
|
"ObjectInfo": {
|
2269
2105
|
"document": "图像的主体信息。",
|
2270
2106
|
"members": [
|
@@ -2433,102 +2269,6 @@
|
|
2433
2269
|
],
|
2434
2270
|
"usage": "out"
|
2435
2271
|
},
|
2436
|
-
"ProductInfo": {
|
2437
|
-
"document": "图像识别出的商品的详细信息。 \n当图像中检测到多个物品时,会对显著性最高的物品进行识别。",
|
2438
|
-
"members": [
|
2439
|
-
{
|
2440
|
-
"disabled": false,
|
2441
|
-
"document": "1表示找到同款商品,以下字段为同款商品信息; \n0表示未找到同款商品, 具体商品信息为空(参考价格、名称、品牌等),仅提供商品类目和参考图片(商品库中找到的最相似图片,供参考)。 \n是否找到同款的判断依据为Score分值,分值越大则同款的可能性越大。",
|
2442
|
-
"example": "1",
|
2443
|
-
"member": "int64",
|
2444
|
-
"name": "FindSKU",
|
2445
|
-
"required": true,
|
2446
|
-
"type": "int",
|
2447
|
-
"value_allowed_null": false
|
2448
|
-
},
|
2449
|
-
{
|
2450
|
-
"disabled": false,
|
2451
|
-
"document": "本商品在图片中的坐标,表示为矩形框的四个顶点坐标。",
|
2452
|
-
"example": "{}",
|
2453
|
-
"member": "Location",
|
2454
|
-
"name": "Location",
|
2455
|
-
"required": true,
|
2456
|
-
"type": "object",
|
2457
|
-
"value_allowed_null": false
|
2458
|
-
},
|
2459
|
-
{
|
2460
|
-
"disabled": false,
|
2461
|
-
"document": "商品名称",
|
2462
|
-
"example": "string",
|
2463
|
-
"member": "string",
|
2464
|
-
"name": "Name",
|
2465
|
-
"required": true,
|
2466
|
-
"type": "string",
|
2467
|
-
"value_allowed_null": false
|
2468
|
-
},
|
2469
|
-
{
|
2470
|
-
"disabled": false,
|
2471
|
-
"document": "商品品牌",
|
2472
|
-
"example": "string",
|
2473
|
-
"member": "string",
|
2474
|
-
"name": "Brand",
|
2475
|
-
"required": true,
|
2476
|
-
"type": "string",
|
2477
|
-
"value_allowed_null": false
|
2478
|
-
},
|
2479
|
-
{
|
2480
|
-
"disabled": false,
|
2481
|
-
"document": "参考价格,综合多个信息源,仅供参考。",
|
2482
|
-
"example": "string",
|
2483
|
-
"member": "string",
|
2484
|
-
"name": "Price",
|
2485
|
-
"required": true,
|
2486
|
-
"type": "string",
|
2487
|
-
"value_allowed_null": false
|
2488
|
-
},
|
2489
|
-
{
|
2490
|
-
"disabled": false,
|
2491
|
-
"document": "识别结果的商品类目。 \n包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。 \n当类别为“非商品”时,除Location、Score和本字段之外的商品信息为空。",
|
2492
|
-
"example": "string",
|
2493
|
-
"member": "string",
|
2494
|
-
"name": "ProductCategory",
|
2495
|
-
"required": true,
|
2496
|
-
"type": "string",
|
2497
|
-
"value_allowed_null": false
|
2498
|
-
},
|
2499
|
-
{
|
2500
|
-
"disabled": false,
|
2501
|
-
"document": "输入图片中的主体物品和输出结果的相似度。分值越大,输出结果与输入图片是同款的可能性越高。",
|
2502
|
-
"example": "1",
|
2503
|
-
"member": "float",
|
2504
|
-
"name": "Score",
|
2505
|
-
"required": true,
|
2506
|
-
"type": "float",
|
2507
|
-
"value_allowed_null": false
|
2508
|
-
},
|
2509
|
-
{
|
2510
|
-
"disabled": false,
|
2511
|
-
"document": "搜索到的商品配图URL。",
|
2512
|
-
"example": "string",
|
2513
|
-
"member": "string",
|
2514
|
-
"name": "Image",
|
2515
|
-
"required": true,
|
2516
|
-
"type": "string",
|
2517
|
-
"value_allowed_null": false
|
2518
|
-
},
|
2519
|
-
{
|
2520
|
-
"disabled": false,
|
2521
|
-
"document": "百科词条列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
2522
|
-
"example": "[]",
|
2523
|
-
"member": "LemmaInfo",
|
2524
|
-
"name": "LemmaInfoList",
|
2525
|
-
"required": true,
|
2526
|
-
"type": "list",
|
2527
|
-
"value_allowed_null": true
|
2528
|
-
}
|
2529
|
-
],
|
2530
|
-
"usage": "out"
|
2531
|
-
},
|
2532
2272
|
"RecognizeCarProRequest": {
|
2533
2273
|
"document": "RecognizeCarPro请求参数结构体",
|
2534
2274
|
"members": [
|
@@ -2685,42 +2425,6 @@
|
|
2685
2425
|
],
|
2686
2426
|
"usage": "out"
|
2687
2427
|
},
|
2688
|
-
"RegionDetected": {
|
2689
|
-
"document": "检测到的图片中的商品位置和品类预测。 \n当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。 \n最多可以输出__3组__检测结果。",
|
2690
|
-
"members": [
|
2691
|
-
{
|
2692
|
-
"disabled": false,
|
2693
|
-
"document": "商品的品类预测结果。 \n包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。",
|
2694
|
-
"example": "",
|
2695
|
-
"member": "string",
|
2696
|
-
"name": "Category",
|
2697
|
-
"required": true,
|
2698
|
-
"type": "string",
|
2699
|
-
"value_allowed_null": false
|
2700
|
-
},
|
2701
|
-
{
|
2702
|
-
"disabled": false,
|
2703
|
-
"document": "商品品类预测的置信度",
|
2704
|
-
"example": "",
|
2705
|
-
"member": "float",
|
2706
|
-
"name": "CategoryScore",
|
2707
|
-
"required": true,
|
2708
|
-
"type": "float",
|
2709
|
-
"value_allowed_null": false
|
2710
|
-
},
|
2711
|
-
{
|
2712
|
-
"disabled": false,
|
2713
|
-
"document": "检测到的主体在图片中的坐标,表示为矩形框的四个顶点坐标",
|
2714
|
-
"example": "",
|
2715
|
-
"member": "Location",
|
2716
|
-
"name": "Location",
|
2717
|
-
"required": true,
|
2718
|
-
"type": "object",
|
2719
|
-
"value_allowed_null": false
|
2720
|
-
}
|
2721
|
-
],
|
2722
|
-
"usage": "out"
|
2723
|
-
},
|
2724
2428
|
"SearchImageRequest": {
|
2725
2429
|
"document": "SearchImage请求参数结构体",
|
2726
2430
|
"members": [
|
@@ -182,14 +182,6 @@
|
|
182
182
|
"title": "商品识别检测请求成功"
|
183
183
|
}
|
184
184
|
],
|
185
|
-
"DetectProductBeta": [
|
186
|
-
{
|
187
|
-
"document": "",
|
188
|
-
"input": "POST / HTTP/1.1\nHost: tiia.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DetectProductBeta\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://test.jpg\"\n}",
|
189
|
-
"output": "{\n \"Response\": {\n \"RegionDetected\": [\n {\n \"Category\": \"家电数码\",\n \"CategoryScore\": 0.894864857197,\n \"Location\": {\n \"XMin\": 175,\n \"YMin\": 12,\n \"XMax\": 401,\n \"YMax\": 376\n }\n }\n ],\n \"ProductInfo\": {\n \"FindSKU\": 1,\n \"Location\": {\n \"XMin\": 175,\n \"YMin\": 12,\n \"XMax\": 401,\n \"YMax\": 376\n },\n \"Name\": \"手机\",\n \"Brand\": \"iphone\",\n \"Price\": \"¥7299\",\n \"ProductCategory\": \"家电数码\",\n \"Score\": 0.544267654419,\n \"Image\": \"https://wxamusic.wx.qq.com/wxasr/getminipic/MAnWZ-KslXfAMK4k0dIDv4lfYZQsAPG8r4MKYPL3fI1yDgRjXI68eyE2krz6ku0j?media-id=MAnWZ-KslXfAMK4k0dIDv4lfYZQsAPG8r4MKYPL3fI1yDgRjXI68eyE2krz6ku0j&appid=wx91d27dbf599dff74\",\n \"LemmaInfoList\": []\n },\n \"ProductInfoList\": [\n {\n \"FindSKU\": 1,\n \"Location\": {\n \"XMin\": 175,\n \"YMin\": 12,\n \"XMax\": 401,\n \"YMax\": 376\n },\n \"Name\": \"手机\",\n \"Brand\": \"iphone\",\n \"Price\": \"¥7299\",\n \"ProductCategory\": \"家电数码\",\n \"Score\": 0.544267654419,\n \"Image\": \"https://wxamusic.wx.qq.com/wxasr/getminipic/MAnWZ-KslXfAMK4k0dIDv4lfYZQsAPG8r4MKYPL3fI1yDgRjXI68eyE2krz6ku0j?media-id=MAnWZ-KslXfAMK4k0dIDv4lfYZQsAPG8r4MKYPL3fI1yDgRjXI68eyE2krz6ku0j&appid=wx91d27dbf599dff74\",\n \"LemmaInfoList\": []\n }\n ],\n \"RequestId\": \"2054720d-0c93-4028-9843-8fb9114ce2e2\"\n }\n}",
|
190
|
-
"title": "商品识别-微信识物版接口调用成功"
|
191
|
-
}
|
192
|
-
],
|
193
185
|
"DetectSecurity": [
|
194
186
|
{
|
195
187
|
"document": "安全属性识别请求失败",
|
@@ -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"
|