tencentcloud-sdk-ca 3.0.915

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f927244e2104f7db9f66377030d35ee18ec66d02
4
+ data.tar.gz: a6463a08ae537413c6c611fbad620caad6f71e8c
5
+ SHA512:
6
+ metadata.gz: 45e1421e53928a4cb3021ed655cd652dc5a7c51c4674042cc52b0aea57889d6b94ec38a70dc3b052f54641683dbeb3ee1a5ab6b4679f897fa2c1f2c2cb98721a
7
+ data.tar.gz: e74e39b3cb1337238384587debddb713d6100d23a924d199b1cdfec4bf102ddbc6473ef9be5484e96b41ac27e83bd82bb8fccfde7d231ee477c8747582a56630
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.915
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20230228/client'
6
+ require_relative 'v20230228/models'
7
+
8
+ module TencentCloud
9
+ module Ca
10
+ end
11
+ end
@@ -0,0 +1,108 @@
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 Ca
21
+ module V20230228
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2023-02-28'
26
+ api_endpoint = 'ca.tencentcloudapi.com'
27
+ sdk_version = 'CA_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 创建签名验证报告任务,此接口为异步盖章接口,盖章时效24小时。
33
+
34
+ # @param request: Request instance for CreateVerifyReport.
35
+ # @type request: :class:`Tencentcloud::ca::V20230228::CreateVerifyReportRequest`
36
+ # @rtype: :class:`Tencentcloud::ca::V20230228::CreateVerifyReportResponse`
37
+ def CreateVerifyReport(request)
38
+ body = send_request('CreateVerifyReport', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateVerifyReportResponse.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
+ # 下载验签报告url,url有效期默认12小时
57
+
58
+ # @param request: Request instance for DescribeVerifyReport.
59
+ # @type request: :class:`Tencentcloud::ca::V20230228::DescribeVerifyReportRequest`
60
+ # @rtype: :class:`Tencentcloud::ca::V20230228::DescribeVerifyReportResponse`
61
+ def DescribeVerifyReport(request)
62
+ body = send_request('DescribeVerifyReport', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeVerifyReportResponse.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
+
82
+ # @param request: Request instance for UploadFile.
83
+ # @type request: :class:`Tencentcloud::ca::V20230228::UploadFileRequest`
84
+ # @rtype: :class:`Tencentcloud::ca::V20230228::UploadFileResponse`
85
+ def UploadFile(request)
86
+ body = send_request('UploadFile', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = UploadFileResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,198 @@
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 Ca
19
+ module V20230228
20
+ # CreateVerifyReport请求参数结构体
21
+ class CreateVerifyReportRequest < TencentCloud::Common::AbstractModel
22
+ # @param ApplyCustomerType: 客户类型 1:个人,2:企业
23
+ # @type ApplyCustomerType: String
24
+ # @param ApplyCustomerName: 申请企业 or 自然人名称
25
+ # @type ApplyCustomerName: String
26
+ # @param ApplyName: 验签申请人姓名
27
+ # @type ApplyName: String
28
+ # @param ApplyMobile: 验签申请人电弧
29
+ # @type ApplyMobile: String
30
+ # @param FileId: 验签文件id
31
+ # @type FileId: String
32
+ # @param ApplyEmail: 验签申请人邮箱
33
+ # @type ApplyEmail: String
34
+
35
+ attr_accessor :ApplyCustomerType, :ApplyCustomerName, :ApplyName, :ApplyMobile, :FileId, :ApplyEmail
36
+
37
+ def initialize(applycustomertype=nil, applycustomername=nil, applyname=nil, applymobile=nil, fileid=nil, applyemail=nil)
38
+ @ApplyCustomerType = applycustomertype
39
+ @ApplyCustomerName = applycustomername
40
+ @ApplyName = applyname
41
+ @ApplyMobile = applymobile
42
+ @FileId = fileid
43
+ @ApplyEmail = applyemail
44
+ end
45
+
46
+ def deserialize(params)
47
+ @ApplyCustomerType = params['ApplyCustomerType']
48
+ @ApplyCustomerName = params['ApplyCustomerName']
49
+ @ApplyName = params['ApplyName']
50
+ @ApplyMobile = params['ApplyMobile']
51
+ @FileId = params['FileId']
52
+ @ApplyEmail = params['ApplyEmail']
53
+ end
54
+ end
55
+
56
+ # CreateVerifyReport返回参数结构体
57
+ class CreateVerifyReportResponse < TencentCloud::Common::AbstractModel
58
+ # @param SignatureId: 签名id
59
+ # @type SignatureId: String
60
+ # @param Code: code
61
+ # @type Code: String
62
+ # @param Message: message
63
+ # @type Message: String
64
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
65
+ # @type RequestId: String
66
+
67
+ attr_accessor :SignatureId, :Code, :Message, :RequestId
68
+
69
+ def initialize(signatureid=nil, code=nil, message=nil, requestid=nil)
70
+ @SignatureId = signatureid
71
+ @Code = code
72
+ @Message = message
73
+ @RequestId = requestid
74
+ end
75
+
76
+ def deserialize(params)
77
+ @SignatureId = params['SignatureId']
78
+ @Code = params['Code']
79
+ @Message = params['Message']
80
+ @RequestId = params['RequestId']
81
+ end
82
+ end
83
+
84
+ # DescribeVerifyReport请求参数结构体
85
+ class DescribeVerifyReportRequest < TencentCloud::Common::AbstractModel
86
+ # @param SignatureId: 签名id
87
+ # @type SignatureId: String
88
+
89
+ attr_accessor :SignatureId
90
+
91
+ def initialize(signatureid=nil)
92
+ @SignatureId = signatureid
93
+ end
94
+
95
+ def deserialize(params)
96
+ @SignatureId = params['SignatureId']
97
+ end
98
+ end
99
+
100
+ # DescribeVerifyReport返回参数结构体
101
+ class DescribeVerifyReportResponse < TencentCloud::Common::AbstractModel
102
+ # @param ReportUrl: 下载url
103
+ # @type ReportUrl: String
104
+ # @param Code: code
105
+ # @type Code: String
106
+ # @param Message: message
107
+ # @type Message: String
108
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
109
+ # @type RequestId: String
110
+
111
+ attr_accessor :ReportUrl, :Code, :Message, :RequestId
112
+
113
+ def initialize(reporturl=nil, code=nil, message=nil, requestid=nil)
114
+ @ReportUrl = reporturl
115
+ @Code = code
116
+ @Message = message
117
+ @RequestId = requestid
118
+ end
119
+
120
+ def deserialize(params)
121
+ @ReportUrl = params['ReportUrl']
122
+ @Code = params['Code']
123
+ @Message = params['Message']
124
+ @RequestId = params['RequestId']
125
+ end
126
+ end
127
+
128
+ # 文件列表信息
129
+ class FileInfo < TencentCloud::Common::AbstractModel
130
+ # @param FileBody: BASE64编码后的文件内容
131
+ # @type FileBody: String
132
+ # @param FileName: 文件名,最大长度不超过200字符
133
+ # @type FileName: String
134
+
135
+ attr_accessor :FileBody, :FileName
136
+
137
+ def initialize(filebody=nil, filename=nil)
138
+ @FileBody = filebody
139
+ @FileName = filename
140
+ end
141
+
142
+ def deserialize(params)
143
+ @FileBody = params['FileBody']
144
+ @FileName = params['FileName']
145
+ end
146
+ end
147
+
148
+ # UploadFile请求参数结构体
149
+ class UploadFileRequest < TencentCloud::Common::AbstractModel
150
+ # @param FileInfos: 验签源文件信息列表
151
+ # @type FileInfos: Array
152
+
153
+ attr_accessor :FileInfos
154
+
155
+ def initialize(fileinfos=nil)
156
+ @FileInfos = fileinfos
157
+ end
158
+
159
+ def deserialize(params)
160
+ unless params['FileInfos'].nil?
161
+ @FileInfos = []
162
+ params['FileInfos'].each do |i|
163
+ fileinfo_tmp = FileInfo.new
164
+ fileinfo_tmp.deserialize(i)
165
+ @FileInfos << fileinfo_tmp
166
+ end
167
+ end
168
+ end
169
+ end
170
+
171
+ # UploadFile返回参数结构体
172
+ class UploadFileResponse < TencentCloud::Common::AbstractModel
173
+ # @param FileIds: 文件id列表
174
+ # @type FileIds: Array
175
+ # @param TotalCount: 文件id总数
176
+ # @type TotalCount: Integer
177
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
178
+ # @type RequestId: String
179
+
180
+ attr_accessor :FileIds, :TotalCount, :RequestId
181
+
182
+ def initialize(fileids=nil, totalcount=nil, requestid=nil)
183
+ @FileIds = fileids
184
+ @TotalCount = totalcount
185
+ @RequestId = requestid
186
+ end
187
+
188
+ def deserialize(params)
189
+ @FileIds = params['FileIds']
190
+ @TotalCount = params['TotalCount']
191
+ @RequestId = params['RequestId']
192
+ end
193
+ end
194
+
195
+ end
196
+ end
197
+ end
198
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-ca
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.915
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-09-26 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
+ CA.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/tencentcloud-sdk-ca.rb
37
+ - lib/v20230228/models.rb
38
+ - lib/v20230228/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-ca
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 - CA
66
+ test_files: []