tencentcloud-sdk-tmt 3.0.1140 → 3.0.1157
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/v20180321/models.rb +64 -6
- 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: 50672499d9c7b9d2044ef0b7eaf851c6c92d1aac
|
4
|
+
data.tar.gz: 8df689e04eee032334bcf46856667e5d82a7533c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ba028b20199935b0afd30d715164ec409df19bb29221493890f1526c0acd07935cea2d2f6a1e2b614e66380a2555b9e23368e4c231758f3fe24c924da762fe6
|
7
|
+
data.tar.gz: cddeb14dac6117ff72a4c02d326754ab337be15597af990eeef6757d4184c8861bb74f7bbaa511c14ae24532f69f316e92ca583493f052901a9dc599af8de53e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1157
|
data/lib/v20180321/models.rb
CHANGED
@@ -45,6 +45,26 @@ module TencentCloud
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
+
# 坐标详细信息
|
49
|
+
class Coord < TencentCloud::Common::AbstractModel
|
50
|
+
# @param X: X坐标
|
51
|
+
# @type X: Integer
|
52
|
+
# @param Y: Y坐标
|
53
|
+
# @type Y: Integer
|
54
|
+
|
55
|
+
attr_accessor :X, :Y
|
56
|
+
|
57
|
+
def initialize(x=nil, y=nil)
|
58
|
+
@X = x
|
59
|
+
@Y = y
|
60
|
+
end
|
61
|
+
|
62
|
+
def deserialize(params)
|
63
|
+
@X = params['X']
|
64
|
+
@Y = params['Y']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
48
68
|
# FileTranslate请求参数结构体
|
49
69
|
class FileTranslateRequest < TencentCloud::Common::AbstractModel
|
50
70
|
# @param Source: 源语言,支持
|
@@ -508,6 +528,37 @@ module TencentCloud
|
|
508
528
|
end
|
509
529
|
end
|
510
530
|
|
531
|
+
# 段落文本旋转信息
|
532
|
+
class RotateParagraphRect < TencentCloud::Common::AbstractModel
|
533
|
+
# @param Coord: 段落文本坐标
|
534
|
+
# @type Coord: Array
|
535
|
+
# @param TiltAngle: 旋转角度
|
536
|
+
# @type TiltAngle: Float
|
537
|
+
# @param Valid: 段落文本信息是否有效
|
538
|
+
# @type Valid: Boolean
|
539
|
+
|
540
|
+
attr_accessor :Coord, :TiltAngle, :Valid
|
541
|
+
|
542
|
+
def initialize(coord=nil, tiltangle=nil, valid=nil)
|
543
|
+
@Coord = coord
|
544
|
+
@TiltAngle = tiltangle
|
545
|
+
@Valid = valid
|
546
|
+
end
|
547
|
+
|
548
|
+
def deserialize(params)
|
549
|
+
unless params['Coord'].nil?
|
550
|
+
@Coord = []
|
551
|
+
params['Coord'].each do |i|
|
552
|
+
coord_tmp = Coord.new
|
553
|
+
coord_tmp.deserialize(i)
|
554
|
+
@Coord << coord_tmp
|
555
|
+
end
|
556
|
+
end
|
557
|
+
@TiltAngle = params['TiltAngle']
|
558
|
+
@Valid = params['Valid']
|
559
|
+
end
|
560
|
+
end
|
561
|
+
|
511
562
|
# SpeechTranslate请求参数结构体
|
512
563
|
class SpeechTranslateRequest < TencentCloud::Common::AbstractModel
|
513
564
|
# @param SessionUuid: 一段完整的语音对应一个SessionUuid
|
@@ -533,10 +584,10 @@ module TencentCloud
|
|
533
584
|
|
534
585
|
attr_accessor :SessionUuid, :Source, :Target, :AudioFormat, :Seq, :IsEnd, :Data, :ProjectId, :Mode, :TransType
|
535
586
|
extend Gem::Deprecate
|
536
|
-
deprecate :Mode, :none, 2025,
|
537
|
-
deprecate :Mode=, :none, 2025,
|
538
|
-
deprecate :TransType, :none, 2025,
|
539
|
-
deprecate :TransType=, :none, 2025,
|
587
|
+
deprecate :Mode, :none, 2025, 10
|
588
|
+
deprecate :Mode=, :none, 2025, 10
|
589
|
+
deprecate :TransType, :none, 2025, 10
|
590
|
+
deprecate :TransType=, :none, 2025, 10
|
540
591
|
|
541
592
|
def initialize(sessionuuid=nil, source=nil, target=nil, audioformat=nil, seq=nil, isend=nil, data=nil, projectid=nil, mode=nil, transtype=nil)
|
542
593
|
@SessionUuid = sessionuuid
|
@@ -859,16 +910,19 @@ module TencentCloud
|
|
859
910
|
# @type LineHeight: Integer
|
860
911
|
# @param SpamCode: 正常段落spam_code字段为0;如果存在spam_code字段且值大于0(1: 命中垃圾检查;2: 命中安全策略;3: 其他。),则命中安全检查被过滤。
|
861
912
|
# @type SpamCode: Integer
|
913
|
+
# @param RotateParagraphRect: 段落文本旋转信息,只在valid为true时表示坐标有效
|
914
|
+
# @type RotateParagraphRect: :class:`Tencentcloud::Tmt.v20180321.models.RotateParagraphRect`
|
862
915
|
|
863
|
-
attr_accessor :SourceLineText, :TargetLineText, :BoundingBox, :LinesCount, :LineHeight, :SpamCode
|
916
|
+
attr_accessor :SourceLineText, :TargetLineText, :BoundingBox, :LinesCount, :LineHeight, :SpamCode, :RotateParagraphRect
|
864
917
|
|
865
|
-
def initialize(sourcelinetext=nil, targetlinetext=nil, boundingbox=nil, linescount=nil, lineheight=nil, spamcode=nil)
|
918
|
+
def initialize(sourcelinetext=nil, targetlinetext=nil, boundingbox=nil, linescount=nil, lineheight=nil, spamcode=nil, rotateparagraphrect=nil)
|
866
919
|
@SourceLineText = sourcelinetext
|
867
920
|
@TargetLineText = targetlinetext
|
868
921
|
@BoundingBox = boundingbox
|
869
922
|
@LinesCount = linescount
|
870
923
|
@LineHeight = lineheight
|
871
924
|
@SpamCode = spamcode
|
925
|
+
@RotateParagraphRect = rotateparagraphrect
|
872
926
|
end
|
873
927
|
|
874
928
|
def deserialize(params)
|
@@ -881,6 +935,10 @@ module TencentCloud
|
|
881
935
|
@LinesCount = params['LinesCount']
|
882
936
|
@LineHeight = params['LineHeight']
|
883
937
|
@SpamCode = params['SpamCode']
|
938
|
+
unless params['RotateParagraphRect'].nil?
|
939
|
+
@RotateParagraphRect = RotateParagraphRect.new
|
940
|
+
@RotateParagraphRect.deserialize(params['RotateParagraphRect'])
|
941
|
+
end
|
884
942
|
end
|
885
943
|
end
|
886
944
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tmt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1157
|
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-
|
11
|
+
date: 2025-10-20 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/v20180321/client.rb
|
37
|
-
- lib/v20180321/models.rb
|
38
36
|
- lib/tencentcloud-sdk-tmt.rb
|
37
|
+
- lib/v20180321/models.rb
|
38
|
+
- lib/v20180321/client.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|