tencentcloud-sdk-tiw 3.0.618 → 3.0.619
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190919/client.rb +24 -0
- data/lib/v20190919/models.rb +52 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 593d647849932e3f72a41f2704197557fb7274a9
|
4
|
+
data.tar.gz: 2f495bdc9228d0c5d1c0c2909ebacc02f60a51d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a80a1febafef8033a25a0f777dadf96935ab4c9781584b0c8d1edffbd16de247279b254b6f9cd4e2344892f2d0e753455a70ad51e4cf157c5840093294fecb1e
|
7
|
+
data.tar.gz: a7340957ec2efb504280fbbc6b507dbce707f8bd064905695c21d63e97dd139e4acf9afb4932e05a0f8488d480a0e5cea9a381c8701680f1dc5ad2da0318273c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.619
|
data/lib/v20190919/client.rb
CHANGED
@@ -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.
|
data/lib/v20190919/models.rb
CHANGED
@@ -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.
|
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-
|
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
|