tencentcloud-sdk-gs 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-gs.rb +11 -0
- data/lib/v20191118/client.rb +180 -0
- data/lib/v20191118/models.rb +343 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 83587c6f5f98a4394419bbdf1878e8e86ffd44ca
|
4
|
+
data.tar.gz: 541b0cb414214005ec2270131725103e7f539c1d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c41f8c030071e2f1a39031b93830f0b593f8b31fc64d9e37701ef92a4a050ebeee1a9a96259347b6aed06bcbcca2958464498a7add46053f761df23c78d99bfb
|
7
|
+
data.tar.gz: 0012aa4c95b371c4bfeaefedcf5a4cdd3de4f45d1873e209b06065f8f6b269bde9cb4cf679a51173c8d968e838cc9eb1a90d56cffbbad7a53cd41cc182fb5238
|
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 Gs
|
21
|
+
module V20191118
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2019-11-18'
|
26
|
+
api_endpoint = 'gs.tencentcloudapi.com'
|
27
|
+
sdk_version = 'GS_' + 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::gs::V20191118::CreateSessionRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::gs::V20191118::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 DescribeInstancesCount.
|
59
|
+
# @type request: :class:`Tencentcloud::gs::V20191118::DescribeInstancesCountRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::gs::V20191118::DescribeInstancesCountResponse`
|
61
|
+
def DescribeInstancesCount(request)
|
62
|
+
body = send_request('DescribeInstancesCount', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeInstancesCountResponse.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 SaveGameArchive.
|
83
|
+
# @type request: :class:`Tencentcloud::gs::V20191118::SaveGameArchiveRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::gs::V20191118::SaveGameArchiveResponse`
|
85
|
+
def SaveGameArchive(request)
|
86
|
+
body = send_request('SaveGameArchive', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = SaveGameArchiveResponse.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 StopGame.
|
107
|
+
# @type request: :class:`Tencentcloud::gs::V20191118::StopGameRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::gs::V20191118::StopGameResponse`
|
109
|
+
def StopGame(request)
|
110
|
+
body = send_request('StopGame', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = StopGameResponse.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 SwitchGameArchive.
|
131
|
+
# @type request: :class:`Tencentcloud::gs::V20191118::SwitchGameArchiveRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::gs::V20191118::SwitchGameArchiveResponse`
|
133
|
+
def SwitchGameArchive(request)
|
134
|
+
body = send_request('SwitchGameArchive', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = SwitchGameArchiveResponse.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 TrylockWorker.
|
155
|
+
# @type request: :class:`Tencentcloud::gs::V20191118::TrylockWorkerRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::gs::V20191118::TrylockWorkerResponse`
|
157
|
+
def TrylockWorker(request)
|
158
|
+
body = send_request('TrylockWorker', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = TrylockWorkerResponse.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,343 @@
|
|
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 Gs
|
19
|
+
module V20191118
|
20
|
+
# CreateSession请求参数结构体
|
21
|
+
class CreateSessionRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param ClientSession: 客户端session信息,从JSSDK请求中获得
|
23
|
+
# @type ClientSession: String
|
24
|
+
# @param UserId: 游戏用户ID
|
25
|
+
# @type UserId: String
|
26
|
+
# @param GameId: 游戏ID
|
27
|
+
# @type GameId: String
|
28
|
+
# @param GameRegion: 【已废弃】只在TrylockWorker时生效
|
29
|
+
# @type GameRegion: String
|
30
|
+
# @param GameParas: 游戏参数
|
31
|
+
# @type GameParas: String
|
32
|
+
# @param Resolution: 分辨率,,可设置为1080p或720p或1920x1080格式
|
33
|
+
# @type Resolution: String
|
34
|
+
# @param ImageUrl: 背景图url,格式为png或jpeg,宽高1920*1080
|
35
|
+
# @type ImageUrl: String
|
36
|
+
# @param SetNo: 【已废弃】
|
37
|
+
# @type SetNo: Integer
|
38
|
+
# @param Bitrate: 单位Mbps,固定码率建议值,有一定浮动范围,后端不动态调整(MaxBitrate和MinBitrate将无效)
|
39
|
+
# @type Bitrate: Integer
|
40
|
+
# @param MaxBitrate: 单位Mbps,动态调整最大码率建议值,会按实际情况调整
|
41
|
+
# @type MaxBitrate: Integer
|
42
|
+
# @param MinBitrate: 单位Mbps,动态调整最小码率建议值,会按实际情况调整
|
43
|
+
# @type MinBitrate: Integer
|
44
|
+
# @param Fps: 帧率,可设置为30、45、60、90、120、144
|
45
|
+
# @type Fps: Integer
|
46
|
+
# @param UserIp: 【已废弃】只在TrylockWorker时生效
|
47
|
+
# @type UserIp: String
|
48
|
+
# @param Optimization: 【已废弃】优化项,便于客户灰度开启新的优化项,默认为0
|
49
|
+
# @type Optimization: Integer
|
50
|
+
# @param HostUserId: 【互动云游】游戏主机用户ID
|
51
|
+
# @type HostUserId: String
|
52
|
+
# @param Role: 【互动云游】角色;Player表示玩家;Viewer表示观察者
|
53
|
+
# @type Role: String
|
54
|
+
# @param GameContext: 游戏相关参数
|
55
|
+
# @type GameContext: String
|
56
|
+
|
57
|
+
attr_accessor :ClientSession, :UserId, :GameId, :GameRegion, :GameParas, :Resolution, :ImageUrl, :SetNo, :Bitrate, :MaxBitrate, :MinBitrate, :Fps, :UserIp, :Optimization, :HostUserId, :Role, :GameContext
|
58
|
+
|
59
|
+
def initialize(clientsession=nil, userid=nil, gameid=nil, gameregion=nil, gameparas=nil, resolution=nil, imageurl=nil, setno=nil, bitrate=nil, maxbitrate=nil, minbitrate=nil, fps=nil, userip=nil, optimization=nil, hostuserid=nil, role=nil, gamecontext=nil)
|
60
|
+
@ClientSession = clientsession
|
61
|
+
@UserId = userid
|
62
|
+
@GameId = gameid
|
63
|
+
@GameRegion = gameregion
|
64
|
+
@GameParas = gameparas
|
65
|
+
@Resolution = resolution
|
66
|
+
@ImageUrl = imageurl
|
67
|
+
@SetNo = setno
|
68
|
+
@Bitrate = bitrate
|
69
|
+
@MaxBitrate = maxbitrate
|
70
|
+
@MinBitrate = minbitrate
|
71
|
+
@Fps = fps
|
72
|
+
@UserIp = userip
|
73
|
+
@Optimization = optimization
|
74
|
+
@HostUserId = hostuserid
|
75
|
+
@Role = role
|
76
|
+
@GameContext = gamecontext
|
77
|
+
end
|
78
|
+
|
79
|
+
def deserialize(params)
|
80
|
+
@ClientSession = params['ClientSession']
|
81
|
+
@UserId = params['UserId']
|
82
|
+
@GameId = params['GameId']
|
83
|
+
@GameRegion = params['GameRegion']
|
84
|
+
@GameParas = params['GameParas']
|
85
|
+
@Resolution = params['Resolution']
|
86
|
+
@ImageUrl = params['ImageUrl']
|
87
|
+
@SetNo = params['SetNo']
|
88
|
+
@Bitrate = params['Bitrate']
|
89
|
+
@MaxBitrate = params['MaxBitrate']
|
90
|
+
@MinBitrate = params['MinBitrate']
|
91
|
+
@Fps = params['Fps']
|
92
|
+
@UserIp = params['UserIp']
|
93
|
+
@Optimization = params['Optimization']
|
94
|
+
@HostUserId = params['HostUserId']
|
95
|
+
@Role = params['Role']
|
96
|
+
@GameContext = params['GameContext']
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# CreateSession返回参数结构体
|
101
|
+
class CreateSessionResponse < TencentCloud::Common::AbstractModel
|
102
|
+
# @param ServerSession: 服务端session信息,返回给JSSDK
|
103
|
+
# @type ServerSession: String
|
104
|
+
# @param RoleNumber: 【已废弃】
|
105
|
+
# @type RoleNumber: String
|
106
|
+
# @param Role: 【互动云游】角色;Player表示玩家;Viewer表示观察者
|
107
|
+
# @type Role: String
|
108
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
109
|
+
# @type RequestId: String
|
110
|
+
|
111
|
+
attr_accessor :ServerSession, :RoleNumber, :Role, :RequestId
|
112
|
+
|
113
|
+
def initialize(serversession=nil, rolenumber=nil, role=nil, requestid=nil)
|
114
|
+
@ServerSession = serversession
|
115
|
+
@RoleNumber = rolenumber
|
116
|
+
@Role = role
|
117
|
+
@RequestId = requestid
|
118
|
+
end
|
119
|
+
|
120
|
+
def deserialize(params)
|
121
|
+
@ServerSession = params['ServerSession']
|
122
|
+
@RoleNumber = params['RoleNumber']
|
123
|
+
@Role = params['Role']
|
124
|
+
@RequestId = params['RequestId']
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# DescribeInstancesCount请求参数结构体
|
129
|
+
class DescribeInstancesCountRequest < TencentCloud::Common::AbstractModel
|
130
|
+
# @param GameId: 游戏ID
|
131
|
+
# @type GameId: String
|
132
|
+
# @param GroupId: 实例分组ID
|
133
|
+
# @type GroupId: String
|
134
|
+
|
135
|
+
attr_accessor :GameId, :GroupId
|
136
|
+
|
137
|
+
def initialize(gameid=nil, groupid=nil)
|
138
|
+
@GameId = gameid
|
139
|
+
@GroupId = groupid
|
140
|
+
end
|
141
|
+
|
142
|
+
def deserialize(params)
|
143
|
+
@GameId = params['GameId']
|
144
|
+
@GroupId = params['GroupId']
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
# DescribeInstancesCount返回参数结构体
|
149
|
+
class DescribeInstancesCountResponse < TencentCloud::Common::AbstractModel
|
150
|
+
# @param Total: 客户的实例总数
|
151
|
+
# @type Total: Integer
|
152
|
+
# @param Running: 客户的实例运行数
|
153
|
+
# @type Running: Integer
|
154
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
155
|
+
# @type RequestId: String
|
156
|
+
|
157
|
+
attr_accessor :Total, :Running, :RequestId
|
158
|
+
|
159
|
+
def initialize(total=nil, running=nil, requestid=nil)
|
160
|
+
@Total = total
|
161
|
+
@Running = running
|
162
|
+
@RequestId = requestid
|
163
|
+
end
|
164
|
+
|
165
|
+
def deserialize(params)
|
166
|
+
@Total = params['Total']
|
167
|
+
@Running = params['Running']
|
168
|
+
@RequestId = params['RequestId']
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# SaveGameArchive请求参数结构体
|
173
|
+
class SaveGameArchiveRequest < TencentCloud::Common::AbstractModel
|
174
|
+
# @param UserId: 游戏用户ID
|
175
|
+
# @type UserId: String
|
176
|
+
# @param GameId: 游戏ID
|
177
|
+
# @type GameId: String
|
178
|
+
|
179
|
+
attr_accessor :UserId, :GameId
|
180
|
+
|
181
|
+
def initialize(userid=nil, gameid=nil)
|
182
|
+
@UserId = userid
|
183
|
+
@GameId = gameid
|
184
|
+
end
|
185
|
+
|
186
|
+
def deserialize(params)
|
187
|
+
@UserId = params['UserId']
|
188
|
+
@GameId = params['GameId']
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# SaveGameArchive返回参数结构体
|
193
|
+
class SaveGameArchiveResponse < TencentCloud::Common::AbstractModel
|
194
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
195
|
+
# @type RequestId: String
|
196
|
+
|
197
|
+
attr_accessor :RequestId
|
198
|
+
|
199
|
+
def initialize(requestid=nil)
|
200
|
+
@RequestId = requestid
|
201
|
+
end
|
202
|
+
|
203
|
+
def deserialize(params)
|
204
|
+
@RequestId = params['RequestId']
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# StopGame请求参数结构体
|
209
|
+
class StopGameRequest < TencentCloud::Common::AbstractModel
|
210
|
+
# @param UserId: 游戏用户ID
|
211
|
+
# @type UserId: String
|
212
|
+
# @param HostUserId: 【多人游戏】游戏主机用户ID
|
213
|
+
# @type HostUserId: String
|
214
|
+
|
215
|
+
attr_accessor :UserId, :HostUserId
|
216
|
+
|
217
|
+
def initialize(userid=nil, hostuserid=nil)
|
218
|
+
@UserId = userid
|
219
|
+
@HostUserId = hostuserid
|
220
|
+
end
|
221
|
+
|
222
|
+
def deserialize(params)
|
223
|
+
@UserId = params['UserId']
|
224
|
+
@HostUserId = params['HostUserId']
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
# StopGame返回参数结构体
|
229
|
+
class StopGameResponse < 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
|
+
|
244
|
+
# SwitchGameArchive请求参数结构体
|
245
|
+
class SwitchGameArchiveRequest < TencentCloud::Common::AbstractModel
|
246
|
+
# @param UserId: 游戏用户ID
|
247
|
+
# @type UserId: String
|
248
|
+
# @param GameId: 游戏ID
|
249
|
+
# @type GameId: String
|
250
|
+
# @param GameArchiveUrl: 游戏存档Url
|
251
|
+
# @type GameArchiveUrl: String
|
252
|
+
# @param GameContext: 游戏相关参数
|
253
|
+
# @type GameContext: String
|
254
|
+
|
255
|
+
attr_accessor :UserId, :GameId, :GameArchiveUrl, :GameContext
|
256
|
+
|
257
|
+
def initialize(userid=nil, gameid=nil, gamearchiveurl=nil, gamecontext=nil)
|
258
|
+
@UserId = userid
|
259
|
+
@GameId = gameid
|
260
|
+
@GameArchiveUrl = gamearchiveurl
|
261
|
+
@GameContext = gamecontext
|
262
|
+
end
|
263
|
+
|
264
|
+
def deserialize(params)
|
265
|
+
@UserId = params['UserId']
|
266
|
+
@GameId = params['GameId']
|
267
|
+
@GameArchiveUrl = params['GameArchiveUrl']
|
268
|
+
@GameContext = params['GameContext']
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# SwitchGameArchive返回参数结构体
|
273
|
+
class SwitchGameArchiveResponse < TencentCloud::Common::AbstractModel
|
274
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
275
|
+
# @type RequestId: String
|
276
|
+
|
277
|
+
attr_accessor :RequestId
|
278
|
+
|
279
|
+
def initialize(requestid=nil)
|
280
|
+
@RequestId = requestid
|
281
|
+
end
|
282
|
+
|
283
|
+
def deserialize(params)
|
284
|
+
@RequestId = params['RequestId']
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# TrylockWorker请求参数结构体
|
289
|
+
class TrylockWorkerRequest < TencentCloud::Common::AbstractModel
|
290
|
+
# @param UserId: 游戏用户ID
|
291
|
+
# @type UserId: String
|
292
|
+
# @param GameId: 游戏ID
|
293
|
+
# @type GameId: String
|
294
|
+
# @param GameRegion: 游戏区域,ap-guangzhou、ap-shanghai、ap-beijing等,如果不为空,优先按照该区域进行调度分配机器
|
295
|
+
# @type GameRegion: String
|
296
|
+
# @param SetNo: 【废弃】资源池编号
|
297
|
+
# @type SetNo: Integer
|
298
|
+
# @param UserIp: 【必选】用户IP,用于就近调度,不填将严重影响用户体验
|
299
|
+
# @type UserIp: String
|
300
|
+
# @param GroupId: 分组ID
|
301
|
+
# @type GroupId: String
|
302
|
+
|
303
|
+
attr_accessor :UserId, :GameId, :GameRegion, :SetNo, :UserIp, :GroupId
|
304
|
+
|
305
|
+
def initialize(userid=nil, gameid=nil, gameregion=nil, setno=nil, userip=nil, groupid=nil)
|
306
|
+
@UserId = userid
|
307
|
+
@GameId = gameid
|
308
|
+
@GameRegion = gameregion
|
309
|
+
@SetNo = setno
|
310
|
+
@UserIp = userip
|
311
|
+
@GroupId = groupid
|
312
|
+
end
|
313
|
+
|
314
|
+
def deserialize(params)
|
315
|
+
@UserId = params['UserId']
|
316
|
+
@GameId = params['GameId']
|
317
|
+
@GameRegion = params['GameRegion']
|
318
|
+
@SetNo = params['SetNo']
|
319
|
+
@UserIp = params['UserIp']
|
320
|
+
@GroupId = params['GroupId']
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
# TrylockWorker返回参数结构体
|
325
|
+
class TrylockWorkerResponse < TencentCloud::Common::AbstractModel
|
326
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
327
|
+
# @type RequestId: String
|
328
|
+
|
329
|
+
attr_accessor :RequestId
|
330
|
+
|
331
|
+
def initialize(requestid=nil)
|
332
|
+
@RequestId = requestid
|
333
|
+
end
|
334
|
+
|
335
|
+
def deserialize(params)
|
336
|
+
@RequestId = params['RequestId']
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
end
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-gs
|
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
|
+
GS.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-gs.rb
|
38
|
+
- lib/v20191118/client.rb
|
39
|
+
- lib/v20191118/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-gs
|
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 - GS
|
66
|
+
test_files: []
|