tencentcloud-sdk-gs 3.0.799 → 3.0.800
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 +24 -0
- data/lib/v20191118/models.rb +36 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bc65528634064d7f6cdf5b4f19082cad3484511
|
4
|
+
data.tar.gz: 7e3674025dffc0c3da603152a17944829fcc2bb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c08a02aa8cc455ec5a2c5775f0ef20e3ef59cd21a8dcf97e36f9c76bfc9f89078cd3b96ed4bf045e29e3cc227f354061ea6537c61de40d9c02f2a687fc3aa35e
|
7
|
+
data.tar.gz: 74e0da48c813f46eac8608d10f1fe742f5d11ceb2c864d7d14d6f3da8f8b18324eddd276fc787cd9b8b72ae936550c0991cf370bcd451e604a93c6288147397a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.800
|
data/lib/v20191118/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 开始云端推流
|
129
|
+
|
130
|
+
# @param request: Request instance for StartPublishStreamToCSS.
|
131
|
+
# @type request: :class:`Tencentcloud::gs::V20191118::StartPublishStreamToCSSRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::gs::V20191118::StartPublishStreamToCSSResponse`
|
133
|
+
def StartPublishStreamToCSS(request)
|
134
|
+
body = send_request('StartPublishStreamToCSS', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = StartPublishStreamToCSSResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
128
152
|
# 强制退出游戏
|
129
153
|
|
130
154
|
# @param request: Request instance for StopGame.
|
data/lib/v20191118/models.rb
CHANGED
@@ -257,6 +257,42 @@ module TencentCloud
|
|
257
257
|
end
|
258
258
|
end
|
259
259
|
|
260
|
+
# StartPublishStreamToCSS请求参数结构体
|
261
|
+
class StartPublishStreamToCSSRequest < TencentCloud::Common::AbstractModel
|
262
|
+
# @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
|
263
|
+
# @type UserId: String
|
264
|
+
# @param PublishStreamArgs: 推流参数,推流时携带自定义参数。
|
265
|
+
# @type PublishStreamArgs: String
|
266
|
+
|
267
|
+
attr_accessor :UserId, :PublishStreamArgs
|
268
|
+
|
269
|
+
def initialize(userid=nil, publishstreamargs=nil)
|
270
|
+
@UserId = userid
|
271
|
+
@PublishStreamArgs = publishstreamargs
|
272
|
+
end
|
273
|
+
|
274
|
+
def deserialize(params)
|
275
|
+
@UserId = params['UserId']
|
276
|
+
@PublishStreamArgs = params['PublishStreamArgs']
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
# StartPublishStreamToCSS返回参数结构体
|
281
|
+
class StartPublishStreamToCSSResponse < TencentCloud::Common::AbstractModel
|
282
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
283
|
+
# @type RequestId: String
|
284
|
+
|
285
|
+
attr_accessor :RequestId
|
286
|
+
|
287
|
+
def initialize(requestid=nil)
|
288
|
+
@RequestId = requestid
|
289
|
+
end
|
290
|
+
|
291
|
+
def deserialize(params)
|
292
|
+
@RequestId = params['RequestId']
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
260
296
|
# StopGame请求参数结构体
|
261
297
|
class StopGameRequest < TencentCloud::Common::AbstractModel
|
262
298
|
# @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
|