tencentcloud-sdk-gs 1.0.238 → 1.0.239
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20191118/client.rb +48 -0
- data/lib/v20191118/models.rb +68 -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: fd5ef3d0a1eb547dd80f75052e316843d7056d2b
|
4
|
+
data.tar.gz: 38009cb17019bcccab36e08e55a782321c756307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5330c62ad65c4bfbb53a910d048ba31f0cdcf461f2e041475b7b6cc5fe8a893b814c2378feb29ff39b20e0fc10c52128114598f426e5d4700a10f0390827bbc2
|
7
|
+
data.tar.gz: fc237e15bf0499d211006af72e8f8da238e062fa342fb659b5acaf3397cb7c05aeb2f3d79327a80ae3a945adac6460df3a219d0a30569b650caaf907e293e671
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.239
|
data/lib/v20191118/client.rb
CHANGED
@@ -101,6 +101,30 @@ module TencentCloud
|
|
101
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
102
|
end
|
103
103
|
|
104
|
+
# 开始云端推流
|
105
|
+
|
106
|
+
# @param request: Request instance for StartPublishStream.
|
107
|
+
# @type request: :class:`Tencentcloud::gs::V20191118::StartPublishStreamRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::gs::V20191118::StartPublishStreamResponse`
|
109
|
+
def StartPublishStream(request)
|
110
|
+
body = send_request('StartPublishStream', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = StartPublishStreamResponse.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
|
+
|
104
128
|
# 强制退出游戏
|
105
129
|
|
106
130
|
# @param request: Request instance for StopGame.
|
@@ -125,6 +149,30 @@ module TencentCloud
|
|
125
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
150
|
end
|
127
151
|
|
152
|
+
# 停止云端推流
|
153
|
+
|
154
|
+
# @param request: Request instance for StopPublishStream.
|
155
|
+
# @type request: :class:`Tencentcloud::gs::V20191118::StopPublishStreamRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::gs::V20191118::StopPublishStreamResponse`
|
157
|
+
def StopPublishStream(request)
|
158
|
+
body = send_request('StopPublishStream', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = StopPublishStreamResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
128
176
|
# 切换游戏存档
|
129
177
|
|
130
178
|
# @param request: Request instance for SwitchGameArchive.
|
data/lib/v20191118/models.rb
CHANGED
@@ -205,6 +205,42 @@ module TencentCloud
|
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
208
|
+
# StartPublishStream请求参数结构体
|
209
|
+
class StartPublishStreamRequest < TencentCloud::Common::AbstractModel
|
210
|
+
# @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
|
211
|
+
# @type UserId: String
|
212
|
+
# @param PublishUrl: 推流地址,仅支持rtmp协议
|
213
|
+
# @type PublishUrl: String
|
214
|
+
|
215
|
+
attr_accessor :UserId, :PublishUrl
|
216
|
+
|
217
|
+
def initialize(userid=nil, publishurl=nil)
|
218
|
+
@UserId = userid
|
219
|
+
@PublishUrl = publishurl
|
220
|
+
end
|
221
|
+
|
222
|
+
def deserialize(params)
|
223
|
+
@UserId = params['UserId']
|
224
|
+
@PublishUrl = params['PublishUrl']
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
# StartPublishStream返回参数结构体
|
229
|
+
class StartPublishStreamResponse < TencentCloud::Common::AbstractModel
|
230
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
231
|
+
# @type RequestId: String
|
232
|
+
|
233
|
+
attr_accessor :RequestId
|
234
|
+
|
235
|
+
def initialize(requestid=nil)
|
236
|
+
@RequestId = requestid
|
237
|
+
end
|
238
|
+
|
239
|
+
def deserialize(params)
|
240
|
+
@RequestId = params['RequestId']
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
208
244
|
# StopGame请求参数结构体
|
209
245
|
class StopGameRequest < TencentCloud::Common::AbstractModel
|
210
246
|
# @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
|
@@ -241,6 +277,38 @@ module TencentCloud
|
|
241
277
|
end
|
242
278
|
end
|
243
279
|
|
280
|
+
# StopPublishStream请求参数结构体
|
281
|
+
class StopPublishStreamRequest < TencentCloud::Common::AbstractModel
|
282
|
+
# @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
|
283
|
+
# @type UserId: String
|
284
|
+
|
285
|
+
attr_accessor :UserId
|
286
|
+
|
287
|
+
def initialize(userid=nil)
|
288
|
+
@UserId = userid
|
289
|
+
end
|
290
|
+
|
291
|
+
def deserialize(params)
|
292
|
+
@UserId = params['UserId']
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
# StopPublishStream返回参数结构体
|
297
|
+
class StopPublishStreamResponse < TencentCloud::Common::AbstractModel
|
298
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
299
|
+
# @type RequestId: String
|
300
|
+
|
301
|
+
attr_accessor :RequestId
|
302
|
+
|
303
|
+
def initialize(requestid=nil)
|
304
|
+
@RequestId = requestid
|
305
|
+
end
|
306
|
+
|
307
|
+
def deserialize(params)
|
308
|
+
@RequestId = params['RequestId']
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
244
312
|
# SwitchGameArchive请求参数结构体
|
245
313
|
class SwitchGameArchiveRequest < TencentCloud::Common::AbstractModel
|
246
314
|
# @param UserId: 游戏用户ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-gs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.239
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|