tencentcloud-sdk-evt 3.0.1190 → 3.0.1204
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/lib/VERSION +1 -1
- data/lib/v20250217/client.rb +24 -0
- data/lib/v20250217/models.rb +44 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d1a6e4cfdbe360dbcf26ada8091a9780e0063ad
|
|
4
|
+
data.tar.gz: 4113c6ded886b1d261775e33af38a70b32b8e630
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f80d9e412b8ccd8e2a903710f74aedead57b77a9174410caa0570ffbc010603991a3a0ca5073cbb276204d64d6319f48eb085a8e1c4c4abaeeca2613a24ba2f3
|
|
7
|
+
data.tar.gz: 99dd85735a27ca6c71abe31e350820c714f750690222f41c81d52190c93ad4baea381faa74bb3d6dbd26519af863d4c04733798eb1f23b08a788fc4f281cf0bc
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1204
|
data/lib/v20250217/client.rb
CHANGED
|
@@ -103,6 +103,30 @@ module TencentCloud
|
|
|
103
103
|
|
|
104
104
|
# 推送事件数据
|
|
105
105
|
|
|
106
|
+
# @param request: Request instance for PutEvent.
|
|
107
|
+
# @type request: :class:`Tencentcloud::evt::V20250217::PutEventRequest`
|
|
108
|
+
# @rtype: :class:`Tencentcloud::evt::V20250217::PutEventResponse`
|
|
109
|
+
def PutEvent(request)
|
|
110
|
+
body = send_request('PutEvent', request.serialize)
|
|
111
|
+
response = JSON.parse(body)
|
|
112
|
+
if response['Response'].key?('Error') == false
|
|
113
|
+
model = PutEventResponse.new
|
|
114
|
+
model.deserialize(response['Response'])
|
|
115
|
+
model
|
|
116
|
+
else
|
|
117
|
+
code = response['Response']['Error']['Code']
|
|
118
|
+
message = response['Response']['Error']['Message']
|
|
119
|
+
reqid = response['Response']['RequestId']
|
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
121
|
+
end
|
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
123
|
+
raise e
|
|
124
|
+
rescue StandardError => e
|
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# 推送事件数据
|
|
129
|
+
|
|
106
130
|
# @param request: Request instance for PutMessage.
|
|
107
131
|
# @type request: :class:`Tencentcloud::evt::V20250217::PutMessageRequest`
|
|
108
132
|
# @rtype: :class:`Tencentcloud::evt::V20250217::PutMessageResponse`
|
data/lib/v20250217/models.rb
CHANGED
|
@@ -168,6 +168,50 @@ module TencentCloud
|
|
|
168
168
|
end
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
+
# PutEvent请求参数结构体
|
|
172
|
+
class PutEventRequest < TencentCloud::Common::AbstractModel
|
|
173
|
+
# @param PluginId: <p>插件ID</p>
|
|
174
|
+
# @type PluginId: String
|
|
175
|
+
# @param Data: <p>需要推送的事件数据内容,格式为json,字段定义需要与事件中的定义一致</p>
|
|
176
|
+
# @type Data: String
|
|
177
|
+
# @param Source: <p>数据推送来源,会在生成的单据中展示数据来源</p>
|
|
178
|
+
# @type Source: String
|
|
179
|
+
# @param TargetUin: <p>可以接受当前消息的Uin</p>
|
|
180
|
+
# @type TargetUin: Integer
|
|
181
|
+
|
|
182
|
+
attr_accessor :PluginId, :Data, :Source, :TargetUin
|
|
183
|
+
|
|
184
|
+
def initialize(pluginid=nil, data=nil, source=nil, targetuin=nil)
|
|
185
|
+
@PluginId = pluginid
|
|
186
|
+
@Data = data
|
|
187
|
+
@Source = source
|
|
188
|
+
@TargetUin = targetuin
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
def deserialize(params)
|
|
192
|
+
@PluginId = params['PluginId']
|
|
193
|
+
@Data = params['Data']
|
|
194
|
+
@Source = params['Source']
|
|
195
|
+
@TargetUin = params['TargetUin']
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# PutEvent返回参数结构体
|
|
200
|
+
class PutEventResponse < TencentCloud::Common::AbstractModel
|
|
201
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
202
|
+
# @type RequestId: String
|
|
203
|
+
|
|
204
|
+
attr_accessor :RequestId
|
|
205
|
+
|
|
206
|
+
def initialize(requestid=nil)
|
|
207
|
+
@RequestId = requestid
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
def deserialize(params)
|
|
211
|
+
@RequestId = params['RequestId']
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
171
215
|
# PutMessage请求参数结构体
|
|
172
216
|
class PutMessageRequest < TencentCloud::Common::AbstractModel
|
|
173
217
|
# @param EventId: <p>事件ID</p>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-evt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1204
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|