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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/aiart/v20221229/aiart_client.py +24 -0
- tencentcloud/aiart/v20221229/models.py +214 -15
- tencentcloud/ams/v20201229/models.py +24 -0
- tencentcloud/antiddos/v20200309/models.py +13 -1
- tencentcloud/apm/v20210622/errorcodes.py +3 -0
- tencentcloud/apm/v20210622/models.py +25 -0
- tencentcloud/asr/v20190614/asr_client.py +103 -1
- tencentcloud/asr/v20190614/errorcodes.py +3 -0
- tencentcloud/asr/v20190614/models.py +620 -0
- tencentcloud/autoscaling/v20180419/errorcodes.py +6 -0
- tencentcloud/autoscaling/v20180419/models.py +67 -20
- tencentcloud/batch/v20170312/models.py +2 -2
- tencentcloud/bi/v20220105/models.py +25 -0
- tencentcloud/billing/v20180709/models.py +155 -0
- tencentcloud/cam/v20190116/cam_client.py +46 -0
- tencentcloud/cam/v20190116/errorcodes.py +6 -0
- tencentcloud/cam/v20190116/models.py +301 -0
- tencentcloud/cbs/v20170312/models.py +1 -1
- tencentcloud/ccc/v20200210/models.py +42 -12
- tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- tencentcloud/cdb/v20170320/models.py +359 -11
- tencentcloud/cdwch/v20200915/models.py +1 -1
- tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +618 -66
- tencentcloud/cdwdoris/v20211228/errorcodes.py +0 -3
- tencentcloud/cdwdoris/v20211228/models.py +8041 -3844
- tencentcloud/cfg/v20210820/models.py +195 -1
- tencentcloud/cfs/v20190719/cfs_client.py +2 -2
- tencentcloud/cfs/v20190719/errorcodes.py +9 -0
- tencentcloud/cfs/v20190719/models.py +55 -5
- tencentcloud/cfw/v20190904/cfw_client.py +46 -25
- tencentcloud/cfw/v20190904/models.py +1056 -249
- tencentcloud/ckafka/v20190819/ckafka_client.py +24 -1
- tencentcloud/ckafka/v20190819/models.py +175 -2
- tencentcloud/clb/v20180317/models.py +147 -3
- tencentcloud/cls/v20201016/cls_client.py +92 -0
- tencentcloud/cls/v20201016/models.py +764 -16
- tencentcloud/controlcenter/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/controlcenter_client.py +49 -0
- tencentcloud/controlcenter/v20230110/errorcodes.py +45 -0
- tencentcloud/controlcenter/v20230110/models.py +140 -0
- tencentcloud/csip/v20221121/models.py +409 -0
- tencentcloud/cvm/v20170312/cvm_client.py +24 -1
- tencentcloud/cvm/v20170312/errorcodes.py +24 -0
- tencentcloud/cvm/v20170312/models.py +185 -10
- tencentcloud/cwp/v20180228/cwp_client.py +29 -2
- tencentcloud/cwp/v20180228/models.py +314 -13
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +115 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
- tencentcloud/cynosdb/v20190107/models.py +862 -52
- tencentcloud/dasb/v20191018/dasb_client.py +23 -0
- tencentcloud/dasb/v20191018/errorcodes.py +3 -0
- tencentcloud/dasb/v20191018/models.py +277 -0
- tencentcloud/dbbrain/v20210527/models.py +212 -2
- tencentcloud/dc/v20180410/dc_client.py +7 -8
- tencentcloud/dc/v20180410/models.py +84 -25
- tencentcloud/dcdb/v20180411/dcdb_client.py +71 -0
- tencentcloud/dcdb/v20180411/models.py +636 -0
- tencentcloud/dlc/v20210125/dlc_client.py +47 -1
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +661 -6
- tencentcloud/dnspod/v20210323/dnspod_client.py +23 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
- tencentcloud/dnspod/v20210323/models.py +185 -0
- tencentcloud/dsgc/v20190723/models.py +193 -15
- tencentcloud/dts/v20211206/errorcodes.py +3 -0
- tencentcloud/ecc/v20181213/ecc_client.py +1 -2
- tencentcloud/emr/v20190103/emr_client.py +331 -4
- tencentcloud/emr/v20190103/errorcodes.py +12 -0
- tencentcloud/emr/v20190103/models.py +6832 -3365
- tencentcloud/es/v20180416/es_client.py +47 -0
- tencentcloud/es/v20180416/models.py +547 -1
- tencentcloud/ess/v20201111/errorcodes.py +6 -0
- tencentcloud/ess/v20201111/ess_client.py +142 -24
- tencentcloud/ess/v20201111/models.py +763 -103
- tencentcloud/essbasic/v20210526/essbasic_client.py +77 -3
- tencentcloud/essbasic/v20210526/models.py +413 -24
- tencentcloud/facefusion/v20181201/models.py +9 -3
- tencentcloud/facefusion/v20220927/errorcodes.py +13 -67
- tencentcloud/facefusion/v20220927/models.py +41 -13
- tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- tencentcloud/faceid/v20180301/models.py +66 -0
- tencentcloud/gme/v20180711/models.py +2 -2
- tencentcloud/goosefs/v20220519/models.py +61 -0
- tencentcloud/hunyuan/v20230901/errorcodes.py +39 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +99 -1
- tencentcloud/hunyuan/v20230901/models.py +661 -13
- tencentcloud/ims/v20201229/ims_client.py +3 -3
- tencentcloud/ims/v20201229/models.py +1 -1
- tencentcloud/ioa/v20220601/models.py +6 -5
- tencentcloud/iotexplorer/v20190423/errorcodes.py +15 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +46 -0
- tencentcloud/iotexplorer/v20190423/models.py +357 -2
- tencentcloud/irp/v20220805/models.py +13 -1
- tencentcloud/iss/v20230517/errorcodes.py +15 -0
- tencentcloud/iss/v20230517/iss_client.py +23 -0
- tencentcloud/iss/v20230517/models.py +233 -0
- tencentcloud/lcic/v20220817/lcic_client.py +23 -0
- tencentcloud/lcic/v20220817/models.py +285 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +6 -0
- tencentcloud/lighthouse/v20200324/models.py +28 -0
- tencentcloud/live/v20180801/models.py +2 -10
- tencentcloud/lke/v20231130/errorcodes.py +1 -1
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/lke/v20231130/models.py +366 -6
- tencentcloud/mariadb/v20170312/errorcodes.py +6 -0
- tencentcloud/mariadb/v20170312/mariadb_client.py +71 -0
- tencentcloud/mariadb/v20170312/models.py +601 -1
- tencentcloud/mna/v20210119/errorcodes.py +6 -0
- tencentcloud/mna/v20210119/mna_client.py +23 -0
- tencentcloud/mna/v20210119/models.py +146 -0
- tencentcloud/mongodb/v20180408/errorcodes.py +1 -1
- tencentcloud/mongodb/v20190725/errorcodes.py +1 -1
- tencentcloud/mongodb/v20190725/models.py +72 -45
- tencentcloud/monitor/v20180724/models.py +18 -4
- tencentcloud/mps/v20190612/models.py +658 -21
- tencentcloud/oceanus/v20190422/models.py +25 -0
- tencentcloud/ocr/v20181119/errorcodes.py +6 -0
- tencentcloud/ocr/v20181119/models.py +345 -10
- tencentcloud/ocr/v20181119/ocr_client.py +54 -2
- tencentcloud/omics/v20221128/models.py +15 -3
- tencentcloud/organization/v20210331/errorcodes.py +246 -0
- tencentcloud/organization/v20210331/models.py +12635 -4016
- tencentcloud/organization/v20210331/organization_client.py +1342 -123
- tencentcloud/postgres/v20170312/errorcodes.py +15 -0
- tencentcloud/pts/v20210728/errorcodes.py +3 -0
- tencentcloud/pts/v20210728/models.py +1 -1
- tencentcloud/rce/v20201103/models.py +2905 -435
- tencentcloud/rce/v20201103/rce_client.py +207 -0
- tencentcloud/redis/v20180412/models.py +944 -67
- tencentcloud/redis/v20180412/redis_client.py +93 -1
- tencentcloud/region/v20220627/models.py +0 -1
- tencentcloud/rum/v20210622/models.py +12 -0
- tencentcloud/scf/v20180416/models.py +51 -15
- tencentcloud/ses/v20201002/models.py +177 -0
- tencentcloud/smh/v20210712/errorcodes.py +69 -0
- tencentcloud/smh/v20210712/models.py +1173 -36
- tencentcloud/smh/v20210712/smh_client.py +115 -0
- tencentcloud/sms/v20190711/errorcodes.py +6 -0
- tencentcloud/sms/v20190711/models.py +21 -22
- tencentcloud/sms/v20190711/sms_client.py +28 -60
- tencentcloud/sms/v20210111/errorcodes.py +6 -0
- tencentcloud/sms/v20210111/models.py +6 -6
- tencentcloud/sqlserver/v20180328/errorcodes.py +3 -0
- tencentcloud/sqlserver/v20180328/models.py +243 -1
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +46 -0
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/ssl/v20191205/models.py +245 -0
- tencentcloud/ssl/v20191205/ssl_client.py +24 -1
- tencentcloud/tag/v20180813/models.py +33 -33
- tencentcloud/tat/v20201028/errorcodes.py +9 -0
- tencentcloud/tat/v20201028/models.py +234 -1
- tencentcloud/tat/v20201028/tat_client.py +23 -0
- tencentcloud/tcb/v20180608/models.py +13 -0
- tencentcloud/tcbr/v20220217/models.py +15 -0
- tencentcloud/tcr/v20190924/errorcodes.py +3 -0
- tencentcloud/tcss/v20201101/models.py +140 -5
- tencentcloud/tdmq/v20200217/models.py +155 -0
- tencentcloud/tds/v20220801/models.py +117 -0
- tencentcloud/teo/v20220901/errorcodes.py +12 -0
- tencentcloud/teo/v20220901/models.py +35 -16
- tencentcloud/thpc/v20230321/models.py +1432 -82
- tencentcloud/thpc/v20230321/thpc_client.py +92 -0
- tencentcloud/tiia/v20190529/models.py +0 -469
- tencentcloud/tiia/v20190529/tiia_client.py +0 -29
- tencentcloud/tke/v20180525/errorcodes.py +3 -0
- tencentcloud/tke/v20180525/models.py +24 -0
- tencentcloud/tke/v20220501/models.py +852 -8
- tencentcloud/tke/v20220501/tke_client.py +138 -0
- tencentcloud/tms/v20201229/errorcodes.py +0 -6
- tencentcloud/tms/v20201229/models.py +0 -70
- tencentcloud/tms/v20201229/tms_client.py +0 -23
- tencentcloud/tmt/v20180321/errorcodes.py +3 -0
- tencentcloud/tmt/v20180321/models.py +32 -32
- tencentcloud/tmt/v20180321/tmt_client.py +1 -1
- tencentcloud/trocket/v20230308/models.py +241 -7
- tencentcloud/trocket/v20230308/trocket_client.py +23 -0
- tencentcloud/trtc/v20190722/errorcodes.py +3 -0
- tencentcloud/trtc/v20190722/models.py +374 -55
- tencentcloud/trtc/v20190722/trtc_client.py +51 -39
- tencentcloud/tse/v20201207/models.py +127 -25
- tencentcloud/tsf/v20180326/models.py +51 -0
- tencentcloud/tsi/v20210325/models.py +24 -4
- tencentcloud/tsi/v20210325/tsi_client.py +12 -1
- tencentcloud/tts/v20190823/models.py +4 -3
- tencentcloud/vclm/v20240523/errorcodes.py +60 -0
- tencentcloud/vclm/v20240523/models.py +41 -4
- tencentcloud/vclm/v20240523/vclm_client.py +53 -1
- tencentcloud/vdb/v20230616/errorcodes.py +21 -0
- tencentcloud/vdb/v20230616/models.py +805 -0
- tencentcloud/vdb/v20230616/vdb_client.py +115 -0
- tencentcloud/vod/v20180717/errorcodes.py +18 -0
- tencentcloud/vod/v20180717/models.py +671 -12
- tencentcloud/vod/v20180717/vod_client.py +71 -2
- tencentcloud/vod/v20240718/__init__.py +0 -0
- tencentcloud/vod/v20240718/errorcodes.py +15 -0
- tencentcloud/vod/v20240718/models.py +189 -0
- tencentcloud/vod/v20240718/vod_client.py +49 -0
- tencentcloud/vpc/v20170312/models.py +538 -10
- tencentcloud/vpc/v20170312/vpc_client.py +4 -2
- tencentcloud/vrs/v20200824/models.py +166 -8
- tencentcloud/vrs/v20200824/vrs_client.py +2 -0
- tencentcloud/vtc/v20240223/models.py +30 -4
- tencentcloud/vtc/v20240223/vtc_client.py +53 -1
- tencentcloud/waf/v20180125/models.py +1 -1
- tencentcloud/wedata/v20210820/errorcodes.py +6 -0
- tencentcloud/wedata/v20210820/models.py +3941 -493
- tencentcloud/wedata/v20210820/wedata_client.py +184 -0
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/RECORD +214 -205
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/WHEEL +0 -0
- {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))
|