tencentcloud-sdk-vcg 3.0.824

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0af06c0ff66bd3159302f55b8a658ca0edbe412d
4
+ data.tar.gz: cc6b327828ea1689d26a8ff95f491fad70f4bcc7
5
+ SHA512:
6
+ metadata.gz: d1fb8d940011d71563b3395fc78ea2c7c369ad73b76ac5fdd7f652ce6ecc01e300b7bdc9396f5d9acebe86d57bc6c436372cddd8ba5f4de77062667de18681f9
7
+ data.tar.gz: c1c5dd32b5afd8f4ed7af6a5e6a268832e7018cec66f8b3056209801ff63c28a74f9d2d462d73ca543f1fa0e411cd10d6014adba80d274e5a8560a495aeec29b
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.824
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20240404/client'
6
+ require_relative 'v20240404/models'
7
+
8
+ module TencentCloud
9
+ module Vcg
10
+ end
11
+ end
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Vcg
21
+ module V20240404
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2024-04-04'
26
+ api_endpoint = 'vcg.tencentcloudapi.com'
27
+ sdk_version = 'VCG_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
33
+
34
+ # @param request: Request instance for DescribeVideoStylizationJob.
35
+ # @type request: :class:`Tencentcloud::vcg::V20240404::DescribeVideoStylizationJobRequest`
36
+ # @rtype: :class:`Tencentcloud::vcg::V20240404::DescribeVideoStylizationJobResponse`
37
+ def DescribeVideoStylizationJob(request)
38
+ body = send_request('DescribeVideoStylizationJob', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeVideoStylizationJobResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
57
+
58
+ # @param request: Request instance for SubmitVideoStylizationJob.
59
+ # @type request: :class:`Tencentcloud::vcg::V20240404::SubmitVideoStylizationJobRequest`
60
+ # @rtype: :class:`Tencentcloud::vcg::V20240404::SubmitVideoStylizationJobResponse`
61
+ def SubmitVideoStylizationJob(request)
62
+ body = send_request('SubmitVideoStylizationJob', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = SubmitVideoStylizationJobResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,121 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Vcg
19
+ module V20240404
20
+ # DescribeVideoStylizationJob请求参数结构体
21
+ class DescribeVideoStylizationJobRequest < TencentCloud::Common::AbstractModel
22
+ # @param JobId: 任务ID
23
+ # @type JobId: String
24
+
25
+ attr_accessor :JobId
26
+
27
+ def initialize(jobid=nil)
28
+ @JobId = jobid
29
+ end
30
+
31
+ def deserialize(params)
32
+ @JobId = params['JobId']
33
+ end
34
+ end
35
+
36
+ # DescribeVideoStylizationJob返回参数结构体
37
+ class DescribeVideoStylizationJobResponse < TencentCloud::Common::AbstractModel
38
+ # @param JobId: 任务ID。
39
+ # @type JobId: String
40
+ # @param StatusCode: 任务状态码:
41
+ # JobInit: "初始化中"
42
+ # JobModerationFailed: "审核失败",
43
+ # JobRunning: "处理中",
44
+ # JobFailed: "处理完成",
45
+ # JobSuccess: "处理失败"。
46
+ # @type StatusCode: String
47
+ # @param StatusMsg: 任务状态描述。
48
+ # @type StatusMsg: String
49
+ # @param ResultVideoUrl: 处理结果视频Url。URL有效期为24小时。
50
+ # @type ResultVideoUrl: String
51
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
52
+ # @type RequestId: String
53
+
54
+ attr_accessor :JobId, :StatusCode, :StatusMsg, :ResultVideoUrl, :RequestId
55
+
56
+ def initialize(jobid=nil, statuscode=nil, statusmsg=nil, resultvideourl=nil, requestid=nil)
57
+ @JobId = jobid
58
+ @StatusCode = statuscode
59
+ @StatusMsg = statusmsg
60
+ @ResultVideoUrl = resultvideourl
61
+ @RequestId = requestid
62
+ end
63
+
64
+ def deserialize(params)
65
+ @JobId = params['JobId']
66
+ @StatusCode = params['StatusCode']
67
+ @StatusMsg = params['StatusMsg']
68
+ @ResultVideoUrl = params['ResultVideoUrl']
69
+ @RequestId = params['RequestId']
70
+ end
71
+ end
72
+
73
+ # SubmitVideoStylizationJob请求参数结构体
74
+ class SubmitVideoStylizationJobRequest < TencentCloud::Common::AbstractModel
75
+ # @param StyleId: 风格ID,取值说明:2d_anime 2D动漫;3d_cartoon 3D卡通;3d_china 3D国潮;pixel_art 像素风。
76
+ # @type StyleId: String
77
+ # @param VideoUrl: 输入视频URL。视频要求:
78
+ # - 视频格式:mp4、mov;
79
+ # - 视频时长:1~60秒;
80
+ # - 视频分辨率:540P~2056P,即长宽像素数均在540px~2056px范围内;
81
+ # - 视频大小:不超过200M;
82
+ # - 视频FPS:15~60fps。
83
+ # @type VideoUrl: String
84
+
85
+ attr_accessor :StyleId, :VideoUrl
86
+
87
+ def initialize(styleid=nil, videourl=nil)
88
+ @StyleId = styleid
89
+ @VideoUrl = videourl
90
+ end
91
+
92
+ def deserialize(params)
93
+ @StyleId = params['StyleId']
94
+ @VideoUrl = params['VideoUrl']
95
+ end
96
+ end
97
+
98
+ # SubmitVideoStylizationJob返回参数结构体
99
+ class SubmitVideoStylizationJobResponse < TencentCloud::Common::AbstractModel
100
+ # @param JobId: 任务ID
101
+ # @type JobId: String
102
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
103
+ # @type RequestId: String
104
+
105
+ attr_accessor :JobId, :RequestId
106
+
107
+ def initialize(jobid=nil, requestid=nil)
108
+ @JobId = jobid
109
+ @RequestId = requestid
110
+ end
111
+
112
+ def deserialize(params)
113
+ @JobId = params['JobId']
114
+ @RequestId = params['RequestId']
115
+ end
116
+ end
117
+
118
+ end
119
+ end
120
+ end
121
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-vcg
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.824
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-05-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ VCG.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/tencentcloud-sdk-vcg.rb
37
+ - lib/v20240404/models.rb
38
+ - lib/v20240404/client.rb
39
+ - lib/VERSION
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-vcg
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.0.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - VCG
66
+ test_files: []