tencentcloud-sdk-tiw 3.0.617 → 3.0.619

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d25c7b482eacae85bc0b89eb8f03b0791e2ef2f0
4
- data.tar.gz: b71fdc68e00ac7da24a191ed91907af5e8320122
3
+ metadata.gz: 593d647849932e3f72a41f2704197557fb7274a9
4
+ data.tar.gz: 2f495bdc9228d0c5d1c0c2909ebacc02f60a51d1
5
5
  SHA512:
6
- metadata.gz: 3d950693f806aa8e7bd23f6caf109908a739d3c614ae744730490bdfd67c550567d8b96abf5c2a98622c0ebe4f9e1df3027eec116476db34d12fa82aeb8c0247
7
- data.tar.gz: babefadc1657050dfcdb5787201b20551a5f527db83247b07fda9ce7a2465b5ac91e618c99791ea3a198f1b5eed8e73693a2300ad9d4d584e8cd47cfcf7d2861
6
+ metadata.gz: a80a1febafef8033a25a0f777dadf96935ab4c9781584b0c8d1edffbd16de247279b254b6f9cd4e2344892f2d0e753455a70ad51e4cf157c5840093294fecb1e
7
+ data.tar.gz: a7340957ec2efb504280fbbc6b507dbce707f8bd064905695c21d63e97dd139e4acf9afb4932e05a0f8488d480a0e5cea9a381c8701680f1dc5ad2da0318273c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.617
1
+ 3.0.619
@@ -681,6 +681,30 @@ module TencentCloud
681
681
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
682
682
  end
683
683
 
684
+ # 通过文档URL查询转码任务,返回最近的一次转码结果
685
+
686
+ # @param request: Request instance for DescribeTranscodeByUrl.
687
+ # @type request: :class:`Tencentcloud::tiw::V20190919::DescribeTranscodeByUrlRequest`
688
+ # @rtype: :class:`Tencentcloud::tiw::V20190919::DescribeTranscodeByUrlResponse`
689
+ def DescribeTranscodeByUrl(request)
690
+ body = send_request('DescribeTranscodeByUrl', request.serialize)
691
+ response = JSON.parse(body)
692
+ if response['Response'].key?('Error') == false
693
+ model = DescribeTranscodeByUrlResponse.new
694
+ model.deserialize(response['Response'])
695
+ model
696
+ else
697
+ code = response['Response']['Error']['Code']
698
+ message = response['Response']['Error']['Message']
699
+ reqid = response['Response']['RequestId']
700
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
701
+ end
702
+ rescue TencentCloud::Common::TencentCloudSDKException => e
703
+ raise e
704
+ rescue StandardError => e
705
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
706
+ end
707
+
684
708
  # 查询文档转码回调地址
685
709
 
686
710
  # @param request: Request instance for DescribeTranscodeCallback.
@@ -1687,6 +1687,58 @@ module TencentCloud
1687
1687
  end
1688
1688
  end
1689
1689
 
1690
+ # DescribeTranscodeByUrl请求参数结构体
1691
+ class DescribeTranscodeByUrlRequest < TencentCloud::Common::AbstractModel
1692
+ # @param SdkAppId: 客户的SdkAppId
1693
+ # @type SdkAppId: Integer
1694
+ # @param Url: 经过URL编码后的转码文件地址。URL 编码会将字符转换为可通过因特网传输的格式,比如文档地址为http://example.com/测试.pdf,经过URL编码之后为http://example.com/%E6%B5%8B%E8%AF%95.pdf。为了提高URL解析的成功率,请对URL进行编码。
1695
+ # @type Url: String
1696
+
1697
+ attr_accessor :SdkAppId, :Url
1698
+
1699
+ def initialize(sdkappid=nil, url=nil)
1700
+ @SdkAppId = sdkappid
1701
+ @Url = url
1702
+ end
1703
+
1704
+ def deserialize(params)
1705
+ @SdkAppId = params['SdkAppId']
1706
+ @Url = params['Url']
1707
+ end
1708
+ end
1709
+
1710
+ # DescribeTranscodeByUrl返回参数结构体
1711
+ class DescribeTranscodeByUrlResponse < TencentCloud::Common::AbstractModel
1712
+ # @param Progress: 转码的当前进度,取值范围为0~100
1713
+ # @type Progress: Integer
1714
+ # @param Status: 任务的当前状态
1715
+ # - QUEUED: 正在排队等待转换
1716
+ # - PROCESSING: 转换中
1717
+ # - FINISHED: 转换完成
1718
+ # - EXCEPTION: 转换异常
1719
+ # @type Status: String
1720
+ # @param TaskId: 转码任务的唯一标识Id
1721
+ # @type TaskId: String
1722
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1723
+ # @type RequestId: String
1724
+
1725
+ attr_accessor :Progress, :Status, :TaskId, :RequestId
1726
+
1727
+ def initialize(progress=nil, status=nil, taskid=nil, requestid=nil)
1728
+ @Progress = progress
1729
+ @Status = status
1730
+ @TaskId = taskid
1731
+ @RequestId = requestid
1732
+ end
1733
+
1734
+ def deserialize(params)
1735
+ @Progress = params['Progress']
1736
+ @Status = params['Status']
1737
+ @TaskId = params['TaskId']
1738
+ @RequestId = params['RequestId']
1739
+ end
1740
+ end
1741
+
1690
1742
  # DescribeTranscodeCallback请求参数结构体
1691
1743
  class DescribeTranscodeCallbackRequest < TencentCloud::Common::AbstractModel
1692
1744
  # @param SdkAppId: 应用的SdkAppId
@@ -1784,12 +1836,21 @@ module TencentCloud
1784
1836
  # @param Ext: 文档制作方式(内测体验)
1785
1837
  # 注意:此字段可能返回 null,表示取不到有效值。
1786
1838
  # @type Ext: String
1839
+ # @param CreateTime: 文档转码任务创建时间,单位s
1840
+ # 注意:此字段可能返回 null,表示取不到有效值。
1841
+ # @type CreateTime: Integer
1842
+ # @param AssignTime: 文档转码任务分配时间,单位s
1843
+ # 注意:此字段可能返回 null,表示取不到有效值。
1844
+ # @type AssignTime: Integer
1845
+ # @param FinishedTime: 文档转码任务完成时间,单位s
1846
+ # 注意:此字段可能返回 null,表示取不到有效值。
1847
+ # @type FinishedTime: Integer
1787
1848
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1788
1849
  # @type RequestId: String
1789
1850
 
1790
- attr_accessor :Pages, :Progress, :Resolution, :ResultUrl, :Status, :TaskId, :Title, :ThumbnailUrl, :ThumbnailResolution, :CompressFileUrl, :ResourceListUrl, :Ext, :RequestId
1851
+ attr_accessor :Pages, :Progress, :Resolution, :ResultUrl, :Status, :TaskId, :Title, :ThumbnailUrl, :ThumbnailResolution, :CompressFileUrl, :ResourceListUrl, :Ext, :CreateTime, :AssignTime, :FinishedTime, :RequestId
1791
1852
 
1792
- def initialize(pages=nil, progress=nil, resolution=nil, resulturl=nil, status=nil, taskid=nil, title=nil, thumbnailurl=nil, thumbnailresolution=nil, compressfileurl=nil, resourcelisturl=nil, ext=nil, requestid=nil)
1853
+ def initialize(pages=nil, progress=nil, resolution=nil, resulturl=nil, status=nil, taskid=nil, title=nil, thumbnailurl=nil, thumbnailresolution=nil, compressfileurl=nil, resourcelisturl=nil, ext=nil, createtime=nil, assigntime=nil, finishedtime=nil, requestid=nil)
1793
1854
  @Pages = pages
1794
1855
  @Progress = progress
1795
1856
  @Resolution = resolution
@@ -1802,6 +1863,9 @@ module TencentCloud
1802
1863
  @CompressFileUrl = compressfileurl
1803
1864
  @ResourceListUrl = resourcelisturl
1804
1865
  @Ext = ext
1866
+ @CreateTime = createtime
1867
+ @AssignTime = assigntime
1868
+ @FinishedTime = finishedtime
1805
1869
  @RequestId = requestid
1806
1870
  end
1807
1871
 
@@ -1818,6 +1882,9 @@ module TencentCloud
1818
1882
  @CompressFileUrl = params['CompressFileUrl']
1819
1883
  @ResourceListUrl = params['ResourceListUrl']
1820
1884
  @Ext = params['Ext']
1885
+ @CreateTime = params['CreateTime']
1886
+ @AssignTime = params['AssignTime']
1887
+ @FinishedTime = params['FinishedTime']
1821
1888
  @RequestId = params['RequestId']
1822
1889
  end
1823
1890
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tiw
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.617
4
+ version: 3.0.619
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-20 00:00:00.000000000 Z
11
+ date: 2023-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common