tencentcloud-sdk-bizlive 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-bizlive.rb +11 -0
- data/lib/v20190313/client.rb +180 -0
- data/lib/v20190313/models.rb +364 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bab9f9295e0ea0db9b1540b07602e8dfce06c658
|
4
|
+
data.tar.gz: 997d36b723af497e26fe076887c8dcd819555a8f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 10aeddf8f5516f06ede3432bb35fbb335d0fc1e6d9255995cab4a282ab44efe66b786fc21dfed864fe08ede03a7c70369ff0279fc451a321594e7b5b6fe9a58c
|
7
|
+
data.tar.gz: bac9ff9e1700626dc9cb0cd1ce1e38646c2597312f7198b64ca4923b5e7c671ebb81855558ade565df8efa6d11ee2ce8979a1596c4d6b33a058ee0ea0e665daa
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,180 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 Bizlive
|
21
|
+
module V20190313
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2019-03-13'
|
26
|
+
api_endpoint = 'bizlive.tencentcloudapi.com'
|
27
|
+
sdk_version = 'BIZLIVE_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 创建会话
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateSession.
|
35
|
+
# @type request: :class:`Tencentcloud::bizlive::V20190313::CreateSessionRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::bizlive::V20190313::CreateSessionResponse`
|
37
|
+
def CreateSession(request)
|
38
|
+
body = send_request('CreateSession', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateSessionResponse.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
|
+
|
58
|
+
# @param request: Request instance for DescribeStreamPlayInfoList.
|
59
|
+
# @type request: :class:`Tencentcloud::bizlive::V20190313::DescribeStreamPlayInfoListRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::bizlive::V20190313::DescribeStreamPlayInfoListResponse`
|
61
|
+
def DescribeStreamPlayInfoList(request)
|
62
|
+
body = send_request('DescribeStreamPlayInfoList', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeStreamPlayInfoListResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
# 查询空闲机器数量
|
81
|
+
|
82
|
+
# @param request: Request instance for DescribeWorkers.
|
83
|
+
# @type request: :class:`Tencentcloud::bizlive::V20190313::DescribeWorkersRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::bizlive::V20190313::DescribeWorkersResponse`
|
85
|
+
def DescribeWorkers(request)
|
86
|
+
body = send_request('DescribeWorkers', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DescribeWorkersResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
104
|
+
# 禁止某条流的推送,可以预设某个时刻将流恢复。
|
105
|
+
|
106
|
+
# @param request: Request instance for ForbidLiveStream.
|
107
|
+
# @type request: :class:`Tencentcloud::bizlive::V20190313::ForbidLiveStreamRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::bizlive::V20190313::ForbidLiveStreamResponse`
|
109
|
+
def ForbidLiveStream(request)
|
110
|
+
body = send_request('ForbidLiveStream', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = ForbidLiveStreamResponse.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
|
+
|
130
|
+
# @param request: Request instance for RegisterIM.
|
131
|
+
# @type request: :class:`Tencentcloud::bizlive::V20190313::RegisterIMRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::bizlive::V20190313::RegisterIMResponse`
|
133
|
+
def RegisterIM(request)
|
134
|
+
body = send_request('RegisterIM', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = RegisterIMResponse.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
|
+
|
152
|
+
# 强制退出游戏
|
153
|
+
|
154
|
+
# @param request: Request instance for StopGame.
|
155
|
+
# @type request: :class:`Tencentcloud::bizlive::V20190313::StopGameRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::bizlive::V20190313::StopGameResponse`
|
157
|
+
def StopGame(request)
|
158
|
+
body = send_request('StopGame', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = StopGameResponse.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
|
+
|
176
|
+
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
@@ -0,0 +1,364 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 Bizlive
|
19
|
+
module V20190313
|
20
|
+
# CreateSession请求参数结构体
|
21
|
+
class CreateSessionRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param ClientSession: 客户端session信息,从JSSDK请求中获得
|
23
|
+
# @type ClientSession: String
|
24
|
+
# @param GameId: 游戏ID
|
25
|
+
# @type GameId: String
|
26
|
+
# @param UserId: 游戏用户ID
|
27
|
+
# @type UserId: String
|
28
|
+
# @param GameParas: 游戏参数
|
29
|
+
# @type GameParas: String
|
30
|
+
# @param GameRegion: 游戏区域
|
31
|
+
# @type GameRegion: String
|
32
|
+
# @param ImageUrl: 背景图url
|
33
|
+
# @type ImageUrl: String
|
34
|
+
# @param Resolution: 分辨率
|
35
|
+
# @type Resolution: String
|
36
|
+
|
37
|
+
attr_accessor :ClientSession, :GameId, :UserId, :GameParas, :GameRegion, :ImageUrl, :Resolution
|
38
|
+
|
39
|
+
def initialize(clientsession=nil, gameid=nil, userid=nil, gameparas=nil, gameregion=nil, imageurl=nil, resolution=nil)
|
40
|
+
@ClientSession = clientsession
|
41
|
+
@GameId = gameid
|
42
|
+
@UserId = userid
|
43
|
+
@GameParas = gameparas
|
44
|
+
@GameRegion = gameregion
|
45
|
+
@ImageUrl = imageurl
|
46
|
+
@Resolution = resolution
|
47
|
+
end
|
48
|
+
|
49
|
+
def deserialize(params)
|
50
|
+
@ClientSession = params['ClientSession']
|
51
|
+
@GameId = params['GameId']
|
52
|
+
@UserId = params['UserId']
|
53
|
+
@GameParas = params['GameParas']
|
54
|
+
@GameRegion = params['GameRegion']
|
55
|
+
@ImageUrl = params['ImageUrl']
|
56
|
+
@Resolution = params['Resolution']
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# CreateSession返回参数结构体
|
61
|
+
class CreateSessionResponse < TencentCloud::Common::AbstractModel
|
62
|
+
# @param ServerSession: 服务端session信息,返回给JSSDK
|
63
|
+
# @type ServerSession: String
|
64
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
65
|
+
# @type RequestId: String
|
66
|
+
|
67
|
+
attr_accessor :ServerSession, :RequestId
|
68
|
+
|
69
|
+
def initialize(serversession=nil, requestid=nil)
|
70
|
+
@ServerSession = serversession
|
71
|
+
@RequestId = requestid
|
72
|
+
end
|
73
|
+
|
74
|
+
def deserialize(params)
|
75
|
+
@ServerSession = params['ServerSession']
|
76
|
+
@RequestId = params['RequestId']
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# 流播放信息
|
81
|
+
class DayStreamPlayInfo < TencentCloud::Common::AbstractModel
|
82
|
+
# @param Bandwidth: 带宽(单位Mbps)。
|
83
|
+
# @type Bandwidth: Float
|
84
|
+
# @param Flux: 流量 (单位MB)。
|
85
|
+
# @type Flux: Float
|
86
|
+
# @param Online: 在线人数。
|
87
|
+
# @type Online: Integer
|
88
|
+
# @param Request: 请求数。
|
89
|
+
# @type Request: Integer
|
90
|
+
# @param Time: 数据时间点,格式:yyyy-mm-dd HH:MM:SS。
|
91
|
+
# @type Time: String
|
92
|
+
|
93
|
+
attr_accessor :Bandwidth, :Flux, :Online, :Request, :Time
|
94
|
+
|
95
|
+
def initialize(bandwidth=nil, flux=nil, online=nil, request=nil, time=nil)
|
96
|
+
@Bandwidth = bandwidth
|
97
|
+
@Flux = flux
|
98
|
+
@Online = online
|
99
|
+
@Request = request
|
100
|
+
@Time = time
|
101
|
+
end
|
102
|
+
|
103
|
+
def deserialize(params)
|
104
|
+
@Bandwidth = params['Bandwidth']
|
105
|
+
@Flux = params['Flux']
|
106
|
+
@Online = params['Online']
|
107
|
+
@Request = params['Request']
|
108
|
+
@Time = params['Time']
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# DescribeStreamPlayInfoList请求参数结构体
|
113
|
+
class DescribeStreamPlayInfoListRequest < TencentCloud::Common::AbstractModel
|
114
|
+
# @param EndTime: 结束时间,北京时间,格式:2019-04-28 10:36:00
|
115
|
+
# 结束时间 和 开始时间 必须在同一天内。
|
116
|
+
# @type EndTime: String
|
117
|
+
# @param PlayDomain: 播放域名。
|
118
|
+
# @type PlayDomain: String
|
119
|
+
# @param StartTime: 开始时间,北京时间,格式:2019-04-28 10:36:00
|
120
|
+
# 当前时间 和 开始时间 间隔不超过30天。
|
121
|
+
# @type StartTime: String
|
122
|
+
# @param StreamName: 流名称,精确匹配。
|
123
|
+
# 若不填,则为查询总体播放数据。
|
124
|
+
# @type StreamName: String
|
125
|
+
|
126
|
+
attr_accessor :EndTime, :PlayDomain, :StartTime, :StreamName
|
127
|
+
|
128
|
+
def initialize(endtime=nil, playdomain=nil, starttime=nil, streamname=nil)
|
129
|
+
@EndTime = endtime
|
130
|
+
@PlayDomain = playdomain
|
131
|
+
@StartTime = starttime
|
132
|
+
@StreamName = streamname
|
133
|
+
end
|
134
|
+
|
135
|
+
def deserialize(params)
|
136
|
+
@EndTime = params['EndTime']
|
137
|
+
@PlayDomain = params['PlayDomain']
|
138
|
+
@StartTime = params['StartTime']
|
139
|
+
@StreamName = params['StreamName']
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# DescribeStreamPlayInfoList返回参数结构体
|
144
|
+
class DescribeStreamPlayInfoListResponse < TencentCloud::Common::AbstractModel
|
145
|
+
# @param DataInfoList: 统计信息列表。
|
146
|
+
# @type DataInfoList: Array
|
147
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
148
|
+
# @type RequestId: String
|
149
|
+
|
150
|
+
attr_accessor :DataInfoList, :RequestId
|
151
|
+
|
152
|
+
def initialize(datainfolist=nil, requestid=nil)
|
153
|
+
@DataInfoList = datainfolist
|
154
|
+
@RequestId = requestid
|
155
|
+
end
|
156
|
+
|
157
|
+
def deserialize(params)
|
158
|
+
unless params['DataInfoList'].nil?
|
159
|
+
@DataInfoList = []
|
160
|
+
params['DataInfoList'].each do |i|
|
161
|
+
daystreamplayinfo_tmp = DayStreamPlayInfo.new
|
162
|
+
daystreamplayinfo_tmp.deserialize(i)
|
163
|
+
@DataInfoList << daystreamplayinfo_tmp
|
164
|
+
end
|
165
|
+
end
|
166
|
+
@RequestId = params['RequestId']
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# DescribeWorkers请求参数结构体
|
171
|
+
class DescribeWorkersRequest < TencentCloud::Common::AbstractModel
|
172
|
+
|
173
|
+
|
174
|
+
def initialize()
|
175
|
+
end
|
176
|
+
|
177
|
+
def deserialize(params)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# DescribeWorkers返回参数结构体
|
182
|
+
class DescribeWorkersResponse < TencentCloud::Common::AbstractModel
|
183
|
+
# @param RegionDetail: 各个区域的机器情况
|
184
|
+
# @type RegionDetail: Array
|
185
|
+
# @param Idle: 空闲机器总数量
|
186
|
+
# @type Idle: Integer
|
187
|
+
# @param RegionNum: 区域个数
|
188
|
+
# @type RegionNum: Integer
|
189
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
190
|
+
# @type RequestId: String
|
191
|
+
|
192
|
+
attr_accessor :RegionDetail, :Idle, :RegionNum, :RequestId
|
193
|
+
|
194
|
+
def initialize(regiondetail=nil, idle=nil, regionnum=nil, requestid=nil)
|
195
|
+
@RegionDetail = regiondetail
|
196
|
+
@Idle = idle
|
197
|
+
@RegionNum = regionnum
|
198
|
+
@RequestId = requestid
|
199
|
+
end
|
200
|
+
|
201
|
+
def deserialize(params)
|
202
|
+
unless params['RegionDetail'].nil?
|
203
|
+
@RegionDetail = []
|
204
|
+
params['RegionDetail'].each do |i|
|
205
|
+
workerregioninfo_tmp = WorkerRegionInfo.new
|
206
|
+
workerregioninfo_tmp.deserialize(i)
|
207
|
+
@RegionDetail << workerregioninfo_tmp
|
208
|
+
end
|
209
|
+
end
|
210
|
+
@Idle = params['Idle']
|
211
|
+
@RegionNum = params['RegionNum']
|
212
|
+
@RequestId = params['RequestId']
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
# ForbidLiveStream请求参数结构体
|
217
|
+
class ForbidLiveStreamRequest < TencentCloud::Common::AbstractModel
|
218
|
+
# @param AppName: 应用名称。
|
219
|
+
# @type AppName: String
|
220
|
+
# @param DomainName: 您的推流域名。
|
221
|
+
# @type DomainName: String
|
222
|
+
# @param StreamName: 流名称。
|
223
|
+
# @type StreamName: String
|
224
|
+
# @param ResumeTime: 恢复流的时间。UTC 格式,例如:2018-11-29T19:00:00Z。
|
225
|
+
# 注意:默认禁播90天,且最长支持禁播90天。
|
226
|
+
# @type ResumeTime: String
|
227
|
+
|
228
|
+
attr_accessor :AppName, :DomainName, :StreamName, :ResumeTime
|
229
|
+
|
230
|
+
def initialize(appname=nil, domainname=nil, streamname=nil, resumetime=nil)
|
231
|
+
@AppName = appname
|
232
|
+
@DomainName = domainname
|
233
|
+
@StreamName = streamname
|
234
|
+
@ResumeTime = resumetime
|
235
|
+
end
|
236
|
+
|
237
|
+
def deserialize(params)
|
238
|
+
@AppName = params['AppName']
|
239
|
+
@DomainName = params['DomainName']
|
240
|
+
@StreamName = params['StreamName']
|
241
|
+
@ResumeTime = params['ResumeTime']
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# ForbidLiveStream返回参数结构体
|
246
|
+
class ForbidLiveStreamResponse < TencentCloud::Common::AbstractModel
|
247
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
248
|
+
# @type RequestId: String
|
249
|
+
|
250
|
+
attr_accessor :RequestId
|
251
|
+
|
252
|
+
def initialize(requestid=nil)
|
253
|
+
@RequestId = requestid
|
254
|
+
end
|
255
|
+
|
256
|
+
def deserialize(params)
|
257
|
+
@RequestId = params['RequestId']
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# RegisterIM请求参数结构体
|
262
|
+
class RegisterIMRequest < TencentCloud::Common::AbstractModel
|
263
|
+
# @param Nickname: 用户昵称
|
264
|
+
# @type Nickname: String
|
265
|
+
# @param UserId: 用户唯一ID,建议采用用户小程序OpenID加盐形式
|
266
|
+
# @type UserId: String
|
267
|
+
# @param HeadImgUrl: 用户头像URL
|
268
|
+
# @type HeadImgUrl: String
|
269
|
+
# @param Level: 用户身份,默认值:0,表示无特殊身份
|
270
|
+
# @type Level: Integer
|
271
|
+
|
272
|
+
attr_accessor :Nickname, :UserId, :HeadImgUrl, :Level
|
273
|
+
|
274
|
+
def initialize(nickname=nil, userid=nil, headimgurl=nil, level=nil)
|
275
|
+
@Nickname = nickname
|
276
|
+
@UserId = userid
|
277
|
+
@HeadImgUrl = headimgurl
|
278
|
+
@Level = level
|
279
|
+
end
|
280
|
+
|
281
|
+
def deserialize(params)
|
282
|
+
@Nickname = params['Nickname']
|
283
|
+
@UserId = params['UserId']
|
284
|
+
@HeadImgUrl = params['HeadImgUrl']
|
285
|
+
@Level = params['Level']
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# RegisterIM返回参数结构体
|
290
|
+
class RegisterIMResponse < TencentCloud::Common::AbstractModel
|
291
|
+
# @param UserKey: 用来传递给插件的关键字段
|
292
|
+
# @type UserKey: String
|
293
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
294
|
+
# @type RequestId: String
|
295
|
+
|
296
|
+
attr_accessor :UserKey, :RequestId
|
297
|
+
|
298
|
+
def initialize(userkey=nil, requestid=nil)
|
299
|
+
@UserKey = userkey
|
300
|
+
@RequestId = requestid
|
301
|
+
end
|
302
|
+
|
303
|
+
def deserialize(params)
|
304
|
+
@UserKey = params['UserKey']
|
305
|
+
@RequestId = params['RequestId']
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
# StopGame请求参数结构体
|
310
|
+
class StopGameRequest < TencentCloud::Common::AbstractModel
|
311
|
+
# @param UserId: 游戏用户ID
|
312
|
+
# @type UserId: String
|
313
|
+
|
314
|
+
attr_accessor :UserId
|
315
|
+
|
316
|
+
def initialize(userid=nil)
|
317
|
+
@UserId = userid
|
318
|
+
end
|
319
|
+
|
320
|
+
def deserialize(params)
|
321
|
+
@UserId = params['UserId']
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
# StopGame返回参数结构体
|
326
|
+
class StopGameResponse < TencentCloud::Common::AbstractModel
|
327
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
328
|
+
# @type RequestId: String
|
329
|
+
|
330
|
+
attr_accessor :RequestId
|
331
|
+
|
332
|
+
def initialize(requestid=nil)
|
333
|
+
@RequestId = requestid
|
334
|
+
end
|
335
|
+
|
336
|
+
def deserialize(params)
|
337
|
+
@RequestId = params['RequestId']
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
# worker的区域信息
|
342
|
+
class WorkerRegionInfo < TencentCloud::Common::AbstractModel
|
343
|
+
# @param Idle: 该区域空闲机器数量
|
344
|
+
# @type Idle: Integer
|
345
|
+
# @param Region: 区域
|
346
|
+
# @type Region: String
|
347
|
+
|
348
|
+
attr_accessor :Idle, :Region
|
349
|
+
|
350
|
+
def initialize(idle=nil, region=nil)
|
351
|
+
@Idle = idle
|
352
|
+
@Region = region
|
353
|
+
end
|
354
|
+
|
355
|
+
def deserialize(params)
|
356
|
+
@Idle = params['Idle']
|
357
|
+
@Region = params['Region']
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
361
|
+
end
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-bizlive
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.200
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tencentcloud-sdk-common
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
description: Tencent Cloud Ruby SDK is the official software development kit, which
|
28
|
+
allows Ruby developers to write software that makes use of Tencent Cloud service
|
29
|
+
BIZLIVE.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-bizlive.rb
|
38
|
+
- lib/v20190313/client.rb
|
39
|
+
- lib/v20190313/models.rb
|
40
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
|
+
licenses:
|
42
|
+
- Apache-2.0
|
43
|
+
metadata:
|
44
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-bizlive
|
45
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.6.14
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Tencent Cloud SDK for Ruby - BIZLIVE
|
66
|
+
test_files: []
|