tencentcloud-sdk-ruby 0.3.6 → 0.4.8
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/Gemfile.lock +8 -6
- data/examples/ccc/.DS_Store +0 -0
- data/examples/lke/v20231130/reconstruct_document.rb +19 -0
- data/lib/tencent_cloud/ccc/v20200210/ccc_client.rb +16 -0
- data/lib/tencent_cloud/lke/v20231130/lke_client.rb +16 -0
- data/lib/tencent_cloud/version.rb +1 -1
- data/tencent_cloud.gemspec +2 -1
- metadata +25 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 869bbac6b11cd5bb649b9d376402cb92ad900b75f3e8f8f33a2c5365b1aa449c
|
4
|
+
data.tar.gz: ff5d2d1f3b16f63e7316ef848913d9530951f045507fa6440ffbb829547e55c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8a4868e2e851671239478bdcc1256866a7f1ec24a2da59f9607d05f862c412cb8b804c4fa97cf5b82c28da230dcaeeb243cd8d376eb4ae776bc670cdd6ebe62
|
7
|
+
data.tar.gz: d4828976be11dcc322d5a0b4b789ab27716f1df7b12a2648a8fa38667d2bdf44dbd840dbb14b8dd6207816644344721ff9b8b53268e12b75dc1dbb3702bd3b2a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tencentcloud-sdk-ruby (0.3.
|
4
|
+
tencentcloud-sdk-ruby (0.3.8)
|
5
5
|
typhoeus (~> 1.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -9,14 +9,14 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
coderay (1.1.3)
|
11
11
|
diff-lcs (1.3)
|
12
|
-
ethon (0.
|
12
|
+
ethon (0.16.0)
|
13
13
|
ffi (>= 1.15.0)
|
14
|
-
ffi (1.
|
14
|
+
ffi (1.17.0)
|
15
15
|
method_source (1.0.0)
|
16
16
|
pry (0.13.1)
|
17
17
|
coderay (~> 1.1)
|
18
18
|
method_source (~> 1.0)
|
19
|
-
rake (
|
19
|
+
rake (12.3.3)
|
20
20
|
rspec (3.5.0)
|
21
21
|
rspec-core (~> 3.5.0)
|
22
22
|
rspec-expectations (~> 3.5.0)
|
@@ -30,8 +30,9 @@ GEM
|
|
30
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
31
31
|
rspec-support (~> 3.5.0)
|
32
32
|
rspec-support (3.5.0)
|
33
|
-
typhoeus (1.4.
|
33
|
+
typhoeus (1.4.1)
|
34
34
|
ethon (>= 0.9.0)
|
35
|
+
uri (1.0.2)
|
35
36
|
|
36
37
|
PLATFORMS
|
37
38
|
ruby
|
@@ -39,9 +40,10 @@ PLATFORMS
|
|
39
40
|
DEPENDENCIES
|
40
41
|
bundler (~> 2.0)
|
41
42
|
pry (~> 0.1)
|
42
|
-
rake (
|
43
|
+
rake (~> 12.3)
|
43
44
|
rspec (~> 3.0)
|
44
45
|
tencentcloud-sdk-ruby!
|
46
|
+
uri (~> 1.0.1)
|
45
47
|
|
46
48
|
BUNDLED WITH
|
47
49
|
2.2.16
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'tencent_cloud'
|
5
|
+
require 'tencent_cloud/lke/v20231130/lke_client'
|
6
|
+
# replace secret_id secret_key
|
7
|
+
secret_id = ENV['TENCENT_SECRET_ID']
|
8
|
+
secret_key = ENV['TENCENT_SECRET_KEY']
|
9
|
+
credential = TencentCloud::Common::Credential.new(secret_id, secret_key)
|
10
|
+
payload = {
|
11
|
+
'FileUrl' => '',
|
12
|
+
'FileStartPageNumber' => 1,
|
13
|
+
'FileEndPageNumber' => 10,
|
14
|
+
'Config' => {
|
15
|
+
'EnableInsetImage' => true
|
16
|
+
}
|
17
|
+
}
|
18
|
+
resp = TencentCloud::LkeClient.new(credential, 'ap-guangzhou').reconstruct_document(payload)
|
19
|
+
pp JSON.parse(resp.body)
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'tencent_cloud/common/base_client'
|
4
|
+
module TencentCloud
|
5
|
+
class CccClient < Common::BaseClient
|
6
|
+
API_VERSION = '2020-02-10'
|
7
|
+
ENDPOINT = 'ccc.tencentcloudapi.com'
|
8
|
+
SERVICE_NAME = 'ccc'
|
9
|
+
APIS = {
|
10
|
+
|
11
|
+
# 创建AI会话
|
12
|
+
# https://cloud.tencent.com/document/api/679/111211
|
13
|
+
create_ai_call: 'CreateAICall'
|
14
|
+
}.freeze
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'tencent_cloud/common/base_client'
|
4
|
+
module TencentCloud
|
5
|
+
class LkeClient < Common::BaseClient
|
6
|
+
API_VERSION = '2023-11-30'
|
7
|
+
ENDPOINT = 'lke.tencentcloudapi.com'
|
8
|
+
SERVICE_NAME = 'lke'
|
9
|
+
APIS = {
|
10
|
+
#################### 大模型知识引擎 > 文档解析
|
11
|
+
# 词法分析
|
12
|
+
# https://cloud.tencent.com/document/product/1759/107504
|
13
|
+
reconstruct_document: 'ReconstructDocument',
|
14
|
+
}.freeze
|
15
|
+
end
|
16
|
+
end
|
data/tencent_cloud.gemspec
CHANGED
@@ -30,7 +30,8 @@ Gem::Specification.new do |spec|
|
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
32
32
|
spec.add_development_dependency 'pry', '~> 0.1'
|
33
|
-
spec.add_development_dependency
|
33
|
+
spec.add_development_dependency 'rake', '~> 12.3'
|
34
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
35
|
+
spec.add_development_dependency 'uri', '~> 1.0.1'
|
35
36
|
spec.add_runtime_dependency 'typhoeus', '~> 1.0'
|
36
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FengCe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 12.3
|
47
|
+
version: '12.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 12.3
|
54
|
+
version: '12.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: uri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.0.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.0.1
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: typhoeus
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,6 +113,8 @@ files:
|
|
99
113
|
- Rakefile
|
100
114
|
- bin/console
|
101
115
|
- bin/setup
|
116
|
+
- examples/ccc/.DS_Store
|
117
|
+
- examples/lke/v20231130/reconstruct_document.rb
|
102
118
|
- examples/nlp/v20190408/lexical_analysis.rb
|
103
119
|
- examples/ocr/v20181119/bussiness_card.rb
|
104
120
|
- examples/ocr/v20181119/recognize_table_ocr.rb
|
@@ -107,11 +123,13 @@ files:
|
|
107
123
|
- examples/trtc/v20190722/start_mcu_mix_transcode.rb
|
108
124
|
- lib/tencent_cloud.rb
|
109
125
|
- lib/tencent_cloud/captcha/v20190722/captcha_client.rb
|
126
|
+
- lib/tencent_cloud/ccc/v20200210/ccc_client.rb
|
110
127
|
- lib/tencent_cloud/common/base_client.rb
|
111
128
|
- lib/tencent_cloud/common/credential.rb
|
112
129
|
- lib/tencent_cloud/common/exception/tencent_cloud_sdk_exception.rb
|
113
130
|
- lib/tencent_cloud/common/http/request.rb
|
114
131
|
- lib/tencent_cloud/common/http/sign.rb
|
132
|
+
- lib/tencent_cloud/lke/v20231130/lke_client.rb
|
115
133
|
- lib/tencent_cloud/nlp/v20190408/nlp_client.rb
|
116
134
|
- lib/tencent_cloud/ocr/v20181119/ocr_client.rb
|
117
135
|
- lib/tencent_cloud/tms/v20200713/tms_client.rb
|
@@ -141,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
159
|
- !ruby/object:Gem::Version
|
142
160
|
version: '0'
|
143
161
|
requirements: []
|
144
|
-
rubygems_version: 3.4.
|
162
|
+
rubygems_version: 3.4.1
|
145
163
|
signing_key:
|
146
164
|
specification_version: 4
|
147
165
|
summary: 腾讯云开发者工具套件(SDK)3.0,SDK3.0是云 API3.0 平台的配套工具
|