tencentcloud-sdk-vclm 3.0.1073 → 3.0.1075

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: 2b8e14c01c23342cbaad4807676fae01a5103a5c
4
- data.tar.gz: 98766118f78b9fae68bed6ead121e9d973ebb152
3
+ metadata.gz: ffb8d890693e7554d20237f9033a6f613ac52885
4
+ data.tar.gz: 6ea41631a09faf45e3c8d9dae7dfdbed7164cee4
5
5
  SHA512:
6
- metadata.gz: 15b9af770e5260cea455acd3a606e21f94422c5945113f62c0495d3a0e6893457d126a1e47f24677855e3a77e11428a60cba5cb65bc23f9f29a4f84c84766263
7
- data.tar.gz: 93cdbacff61dc1a6d4e36aa79cae621d921c0568e364a1ccb8bd1c49d2ed46dfc4152748d37c0ef7fe9ddde2b62e97eda59040fb1b9ff31c444ea227e9d07f8f
6
+ metadata.gz: 1b65351f276f6b0e9e2dab47f7ce5357df9bac1e016dd33750c24a8e951ac2be9464617694fcf0f30aa251c441afeda39681fb77c533b7f1a3b595f262c33ea1
7
+ data.tar.gz: 863e4040a354cd956bf8cb08d053b8b77b11fc9f98db4b1c3c05c83b41684c4e663e5a373f585fc45ec92affe370259215af3ee6ee6540b1fdcf8ee0619d74cd
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1073
1
+ 3.0.1075
@@ -102,6 +102,30 @@ module TencentCloud
102
102
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
103
103
  end
104
104
 
105
+ # 用于查询视频特效任务。
106
+
107
+ # @param request: Request instance for DescribeTemplateToVideoJob.
108
+ # @type request: :class:`Tencentcloud::vclm::V20240523::DescribeTemplateToVideoJobRequest`
109
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeTemplateToVideoJobResponse`
110
+ def DescribeTemplateToVideoJob(request)
111
+ body = send_request('DescribeTemplateToVideoJob', request.serialize)
112
+ response = JSON.parse(body)
113
+ if response['Response'].key?('Error') == false
114
+ model = DescribeTemplateToVideoJobResponse.new
115
+ model.deserialize(response['Response'])
116
+ model
117
+ else
118
+ code = response['Response']['Error']['Code']
119
+ message = response['Response']['Error']['Message']
120
+ reqid = response['Response']['RequestId']
121
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
122
+ end
123
+ rescue TencentCloud::Common::TencentCloudSDKException => e
124
+ raise e
125
+ rescue StandardError => e
126
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
127
+ end
128
+
105
129
  # 用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
106
130
 
107
131
  # @param request: Request instance for DescribeVideoStylizationJob.
@@ -175,6 +199,30 @@ module TencentCloud
175
199
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
176
200
  end
177
201
 
202
+ # 提交视频特效任务接口
203
+
204
+ # @param request: Request instance for SubmitTemplateToVideoJob.
205
+ # @type request: :class:`Tencentcloud::vclm::V20240523::SubmitTemplateToVideoJobRequest`
206
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitTemplateToVideoJobResponse`
207
+ def SubmitTemplateToVideoJob(request)
208
+ body = send_request('SubmitTemplateToVideoJob', request.serialize)
209
+ response = JSON.parse(body)
210
+ if response['Response'].key?('Error') == false
211
+ model = SubmitTemplateToVideoJobResponse.new
212
+ model.deserialize(response['Response'])
213
+ model
214
+ else
215
+ code = response['Response']['Error']['Code']
216
+ message = response['Response']['Error']['Message']
217
+ reqid = response['Response']['RequestId']
218
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
219
+ end
220
+ rescue TencentCloud::Common::TencentCloudSDKException => e
221
+ raise e
222
+ rescue StandardError => e
223
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
224
+ end
225
+
178
226
  # 用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
179
227
 
180
228
  # @param request: Request instance for SubmitVideoStylizationJob.
@@ -194,6 +194,54 @@ module TencentCloud
194
194
  end
195
195
  end
196
196
 
197
+ # DescribeTemplateToVideoJob请求参数结构体
198
+ class DescribeTemplateToVideoJobRequest < TencentCloud::Common::AbstractModel
199
+ # @param JobId: 任务ID。
200
+ # @type JobId: String
201
+
202
+ attr_accessor :JobId
203
+
204
+ def initialize(jobid=nil)
205
+ @JobId = jobid
206
+ end
207
+
208
+ def deserialize(params)
209
+ @JobId = params['JobId']
210
+ end
211
+ end
212
+
213
+ # DescribeTemplateToVideoJob返回参数结构体
214
+ class DescribeTemplateToVideoJobResponse < TencentCloud::Common::AbstractModel
215
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
216
+ # @type Status: String
217
+ # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
218
+ # @type ErrorCode: String
219
+ # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
220
+ # @type ErrorMessage: String
221
+ # @param ResultVideoUrl: 结果视频 URL。有效期 24 小时。
222
+ # @type ResultVideoUrl: String
223
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
224
+ # @type RequestId: String
225
+
226
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultVideoUrl, :RequestId
227
+
228
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultvideourl=nil, requestid=nil)
229
+ @Status = status
230
+ @ErrorCode = errorcode
231
+ @ErrorMessage = errormessage
232
+ @ResultVideoUrl = resultvideourl
233
+ @RequestId = requestid
234
+ end
235
+
236
+ def deserialize(params)
237
+ @Status = params['Status']
238
+ @ErrorCode = params['ErrorCode']
239
+ @ErrorMessage = params['ErrorMessage']
240
+ @ResultVideoUrl = params['ResultVideoUrl']
241
+ @RequestId = params['RequestId']
242
+ end
243
+ end
244
+
197
245
  # DescribeVideoStylizationJob请求参数结构体
198
246
  class DescribeVideoStylizationJobRequest < TencentCloud::Common::AbstractModel
199
247
  # @param JobId: 任务ID
@@ -252,6 +300,26 @@ module TencentCloud
252
300
  end
253
301
  end
254
302
 
303
+ # 图片
304
+ class Image < TencentCloud::Common::AbstractModel
305
+ # @param Base64: 图片Base64
306
+ # @type Base64: String
307
+ # @param Url: 图片Url
308
+ # @type Url: String
309
+
310
+ attr_accessor :Base64, :Url
311
+
312
+ def initialize(base64=nil, url=nil)
313
+ @Base64 = base64
314
+ @Url = url
315
+ end
316
+
317
+ def deserialize(params)
318
+ @Base64 = params['Base64']
319
+ @Url = params['Url']
320
+ end
321
+ end
322
+
255
323
  # logo参数
256
324
  class LogoParam < TencentCloud::Common::AbstractModel
257
325
  # @param LogoUrl: 水印 Url
@@ -479,6 +547,84 @@ module TencentCloud
479
547
  end
480
548
  end
481
549
 
550
+ # SubmitTemplateToVideoJob请求参数结构体
551
+ class SubmitTemplateToVideoJobRequest < TencentCloud::Common::AbstractModel
552
+ # @param Template: 特效模板名称。
553
+ # 枚举值:
554
+ # hug :拥抱
555
+ # kiss :亲吻
556
+ # heart : 比心
557
+ # fuzzy : 毛茸茸
558
+ # befigure:变手办风
559
+ # longhair:金色长发
560
+ # morphlab:膨胀
561
+ # bloom:万物生花
562
+ # pinch:捏捏
563
+ # balloonfly:飞走了
564
+ # dragme:被拽走了
565
+ # @type Template: String
566
+ # @param Images: 参考图像,最多输入2张图。
567
+ # - 支持传入图片Base64编码或图片URL(确保可访问)
568
+ # - 图片格式:支持png、jpg、jpeg、webp、bmp、tiff
569
+ # - 图片文件:大小不能超过10MB(base64后),图片分辨率不小于300\*300px,不大于4096\*4096,图片宽高比应在1:4 ~ 4:1之间
570
+ # @type Images: Array
571
+ # @param LogoAdd: 为生成视频添加标识的开关,默认为1。
572
+ # 1:添加标识。
573
+ # 0:不添加标识。
574
+ # 其他数值:默认按1处理。
575
+ # 建议您使用显著标识来提示,该视频是 AI 生成的视频。
576
+ # @type LogoAdd: Integer
577
+ # @param LogoParam: 标识内容设置。
578
+ # 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
579
+ # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
580
+
581
+ attr_accessor :Template, :Images, :LogoAdd, :LogoParam
582
+
583
+ def initialize(template=nil, images=nil, logoadd=nil, logoparam=nil)
584
+ @Template = template
585
+ @Images = images
586
+ @LogoAdd = logoadd
587
+ @LogoParam = logoparam
588
+ end
589
+
590
+ def deserialize(params)
591
+ @Template = params['Template']
592
+ unless params['Images'].nil?
593
+ @Images = []
594
+ params['Images'].each do |i|
595
+ image_tmp = Image.new
596
+ image_tmp.deserialize(i)
597
+ @Images << image_tmp
598
+ end
599
+ end
600
+ @LogoAdd = params['LogoAdd']
601
+ unless params['LogoParam'].nil?
602
+ @LogoParam = LogoParam.new
603
+ @LogoParam.deserialize(params['LogoParam'])
604
+ end
605
+ end
606
+ end
607
+
608
+ # SubmitTemplateToVideoJob返回参数结构体
609
+ class SubmitTemplateToVideoJobResponse < TencentCloud::Common::AbstractModel
610
+ # @param JobId: 任务ID。
611
+ # @type JobId: String
612
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
613
+ # @type RequestId: String
614
+
615
+ attr_accessor :JobId, :RequestId
616
+
617
+ def initialize(jobid=nil, requestid=nil)
618
+ @JobId = jobid
619
+ @RequestId = requestid
620
+ end
621
+
622
+ def deserialize(params)
623
+ @JobId = params['JobId']
624
+ @RequestId = params['RequestId']
625
+ end
626
+ end
627
+
482
628
  # SubmitVideoStylizationJob请求参数结构体
483
629
  class SubmitVideoStylizationJobRequest < TencentCloud::Common::AbstractModel
484
630
  # @param StyleId: 风格ID。取值说明:
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.1073
4
+ version: 3.0.1075
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-06-03 00:00:00.000000000 Z
11
+ date: 2025-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common