tencentcloud-sdk-python 3.0.1202__py2.py3-none-any.whl → 3.0.1233__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 (214) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/aiart_client.py +24 -0
  3. tencentcloud/aiart/v20221229/models.py +214 -15
  4. tencentcloud/ams/v20201229/models.py +24 -0
  5. tencentcloud/antiddos/v20200309/models.py +13 -1
  6. tencentcloud/apm/v20210622/errorcodes.py +3 -0
  7. tencentcloud/apm/v20210622/models.py +25 -0
  8. tencentcloud/asr/v20190614/asr_client.py +103 -1
  9. tencentcloud/asr/v20190614/errorcodes.py +3 -0
  10. tencentcloud/asr/v20190614/models.py +620 -0
  11. tencentcloud/autoscaling/v20180419/errorcodes.py +6 -0
  12. tencentcloud/autoscaling/v20180419/models.py +67 -20
  13. tencentcloud/batch/v20170312/models.py +2 -2
  14. tencentcloud/bi/v20220105/models.py +25 -0
  15. tencentcloud/billing/v20180709/models.py +155 -0
  16. tencentcloud/cam/v20190116/cam_client.py +46 -0
  17. tencentcloud/cam/v20190116/errorcodes.py +6 -0
  18. tencentcloud/cam/v20190116/models.py +301 -0
  19. tencentcloud/cbs/v20170312/models.py +1 -1
  20. tencentcloud/ccc/v20200210/models.py +42 -12
  21. tencentcloud/cdb/v20170320/cdb_client.py +46 -0
  22. tencentcloud/cdb/v20170320/models.py +359 -11
  23. tencentcloud/cdwch/v20200915/models.py +1 -1
  24. tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +618 -66
  25. tencentcloud/cdwdoris/v20211228/errorcodes.py +0 -3
  26. tencentcloud/cdwdoris/v20211228/models.py +8041 -3844
  27. tencentcloud/cfg/v20210820/models.py +195 -1
  28. tencentcloud/cfs/v20190719/cfs_client.py +2 -2
  29. tencentcloud/cfs/v20190719/errorcodes.py +9 -0
  30. tencentcloud/cfs/v20190719/models.py +55 -5
  31. tencentcloud/cfw/v20190904/cfw_client.py +46 -25
  32. tencentcloud/cfw/v20190904/models.py +1056 -249
  33. tencentcloud/ckafka/v20190819/ckafka_client.py +24 -1
  34. tencentcloud/ckafka/v20190819/models.py +175 -2
  35. tencentcloud/clb/v20180317/models.py +147 -3
  36. tencentcloud/cls/v20201016/cls_client.py +92 -0
  37. tencentcloud/cls/v20201016/models.py +764 -16
  38. tencentcloud/controlcenter/__init__.py +0 -0
  39. tencentcloud/controlcenter/v20230110/__init__.py +0 -0
  40. tencentcloud/controlcenter/v20230110/controlcenter_client.py +49 -0
  41. tencentcloud/controlcenter/v20230110/errorcodes.py +45 -0
  42. tencentcloud/controlcenter/v20230110/models.py +140 -0
  43. tencentcloud/csip/v20221121/models.py +409 -0
  44. tencentcloud/cvm/v20170312/cvm_client.py +24 -1
  45. tencentcloud/cvm/v20170312/errorcodes.py +24 -0
  46. tencentcloud/cvm/v20170312/models.py +185 -10
  47. tencentcloud/cwp/v20180228/cwp_client.py +29 -2
  48. tencentcloud/cwp/v20180228/models.py +314 -13
  49. tencentcloud/cynosdb/v20190107/cynosdb_client.py +115 -0
  50. tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
  51. tencentcloud/cynosdb/v20190107/models.py +862 -52
  52. tencentcloud/dasb/v20191018/dasb_client.py +23 -0
  53. tencentcloud/dasb/v20191018/errorcodes.py +3 -0
  54. tencentcloud/dasb/v20191018/models.py +277 -0
  55. tencentcloud/dbbrain/v20210527/models.py +212 -2
  56. tencentcloud/dc/v20180410/dc_client.py +7 -8
  57. tencentcloud/dc/v20180410/models.py +84 -25
  58. tencentcloud/dcdb/v20180411/dcdb_client.py +71 -0
  59. tencentcloud/dcdb/v20180411/models.py +636 -0
  60. tencentcloud/dlc/v20210125/dlc_client.py +47 -1
  61. tencentcloud/dlc/v20210125/errorcodes.py +3 -0
  62. tencentcloud/dlc/v20210125/models.py +661 -6
  63. tencentcloud/dnspod/v20210323/dnspod_client.py +23 -0
  64. tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
  65. tencentcloud/dnspod/v20210323/models.py +185 -0
  66. tencentcloud/dsgc/v20190723/models.py +193 -15
  67. tencentcloud/dts/v20211206/errorcodes.py +3 -0
  68. tencentcloud/ecc/v20181213/ecc_client.py +1 -2
  69. tencentcloud/emr/v20190103/emr_client.py +331 -4
  70. tencentcloud/emr/v20190103/errorcodes.py +12 -0
  71. tencentcloud/emr/v20190103/models.py +6832 -3365
  72. tencentcloud/es/v20180416/es_client.py +47 -0
  73. tencentcloud/es/v20180416/models.py +547 -1
  74. tencentcloud/ess/v20201111/errorcodes.py +6 -0
  75. tencentcloud/ess/v20201111/ess_client.py +142 -24
  76. tencentcloud/ess/v20201111/models.py +763 -103
  77. tencentcloud/essbasic/v20210526/essbasic_client.py +77 -3
  78. tencentcloud/essbasic/v20210526/models.py +413 -24
  79. tencentcloud/facefusion/v20181201/models.py +9 -3
  80. tencentcloud/facefusion/v20220927/errorcodes.py +13 -67
  81. tencentcloud/facefusion/v20220927/models.py +41 -13
  82. tencentcloud/faceid/v20180301/faceid_client.py +1 -1
  83. tencentcloud/faceid/v20180301/models.py +66 -0
  84. tencentcloud/gme/v20180711/models.py +2 -2
  85. tencentcloud/goosefs/v20220519/models.py +61 -0
  86. tencentcloud/hunyuan/v20230901/errorcodes.py +39 -0
  87. tencentcloud/hunyuan/v20230901/hunyuan_client.py +99 -1
  88. tencentcloud/hunyuan/v20230901/models.py +661 -13
  89. tencentcloud/ims/v20201229/ims_client.py +3 -3
  90. tencentcloud/ims/v20201229/models.py +1 -1
  91. tencentcloud/ioa/v20220601/models.py +6 -5
  92. tencentcloud/iotexplorer/v20190423/errorcodes.py +15 -0
  93. tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +46 -0
  94. tencentcloud/iotexplorer/v20190423/models.py +357 -2
  95. tencentcloud/irp/v20220805/models.py +13 -1
  96. tencentcloud/iss/v20230517/errorcodes.py +15 -0
  97. tencentcloud/iss/v20230517/iss_client.py +23 -0
  98. tencentcloud/iss/v20230517/models.py +233 -0
  99. tencentcloud/lcic/v20220817/lcic_client.py +23 -0
  100. tencentcloud/lcic/v20220817/models.py +285 -0
  101. tencentcloud/lighthouse/v20200324/errorcodes.py +6 -0
  102. tencentcloud/lighthouse/v20200324/models.py +28 -0
  103. tencentcloud/live/v20180801/models.py +2 -10
  104. tencentcloud/lke/v20231130/errorcodes.py +1 -1
  105. tencentcloud/lke/v20231130/lke_client.py +1 -1
  106. tencentcloud/lke/v20231130/models.py +366 -6
  107. tencentcloud/mariadb/v20170312/errorcodes.py +6 -0
  108. tencentcloud/mariadb/v20170312/mariadb_client.py +71 -0
  109. tencentcloud/mariadb/v20170312/models.py +601 -1
  110. tencentcloud/mna/v20210119/errorcodes.py +6 -0
  111. tencentcloud/mna/v20210119/mna_client.py +23 -0
  112. tencentcloud/mna/v20210119/models.py +146 -0
  113. tencentcloud/mongodb/v20180408/errorcodes.py +1 -1
  114. tencentcloud/mongodb/v20190725/errorcodes.py +1 -1
  115. tencentcloud/mongodb/v20190725/models.py +72 -45
  116. tencentcloud/monitor/v20180724/models.py +18 -4
  117. tencentcloud/mps/v20190612/models.py +658 -21
  118. tencentcloud/oceanus/v20190422/models.py +25 -0
  119. tencentcloud/ocr/v20181119/errorcodes.py +6 -0
  120. tencentcloud/ocr/v20181119/models.py +345 -10
  121. tencentcloud/ocr/v20181119/ocr_client.py +54 -2
  122. tencentcloud/omics/v20221128/models.py +15 -3
  123. tencentcloud/organization/v20210331/errorcodes.py +246 -0
  124. tencentcloud/organization/v20210331/models.py +12635 -4016
  125. tencentcloud/organization/v20210331/organization_client.py +1342 -123
  126. tencentcloud/postgres/v20170312/errorcodes.py +15 -0
  127. tencentcloud/pts/v20210728/errorcodes.py +3 -0
  128. tencentcloud/pts/v20210728/models.py +1 -1
  129. tencentcloud/rce/v20201103/models.py +2905 -435
  130. tencentcloud/rce/v20201103/rce_client.py +207 -0
  131. tencentcloud/redis/v20180412/models.py +944 -67
  132. tencentcloud/redis/v20180412/redis_client.py +93 -1
  133. tencentcloud/region/v20220627/models.py +0 -1
  134. tencentcloud/rum/v20210622/models.py +12 -0
  135. tencentcloud/scf/v20180416/models.py +51 -15
  136. tencentcloud/ses/v20201002/models.py +177 -0
  137. tencentcloud/smh/v20210712/errorcodes.py +69 -0
  138. tencentcloud/smh/v20210712/models.py +1173 -36
  139. tencentcloud/smh/v20210712/smh_client.py +115 -0
  140. tencentcloud/sms/v20190711/errorcodes.py +6 -0
  141. tencentcloud/sms/v20190711/models.py +21 -22
  142. tencentcloud/sms/v20190711/sms_client.py +28 -60
  143. tencentcloud/sms/v20210111/errorcodes.py +6 -0
  144. tencentcloud/sms/v20210111/models.py +6 -6
  145. tencentcloud/sqlserver/v20180328/errorcodes.py +3 -0
  146. tencentcloud/sqlserver/v20180328/models.py +243 -1
  147. tencentcloud/sqlserver/v20180328/sqlserver_client.py +46 -0
  148. tencentcloud/ssl/v20191205/errorcodes.py +6 -0
  149. tencentcloud/ssl/v20191205/models.py +245 -0
  150. tencentcloud/ssl/v20191205/ssl_client.py +24 -1
  151. tencentcloud/tag/v20180813/models.py +33 -33
  152. tencentcloud/tat/v20201028/errorcodes.py +9 -0
  153. tencentcloud/tat/v20201028/models.py +234 -1
  154. tencentcloud/tat/v20201028/tat_client.py +23 -0
  155. tencentcloud/tcb/v20180608/models.py +13 -0
  156. tencentcloud/tcbr/v20220217/models.py +15 -0
  157. tencentcloud/tcr/v20190924/errorcodes.py +3 -0
  158. tencentcloud/tcss/v20201101/models.py +140 -5
  159. tencentcloud/tdmq/v20200217/models.py +155 -0
  160. tencentcloud/tds/v20220801/models.py +117 -0
  161. tencentcloud/teo/v20220901/errorcodes.py +12 -0
  162. tencentcloud/teo/v20220901/models.py +35 -16
  163. tencentcloud/thpc/v20230321/models.py +1432 -82
  164. tencentcloud/thpc/v20230321/thpc_client.py +92 -0
  165. tencentcloud/tiia/v20190529/models.py +0 -469
  166. tencentcloud/tiia/v20190529/tiia_client.py +0 -29
  167. tencentcloud/tke/v20180525/errorcodes.py +3 -0
  168. tencentcloud/tke/v20180525/models.py +24 -0
  169. tencentcloud/tke/v20220501/models.py +852 -8
  170. tencentcloud/tke/v20220501/tke_client.py +138 -0
  171. tencentcloud/tms/v20201229/errorcodes.py +0 -6
  172. tencentcloud/tms/v20201229/models.py +0 -70
  173. tencentcloud/tms/v20201229/tms_client.py +0 -23
  174. tencentcloud/tmt/v20180321/errorcodes.py +3 -0
  175. tencentcloud/tmt/v20180321/models.py +32 -32
  176. tencentcloud/tmt/v20180321/tmt_client.py +1 -1
  177. tencentcloud/trocket/v20230308/models.py +241 -7
  178. tencentcloud/trocket/v20230308/trocket_client.py +23 -0
  179. tencentcloud/trtc/v20190722/errorcodes.py +3 -0
  180. tencentcloud/trtc/v20190722/models.py +374 -55
  181. tencentcloud/trtc/v20190722/trtc_client.py +51 -39
  182. tencentcloud/tse/v20201207/models.py +127 -25
  183. tencentcloud/tsf/v20180326/models.py +51 -0
  184. tencentcloud/tsi/v20210325/models.py +24 -4
  185. tencentcloud/tsi/v20210325/tsi_client.py +12 -1
  186. tencentcloud/tts/v20190823/models.py +4 -3
  187. tencentcloud/vclm/v20240523/errorcodes.py +60 -0
  188. tencentcloud/vclm/v20240523/models.py +41 -4
  189. tencentcloud/vclm/v20240523/vclm_client.py +53 -1
  190. tencentcloud/vdb/v20230616/errorcodes.py +21 -0
  191. tencentcloud/vdb/v20230616/models.py +805 -0
  192. tencentcloud/vdb/v20230616/vdb_client.py +115 -0
  193. tencentcloud/vod/v20180717/errorcodes.py +18 -0
  194. tencentcloud/vod/v20180717/models.py +671 -12
  195. tencentcloud/vod/v20180717/vod_client.py +71 -2
  196. tencentcloud/vod/v20240718/__init__.py +0 -0
  197. tencentcloud/vod/v20240718/errorcodes.py +15 -0
  198. tencentcloud/vod/v20240718/models.py +189 -0
  199. tencentcloud/vod/v20240718/vod_client.py +49 -0
  200. tencentcloud/vpc/v20170312/models.py +538 -10
  201. tencentcloud/vpc/v20170312/vpc_client.py +4 -2
  202. tencentcloud/vrs/v20200824/models.py +166 -8
  203. tencentcloud/vrs/v20200824/vrs_client.py +2 -0
  204. tencentcloud/vtc/v20240223/models.py +30 -4
  205. tencentcloud/vtc/v20240223/vtc_client.py +53 -1
  206. tencentcloud/waf/v20180125/models.py +1 -1
  207. tencentcloud/wedata/v20210820/errorcodes.py +6 -0
  208. tencentcloud/wedata/v20210820/models.py +3941 -493
  209. tencentcloud/wedata/v20210820/wedata_client.py +184 -0
  210. {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/METADATA +1 -1
  211. {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/RECORD +214 -205
  212. {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/LICENSE +0 -0
  213. {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/WHEEL +0 -0
  214. {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/top_level.txt +0 -0
@@ -1760,6 +1760,29 @@ class VodClient(AbstractClient):
1760
1760
  raise TencentCloudSDKException(type(e).__name__, str(e))
1761
1761
 
1762
1762
 
1763
+ def DescribeCurrentPlaylist(self, request):
1764
+ """查询轮播当前播放列表。
1765
+
1766
+ :param request: Request instance for DescribeCurrentPlaylist.
1767
+ :type request: :class:`tencentcloud.vod.v20180717.models.DescribeCurrentPlaylistRequest`
1768
+ :rtype: :class:`tencentcloud.vod.v20180717.models.DescribeCurrentPlaylistResponse`
1769
+
1770
+ """
1771
+ try:
1772
+ params = request._serialize()
1773
+ headers = request.headers
1774
+ body = self.call("DescribeCurrentPlaylist", params, headers=headers)
1775
+ response = json.loads(body)
1776
+ model = models.DescribeCurrentPlaylistResponse()
1777
+ model._deserialize(response["Response"])
1778
+ return model
1779
+ except Exception as e:
1780
+ if isinstance(e, TencentCloudSDKException):
1781
+ raise
1782
+ else:
1783
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1784
+
1785
+
1763
1786
  def DescribeDailyMediaPlayStat(self, request):
1764
1787
  """该接口用于查询指定日期范围内每天的播放统计数据。
1765
1788
  * 可以查询最近一年的播放统计数据。
@@ -2853,7 +2876,7 @@ class VodClient(AbstractClient):
2853
2876
 
2854
2877
 
2855
2878
  def ExtractCopyRightWatermark(self, request):
2856
- """提取版权水印信息。
2879
+ """该 API 已经<font color='red'>不再维护</font>。如果有盗录溯源需求,请参考 [幽灵水印](https://cloud.tencent.com/document/product/266/94228)。
2857
2880
 
2858
2881
  :param request: Request instance for ExtractCopyRightWatermark.
2859
2882
  :type request: :class:`tencentcloud.vod.v20180717.models.ExtractCopyRightWatermarkRequest`
@@ -2876,7 +2899,7 @@ class VodClient(AbstractClient):
2876
2899
 
2877
2900
 
2878
2901
  def ExtractTraceWatermark(self, request):
2879
- """用于提取溯源水印。
2902
+ """该 API 已经<font color='red'>不再维护</font>。如果有盗录溯源需求,请参考 [幽灵水印](https://cloud.tencent.com/document/product/266/94228)。
2880
2903
 
2881
2904
  :param request: Request instance for ExtractTraceWatermark.
2882
2905
  :type request: :class:`tencentcloud.vod.v20180717.models.ExtractTraceWatermarkRequest`
@@ -2898,6 +2921,29 @@ class VodClient(AbstractClient):
2898
2921
  raise TencentCloudSDKException(type(e).__name__, str(e))
2899
2922
 
2900
2923
 
2924
+ def FastEditMedia(self, request):
2925
+ """对 HLS 视频实现快速拼接和快速剪辑,生成新的 HLS 格式的媒体。
2926
+
2927
+ :param request: Request instance for FastEditMedia.
2928
+ :type request: :class:`tencentcloud.vod.v20180717.models.FastEditMediaRequest`
2929
+ :rtype: :class:`tencentcloud.vod.v20180717.models.FastEditMediaResponse`
2930
+
2931
+ """
2932
+ try:
2933
+ params = request._serialize()
2934
+ headers = request.headers
2935
+ body = self.call("FastEditMedia", params, headers=headers)
2936
+ response = json.loads(body)
2937
+ model = models.FastEditMediaResponse()
2938
+ model._deserialize(response["Response"])
2939
+ return model
2940
+ except Exception as e:
2941
+ if isinstance(e, TencentCloudSDKException):
2942
+ raise
2943
+ else:
2944
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2945
+
2946
+
2901
2947
  def ForbidMediaDistribution(self, request):
2902
2948
  """* 对媒体禁播后,除了点播控制台预览,其他场景访问视频各种资源的 URL(原始文件、转码输出文件、截图等)均会返回 403。
2903
2949
  禁播/解禁操作全网生效时间约 5~10 分钟。
@@ -2922,6 +2968,29 @@ class VodClient(AbstractClient):
2922
2968
  raise TencentCloudSDKException(type(e).__name__, str(e))
2923
2969
 
2924
2970
 
2971
+ def HandleCurrentPlaylist(self, request):
2972
+ """操作轮播当前播放列表。支持的操作有:<li> Insert:向当前播列表插入播放节目。</li><li> Delete:删除播列表中的播放节目。</li>
2973
+
2974
+ :param request: Request instance for HandleCurrentPlaylist.
2975
+ :type request: :class:`tencentcloud.vod.v20180717.models.HandleCurrentPlaylistRequest`
2976
+ :rtype: :class:`tencentcloud.vod.v20180717.models.HandleCurrentPlaylistResponse`
2977
+
2978
+ """
2979
+ try:
2980
+ params = request._serialize()
2981
+ headers = request.headers
2982
+ body = self.call("HandleCurrentPlaylist", params, headers=headers)
2983
+ response = json.loads(body)
2984
+ model = models.HandleCurrentPlaylistResponse()
2985
+ model._deserialize(response["Response"])
2986
+ return model
2987
+ except Exception as e:
2988
+ if isinstance(e, TencentCloudSDKException):
2989
+ raise
2990
+ else:
2991
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2992
+
2993
+
2925
2994
  def InspectMediaQuality(self, request):
2926
2995
  """对点播中的音视频媒体发起音画质检测任务。
2927
2996
 
File without changes
@@ -0,0 +1,15 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
@@ -0,0 +1,189 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import warnings
17
+
18
+ from tencentcloud.common.abstract_model import AbstractModel
19
+
20
+
21
+ class CreateStorageCredentialsRequest(AbstractModel):
22
+ """CreateStorageCredentials请求参数结构体
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _SubAppId: <b>点播[应用](/document/product/266/14574) ID。</b>
29
+ :type SubAppId: int
30
+ :param _Policy: 按照下方语法组装好策略后,先序列化为字符串,再做 urlencode,结果作为 Policy 字段入参。服务端会对该字段做 urldecode,并按解析后的策略授予临时访问凭证权限,请按规范传入参数。
31
+ 注意:
32
+ 1.策略语法参照[访问管理策略](/document/product/598/10603)。
33
+ 2.策略中不能包含 principal 元素。
34
+ 3.策略的 action 元素仅支持:<li>name/vod:PutObject;</li><li>name/vod:ListParts;</li><li>name/vod:PostObject;</li><li>name/vod:InitiateMultipartUpload;</li><li>name/vod:UploadPart;</li><li>name/vod:CompleteMultipartUpload;</li><li>name/vod:AbortMultipartUpload;</li><li>name/vod:ListMultipartUploads;</li>4.策略的 resource 元素填写格式为:qcs::vod::uid/[账号AppID]:prefix//[子应用ID]/[存储桶ID]/[存储路径],其中账号AppID、子应用ID、存储桶ID和存储路径要按需填写,其他内容不允许改动,例:qcs::vod::uid/1:prefix//1/1/path。
35
+
36
+ :type Policy: str
37
+ :param _DurationSeconds: 指定临时证书的有效期,单位:秒。
38
+ 默认 1800 秒,最大 129600 秒。
39
+ :type DurationSeconds: int
40
+ """
41
+ self._SubAppId = None
42
+ self._Policy = None
43
+ self._DurationSeconds = None
44
+
45
+ @property
46
+ def SubAppId(self):
47
+ return self._SubAppId
48
+
49
+ @SubAppId.setter
50
+ def SubAppId(self, SubAppId):
51
+ self._SubAppId = SubAppId
52
+
53
+ @property
54
+ def Policy(self):
55
+ return self._Policy
56
+
57
+ @Policy.setter
58
+ def Policy(self, Policy):
59
+ self._Policy = Policy
60
+
61
+ @property
62
+ def DurationSeconds(self):
63
+ return self._DurationSeconds
64
+
65
+ @DurationSeconds.setter
66
+ def DurationSeconds(self, DurationSeconds):
67
+ self._DurationSeconds = DurationSeconds
68
+
69
+
70
+ def _deserialize(self, params):
71
+ self._SubAppId = params.get("SubAppId")
72
+ self._Policy = params.get("Policy")
73
+ self._DurationSeconds = params.get("DurationSeconds")
74
+ memeber_set = set(params.keys())
75
+ for name, value in vars(self).items():
76
+ property_name = name[1:]
77
+ if property_name in memeber_set:
78
+ memeber_set.remove(property_name)
79
+ if len(memeber_set) > 0:
80
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
81
+
82
+
83
+
84
+ class CreateStorageCredentialsResponse(AbstractModel):
85
+ """CreateStorageCredentials返回参数结构体
86
+
87
+ """
88
+
89
+ def __init__(self):
90
+ r"""
91
+ :param _Credentials: 临时访问凭证。
92
+ :type Credentials: :class:`tencentcloud.vod.v20240718.models.Credentials`
93
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
94
+ :type RequestId: str
95
+ """
96
+ self._Credentials = None
97
+ self._RequestId = None
98
+
99
+ @property
100
+ def Credentials(self):
101
+ return self._Credentials
102
+
103
+ @Credentials.setter
104
+ def Credentials(self, Credentials):
105
+ self._Credentials = Credentials
106
+
107
+ @property
108
+ def RequestId(self):
109
+ return self._RequestId
110
+
111
+ @RequestId.setter
112
+ def RequestId(self, RequestId):
113
+ self._RequestId = RequestId
114
+
115
+
116
+ def _deserialize(self, params):
117
+ if params.get("Credentials") is not None:
118
+ self._Credentials = Credentials()
119
+ self._Credentials._deserialize(params.get("Credentials"))
120
+ self._RequestId = params.get("RequestId")
121
+
122
+
123
+ class Credentials(AbstractModel):
124
+ """临时证书。
125
+
126
+ """
127
+
128
+ def __init__(self):
129
+ r"""
130
+ :param _AccessKeyId: 秘钥 ID。
131
+ :type AccessKeyId: str
132
+ :param _SecretAccessKey: 秘钥 Key。
133
+ :type SecretAccessKey: str
134
+ :param _SessionToken: token。token长度和绑定的策略有关,最长不超过4096字节。
135
+ :type SessionToken: str
136
+ :param _Expiration: 凭据的过期时间。
137
+ :type Expiration: str
138
+ """
139
+ self._AccessKeyId = None
140
+ self._SecretAccessKey = None
141
+ self._SessionToken = None
142
+ self._Expiration = None
143
+
144
+ @property
145
+ def AccessKeyId(self):
146
+ return self._AccessKeyId
147
+
148
+ @AccessKeyId.setter
149
+ def AccessKeyId(self, AccessKeyId):
150
+ self._AccessKeyId = AccessKeyId
151
+
152
+ @property
153
+ def SecretAccessKey(self):
154
+ return self._SecretAccessKey
155
+
156
+ @SecretAccessKey.setter
157
+ def SecretAccessKey(self, SecretAccessKey):
158
+ self._SecretAccessKey = SecretAccessKey
159
+
160
+ @property
161
+ def SessionToken(self):
162
+ return self._SessionToken
163
+
164
+ @SessionToken.setter
165
+ def SessionToken(self, SessionToken):
166
+ self._SessionToken = SessionToken
167
+
168
+ @property
169
+ def Expiration(self):
170
+ return self._Expiration
171
+
172
+ @Expiration.setter
173
+ def Expiration(self, Expiration):
174
+ self._Expiration = Expiration
175
+
176
+
177
+ def _deserialize(self, params):
178
+ self._AccessKeyId = params.get("AccessKeyId")
179
+ self._SecretAccessKey = params.get("SecretAccessKey")
180
+ self._SessionToken = params.get("SessionToken")
181
+ self._Expiration = params.get("Expiration")
182
+ memeber_set = set(params.keys())
183
+ for name, value in vars(self).items():
184
+ property_name = name[1:]
185
+ if property_name in memeber_set:
186
+ memeber_set.remove(property_name)
187
+ if len(memeber_set) > 0:
188
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
189
+
@@ -0,0 +1,49 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.vod.v20240718 import models
21
+
22
+
23
+ class VodClient(AbstractClient):
24
+ _apiVersion = '2024-07-18'
25
+ _endpoint = 'vod.tencentcloudapi.com'
26
+ _service = 'vod'
27
+
28
+
29
+ def CreateStorageCredentials(self, request):
30
+ """用于按指定策略,生成专业版应用的临时访问凭证,比如生成用于客户端上传的临时凭证。
31
+
32
+ :param request: Request instance for CreateStorageCredentials.
33
+ :type request: :class:`tencentcloud.vod.v20240718.models.CreateStorageCredentialsRequest`
34
+ :rtype: :class:`tencentcloud.vod.v20240718.models.CreateStorageCredentialsResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("CreateStorageCredentials", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.CreateStorageCredentialsResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))