tencentcloud-sdk-python-vod 3.0.1228__tar.gz → 3.0.1230__tar.gz

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 (20) hide show
  1. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/setup.py +1 -1
  3. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud/__init__.py +1 -1
  4. tencentcloud-sdk-python-vod-3.0.1230/tencentcloud/vod/v20240718/__init__.py +0 -0
  5. tencentcloud-sdk-python-vod-3.0.1230/tencentcloud/vod/v20240718/errorcodes.py +15 -0
  6. tencentcloud-sdk-python-vod-3.0.1230/tencentcloud/vod/v20240718/models.py +189 -0
  7. tencentcloud-sdk-python-vod-3.0.1230/tencentcloud/vod/v20240718/vod_client.py +49 -0
  8. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud_sdk_python_vod.egg-info/PKG-INFO +1 -1
  9. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud_sdk_python_vod.egg-info/SOURCES.txt +4 -0
  10. tencentcloud-sdk-python-vod-3.0.1230/tencentcloud_sdk_python_vod.egg-info/requires.txt +1 -0
  11. tencentcloud-sdk-python-vod-3.0.1228/tencentcloud_sdk_python_vod.egg-info/requires.txt +0 -1
  12. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/README.rst +0 -0
  13. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/setup.cfg +0 -0
  14. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud/vod/__init__.py +0 -0
  15. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud/vod/v20180717/__init__.py +0 -0
  16. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud/vod/v20180717/errorcodes.py +0 -0
  17. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud/vod/v20180717/models.py +0 -0
  18. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud/vod/v20180717/vod_client.py +0 -0
  19. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud_sdk_python_vod.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud-sdk-python-vod-3.0.1228 → tencentcloud-sdk-python-vod-3.0.1230}/tencentcloud_sdk_python_vod.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-vod
3
- Version: 3.0.1228
3
+ Version: 3.0.1230
4
4
  Summary: Tencent Cloud Vod SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-vod',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1228"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1230"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Vod SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1228'
17
+ __version__ = '3.0.1230'
@@ -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))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-vod
3
- Version: 3.0.1228
3
+ Version: 3.0.1230
4
4
  Summary: Tencent Cloud Vod SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -7,6 +7,10 @@ tencentcloud/vod/v20180717/__init__.py
7
7
  tencentcloud/vod/v20180717/errorcodes.py
8
8
  tencentcloud/vod/v20180717/models.py
9
9
  tencentcloud/vod/v20180717/vod_client.py
10
+ tencentcloud/vod/v20240718/__init__.py
11
+ tencentcloud/vod/v20240718/errorcodes.py
12
+ tencentcloud/vod/v20240718/models.py
13
+ tencentcloud/vod/v20240718/vod_client.py
10
14
  tencentcloud_sdk_python_vod.egg-info/PKG-INFO
11
15
  tencentcloud_sdk_python_vod.egg-info/SOURCES.txt
12
16
  tencentcloud_sdk_python_vod.egg-info/dependency_links.txt
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1230
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1228