tencentcloud-sdk-vclm 3.0.1178 → 3.0.1187

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: 928d3d13851812a41b422d1d5eeacba5a212a735
4
- data.tar.gz: 224c8a73d95a74d223aab8ff30babb588776f43f
3
+ metadata.gz: d1adc1c5acaf2805e000a039c263e8a9802fd77b
4
+ data.tar.gz: 41d570b38d49fb43575ad06073c0fb37d90d293d
5
5
  SHA512:
6
- metadata.gz: f68faaca0bc85b5388243a843025031fd8763493e21630fa5cd563302f7ac11a15a05b7d7bfbe147021ba3a6da66758486f240b10cded5a86c75d0ec37644ef1
7
- data.tar.gz: b8aa4775ab499a49c5d36680a678397850cd0c19338f0798e393b18a9c04a24883caf03b52911f4944eec11a9742d89c9a13a7eb7b140414ae1ba751d9ad4ec2
6
+ metadata.gz: 87696e386ec5ca56c0642b291e9d2d939947e72dffeace18ad20ebd1738fa66334e1e439f6553dbabd8556c1cbaedc6186851af2979f00bf117031d232012c67
7
+ data.tar.gz: 0c52f4c26dd903b9c733c45de55b4421103c3567f20577819bc1ba939cb5015d7e000c11ccf04cf2e0add26c854b11f1c35f2ba86c4a2d4d4cab1b94a1038ae4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1178
1
+ 3.0.1187
@@ -198,6 +198,30 @@ module TencentCloud
198
198
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
199
199
  end
200
200
 
201
+ # 用于提交视频编辑任务,支持上传视频、文本及图片素材开展编辑操作,涵盖风格迁移、元素替换、内容增减等核心能力。
202
+
203
+ # @param request: Request instance for DescribeVideoEditJob.
204
+ # @type request: :class:`Tencentcloud::vclm::V20240523::DescribeVideoEditJobRequest`
205
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeVideoEditJobResponse`
206
+ def DescribeVideoEditJob(request)
207
+ body = send_request('DescribeVideoEditJob', request.serialize)
208
+ response = JSON.parse(body)
209
+ if response['Response'].key?('Error') == false
210
+ model = DescribeVideoEditJobResponse.new
211
+ model.deserialize(response['Response'])
212
+ model
213
+ else
214
+ code = response['Response']['Error']['Code']
215
+ message = response['Response']['Error']['Message']
216
+ reqid = response['Response']['RequestId']
217
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
218
+ end
219
+ rescue TencentCloud::Common::TencentCloudSDKException => e
220
+ raise e
221
+ rescue StandardError => e
222
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
223
+ end
224
+
201
225
  # 查询视频人脸融合任务
202
226
 
203
227
  # @param request: Request instance for DescribeVideoFaceFusionJob.
@@ -418,6 +442,30 @@ module TencentCloud
418
442
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
419
443
  end
420
444
 
445
+ # 用于提交视频编辑任务,支持上传视频、文本及图片素材开展编辑操作,涵盖风格迁移、元素替换、内容增减等核心能力。
446
+
447
+ # @param request: Request instance for SubmitVideoEditJob.
448
+ # @type request: :class:`Tencentcloud::vclm::V20240523::SubmitVideoEditJobRequest`
449
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitVideoEditJobResponse`
450
+ def SubmitVideoEditJob(request)
451
+ body = send_request('SubmitVideoEditJob', request.serialize)
452
+ response = JSON.parse(body)
453
+ if response['Response'].key?('Error') == false
454
+ model = SubmitVideoEditJobResponse.new
455
+ model.deserialize(response['Response'])
456
+ model
457
+ else
458
+ code = response['Response']['Error']['Code']
459
+ message = response['Response']['Error']['Message']
460
+ reqid = response['Response']['RequestId']
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
462
+ end
463
+ rescue TencentCloud::Common::TencentCloudSDKException => e
464
+ raise e
465
+ rescue StandardError => e
466
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
467
+ end
468
+
421
469
  # 提交视频人脸融合任务
422
470
 
423
471
  # @param request: Request instance for SubmitVideoFaceFusionJob.
@@ -386,6 +386,54 @@ module TencentCloud
386
386
  end
387
387
  end
388
388
 
389
+ # DescribeVideoEditJob请求参数结构体
390
+ class DescribeVideoEditJobRequest < TencentCloud::Common::AbstractModel
391
+ # @param JobId: 任务ID。
392
+ # @type JobId: String
393
+
394
+ attr_accessor :JobId
395
+
396
+ def initialize(jobid=nil)
397
+ @JobId = jobid
398
+ end
399
+
400
+ def deserialize(params)
401
+ @JobId = params['JobId']
402
+ end
403
+ end
404
+
405
+ # DescribeVideoEditJob返回参数结构体
406
+ class DescribeVideoEditJobResponse < TencentCloud::Common::AbstractModel
407
+ # @param Status: 任务状态。 WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
408
+ # @type Status: String
409
+ # @param ResultVideoUrl: 结果视频URL。有效期 24 小时。
410
+ # @type ResultVideoUrl: String
411
+ # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
412
+ # @type ErrorCode: String
413
+ # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
414
+ # @type ErrorMessage: String
415
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
416
+ # @type RequestId: String
417
+
418
+ attr_accessor :Status, :ResultVideoUrl, :ErrorCode, :ErrorMessage, :RequestId
419
+
420
+ def initialize(status=nil, resultvideourl=nil, errorcode=nil, errormessage=nil, requestid=nil)
421
+ @Status = status
422
+ @ResultVideoUrl = resultvideourl
423
+ @ErrorCode = errorcode
424
+ @ErrorMessage = errormessage
425
+ @RequestId = requestid
426
+ end
427
+
428
+ def deserialize(params)
429
+ @Status = params['Status']
430
+ @ResultVideoUrl = params['ResultVideoUrl']
431
+ @ErrorCode = params['ErrorCode']
432
+ @ErrorMessage = params['ErrorMessage']
433
+ @RequestId = params['RequestId']
434
+ end
435
+ end
436
+
389
437
  # DescribeVideoFaceFusionJob请求参数结构体
390
438
  class DescribeVideoFaceFusionJobRequest < TencentCloud::Common::AbstractModel
391
439
  # @param JobId: 任务ID
@@ -1178,6 +1226,74 @@ module TencentCloud
1178
1226
  end
1179
1227
  end
1180
1228
 
1229
+ # SubmitVideoEditJob请求参数结构体
1230
+ class SubmitVideoEditJobRequest < TencentCloud::Common::AbstractModel
1231
+ # @param VideoUrl: 输入视频
1232
+
1233
+ # - 视频格式:MP4
1234
+ # - 视频时长:5s以内
1235
+ # - 视频分辨率:无限制(待验证是否可以无损输出)
1236
+ # @type VideoUrl: String
1237
+ # @param Prompt: 视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。
1238
+ # 支持风格迁移、替换、元素增加、删除控制
1239
+ # @type Prompt: String
1240
+ # @param Image: 图片base64或者图片url
1241
+
1242
+ # - Base64 和 Url 必须提供一个,如果都提供以Url为准。
1243
+ # - 上传图url大小不超过 8M
1244
+ # - 支持jpg,png,jpeg,webp,bmp,tiff 格式
1245
+ # - 单边分辨率不超过5000,不小于50,长宽限制1:4 ~ 4:1
1246
+ # @type Image: :class:`Tencentcloud::Vclm.v20240523.models.Image`
1247
+ # @param LogoAdd: 为生成视频添加标识的开关,默认为1。 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。 建议您使用显著标识来提示,该视频是 AI 生成的视频。
1248
+ # @type LogoAdd: Integer
1249
+ # @param LogoParam: 标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
1250
+ # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
1251
+
1252
+ attr_accessor :VideoUrl, :Prompt, :Image, :LogoAdd, :LogoParam
1253
+
1254
+ def initialize(videourl=nil, prompt=nil, image=nil, logoadd=nil, logoparam=nil)
1255
+ @VideoUrl = videourl
1256
+ @Prompt = prompt
1257
+ @Image = image
1258
+ @LogoAdd = logoadd
1259
+ @LogoParam = logoparam
1260
+ end
1261
+
1262
+ def deserialize(params)
1263
+ @VideoUrl = params['VideoUrl']
1264
+ @Prompt = params['Prompt']
1265
+ unless params['Image'].nil?
1266
+ @Image = Image.new
1267
+ @Image.deserialize(params['Image'])
1268
+ end
1269
+ @LogoAdd = params['LogoAdd']
1270
+ unless params['LogoParam'].nil?
1271
+ @LogoParam = LogoParam.new
1272
+ @LogoParam.deserialize(params['LogoParam'])
1273
+ end
1274
+ end
1275
+ end
1276
+
1277
+ # SubmitVideoEditJob返回参数结构体
1278
+ class SubmitVideoEditJobResponse < TencentCloud::Common::AbstractModel
1279
+ # @param JobId: 任务ID。
1280
+ # @type JobId: String
1281
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1282
+ # @type RequestId: String
1283
+
1284
+ attr_accessor :JobId, :RequestId
1285
+
1286
+ def initialize(jobid=nil, requestid=nil)
1287
+ @JobId = jobid
1288
+ @RequestId = requestid
1289
+ end
1290
+
1291
+ def deserialize(params)
1292
+ @JobId = params['JobId']
1293
+ @RequestId = params['RequestId']
1294
+ end
1295
+ end
1296
+
1181
1297
  # SubmitVideoFaceFusionJob请求参数结构体
1182
1298
  class SubmitVideoFaceFusionJobRequest < TencentCloud::Common::AbstractModel
1183
1299
  # @param VideoUrl: 视频素材下载地址。用户自定义模版视频下载地址,使用前需要先调用视频审核接口进行内容审核。视频限制:分辨率≤4k,fps≤25,视频大小≤1G,时长≤20 秒,支持格式mp4。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-vclm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1178
4
+ version: 3.0.1187
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-08 00:00:00.000000000 Z
11
+ date: 2025-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20240523/models.rb
37
36
  - lib/v20240523/client.rb
37
+ - lib/v20240523/models.rb
38
38
  - lib/tencentcloud-sdk-vclm.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby