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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fe84bd77ab5a0619def61d839fb08bb99066884
4
- data.tar.gz: 81a1226d66e3cc99bd9ee2e533d34fee0b63bcb5
3
+ metadata.gz: 3bc65528634064d7f6cdf5b4f19082cad3484511
4
+ data.tar.gz: 7e3674025dffc0c3da603152a17944829fcc2bb6
5
5
  SHA512:
6
- metadata.gz: a6dbaef7ac3a0283e1fb79a97e0c348198f933c473497c9731e7c1d26af52bf1010e5f6c5a5a171f3816f24155a371c46288a900ef3082c5fa4e661749659318
7
- data.tar.gz: f6d8d96b0ae8ffaa0819478bf6f2f38b91f8e737711e5c77a0bc156719765cd34b81c8d492ef3b4a2d01086bbe9111cdb916af403035629d2664a656ee36eec7
6
+ metadata.gz: c08a02aa8cc455ec5a2c5775f0ef20e3ef59cd21a8dcf97e36f9c76bfc9f89078cd3b96ed4bf045e29e3cc227f354061ea6537c61de40d9c02f2a687fc3aa35e
7
+ data.tar.gz: 74e0da48c813f46eac8608d10f1fe742f5d11ceb2c864d7d14d6f3da8f8b18324eddd276fc787cd9b8b72ae936550c0991cf370bcd451e604a93c6288147397a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.799
1
+ 3.0.800
@@ -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.
@@ -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不变)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.799
4
+ version: 3.0.800
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud