tencentcloud-sdk-python 3.0.1229__py2.py3-none-any.whl → 3.0.1231__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 (43) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/apm/v20210622/errorcodes.py +3 -0
  3. tencentcloud/apm/v20210622/models.py +25 -0
  4. tencentcloud/cam/v20190116/cam_client.py +46 -0
  5. tencentcloud/cam/v20190116/errorcodes.py +6 -0
  6. tencentcloud/cam/v20190116/models.py +301 -0
  7. tencentcloud/cdb/v20170320/models.py +4 -2
  8. tencentcloud/cfw/v20190904/models.py +106 -2
  9. tencentcloud/dasb/v20191018/dasb_client.py +23 -0
  10. tencentcloud/dasb/v20191018/errorcodes.py +3 -0
  11. tencentcloud/dasb/v20191018/models.py +252 -0
  12. tencentcloud/dlc/v20210125/dlc_client.py +1 -1
  13. tencentcloud/dlc/v20210125/errorcodes.py +3 -0
  14. tencentcloud/dlc/v20210125/models.py +325 -5
  15. tencentcloud/dsgc/v20190723/models.py +14 -1
  16. tencentcloud/emr/v20190103/models.py +1 -1
  17. tencentcloud/ess/v20201111/ess_client.py +6 -8
  18. tencentcloud/ess/v20201111/models.py +82 -45
  19. tencentcloud/essbasic/v20210526/models.py +37 -1
  20. tencentcloud/iss/v20230517/iss_client.py +23 -0
  21. tencentcloud/iss/v20230517/models.py +130 -0
  22. tencentcloud/mps/v20190612/models.py +384 -3
  23. tencentcloud/ocr/v20181119/models.py +12 -0
  24. tencentcloud/region/v20220627/models.py +0 -1
  25. tencentcloud/sms/v20210111/models.py +1 -1
  26. tencentcloud/tat/v20201028/models.py +13 -0
  27. tencentcloud/tke/v20180525/models.py +12 -0
  28. tencentcloud/tke/v20220501/models.py +852 -8
  29. tencentcloud/tke/v20220501/tke_client.py +138 -0
  30. tencentcloud/tmt/v20180321/models.py +22 -22
  31. tencentcloud/vdb/v20230616/models.py +51 -0
  32. tencentcloud/vod/v20180717/models.py +41 -0
  33. tencentcloud/vod/v20240718/__init__.py +0 -0
  34. tencentcloud/vod/v20240718/errorcodes.py +15 -0
  35. tencentcloud/vod/v20240718/models.py +189 -0
  36. tencentcloud/vod/v20240718/vod_client.py +49 -0
  37. tencentcloud/vpc/v20170312/models.py +17 -0
  38. tencentcloud/wedata/v20210820/wedata_client.py +1 -1
  39. {tencentcloud_sdk_python-3.0.1229.dist-info → tencentcloud_sdk_python-3.0.1231.dist-info}/METADATA +1 -1
  40. {tencentcloud_sdk_python-3.0.1229.dist-info → tencentcloud_sdk_python-3.0.1231.dist-info}/RECORD +43 -39
  41. {tencentcloud_sdk_python-3.0.1229.dist-info → tencentcloud_sdk_python-3.0.1231.dist-info}/LICENSE +0 -0
  42. {tencentcloud_sdk_python-3.0.1229.dist-info → tencentcloud_sdk_python-3.0.1231.dist-info}/WHEEL +0 -0
  43. {tencentcloud_sdk_python-3.0.1229.dist-info → tencentcloud_sdk_python-3.0.1231.dist-info}/top_level.txt +0 -0
@@ -26,6 +26,29 @@ class TkeClient(AbstractClient):
26
26
  _service = 'tke'
27
27
 
28
28
 
29
+ def CreateHealthCheckPolicy(self, request):
30
+ """创建健康检测策略
31
+
32
+ :param request: Request instance for CreateHealthCheckPolicy.
33
+ :type request: :class:`tencentcloud.tke.v20220501.models.CreateHealthCheckPolicyRequest`
34
+ :rtype: :class:`tencentcloud.tke.v20220501.models.CreateHealthCheckPolicyResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("CreateHealthCheckPolicy", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.CreateHealthCheckPolicyResponse()
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
+
29
52
  def CreateNodePool(self, request):
30
53
  """创建 TKE 节点池
31
54
 
@@ -49,6 +72,29 @@ class TkeClient(AbstractClient):
49
72
  raise TencentCloudSDKException(type(e).__name__, str(e))
50
73
 
51
74
 
75
+ def DeleteHealthCheckPolicy(self, request):
76
+ """删除健康检测策略
77
+
78
+ :param request: Request instance for DeleteHealthCheckPolicy.
79
+ :type request: :class:`tencentcloud.tke.v20220501.models.DeleteHealthCheckPolicyRequest`
80
+ :rtype: :class:`tencentcloud.tke.v20220501.models.DeleteHealthCheckPolicyResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("DeleteHealthCheckPolicy", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.DeleteHealthCheckPolicyResponse()
89
+ model._deserialize(response["Response"])
90
+ return model
91
+ except Exception as e:
92
+ if isinstance(e, TencentCloudSDKException):
93
+ raise
94
+ else:
95
+ raise TencentCloudSDKException(type(e).__name__, str(e))
96
+
97
+
52
98
  def DeleteNodePool(self, request):
53
99
  """删除 TKE 节点池
54
100
 
@@ -95,6 +141,75 @@ class TkeClient(AbstractClient):
95
141
  raise TencentCloudSDKException(type(e).__name__, str(e))
96
142
 
97
143
 
144
+ def DescribeHealthCheckPolicies(self, request):
145
+ """查询健康检测策略
146
+
147
+ :param request: Request instance for DescribeHealthCheckPolicies.
148
+ :type request: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckPoliciesRequest`
149
+ :rtype: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckPoliciesResponse`
150
+
151
+ """
152
+ try:
153
+ params = request._serialize()
154
+ headers = request.headers
155
+ body = self.call("DescribeHealthCheckPolicies", params, headers=headers)
156
+ response = json.loads(body)
157
+ model = models.DescribeHealthCheckPoliciesResponse()
158
+ model._deserialize(response["Response"])
159
+ return model
160
+ except Exception as e:
161
+ if isinstance(e, TencentCloudSDKException):
162
+ raise
163
+ else:
164
+ raise TencentCloudSDKException(type(e).__name__, str(e))
165
+
166
+
167
+ def DescribeHealthCheckPolicyBindings(self, request):
168
+ """查询健康检测策略绑定关系
169
+
170
+ :param request: Request instance for DescribeHealthCheckPolicyBindings.
171
+ :type request: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckPolicyBindingsRequest`
172
+ :rtype: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckPolicyBindingsResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("DescribeHealthCheckPolicyBindings", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.DescribeHealthCheckPolicyBindingsResponse()
181
+ model._deserialize(response["Response"])
182
+ return model
183
+ except Exception as e:
184
+ if isinstance(e, TencentCloudSDKException):
185
+ raise
186
+ else:
187
+ raise TencentCloudSDKException(type(e).__name__, str(e))
188
+
189
+
190
+ def DescribeHealthCheckTemplate(self, request):
191
+ """查询健康检测策略模板
192
+
193
+ :param request: Request instance for DescribeHealthCheckTemplate.
194
+ :type request: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckTemplateRequest`
195
+ :rtype: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckTemplateResponse`
196
+
197
+ """
198
+ try:
199
+ params = request._serialize()
200
+ headers = request.headers
201
+ body = self.call("DescribeHealthCheckTemplate", params, headers=headers)
202
+ response = json.loads(body)
203
+ model = models.DescribeHealthCheckTemplateResponse()
204
+ model._deserialize(response["Response"])
205
+ return model
206
+ except Exception as e:
207
+ if isinstance(e, TencentCloudSDKException):
208
+ raise
209
+ else:
210
+ raise TencentCloudSDKException(type(e).__name__, str(e))
211
+
212
+
98
213
  def DescribeNodePools(self, request):
99
214
  """查询 TKE 节点池列表
100
215
 
@@ -118,6 +233,29 @@ class TkeClient(AbstractClient):
118
233
  raise TencentCloudSDKException(type(e).__name__, str(e))
119
234
 
120
235
 
236
+ def ModifyHealthCheckPolicy(self, request):
237
+ """修改健康检测策略
238
+
239
+ :param request: Request instance for ModifyHealthCheckPolicy.
240
+ :type request: :class:`tencentcloud.tke.v20220501.models.ModifyHealthCheckPolicyRequest`
241
+ :rtype: :class:`tencentcloud.tke.v20220501.models.ModifyHealthCheckPolicyResponse`
242
+
243
+ """
244
+ try:
245
+ params = request._serialize()
246
+ headers = request.headers
247
+ body = self.call("ModifyHealthCheckPolicy", params, headers=headers)
248
+ response = json.loads(body)
249
+ model = models.ModifyHealthCheckPolicyResponse()
250
+ model._deserialize(response["Response"])
251
+ return model
252
+ except Exception as e:
253
+ if isinstance(e, TencentCloudSDKException):
254
+ raise
255
+ else:
256
+ raise TencentCloudSDKException(type(e).__name__, str(e))
257
+
258
+
121
259
  def ModifyNodePool(self, request):
122
260
  """更新 TKE 节点池
123
261
 
@@ -26,11 +26,11 @@ class FileTranslateRequest(AbstractModel):
26
26
  def __init__(self):
27
27
  r"""
28
28
  :param _Source: 源语言,支持
29
- zh:简体中文
29
+ zh:简体中文
30
30
  zh-HK:繁体中文
31
- zh-TW : 繁体中文
32
- zh-TR: 繁体中文
33
- en :英语
31
+ zh-TW:繁体中文
32
+ zh-TR:繁体中文
33
+ en:英语
34
34
  ar:阿拉伯语
35
35
  de:德语
36
36
  es:西班牙语
@@ -40,26 +40,26 @@ ja:日语
40
40
  pt:葡萄牙语
41
41
  ru:俄语
42
42
  ko:韩语
43
- km:高棉语
44
- lo:老挝语
43
+ th:泰语
45
44
  :type Source: str
46
45
  :param _Target: 目标语言,各源语言的目标语言支持列表如下
47
- zh(简体中文): en (英语)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)
48
- zh-HK(繁体中文) :en (英语)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)
49
- zh-TW(繁体中文):en (英语)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)
50
- zh-TR 繁体中文 : en (英语)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)
51
- en (英语) :zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、 zh-TR(繁体中文)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)
52
- ar(阿拉伯语) :zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
53
- de(德语 ):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
54
- es(西班牙语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
55
- fr(法语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
56
- it(意大利语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
57
- ja(日语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
58
- pt(葡萄牙语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
59
- ru(俄语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
60
- ko(韩语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
61
- km(高棉语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
62
- lo(老挝语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)
46
+ zh(简体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
47
+ zh-HK(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
48
+ zh-TW(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
49
+ zh-TR(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
50
+ en(英语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
51
+ ar(阿拉伯语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
52
+ de(德语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
53
+ es(西班牙语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)、fr(法语)
54
+ fr(法语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)、es(西班牙语)
55
+ it(意大利语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
56
+ ja(日语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
57
+ pt(葡萄牙语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
58
+ ru(俄语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
59
+ ko(韩语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
60
+ tr(土耳其语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
61
+ vi(越南语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
62
+ th(泰语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
63
63
  :type Target: str
64
64
  :param _DocumentType: 文档类型:可支持以下几种(pdf,docx,pptx,xlsx,txt,xml,html,markdown,properties)
65
65
  :type DocumentType: str
@@ -169,6 +169,57 @@ class DescribeInstanceNodesRequest(AbstractModel):
169
169
 
170
170
  """
171
171
 
172
+ def __init__(self):
173
+ r"""
174
+ :param _Limit: limit
175
+ :type Limit: int
176
+ :param _Offset: offset
177
+ :type Offset: int
178
+ :param _Component: component
179
+ :type Component: str
180
+ """
181
+ self._Limit = None
182
+ self._Offset = None
183
+ self._Component = None
184
+
185
+ @property
186
+ def Limit(self):
187
+ return self._Limit
188
+
189
+ @Limit.setter
190
+ def Limit(self, Limit):
191
+ self._Limit = Limit
192
+
193
+ @property
194
+ def Offset(self):
195
+ return self._Offset
196
+
197
+ @Offset.setter
198
+ def Offset(self, Offset):
199
+ self._Offset = Offset
200
+
201
+ @property
202
+ def Component(self):
203
+ return self._Component
204
+
205
+ @Component.setter
206
+ def Component(self, Component):
207
+ self._Component = Component
208
+
209
+
210
+ def _deserialize(self, params):
211
+ self._Limit = params.get("Limit")
212
+ self._Offset = params.get("Offset")
213
+ self._Component = params.get("Component")
214
+ memeber_set = set(params.keys())
215
+ for name, value in vars(self).items():
216
+ property_name = name[1:]
217
+ if property_name in memeber_set:
218
+ memeber_set.remove(property_name)
219
+ if len(memeber_set) > 0:
220
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
221
+
222
+
172
223
 
173
224
  class DescribeInstanceNodesResponse(AbstractModel):
174
225
  """DescribeInstanceNodes返回参数结构体
@@ -548,6 +548,10 @@ class AdaptiveDynamicStreamingInfoItem(AbstractModel):
548
548
  :type SubStreamSet: list of MediaSubStreamInfoItem
549
549
  :param _CopyRightWatermarkText: 版权信息。
550
550
  :type CopyRightWatermarkText: str
551
+ :param _SubtitleSet: 字幕信息列表。
552
+ :type SubtitleSet: list of MediaSubtitleItem
553
+ :param _DefaultSubtitleId: 默认字幕的唯一标识。
554
+ :type DefaultSubtitleId: str
551
555
  """
552
556
  self._Definition = None
553
557
  self._Package = None
@@ -557,6 +561,8 @@ class AdaptiveDynamicStreamingInfoItem(AbstractModel):
557
561
  self._DigitalWatermarkType = None
558
562
  self._SubStreamSet = None
559
563
  self._CopyRightWatermarkText = None
564
+ self._SubtitleSet = None
565
+ self._DefaultSubtitleId = None
560
566
 
561
567
  @property
562
568
  def Definition(self):
@@ -622,6 +628,22 @@ class AdaptiveDynamicStreamingInfoItem(AbstractModel):
622
628
  def CopyRightWatermarkText(self, CopyRightWatermarkText):
623
629
  self._CopyRightWatermarkText = CopyRightWatermarkText
624
630
 
631
+ @property
632
+ def SubtitleSet(self):
633
+ return self._SubtitleSet
634
+
635
+ @SubtitleSet.setter
636
+ def SubtitleSet(self, SubtitleSet):
637
+ self._SubtitleSet = SubtitleSet
638
+
639
+ @property
640
+ def DefaultSubtitleId(self):
641
+ return self._DefaultSubtitleId
642
+
643
+ @DefaultSubtitleId.setter
644
+ def DefaultSubtitleId(self, DefaultSubtitleId):
645
+ self._DefaultSubtitleId = DefaultSubtitleId
646
+
625
647
 
626
648
  def _deserialize(self, params):
627
649
  self._Definition = params.get("Definition")
@@ -637,6 +659,13 @@ class AdaptiveDynamicStreamingInfoItem(AbstractModel):
637
659
  obj._deserialize(item)
638
660
  self._SubStreamSet.append(obj)
639
661
  self._CopyRightWatermarkText = params.get("CopyRightWatermarkText")
662
+ if params.get("SubtitleSet") is not None:
663
+ self._SubtitleSet = []
664
+ for item in params.get("SubtitleSet"):
665
+ obj = MediaSubtitleItem()
666
+ obj._deserialize(item)
667
+ self._SubtitleSet.append(obj)
668
+ self._DefaultSubtitleId = params.get("DefaultSubtitleId")
640
669
  memeber_set = set(params.keys())
641
670
  for name, value in vars(self).items():
642
671
  property_name = name[1:]
@@ -9283,6 +9312,8 @@ class AttachMediaSubtitlesRequest(AbstractModel):
9283
9312
  :type AdaptiveDynamicStreamingDefinition: int
9284
9313
  :param _SubtitleIds: 字幕的唯一标识。
9285
9314
  :type SubtitleIds: list of str
9315
+ :param _DefaultSubtitleId: 默认字幕的唯一标识。不填则不设置默认字幕。
9316
+ :type DefaultSubtitleId: str
9286
9317
  :param _SubAppId: <b>点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b>
9287
9318
  :type SubAppId: int
9288
9319
  """
@@ -9290,6 +9321,7 @@ class AttachMediaSubtitlesRequest(AbstractModel):
9290
9321
  self._Operation = None
9291
9322
  self._AdaptiveDynamicStreamingDefinition = None
9292
9323
  self._SubtitleIds = None
9324
+ self._DefaultSubtitleId = None
9293
9325
  self._SubAppId = None
9294
9326
 
9295
9327
  @property
@@ -9324,6 +9356,14 @@ class AttachMediaSubtitlesRequest(AbstractModel):
9324
9356
  def SubtitleIds(self, SubtitleIds):
9325
9357
  self._SubtitleIds = SubtitleIds
9326
9358
 
9359
+ @property
9360
+ def DefaultSubtitleId(self):
9361
+ return self._DefaultSubtitleId
9362
+
9363
+ @DefaultSubtitleId.setter
9364
+ def DefaultSubtitleId(self, DefaultSubtitleId):
9365
+ self._DefaultSubtitleId = DefaultSubtitleId
9366
+
9327
9367
  @property
9328
9368
  def SubAppId(self):
9329
9369
  return self._SubAppId
@@ -9338,6 +9378,7 @@ class AttachMediaSubtitlesRequest(AbstractModel):
9338
9378
  self._Operation = params.get("Operation")
9339
9379
  self._AdaptiveDynamicStreamingDefinition = params.get("AdaptiveDynamicStreamingDefinition")
9340
9380
  self._SubtitleIds = params.get("SubtitleIds")
9381
+ self._DefaultSubtitleId = params.get("DefaultSubtitleId")
9341
9382
  self._SubAppId = params.get("SubAppId")
9342
9383
  memeber_set = set(params.keys())
9343
9384
  for name, value in vars(self).items():
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))