tencentcloud-sdk-vod 3.0.1190 → 3.0.1192

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f097558022685b3cf89e0ba8586f942160464a6
4
- data.tar.gz: 432ac1b53db7e1a7eb468b9cb2242c1e38f09bcb
3
+ metadata.gz: cbb14b51868b9acbb0ef5d0fb16e54f40a4fe73e
4
+ data.tar.gz: c932d3bb753473c9bbce96e5a41dd2d2e5e0d232
5
5
  SHA512:
6
- metadata.gz: 14ea16eaf5338364a153baecca6e1755e5ad5f88607f1bd3e1ebe121d49ece427461afef181390d61755f876976d4b9227b6c08906729e814800db5fb9f62b82
7
- data.tar.gz: 5384c9556ce728616c92f2c7f27b76f9b63a4e8fee4876ae5833424cf888f321085a99b1e5c833a8a4af3110fa8307be0f40451b47ab69925198c226ac66895d
6
+ metadata.gz: 719753cd05d0925dffb6f503e4913db8cb5c33a184bfffca82fdb6b81207710a35e40a7f1f53ad9713dbf5272ebd882b8249334afdd2766a49b61bc1c4261a65
7
+ data.tar.gz: 1c054305ed86775121b73901510edfa723347209f0574ee48ed74c702e24ca190efc4a09db427a47a7884b2a3680d894396272113120455eae565690de5e0f64
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1190
1
+ 3.0.1192
@@ -792,6 +792,30 @@ module TencentCloud
792
792
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
793
793
  end
794
794
 
795
+ # 该接口用于生成场景化 AIGC 图片。<b>接口处于内测阶段,如需使用请[联系我们](https://cloud.tencent.com/online-service?from=sales_sales&source=PRESALE),接口调用会产生实际费用。</b>
796
+
797
+ # @param request: Request instance for CreateSceneAigcImageTask.
798
+ # @type request: :class:`Tencentcloud::vod::V20180717::CreateSceneAigcImageTaskRequest`
799
+ # @rtype: :class:`Tencentcloud::vod::V20180717::CreateSceneAigcImageTaskResponse`
800
+ def CreateSceneAigcImageTask(request)
801
+ body = send_request('CreateSceneAigcImageTask', request.serialize)
802
+ response = JSON.parse(body)
803
+ if response['Response'].key?('Error') == false
804
+ model = CreateSceneAigcImageTaskResponse.new
805
+ model.deserialize(response['Response'])
806
+ model
807
+ else
808
+ code = response['Response']['Error']['Code']
809
+ message = response['Response']['Error']['Message']
810
+ reqid = response['Response']['RequestId']
811
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
812
+ end
813
+ rescue TencentCloud::Common::TencentCloudSDKException => e
814
+ raise e
815
+ rescue StandardError => e
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
817
+ end
818
+
795
819
  # 创建用户自定义指定时间点截图模板,数量上限:16。
796
820
 
797
821
  # @param request: Request instance for CreateSnapshotByTimeOffsetTemplate.
@@ -4045,6 +4045,31 @@ module TencentCloud
4045
4045
  end
4046
4046
  end
4047
4047
 
4048
+ # 场景化 AIGC 生图配置。
4049
+ class AigcImageSceneInfo < TencentCloud::Common::AbstractModel
4050
+ # @param Type: AI生图场景类型,可选值:
4051
+ # - change_clothes:AI换衣。
4052
+ # @type Type: String
4053
+ # @param ChangeClothesConfig: 当 Type 为 change_clothes 时有效,则该项为必填,表示AI 换衣生图配置参数。
4054
+
4055
+ # @type ChangeClothesConfig: :class:`Tencentcloud::Vod.v20180717.models.ChangeClothesConfig`
4056
+
4057
+ attr_accessor :Type, :ChangeClothesConfig
4058
+
4059
+ def initialize(type=nil, changeclothesconfig=nil)
4060
+ @Type = type
4061
+ @ChangeClothesConfig = changeclothesconfig
4062
+ end
4063
+
4064
+ def deserialize(params)
4065
+ @Type = params['Type']
4066
+ unless params['ChangeClothesConfig'].nil?
4067
+ @ChangeClothesConfig = ChangeClothesConfig.new
4068
+ @ChangeClothesConfig.deserialize(params['ChangeClothesConfig'])
4069
+ end
4070
+ end
4071
+ end
4072
+
4048
4073
  # AIGC 生图任务信息
4049
4074
  class AigcImageTask < TencentCloud::Common::AbstractModel
4050
4075
  # @param TaskId: 任务 ID。
@@ -4538,19 +4563,37 @@ module TencentCloud
4538
4563
  # 1. 推荐使用小于10M的图片;
4539
4564
  # 2. 图片格式的取值为:jpeg,jpg, png。
4540
4565
  # @type Url: String
4566
+ # @param ReferenceType: 参考类型,GV模型适用。
4567
+ # 注意:
4541
4568
 
4542
- attr_accessor :Type, :FileId, :Url
4569
+ # 当使用GV模型时,可作为参考方式,可选asset(素材)、style(风格)。
4570
+ # @type ReferenceType: String
4571
+ # @param ObjectId: 主体id.
4572
+ # 适用模型:Vidu-q2.
4573
+ # 当需要对图片标识主体时,需要每个图片都带主体id,后续生成时可以通过@主体id的方式使用。
4574
+ # @type ObjectId: String
4575
+ # @param VoiceId: 适用于Vidu-q2模型。
4576
+ # 当全部图片携带主体id时,可针对主体设置音色id。 音色列表:https://shengshu.feishu.cn/sheets/EgFvs6DShhiEBStmjzccr5gonOg
4577
+ # @type VoiceId: String
4543
4578
 
4544
- def initialize(type=nil, fileid=nil, url=nil)
4579
+ attr_accessor :Type, :FileId, :Url, :ReferenceType, :ObjectId, :VoiceId
4580
+
4581
+ def initialize(type=nil, fileid=nil, url=nil, referencetype=nil, objectid=nil, voiceid=nil)
4545
4582
  @Type = type
4546
4583
  @FileId = fileid
4547
4584
  @Url = url
4585
+ @ReferenceType = referencetype
4586
+ @ObjectId = objectid
4587
+ @VoiceId = voiceid
4548
4588
  end
4549
4589
 
4550
4590
  def deserialize(params)
4551
4591
  @Type = params['Type']
4552
4592
  @FileId = params['FileId']
4553
4593
  @Url = params['Url']
4594
+ @ReferenceType = params['ReferenceType']
4595
+ @ObjectId = params['ObjectId']
4596
+ @VoiceId = params['VoiceId']
4554
4597
  end
4555
4598
  end
4556
4599
 
@@ -5767,6 +5810,29 @@ module TencentCloud
5767
5810
  end
5768
5811
  end
5769
5812
 
5813
+ # AI 换衣参数配置
5814
+ class ChangeClothesConfig < TencentCloud::Common::AbstractModel
5815
+ # @param ClothesFileInfos: 输入需要更换的**衣物**图片列表。目前最大支持4张图片。
5816
+ # @type ClothesFileInfos: Array
5817
+
5818
+ attr_accessor :ClothesFileInfos
5819
+
5820
+ def initialize(clothesfileinfos=nil)
5821
+ @ClothesFileInfos = clothesfileinfos
5822
+ end
5823
+
5824
+ def deserialize(params)
5825
+ unless params['ClothesFileInfos'].nil?
5826
+ @ClothesFileInfos = []
5827
+ params['ClothesFileInfos'].each do |i|
5828
+ sceneaigcimagetaskinputfileinfo_tmp = SceneAigcImageTaskInputFileInfo.new
5829
+ sceneaigcimagetaskinputfileinfo_tmp.deserialize(i)
5830
+ @ClothesFileInfos << sceneaigcimagetaskinputfileinfo_tmp
5831
+ end
5832
+ end
5833
+ end
5834
+ end
5835
+
5770
5836
  # 智能分类任务控制参数
5771
5837
  class ClassificationConfigureInfo < TencentCloud::Common::AbstractModel
5772
5838
  # @param Switch: 智能分类任务开关,可选值:
@@ -7236,9 +7302,15 @@ module TencentCloud
7236
7302
  # @type ModelName: String
7237
7303
  # @param ModelVersion: 模型版本。取值:<li>当 ModelName 是 Hailuo,可选值为 02、2.3、2.3-fast;</li><li>当 ModelName 是 Kling,可选值为 1.6、2.0、2.1、2.5、O1;</li><li>当 ModelName 是 Jimeng,可选值为 3.0pro;</li><li>当 ModelName 是 Vidu,可选值为 q2、q2-pro、q2-turbo;</li><li>当 ModelName 是 GV,可选值为 3.1、3.1-Fast;</li><li>当 ModelName 是 OS,可选值为 2.0;</li><li>当 ModelName 是 Hunyuan,可选值为 1.5;</li><li>当 ModelName 是 Mingmou,可选值为 1.0;</li>
7238
7304
  # @type ModelVersion: String
7239
- # @param FileInfos: AIGC 生视频任务的输入图片的文件信息。说明
7240
- # 1. 当 ModelName 是 GV 时,最大长度为 3;其他情况下最大长度为1。
7241
- # 2. 当 ModelName 是 GV 时,并且长度大于1时,则不能再指定 LastFrameFileId 参数。
7305
+ # @param FileInfos: 最多包含三张素材资源图片的列表,用于描述模型在生成视频时要使用的资源图片。
7306
+
7307
+ # 支持多图输入的模型:
7308
+ # 1. GV,使用多图输入时,不可使用LastFrameFileId和LastFrameUrl。
7309
+ # 2. Vidu,支持多图参考生视频。q2模型1-7张图片,可通过FileInfos里面的ObjectId作为主体id来传入。
7310
+
7311
+ # 注意:
7312
+ # 1. 图片大小不超过10M。
7313
+ # 2. 支持的图片格式:jpeg、png。
7242
7314
  # @type FileInfos: Array
7243
7315
  # @param LastFrameFileId: 用于作为尾帧画面来生成视频的媒体文件 ID。该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 [视频上传完成事件通知](/document/product/266/7830) 或 [云点播控制台](https://console.cloud.tencent.com/vod/media) 获取该字段。说明:
7244
7316
  # 1. 只支持模型 GV 、Kling、Vidu,其他模型暂不支持。当 ModelName 为 GV 时,如果指定该参数,则需同时指定 FileInfos 作为待生成视频的首帧。当 ModelName 为 Kling 、ModelVersion 为 2.1 并且指定输出分辨率 Resolution 为 1080P 时,才能指定该参数。当 ModelName 为 Vidu、ModelVersion 为 q2-pro、q2-turbo 时,才能指定该参数。
@@ -7250,9 +7322,10 @@ module TencentCloud
7250
7322
  # 2. 图片大小需小于5M。
7251
7323
  # 3. 3. 图片格式的取值为:jpeg,jpg, png, webp。
7252
7324
  # @type LastFrameUrl: String
7253
- # @param Prompt: 生成图片的提示词。当 FileInfos 为空时,此参数必填。
7325
+ # @param Prompt: 生成视频的提示词。当 FileInfos 为空时,此参数必填。
7326
+ # 示例值:move the picture
7254
7327
  # @type Prompt: String
7255
- # @param NegativePrompt: 要阻止模型生成图片的提示词。
7328
+ # @param NegativePrompt: 要阻止模型生成视频的提示词。
7256
7329
  # @type NegativePrompt: String
7257
7330
  # @param EnhancePrompt: 是否自动优化提示词。开启时将自动优化传入的 Prompt,以提升生成质量。取值有: <li>Enabled:开启;</li> <li>Disabled:关闭;</li>
7258
7331
  # @type EnhancePrompt: String
@@ -7266,10 +7339,12 @@ module TencentCloud
7266
7339
  # @type TasksPriority: Integer
7267
7340
  # @param ExtInfo: 保留字段,特殊用途时使用。
7268
7341
  # @type ExtInfo: String
7342
+ # @param InputRegion: 输入图片的区域信息。当图片url是国外地址时候,可选Oversea。默认Mainland。
7343
+ # @type InputRegion: String
7269
7344
 
7270
- attr_accessor :SubAppId, :ModelName, :ModelVersion, :FileInfos, :LastFrameFileId, :LastFrameUrl, :Prompt, :NegativePrompt, :EnhancePrompt, :OutputConfig, :SessionId, :SessionContext, :TasksPriority, :ExtInfo
7345
+ attr_accessor :SubAppId, :ModelName, :ModelVersion, :FileInfos, :LastFrameFileId, :LastFrameUrl, :Prompt, :NegativePrompt, :EnhancePrompt, :OutputConfig, :SessionId, :SessionContext, :TasksPriority, :ExtInfo, :InputRegion
7271
7346
 
7272
- def initialize(subappid=nil, modelname=nil, modelversion=nil, fileinfos=nil, lastframefileid=nil, lastframeurl=nil, prompt=nil, negativeprompt=nil, enhanceprompt=nil, outputconfig=nil, sessionid=nil, sessioncontext=nil, taskspriority=nil, extinfo=nil)
7347
+ def initialize(subappid=nil, modelname=nil, modelversion=nil, fileinfos=nil, lastframefileid=nil, lastframeurl=nil, prompt=nil, negativeprompt=nil, enhanceprompt=nil, outputconfig=nil, sessionid=nil, sessioncontext=nil, taskspriority=nil, extinfo=nil, inputregion=nil)
7273
7348
  @SubAppId = subappid
7274
7349
  @ModelName = modelname
7275
7350
  @ModelVersion = modelversion
@@ -7284,6 +7359,7 @@ module TencentCloud
7284
7359
  @SessionContext = sessioncontext
7285
7360
  @TasksPriority = taskspriority
7286
7361
  @ExtInfo = extinfo
7362
+ @InputRegion = inputregion
7287
7363
  end
7288
7364
 
7289
7365
  def deserialize(params)
@@ -7311,6 +7387,7 @@ module TencentCloud
7311
7387
  @SessionContext = params['SessionContext']
7312
7388
  @TasksPriority = params['TasksPriority']
7313
7389
  @ExtInfo = params['ExtInfo']
7390
+ @InputRegion = params['InputRegion']
7314
7391
  end
7315
7392
  end
7316
7393
 
@@ -8836,6 +8913,85 @@ module TencentCloud
8836
8913
  end
8837
8914
  end
8838
8915
 
8916
+ # CreateSceneAigcImageTask请求参数结构体
8917
+ class CreateSceneAigcImageTaskRequest < TencentCloud::Common::AbstractModel
8918
+ # @param SubAppId: **点播应用 ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。**
8919
+ # @type SubAppId: Integer
8920
+ # @param SceneInfo: 场景化生图参数配置。
8921
+ # @type SceneInfo: :class:`Tencentcloud::Vod.v20180717.models.AigcImageSceneInfo`
8922
+ # @param FileInfos: 输入图片列表,支持的图片格式:jpg、jpeg、png、webp。不同的场景需要不同的输入数据:
8923
+
8924
+ # - change_clothes:只能输入1张**模特**图片。
8925
+ # @type FileInfos: Array
8926
+ # @param OutputConfig: 场景化生图任务的输出媒体文件配置。
8927
+ # @type OutputConfig: :class:`Tencentcloud::Vod.v20180717.models.SceneAigcImageOutputConfig`
8928
+ # @param SessionId: 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
8929
+ # @type SessionId: String
8930
+ # @param SessionContext: 来源上下文,用于透传用户请求信息,音画质重生完成回调将返回该字段值,最长 1000 个字符。
8931
+ # @type SessionContext: String
8932
+ # @param TasksPriority: 任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。
8933
+ # @type TasksPriority: Integer
8934
+ # @param ExtInfo: 保留字段,特殊用途时使用。
8935
+ # @type ExtInfo: String
8936
+
8937
+ attr_accessor :SubAppId, :SceneInfo, :FileInfos, :OutputConfig, :SessionId, :SessionContext, :TasksPriority, :ExtInfo
8938
+
8939
+ def initialize(subappid=nil, sceneinfo=nil, fileinfos=nil, outputconfig=nil, sessionid=nil, sessioncontext=nil, taskspriority=nil, extinfo=nil)
8940
+ @SubAppId = subappid
8941
+ @SceneInfo = sceneinfo
8942
+ @FileInfos = fileinfos
8943
+ @OutputConfig = outputconfig
8944
+ @SessionId = sessionid
8945
+ @SessionContext = sessioncontext
8946
+ @TasksPriority = taskspriority
8947
+ @ExtInfo = extinfo
8948
+ end
8949
+
8950
+ def deserialize(params)
8951
+ @SubAppId = params['SubAppId']
8952
+ unless params['SceneInfo'].nil?
8953
+ @SceneInfo = AigcImageSceneInfo.new
8954
+ @SceneInfo.deserialize(params['SceneInfo'])
8955
+ end
8956
+ unless params['FileInfos'].nil?
8957
+ @FileInfos = []
8958
+ params['FileInfos'].each do |i|
8959
+ sceneaigcimagetaskinputfileinfo_tmp = SceneAigcImageTaskInputFileInfo.new
8960
+ sceneaigcimagetaskinputfileinfo_tmp.deserialize(i)
8961
+ @FileInfos << sceneaigcimagetaskinputfileinfo_tmp
8962
+ end
8963
+ end
8964
+ unless params['OutputConfig'].nil?
8965
+ @OutputConfig = SceneAigcImageOutputConfig.new
8966
+ @OutputConfig.deserialize(params['OutputConfig'])
8967
+ end
8968
+ @SessionId = params['SessionId']
8969
+ @SessionContext = params['SessionContext']
8970
+ @TasksPriority = params['TasksPriority']
8971
+ @ExtInfo = params['ExtInfo']
8972
+ end
8973
+ end
8974
+
8975
+ # CreateSceneAigcImageTask返回参数结构体
8976
+ class CreateSceneAigcImageTaskResponse < TencentCloud::Common::AbstractModel
8977
+ # @param TaskId: 任务 ID。
8978
+ # @type TaskId: String
8979
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8980
+ # @type RequestId: String
8981
+
8982
+ attr_accessor :TaskId, :RequestId
8983
+
8984
+ def initialize(taskid=nil, requestid=nil)
8985
+ @TaskId = taskid
8986
+ @RequestId = requestid
8987
+ end
8988
+
8989
+ def deserialize(params)
8990
+ @TaskId = params['TaskId']
8991
+ @RequestId = params['RequestId']
8992
+ end
8993
+ end
8994
+
8839
8995
  # CreateSnapshotByTimeOffsetTemplate请求参数结构体
8840
8996
  class CreateSnapshotByTimeOffsetTemplateRequest < TencentCloud::Common::AbstractModel
8841
8997
  # @param SubAppId: <b>点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b>
@@ -27291,6 +27447,66 @@ module TencentCloud
27291
27447
  end
27292
27448
  end
27293
27449
 
27450
+ # AIGC 场景化生图任务的输出媒体文件配置。
27451
+ class SceneAigcImageOutputConfig < TencentCloud::Common::AbstractModel
27452
+ # @param StorageMode: 存储模式。取值有: <li>Permanent:永久存储,生成的图片文件将存储到云点播,可在事件通知中获取到 FileId;</li> <li>Temporary:临时存储,生成的图片文件不会存储到云点播,可在事件通知中获取到临时访问的 URL;</li>
27453
+ # 默认值:Temporary
27454
+ # @type StorageMode: String
27455
+ # @param MediaName: 输出文件名,最长 64 个字符。缺省由系统指定生成文件名。
27456
+ # @type MediaName: String
27457
+ # @param ClassId: 分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。
27458
+ # <li>默认值:0,表示其他分类。</li>
27459
+ # @type ClassId: Integer
27460
+ # @param ExpireTime: 输出文件的过期时间,超过该时间文件将被删除,默认为永久不过期,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。
27461
+ # @type ExpireTime: String
27462
+
27463
+ attr_accessor :StorageMode, :MediaName, :ClassId, :ExpireTime
27464
+
27465
+ def initialize(storagemode=nil, medianame=nil, classid=nil, expiretime=nil)
27466
+ @StorageMode = storagemode
27467
+ @MediaName = medianame
27468
+ @ClassId = classid
27469
+ @ExpireTime = expiretime
27470
+ end
27471
+
27472
+ def deserialize(params)
27473
+ @StorageMode = params['StorageMode']
27474
+ @MediaName = params['MediaName']
27475
+ @ClassId = params['ClassId']
27476
+ @ExpireTime = params['ExpireTime']
27477
+ end
27478
+ end
27479
+
27480
+ # AIGC场景化生图任务输入文件信息
27481
+ class SceneAigcImageTaskInputFileInfo < TencentCloud::Common::AbstractModel
27482
+ # @param Type: 输入的视频文件类型。取值有: <li>File:点播媒体文件;</li> <li>Url:可访问的 URL;</li>
27483
+ # @type Type: String
27484
+ # @param FileId: 图片文件的媒体文件 ID,即该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 [视频上传完成事件通知](/document/product/266/7830) 或 [云点播控制台](https://console.cloud.tencent.com/vod/media) 获取该字段。当 Type 取值为 File 时,本参数有效。
27485
+ # 说明:
27486
+ # 1. 推荐使用小于7M的图片;
27487
+ # 2. 图片格式的取值为:jpeg,jpg, png, webp。
27488
+ # @type FileId: String
27489
+ # @param Url: 可访问的文件 URL。当 Type 取值为 Url 时,本参数有效。
27490
+ # 说明:
27491
+ # 1. 推荐使用小于7M的图片;
27492
+ # 2. 图片格式的取值为:jpeg,jpg, png, webp。
27493
+ # @type Url: String
27494
+
27495
+ attr_accessor :Type, :FileId, :Url
27496
+
27497
+ def initialize(type=nil, fileid=nil, url=nil)
27498
+ @Type = type
27499
+ @FileId = fileid
27500
+ @Url = url
27501
+ end
27502
+
27503
+ def deserialize(params)
27504
+ @Type = params['Type']
27505
+ @FileId = params['FileId']
27506
+ @Url = params['Url']
27507
+ end
27508
+ end
27509
+
27294
27510
  # 去划痕控制信息
27295
27511
  class ScratchRepairInfo < TencentCloud::Common::AbstractModel
27296
27512
  # @param Switch: 去划痕控制开关,可选值:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-vod
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1190
4
+ version: 3.0.1192
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-25 00:00:00.000000000 Z
11
+ date: 2025-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common