tencentcloud-sdk-mps 3.0.946 → 3.0.947

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: 841ef5acdd182fc8edfc9b06a6d554c599f26e55
4
- data.tar.gz: 682dbe1a7399cb5d79c8a2d4d07a3a0667028216
3
+ metadata.gz: e5663682ef7288a7a47841facbc2a0efd32d5cac
4
+ data.tar.gz: 61b874c33bb4bf72988f5503edec6b88406bb33c
5
5
  SHA512:
6
- metadata.gz: 68f8cddc22f96b78e7cdfa543daf992245c7535d1baa60d47eb57f26614cf53bc20bc44b555c0eaa2d95d15c73d494fb610b2fb4f89ee280c53b114be22c2863
7
- data.tar.gz: 56b37d6267df4b667772533d5203e4fc373d83c373bdf424451dea3faf1da0173402aaa2bdc1fc804d31ef74a354695eea951ce3b578b4ad81c793121047a893
6
+ metadata.gz: e3421a4a733c27901b63e0e1879fe6edd5864c2a92216ca71c73b58799162d98f0203f3e28f0eeca149abdf62470c3876ee87e86fe9b4661acac0801a0829eb9
7
+ data.tar.gz: 90d5d31ab6f15cf7b52dfe1042110392e8686223848df72be847b137cf1be08cba2076f92d22d26657677e8f34f247ec34d589a1322f39764185a7284cc25b48
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.946
1
+ 3.0.947
@@ -2496,6 +2496,32 @@ module TencentCloud
2496
2496
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2497
2497
  end
2498
2498
 
2499
+ # 发起图片处理,功能包括:
2500
+ # 1. 格式转换;
2501
+ # 2. 图像增强;
2502
+
2503
+ # @param request: Request instance for ProcessImage.
2504
+ # @type request: :class:`Tencentcloud::mps::V20190612::ProcessImageRequest`
2505
+ # @rtype: :class:`Tencentcloud::mps::V20190612::ProcessImageResponse`
2506
+ def ProcessImage(request)
2507
+ body = send_request('ProcessImage', request.serialize)
2508
+ response = JSON.parse(body)
2509
+ if response['Response'].key?('Error') == false
2510
+ model = ProcessImageResponse.new
2511
+ model.deserialize(response['Response'])
2512
+ model
2513
+ else
2514
+ code = response['Response']['Error']['Code']
2515
+ message = response['Response']['Error']['Message']
2516
+ reqid = response['Response']['RequestId']
2517
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2518
+ end
2519
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2520
+ raise e
2521
+ rescue StandardError => e
2522
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2523
+ end
2524
+
2499
2525
  # 对直播流媒体发起处理任务,功能包括:
2500
2526
 
2501
2527
  # * 智能内容审核(画面鉴黄、敏感信息检测、声音鉴黄);
@@ -12880,6 +12880,48 @@ module TencentCloud
12880
12880
  end
12881
12881
  end
12882
12882
 
12883
+ # 图片编码格式参数
12884
+ class ImageEncodeConfig < TencentCloud::Common::AbstractModel
12885
+ # @param Format: 图片格式,取值范围:JPG、BMP、GIF、PNG、WebP,缺省为原图格式。
12886
+ # 注意:此字段可能返回 null,表示取不到有效值。
12887
+ # @type Format: String
12888
+ # @param Quality: 图片的相对质量,取值范围:1 - 100,数值以原图质量为标准,缺省为原图质量。
12889
+ # 注意:此字段可能返回 null,表示取不到有效值。
12890
+ # @type Quality: Integer
12891
+
12892
+ attr_accessor :Format, :Quality
12893
+
12894
+ def initialize(format=nil, quality=nil)
12895
+ @Format = format
12896
+ @Quality = quality
12897
+ end
12898
+
12899
+ def deserialize(params)
12900
+ @Format = params['Format']
12901
+ @Quality = params['Quality']
12902
+ end
12903
+ end
12904
+
12905
+ # 图片增强参数
12906
+ class ImageEnhanceConfig < TencentCloud::Common::AbstractModel
12907
+ # @param SuperResolution: 超分配置。
12908
+ # 注意:此字段可能返回 null,表示取不到有效值。
12909
+ # @type SuperResolution: :class:`Tencentcloud::Mps.v20190612.models.SuperResolutionConfig`
12910
+
12911
+ attr_accessor :SuperResolution
12912
+
12913
+ def initialize(superresolution=nil)
12914
+ @SuperResolution = superresolution
12915
+ end
12916
+
12917
+ def deserialize(params)
12918
+ unless params['SuperResolution'].nil?
12919
+ @SuperResolution = SuperResolutionConfig.new
12920
+ @SuperResolution.deserialize(params['SuperResolution'])
12921
+ end
12922
+ end
12923
+ end
12924
+
12883
12925
  # 综合增强配置
12884
12926
  class ImageQualityEnhanceConfig < TencentCloud::Common::AbstractModel
12885
12927
  # @param Switch: 能力配置开关,可选值:
@@ -13045,6 +13087,34 @@ module TencentCloud
13045
13087
  end
13046
13088
  end
13047
13089
 
13090
+ # 图片任务输入参数
13091
+ class ImageTaskInput < TencentCloud::Common::AbstractModel
13092
+ # @param EncodeConfig: 图片编码配置。
13093
+ # 注意:此字段可能返回 null,表示取不到有效值。
13094
+ # @type EncodeConfig: :class:`Tencentcloud::Mps.v20190612.models.ImageEncodeConfig`
13095
+ # @param EnhanceConfig: 图片增强配置。
13096
+ # 注意:此字段可能返回 null,表示取不到有效值。
13097
+ # @type EnhanceConfig: :class:`Tencentcloud::Mps.v20190612.models.ImageEnhanceConfig`
13098
+
13099
+ attr_accessor :EncodeConfig, :EnhanceConfig
13100
+
13101
+ def initialize(encodeconfig=nil, enhanceconfig=nil)
13102
+ @EncodeConfig = encodeconfig
13103
+ @EnhanceConfig = enhanceconfig
13104
+ end
13105
+
13106
+ def deserialize(params)
13107
+ unless params['EncodeConfig'].nil?
13108
+ @EncodeConfig = ImageEncodeConfig.new
13109
+ @EncodeConfig.deserialize(params['EncodeConfig'])
13110
+ end
13111
+ unless params['EnhanceConfig'].nil?
13112
+ @EnhanceConfig = ImageEnhanceConfig.new
13113
+ @EnhanceConfig.deserialize(params['EnhanceConfig'])
13114
+ end
13115
+ end
13116
+ end
13117
+
13048
13118
  # 图片水印模板输入参数
13049
13119
  class ImageWatermarkInput < TencentCloud::Common::AbstractModel
13050
13120
  # @param ImageContent: 水印图片 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串。支持 jpeg、png 图片格式。
@@ -18214,6 +18284,63 @@ module TencentCloud
18214
18284
  end
18215
18285
  end
18216
18286
 
18287
+ # ProcessImage请求参数结构体
18288
+ class ProcessImageRequest < TencentCloud::Common::AbstractModel
18289
+ # @param InputInfo: 图片处理的文件输入信息。
18290
+ # @type InputInfo: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
18291
+ # @param OutputStorage: 图片处理输出文件的目标存储。不填则继承 InputInfo 中的存储位置。
18292
+ # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
18293
+ # @param OutputDir: 图片处理生成的文件输出的路径。如果不填表示与 InputInfo 中文件所在的目录一致。如果是目录,如`/image/201907/`,表示继承原文件名输出到该目录。
18294
+ # @type OutputDir: String
18295
+ # @param ImageTask: 图片处理参数。
18296
+ # @type ImageTask: :class:`Tencentcloud::Mps.v20190612.models.ImageTaskInput`
18297
+
18298
+ attr_accessor :InputInfo, :OutputStorage, :OutputDir, :ImageTask
18299
+
18300
+ def initialize(inputinfo=nil, outputstorage=nil, outputdir=nil, imagetask=nil)
18301
+ @InputInfo = inputinfo
18302
+ @OutputStorage = outputstorage
18303
+ @OutputDir = outputdir
18304
+ @ImageTask = imagetask
18305
+ end
18306
+
18307
+ def deserialize(params)
18308
+ unless params['InputInfo'].nil?
18309
+ @InputInfo = MediaInputInfo.new
18310
+ @InputInfo.deserialize(params['InputInfo'])
18311
+ end
18312
+ unless params['OutputStorage'].nil?
18313
+ @OutputStorage = TaskOutputStorage.new
18314
+ @OutputStorage.deserialize(params['OutputStorage'])
18315
+ end
18316
+ @OutputDir = params['OutputDir']
18317
+ unless params['ImageTask'].nil?
18318
+ @ImageTask = ImageTaskInput.new
18319
+ @ImageTask.deserialize(params['ImageTask'])
18320
+ end
18321
+ end
18322
+ end
18323
+
18324
+ # ProcessImage返回参数结构体
18325
+ class ProcessImageResponse < TencentCloud::Common::AbstractModel
18326
+ # @param TaskId: 任务 ID。
18327
+ # @type TaskId: String
18328
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18329
+ # @type RequestId: String
18330
+
18331
+ attr_accessor :TaskId, :RequestId
18332
+
18333
+ def initialize(taskid=nil, requestid=nil)
18334
+ @TaskId = taskid
18335
+ @RequestId = requestid
18336
+ end
18337
+
18338
+ def deserialize(params)
18339
+ @TaskId = params['TaskId']
18340
+ @RequestId = params['RequestId']
18341
+ end
18342
+ end
18343
+
18217
18344
  # ProcessLiveStream请求参数结构体
18218
18345
  class ProcessLiveStreamRequest < TencentCloud::Common::AbstractModel
18219
18346
  # @param Url: 直播流 URL(必须是直播文件地址,支持 rtmp,hls 和 flv 等)。
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.946
4
+ version: 3.0.947
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-22 00:00:00.000000000 Z
11
+ date: 2024-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common