tencentcloud-sdk-tds 3.0.418

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: 79e48531df03333d5cf9f19db42ba6cb5d11896d
4
+ data.tar.gz: e9415e44ef0adf007c7c1b407f34aa45e4051012
5
+ SHA512:
6
+ metadata.gz: 1fca3809dd3f355ea2e12b1de97d983999613a0d412c14de8b6ac6365ef91be94c5147b2bf5e0021078b2b4c2aa24def300cf9d495cfe6c4f045531582a168ae
7
+ data.tar.gz: a29111db78ea464e8d73b4d1093401daebf802a836001e039383e37edd7f7ea9ae0bd8ca5372c14b49274aeed3fa0b41ded761f2b4c79b662ce9fa830660906b
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.418
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20220801/client'
6
+ require_relative 'v20220801/models'
7
+
8
+ module TencentCloud
9
+ module Tds
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 Tds
21
+ module V20220801
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-08-01'
26
+ api_endpoint = 'tds.tencentcloudapi.com'
27
+ sdk_version = 'TDS_' + 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 DescribeFraudBase.
35
+ # @type request: :class:`Tencentcloud::tds::V20220801::DescribeFraudBaseRequest`
36
+ # @rtype: :class:`Tencentcloud::tds::V20220801::DescribeFraudBaseResponse`
37
+ def DescribeFraudBase(request)
38
+ body = send_request('DescribeFraudBase', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeFraudBaseResponse.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 DescribeFraudPremium.
59
+ # @type request: :class:`Tencentcloud::tds::V20220801::DescribeFraudPremiumRequest`
60
+ # @rtype: :class:`Tencentcloud::tds::V20220801::DescribeFraudPremiumResponse`
61
+ def DescribeFraudPremium(request)
62
+ body = send_request('DescribeFraudPremium', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeFraudPremiumResponse.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 DescribeTrustedID.
83
+ # @type request: :class:`Tencentcloud::tds::V20220801::DescribeTrustedIDRequest`
84
+ # @rtype: :class:`Tencentcloud::tds::V20220801::DescribeTrustedIDResponse`
85
+ def DescribeTrustedID(request)
86
+ body = send_request('DescribeTrustedID', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeTrustedIDResponse.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,299 @@
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 Tds
19
+ module V20220801
20
+ # DescribeFraudBase请求参数结构体
21
+ class DescribeFraudBaseRequest < TencentCloud::Common::AbstractModel
22
+ # @param DeviceToken: 客户端通过SDK获取的设备Token
23
+ # @type DeviceToken: String
24
+
25
+ attr_accessor :DeviceToken
26
+
27
+ def initialize(devicetoken=nil)
28
+ @DeviceToken = devicetoken
29
+ end
30
+
31
+ def deserialize(params)
32
+ @DeviceToken = params['DeviceToken']
33
+ end
34
+ end
35
+
36
+ # DescribeFraudBase返回参数结构体
37
+ class DescribeFraudBaseResponse < TencentCloud::Common::AbstractModel
38
+ # @param AppVersion: App版本信息
39
+ # @type AppVersion: String
40
+ # @param Brand: 品牌
41
+ # @type Brand: String
42
+ # @param ClientIp: 客户端IP
43
+ # @type ClientIp: String
44
+ # @param Model: 机型
45
+ # @type Model: String
46
+ # @param NetworkType: 网络类型
47
+ # @type NetworkType: String
48
+ # @param PackageName: 应用包名
49
+ # @type PackageName: String
50
+ # @param Platform: 平台(2-Android,3-iOS,4-H5,5-微信小程序)
51
+ # @type Platform: String
52
+ # @param SystemVersion: 系统版本
53
+ # @type SystemVersion: String
54
+ # @param SdkBuildNo: SDK版本号
55
+ # @type SdkBuildNo: String
56
+ # @param RiskInfos: 实时风险信息
57
+ # @type RiskInfos: Array
58
+ # @param HistRiskInfos: 离线风险信息
59
+ # @type HistRiskInfos: Array
60
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
61
+ # @type RequestId: String
62
+
63
+ attr_accessor :AppVersion, :Brand, :ClientIp, :Model, :NetworkType, :PackageName, :Platform, :SystemVersion, :SdkBuildNo, :RiskInfos, :HistRiskInfos, :RequestId
64
+
65
+ def initialize(appversion=nil, brand=nil, clientip=nil, model=nil, networktype=nil, packagename=nil, platform=nil, systemversion=nil, sdkbuildno=nil, riskinfos=nil, histriskinfos=nil, requestid=nil)
66
+ @AppVersion = appversion
67
+ @Brand = brand
68
+ @ClientIp = clientip
69
+ @Model = model
70
+ @NetworkType = networktype
71
+ @PackageName = packagename
72
+ @Platform = platform
73
+ @SystemVersion = systemversion
74
+ @SdkBuildNo = sdkbuildno
75
+ @RiskInfos = riskinfos
76
+ @HistRiskInfos = histriskinfos
77
+ @RequestId = requestid
78
+ end
79
+
80
+ def deserialize(params)
81
+ @AppVersion = params['AppVersion']
82
+ @Brand = params['Brand']
83
+ @ClientIp = params['ClientIp']
84
+ @Model = params['Model']
85
+ @NetworkType = params['NetworkType']
86
+ @PackageName = params['PackageName']
87
+ @Platform = params['Platform']
88
+ @SystemVersion = params['SystemVersion']
89
+ @SdkBuildNo = params['SdkBuildNo']
90
+ unless params['RiskInfos'].nil?
91
+ @RiskInfos = []
92
+ params['RiskInfos'].each do |i|
93
+ riskinfo_tmp = RiskInfo.new
94
+ riskinfo_tmp.deserialize(i)
95
+ @RiskInfos << riskinfo_tmp
96
+ end
97
+ end
98
+ unless params['HistRiskInfos'].nil?
99
+ @HistRiskInfos = []
100
+ params['HistRiskInfos'].each do |i|
101
+ riskinfo_tmp = RiskInfo.new
102
+ riskinfo_tmp.deserialize(i)
103
+ @HistRiskInfos << riskinfo_tmp
104
+ end
105
+ end
106
+ @RequestId = params['RequestId']
107
+ end
108
+ end
109
+
110
+ # DescribeFraudPremium请求参数结构体
111
+ class DescribeFraudPremiumRequest < TencentCloud::Common::AbstractModel
112
+ # @param DeviceToken: 客户端通过SDK获取的设备Token
113
+ # @type DeviceToken: String
114
+
115
+ attr_accessor :DeviceToken
116
+
117
+ def initialize(devicetoken=nil)
118
+ @DeviceToken = devicetoken
119
+ end
120
+
121
+ def deserialize(params)
122
+ @DeviceToken = params['DeviceToken']
123
+ end
124
+ end
125
+
126
+ # DescribeFraudPremium返回参数结构体
127
+ class DescribeFraudPremiumResponse < TencentCloud::Common::AbstractModel
128
+ # @param AppVersion: App版本信息
129
+ # @type AppVersion: String
130
+ # @param Brand: 品牌
131
+ # @type Brand: String
132
+ # @param ClientIp: 客户端IP
133
+ # @type ClientIp: String
134
+ # @param Model: 机型
135
+ # @type Model: String
136
+ # @param NetworkType: 网络类型
137
+ # @type NetworkType: String
138
+ # @param PackageName: 应用包名
139
+ # @type PackageName: String
140
+ # @param Platform: 平台(2-Android,3-iOS,4-H5,5-微信小程序)
141
+ # @type Platform: String
142
+ # @param SystemVersion: 系统版本
143
+ # @type SystemVersion: String
144
+ # @param SdkBuildNo: SDK版本号
145
+ # @type SdkBuildNo: String
146
+ # @param RiskInfos: 实时风险信息
147
+ # @type RiskInfos: Array
148
+ # @param HistRiskInfos: 离线风险信息
149
+ # @type HistRiskInfos: Array
150
+ # @param Openid: 设备匿名标识
151
+ # @type Openid: String
152
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
153
+ # @type RequestId: String
154
+
155
+ attr_accessor :AppVersion, :Brand, :ClientIp, :Model, :NetworkType, :PackageName, :Platform, :SystemVersion, :SdkBuildNo, :RiskInfos, :HistRiskInfos, :Openid, :RequestId
156
+
157
+ def initialize(appversion=nil, brand=nil, clientip=nil, model=nil, networktype=nil, packagename=nil, platform=nil, systemversion=nil, sdkbuildno=nil, riskinfos=nil, histriskinfos=nil, openid=nil, requestid=nil)
158
+ @AppVersion = appversion
159
+ @Brand = brand
160
+ @ClientIp = clientip
161
+ @Model = model
162
+ @NetworkType = networktype
163
+ @PackageName = packagename
164
+ @Platform = platform
165
+ @SystemVersion = systemversion
166
+ @SdkBuildNo = sdkbuildno
167
+ @RiskInfos = riskinfos
168
+ @HistRiskInfos = histriskinfos
169
+ @Openid = openid
170
+ @RequestId = requestid
171
+ end
172
+
173
+ def deserialize(params)
174
+ @AppVersion = params['AppVersion']
175
+ @Brand = params['Brand']
176
+ @ClientIp = params['ClientIp']
177
+ @Model = params['Model']
178
+ @NetworkType = params['NetworkType']
179
+ @PackageName = params['PackageName']
180
+ @Platform = params['Platform']
181
+ @SystemVersion = params['SystemVersion']
182
+ @SdkBuildNo = params['SdkBuildNo']
183
+ unless params['RiskInfos'].nil?
184
+ @RiskInfos = []
185
+ params['RiskInfos'].each do |i|
186
+ riskinfo_tmp = RiskInfo.new
187
+ riskinfo_tmp.deserialize(i)
188
+ @RiskInfos << riskinfo_tmp
189
+ end
190
+ end
191
+ unless params['HistRiskInfos'].nil?
192
+ @HistRiskInfos = []
193
+ params['HistRiskInfos'].each do |i|
194
+ riskinfo_tmp = RiskInfo.new
195
+ riskinfo_tmp.deserialize(i)
196
+ @HistRiskInfos << riskinfo_tmp
197
+ end
198
+ end
199
+ @Openid = params['Openid']
200
+ @RequestId = params['RequestId']
201
+ end
202
+ end
203
+
204
+ # DescribeTrustedID请求参数结构体
205
+ class DescribeTrustedIDRequest < TencentCloud::Common::AbstractModel
206
+ # @param DeviceToken: 客户端通过SDK获取的设备Token
207
+ # @type DeviceToken: String
208
+
209
+ attr_accessor :DeviceToken
210
+
211
+ def initialize(devicetoken=nil)
212
+ @DeviceToken = devicetoken
213
+ end
214
+
215
+ def deserialize(params)
216
+ @DeviceToken = params['DeviceToken']
217
+ end
218
+ end
219
+
220
+ # DescribeTrustedID返回参数结构体
221
+ class DescribeTrustedIDResponse < TencentCloud::Common::AbstractModel
222
+ # @param Openid: 设备匿名标识
223
+ # @type Openid: String
224
+ # @param AppVersion: App版本信息
225
+ # @type AppVersion: String
226
+ # @param Brand: 品牌
227
+ # @type Brand: String
228
+ # @param ClientIp: 客户端IP
229
+ # @type ClientIp: String
230
+ # @param Model: 机型
231
+ # @type Model: String
232
+ # @param NetworkType: 网络类型
233
+ # @type NetworkType: String
234
+ # @param PackageName: 应用包名
235
+ # @type PackageName: String
236
+ # @param Platform: 平台(2-Android,3-iOS,4-H5,5-微信小程序)
237
+ # @type Platform: String
238
+ # @param SystemVersion: 系统版本
239
+ # @type SystemVersion: String
240
+ # @param SdkBuildNo: SDK版本号
241
+ # @type SdkBuildNo: String
242
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
243
+ # @type RequestId: String
244
+
245
+ attr_accessor :Openid, :AppVersion, :Brand, :ClientIp, :Model, :NetworkType, :PackageName, :Platform, :SystemVersion, :SdkBuildNo, :RequestId
246
+
247
+ def initialize(openid=nil, appversion=nil, brand=nil, clientip=nil, model=nil, networktype=nil, packagename=nil, platform=nil, systemversion=nil, sdkbuildno=nil, requestid=nil)
248
+ @Openid = openid
249
+ @AppVersion = appversion
250
+ @Brand = brand
251
+ @ClientIp = clientip
252
+ @Model = model
253
+ @NetworkType = networktype
254
+ @PackageName = packagename
255
+ @Platform = platform
256
+ @SystemVersion = systemversion
257
+ @SdkBuildNo = sdkbuildno
258
+ @RequestId = requestid
259
+ end
260
+
261
+ def deserialize(params)
262
+ @Openid = params['Openid']
263
+ @AppVersion = params['AppVersion']
264
+ @Brand = params['Brand']
265
+ @ClientIp = params['ClientIp']
266
+ @Model = params['Model']
267
+ @NetworkType = params['NetworkType']
268
+ @PackageName = params['PackageName']
269
+ @Platform = params['Platform']
270
+ @SystemVersion = params['SystemVersion']
271
+ @SdkBuildNo = params['SdkBuildNo']
272
+ @RequestId = params['RequestId']
273
+ end
274
+ end
275
+
276
+ # 风险信息
277
+ class RiskInfo < TencentCloud::Common::AbstractModel
278
+ # @param Type: 风险类型
279
+ # @type Type: Integer
280
+ # @param Level: 风险等级
281
+ # @type Level: Integer
282
+
283
+ attr_accessor :Type, :Level
284
+
285
+ def initialize(type=nil, level=nil)
286
+ @Type = type
287
+ @Level = level
288
+ end
289
+
290
+ def deserialize(params)
291
+ @Type = params['Type']
292
+ @Level = params['Level']
293
+ end
294
+ end
295
+
296
+ end
297
+ end
298
+ end
299
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-tds
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.418
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-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: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.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
+ TDS.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/v20220801/models.rb
37
+ - lib/v20220801/client.rb
38
+ - lib/tencentcloud-sdk-tds.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-tds
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 - TDS
66
+ test_files: []