tencentcloud-sdk-python 3.0.1148__py2.py3-none-any.whl → 3.0.1150__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 (40) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/autoscaling/v20180419/errorcodes.py +3 -0
  3. tencentcloud/autoscaling/v20180419/models.py +19 -19
  4. tencentcloud/bi/v20220105/models.py +64 -0
  5. tencentcloud/cam/v20190116/models.py +56 -56
  6. tencentcloud/ccc/v20200210/models.py +126 -22
  7. tencentcloud/cfw/v20190904/models.py +1 -1
  8. tencentcloud/ckafka/v20190819/models.py +28 -0
  9. tencentcloud/cls/v20201016/models.py +14 -14
  10. tencentcloud/cvm/v20170312/errorcodes.py +6 -0
  11. tencentcloud/cvm/v20170312/models.py +60 -0
  12. tencentcloud/dbbrain/v20210527/models.py +1 -1
  13. tencentcloud/emr/v20190103/emr_client.py +46 -0
  14. tencentcloud/emr/v20190103/errorcodes.py +9 -0
  15. tencentcloud/emr/v20190103/models.py +720 -0
  16. tencentcloud/hunyuan/v20230901/models.py +17 -0
  17. tencentcloud/rce/v20201103/errorcodes.py +0 -132
  18. tencentcloud/rce/v20201103/models.py +6 -53
  19. tencentcloud/rce/v20201103/rce_client.py +0 -23
  20. tencentcloud/tcss/v20201101/models.py +2 -2
  21. tencentcloud/tdmq/v20200217/models.py +3 -3
  22. tencentcloud/tdmq/v20200217/tdmq_client.py +3 -1
  23. tencentcloud/trtc/v20190722/models.py +32 -22
  24. tencentcloud/trtc/v20190722/trtc_client.py +12 -6
  25. tencentcloud/vcg/__init__.py +0 -0
  26. tencentcloud/vcg/v20240404/__init__.py +0 -0
  27. tencentcloud/vcg/v20240404/errorcodes.py +66 -0
  28. tencentcloud/vcg/v20240404/models.py +216 -0
  29. tencentcloud/vcg/v20240404/vcg_client.py +72 -0
  30. tencentcloud/vod/v20180717/models.py +12 -0
  31. tencentcloud/vtc/__init__.py +0 -0
  32. tencentcloud/vtc/v20240223/__init__.py +0 -0
  33. tencentcloud/vtc/v20240223/errorcodes.py +99 -0
  34. tencentcloud/vtc/v20240223/models.py +635 -0
  35. tencentcloud/vtc/v20240223/vtc_client.py +95 -0
  36. {tencentcloud_sdk_python-3.0.1148.dist-info → tencentcloud_sdk_python-3.0.1150.dist-info}/METADATA +1 -1
  37. {tencentcloud_sdk_python-3.0.1148.dist-info → tencentcloud_sdk_python-3.0.1150.dist-info}/RECORD +40 -30
  38. {tencentcloud_sdk_python-3.0.1148.dist-info → tencentcloud_sdk_python-3.0.1150.dist-info}/LICENSE +0 -0
  39. {tencentcloud_sdk_python-3.0.1148.dist-info → tencentcloud_sdk_python-3.0.1150.dist-info}/WHEEL +0 -0
  40. {tencentcloud_sdk_python-3.0.1148.dist-info → tencentcloud_sdk_python-3.0.1150.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,216 @@
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 DescribeVideoStylizationJobRequest(AbstractModel):
22
+ """DescribeVideoStylizationJob请求参数结构体
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _JobId: 任务ID
29
+ :type JobId: str
30
+ """
31
+ self._JobId = None
32
+
33
+ @property
34
+ def JobId(self):
35
+ return self._JobId
36
+
37
+ @JobId.setter
38
+ def JobId(self, JobId):
39
+ self._JobId = JobId
40
+
41
+
42
+ def _deserialize(self, params):
43
+ self._JobId = params.get("JobId")
44
+ memeber_set = set(params.keys())
45
+ for name, value in vars(self).items():
46
+ property_name = name[1:]
47
+ if property_name in memeber_set:
48
+ memeber_set.remove(property_name)
49
+ if len(memeber_set) > 0:
50
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
51
+
52
+
53
+
54
+ class DescribeVideoStylizationJobResponse(AbstractModel):
55
+ """DescribeVideoStylizationJob返回参数结构体
56
+
57
+ """
58
+
59
+ def __init__(self):
60
+ r"""
61
+ :param _JobId: 任务ID。
62
+ :type JobId: str
63
+ :param _StatusCode: 任务状态码:
64
+ JobInit: "初始化中"
65
+ JobModerationFailed: "审核失败",
66
+ JobRunning: "处理中",
67
+ JobFailed: "处理完成",
68
+ JobSuccess: "处理失败"。
69
+ :type StatusCode: str
70
+ :param _StatusMsg: 任务状态描述。
71
+ :type StatusMsg: str
72
+ :param _ResultVideoUrl: 处理结果视频Url。URL有效期为24小时。
73
+ :type ResultVideoUrl: str
74
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
75
+ :type RequestId: str
76
+ """
77
+ self._JobId = None
78
+ self._StatusCode = None
79
+ self._StatusMsg = None
80
+ self._ResultVideoUrl = None
81
+ self._RequestId = None
82
+
83
+ @property
84
+ def JobId(self):
85
+ return self._JobId
86
+
87
+ @JobId.setter
88
+ def JobId(self, JobId):
89
+ self._JobId = JobId
90
+
91
+ @property
92
+ def StatusCode(self):
93
+ return self._StatusCode
94
+
95
+ @StatusCode.setter
96
+ def StatusCode(self, StatusCode):
97
+ self._StatusCode = StatusCode
98
+
99
+ @property
100
+ def StatusMsg(self):
101
+ return self._StatusMsg
102
+
103
+ @StatusMsg.setter
104
+ def StatusMsg(self, StatusMsg):
105
+ self._StatusMsg = StatusMsg
106
+
107
+ @property
108
+ def ResultVideoUrl(self):
109
+ return self._ResultVideoUrl
110
+
111
+ @ResultVideoUrl.setter
112
+ def ResultVideoUrl(self, ResultVideoUrl):
113
+ self._ResultVideoUrl = ResultVideoUrl
114
+
115
+ @property
116
+ def RequestId(self):
117
+ return self._RequestId
118
+
119
+ @RequestId.setter
120
+ def RequestId(self, RequestId):
121
+ self._RequestId = RequestId
122
+
123
+
124
+ def _deserialize(self, params):
125
+ self._JobId = params.get("JobId")
126
+ self._StatusCode = params.get("StatusCode")
127
+ self._StatusMsg = params.get("StatusMsg")
128
+ self._ResultVideoUrl = params.get("ResultVideoUrl")
129
+ self._RequestId = params.get("RequestId")
130
+
131
+
132
+ class SubmitVideoStylizationJobRequest(AbstractModel):
133
+ """SubmitVideoStylizationJob请求参数结构体
134
+
135
+ """
136
+
137
+ def __init__(self):
138
+ r"""
139
+ :param _StyleId: 风格ID,取值说明:2d_anime 2D动漫;3d_cartoon 3D卡通;3d_china 3D国潮;pixel_art 像素风。
140
+ :type StyleId: str
141
+ :param _VideoUrl: 输入视频URL。视频要求:
142
+ - 视频格式:mp4、mov;
143
+ - 视频时长:1~60秒;
144
+ - 视频分辨率:540P~2056P,即长宽像素数均在540px~2056px范围内;
145
+ - 视频大小:不超过200M;
146
+ - 视频FPS:15~60fps。
147
+ :type VideoUrl: str
148
+ """
149
+ self._StyleId = None
150
+ self._VideoUrl = None
151
+
152
+ @property
153
+ def StyleId(self):
154
+ return self._StyleId
155
+
156
+ @StyleId.setter
157
+ def StyleId(self, StyleId):
158
+ self._StyleId = StyleId
159
+
160
+ @property
161
+ def VideoUrl(self):
162
+ return self._VideoUrl
163
+
164
+ @VideoUrl.setter
165
+ def VideoUrl(self, VideoUrl):
166
+ self._VideoUrl = VideoUrl
167
+
168
+
169
+ def _deserialize(self, params):
170
+ self._StyleId = params.get("StyleId")
171
+ self._VideoUrl = params.get("VideoUrl")
172
+ memeber_set = set(params.keys())
173
+ for name, value in vars(self).items():
174
+ property_name = name[1:]
175
+ if property_name in memeber_set:
176
+ memeber_set.remove(property_name)
177
+ if len(memeber_set) > 0:
178
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
179
+
180
+
181
+
182
+ class SubmitVideoStylizationJobResponse(AbstractModel):
183
+ """SubmitVideoStylizationJob返回参数结构体
184
+
185
+ """
186
+
187
+ def __init__(self):
188
+ r"""
189
+ :param _JobId: 任务ID
190
+ :type JobId: str
191
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
192
+ :type RequestId: str
193
+ """
194
+ self._JobId = None
195
+ self._RequestId = None
196
+
197
+ @property
198
+ def JobId(self):
199
+ return self._JobId
200
+
201
+ @JobId.setter
202
+ def JobId(self, JobId):
203
+ self._JobId = JobId
204
+
205
+ @property
206
+ def RequestId(self):
207
+ return self._RequestId
208
+
209
+ @RequestId.setter
210
+ def RequestId(self, RequestId):
211
+ self._RequestId = RequestId
212
+
213
+
214
+ def _deserialize(self, params):
215
+ self._JobId = params.get("JobId")
216
+ self._RequestId = params.get("RequestId")
@@ -0,0 +1,72 @@
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.vcg.v20240404 import models
21
+
22
+
23
+ class VcgClient(AbstractClient):
24
+ _apiVersion = '2024-04-04'
25
+ _endpoint = 'vcg.tencentcloudapi.com'
26
+ _service = 'vcg'
27
+
28
+
29
+ def DescribeVideoStylizationJob(self, request):
30
+ """用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
31
+
32
+ :param request: Request instance for DescribeVideoStylizationJob.
33
+ :type request: :class:`tencentcloud.vcg.v20240404.models.DescribeVideoStylizationJobRequest`
34
+ :rtype: :class:`tencentcloud.vcg.v20240404.models.DescribeVideoStylizationJobResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("DescribeVideoStylizationJob", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.DescribeVideoStylizationJobResponse()
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))
50
+
51
+
52
+ def SubmitVideoStylizationJob(self, request):
53
+ """用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
54
+
55
+ :param request: Request instance for SubmitVideoStylizationJob.
56
+ :type request: :class:`tencentcloud.vcg.v20240404.models.SubmitVideoStylizationJobRequest`
57
+ :rtype: :class:`tencentcloud.vcg.v20240404.models.SubmitVideoStylizationJobResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("SubmitVideoStylizationJob", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.SubmitVideoStylizationJobResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
@@ -53319,6 +53319,8 @@ class SimpleHlsClipRequest(AbstractModel):
53319
53319
  :type SourceContext: str
53320
53320
  :param _SessionContext: 会话上下文,用于透传用户请求信息,当指定 Procedure 参数后,[任务流状态变更回调](/document/product/266/9636) 将返回该字段值,最长 1000 个字符。仅 IsPersistence 为 1 时有效。
53321
53321
  :type SessionContext: str
53322
+ :param _ExtInfo: 保留字段,特殊用途时使用。 示例值:""
53323
+ :type ExtInfo: str
53322
53324
  """
53323
53325
  self._Url = None
53324
53326
  self._SubAppId = None
@@ -53330,6 +53332,7 @@ class SimpleHlsClipRequest(AbstractModel):
53330
53332
  self._ClassId = None
53331
53333
  self._SourceContext = None
53332
53334
  self._SessionContext = None
53335
+ self._ExtInfo = None
53333
53336
 
53334
53337
  @property
53335
53338
  def Url(self):
@@ -53411,6 +53414,14 @@ class SimpleHlsClipRequest(AbstractModel):
53411
53414
  def SessionContext(self, SessionContext):
53412
53415
  self._SessionContext = SessionContext
53413
53416
 
53417
+ @property
53418
+ def ExtInfo(self):
53419
+ return self._ExtInfo
53420
+
53421
+ @ExtInfo.setter
53422
+ def ExtInfo(self, ExtInfo):
53423
+ self._ExtInfo = ExtInfo
53424
+
53414
53425
 
53415
53426
  def _deserialize(self, params):
53416
53427
  self._Url = params.get("Url")
@@ -53423,6 +53434,7 @@ class SimpleHlsClipRequest(AbstractModel):
53423
53434
  self._ClassId = params.get("ClassId")
53424
53435
  self._SourceContext = params.get("SourceContext")
53425
53436
  self._SessionContext = params.get("SessionContext")
53437
+ self._ExtInfo = params.get("ExtInfo")
53426
53438
  memeber_set = set(params.keys())
53427
53439
  for name, value in vars(self).items():
53428
53440
  property_name = name[1:]
File without changes
File without changes
@@ -0,0 +1,99 @@
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
+
17
+ # 音频解码失败。
18
+ FAILEDOPERATION_AUDIODECODEFAILED = 'FailedOperation.AudioDecodeFailed'
19
+
20
+ # 音频处理失败。
21
+ FAILEDOPERATION_AUDIOPROCESSFAILED = 'FailedOperation.AudioProcessFailed'
22
+
23
+ # 音频处理任务未完成,不能执行翻译结果确认
24
+ FAILEDOPERATION_AUDIOPROCESSNOTFINISHED = 'FailedOperation.AudioProcessNotFinished'
25
+
26
+ # 文件下载失败。
27
+ FAILEDOPERATION_DOWNLOADERROR = 'FailedOperation.DownloadError'
28
+
29
+ # 任务不存在。
30
+ FAILEDOPERATION_JOBNOTEXIST = 'FailedOperation.JobNotExist'
31
+
32
+ # 后端服务超时。
33
+ FAILEDOPERATION_REQUESTTIMEOUT = 'FailedOperation.RequestTimeout'
34
+
35
+ # 系统内部错误。
36
+ FAILEDOPERATION_SERVERERROR = 'FailedOperation.ServerError'
37
+
38
+ # 音频翻译结果已确认
39
+ FAILEDOPERATION_TRANSLATIONCONFIRMHASFINISHED = 'FailedOperation.TranslationConfirmHasFinished'
40
+
41
+ # 用户未选择确认音频翻译结果
42
+ FAILEDOPERATION_TRANSLATIONNOTNEEDCONFIRM = 'FailedOperation.TranslationNotNeedConfirm'
43
+
44
+ # 内部错误。
45
+ FAILEDOPERATION_UNKNOWERROR = 'FailedOperation.UnKnowError'
46
+
47
+ # 视频时长超限制。
48
+ FAILEDOPERATION_VIDEODURATIONEXCEED = 'FailedOperation.VideoDurationExceed'
49
+
50
+ # 视频Fps超限制。
51
+ FAILEDOPERATION_VIDEOFPSEXCEED = 'FailedOperation.VideoFpsExceed'
52
+
53
+ # 视频分辨率超限制。
54
+ FAILEDOPERATION_VIDEORESOLUTIONEXCEED = 'FailedOperation.VideoResolutionExceed'
55
+
56
+ # 视频分辨率超限制。
57
+ FAILEDOPERATION_VIDEOSIZEEXCEED = 'FailedOperation.VideoSizeExceed'
58
+
59
+ # 参数不合法。
60
+ INVALIDPARAMETER_INVALIDPARAMETER = 'InvalidParameter.InvalidParameter'
61
+
62
+ # URL格式不合法。
63
+ INVALIDPARAMETERVALUE_URLILLEGAL = 'InvalidParameterValue.UrlIllegal'
64
+
65
+ # 当前并发数已超上限
66
+ REQUESTLIMITEXCEEDED_JOBNUMEXCEED = 'RequestLimitExceeded.JobNumExceed'
67
+
68
+ # 用户账号超出了限制。
69
+ REQUESTLIMITEXCEEDED_UINLIMITEXCEEDED = 'RequestLimitExceeded.UinLimitExceeded'
70
+
71
+ # 资源正在发货中。
72
+ RESOURCEUNAVAILABLE_DELIVERING = 'ResourceUnavailable.Delivering'
73
+
74
+ # 账号已被冻结。
75
+ RESOURCEUNAVAILABLE_FREEZE = 'ResourceUnavailable.Freeze'
76
+
77
+ # 账号已欠费。
78
+ RESOURCEUNAVAILABLE_INARREARS = 'ResourceUnavailable.InArrears'
79
+
80
+ # 服务正在开通中,请稍等。
81
+ RESOURCEUNAVAILABLE_ISOPENING = 'ResourceUnavailable.IsOpening'
82
+
83
+ # 余额不足。
84
+ RESOURCEUNAVAILABLE_LOWBALANCE = 'ResourceUnavailable.LowBalance'
85
+
86
+ # 计费状态未知,请确认是否已在控制台开通服务。
87
+ RESOURCEUNAVAILABLE_NOTEXIST = 'ResourceUnavailable.NotExist'
88
+
89
+ # 服务未开通。
90
+ RESOURCEUNAVAILABLE_NOTREADY = 'ResourceUnavailable.NotReady'
91
+
92
+ # 资源已被回收。
93
+ RESOURCEUNAVAILABLE_RECOVER = 'ResourceUnavailable.Recover'
94
+
95
+ # 计费状态未知。
96
+ RESOURCEUNAVAILABLE_UNKNOWNSTATUS = 'ResourceUnavailable.UnknownStatus'
97
+
98
+ # 账号已欠费。
99
+ RESOURCESSOLDOUT_CHARGESTATUSEXCEPTION = 'ResourcesSoldOut.ChargeStatusException'