tencentcloud-sdk-mps 3.0.1182 → 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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190612/models.rb +104 -8
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8ae4ca790deb5d7a94ec8e2fdd1300f8c8d3649
4
- data.tar.gz: 31601a836d13c9c3b976e3a06b7ca6d1e514b301
3
+ metadata.gz: 52a9ae3c87e1ba4248bf2df300f5bb32130d203d
4
+ data.tar.gz: 5029b310bd8c96e3400d58d8bab04f48abaab445
5
5
  SHA512:
6
- metadata.gz: 9972266351ca24ba7006ab8f948f2c53ae25120bcd77142b0e5c662033bd888366ffc840ba0edbf7ead1529de562e8a8a27c7f35098f8e92321f3f69fa33bff4
7
- data.tar.gz: fe23ba21a5cb3c3ca65a80e0090b2aabb55d99236c787816a8db0e7b478c5f9c72cd38c6c538a3763dd4cf80301b78c57e76b618bcd023132060b8139e445ca9
6
+ metadata.gz: fcaa36617d7982af06e7bac126adabd48f3b235774b6c9d6cee02ac74718c3a84f921080f0904d517f042baafc02f3227008c99d202aa824c64b189ebe183595
7
+ data.tar.gz: 2eb96574c795a3ca1384c56fe50ccf79ec48ff3caba39d6869422b906b19d350c8f793911688590326be622f183b5f4065957738688585aaf28844f92e332b2d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1182
1
+ 3.0.1187
@@ -801,6 +801,55 @@ module TencentCloud
801
801
  end
802
802
  end
803
803
 
804
+ # 图片处理编排中使用的输入参数。
805
+ class AddOnImageInput < TencentCloud::Common::AbstractModel
806
+ # @param Image: 图片路径。
807
+ # @type Image: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
808
+
809
+ attr_accessor :Image
810
+
811
+ def initialize(image=nil)
812
+ @Image = image
813
+ end
814
+
815
+ def deserialize(params)
816
+ unless params['Image'].nil?
817
+ @Image = MediaInputInfo.new
818
+ @Image.deserialize(params['Image'])
819
+ end
820
+ end
821
+ end
822
+
823
+ # 图片处理附加输入参数。
824
+ class AddOnParameter < TencentCloud::Common::AbstractModel
825
+ # @param ImageSet: 附加图片输入。
826
+ # @type ImageSet: Array
827
+ # @param OutputConfig: 图片处理输出配置。
828
+ # @type OutputConfig: :class:`Tencentcloud::Mps.v20190612.models.ImageProcessOutputConfig`
829
+
830
+ attr_accessor :ImageSet, :OutputConfig
831
+
832
+ def initialize(imageset=nil, outputconfig=nil)
833
+ @ImageSet = imageset
834
+ @OutputConfig = outputconfig
835
+ end
836
+
837
+ def deserialize(params)
838
+ unless params['ImageSet'].nil?
839
+ @ImageSet = []
840
+ params['ImageSet'].each do |i|
841
+ addonimageinput_tmp = AddOnImageInput.new
842
+ addonimageinput_tmp.deserialize(i)
843
+ @ImageSet << addonimageinput_tmp
844
+ end
845
+ end
846
+ unless params['OutputConfig'].nil?
847
+ @OutputConfig = ImageProcessOutputConfig.new
848
+ @OutputConfig.deserialize(params['OutputConfig'])
849
+ end
850
+ end
851
+ end
852
+
804
853
  # 外挂字幕。
805
854
  class AddOnSubtitle < TencentCloud::Common::AbstractModel
806
855
  # @param Type: 插入形式,可选值:
@@ -8628,7 +8677,7 @@ module TencentCloud
8628
8677
  # @type OutputDir: String
8629
8678
  # @param TaskNotifyConfig: 任务的事件通知配置,不填代表不获取事件通知。
8630
8679
  # @type TaskNotifyConfig: :class:`Tencentcloud::Mps.v20190612.models.TaskNotifyConfig`
8631
- # @param ResourceId: 资源ID,需要保证对应资源是开启状态。默认为帐号主资源ID。
8680
+ # @param ResourceId: 资源ID,需要保证对应资源是开启状态。默认为账号主资源ID。
8632
8681
  # @type ResourceId: String
8633
8682
 
8634
8683
  attr_accessor :ScheduleName, :Trigger, :Activities, :OutputStorage, :OutputDir, :TaskNotifyConfig, :ResourceId
@@ -8831,7 +8880,7 @@ module TencentCloud
8831
8880
  # `en-AU`:英语(澳大利亚)
8832
8881
  # `en-CA`:英语(加拿大)
8833
8882
  # `en-GH`:英语(加纳)
8834
- # `en-HK`:英语(香港)
8883
+ # `en-HK`:英语(中国香港)
8835
8884
  # `en-IN`:英语(印度)
8836
8885
  # `en-IE`:英语(爱尔兰)
8837
8886
  # `en-KE`:英语(肯尼亚)
@@ -17017,6 +17066,38 @@ module TencentCloud
17017
17066
  end
17018
17067
  end
17019
17068
 
17069
+ # 图片处理编排输出配置。
17070
+ class ImageProcessOutputConfig < TencentCloud::Common::AbstractModel
17071
+ # @param AspectRatio: 输出图片的宽高比。可以配合ImageWidth 和 ImageHeight 使用,规则如下:
17072
+
17073
+ # 1. 仅指定 AspectRatio 时,根据原图输入进行自适应调整。
17074
+ # 2. 指定 AspectRatio 和 ImageWidth 时,ImageHeight 由两者计算得出,反亦是如此。
17075
+ # 3. 当AspectRatio、ImageWidth、ImageHeight 同时指定的时候,优先使用ImageWidth、ImageHeight。
17076
+
17077
+ # 可取值:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9
17078
+
17079
+ # 支持该参数 ScheduleId: 30010(扩图)
17080
+ # @type AspectRatio: String
17081
+ # @param ImageHeight: 图片输出高度,单位:像素。
17082
+ # @type ImageHeight: Integer
17083
+ # @param ImageWidth: 图片输出宽度,单位:像素。
17084
+ # @type ImageWidth: Integer
17085
+
17086
+ attr_accessor :AspectRatio, :ImageHeight, :ImageWidth
17087
+
17088
+ def initialize(aspectratio=nil, imageheight=nil, imagewidth=nil)
17089
+ @AspectRatio = aspectratio
17090
+ @ImageHeight = imageheight
17091
+ @ImageWidth = imagewidth
17092
+ end
17093
+
17094
+ def deserialize(params)
17095
+ @AspectRatio = params['AspectRatio']
17096
+ @ImageHeight = params['ImageHeight']
17097
+ @ImageWidth = params['ImageWidth']
17098
+ end
17099
+ end
17100
+
17020
17101
  # 图片处理结果信息
17021
17102
  class ImageProcessTaskOutput < TencentCloud::Common::AbstractModel
17022
17103
  # @param Path: 输出文件的路径。
@@ -21643,7 +21724,7 @@ module TencentCloud
21643
21724
  # `en-AU`:英语(澳大利亚)
21644
21725
  # `en-CA`:英语(加拿大)
21645
21726
  # `en-GH`:英语(加纳)
21646
- # `en-HK`:英语(香港)
21727
+ # `en-HK`:英语(中国香港)
21647
21728
  # `en-IN`:英语(印度)
21648
21729
  # `en-IE`:英语(爱尔兰)
21649
21730
  # `en-KE`:英语(肯尼亚)
@@ -23621,10 +23702,18 @@ module TencentCloud
23621
23702
  # @type ResourceId: String
23622
23703
  # @param ImageTask: 图片处理参数。
23623
23704
  # @type ImageTask: :class:`Tencentcloud::Mps.v20190612.models.ImageTaskInput`
23705
+ # @param ScheduleId: 图片处理编排场景 ID。
23706
+
23707
+ # - 30000:文字水印擦除
23708
+ # - 30010:图片扩展
23709
+ # - 30100:换装场景
23710
+ # @type ScheduleId: Integer
23711
+ # @param AddOnParameter: 图片处理附加参数。
23712
+ # @type AddOnParameter: :class:`Tencentcloud::Mps.v20190612.models.AddOnParameter`
23624
23713
 
23625
- attr_accessor :InputInfo, :OutputStorage, :OutputDir, :OutputPath, :Definition, :ResourceId, :ImageTask
23714
+ attr_accessor :InputInfo, :OutputStorage, :OutputDir, :OutputPath, :Definition, :ResourceId, :ImageTask, :ScheduleId, :AddOnParameter
23626
23715
 
23627
- def initialize(inputinfo=nil, outputstorage=nil, outputdir=nil, outputpath=nil, definition=nil, resourceid=nil, imagetask=nil)
23716
+ def initialize(inputinfo=nil, outputstorage=nil, outputdir=nil, outputpath=nil, definition=nil, resourceid=nil, imagetask=nil, scheduleid=nil, addonparameter=nil)
23628
23717
  @InputInfo = inputinfo
23629
23718
  @OutputStorage = outputstorage
23630
23719
  @OutputDir = outputdir
@@ -23632,6 +23721,8 @@ module TencentCloud
23632
23721
  @Definition = definition
23633
23722
  @ResourceId = resourceid
23634
23723
  @ImageTask = imagetask
23724
+ @ScheduleId = scheduleid
23725
+ @AddOnParameter = addonparameter
23635
23726
  end
23636
23727
 
23637
23728
  def deserialize(params)
@@ -23651,6 +23742,11 @@ module TencentCloud
23651
23742
  @ImageTask = ImageTaskInput.new
23652
23743
  @ImageTask.deserialize(params['ImageTask'])
23653
23744
  end
23745
+ @ScheduleId = params['ScheduleId']
23746
+ unless params['AddOnParameter'].nil?
23747
+ @AddOnParameter = AddOnParameter.new
23748
+ @AddOnParameter.deserialize(params['AddOnParameter'])
23749
+ end
23654
23750
  end
23655
23751
  end
23656
23752
 
@@ -23866,7 +23962,7 @@ module TencentCloud
23866
23962
  # <li> Online:实时任务</li>
23867
23963
  # <li> Offline:闲时任务,不保证实效性,默认3天内处理完</li>
23868
23964
  # @type TaskType: String
23869
- # @param ResourceId: 资源ID,需要保证对应资源是开启状态。默认为帐号主资源ID。
23965
+ # @param ResourceId: 资源ID,需要保证对应资源是开启状态。默认为账号主资源ID。
23870
23966
  # @type ResourceId: String
23871
23967
  # @param SkipMateData: 是否跳过元信息获取,可选值:
23872
23968
  # 0:表示不跳过
@@ -24767,7 +24863,7 @@ module TencentCloud
24767
24863
  # `en-AU`:英语(澳大利亚)
24768
24864
  # `en-CA`:英语(加拿大)
24769
24865
  # `en-GH`:英语(加纳)
24770
- # `en-HK`:英语(香港)
24866
+ # `en-HK`:英语(中国香港)
24771
24867
  # `en-IN`:英语(印度)
24772
24868
  # `en-IE`:英语(爱尔兰)
24773
24869
  # `en-KE`:英语(肯尼亚)
@@ -28857,7 +28953,7 @@ module TencentCloud
28857
28953
 
28858
28954
  # TextTranslation请求参数结构体
28859
28955
  class TextTranslationRequest < TencentCloud::Common::AbstractModel
28860
- # @param SourceText: 待翻译的文本,文本统一使用utf-8格式编码,非utf-8格式编码字符会翻译失败,请传入有效文本,html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度需要低于1000字符。
28956
+ # @param SourceText: 待翻译的文本,文本统一使用utf-8格式编码,非utf-8格式编码字符会翻译失败,请传入有效文本,html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度需要低于2000字符。
28861
28957
  # @type SourceText: String
28862
28958
  # @param Source: 源语言,支持:
28863
28959
  # "auto": "自动识别(识别为一种语言)",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mps
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1182
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-13 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,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20190612/models.rb
37
- - lib/v20190612/client.rb
38
36
  - lib/tencentcloud-sdk-mps.rb
37
+ - lib/v20190612/client.rb
38
+ - lib/v20190612/models.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: