tccli 3.0.1348.1__py2.py3-none-any.whl → 3.0.1349.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 +0 -76
- tccli/services/ai3d/v20250513/api.json +1 -1
- tccli/services/aiart/v20221229/api.json +3 -3
- tccli/services/autoscaling/v20180419/api.json +11 -0
- tccli/services/batch/v20170312/api.json +44 -0
- tccli/services/cdb/v20170320/api.json +8 -8
- tccli/services/cdb/v20170320/examples.json +1 -1
- tccli/services/cdn/v20180606/api.json +5 -5
- tccli/services/cdwdoris/v20211228/api.json +145 -7
- tccli/services/cfg/v20210820/api.json +20 -0
- tccli/services/cfs/v20190719/api.json +10 -10
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +272 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/csip/csip_client.py +833 -144
- tccli/services/csip/v20221121/api.json +3304 -1436
- tccli/services/csip/v20221121/examples.json +104 -0
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cwp/v20180228/api.json +9 -0
- tccli/services/cwp/v20180228/examples.json +6 -0
- tccli/services/emr/v20190103/api.json +217 -2
- tccli/services/es/v20250101/api.json +22 -0
- tccli/services/ess/v20201111/api.json +10 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/gs/v20191118/api.json +38 -0
- tccli/services/igtm/igtm_client.py +159 -0
- tccli/services/igtm/v20231024/api.json +577 -0
- tccli/services/igtm/v20231024/examples.json +24 -0
- tccli/services/iotexplorer/v20190423/api.json +3 -3
- tccli/services/lcic/lcic_client.py +53 -0
- tccli/services/lcic/v20220817/api.json +53 -0
- tccli/services/lcic/v20220817/examples.json +8 -0
- tccli/services/live/v20180801/api.json +203 -1
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/lke/v20231130/api.json +248 -2
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/mrs/v20200910/api.json +10 -0
- tccli/services/nlp/nlp_client.py +4 -322
- tccli/services/nlp/v20190408/api.json +0 -459
- tccli/services/nlp/v20190408/examples.json +0 -48
- tccli/services/ocr/v20181119/api.json +60 -5
- tccli/services/omics/v20221128/api.json +38 -0
- tccli/services/redis/v20180412/api.json +6 -6
- tccli/services/redis/v20180412/examples.json +1 -1
- tccli/services/ses/v20201002/api.json +100 -5
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcb/v20180608/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +19 -0
- tccli/services/teo/teo_client.py +281 -16
- tccli/services/teo/v20220901/api.json +611 -6
- tccli/services/teo/v20220901/examples.json +48 -2
- tccli/services/tione/v20211111/api.json +16 -0
- tccli/services/tke/tke_client.py +57 -4
- tccli/services/tke/v20180525/api.json +24 -24
- tccli/services/tke/v20220501/api.json +52 -0
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tmt/v20180321/api.json +4 -4
- tccli/services/tsf/v20180326/api.json +4 -4
- tccli/services/vclm/v20240523/api.json +3 -3
- tccli/services/vod/v20180717/api.json +5 -5
- tccli/services/vod/v20180717/examples.json +9 -9
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vrs/v20200824/api.json +1 -1
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/RECORD +70 -172
- tccli/services/cis/__init__.py +0 -4
- tccli/services/cis/cis_client.py +0 -525
- tccli/services/cis/v20180408/api.json +0 -737
- tccli/services/cis/v20180408/examples.json +0 -93
- tccli/services/dataintegration/__init__.py +0 -4
- tccli/services/dataintegration/dataintegration_client.py +0 -207
- tccli/services/dataintegration/v20220613/api.json +0 -87
- tccli/services/dataintegration/v20220613/examples.json +0 -13
- tccli/services/dtf/__init__.py +0 -4
- tccli/services/dtf/dtf_client.py +0 -207
- tccli/services/dtf/v20200506/api.json +0 -274
- tccli/services/dtf/v20200506/examples.json +0 -13
- tccli/services/gpm/__init__.py +0 -4
- tccli/services/gpm/gpm_client.py +0 -1108
- tccli/services/gpm/v20200820/api.json +0 -1959
- tccli/services/gpm/v20200820/examples.json +0 -149
- tccli/services/gse/__init__.py +0 -4
- tccli/services/gse/gse_client.py +0 -4076
- tccli/services/gse/v20191112/api.json +0 -7095
- tccli/services/gse/v20191112/examples.json +0 -615
- tccli/services/iecp/__init__.py +0 -4
- tccli/services/iecp/iecp_client.py +0 -4500
- tccli/services/iecp/v20210914/api.json +0 -9770
- tccli/services/iecp/v20210914/examples.json +0 -691
- tccli/services/iir/__init__.py +0 -4
- tccli/services/iir/iir_client.py +0 -207
- tccli/services/iir/v20200417/api.json +0 -204
- tccli/services/iir/v20200417/examples.json +0 -13
- tccli/services/iottid/__init__.py +0 -4
- tccli/services/iottid/iottid_client.py +0 -631
- tccli/services/iottid/v20190411/api.json +0 -553
- tccli/services/iottid/v20190411/examples.json +0 -95
- tccli/services/mgobe/__init__.py +0 -4
- tccli/services/mgobe/mgobe_client.py +0 -530
- tccli/services/mgobe/v20190929/api.json +0 -52
- tccli/services/mgobe/v20190929/examples.json +0 -13
- tccli/services/mgobe/v20201014/api.json +0 -671
- tccli/services/mgobe/v20201014/examples.json +0 -61
- tccli/services/mvj/__init__.py +0 -4
- tccli/services/mvj/mvj_client.py +0 -207
- tccli/services/mvj/v20190926/api.json +0 -123
- tccli/services/mvj/v20190926/examples.json +0 -19
- tccli/services/pds/__init__.py +0 -4
- tccli/services/pds/pds_client.py +0 -260
- tccli/services/pds/v20210701/api.json +0 -193
- tccli/services/pds/v20210701/examples.json +0 -21
- tccli/services/smpn/__init__.py +0 -4
- tccli/services/smpn/smpn_client.py +0 -260
- tccli/services/smpn/v20190822/api.json +0 -191
- tccli/services/smpn/v20190822/examples.json +0 -21
- tccli/services/solar/__init__.py +0 -4
- tccli/services/solar/solar_client.py +0 -1055
- tccli/services/solar/v20181011/api.json +0 -1760
- tccli/services/solar/v20181011/examples.json +0 -125
- tccli/services/tan/__init__.py +0 -4
- tccli/services/tan/tan_client.py +0 -207
- tccli/services/tan/v20220420/api.json +0 -65
- tccli/services/tan/v20220420/examples.json +0 -19
- tccli/services/tav/__init__.py +0 -4
- tccli/services/tav/tav_client.py +0 -366
- tccli/services/tav/v20190118/api.json +0 -262
- tccli/services/tav/v20190118/examples.json +0 -37
- tccli/services/tbm/__init__.py +0 -4
- tccli/services/tbm/tbm_client.py +0 -631
- tccli/services/tbm/v20180129/api.json +0 -1037
- tccli/services/tbm/v20180129/examples.json +0 -77
- tccli/services/tcex/__init__.py +0 -4
- tccli/services/tcex/tcex_client.py +0 -260
- tccli/services/tcex/v20200727/api.json +0 -158
- tccli/services/tcex/v20200727/examples.json +0 -21
- tccli/services/tci/__init__.py +0 -4
- tccli/services/tci/tci_client.py +0 -2327
- tccli/services/tci/v20190318/api.json +0 -4958
- tccli/services/tci/v20190318/examples.json +0 -333
- tccli/services/tic/__init__.py +0 -4
- tccli/services/tic/tic_client.py +0 -843
- tccli/services/tic/v20201117/api.json +0 -1067
- tccli/services/tic/v20201117/examples.json +0 -121
- tccli/services/ticm/__init__.py +0 -4
- tccli/services/ticm/ticm_client.py +0 -313
- tccli/services/ticm/v20181127/api.json +0 -1391
- tccli/services/ticm/v20181127/examples.json +0 -53
- tccli/services/tics/__init__.py +0 -4
- tccli/services/tics/tics_client.py +0 -366
- tccli/services/tics/v20181115/api.json +0 -694
- tccli/services/tics/v20181115/examples.json +0 -37
- tccli/services/tiems/__init__.py +0 -4
- tccli/services/tiems/tiems_client.py +0 -1479
- tccli/services/tiems/v20190416/api.json +0 -3144
- tccli/services/tiems/v20190416/examples.json +0 -217
- tccli/services/trdp/__init__.py +0 -4
- tccli/services/trdp/trdp_client.py +0 -207
- tccli/services/trdp/v20220726/api.json +0 -843
- tccli/services/trdp/v20220726/examples.json +0 -13
- tccli/services/ump/__init__.py +0 -4
- tccli/services/ump/ump_client.py +0 -1055
- tccli/services/ump/v20200918/api.json +0 -2168
- tccli/services/ump/v20200918/examples.json +0 -141
- tccli/services/youmall/__init__.py +0 -4
- tccli/services/youmall/v20180228/api.json +0 -3572
- tccli/services/youmall/v20180228/examples.json +0 -313
- tccli/services/youmall/youmall_client.py +0 -1797
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,77 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"actions": {
|
3
|
-
"DescribeBrandCommentCount": [
|
4
|
-
{
|
5
|
-
"document": "",
|
6
|
-
"input": "https://tbm.tencentcloudapi.com/?Action=DescribeBrandComments\r\n&BrandId=qijGLCi6bE0weVWgO7fjvfo4Wvo9kfzujw%3D%3D\r\n&StartDate=2018-01-02\r\n&EndDate=2018-01-04\r\n&<公共请求参数>",
|
7
|
-
"output": "{\r\n \"Response\": {\r\n \"CommentSet\": [\r\n {\r\n \"Date\": \"2018-01-02\",\r\n \"NegCommentCount\": 3,\r\n \"PosCommentCount\": 9\r\n },\r\n {\r\n \"Date\": \"2018-01-03\",\r\n \"NegCommentCount\": 1,\r\n \"PosCommentCount\": 5\r\n },\r\n {\r\n \"Date\": \"2018-01-04\",\r\n \"NegCommentCount\": 4,\r\n \"PosCommentCount\": 10\r\n }\r\n ],\r\n \"RequestId\": \"1362f83b-c845-490e-bc81-49ee6ff8159b\"\r\n }\r\n}",
|
8
|
-
"title": "查看品牌的用户好评/差评数"
|
9
|
-
}
|
10
|
-
],
|
11
|
-
"DescribeBrandExposure": [
|
12
|
-
{
|
13
|
-
"document": "",
|
14
|
-
"input": "https://tbm.tencentcloudapi.com/?Action=DescribeBrandExposure\r\n&BrandId=qijGLCi6bE0weVWgO7fjvfo4Wvo9kfzujw%3D%3D\r\n&StartDate=2018-01-24\r\n&EndDate=2018-02-01\r\n&<公共请求参数>",
|
15
|
-
"output": "{\r\n \"Response\": {\r\n \"DateCountSet\": [\r\n {\r\n \"Count\": 698,\r\n \"Date\": \"2018-01-24\"\r\n },\r\n {\r\n \"Count\": 3502,\r\n \"Date\": \"2018-01-25\"\r\n },\r\n {\r\n \"Count\": 10432,\r\n \"Date\": \"2018-01-26\"\r\n },\r\n {\r\n \"Count\": 183,\r\n \"Date\": \"2018-01-27\"\r\n },\r\n {\r\n \"Count\": 529,\r\n \"Date\": \"2018-01-28\"\r\n },\r\n {\r\n \"Count\": 139,\r\n \"Date\": \"2018-01-29\"\r\n },\r\n {\r\n \"Count\": 281,\r\n \"Date\": \"2018-01-30\"\r\n },\r\n {\r\n \"Count\": 3664,\r\n \"Date\": \"2018-01-31\"\r\n },\r\n {\r\n \"Count\": 727,\r\n \"Date\": \"2018-02-01\"\r\n }\r\n ],\r\n \"RequestId\": \"49589f39-66e4-4b04-82a5-8267da8c8e14\",\r\n \"TotalCount\": 20155\r\n }\r\n}",
|
16
|
-
"title": "获取品牌的总热度值"
|
17
|
-
}
|
18
|
-
],
|
19
|
-
"DescribeBrandMediaReport": [
|
20
|
-
{
|
21
|
-
"document": "",
|
22
|
-
"input": "https://tbm.tencentcloudapi.com/?Action=DescribeBrandMediaReport\r\n&BrandId=qijGLCi6bE0weVWgO7fjvfo4Wvo9kfzujw%3D%3D\r\n&StartDate=2018-01-24\r\n&EndDate=2018-02-01\r\n&<公共请求参数>",
|
23
|
-
"output": "{\r\n \"Response\": {\r\n \"DateCountSet\": [\r\n {\r\n \"Count\": 600,\r\n \"Date\": \"2018-01-24\"\r\n },\r\n {\r\n \"Count\": 3231,\r\n \"Date\": \"2018-01-25\"\r\n },\r\n {\r\n \"Count\": 10030,\r\n \"Date\": \"2018-01-26\"\r\n },\r\n {\r\n \"Count\": 32,\r\n \"Date\": \"2018-01-27\"\r\n },\r\n {\r\n \"Count\": 48,\r\n \"Date\": \"2018-01-28\"\r\n },\r\n {\r\n \"Count\": 17,\r\n \"Date\": \"2018-01-29\"\r\n },\r\n {\r\n \"Count\": 75,\r\n \"Date\": \"2018-01-30\"\r\n },\r\n {\r\n \"Count\": 3195,\r\n \"Date\": \"2018-01-31\"\r\n },\r\n {\r\n \"Count\": 694,\r\n \"Date\": \"2018-02-01\"\r\n }\r\n ],\r\n \"RequestId\": \"b8edf4f1-5d24-493c-b51b-95ff681b218f\",\r\n \"TotalCount\": 17922\r\n }\r\n}",
|
24
|
-
"title": "查看品牌资讯报道数量"
|
25
|
-
}
|
26
|
-
],
|
27
|
-
"DescribeBrandNegComments": [
|
28
|
-
{
|
29
|
-
"document": "",
|
30
|
-
"input": "https://tbm.tencentcloudapi.com/?Action=DescribeBrandNegCommentList\r\n&BrandId=qijGLCi6bE0weVWgO7fjvfo4Wvo9kfzujw%3D%3D\r\n&StartDate=2018-02-21\r\n&EndDate=2018-02-22\r\n&Limit=10\r\n&Offset=0\r\n&<公共请求参数>",
|
31
|
-
"output": "{\r\n \"Response\": {\r\n \"BrandCommentSet\": [\r\n {\r\n \"Comment\": \"不会吧,这也行吗\",\r\n \"Date\": \"2018-02-22 00:00:00\"\r\n },\r\n {\r\n \"Comment\": \"不喜欢\",\r\n \"Date\": \"2018-02-22 00:00:00\"\r\n },\r\n {\r\n \"Comment\": \"太不安全了,简直无视用户\",\r\n \"Date\": \"2018-02-21 00:00:00\"\r\n }\r\n ],\r\n \"RequestId\": \"8fdd4c33-600c-4ec7-be16-c2cd4f6d4121\",\r\n \"TotalComments\": 6\r\n }\r\n}",
|
32
|
-
"title": "查看品牌的用户差评观点列表"
|
33
|
-
}
|
34
|
-
],
|
35
|
-
"DescribeBrandPosComments": [
|
36
|
-
{
|
37
|
-
"document": "",
|
38
|
-
"input": "https://tbm.tencentcloudapi.com/?Action=DescribeBrandPosCommentList\r\n&BrandId=qijGLCi6bE0weVWgO7fjvfo4Wvo9kfzujw%3D%3D\r\n&StartDate=2018-01-02\r\n&EndDate=2018-01-04\r\n&Limit=10\r\n&Offset=0\r\n&<公共请求参数>",
|
39
|
-
"output": "{\r\n \"Response\": {\r\n \"BrandCommentSet\": [\r\n {\r\n \"Comment\": \"还行,质量过关\",\r\n \"Date\": \"2018-01-04 00:00:00\"\r\n }, \r\n {\r\n \"Comment\": \"一般吧,下次做更好\",\r\n \"Date\": \"2018-01-04 00:00:00\"\r\n },\r\n {\r\n \"Comment\": \"比我之前买的厚实很多\",\r\n \"Date\": \"2018-01-04 00:00:00\"\r\n },\r\n {\r\n \"Comment\": \"不错不错\",\r\n \"Date\": \"2018-01-04 00:00:00\"\r\n }\r\n ],\r\n \"RequestId\": \"578794b0-127a-4dac-9044-0ba0ef026b15\",\r\n \"TotalComments\": 25\r\n }\r\n}",
|
40
|
-
"title": "查看品牌的用户好评观点列表"
|
41
|
-
}
|
42
|
-
],
|
43
|
-
"DescribeBrandSocialOpinion": [
|
44
|
-
{
|
45
|
-
"document": "",
|
46
|
-
"input": "https://tbm.tencentcloudapi.com/?Action=DescribeBrandSocialOpinion\r\n&BrandId=qijGLCi6bE0weVWgO7fjvfo4Wvo9kfzujw%3D%3D\r\n&StartDate=2018-02-01\r\n&EndDate=2018-02-10\r\n&Offset=0\r\n&Limit=1\r\n&<公共请求参数>",
|
47
|
-
"output": "{\r\n \"Response\": {\r\n \"ArticleCount\": 31,\r\n \"FromCount\": 1,\r\n \"AdverseCount\": 2,\r\n \"ArticleSet\": [\r\n {\r\n \"FromSite\": \"\",\r\n \"PubTime\": \"2018-02-10 13:00:00\",\r\n \"Title\": \"test\",\r\n \"Url\": \"\",\r\n \"ArticleId\": \"qijGLCi6bE0weVWgO7fjvfo4Wvo9kfzujwoo\",\r\n \"Flag\": 0,\r\n \"Hot\": 1,\r\n \"Level\": 2,\r\n \"Abstract\": \"摘要\"\r\n }\r\n ],\r\n \"RequestId\": \"aaf3c86d-c143-4476-af5b-4d89ebc0f410\"\r\n }\r\n}",
|
48
|
-
"title": "查看品牌用户观点列表"
|
49
|
-
}
|
50
|
-
],
|
51
|
-
"DescribeBrandSocialReport": [
|
52
|
-
{
|
53
|
-
"document": "",
|
54
|
-
"input": "https://tbm.tencentcloudapi.com/?Action=DescribeBrandSocialReport\r\n&BrandId=qijGLCi6bE0weVWgO7fjvfo4Wvo9kfzujw%3D%3D\r\n&StartDate=2018-01-24\r\n&EndDate=2018-02-01\r\n&<公共请求参数>",
|
55
|
-
"output": "{\r\n \"Response\": {\r\n \"DateCountSet\": [\r\n {\r\n \"Count\": 98,\r\n \"Date\": \"2018-01-24\"\r\n },\r\n {\r\n \"Count\": 271,\r\n \"Date\": \"2018-01-25\"\r\n },\r\n {\r\n \"Count\": 402,\r\n \"Date\": \"2018-01-26\"\r\n },\r\n {\r\n \"Count\": 151,\r\n \"Date\": \"2018-01-27\"\r\n },\r\n {\r\n \"Count\": 481,\r\n \"Date\": \"2018-01-28\"\r\n },\r\n {\r\n \"Count\": 122,\r\n \"Date\": \"2018-01-29\"\r\n },\r\n {\r\n \"Count\": 206,\r\n \"Date\": \"2018-01-30\"\r\n },\r\n {\r\n \"Count\": 469,\r\n \"Date\": \"2018-01-31\"\r\n },\r\n {\r\n \"Count\": 33,\r\n \"Date\": \"2018-02-01\"\r\n }\r\n ],\r\n \"RequestId\": \"6574337a-ac0a-4f5f-8b03-a6a3b8281040\",\r\n \"TotalCount\": 2233\r\n }\r\n}",
|
56
|
-
"title": "获取品牌在社交媒体上被报道的统计次数"
|
57
|
-
}
|
58
|
-
],
|
59
|
-
"DescribeIndustryNews": [
|
60
|
-
{
|
61
|
-
"document": "",
|
62
|
-
"input": "https://tbm.tencentcloudapi.com/?Action=DescribeIndustryNews\r\n&IndustryId=qijGLCi6bE0weVWrJ7L4qgm5nxET0u0Y9XwF\r\n&StartDate=2018-02-1\r\n&EndDate=2018-02-10\r\n&Offset=1\r\n&Limit=1\r\n&<公共请求参数>",
|
63
|
-
"output": "{\r\n \"Response\": {\r\n \"NewsCount\": 152,\r\n \"FromCount\": 1,\r\n \"AdverseCount\": 2,\r\n \"DateCountSet\": [\r\n {\r\n \"Count\": 3,\r\n \"Date\": \"2018-07-07\"\r\n },\r\n {\r\n \"Count\": 0,\r\n \"Date\": \"2018-07-08\"\r\n },\r\n {\r\n \"Count\": 0,\r\n \"Date\": \"2018-07-09\"\r\n },\r\n {\r\n \"Count\": 2,\r\n \"Date\": \"2018-07-10\"\r\n }\r\n ],\r\n \"NewsSet\": [\r\n {\r\n \"FromSite\": \"且逛\",\r\n \"PubTime\": \"2018-02-09 10:32:07\",\r\n \"Title\": \"三张图带你看懂 腾讯新零售生态的布局\",\r\n \"Url\": \"http://mp.weixin.qq.com/s?__biz=MzI1MzczMDQzNg==&mid=2247483907&idx=1&sn=91deced0aff67a2143bc3cbccbfae0a6&chksm=e9d149e8dea6c0fe661426638396a05fb7fc5c8adf5cac07157f93e31d2613483b196ddd754d#rd\",\r\n \"Hot\": 1,\r\n \"Level\": 2,\r\n \"Flag\": 0,\r\n \"Abstract\": \"摘要\"\r\n }\r\n ],\r\n \"RequestId\": \"02363e3b-b048-40df-aaeb-8ec0f449e525\"\r\n }\r\n}",
|
64
|
-
"title": "获得定制的行业相关报道"
|
65
|
-
}
|
66
|
-
],
|
67
|
-
"DescribeUserPortrait": [
|
68
|
-
{
|
69
|
-
"document": "",
|
70
|
-
"input": "https://tbm.tencentcloudapi.com/?Action=DescribeUserPortrait\r\n&BrandId=qijGLCi6bE0weVWgO7fjvfo4Wvo9kfzujw%3D%3D\r\n&<公共请求参数>",
|
71
|
-
"output": "{\r\n \"Response\": {\r\n \"Age\": {\r\n \"PortraitSet\": [\r\n {\r\n \"AgeRange\": \"0~18\",\r\n \"Percent\": 10.98\r\n },\r\n {\r\n \"AgeRange\": \"19~29\",\r\n \"Percent\": 50.77\r\n },\r\n {\r\n \"AgeRange\": \"30~39\",\r\n \"Percent\": 28.42\r\n },\r\n {\r\n \"AgeRange\": \"40~49\",\r\n \"Percent\": 7.1\r\n },\r\n {\r\n \"AgeRange\": \"50~69\",\r\n \"Percent\": 2.45\r\n },\r\n {\r\n \"AgeRange\": \"70+\",\r\n \"Percent\": 0.28\r\n }\r\n ]\r\n },\r\n \"Gender\": {\r\n \"PortraitSet\": [\r\n {\r\n \"Gender\": \"male\",\r\n \"Percent\": 60\r\n },\r\n {\r\n \"Gender\": \"female\",\r\n \"Percent\": 40\r\n }\r\n ]\r\n },\r\n \"Province\": {\r\n \"PortraitSet\": [\r\n {\r\n \"Percent\": 0.93,\r\n \"Province\": \"天津\"\r\n },\r\n {\r\n \"Percent\": 1.6,\r\n \"Province\": \"山西\"\r\n },\r\n {\r\n \"Percent\": 12.86,\r\n \"Province\": \"福建\"\r\n },\r\n {\r\n \"Percent\": 1.47,\r\n \"Province\": \"甘肃\"\r\n },\r\n {\r\n \"Percent\": 0.17,\r\n \"Province\": \"青海\"\r\n },\r\n {\r\n \"Percent\": 3.75,\r\n \"Province\": \"北京\"\r\n },\r\n {\r\n \"Percent\": 3.08,\r\n \"Province\": \"浙江\"\r\n },\r\n {\r\n \"Percent\": 11.12,\r\n \"Province\": \"广东\"\r\n },\r\n {\r\n \"Percent\": 1.47,\r\n \"Province\": \"黑龙江\"\r\n },\r\n {\r\n \"Percent\": 8.44,\r\n \"Province\": \"四川\"\r\n },\r\n {\r\n \"Percent\": 2.14,\r\n \"Province\": \"安徽\"\r\n },\r\n {\r\n \"Percent\": 1.34,\r\n \"Province\": \"新疆\"\r\n },\r\n {\r\n \"Percent\": 5.09,\r\n \"Province\": \"河南\"\r\n },\r\n {\r\n \"Percent\": 2.68,\r\n \"Province\": \"上海\"\r\n },\r\n {\r\n \"Percent\": 2.81,\r\n \"Province\": \"湖南\"\r\n },\r\n {\r\n \"Percent\": 0.53,\r\n \"Province\": \"贵州\"\r\n },\r\n {\r\n \"Percent\": 0.13,\r\n \"Province\": \"澳门\"\r\n },\r\n {\r\n \"Percent\": 0.8,\r\n \"Province\": \"吉林\"\r\n },\r\n {\r\n \"Percent\": 0.53,\r\n \"Province\": \"宁夏\"\r\n },\r\n {\r\n \"Percent\": 2.68,\r\n \"Province\": \"陕西\"\r\n },\r\n {\r\n \"Percent\": 7.23,\r\n \"Province\": \"重庆\"\r\n },\r\n {\r\n \"Percent\": 1.6,\r\n \"Province\": \"江西\"\r\n },\r\n {\r\n \"Percent\": 0.26,\r\n \"Province\": \"台湾\"\r\n },\r\n {\r\n \"Percent\": 0.26,\r\n \"Province\": \"香港\"\r\n },\r\n {\r\n \"Percent\": 0.53,\r\n \"Province\": \"海南\"\r\n },\r\n {\r\n \"Percent\": 2.27,\r\n \"Province\": \"辽宁\"\r\n },\r\n {\r\n \"Percent\": 0.93,\r\n \"Province\": \"内蒙古\"\r\n },\r\n {\r\n \"Percent\": 3.61,\r\n \"Province\": \"河北\"\r\n },\r\n {\r\n \"Percent\": 0,\r\n \"Province\": \"西藏\"\r\n },\r\n {\r\n \"Percent\": 2.81,\r\n \"Province\": \"湖北\"\r\n },\r\n {\r\n \"Percent\": 6.97,\r\n \"Province\": \"山东\"\r\n },\r\n {\r\n \"Percent\": 6.56,\r\n \"Province\": \"江苏\"\r\n },\r\n {\r\n \"Percent\": 1.34,\r\n \"Province\": \"云南\"\r\n },\r\n {\r\n \"Percent\": 2.01,\r\n \"Province\": \"广西\"\r\n }\r\n ]\r\n },\r\n \"Movie\": {\r\n \"PortraitSet\": [\r\n {\r\n \"Name\": \"最好的我们\",\r\n \"Percent\": 2.77\r\n },\r\n {\r\n \"Name\": \"快乐大本营\",\r\n \"Percent\": 2.42\r\n },\r\n {\r\n \"Name\": \"我的奇妙男友\",\r\n \"Percent\": 2.51\r\n }\r\n ]\r\n },\r\n \"Star\": {\r\n \"PortraitSet\": [\r\n {\r\n \"Name\": \"林正英\",\r\n \"Percent\": 2.77\r\n },\r\n {\r\n \"Name\": \"邓紫棋\",\r\n \"Percent\": 2.42\r\n },\r\n {\r\n \"Name\": \"成龙\",\r\n \"Percent\": 2.51\r\n }\r\n ]\r\n },\r\n \"RequestId\": \"53240088-ccd6-4e4a-a7c5-c5a256806894\"\r\n }\r\n}",
|
72
|
-
"title": "查看品牌的用户画像结果"
|
73
|
-
}
|
74
|
-
]
|
75
|
-
},
|
76
|
-
"version": "1.0"
|
77
|
-
}
|
tccli/services/tcex/__init__.py
DELETED
@@ -1,260 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
import os
|
3
|
-
import sys
|
4
|
-
import six
|
5
|
-
import json
|
6
|
-
import tccli.options_define as OptionsDefine
|
7
|
-
import tccli.format_output as FormatOutput
|
8
|
-
from tccli import __version__
|
9
|
-
from tccli.utils import Utils
|
10
|
-
from tccli.exceptions import ConfigurationError, ClientError, ParamError
|
11
|
-
from tencentcloud.common import credential
|
12
|
-
from tencentcloud.common.profile.http_profile import HttpProfile
|
13
|
-
from tencentcloud.common.profile.client_profile import ClientProfile
|
14
|
-
from tencentcloud.tcex.v20200727 import tcex_client as tcex_client_v20200727
|
15
|
-
from tencentcloud.tcex.v20200727 import models as models_v20200727
|
16
|
-
|
17
|
-
from jmespath import search
|
18
|
-
import time
|
19
|
-
|
20
|
-
def doDescribeInvocationResult(args, parsed_globals):
|
21
|
-
g_param = parse_global_arg(parsed_globals)
|
22
|
-
|
23
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
24
|
-
cred = credential.CVMRoleCredential()
|
25
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
|
-
cred = credential.STSAssumeRoleCredential(
|
27
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
|
-
)
|
30
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
31
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
32
|
-
else:
|
33
|
-
cred = credential.Credential(
|
34
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
35
|
-
)
|
36
|
-
http_profile = HttpProfile(
|
37
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
38
|
-
reqMethod="POST",
|
39
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
40
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
41
|
-
)
|
42
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
43
|
-
if g_param[OptionsDefine.Language]:
|
44
|
-
profile.language = g_param[OptionsDefine.Language]
|
45
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
46
|
-
client = mod.TcexClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
-
model = models.DescribeInvocationResultRequest()
|
50
|
-
model.from_json_string(json.dumps(args))
|
51
|
-
start_time = time.time()
|
52
|
-
while True:
|
53
|
-
rsp = client.DescribeInvocationResult(model)
|
54
|
-
result = rsp.to_json_string()
|
55
|
-
try:
|
56
|
-
json_obj = json.loads(result)
|
57
|
-
except TypeError as e:
|
58
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
59
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
60
|
-
break
|
61
|
-
cur_time = time.time()
|
62
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
63
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
64
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
65
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
66
|
-
else:
|
67
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
68
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
69
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
|
-
|
71
|
-
|
72
|
-
def doInvokeService(args, parsed_globals):
|
73
|
-
g_param = parse_global_arg(parsed_globals)
|
74
|
-
|
75
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
76
|
-
cred = credential.CVMRoleCredential()
|
77
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
78
|
-
cred = credential.STSAssumeRoleCredential(
|
79
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
80
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
81
|
-
)
|
82
|
-
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):
|
83
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
84
|
-
else:
|
85
|
-
cred = credential.Credential(
|
86
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
87
|
-
)
|
88
|
-
http_profile = HttpProfile(
|
89
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
90
|
-
reqMethod="POST",
|
91
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
92
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
93
|
-
)
|
94
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
95
|
-
if g_param[OptionsDefine.Language]:
|
96
|
-
profile.language = g_param[OptionsDefine.Language]
|
97
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
98
|
-
client = mod.TcexClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
-
model = models.InvokeServiceRequest()
|
102
|
-
model.from_json_string(json.dumps(args))
|
103
|
-
start_time = time.time()
|
104
|
-
while True:
|
105
|
-
rsp = client.InvokeService(model)
|
106
|
-
result = rsp.to_json_string()
|
107
|
-
try:
|
108
|
-
json_obj = json.loads(result)
|
109
|
-
except TypeError as e:
|
110
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
111
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
112
|
-
break
|
113
|
-
cur_time = time.time()
|
114
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
115
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
116
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
117
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
118
|
-
else:
|
119
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
120
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
121
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
|
-
|
123
|
-
|
124
|
-
CLIENT_MAP = {
|
125
|
-
"v20200727": tcex_client_v20200727,
|
126
|
-
|
127
|
-
}
|
128
|
-
|
129
|
-
MODELS_MAP = {
|
130
|
-
"v20200727": models_v20200727,
|
131
|
-
|
132
|
-
}
|
133
|
-
|
134
|
-
ACTION_MAP = {
|
135
|
-
"DescribeInvocationResult": doDescribeInvocationResult,
|
136
|
-
"InvokeService": doInvokeService,
|
137
|
-
|
138
|
-
}
|
139
|
-
|
140
|
-
AVAILABLE_VERSION_LIST = [
|
141
|
-
"v20200727",
|
142
|
-
|
143
|
-
]
|
144
|
-
|
145
|
-
|
146
|
-
def action_caller():
|
147
|
-
return ACTION_MAP
|
148
|
-
|
149
|
-
|
150
|
-
def parse_global_arg(parsed_globals):
|
151
|
-
g_param = parsed_globals
|
152
|
-
cvm_role_flag = True
|
153
|
-
for param in parsed_globals.keys():
|
154
|
-
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
155
|
-
OptionsDefine.RoleSessionName]:
|
156
|
-
if parsed_globals[param] is not None:
|
157
|
-
cvm_role_flag = False
|
158
|
-
break
|
159
|
-
is_exist_profile = True
|
160
|
-
if not parsed_globals["profile"]:
|
161
|
-
is_exist_profile = False
|
162
|
-
g_param["profile"] = os.environ.get("TCCLI_PROFILE", "default")
|
163
|
-
|
164
|
-
configure_path = os.path.join(os.path.expanduser("~"), ".tccli")
|
165
|
-
is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure")
|
166
|
-
is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential")
|
167
|
-
|
168
|
-
conf = {}
|
169
|
-
cred = {}
|
170
|
-
|
171
|
-
if is_conf_exist:
|
172
|
-
conf = Utils.load_json_msg(conf_path)
|
173
|
-
if is_cred_exist:
|
174
|
-
cred = Utils.load_json_msg(cred_path)
|
175
|
-
|
176
|
-
if not (isinstance(conf, dict) and isinstance(cred, dict)):
|
177
|
-
raise ConfigurationError(
|
178
|
-
"file: %s or %s is not json format"
|
179
|
-
% (g_param["profile"] + ".configure", g_param["profile"] + ".credential"))
|
180
|
-
|
181
|
-
if OptionsDefine.Token not in cred:
|
182
|
-
cred[OptionsDefine.Token] = None
|
183
|
-
|
184
|
-
if not is_exist_profile:
|
185
|
-
if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY):
|
186
|
-
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
187
|
-
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
188
|
-
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
189
|
-
cvm_role_flag = False
|
190
|
-
|
191
|
-
if os.environ.get(OptionsDefine.ENV_REGION):
|
192
|
-
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
193
|
-
|
194
|
-
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
195
|
-
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
196
|
-
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
197
|
-
cvm_role_flag = False
|
198
|
-
|
199
|
-
if cvm_role_flag:
|
200
|
-
if "type" in cred and cred["type"] == "cvm-role":
|
201
|
-
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
202
|
-
|
203
|
-
for param in g_param.keys():
|
204
|
-
if g_param[param] is None:
|
205
|
-
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]:
|
206
|
-
if param in cred:
|
207
|
-
g_param[param] = cred[param]
|
208
|
-
elif not (g_param[OptionsDefine.UseCVMRole.replace('-', '_')]
|
209
|
-
or os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN)):
|
210
|
-
raise ConfigurationError("%s is invalid" % param)
|
211
|
-
elif param in [OptionsDefine.Region, OptionsDefine.Output, OptionsDefine.Language]:
|
212
|
-
if param in conf[OptionsDefine.SysParam]:
|
213
|
-
g_param[param] = conf[OptionsDefine.SysParam][param]
|
214
|
-
elif param != OptionsDefine.Language:
|
215
|
-
raise ConfigurationError("%s is invalid" % param)
|
216
|
-
elif param.replace('_', '-') in [OptionsDefine.RoleArn, OptionsDefine.RoleSessionName]:
|
217
|
-
if param.replace('_', '-') in cred:
|
218
|
-
g_param[param] = cred[param.replace('_', '-')]
|
219
|
-
|
220
|
-
try:
|
221
|
-
if g_param[OptionsDefine.ServiceVersion]:
|
222
|
-
g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '')
|
223
|
-
else:
|
224
|
-
version = conf["tcex"][OptionsDefine.Version]
|
225
|
-
g_param[OptionsDefine.Version] = "v" + version.replace('-', '')
|
226
|
-
|
227
|
-
if g_param[OptionsDefine.Endpoint] is None:
|
228
|
-
g_param[OptionsDefine.Endpoint] = conf["tcex"][OptionsDefine.Endpoint]
|
229
|
-
g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
|
230
|
-
except Exception as err:
|
231
|
-
raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
|
232
|
-
|
233
|
-
if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST:
|
234
|
-
raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
|
235
|
-
|
236
|
-
if g_param[OptionsDefine.Waiter]:
|
237
|
-
param = eval(g_param[OptionsDefine.Waiter])
|
238
|
-
if 'expr' not in param:
|
239
|
-
raise Exception('`expr` in `--waiter` must be defined')
|
240
|
-
if 'to' not in param:
|
241
|
-
raise Exception('`to` in `--waiter` must be defined')
|
242
|
-
if 'timeout' not in param:
|
243
|
-
if 'waiter' in conf and 'timeout' in conf['waiter']:
|
244
|
-
param['timeout'] = conf['waiter']['timeout']
|
245
|
-
else:
|
246
|
-
param['timeout'] = 180
|
247
|
-
if 'interval' not in param:
|
248
|
-
if 'waiter' in conf and 'interval' in conf['waiter']:
|
249
|
-
param['interval'] = conf['waiter']['interval']
|
250
|
-
else:
|
251
|
-
param['interval'] = 5
|
252
|
-
param['interval'] = min(param['interval'], param['timeout'])
|
253
|
-
g_param['OptionsDefine.WaiterInfo'] = param
|
254
|
-
|
255
|
-
if six.PY2:
|
256
|
-
for key, value in g_param.items():
|
257
|
-
if isinstance(value, six.text_type):
|
258
|
-
g_param[key] = value.encode('utf-8')
|
259
|
-
return g_param
|
260
|
-
|
@@ -1,158 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"actions": {
|
3
|
-
"DescribeInvocationResult": {
|
4
|
-
"document": "产品控制台已经下线\n\n获取服务调用结果。和InvokeService接口配置合适,其InvokeId参数为InvokeService接口返回的RequestId。",
|
5
|
-
"input": "DescribeInvocationResultRequest",
|
6
|
-
"name": "查询服务调用结果",
|
7
|
-
"output": "DescribeInvocationResultResponse",
|
8
|
-
"status": "offline"
|
9
|
-
},
|
10
|
-
"InvokeService": {
|
11
|
-
"document": "产品控制台已经下线\n\n通过传入文档url,测试服务算法。此接口需要和DescribeInvocationResult接口配置使用,该接口使用InvokeService返回的RequestId作为InvokeId参数,用于查询调用结果。",
|
12
|
-
"input": "InvokeServiceRequest",
|
13
|
-
"name": "调用服务",
|
14
|
-
"output": "InvokeServiceResponse",
|
15
|
-
"status": "offline"
|
16
|
-
}
|
17
|
-
},
|
18
|
-
"metadata": {
|
19
|
-
"apiVersion": "2020-07-27",
|
20
|
-
"api_brief": null,
|
21
|
-
"serviceNameCN": "腾讯云释义",
|
22
|
-
"serviceShortName": "tcex"
|
23
|
-
},
|
24
|
-
"objects": {
|
25
|
-
"AlgorithmResult": {
|
26
|
-
"document": "每个算法的返回结果",
|
27
|
-
"members": [
|
28
|
-
{
|
29
|
-
"document": "算法ID",
|
30
|
-
"member": "string",
|
31
|
-
"name": "AlgoId",
|
32
|
-
"required": true,
|
33
|
-
"type": "string",
|
34
|
-
"value_allowed_null": false
|
35
|
-
},
|
36
|
-
{
|
37
|
-
"document": "算法名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
38
|
-
"member": "string",
|
39
|
-
"name": "AlgoName",
|
40
|
-
"required": true,
|
41
|
-
"type": "string",
|
42
|
-
"value_allowed_null": true
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"document": "算法返回的结果。\n- 当算法类型为“OCR(1)”时,结果为文本字符串\n- 当算法类型为“文本分类(2)”时,结果字符串为json对象数组:\n Class:分类结果\n Confidence:置信度\n- 算法类型为“情感分析(3)”时,结果字符串为json对象:\n Positive:正面情感概率\n Negative:负面情感概率\n Neutral:中性情感概率\n- 当算法类型为“合同要素抽取(4)”时,结果字符串为json对象数组:\n NodeName:一级要素名称\n ItemName:二级要素名称\n Content:要素文本内容\n- 当算法类型为“实体识别(5)”时,结果字符串为json对象数组:\n - Entity:实体类型\n - Content:实体文本内容\n注意:此字段可能返回 null,表示取不到有效值。",
|
46
|
-
"member": "string",
|
47
|
-
"name": "Result",
|
48
|
-
"required": true,
|
49
|
-
"type": "string",
|
50
|
-
"value_allowed_null": true
|
51
|
-
},
|
52
|
-
{
|
53
|
-
"document": "算法调用错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
54
|
-
"member": "string",
|
55
|
-
"name": "Error",
|
56
|
-
"required": true,
|
57
|
-
"type": "string",
|
58
|
-
"value_allowed_null": true
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"document": "算法类型:\n1:OCR算法\n2:文本分类算法\n3:情感分析算法\n4:合同要素抽取算法\n5、实体识别算法\n注意:此字段可能返回 null,表示取不到有效值。",
|
62
|
-
"member": "int64",
|
63
|
-
"name": "AlgoType",
|
64
|
-
"required": true,
|
65
|
-
"type": "int",
|
66
|
-
"value_allowed_null": true
|
67
|
-
}
|
68
|
-
],
|
69
|
-
"usage": "out"
|
70
|
-
},
|
71
|
-
"DescribeInvocationResultRequest": {
|
72
|
-
"document": "DescribeInvocationResult请求参数结构体",
|
73
|
-
"members": [
|
74
|
-
{
|
75
|
-
"document": "调用id,为调用InvokeService接口返回的RequestId",
|
76
|
-
"member": "string",
|
77
|
-
"name": "InvokeId",
|
78
|
-
"required": true,
|
79
|
-
"type": "string"
|
80
|
-
}
|
81
|
-
],
|
82
|
-
"type": "object"
|
83
|
-
},
|
84
|
-
"DescribeInvocationResultResponse": {
|
85
|
-
"document": "DescribeInvocationResult返回参数结构体",
|
86
|
-
"members": [
|
87
|
-
{
|
88
|
-
"document": "服务的调用结果",
|
89
|
-
"member": "AlgorithmResult",
|
90
|
-
"name": "Results",
|
91
|
-
"type": "list",
|
92
|
-
"value_allowed_null": false
|
93
|
-
},
|
94
|
-
{
|
95
|
-
"document": "0:获取结果失败\n1:结果还没有生成,继续轮询\n2:获取结果成功",
|
96
|
-
"member": "int64",
|
97
|
-
"name": "Status",
|
98
|
-
"type": "int",
|
99
|
-
"value_allowed_null": false
|
100
|
-
},
|
101
|
-
{
|
102
|
-
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
103
|
-
"member": "string",
|
104
|
-
"name": "RequestId",
|
105
|
-
"type": "string"
|
106
|
-
}
|
107
|
-
],
|
108
|
-
"type": "object"
|
109
|
-
},
|
110
|
-
"InvokeServiceRequest": {
|
111
|
-
"document": "InvokeService请求参数结构体",
|
112
|
-
"members": [
|
113
|
-
{
|
114
|
-
"document": "待调用的服务ID。",
|
115
|
-
"member": "string",
|
116
|
-
"name": "ServiceId",
|
117
|
-
"required": true,
|
118
|
-
"type": "string"
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"document": "要调用服务的状态:0表示调试版本,1表示上线版本",
|
122
|
-
"member": "int64",
|
123
|
-
"name": "ServiceStatus",
|
124
|
-
"required": true,
|
125
|
-
"type": "int"
|
126
|
-
},
|
127
|
-
{
|
128
|
-
"document": "用于测试的文档的URL。",
|
129
|
-
"member": "string",
|
130
|
-
"name": "FileUrl",
|
131
|
-
"required": false,
|
132
|
-
"type": "string"
|
133
|
-
},
|
134
|
-
{
|
135
|
-
"document": "用于测试的文本,当此值不为空时,调用内容以此参数的值为准。",
|
136
|
-
"member": "string",
|
137
|
-
"name": "Input",
|
138
|
-
"required": false,
|
139
|
-
"type": "string"
|
140
|
-
}
|
141
|
-
],
|
142
|
-
"type": "object"
|
143
|
-
},
|
144
|
-
"InvokeServiceResponse": {
|
145
|
-
"document": "InvokeService返回参数结构体",
|
146
|
-
"members": [
|
147
|
-
{
|
148
|
-
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
149
|
-
"member": "string",
|
150
|
-
"name": "RequestId",
|
151
|
-
"type": "string"
|
152
|
-
}
|
153
|
-
],
|
154
|
-
"type": "object"
|
155
|
-
}
|
156
|
-
},
|
157
|
-
"version": "1.0"
|
158
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"actions": {
|
3
|
-
"DescribeInvocationResult": [
|
4
|
-
{
|
5
|
-
"document": "",
|
6
|
-
"input": "https://tcex.tencentcloudapi.com/?Action=DescribeInvocationResult\n&InvokeId=e3163011-7b90-4971-b46b-2c8a5ebd9a21\n&<公共请求参数>",
|
7
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"e3163b11-7b90-4971-b46b-2c8a5ebd9a6g\",\n \"Status\": 2,\n \"Results\": [\n {\n \"AlgoId\": \"2\",\n \"AlgoName\": \"OCR手写体识别\",\n \"AlgoType\": 3,\n \"Error\": \"\",\n \"Result\": \"裙子和紧身衣,由于气候、风和太阳的影响,因而产生出最微妙的色调。假加穿上贵妇人的衣服,就会失去她特有的魅力。一个在地里穿着粗布衣服的农民,比他在礼拜天穿着节日盛装到教堂去更为真实。我以为,把一幅农民画画成老套光活的样子,同样是错误的。如果能在农画上闻到熏腊肉的烟味、煮士豆的蒸气味,那就好了,这不是不正常;只要闻到马棚里的味,很好,那正是一个马棚;如果用野上有一种成熟了的庄稼或土豆味,鱼肥或人造肥料的气味,那就是正常的,对城里人来说更是这样。\"\n },\n {\n \"AlgoId\": \"4\",\n \"AlgoName\": \"文本分类\",\n \"AlgoType\": 3,\n \"Error\": \"\",\n \"Result\": \"[{\\\"Class\\\":\\\"女性\\\",\\\"Confidence\\\":0.21}]\"\n },\n {\n \"AlgoId\": \"6\",\n \"AlgoName\": \"情感分析\",\n \"AlgoType\": 3,\n \"Error\": \"\",\n \"Result\": \"{\\\"Negative\\\":0.07756602,\\\"Neutral\\\":0,\\\"Positive\\\":0.922434}\"\n }\n ]\n }\n}",
|
8
|
-
"title": "查询服务调用结果接口示例"
|
9
|
-
}
|
10
|
-
],
|
11
|
-
"InvokeService": [
|
12
|
-
{
|
13
|
-
"document": "",
|
14
|
-
"input": "https://tcex.tencentcloudapi.com/?Action=InvokeService\n&ServiceId=svc-bjqz2ne7\n&ServiceStatus=0\n&FileUrl=10000301996217634746281.jpg\n&<公共请求参数>",
|
15
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"2420568e-47fa-11e8-a13a-6c92bf26dfc6\"\n }\n}",
|
16
|
-
"title": "服务调用接口示例"
|
17
|
-
}
|
18
|
-
]
|
19
|
-
},
|
20
|
-
"version": "1.0"
|
21
|
-
}
|
tccli/services/tci/__init__.py
DELETED