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.
Files changed (172) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +0 -76
  3. tccli/services/ai3d/v20250513/api.json +1 -1
  4. tccli/services/aiart/v20221229/api.json +3 -3
  5. tccli/services/autoscaling/v20180419/api.json +11 -0
  6. tccli/services/batch/v20170312/api.json +44 -0
  7. tccli/services/cdb/v20170320/api.json +8 -8
  8. tccli/services/cdb/v20170320/examples.json +1 -1
  9. tccli/services/cdn/v20180606/api.json +5 -5
  10. tccli/services/cdwdoris/v20211228/api.json +145 -7
  11. tccli/services/cfg/v20210820/api.json +20 -0
  12. tccli/services/cfs/v20190719/api.json +10 -10
  13. tccli/services/cfw/cfw_client.py +53 -0
  14. tccli/services/cfw/v20190904/api.json +272 -0
  15. tccli/services/cfw/v20190904/examples.json +8 -0
  16. tccli/services/csip/csip_client.py +833 -144
  17. tccli/services/csip/v20221121/api.json +3304 -1436
  18. tccli/services/csip/v20221121/examples.json +104 -0
  19. tccli/services/cvm/v20170312/api.json +1 -1
  20. tccli/services/cwp/v20180228/api.json +9 -0
  21. tccli/services/cwp/v20180228/examples.json +6 -0
  22. tccli/services/emr/v20190103/api.json +217 -2
  23. tccli/services/es/v20250101/api.json +22 -0
  24. tccli/services/ess/v20201111/api.json +10 -1
  25. tccli/services/essbasic/v20210526/api.json +3 -3
  26. tccli/services/gs/v20191118/api.json +38 -0
  27. tccli/services/igtm/igtm_client.py +159 -0
  28. tccli/services/igtm/v20231024/api.json +577 -0
  29. tccli/services/igtm/v20231024/examples.json +24 -0
  30. tccli/services/iotexplorer/v20190423/api.json +3 -3
  31. tccli/services/lcic/lcic_client.py +53 -0
  32. tccli/services/lcic/v20220817/api.json +53 -0
  33. tccli/services/lcic/v20220817/examples.json +8 -0
  34. tccli/services/live/v20180801/api.json +203 -1
  35. tccli/services/live/v20180801/examples.json +1 -1
  36. tccli/services/lke/v20231130/api.json +248 -2
  37. tccli/services/lke/v20231130/examples.json +1 -1
  38. tccli/services/lkeap/v20240522/api.json +1 -1
  39. tccli/services/mrs/v20200910/api.json +10 -0
  40. tccli/services/nlp/nlp_client.py +4 -322
  41. tccli/services/nlp/v20190408/api.json +0 -459
  42. tccli/services/nlp/v20190408/examples.json +0 -48
  43. tccli/services/ocr/v20181119/api.json +60 -5
  44. tccli/services/omics/v20221128/api.json +38 -0
  45. tccli/services/redis/v20180412/api.json +6 -6
  46. tccli/services/redis/v20180412/examples.json +1 -1
  47. tccli/services/ses/v20201002/api.json +100 -5
  48. tccli/services/tcb/v20180608/api.json +1 -1
  49. tccli/services/tcb/v20180608/examples.json +1 -1
  50. tccli/services/tdmq/v20200217/api.json +19 -0
  51. tccli/services/teo/teo_client.py +281 -16
  52. tccli/services/teo/v20220901/api.json +611 -6
  53. tccli/services/teo/v20220901/examples.json +48 -2
  54. tccli/services/tione/v20211111/api.json +16 -0
  55. tccli/services/tke/tke_client.py +57 -4
  56. tccli/services/tke/v20180525/api.json +24 -24
  57. tccli/services/tke/v20220501/api.json +52 -0
  58. tccli/services/tke/v20220501/examples.json +8 -0
  59. tccli/services/tmt/v20180321/api.json +4 -4
  60. tccli/services/tsf/v20180326/api.json +4 -4
  61. tccli/services/vclm/v20240523/api.json +3 -3
  62. tccli/services/vod/v20180717/api.json +5 -5
  63. tccli/services/vod/v20180717/examples.json +9 -9
  64. tccli/services/vpc/v20170312/api.json +1 -1
  65. tccli/services/vrs/v20200824/api.json +1 -1
  66. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/METADATA +2 -2
  67. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/RECORD +70 -172
  68. tccli/services/cis/__init__.py +0 -4
  69. tccli/services/cis/cis_client.py +0 -525
  70. tccli/services/cis/v20180408/api.json +0 -737
  71. tccli/services/cis/v20180408/examples.json +0 -93
  72. tccli/services/dataintegration/__init__.py +0 -4
  73. tccli/services/dataintegration/dataintegration_client.py +0 -207
  74. tccli/services/dataintegration/v20220613/api.json +0 -87
  75. tccli/services/dataintegration/v20220613/examples.json +0 -13
  76. tccli/services/dtf/__init__.py +0 -4
  77. tccli/services/dtf/dtf_client.py +0 -207
  78. tccli/services/dtf/v20200506/api.json +0 -274
  79. tccli/services/dtf/v20200506/examples.json +0 -13
  80. tccli/services/gpm/__init__.py +0 -4
  81. tccli/services/gpm/gpm_client.py +0 -1108
  82. tccli/services/gpm/v20200820/api.json +0 -1959
  83. tccli/services/gpm/v20200820/examples.json +0 -149
  84. tccli/services/gse/__init__.py +0 -4
  85. tccli/services/gse/gse_client.py +0 -4076
  86. tccli/services/gse/v20191112/api.json +0 -7095
  87. tccli/services/gse/v20191112/examples.json +0 -615
  88. tccli/services/iecp/__init__.py +0 -4
  89. tccli/services/iecp/iecp_client.py +0 -4500
  90. tccli/services/iecp/v20210914/api.json +0 -9770
  91. tccli/services/iecp/v20210914/examples.json +0 -691
  92. tccli/services/iir/__init__.py +0 -4
  93. tccli/services/iir/iir_client.py +0 -207
  94. tccli/services/iir/v20200417/api.json +0 -204
  95. tccli/services/iir/v20200417/examples.json +0 -13
  96. tccli/services/iottid/__init__.py +0 -4
  97. tccli/services/iottid/iottid_client.py +0 -631
  98. tccli/services/iottid/v20190411/api.json +0 -553
  99. tccli/services/iottid/v20190411/examples.json +0 -95
  100. tccli/services/mgobe/__init__.py +0 -4
  101. tccli/services/mgobe/mgobe_client.py +0 -530
  102. tccli/services/mgobe/v20190929/api.json +0 -52
  103. tccli/services/mgobe/v20190929/examples.json +0 -13
  104. tccli/services/mgobe/v20201014/api.json +0 -671
  105. tccli/services/mgobe/v20201014/examples.json +0 -61
  106. tccli/services/mvj/__init__.py +0 -4
  107. tccli/services/mvj/mvj_client.py +0 -207
  108. tccli/services/mvj/v20190926/api.json +0 -123
  109. tccli/services/mvj/v20190926/examples.json +0 -19
  110. tccli/services/pds/__init__.py +0 -4
  111. tccli/services/pds/pds_client.py +0 -260
  112. tccli/services/pds/v20210701/api.json +0 -193
  113. tccli/services/pds/v20210701/examples.json +0 -21
  114. tccli/services/smpn/__init__.py +0 -4
  115. tccli/services/smpn/smpn_client.py +0 -260
  116. tccli/services/smpn/v20190822/api.json +0 -191
  117. tccli/services/smpn/v20190822/examples.json +0 -21
  118. tccli/services/solar/__init__.py +0 -4
  119. tccli/services/solar/solar_client.py +0 -1055
  120. tccli/services/solar/v20181011/api.json +0 -1760
  121. tccli/services/solar/v20181011/examples.json +0 -125
  122. tccli/services/tan/__init__.py +0 -4
  123. tccli/services/tan/tan_client.py +0 -207
  124. tccli/services/tan/v20220420/api.json +0 -65
  125. tccli/services/tan/v20220420/examples.json +0 -19
  126. tccli/services/tav/__init__.py +0 -4
  127. tccli/services/tav/tav_client.py +0 -366
  128. tccli/services/tav/v20190118/api.json +0 -262
  129. tccli/services/tav/v20190118/examples.json +0 -37
  130. tccli/services/tbm/__init__.py +0 -4
  131. tccli/services/tbm/tbm_client.py +0 -631
  132. tccli/services/tbm/v20180129/api.json +0 -1037
  133. tccli/services/tbm/v20180129/examples.json +0 -77
  134. tccli/services/tcex/__init__.py +0 -4
  135. tccli/services/tcex/tcex_client.py +0 -260
  136. tccli/services/tcex/v20200727/api.json +0 -158
  137. tccli/services/tcex/v20200727/examples.json +0 -21
  138. tccli/services/tci/__init__.py +0 -4
  139. tccli/services/tci/tci_client.py +0 -2327
  140. tccli/services/tci/v20190318/api.json +0 -4958
  141. tccli/services/tci/v20190318/examples.json +0 -333
  142. tccli/services/tic/__init__.py +0 -4
  143. tccli/services/tic/tic_client.py +0 -843
  144. tccli/services/tic/v20201117/api.json +0 -1067
  145. tccli/services/tic/v20201117/examples.json +0 -121
  146. tccli/services/ticm/__init__.py +0 -4
  147. tccli/services/ticm/ticm_client.py +0 -313
  148. tccli/services/ticm/v20181127/api.json +0 -1391
  149. tccli/services/ticm/v20181127/examples.json +0 -53
  150. tccli/services/tics/__init__.py +0 -4
  151. tccli/services/tics/tics_client.py +0 -366
  152. tccli/services/tics/v20181115/api.json +0 -694
  153. tccli/services/tics/v20181115/examples.json +0 -37
  154. tccli/services/tiems/__init__.py +0 -4
  155. tccli/services/tiems/tiems_client.py +0 -1479
  156. tccli/services/tiems/v20190416/api.json +0 -3144
  157. tccli/services/tiems/v20190416/examples.json +0 -217
  158. tccli/services/trdp/__init__.py +0 -4
  159. tccli/services/trdp/trdp_client.py +0 -207
  160. tccli/services/trdp/v20220726/api.json +0 -843
  161. tccli/services/trdp/v20220726/examples.json +0 -13
  162. tccli/services/ump/__init__.py +0 -4
  163. tccli/services/ump/ump_client.py +0 -1055
  164. tccli/services/ump/v20200918/api.json +0 -2168
  165. tccli/services/ump/v20200918/examples.json +0 -141
  166. tccli/services/youmall/__init__.py +0 -4
  167. tccli/services/youmall/v20180228/api.json +0 -3572
  168. tccli/services/youmall/v20180228/examples.json +0 -313
  169. tccli/services/youmall/youmall_client.py +0 -1797
  170. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/WHEEL +0 -0
  171. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/entry_points.txt +0 -0
  172. {tccli-3.0.1348.1.dist-info → tccli-3.0.1349.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,125 +0,0 @@
1
- {
2
- "actions": {
3
- "CopyActivityChannel": [
4
- {
5
- "document": "",
6
- "input": "https://solar.tencentcloudapi.com/?Action=CopyActivityChannel\r\n&<公共请求参数>\r\n&ActivityId=act_abc123\r\n&ChannelFrom=ch_aaa\r\n&ChannelTo.0=ch_ccc\r\n&ChannelTo.1=ch_bbb",
7
- "output": "{\r\n \"Response\": {\r\n \"RequestId\": \"08653cdb-55cb-45d0-a70f-33c834e30381\"\r\n }\r\n}",
8
- "title": "CopyActivityChannel"
9
- }
10
- ],
11
- "CreateProject": [
12
- {
13
- "document": "",
14
- "input": "https://solar.tencentcloudapi.com/?Action=CreateProject\r\n&<公共请求参数>\r\n&ProjectBudget=1000\r\n&ProjectIntroduction=Demo\r\n&ProjectName=Demo\r\n&ProjectOrg=质量部\r\n&ProjectOrgId=652462622289039360",
15
- "output": "{\r\n\t\"Response\": {\r\n\t\t\"ProjectId\": \"testprj-b45zw7v5qk\",\r\n\t\t\"RequestId\": \"2cbf6e1c-10b7-40aa-9d4e-9328ed7def36\"\r\n\t}\r\n}",
16
- "title": "CreateProject"
17
- }
18
- ],
19
- "CreateSubProject": [
20
- {
21
- "document": "",
22
- "input": "https://solar.tencentcloudapi.com/?Action=CreateSubProject\r\n&<公共请求参数>\r\n&ProjectId=prj-ipyzubygh7\r\n&SubProjectName=子项目3",
23
- "output": "{\r\n\t\"Response\": {\r\n\t\t\"RequestId\": \"b3600119-bb08-4c5a-8331-d46908d6da02\",\r\n\t\t\"SubProjectId\": \"subprj-8jkiiqwwtf\"\r\n\t}\r\n}",
24
- "title": "CreateSubProject"
25
- }
26
- ],
27
- "DeleteProject": [
28
- {
29
- "document": "",
30
- "input": "https://solar.tencentcloudapi.com/?Action=DeleteProject\r\n&<公共请求参数>\r\n&ProjectId=prj-5ysjk29arh",
31
- "output": "{\r\n \"Response\": {\r\n \"RequestId\": \"a51276e5-a0cc-4ea9-ba87-c834ac207879\"\r\n }\r\n}",
32
- "title": "DeleteProject"
33
- }
34
- ],
35
- "DescribeCustomer": [
36
- {
37
- "document": "",
38
- "input": "https://solar.tencentcloudapi.com/?Action=DescribeCustomer\r\n&<公共请求参数>\r\n&UserId=659051925723025408",
39
- "output": "{\r\n \"Response\": {\r\n \"RequestId\": \"7483b380-5eeb-485b-bd3a-0b7ae62e4d55\",\r\n \"AddressList\": null,\r\n \"UserId\": \"659051925723025408\",\r\n \"Avatar\": \"http://thirdwx.qlogo.cn/mmopen/vi_32/PiajxSqBRHtKic20343dJ7AWNRoQ/132\",\r\n \"Birthday\": \"2010-10-10\",\r\n \"City\": \"深圳\",\r\n \"CreateTime\": 1577171824000,\r\n \"Device\": \"9.0.2524.400\",\r\n \"Industrys\": \"\",\r\n \"LastActiveTime\": 1577675316573,\r\n \"MarkFlag\": 0,\r\n \"Model\": \"qq\",\r\n \"OpenId\": \"o5Kw21t6M7TCFrT96ZQ_Qn2Pz4vQ\",\r\n \"PayFeature\": \"\",\r\n \"Phone\": \"\",\r\n \"PhoneList\": \"\",\r\n \"Province\": \"广东\",\r\n \"RealName\": null,\r\n \"RelChannelFlag\": null,\r\n \"Remark\": null,\r\n \"Sex\": 1,\r\n \"SourceAudienceVo\": null,\r\n \"SubWechats\": null,\r\n \"UnionId\": \"odreBwax7AzElvM2R1QNTYxqs6kE\",\r\n \"UpdateTime\": 1577675320000,\r\n \"UserTypes\": null,\r\n \"WxCity\": \"深圳\",\r\n \"WxCountry\": \"中国\",\r\n \"WxNickname\": \"槐\",\r\n \"WxProvince\": \"广东\"\r\n }\r\n}",
40
- "title": "DescribeCustomer"
41
- }
42
- ],
43
- "DescribeCustomers": [
44
- {
45
- "document": "拉取客户档案列表",
46
- "input": "https://solar.tencentcloudapi.com/?Action=DescribeCustomers\r\n&<公共请求参数>\r\n&QueryType=0",
47
- "output": "{\r\n \"TotalCount\": 3,\r\n \"UserList\": [\r\n {\r\n \"Activity\": null,\r\n \"AudienceUserId\": \"645001009076244480\",\r\n \"Avatar\": \"http://thirdwx.qlogo.cn/mmopen/vi_32/UWsHgrAWRTszfoIWUyMBPMEI6217o8IOAHaHT2aypH0fKhHL3UkjgiaDdFt0tFj6BqzQmsiadrNu0sDFgqCho4ibA/132\",\r\n \"City\": \"深圳\",\r\n \"LastActiveTime\": \"2020-01-02 21:01:23\",\r\n \"MarkFlag\": \"1\",\r\n \"MonthActive\": 132,\r\n \"MonthRecommend\": 0,\r\n \"Phone\": null,\r\n \"Province\": \"广东\",\r\n \"RealName\": null,\r\n \"RelChannelFlag\": 1,\r\n \"Sex\": 1,\r\n \"Spread\": 0,\r\n \"WeekActive\": 90,\r\n \"WeekRecommend\": 0,\r\n \"WxCity\": \"深圳\",\r\n \"WxCountry\": \"中国\",\r\n \"WxNickname\": \"爱吃肉的鱼\",\r\n \"WxProvince\": \"广东\"\r\n },\r\n {\r\n \"Activity\": null,\r\n \"AudienceUserId\": \"645001013354434560\",\r\n \"Avatar\": \"http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLaL0mCsCCictGKBaqU8ibHBbYR9iamDiaE2Xn3t9qMbicCE9H599bnZzcrUSgibic2l9ck2BmTwZJnYwY5Q/132\",\r\n \"City\": \"北京\",\r\n \"LastActiveTime\": \"2020-01-02 20:59:29\",\r\n \"MarkFlag\": \"0\",\r\n \"MonthActive\": 152,\r\n \"MonthRecommend\": 0,\r\n \"Phone\": null,\r\n \"Province\": \"北京\",\r\n \"RealName\": null,\r\n \"RelChannelFlag\": 0,\r\n \"Sex\": 2,\r\n \"Spread\": 0,\r\n \"WeekActive\": 117,\r\n \"WeekRecommend\": 0,\r\n \"WxCity\": \"昌平\",\r\n \"WxCountry\": \"中国\",\r\n \"WxNickname\": \"卷卷\",\r\n \"WxProvince\": \"北京\"\r\n },\r\n {\r\n \"Activity\": null,\r\n \"AudienceUserId\": \"649204092001980416\",\r\n \"Avatar\": \"http://thirdwx.qlogo.cn/mmopen/vi_32/ia9mqfl24ZtJz5iaMf2Eo6ANibzwrBAAPzW21BhVib9Ivpu1pC6lpMSTdicDCSz3JEwg6mibNegwN8qHy0s5KH4RrQiaw/132\",\r\n \"City\": \"西安\",\r\n \"LastActiveTime\": \"2020-01-02 20:12:45\",\r\n \"MarkFlag\": \"0\",\r\n \"MonthActive\": 18,\r\n \"MonthRecommend\": 0,\r\n \"Phone\": null,\r\n \"Province\": \"陕西\",\r\n \"RealName\": null,\r\n \"RelChannelFlag\": 1,\r\n \"Sex\": 1,\r\n \"Spread\": 0,\r\n \"WeekActive\": 5,\r\n \"WeekRecommend\": 0,\r\n \"WxCity\": \"西安\",\r\n \"WxCountry\": \"中国\",\r\n \"WxNickname\": \"\",\r\n \"WxProvince\": \"陕西\"\r\n }\r\n ],\r\n \"RequestId\": \"528cd582-5824-47c3-a9cf-c33fa07ff070\"\r\n}",
48
- "title": "示例1"
49
- }
50
- ],
51
- "DescribeProject": [
52
- {
53
- "document": "",
54
- "input": "https://solar.tencentcloudapi.com/?Action=DescribeProject\r\n&<公共请求参数>\r\n&ProjectId=testprj-fjypzt0ne0",
55
- "output": "{\r\n \"ProjectBudget\": 10,\r\n \"ProjectId\": \"testprj-fjypzt0ne0\",\r\n \"ProjectIntroduction\": \"小星星\",\r\n \"ProjectName\": \"小星星\",\r\n \"ProjectOrg\": \"开发测试中心\",\r\n \"ProjectOrgId\": \"661594418817667072\",\r\n \"ProjectStatus\": \"编辑中\",\r\n \"RequestId\": \"eea5a0dd-677e-4770-b0f3-1fbb9a795307\"\r\n}",
56
- "title": "DescribeProject"
57
- }
58
- ],
59
- "DescribeProjectStock": [
60
- {
61
- "document": "",
62
- "input": "https://solar.tencentcloudapi.com/?Action=DescribeProjectStock\r\n&<公共请求参数>\r\n&SubProjectId=subprj-7df8mxtutd",
63
- "output": "{\r\n\t\"Response\": {\r\n\t\t\"ProjectStocks\": [{\r\n\t\t\t\"PoolIdx\": 1,\r\n\t\t\t\"PoolName\": \"奖池1\",\r\n\t\t\t\"PrizeBat\": 1,\r\n\t\t\t\"PrizeId\": \"res-7p4ohdtip7\",\r\n\t\t\t\"PrizeName\": \"test\",\r\n\t\t\t\"RemainStock\": 1100,\r\n\t\t\t\"UsedStock\": 1\r\n\t\t}],\r\n\t\t\"RequestId\": \"ed458170-a473-4b81-a0e3-856d6b364c19\"\r\n\t}\r\n}",
64
- "title": "DescribeProjectStock"
65
- }
66
- ],
67
- "DescribeProjects": [
68
- {
69
- "document": "",
70
- "input": "https://solar.tencentcloudapi.com/?Action=DescribeProjects\r\n&<公共请求参数>\r\n&PageNo=1\r\n&PageSize=2\r\n&Filters.Type=0",
71
- "output": "{\r\n\t\"Response\": {\r\n\t\t\"ProjectList\": [{\r\n\t\t\t\"CreateTime\": \"2020-01-16 15:32:34\",\r\n\t\t\t\"ProjectBudget\": 10,\r\n\t\t\t\"ProjectId\": \"testprj-fjypzt0ne0\",\r\n\t\t\t\"ProjectIntroduction\": \"小星星\",\r\n\t\t\t\"ProjectName\": \"小星星\",\r\n\t\t\t\"ProjectOrg\": \"开发测试中心\",\r\n\t\t\t\"ProjectOrgId\": \"661594418817667072\",\r\n\t\t\t\"ProjectStatus\": \"编辑中\"\r\n\t\t}, {\r\n\t\t\t\"CreateTime\": \"2020-01-16 15:25:47\",\r\n\t\t\t\"ProjectBudget\": 1111,\r\n\t\t\t\"ProjectId\": \"testprj-8fgl6bile6\",\r\n\t\t\t\"ProjectIntroduction\": \"111\",\r\n\t\t\t\"ProjectName\": \"lhjtest\",\r\n\t\t\t\"ProjectOrg\": \"研发部\",\r\n\t\t\t\"ProjectOrgId\": \"651831291142082560\",\r\n\t\t\t\"ProjectStatus\": \"运营中\"\r\n\t\t}],\r\n\t\t\"RequestId\": \"b81ee8cc-9c08-41bd-95ee-d6f97d5899b8\",\r\n\t\t\"TotalCount\": 158\r\n\t}\r\n}",
72
- "title": "DescribeProjects"
73
- }
74
- ],
75
- "DescribeResourceTemplateHeaders": [
76
- {
77
- "document": "",
78
- "input": "https://solar.tencentcloudapi.com/?Action=DescribeResourceTemplateHeaders\r\n&<公共请求参数>\r\n&WxAppId=wx1e62e94ac374e3fb",
79
- "output": "{\r\n\t\"Response\": {\r\n\t\t\"RequestId\": \"676cfa85-f039-4f1e-b396-85a1aefff805\",\r\n\t\t\"TotalCount\": 1,\r\n\t\t\"TmplList\": [{\r\n\t\t\t\"CanEdit\": true,\r\n\t\t\t\"CreateTime\": \"2020-01-03 09:45:07\",\r\n\t\t\t\"TmplId\": \"662592265872609280\",\r\n\t\t\t\"TmplName\": \"test\",\r\n\t\t\t\"TmplTitle\": \"任务提醒\",\r\n\t\t\t\"TmplDesc\": \"\",\r\n\t\t\t\"TmplRemark\": \"\"\r\n\t\t}]\r\n\t}\r\n}",
80
- "title": "DescribeResourceTemplateHeaders"
81
- }
82
- ],
83
- "DescribeSubProject": [
84
- {
85
- "document": "",
86
- "input": "https://solar.tencentcloudapi.com/?Action=DescribeSubProject\r\n&<公共请求参数>\r\n&SubProjectId=subprj-7df8mxtutd",
87
- "output": "{\r\n\t\"Response\": {\r\n\t\t\"ActivityInfo\": {\r\n\t\t\t\"ActivityCover\": \"https://jrqy.cloud.tencent.com/templates/lottery/thanksgivingScratch/index.html\",\r\n\t\t\t\"ActivityDesc\": \"抽奖了\",\r\n\t\t\t\"ActivityId\": \"subprj-7df8mxtutd\",\r\n\t\t\t\"ActivityTitle\": \"抽奖了\",\r\n\t\t\t\"ActivityType\": \"lottery\",\r\n\t\t\t\"PersonalConfig\": \"{}\",\r\n\t\t\t\"TemplateId\": \"2209bedc-06d3-11ea-96d0-5254006f7702\"\r\n\t\t},\r\n\t\t\"HasStrategy\": 1,\r\n\t\t\"ProductInfo\": {\r\n\t\t\t\"ProductCover\": \"//p-cdn4.rabbitpre.com/58e42d57-c777-480a-9d60-f87cc00feb29\",\r\n\t\t\t\"ProductDesc\": \"高端奢华快闪高端大气邀请函年会年终盛典新品发布会年终答谢会\",\r\n\t\t\t\"ProductId\": \"af3c32b7-76f5-4f35-8149-d96ca2afed76\",\r\n\t\t\t\"ProductTitle\": \"快闪高端大气邀请函年会年度盛典招商加盟新品发布会年终答谢会\",\r\n\t\t\t\"ProductUrl\": \"https://h5.tensolar.net/m2/aUe1ZiS0p9\",\r\n\t\t\t\"TemplateId\": \"c6719e48-7031-4973-8e76-056424dc2b58\"\r\n\t\t},\r\n\t\t\"RequestId\": \"74d96a7a-84ab-4db9-822f-5fb632d7b62b\",\r\n\t\t\"ShareDesc\": \"高端奢华快闪高端大气邀请函年会年终盛典新品发布会年终答谢会\",\r\n\t\t\"ShareImg\": \"//p-cdn4.rabbitpre.com/58e42d57-c777-480a-9d60-f87cc00feb29\",\r\n\t\t\"ShareTitle\": \"快闪高端大气邀请函年会年度盛典招商加盟新品发布会年终答谢会\",\r\n\t\t\"SubProjectStatus\": \"运营中\",\r\n\t\t\"ShareAppId\": \"Wx123456789\",\r\n\t\t\"ShareWsId\": \"0000-000-00\"\r\n\t}\r\n}",
88
- "title": "DescribeSubProject"
89
- }
90
- ],
91
- "ModifyProject": [
92
- {
93
- "document": "",
94
- "input": "https://solar.tencentcloudapi.com/?Action=ModifyProject\r\n&<公共请求参数>\r\n&ProjectBudget=10\r\n&ProjectId=testprj-fjypzt0ne0\r\n&ProjectIntroduction=小星星\r\n&ProjectName=小星星\r\n&ProjectOrg=开发测试中心\r\n&ProjectOrgId=661594418817667072",
95
- "output": "{\r\n \"RequestId\": \"d2b2e7af-c306-4181-aec9-607e2f64bd5f\"\r\n}",
96
- "title": "ModifyProject"
97
- }
98
- ],
99
- "OffLineProject": [
100
- {
101
- "document": "",
102
- "input": "https://solar.tencentcloudapi.com/?Action=OffLineProject\r\n&<公共请求参数>\r\n&ProjectId=prj-5ysjk29arh",
103
- "output": "{\r\n \"Response\": {\r\n \"RequestId\": \"a51276e5-a0cc-4ea9-ba87-c834ac207879\"\r\n }\r\n}",
104
- "title": "OffLineProject"
105
- }
106
- ],
107
- "ReplenishProjectStock": [
108
- {
109
- "document": "",
110
- "input": "https://solar.tencentcloudapi.com/?Action=ReplenishProjectStock\r\n&<公共请求参数>\r\n&SubProjectId=testsubprj-9ikt6t4ybu\r\n&PrizeId=testres-86e7182dbo\r\n&PrizeNum=1\r\n&PoolIndex=1\r\n&PoolName=奖池1",
111
- "output": "{\r\n \"Response\": {\r\n \"RequestId\": \"409fc3ee-8a88-46ea-a449-748d8ed2207a\"\r\n }\r\n}",
112
- "title": "示例1"
113
- }
114
- ],
115
- "SendWxTouchTask": [
116
- {
117
- "document": "",
118
- "input": "https://solar.tencentcloudapi.com/?Action=SendWxTouchTask\r\n&<公共请求参数>\r\n&GroupId=123\r\n&DistinctFlag=false\r\n&IsSendNow=false\r\n&SendDate=0\r\n&TaskName=123\r\n&WxTouchType=123\r\n&Title=123\r\n&Content=123\r\n&NewsId=123\r\n&SmallProgramId=123\r\n&TemplateId=123\r\n&WxAppId=123",
119
- "output": "{\r\n \"Response\": {\r\n \"RequestId\": \"3395dedb-bd23-4a2d-a87e-58f93b76876d\"\r\n }\r\n}",
120
- "title": "示例1"
121
- }
122
- ]
123
- },
124
- "version": "1.0"
125
- }
@@ -1,4 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- from tccli.services.tan.tan_client import action_caller
4
-
@@ -1,207 +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.tan.v20220420 import tan_client as tan_client_v20220420
15
- from tencentcloud.tan.v20220420 import models as models_v20220420
16
-
17
- from jmespath import search
18
- import time
19
-
20
- def doCreateBlockNodeRecords(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.TanClient(cred, g_param[OptionsDefine.Region], profile)
47
- client._sdkVersion += ("_CLI_" + __version__)
48
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.CreateBlockNodeRecordsRequest()
50
- model.from_json_string(json.dumps(args))
51
- start_time = time.time()
52
- while True:
53
- rsp = client.CreateBlockNodeRecords(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
- CLIENT_MAP = {
73
- "v20220420": tan_client_v20220420,
74
-
75
- }
76
-
77
- MODELS_MAP = {
78
- "v20220420": models_v20220420,
79
-
80
- }
81
-
82
- ACTION_MAP = {
83
- "CreateBlockNodeRecords": doCreateBlockNodeRecords,
84
-
85
- }
86
-
87
- AVAILABLE_VERSION_LIST = [
88
- "v20220420",
89
-
90
- ]
91
-
92
-
93
- def action_caller():
94
- return ACTION_MAP
95
-
96
-
97
- def parse_global_arg(parsed_globals):
98
- g_param = parsed_globals
99
- cvm_role_flag = True
100
- for param in parsed_globals.keys():
101
- if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
102
- OptionsDefine.RoleSessionName]:
103
- if parsed_globals[param] is not None:
104
- cvm_role_flag = False
105
- break
106
- is_exist_profile = True
107
- if not parsed_globals["profile"]:
108
- is_exist_profile = False
109
- g_param["profile"] = os.environ.get("TCCLI_PROFILE", "default")
110
-
111
- configure_path = os.path.join(os.path.expanduser("~"), ".tccli")
112
- is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure")
113
- is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential")
114
-
115
- conf = {}
116
- cred = {}
117
-
118
- if is_conf_exist:
119
- conf = Utils.load_json_msg(conf_path)
120
- if is_cred_exist:
121
- cred = Utils.load_json_msg(cred_path)
122
-
123
- if not (isinstance(conf, dict) and isinstance(cred, dict)):
124
- raise ConfigurationError(
125
- "file: %s or %s is not json format"
126
- % (g_param["profile"] + ".configure", g_param["profile"] + ".credential"))
127
-
128
- if OptionsDefine.Token not in cred:
129
- cred[OptionsDefine.Token] = None
130
-
131
- if not is_exist_profile:
132
- if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY):
133
- cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
134
- cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
135
- cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
136
- cvm_role_flag = False
137
-
138
- if os.environ.get(OptionsDefine.ENV_REGION):
139
- conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
140
-
141
- if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
142
- cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
143
- cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
144
- cvm_role_flag = False
145
-
146
- if cvm_role_flag:
147
- if "type" in cred and cred["type"] == "cvm-role":
148
- g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
149
-
150
- for param in g_param.keys():
151
- if g_param[param] is None:
152
- if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]:
153
- if param in cred:
154
- g_param[param] = cred[param]
155
- elif not (g_param[OptionsDefine.UseCVMRole.replace('-', '_')]
156
- or os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN)):
157
- raise ConfigurationError("%s is invalid" % param)
158
- elif param in [OptionsDefine.Region, OptionsDefine.Output, OptionsDefine.Language]:
159
- if param in conf[OptionsDefine.SysParam]:
160
- g_param[param] = conf[OptionsDefine.SysParam][param]
161
- elif param != OptionsDefine.Language:
162
- raise ConfigurationError("%s is invalid" % param)
163
- elif param.replace('_', '-') in [OptionsDefine.RoleArn, OptionsDefine.RoleSessionName]:
164
- if param.replace('_', '-') in cred:
165
- g_param[param] = cred[param.replace('_', '-')]
166
-
167
- try:
168
- if g_param[OptionsDefine.ServiceVersion]:
169
- g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '')
170
- else:
171
- version = conf["tan"][OptionsDefine.Version]
172
- g_param[OptionsDefine.Version] = "v" + version.replace('-', '')
173
-
174
- if g_param[OptionsDefine.Endpoint] is None:
175
- g_param[OptionsDefine.Endpoint] = conf["tan"][OptionsDefine.Endpoint]
176
- g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
177
- except Exception as err:
178
- raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
179
-
180
- if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST:
181
- raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
182
-
183
- if g_param[OptionsDefine.Waiter]:
184
- param = eval(g_param[OptionsDefine.Waiter])
185
- if 'expr' not in param:
186
- raise Exception('`expr` in `--waiter` must be defined')
187
- if 'to' not in param:
188
- raise Exception('`to` in `--waiter` must be defined')
189
- if 'timeout' not in param:
190
- if 'waiter' in conf and 'timeout' in conf['waiter']:
191
- param['timeout'] = conf['waiter']['timeout']
192
- else:
193
- param['timeout'] = 180
194
- if 'interval' not in param:
195
- if 'waiter' in conf and 'interval' in conf['waiter']:
196
- param['interval'] = conf['waiter']['interval']
197
- else:
198
- param['interval'] = 5
199
- param['interval'] = min(param['interval'], param['timeout'])
200
- g_param['OptionsDefine.WaiterInfo'] = param
201
-
202
- if six.PY2:
203
- for key, value in g_param.items():
204
- if isinstance(value, six.text_type):
205
- g_param[key] = value.encode('utf-8')
206
- return g_param
207
-
@@ -1,65 +0,0 @@
1
- {
2
- "actions": {
3
- "CreateBlockNodeRecords": {
4
- "document": "产品下线\n\n推送节点数据",
5
- "input": "CreateBlockNodeRecordsRequest",
6
- "name": "推送节点数据",
7
- "output": "CreateBlockNodeRecordsResponse",
8
- "status": "deprecated"
9
- }
10
- },
11
- "metadata": {
12
- "apiVersion": "2022-04-20",
13
- "api_brief": "介绍如何通过API实现从各类应用系统中快速、灵活、高效地将数据接入碳引擎。",
14
- "serviceNameCN": "碳引擎",
15
- "serviceShortName": "tan"
16
- },
17
- "objects": {
18
- "CreateBlockNodeRecordsRequest": {
19
- "document": "CreateBlockNodeRecords请求参数结构体",
20
- "members": [
21
- {
22
- "disabled": false,
23
- "document": "盘查组id,可在“盘查组概览”功能中获取。",
24
- "example": "无",
25
- "member": "string",
26
- "name": "GroupId",
27
- "required": true,
28
- "type": "string"
29
- },
30
- {
31
- "disabled": false,
32
- "document": "节点id,可在“数据接入管理”中获取。",
33
- "example": "无",
34
- "member": "string",
35
- "name": "NodeId",
36
- "required": true,
37
- "type": "string"
38
- },
39
- {
40
- "disabled": false,
41
- "document": "节点数据json,具体demo请参考输入示例,其中key为数据接入管理中节点内创建的属性变量名,value为期望的推送值。",
42
- "example": "无",
43
- "member": "string",
44
- "name": "Records",
45
- "required": true,
46
- "type": "string"
47
- }
48
- ],
49
- "type": "object"
50
- },
51
- "CreateBlockNodeRecordsResponse": {
52
- "document": "CreateBlockNodeRecords返回参数结构体",
53
- "members": [
54
- {
55
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
56
- "member": "string",
57
- "name": "RequestId",
58
- "type": "string"
59
- }
60
- ],
61
- "type": "object"
62
- }
63
- },
64
- "version": "1.0"
65
- }
@@ -1,19 +0,0 @@
1
- {
2
- "actions": {
3
- "CreateBlockNodeRecords": [
4
- {
5
- "document": "",
6
- "input": "POST / HTTP/1.1\nHost: tan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBlockNodeRecords\n<公共请求参数>\n\n{\n \"Records\": \"[{\\\"key1\\\":123,\\\"key2\\\":\\\"string\\\"}]\",\n \"GroupId\": \"tan-xxxx\",\n \"NodeId\": \"b5fd85a5-033a-4f28-ab87-xxxx\"\n}",
7
- "output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
8
- "title": "推送节点数据(value支持数值字符串)"
9
- },
10
- {
11
- "document": "",
12
- "input": "POST / HTTP/1.1\nHost: tan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBlockNodeRecords\n<公共请求参数>\n\n{\n \"Records\": \"[{\\\"key1\\\":1,\\\"key2\\\":\\\"value2\\\"},{\\\"key1\\\":2,\\\"key2\\\":\\\"value2\\\"}]\",\n \"GroupId\": \"tan-xxxx\",\n \"NodeId\": \"b5fd85a5-033a-4f28-ab87-xxxx\"\n}",
13
- "output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
14
- "title": "推送节点数据(支持多条数据推送,最大不超过100条)"
15
- }
16
- ]
17
- },
18
- "version": "1.0"
19
- }
@@ -1,4 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- from tccli.services.tav.tav_client import action_caller
4
-