tencentcloud-sdk-tiw 3.0.618 → 3.0.619

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: b6ad1ce38bb3445f3b62eaaefdcdc90294d7d33e
4
- data.tar.gz: 0035b8c541f0fc4ca5f2424759945828458c85ed
3
+ metadata.gz: 593d647849932e3f72a41f2704197557fb7274a9
4
+ data.tar.gz: 2f495bdc9228d0c5d1c0c2909ebacc02f60a51d1
5
5
  SHA512:
6
- metadata.gz: 87e26ed9e12db0fe50394976c7160133b2841a4d5a30ec6d86e743901e8e3415941ce81cec0620224a901244aead1e063ccaa9cc8e43ca9bd290cc871b9d4559
7
- data.tar.gz: 92089da6aeacd3118a76253c65f1d3f8705e2e543f0a7075a769fe9fc96445f949901006a720edfc0279e5e0dd580f9cbddc8f17355418c6fdd4da3dcc4264b3
6
+ metadata.gz: a80a1febafef8033a25a0f777dadf96935ab4c9781584b0c8d1edffbd16de247279b254b6f9cd4e2344892f2d0e753455a70ad51e4cf157c5840093294fecb1e
7
+ data.tar.gz: a7340957ec2efb504280fbbc6b507dbce707f8bd064905695c21d63e97dd139e4acf9afb4932e05a0f8488d480a0e5cea9a381c8701680f1dc5ad2da0318273c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.618
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
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.618
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-21 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