tencentcloud-sdk-python-vod 3.1.206__py2.py3-none-any.whl → 3.1.208__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/vod/v20180717/models.py +373 -24
- tencentcloud/vod/v20180717/vod_client.py +46 -0
- tencentcloud/vod/v20180717/vod_client_async.py +36 -0
- {tencentcloud_sdk_python_vod-3.1.206.dist-info → tencentcloud_sdk_python_vod-3.1.208.dist-info}/METADATA +2 -2
- {tencentcloud_sdk_python_vod-3.1.206.dist-info → tencentcloud_sdk_python_vod-3.1.208.dist-info}/RECORD +8 -8
- {tencentcloud_sdk_python_vod-3.1.206.dist-info → tencentcloud_sdk_python_vod-3.1.208.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_vod-3.1.206.dist-info → tencentcloud_sdk_python_vod-3.1.208.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -13493,6 +13493,8 @@ class AigcImageTaskInputFileInfo(AbstractModel):
|
|
|
13493
13493
|
:type Text: str
|
|
13494
13494
|
:param _ReferenceType: <p><strong>仅当 ModelName 为 OG 时有效</strong>。图片类型。</p><p>枚举值:</p><ul><li>mask: 图片蒙版。</li></ul>
|
|
13495
13495
|
:type ReferenceType: str
|
|
13496
|
+
:param _Id: <p>自定义 Id,一般用于在 Prompt 中引用参考图片。</p>
|
|
13497
|
+
:type Id: str
|
|
13496
13498
|
"""
|
|
13497
13499
|
self._Type = None
|
|
13498
13500
|
self._FileId = None
|
|
@@ -13500,6 +13502,7 @@ class AigcImageTaskInputFileInfo(AbstractModel):
|
|
|
13500
13502
|
self._Base64 = None
|
|
13501
13503
|
self._Text = None
|
|
13502
13504
|
self._ReferenceType = None
|
|
13505
|
+
self._Id = None
|
|
13503
13506
|
|
|
13504
13507
|
@property
|
|
13505
13508
|
def Type(self):
|
|
@@ -13567,6 +13570,17 @@ class AigcImageTaskInputFileInfo(AbstractModel):
|
|
|
13567
13570
|
def ReferenceType(self, ReferenceType):
|
|
13568
13571
|
self._ReferenceType = ReferenceType
|
|
13569
13572
|
|
|
13573
|
+
@property
|
|
13574
|
+
def Id(self):
|
|
13575
|
+
r"""<p>自定义 Id,一般用于在 Prompt 中引用参考图片。</p>
|
|
13576
|
+
:rtype: str
|
|
13577
|
+
"""
|
|
13578
|
+
return self._Id
|
|
13579
|
+
|
|
13580
|
+
@Id.setter
|
|
13581
|
+
def Id(self, Id):
|
|
13582
|
+
self._Id = Id
|
|
13583
|
+
|
|
13570
13584
|
|
|
13571
13585
|
def _deserialize(self, params):
|
|
13572
13586
|
self._Type = params.get("Type")
|
|
@@ -13575,6 +13589,7 @@ class AigcImageTaskInputFileInfo(AbstractModel):
|
|
|
13575
13589
|
self._Base64 = params.get("Base64")
|
|
13576
13590
|
self._Text = params.get("Text")
|
|
13577
13591
|
self._ReferenceType = params.get("ReferenceType")
|
|
13592
|
+
self._Id = params.get("Id")
|
|
13578
13593
|
memeber_set = set(params.keys())
|
|
13579
13594
|
for name, value in vars(self).items():
|
|
13580
13595
|
property_name = name[1:]
|
|
@@ -16464,6 +16479,57 @@ class AigcVideoTaskUsage(AbstractModel):
|
|
|
16464
16479
|
|
|
16465
16480
|
|
|
16466
16481
|
|
|
16482
|
+
class AigcWhitelistModel(AbstractModel):
|
|
16483
|
+
r"""AIGC模型白名单
|
|
16484
|
+
|
|
16485
|
+
"""
|
|
16486
|
+
|
|
16487
|
+
def __init__(self):
|
|
16488
|
+
r"""
|
|
16489
|
+
:param _ModelName: <p>模型名称</p>
|
|
16490
|
+
:type ModelName: str
|
|
16491
|
+
:param _ModelVersion: <p>模型版本</p>
|
|
16492
|
+
:type ModelVersion: str
|
|
16493
|
+
"""
|
|
16494
|
+
self._ModelName = None
|
|
16495
|
+
self._ModelVersion = None
|
|
16496
|
+
|
|
16497
|
+
@property
|
|
16498
|
+
def ModelName(self):
|
|
16499
|
+
r"""<p>模型名称</p>
|
|
16500
|
+
:rtype: str
|
|
16501
|
+
"""
|
|
16502
|
+
return self._ModelName
|
|
16503
|
+
|
|
16504
|
+
@ModelName.setter
|
|
16505
|
+
def ModelName(self, ModelName):
|
|
16506
|
+
self._ModelName = ModelName
|
|
16507
|
+
|
|
16508
|
+
@property
|
|
16509
|
+
def ModelVersion(self):
|
|
16510
|
+
r"""<p>模型版本</p>
|
|
16511
|
+
:rtype: str
|
|
16512
|
+
"""
|
|
16513
|
+
return self._ModelVersion
|
|
16514
|
+
|
|
16515
|
+
@ModelVersion.setter
|
|
16516
|
+
def ModelVersion(self, ModelVersion):
|
|
16517
|
+
self._ModelVersion = ModelVersion
|
|
16518
|
+
|
|
16519
|
+
|
|
16520
|
+
def _deserialize(self, params):
|
|
16521
|
+
self._ModelName = params.get("ModelName")
|
|
16522
|
+
self._ModelVersion = params.get("ModelVersion")
|
|
16523
|
+
memeber_set = set(params.keys())
|
|
16524
|
+
for name, value in vars(self).items():
|
|
16525
|
+
property_name = name[1:]
|
|
16526
|
+
if property_name in memeber_set:
|
|
16527
|
+
memeber_set.remove(property_name)
|
|
16528
|
+
if len(memeber_set) > 0:
|
|
16529
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16530
|
+
|
|
16531
|
+
|
|
16532
|
+
|
|
16467
16533
|
class AnimatedGraphicTaskInput(AbstractModel):
|
|
16468
16534
|
r"""转动图任务类型
|
|
16469
16535
|
|
|
@@ -39255,6 +39321,165 @@ class DescribeAigcUsageDataResponse(AbstractModel):
|
|
|
39255
39321
|
self._RequestId = params.get("RequestId")
|
|
39256
39322
|
|
|
39257
39323
|
|
|
39324
|
+
class DescribeAigcWhitelistRequest(AbstractModel):
|
|
39325
|
+
r"""DescribeAigcWhitelist请求参数结构体
|
|
39326
|
+
|
|
39327
|
+
"""
|
|
39328
|
+
|
|
39329
|
+
def __init__(self):
|
|
39330
|
+
r"""
|
|
39331
|
+
:param _SubAppId: <p><b>点播<a href="/document/product/266/14574">应用</a> ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b></p>
|
|
39332
|
+
:type SubAppId: int
|
|
39333
|
+
:param _AigcType: <p>AIGC任务类型</p><p>枚举值:</p><ul><li>Image: AIGC 生图任务</li><li>Video: AIGC 生视频任务</li></ul>
|
|
39334
|
+
:type AigcType: str
|
|
39335
|
+
"""
|
|
39336
|
+
self._SubAppId = None
|
|
39337
|
+
self._AigcType = None
|
|
39338
|
+
|
|
39339
|
+
@property
|
|
39340
|
+
def SubAppId(self):
|
|
39341
|
+
r"""<p><b>点播<a href="/document/product/266/14574">应用</a> ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b></p>
|
|
39342
|
+
:rtype: int
|
|
39343
|
+
"""
|
|
39344
|
+
return self._SubAppId
|
|
39345
|
+
|
|
39346
|
+
@SubAppId.setter
|
|
39347
|
+
def SubAppId(self, SubAppId):
|
|
39348
|
+
self._SubAppId = SubAppId
|
|
39349
|
+
|
|
39350
|
+
@property
|
|
39351
|
+
def AigcType(self):
|
|
39352
|
+
r"""<p>AIGC任务类型</p><p>枚举值:</p><ul><li>Image: AIGC 生图任务</li><li>Video: AIGC 生视频任务</li></ul>
|
|
39353
|
+
:rtype: str
|
|
39354
|
+
"""
|
|
39355
|
+
return self._AigcType
|
|
39356
|
+
|
|
39357
|
+
@AigcType.setter
|
|
39358
|
+
def AigcType(self, AigcType):
|
|
39359
|
+
self._AigcType = AigcType
|
|
39360
|
+
|
|
39361
|
+
|
|
39362
|
+
def _deserialize(self, params):
|
|
39363
|
+
self._SubAppId = params.get("SubAppId")
|
|
39364
|
+
self._AigcType = params.get("AigcType")
|
|
39365
|
+
memeber_set = set(params.keys())
|
|
39366
|
+
for name, value in vars(self).items():
|
|
39367
|
+
property_name = name[1:]
|
|
39368
|
+
if property_name in memeber_set:
|
|
39369
|
+
memeber_set.remove(property_name)
|
|
39370
|
+
if len(memeber_set) > 0:
|
|
39371
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39372
|
+
|
|
39373
|
+
|
|
39374
|
+
|
|
39375
|
+
class DescribeAigcWhitelistResponse(AbstractModel):
|
|
39376
|
+
r"""DescribeAigcWhitelist返回参数结构体
|
|
39377
|
+
|
|
39378
|
+
"""
|
|
39379
|
+
|
|
39380
|
+
def __init__(self):
|
|
39381
|
+
r"""
|
|
39382
|
+
:param _AigcType: <p>AIGC任务类型</p><p>枚举值:</p><ul><li>Image: AIGC 生图任务</li><li>Video: AIGC 生视频任务</li></ul>
|
|
39383
|
+
:type AigcType: str
|
|
39384
|
+
:param _ModelWhitelistSwitch: <p>模型白名单开关</p><p>枚举值:</p><ul><li>ON: 打开,只有允许调用ModelWhitelist中列出的模型</li><li>OFF: 关闭,允许调用所有模型</li></ul>
|
|
39385
|
+
:type ModelWhitelistSwitch: str
|
|
39386
|
+
:param _ModelWhitelist: <p>模型白名单列表</p>
|
|
39387
|
+
:type ModelWhitelist: list of AigcWhitelistModel
|
|
39388
|
+
:param _IpWhitelistSwitch: <p>IP白名单开关</p><p>枚举值:</p><ul><li>ON: 打开,只允许IpWhitelist中列出的IP段进行调用</li><li>OFF: 关闭,允许所有IP进行调用</li></ul>
|
|
39389
|
+
:type IpWhitelistSwitch: str
|
|
39390
|
+
:param _IpWhitelist: <p>IP白名单的CIDR列表</p>
|
|
39391
|
+
:type IpWhitelist: list of str
|
|
39392
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39393
|
+
:type RequestId: str
|
|
39394
|
+
"""
|
|
39395
|
+
self._AigcType = None
|
|
39396
|
+
self._ModelWhitelistSwitch = None
|
|
39397
|
+
self._ModelWhitelist = None
|
|
39398
|
+
self._IpWhitelistSwitch = None
|
|
39399
|
+
self._IpWhitelist = None
|
|
39400
|
+
self._RequestId = None
|
|
39401
|
+
|
|
39402
|
+
@property
|
|
39403
|
+
def AigcType(self):
|
|
39404
|
+
r"""<p>AIGC任务类型</p><p>枚举值:</p><ul><li>Image: AIGC 生图任务</li><li>Video: AIGC 生视频任务</li></ul>
|
|
39405
|
+
:rtype: str
|
|
39406
|
+
"""
|
|
39407
|
+
return self._AigcType
|
|
39408
|
+
|
|
39409
|
+
@AigcType.setter
|
|
39410
|
+
def AigcType(self, AigcType):
|
|
39411
|
+
self._AigcType = AigcType
|
|
39412
|
+
|
|
39413
|
+
@property
|
|
39414
|
+
def ModelWhitelistSwitch(self):
|
|
39415
|
+
r"""<p>模型白名单开关</p><p>枚举值:</p><ul><li>ON: 打开,只有允许调用ModelWhitelist中列出的模型</li><li>OFF: 关闭,允许调用所有模型</li></ul>
|
|
39416
|
+
:rtype: str
|
|
39417
|
+
"""
|
|
39418
|
+
return self._ModelWhitelistSwitch
|
|
39419
|
+
|
|
39420
|
+
@ModelWhitelistSwitch.setter
|
|
39421
|
+
def ModelWhitelistSwitch(self, ModelWhitelistSwitch):
|
|
39422
|
+
self._ModelWhitelistSwitch = ModelWhitelistSwitch
|
|
39423
|
+
|
|
39424
|
+
@property
|
|
39425
|
+
def ModelWhitelist(self):
|
|
39426
|
+
r"""<p>模型白名单列表</p>
|
|
39427
|
+
:rtype: list of AigcWhitelistModel
|
|
39428
|
+
"""
|
|
39429
|
+
return self._ModelWhitelist
|
|
39430
|
+
|
|
39431
|
+
@ModelWhitelist.setter
|
|
39432
|
+
def ModelWhitelist(self, ModelWhitelist):
|
|
39433
|
+
self._ModelWhitelist = ModelWhitelist
|
|
39434
|
+
|
|
39435
|
+
@property
|
|
39436
|
+
def IpWhitelistSwitch(self):
|
|
39437
|
+
r"""<p>IP白名单开关</p><p>枚举值:</p><ul><li>ON: 打开,只允许IpWhitelist中列出的IP段进行调用</li><li>OFF: 关闭,允许所有IP进行调用</li></ul>
|
|
39438
|
+
:rtype: str
|
|
39439
|
+
"""
|
|
39440
|
+
return self._IpWhitelistSwitch
|
|
39441
|
+
|
|
39442
|
+
@IpWhitelistSwitch.setter
|
|
39443
|
+
def IpWhitelistSwitch(self, IpWhitelistSwitch):
|
|
39444
|
+
self._IpWhitelistSwitch = IpWhitelistSwitch
|
|
39445
|
+
|
|
39446
|
+
@property
|
|
39447
|
+
def IpWhitelist(self):
|
|
39448
|
+
r"""<p>IP白名单的CIDR列表</p>
|
|
39449
|
+
:rtype: list of str
|
|
39450
|
+
"""
|
|
39451
|
+
return self._IpWhitelist
|
|
39452
|
+
|
|
39453
|
+
@IpWhitelist.setter
|
|
39454
|
+
def IpWhitelist(self, IpWhitelist):
|
|
39455
|
+
self._IpWhitelist = IpWhitelist
|
|
39456
|
+
|
|
39457
|
+
@property
|
|
39458
|
+
def RequestId(self):
|
|
39459
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39460
|
+
:rtype: str
|
|
39461
|
+
"""
|
|
39462
|
+
return self._RequestId
|
|
39463
|
+
|
|
39464
|
+
@RequestId.setter
|
|
39465
|
+
def RequestId(self, RequestId):
|
|
39466
|
+
self._RequestId = RequestId
|
|
39467
|
+
|
|
39468
|
+
|
|
39469
|
+
def _deserialize(self, params):
|
|
39470
|
+
self._AigcType = params.get("AigcType")
|
|
39471
|
+
self._ModelWhitelistSwitch = params.get("ModelWhitelistSwitch")
|
|
39472
|
+
if params.get("ModelWhitelist") is not None:
|
|
39473
|
+
self._ModelWhitelist = []
|
|
39474
|
+
for item in params.get("ModelWhitelist"):
|
|
39475
|
+
obj = AigcWhitelistModel()
|
|
39476
|
+
obj._deserialize(item)
|
|
39477
|
+
self._ModelWhitelist.append(obj)
|
|
39478
|
+
self._IpWhitelistSwitch = params.get("IpWhitelistSwitch")
|
|
39479
|
+
self._IpWhitelist = params.get("IpWhitelist")
|
|
39480
|
+
self._RequestId = params.get("RequestId")
|
|
39481
|
+
|
|
39482
|
+
|
|
39258
39483
|
class DescribeAllClassRequest(AbstractModel):
|
|
39259
39484
|
r"""DescribeAllClass请求参数结构体
|
|
39260
39485
|
|
|
@@ -95930,6 +96155,150 @@ class SemanticsSearchResult(AbstractModel):
|
|
|
95930
96155
|
|
|
95931
96156
|
|
|
95932
96157
|
|
|
96158
|
+
class SetAigcWhitelistRequest(AbstractModel):
|
|
96159
|
+
r"""SetAigcWhitelist请求参数结构体
|
|
96160
|
+
|
|
96161
|
+
"""
|
|
96162
|
+
|
|
96163
|
+
def __init__(self):
|
|
96164
|
+
r"""
|
|
96165
|
+
:param _SubAppId: <p><b>点播<a href="/document/product/266/14574">应用</a> ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b></p>
|
|
96166
|
+
:type SubAppId: int
|
|
96167
|
+
:param _AigcType: <p>AIGC任务类型</p><p>枚举值:</p><ul><li>Image: AIGC 生图任务</li><li>Video: AIGC 生视频任务</li></ul>
|
|
96168
|
+
:type AigcType: str
|
|
96169
|
+
:param _ModelWhitelistSwitch: <p>模型白名单开关</p><p>枚举值:</p><ul><li>ON: 打开,只有允许调用ModelWhitelist中列出的模型</li><li>OFF: 关闭,允许调用所有模型</li></ul>
|
|
96170
|
+
:type ModelWhitelistSwitch: str
|
|
96171
|
+
:param _IpWhitelistSwitch: <p>IP白名单开关</p><p>枚举值:</p><ul><li>ON: 打开,只允许IpWhitelist中列出的IP段进行调用</li><li>OFF: 关闭,允许所有IP进行调用</li></ul>
|
|
96172
|
+
:type IpWhitelistSwitch: str
|
|
96173
|
+
:param _ModelWhitelist: <p>模型白名单列表</p>
|
|
96174
|
+
:type ModelWhitelist: list of AigcWhitelistModel
|
|
96175
|
+
:param _IpWhitelist: <p>IP白名单的CIDR列表</p>
|
|
96176
|
+
:type IpWhitelist: list of str
|
|
96177
|
+
"""
|
|
96178
|
+
self._SubAppId = None
|
|
96179
|
+
self._AigcType = None
|
|
96180
|
+
self._ModelWhitelistSwitch = None
|
|
96181
|
+
self._IpWhitelistSwitch = None
|
|
96182
|
+
self._ModelWhitelist = None
|
|
96183
|
+
self._IpWhitelist = None
|
|
96184
|
+
|
|
96185
|
+
@property
|
|
96186
|
+
def SubAppId(self):
|
|
96187
|
+
r"""<p><b>点播<a href="/document/product/266/14574">应用</a> ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b></p>
|
|
96188
|
+
:rtype: int
|
|
96189
|
+
"""
|
|
96190
|
+
return self._SubAppId
|
|
96191
|
+
|
|
96192
|
+
@SubAppId.setter
|
|
96193
|
+
def SubAppId(self, SubAppId):
|
|
96194
|
+
self._SubAppId = SubAppId
|
|
96195
|
+
|
|
96196
|
+
@property
|
|
96197
|
+
def AigcType(self):
|
|
96198
|
+
r"""<p>AIGC任务类型</p><p>枚举值:</p><ul><li>Image: AIGC 生图任务</li><li>Video: AIGC 生视频任务</li></ul>
|
|
96199
|
+
:rtype: str
|
|
96200
|
+
"""
|
|
96201
|
+
return self._AigcType
|
|
96202
|
+
|
|
96203
|
+
@AigcType.setter
|
|
96204
|
+
def AigcType(self, AigcType):
|
|
96205
|
+
self._AigcType = AigcType
|
|
96206
|
+
|
|
96207
|
+
@property
|
|
96208
|
+
def ModelWhitelistSwitch(self):
|
|
96209
|
+
r"""<p>模型白名单开关</p><p>枚举值:</p><ul><li>ON: 打开,只有允许调用ModelWhitelist中列出的模型</li><li>OFF: 关闭,允许调用所有模型</li></ul>
|
|
96210
|
+
:rtype: str
|
|
96211
|
+
"""
|
|
96212
|
+
return self._ModelWhitelistSwitch
|
|
96213
|
+
|
|
96214
|
+
@ModelWhitelistSwitch.setter
|
|
96215
|
+
def ModelWhitelistSwitch(self, ModelWhitelistSwitch):
|
|
96216
|
+
self._ModelWhitelistSwitch = ModelWhitelistSwitch
|
|
96217
|
+
|
|
96218
|
+
@property
|
|
96219
|
+
def IpWhitelistSwitch(self):
|
|
96220
|
+
r"""<p>IP白名单开关</p><p>枚举值:</p><ul><li>ON: 打开,只允许IpWhitelist中列出的IP段进行调用</li><li>OFF: 关闭,允许所有IP进行调用</li></ul>
|
|
96221
|
+
:rtype: str
|
|
96222
|
+
"""
|
|
96223
|
+
return self._IpWhitelistSwitch
|
|
96224
|
+
|
|
96225
|
+
@IpWhitelistSwitch.setter
|
|
96226
|
+
def IpWhitelistSwitch(self, IpWhitelistSwitch):
|
|
96227
|
+
self._IpWhitelistSwitch = IpWhitelistSwitch
|
|
96228
|
+
|
|
96229
|
+
@property
|
|
96230
|
+
def ModelWhitelist(self):
|
|
96231
|
+
r"""<p>模型白名单列表</p>
|
|
96232
|
+
:rtype: list of AigcWhitelistModel
|
|
96233
|
+
"""
|
|
96234
|
+
return self._ModelWhitelist
|
|
96235
|
+
|
|
96236
|
+
@ModelWhitelist.setter
|
|
96237
|
+
def ModelWhitelist(self, ModelWhitelist):
|
|
96238
|
+
self._ModelWhitelist = ModelWhitelist
|
|
96239
|
+
|
|
96240
|
+
@property
|
|
96241
|
+
def IpWhitelist(self):
|
|
96242
|
+
r"""<p>IP白名单的CIDR列表</p>
|
|
96243
|
+
:rtype: list of str
|
|
96244
|
+
"""
|
|
96245
|
+
return self._IpWhitelist
|
|
96246
|
+
|
|
96247
|
+
@IpWhitelist.setter
|
|
96248
|
+
def IpWhitelist(self, IpWhitelist):
|
|
96249
|
+
self._IpWhitelist = IpWhitelist
|
|
96250
|
+
|
|
96251
|
+
|
|
96252
|
+
def _deserialize(self, params):
|
|
96253
|
+
self._SubAppId = params.get("SubAppId")
|
|
96254
|
+
self._AigcType = params.get("AigcType")
|
|
96255
|
+
self._ModelWhitelistSwitch = params.get("ModelWhitelistSwitch")
|
|
96256
|
+
self._IpWhitelistSwitch = params.get("IpWhitelistSwitch")
|
|
96257
|
+
if params.get("ModelWhitelist") is not None:
|
|
96258
|
+
self._ModelWhitelist = []
|
|
96259
|
+
for item in params.get("ModelWhitelist"):
|
|
96260
|
+
obj = AigcWhitelistModel()
|
|
96261
|
+
obj._deserialize(item)
|
|
96262
|
+
self._ModelWhitelist.append(obj)
|
|
96263
|
+
self._IpWhitelist = params.get("IpWhitelist")
|
|
96264
|
+
memeber_set = set(params.keys())
|
|
96265
|
+
for name, value in vars(self).items():
|
|
96266
|
+
property_name = name[1:]
|
|
96267
|
+
if property_name in memeber_set:
|
|
96268
|
+
memeber_set.remove(property_name)
|
|
96269
|
+
if len(memeber_set) > 0:
|
|
96270
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
96271
|
+
|
|
96272
|
+
|
|
96273
|
+
|
|
96274
|
+
class SetAigcWhitelistResponse(AbstractModel):
|
|
96275
|
+
r"""SetAigcWhitelist返回参数结构体
|
|
96276
|
+
|
|
96277
|
+
"""
|
|
96278
|
+
|
|
96279
|
+
def __init__(self):
|
|
96280
|
+
r"""
|
|
96281
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
96282
|
+
:type RequestId: str
|
|
96283
|
+
"""
|
|
96284
|
+
self._RequestId = None
|
|
96285
|
+
|
|
96286
|
+
@property
|
|
96287
|
+
def RequestId(self):
|
|
96288
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
96289
|
+
:rtype: str
|
|
96290
|
+
"""
|
|
96291
|
+
return self._RequestId
|
|
96292
|
+
|
|
96293
|
+
@RequestId.setter
|
|
96294
|
+
def RequestId(self, RequestId):
|
|
96295
|
+
self._RequestId = RequestId
|
|
96296
|
+
|
|
96297
|
+
|
|
96298
|
+
def _deserialize(self, params):
|
|
96299
|
+
self._RequestId = params.get("RequestId")
|
|
96300
|
+
|
|
96301
|
+
|
|
95933
96302
|
class SetCLSPushTargetRequest(AbstractModel):
|
|
95934
96303
|
r"""SetCLSPushTarget请求参数结构体
|
|
95935
96304
|
|
|
@@ -97930,19 +98299,9 @@ class StatDataItem(AbstractModel):
|
|
|
97930
98299
|
|
|
97931
98300
|
def __init__(self):
|
|
97932
98301
|
r"""
|
|
97933
|
-
:param _Time:
|
|
97934
|
-
<li>表示小时级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日0点到1点的统计数据。</li>
|
|
97935
|
-
<li>表示天级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日的统计数据。</li>
|
|
98302
|
+
:param _Time: <p>数据所在时间区间的开始时间,使用 <a href="https://cloud.tencent.com/document/product/266/11732#I">ISO 日期格式</a>。如:当时间粒度为天,2018-12-01T00:00:00+08:00,表示2018年12月1日(含)到2018年12月2日(不含)区间。</p><li>表示小时级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日0点到1点的统计数据。</li><li>表示天级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日的统计数据。</li>
|
|
97936
98303
|
:type Time: str
|
|
97937
|
-
:param _Value:
|
|
97938
|
-
<li>存储空间的数据,单位是字节。</li>
|
|
97939
|
-
<li>转码时长的数据,单位是秒。</li>
|
|
97940
|
-
<li>流量数据,单位是字节。</li>
|
|
97941
|
-
<li>带宽数据,单位是比特每秒。</li>
|
|
97942
|
-
<li>直播剪辑数据,单位是秒。</li>
|
|
97943
|
-
<li>轮播数据,单位是秒。</li>
|
|
97944
|
-
<li>子应用数量数据,单位是个。</li>
|
|
97945
|
-
<li>日志服务用量数据,单位是条。</li>
|
|
98304
|
+
:param _Value: <p>数据大小。</p><li>存储空间的数据,单位是字节。</li><li>转码时长的数据,单位是秒。</li><li>流量数据,单位是字节。</li><li>带宽数据,单位是比特每秒。</li><li>直播剪辑数据,单位是秒。</li><li>轮播数据,单位是秒。</li><li>子应用数量数据,单位是个。</li><li>日志服务用量数据,单位是条。</li>
|
|
97946
98305
|
:type Value: int
|
|
97947
98306
|
"""
|
|
97948
98307
|
self._Time = None
|
|
@@ -97950,9 +98309,7 @@ class StatDataItem(AbstractModel):
|
|
|
97950
98309
|
|
|
97951
98310
|
@property
|
|
97952
98311
|
def Time(self):
|
|
97953
|
-
r"""
|
|
97954
|
-
<li>表示小时级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日0点到1点的统计数据。</li>
|
|
97955
|
-
<li>表示天级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日的统计数据。</li>
|
|
98312
|
+
r"""<p>数据所在时间区间的开始时间,使用 <a href="https://cloud.tencent.com/document/product/266/11732#I">ISO 日期格式</a>。如:当时间粒度为天,2018-12-01T00:00:00+08:00,表示2018年12月1日(含)到2018年12月2日(不含)区间。</p><li>表示小时级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日0点到1点的统计数据。</li><li>表示天级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日的统计数据。</li>
|
|
97956
98313
|
:rtype: str
|
|
97957
98314
|
"""
|
|
97958
98315
|
return self._Time
|
|
@@ -97963,15 +98320,7 @@ class StatDataItem(AbstractModel):
|
|
|
97963
98320
|
|
|
97964
98321
|
@property
|
|
97965
98322
|
def Value(self):
|
|
97966
|
-
r"""
|
|
97967
|
-
<li>存储空间的数据,单位是字节。</li>
|
|
97968
|
-
<li>转码时长的数据,单位是秒。</li>
|
|
97969
|
-
<li>流量数据,单位是字节。</li>
|
|
97970
|
-
<li>带宽数据,单位是比特每秒。</li>
|
|
97971
|
-
<li>直播剪辑数据,单位是秒。</li>
|
|
97972
|
-
<li>轮播数据,单位是秒。</li>
|
|
97973
|
-
<li>子应用数量数据,单位是个。</li>
|
|
97974
|
-
<li>日志服务用量数据,单位是条。</li>
|
|
98323
|
+
r"""<p>数据大小。</p><li>存储空间的数据,单位是字节。</li><li>转码时长的数据,单位是秒。</li><li>流量数据,单位是字节。</li><li>带宽数据,单位是比特每秒。</li><li>直播剪辑数据,单位是秒。</li><li>轮播数据,单位是秒。</li><li>子应用数量数据,单位是个。</li><li>日志服务用量数据,单位是条。</li>
|
|
97975
98324
|
:rtype: int
|
|
97976
98325
|
"""
|
|
97977
98326
|
return self._Value
|
|
@@ -2402,6 +2402,29 @@ class VodClient(AbstractClient):
|
|
|
2402
2402
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2403
2403
|
|
|
2404
2404
|
|
|
2405
|
+
def DescribeAigcWhitelist(self, request):
|
|
2406
|
+
r"""查询AIGC白名单配置
|
|
2407
|
+
|
|
2408
|
+
:param request: Request instance for DescribeAigcWhitelist.
|
|
2409
|
+
:type request: :class:`tencentcloud.vod.v20180717.models.DescribeAigcWhitelistRequest`
|
|
2410
|
+
:rtype: :class:`tencentcloud.vod.v20180717.models.DescribeAigcWhitelistResponse`
|
|
2411
|
+
|
|
2412
|
+
"""
|
|
2413
|
+
try:
|
|
2414
|
+
params = request._serialize()
|
|
2415
|
+
headers = request.headers
|
|
2416
|
+
body = self.call("DescribeAigcWhitelist", params, headers=headers)
|
|
2417
|
+
response = json.loads(body)
|
|
2418
|
+
model = models.DescribeAigcWhitelistResponse()
|
|
2419
|
+
model._deserialize(response["Response"])
|
|
2420
|
+
return model
|
|
2421
|
+
except Exception as e:
|
|
2422
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2423
|
+
raise
|
|
2424
|
+
else:
|
|
2425
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2426
|
+
|
|
2427
|
+
|
|
2405
2428
|
def DescribeAllClass(self, request):
|
|
2406
2429
|
r"""* 获得用户的所有分类信息。
|
|
2407
2430
|
|
|
@@ -5636,6 +5659,29 @@ class VodClient(AbstractClient):
|
|
|
5636
5659
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5637
5660
|
|
|
5638
5661
|
|
|
5662
|
+
def SetAigcWhitelist(self, request):
|
|
5663
|
+
r"""修改AIGC白名单设置
|
|
5664
|
+
|
|
5665
|
+
:param request: Request instance for SetAigcWhitelist.
|
|
5666
|
+
:type request: :class:`tencentcloud.vod.v20180717.models.SetAigcWhitelistRequest`
|
|
5667
|
+
:rtype: :class:`tencentcloud.vod.v20180717.models.SetAigcWhitelistResponse`
|
|
5668
|
+
|
|
5669
|
+
"""
|
|
5670
|
+
try:
|
|
5671
|
+
params = request._serialize()
|
|
5672
|
+
headers = request.headers
|
|
5673
|
+
body = self.call("SetAigcWhitelist", params, headers=headers)
|
|
5674
|
+
response = json.loads(body)
|
|
5675
|
+
model = models.SetAigcWhitelistResponse()
|
|
5676
|
+
model._deserialize(response["Response"])
|
|
5677
|
+
return model
|
|
5678
|
+
except Exception as e:
|
|
5679
|
+
if isinstance(e, TencentCloudSDKException):
|
|
5680
|
+
raise
|
|
5681
|
+
else:
|
|
5682
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5683
|
+
|
|
5684
|
+
|
|
5639
5685
|
def SetCLSPushTarget(self, request):
|
|
5640
5686
|
r"""为点播域名设置投递 CLS 的目标。
|
|
5641
5687
|
|
|
@@ -1901,6 +1901,24 @@ class VodClient(AbstractClient):
|
|
|
1901
1901
|
|
|
1902
1902
|
return await self.call_and_deserialize(**kwargs)
|
|
1903
1903
|
|
|
1904
|
+
async def DescribeAigcWhitelist(
|
|
1905
|
+
self,
|
|
1906
|
+
request: models.DescribeAigcWhitelistRequest,
|
|
1907
|
+
opts: Dict = None,
|
|
1908
|
+
) -> models.DescribeAigcWhitelistResponse:
|
|
1909
|
+
"""
|
|
1910
|
+
查询AIGC白名单配置
|
|
1911
|
+
"""
|
|
1912
|
+
|
|
1913
|
+
kwargs = {}
|
|
1914
|
+
kwargs["action"] = "DescribeAigcWhitelist"
|
|
1915
|
+
kwargs["params"] = request._serialize()
|
|
1916
|
+
kwargs["resp_cls"] = models.DescribeAigcWhitelistResponse
|
|
1917
|
+
kwargs["headers"] = request.headers
|
|
1918
|
+
kwargs["opts"] = opts or {}
|
|
1919
|
+
|
|
1920
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1921
|
+
|
|
1904
1922
|
async def DescribeAllClass(
|
|
1905
1923
|
self,
|
|
1906
1924
|
request: models.DescribeAllClassRequest,
|
|
@@ -4490,6 +4508,24 @@ class VodClient(AbstractClient):
|
|
|
4490
4508
|
|
|
4491
4509
|
return await self.call_and_deserialize(**kwargs)
|
|
4492
4510
|
|
|
4511
|
+
async def SetAigcWhitelist(
|
|
4512
|
+
self,
|
|
4513
|
+
request: models.SetAigcWhitelistRequest,
|
|
4514
|
+
opts: Dict = None,
|
|
4515
|
+
) -> models.SetAigcWhitelistResponse:
|
|
4516
|
+
"""
|
|
4517
|
+
修改AIGC白名单设置
|
|
4518
|
+
"""
|
|
4519
|
+
|
|
4520
|
+
kwargs = {}
|
|
4521
|
+
kwargs["action"] = "SetAigcWhitelist"
|
|
4522
|
+
kwargs["params"] = request._serialize()
|
|
4523
|
+
kwargs["resp_cls"] = models.SetAigcWhitelistResponse
|
|
4524
|
+
kwargs["headers"] = request.headers
|
|
4525
|
+
kwargs["opts"] = opts or {}
|
|
4526
|
+
|
|
4527
|
+
return await self.call_and_deserialize(**kwargs)
|
|
4528
|
+
|
|
4493
4529
|
async def SetCLSPushTarget(
|
|
4494
4530
|
self,
|
|
4495
4531
|
request: models.SetCLSPushTargetRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-vod
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.208
|
|
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
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.208
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=
|
|
1
|
+
tencentcloud/__init__.py,sha256=J2RaTyw2Ld93lQOmhvgLIOQsNrDPFcBTcGx1_l2JLRw,630
|
|
2
2
|
tencentcloud/vod/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
tencentcloud/vod/v20180717/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
tencentcloud/vod/v20180717/errorcodes.py,sha256=QBoBsvAssq8DxZjP5Sit8wPIXRI6uEkRF0kHLAMzsFw,28018
|
|
5
|
-
tencentcloud/vod/v20180717/models.py,sha256=
|
|
6
|
-
tencentcloud/vod/v20180717/vod_client.py,sha256=
|
|
7
|
-
tencentcloud/vod/v20180717/vod_client_async.py,sha256=
|
|
5
|
+
tencentcloud/vod/v20180717/models.py,sha256=susb1wi5NxK-YUlqUxVOFAe6gGDLo_A84j9Hm8YjyvA,4218109
|
|
6
|
+
tencentcloud/vod/v20180717/vod_client.py,sha256=AKJAoEreBeIOwxmJPpTs07tsvNAOCOHDPe00GkynX4o,278124
|
|
7
|
+
tencentcloud/vod/v20180717/vod_client_async.py,sha256=o2UTtTNgkAgJc0GvV4GH7eAWPcnAM0r5uySzHOeYaZ0,204162
|
|
8
8
|
tencentcloud/vod/v20240718/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
tencentcloud/vod/v20240718/errorcodes.py,sha256=DWwo-t3GdhYrVANTWp0va50crb5yPpRBJHDrxyjTO3E,1781
|
|
10
10
|
tencentcloud/vod/v20240718/models.py,sha256=HhnCdbxqF3o6HZSCfezn4AicnxFOpR0fONT9acCGNJQ,70451
|
|
11
11
|
tencentcloud/vod/v20240718/vod_client.py,sha256=yFQ8xtkxrXTag3hN2HuOuwYbLuQDCIpAmBfT4Lb_zPg,8248
|
|
12
12
|
tencentcloud/vod/v20240718/vod_client_async.py,sha256=7pNelUBLme2B8Isw7uWS1vEKJwyuXJEQbHIf2JA1Ouo,5995
|
|
13
|
-
tencentcloud_sdk_python_vod-3.1.
|
|
14
|
-
tencentcloud_sdk_python_vod-3.1.
|
|
15
|
-
tencentcloud_sdk_python_vod-3.1.
|
|
16
|
-
tencentcloud_sdk_python_vod-3.1.
|
|
13
|
+
tencentcloud_sdk_python_vod-3.1.208.dist-info/METADATA,sha256=Y5s5sJkxK6jiAPRANQsj4YDbLWuWRqXg4Wfbau0bfp4,1497
|
|
14
|
+
tencentcloud_sdk_python_vod-3.1.208.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
15
|
+
tencentcloud_sdk_python_vod-3.1.208.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
16
|
+
tencentcloud_sdk_python_vod-3.1.208.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|