tencentcloud-sdk-mps 3.0.1183 → 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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190612/models.rb +98 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52a9ae3c87e1ba4248bf2df300f5bb32130d203d
|
|
4
|
+
data.tar.gz: 5029b310bd8c96e3400d58d8bab04f48abaab445
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcaa36617d7982af06e7bac126adabd48f3b235774b6c9d6cee02ac74718c3a84f921080f0904d517f042baafc02f3227008c99d202aa824c64b189ebe183595
|
|
7
|
+
data.tar.gz: 2eb96574c795a3ca1384c56fe50ccf79ec48ff3caba39d6869422b906b19d350c8f793911688590326be622f183b5f4065957738688585aaf28844f92e332b2d
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1187
|
data/lib/v20190612/models.rb
CHANGED
|
@@ -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: 插入形式,可选值:
|
|
@@ -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: 输出文件的路径。
|
|
@@ -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。
|
|
23624
23706
|
|
|
23625
|
-
|
|
23707
|
+
# - 30000:文字水印擦除
|
|
23708
|
+
# - 30010:图片扩展
|
|
23709
|
+
# - 30100:换装场景
|
|
23710
|
+
# @type ScheduleId: Integer
|
|
23711
|
+
# @param AddOnParameter: 图片处理附加参数。
|
|
23712
|
+
# @type AddOnParameter: :class:`Tencentcloud::Mps.v20190612.models.AddOnParameter`
|
|
23713
|
+
|
|
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
|
|
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.
|
|
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-
|
|
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:
|