tencentcloud-sdk-rce 3.0.1127 → 3.0.1192

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59a46012d435a8203afae3b0b04e64c6925c5612
4
- data.tar.gz: 17ecd69c71332a4444847835bfadcede4ee6337b
3
+ metadata.gz: 8484d368bb16e1255544228ec822702ea248b700
4
+ data.tar.gz: 62551f9a42bdb3563af4fe15c9c0600d5e727b40
5
5
  SHA512:
6
- metadata.gz: 919e573804eba6c470910e55a1f88339cea1f1a8f791c383d8839119ef5c642720390335dab0965c94b5979e697bffa230c4e8a814787481ef54d812947dff56
7
- data.tar.gz: bb7701fdd2c6b556b24d2a4b20210e790cb342273460e84a90f099c6dcb84be5adaedcf25f40ff0a26ee393bf6c4fdb38f4b720a9feacdbf099b5f31ed229d1b
6
+ metadata.gz: 528b79be5c295341bde0566968f85aee700c8037a62785b09d013e1d642ccd9251818fa229276e2ac66079231ac05ea346eaef0dfe4ddaea285b8469eec9f568
7
+ data.tar.gz: 8f2bba24c578f2ae4ce6d90816d0be050d62f78ae227e673a1700ee22917c0682baf0458e9089295e28fd3eaa1b76a175634f02e32398ea9186fee7a03f23582
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1127
1
+ 3.0.1192
@@ -5,6 +5,9 @@ require 'tencentcloud-sdk-common'
5
5
  require_relative 'v20201103/client'
6
6
  require_relative 'v20201103/models'
7
7
 
8
+ require_relative 'v20250425/client'
9
+ require_relative 'v20250425/models'
10
+
8
11
  module TencentCloud
9
12
  module Rce
10
13
  end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2025 Tencent. 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 Rce
21
+ module V20250425
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2025-04-25'
26
+ api_endpoint = 'rce.tencentcloudapi.com'
27
+ sdk_version = 'RCE_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # IP画像接口
33
+
34
+ # @param request: Request instance for ManageIPPortraitRisk.
35
+ # @type request: :class:`Tencentcloud::rce::V20250425::ManageIPPortraitRiskRequest`
36
+ # @rtype: :class:`Tencentcloud::rce::V20250425::ManageIPPortraitRiskResponse`
37
+ def ManageIPPortraitRisk(request)
38
+ body = send_request('ManageIPPortraitRisk', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = ManageIPPortraitRiskResponse.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
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,140 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2025 Tencent. 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 Rce
19
+ module V20250425
20
+ # 业务入参
21
+ class ManageIPPortraitRiskInput < TencentCloud::Common::AbstractModel
22
+ # @param UserIp: 用户公网ip(仅支持IPv4)
23
+ # @type UserIp: String
24
+ # @param Channel: 渠道号
25
+ # @type Channel: Integer
26
+
27
+ attr_accessor :UserIp, :Channel
28
+
29
+ def initialize(userip=nil, channel=nil)
30
+ @UserIp = userip
31
+ @Channel = channel
32
+ end
33
+
34
+ def deserialize(params)
35
+ @UserIp = params['UserIp']
36
+ @Channel = params['Channel']
37
+ end
38
+ end
39
+
40
+ # IP画像出参
41
+ class ManageIPPortraitRiskOutput < TencentCloud::Common::AbstractModel
42
+ # @param Code: 返回码
43
+ # @type Code: Integer
44
+ # @param Message: 返回消息
45
+ # @type Message: String
46
+ # @param Value: 结果
47
+ # @type Value: :class:`Tencentcloud::Rce.v20250425.models.ManageIPPortraitRiskValueOutput`
48
+
49
+ attr_accessor :Code, :Message, :Value
50
+
51
+ def initialize(code=nil, message=nil, value=nil)
52
+ @Code = code
53
+ @Message = message
54
+ @Value = value
55
+ end
56
+
57
+ def deserialize(params)
58
+ @Code = params['Code']
59
+ @Message = params['Message']
60
+ unless params['Value'].nil?
61
+ @Value = ManageIPPortraitRiskValueOutput.new
62
+ @Value.deserialize(params['Value'])
63
+ end
64
+ end
65
+ end
66
+
67
+ # ManageIPPortraitRisk请求参数结构体
68
+ class ManageIPPortraitRiskRequest < TencentCloud::Common::AbstractModel
69
+ # @param PostTime: 请求秒级时间戳
70
+ # @type PostTime: Integer
71
+ # @param BusinessSecurityData: 业务入参
72
+ # @type BusinessSecurityData: :class:`Tencentcloud::Rce.v20250425.models.ManageIPPortraitRiskInput`
73
+
74
+ attr_accessor :PostTime, :BusinessSecurityData
75
+
76
+ def initialize(posttime=nil, businesssecuritydata=nil)
77
+ @PostTime = posttime
78
+ @BusinessSecurityData = businesssecuritydata
79
+ end
80
+
81
+ def deserialize(params)
82
+ @PostTime = params['PostTime']
83
+ unless params['BusinessSecurityData'].nil?
84
+ @BusinessSecurityData = ManageIPPortraitRiskInput.new
85
+ @BusinessSecurityData.deserialize(params['BusinessSecurityData'])
86
+ end
87
+ end
88
+ end
89
+
90
+ # ManageIPPortraitRisk返回参数结构体
91
+ class ManageIPPortraitRiskResponse < TencentCloud::Common::AbstractModel
92
+ # @param Data: 出参
93
+ # @type Data: :class:`Tencentcloud::Rce.v20250425.models.ManageIPPortraitRiskOutput`
94
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
95
+ # @type RequestId: String
96
+
97
+ attr_accessor :Data, :RequestId
98
+
99
+ def initialize(data=nil, requestid=nil)
100
+ @Data = data
101
+ @RequestId = requestid
102
+ end
103
+
104
+ def deserialize(params)
105
+ unless params['Data'].nil?
106
+ @Data = ManageIPPortraitRiskOutput.new
107
+ @Data.deserialize(params['Data'])
108
+ end
109
+ @RequestId = params['RequestId']
110
+ end
111
+ end
112
+
113
+ # 业务出参
114
+ class ManageIPPortraitRiskValueOutput < TencentCloud::Common::AbstractModel
115
+ # @param UserIp: 对应的IP
116
+ # @type UserIp: String
117
+ # @param RiskScore: 返回风险等级, 0 - 4,0代表无风险,数值越大,风险越高
118
+ # @type RiskScore: Integer
119
+ # @param RiskType: 风险类型
120
+ # @type RiskType: Array
121
+
122
+ attr_accessor :UserIp, :RiskScore, :RiskType
123
+
124
+ def initialize(userip=nil, riskscore=nil, risktype=nil)
125
+ @UserIp = userip
126
+ @RiskScore = riskscore
127
+ @RiskType = risktype
128
+ end
129
+
130
+ def deserialize(params)
131
+ @UserIp = params['UserIp']
132
+ @RiskScore = params['RiskScore']
133
+ @RiskType = params['RiskType']
134
+ end
135
+ end
136
+
137
+ end
138
+ end
139
+ end
140
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-rce
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1127
4
+ version: 3.0.1192
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-22 00:00:00.000000000 Z
11
+ date: 2025-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -35,6 +35,8 @@ extra_rdoc_files: []
35
35
  files:
36
36
  - lib/v20201103/client.rb
37
37
  - lib/v20201103/models.rb
38
+ - lib/v20250425/client.rb
39
+ - lib/v20250425/models.rb
38
40
  - lib/tencentcloud-sdk-rce.rb
39
41
  - lib/VERSION
40
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby