tencentcloud-sdk-gpm 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-gpm.rb +11 -0
- data/lib/v20200820/client.rb +468 -0
- data/lib/v20200820/models.rb +1697 -0
- metadata +66 -0
@@ -0,0 +1,1697 @@
|
|
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 Gpm
|
19
|
+
module V20200820
|
20
|
+
# 玩家属性字典类型值
|
21
|
+
class AttributeMap < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Key: 属性字典 key [a-zA-Z0-9-\.]*
|
23
|
+
# @type Key: String
|
24
|
+
# @param Value: 属性字典 value
|
25
|
+
# @type Value: Integer
|
26
|
+
|
27
|
+
attr_accessor :Key, :Value
|
28
|
+
|
29
|
+
def initialize(key=nil, value=nil)
|
30
|
+
@Key = key
|
31
|
+
@Value = value
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@Key = params['Key']
|
36
|
+
@Value = params['Value']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# CancelMatching请求参数结构体
|
41
|
+
class CancelMatchingRequest < TencentCloud::Common::AbstractModel
|
42
|
+
# @param MatchCode: 匹配 Code
|
43
|
+
# @type MatchCode: String
|
44
|
+
# @param MatchTicketId: 要取消的匹配匹配票据 ID
|
45
|
+
# @type MatchTicketId: String
|
46
|
+
|
47
|
+
attr_accessor :MatchCode, :MatchTicketId
|
48
|
+
|
49
|
+
def initialize(matchcode=nil, matchticketid=nil)
|
50
|
+
@MatchCode = matchcode
|
51
|
+
@MatchTicketId = matchticketid
|
52
|
+
end
|
53
|
+
|
54
|
+
def deserialize(params)
|
55
|
+
@MatchCode = params['MatchCode']
|
56
|
+
@MatchTicketId = params['MatchTicketId']
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# CancelMatching返回参数结构体
|
61
|
+
class CancelMatchingResponse < TencentCloud::Common::AbstractModel
|
62
|
+
# @param ErrCode: 错误码
|
63
|
+
# @type ErrCode: Integer
|
64
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
65
|
+
# @type RequestId: String
|
66
|
+
|
67
|
+
attr_accessor :ErrCode, :RequestId
|
68
|
+
|
69
|
+
def initialize(errcode=nil, requestid=nil)
|
70
|
+
@ErrCode = errcode
|
71
|
+
@RequestId = requestid
|
72
|
+
end
|
73
|
+
|
74
|
+
def deserialize(params)
|
75
|
+
@ErrCode = params['ErrCode']
|
76
|
+
@RequestId = params['RequestId']
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# CreateMatch请求参数结构体
|
81
|
+
class CreateMatchRequest < TencentCloud::Common::AbstractModel
|
82
|
+
# @param MatchName: 匹配名称,[a-zA-Z0-9-\.]* 长度128
|
83
|
+
# @type MatchName: String
|
84
|
+
# @param RuleCode: 规则code
|
85
|
+
# @type RuleCode: String
|
86
|
+
# @param Timeout: 超时时间,1-600秒
|
87
|
+
# @type Timeout: Integer
|
88
|
+
# @param ServerType: 是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源
|
89
|
+
# @type ServerType: Integer
|
90
|
+
# @param MatchDesc: 匹配描述,最长1024
|
91
|
+
# @type MatchDesc: String
|
92
|
+
# @param NotifyUrl: 只支持https 和 http 协议
|
93
|
+
# @type NotifyUrl: String
|
94
|
+
# @param ServerRegion: 游戏服务器队列地域
|
95
|
+
# @type ServerRegion: String
|
96
|
+
# @param ServerQueue: 游戏服务器队列
|
97
|
+
# @type ServerQueue: String
|
98
|
+
# @param CustomPushData: 自定义推送数据
|
99
|
+
# @type CustomPushData: String
|
100
|
+
# @param ServerSessionData: 游戏服务器会话数据
|
101
|
+
# @type ServerSessionData: String
|
102
|
+
# @param GameProperties: 游戏属性,key-value结构的数组
|
103
|
+
# @type GameProperties: Array
|
104
|
+
# @param LogSwitch: 日志开关,0表示关,1表示开
|
105
|
+
# @type LogSwitch: Integer
|
106
|
+
# @param Tags: 标签,key-value结构的数组
|
107
|
+
# @type Tags: Array
|
108
|
+
|
109
|
+
attr_accessor :MatchName, :RuleCode, :Timeout, :ServerType, :MatchDesc, :NotifyUrl, :ServerRegion, :ServerQueue, :CustomPushData, :ServerSessionData, :GameProperties, :LogSwitch, :Tags
|
110
|
+
|
111
|
+
def initialize(matchname=nil, rulecode=nil, timeout=nil, servertype=nil, matchdesc=nil, notifyurl=nil, serverregion=nil, serverqueue=nil, custompushdata=nil, serversessiondata=nil, gameproperties=nil, logswitch=nil, tags=nil)
|
112
|
+
@MatchName = matchname
|
113
|
+
@RuleCode = rulecode
|
114
|
+
@Timeout = timeout
|
115
|
+
@ServerType = servertype
|
116
|
+
@MatchDesc = matchdesc
|
117
|
+
@NotifyUrl = notifyurl
|
118
|
+
@ServerRegion = serverregion
|
119
|
+
@ServerQueue = serverqueue
|
120
|
+
@CustomPushData = custompushdata
|
121
|
+
@ServerSessionData = serversessiondata
|
122
|
+
@GameProperties = gameproperties
|
123
|
+
@LogSwitch = logswitch
|
124
|
+
@Tags = tags
|
125
|
+
end
|
126
|
+
|
127
|
+
def deserialize(params)
|
128
|
+
@MatchName = params['MatchName']
|
129
|
+
@RuleCode = params['RuleCode']
|
130
|
+
@Timeout = params['Timeout']
|
131
|
+
@ServerType = params['ServerType']
|
132
|
+
@MatchDesc = params['MatchDesc']
|
133
|
+
@NotifyUrl = params['NotifyUrl']
|
134
|
+
@ServerRegion = params['ServerRegion']
|
135
|
+
@ServerQueue = params['ServerQueue']
|
136
|
+
@CustomPushData = params['CustomPushData']
|
137
|
+
@ServerSessionData = params['ServerSessionData']
|
138
|
+
unless params['GameProperties'].nil?
|
139
|
+
@GameProperties = []
|
140
|
+
params['GameProperties'].each do |i|
|
141
|
+
stringkv_tmp = StringKV.new
|
142
|
+
stringkv_tmp.deserialize(i)
|
143
|
+
@GameProperties << stringkv_tmp
|
144
|
+
end
|
145
|
+
end
|
146
|
+
@LogSwitch = params['LogSwitch']
|
147
|
+
unless params['Tags'].nil?
|
148
|
+
@Tags = []
|
149
|
+
params['Tags'].each do |i|
|
150
|
+
stringkv_tmp = StringKV.new
|
151
|
+
stringkv_tmp.deserialize(i)
|
152
|
+
@Tags << stringkv_tmp
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
# CreateMatch返回参数结构体
|
159
|
+
class CreateMatchResponse < TencentCloud::Common::AbstractModel
|
160
|
+
# @param MatchInfo: 匹配信息
|
161
|
+
# @type MatchInfo: :class:`Tencentcloud::Gpm.v20200820.models.MatchInfo`
|
162
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
163
|
+
# @type RequestId: String
|
164
|
+
|
165
|
+
attr_accessor :MatchInfo, :RequestId
|
166
|
+
|
167
|
+
def initialize(matchinfo=nil, requestid=nil)
|
168
|
+
@MatchInfo = matchinfo
|
169
|
+
@RequestId = requestid
|
170
|
+
end
|
171
|
+
|
172
|
+
def deserialize(params)
|
173
|
+
unless params['MatchInfo'].nil?
|
174
|
+
@MatchInfo = MatchInfo.new
|
175
|
+
@MatchInfo.deserialize(params['MatchInfo'])
|
176
|
+
end
|
177
|
+
@RequestId = params['RequestId']
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# CreateRule请求参数结构体
|
182
|
+
class CreateRuleRequest < TencentCloud::Common::AbstractModel
|
183
|
+
# @param RuleName: 规则名称,[a-zA-Z0-9-\.]* 长度128
|
184
|
+
# @type RuleName: String
|
185
|
+
# @param RuleScript: 规则脚本,长度65535
|
186
|
+
# @type RuleScript: String
|
187
|
+
# @param RuleDesc: 规则描述,最长1024
|
188
|
+
# @type RuleDesc: String
|
189
|
+
# @param Tags: 标签,key-value结构的数组,最多关联50组标签
|
190
|
+
# @type Tags: Array
|
191
|
+
|
192
|
+
attr_accessor :RuleName, :RuleScript, :RuleDesc, :Tags
|
193
|
+
|
194
|
+
def initialize(rulename=nil, rulescript=nil, ruledesc=nil, tags=nil)
|
195
|
+
@RuleName = rulename
|
196
|
+
@RuleScript = rulescript
|
197
|
+
@RuleDesc = ruledesc
|
198
|
+
@Tags = tags
|
199
|
+
end
|
200
|
+
|
201
|
+
def deserialize(params)
|
202
|
+
@RuleName = params['RuleName']
|
203
|
+
@RuleScript = params['RuleScript']
|
204
|
+
@RuleDesc = params['RuleDesc']
|
205
|
+
unless params['Tags'].nil?
|
206
|
+
@Tags = []
|
207
|
+
params['Tags'].each do |i|
|
208
|
+
stringkv_tmp = StringKV.new
|
209
|
+
stringkv_tmp.deserialize(i)
|
210
|
+
@Tags << stringkv_tmp
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
# CreateRule返回参数结构体
|
217
|
+
class CreateRuleResponse < TencentCloud::Common::AbstractModel
|
218
|
+
# @param RuleInfo: 规则信息
|
219
|
+
# @type RuleInfo: :class:`Tencentcloud::Gpm.v20200820.models.RuleInfo`
|
220
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
221
|
+
# @type RequestId: String
|
222
|
+
|
223
|
+
attr_accessor :RuleInfo, :RequestId
|
224
|
+
|
225
|
+
def initialize(ruleinfo=nil, requestid=nil)
|
226
|
+
@RuleInfo = ruleinfo
|
227
|
+
@RequestId = requestid
|
228
|
+
end
|
229
|
+
|
230
|
+
def deserialize(params)
|
231
|
+
unless params['RuleInfo'].nil?
|
232
|
+
@RuleInfo = RuleInfo.new
|
233
|
+
@RuleInfo.deserialize(params['RuleInfo'])
|
234
|
+
end
|
235
|
+
@RequestId = params['RequestId']
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
# DeleteMatch请求参数结构体
|
240
|
+
class DeleteMatchRequest < TencentCloud::Common::AbstractModel
|
241
|
+
# @param MatchCode: 匹配code
|
242
|
+
# @type MatchCode: String
|
243
|
+
|
244
|
+
attr_accessor :MatchCode
|
245
|
+
|
246
|
+
def initialize(matchcode=nil)
|
247
|
+
@MatchCode = matchcode
|
248
|
+
end
|
249
|
+
|
250
|
+
def deserialize(params)
|
251
|
+
@MatchCode = params['MatchCode']
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
# DeleteMatch返回参数结构体
|
256
|
+
class DeleteMatchResponse < TencentCloud::Common::AbstractModel
|
257
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
258
|
+
# @type RequestId: String
|
259
|
+
|
260
|
+
attr_accessor :RequestId
|
261
|
+
|
262
|
+
def initialize(requestid=nil)
|
263
|
+
@RequestId = requestid
|
264
|
+
end
|
265
|
+
|
266
|
+
def deserialize(params)
|
267
|
+
@RequestId = params['RequestId']
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
# DeleteRule请求参数结构体
|
272
|
+
class DeleteRuleRequest < TencentCloud::Common::AbstractModel
|
273
|
+
# @param RuleCode: 规则code
|
274
|
+
# @type RuleCode: String
|
275
|
+
|
276
|
+
attr_accessor :RuleCode
|
277
|
+
|
278
|
+
def initialize(rulecode=nil)
|
279
|
+
@RuleCode = rulecode
|
280
|
+
end
|
281
|
+
|
282
|
+
def deserialize(params)
|
283
|
+
@RuleCode = params['RuleCode']
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
# DeleteRule返回参数结构体
|
288
|
+
class DeleteRuleResponse < TencentCloud::Common::AbstractModel
|
289
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
290
|
+
# @type RequestId: String
|
291
|
+
|
292
|
+
attr_accessor :RequestId
|
293
|
+
|
294
|
+
def initialize(requestid=nil)
|
295
|
+
@RequestId = requestid
|
296
|
+
end
|
297
|
+
|
298
|
+
def deserialize(params)
|
299
|
+
@RequestId = params['RequestId']
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
# DescribeData请求参数结构体
|
304
|
+
class DescribeDataRequest < TencentCloud::Common::AbstractModel
|
305
|
+
# @param StartTime: 起始时间,单位:秒
|
306
|
+
# @type StartTime: Integer
|
307
|
+
# @param EndTime: 截止时间,单位:秒
|
308
|
+
# @type EndTime: Integer
|
309
|
+
# @param TimeType: 时间粒度,1表示1天;2表示1小时;3表示1分钟;4表示10分钟;5表示30分钟
|
310
|
+
# @type TimeType: Integer
|
311
|
+
# @param MatchCode: 匹配code
|
312
|
+
# @type MatchCode: String
|
313
|
+
|
314
|
+
attr_accessor :StartTime, :EndTime, :TimeType, :MatchCode
|
315
|
+
|
316
|
+
def initialize(starttime=nil, endtime=nil, timetype=nil, matchcode=nil)
|
317
|
+
@StartTime = starttime
|
318
|
+
@EndTime = endtime
|
319
|
+
@TimeType = timetype
|
320
|
+
@MatchCode = matchcode
|
321
|
+
end
|
322
|
+
|
323
|
+
def deserialize(params)
|
324
|
+
@StartTime = params['StartTime']
|
325
|
+
@EndTime = params['EndTime']
|
326
|
+
@TimeType = params['TimeType']
|
327
|
+
@MatchCode = params['MatchCode']
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
# DescribeData返回参数结构体
|
332
|
+
class DescribeDataResponse < TencentCloud::Common::AbstractModel
|
333
|
+
# @param OverviewData: 匹配概况
|
334
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
335
|
+
# @type OverviewData: :class:`Tencentcloud::Gpm.v20200820.models.ReportOverviewData`
|
336
|
+
# @param TrendData: 匹配请求次数趋势数据
|
337
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
338
|
+
# @type TrendData: :class:`Tencentcloud::Gpm.v20200820.models.ReportTrendData`
|
339
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
340
|
+
# @type RequestId: String
|
341
|
+
|
342
|
+
attr_accessor :OverviewData, :TrendData, :RequestId
|
343
|
+
|
344
|
+
def initialize(overviewdata=nil, trenddata=nil, requestid=nil)
|
345
|
+
@OverviewData = overviewdata
|
346
|
+
@TrendData = trenddata
|
347
|
+
@RequestId = requestid
|
348
|
+
end
|
349
|
+
|
350
|
+
def deserialize(params)
|
351
|
+
unless params['OverviewData'].nil?
|
352
|
+
@OverviewData = ReportOverviewData.new
|
353
|
+
@OverviewData.deserialize(params['OverviewData'])
|
354
|
+
end
|
355
|
+
unless params['TrendData'].nil?
|
356
|
+
@TrendData = ReportTrendData.new
|
357
|
+
@TrendData.deserialize(params['TrendData'])
|
358
|
+
end
|
359
|
+
@RequestId = params['RequestId']
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# DescribeMatchCodes请求参数结构体
|
364
|
+
class DescribeMatchCodesRequest < TencentCloud::Common::AbstractModel
|
365
|
+
# @param Offset: 偏移量,页码
|
366
|
+
# @type Offset: Integer
|
367
|
+
# @param Limit: 每页数量
|
368
|
+
# @type Limit: Integer
|
369
|
+
# @param MatchCode: 搜索的字符串
|
370
|
+
# @type MatchCode: String
|
371
|
+
|
372
|
+
attr_accessor :Offset, :Limit, :MatchCode
|
373
|
+
|
374
|
+
def initialize(offset=nil, limit=nil, matchcode=nil)
|
375
|
+
@Offset = offset
|
376
|
+
@Limit = limit
|
377
|
+
@MatchCode = matchcode
|
378
|
+
end
|
379
|
+
|
380
|
+
def deserialize(params)
|
381
|
+
@Offset = params['Offset']
|
382
|
+
@Limit = params['Limit']
|
383
|
+
@MatchCode = params['MatchCode']
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
387
|
+
# DescribeMatchCodes返回参数结构体
|
388
|
+
class DescribeMatchCodesResponse < TencentCloud::Common::AbstractModel
|
389
|
+
# @param MatchCodes: 匹配Code
|
390
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
391
|
+
# @type MatchCodes: Array
|
392
|
+
# @param TotalCount: 总数
|
393
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
394
|
+
# @type TotalCount: Integer
|
395
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
396
|
+
# @type RequestId: String
|
397
|
+
|
398
|
+
attr_accessor :MatchCodes, :TotalCount, :RequestId
|
399
|
+
|
400
|
+
def initialize(matchcodes=nil, totalcount=nil, requestid=nil)
|
401
|
+
@MatchCodes = matchcodes
|
402
|
+
@TotalCount = totalcount
|
403
|
+
@RequestId = requestid
|
404
|
+
end
|
405
|
+
|
406
|
+
def deserialize(params)
|
407
|
+
unless params['MatchCodes'].nil?
|
408
|
+
@MatchCodes = []
|
409
|
+
params['MatchCodes'].each do |i|
|
410
|
+
matchcodeattr_tmp = MatchCodeAttr.new
|
411
|
+
matchcodeattr_tmp.deserialize(i)
|
412
|
+
@MatchCodes << matchcodeattr_tmp
|
413
|
+
end
|
414
|
+
end
|
415
|
+
@TotalCount = params['TotalCount']
|
416
|
+
@RequestId = params['RequestId']
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
420
|
+
# DescribeMatch请求参数结构体
|
421
|
+
class DescribeMatchRequest < TencentCloud::Common::AbstractModel
|
422
|
+
# @param MatchCode: 匹配code
|
423
|
+
# @type MatchCode: String
|
424
|
+
|
425
|
+
attr_accessor :MatchCode
|
426
|
+
|
427
|
+
def initialize(matchcode=nil)
|
428
|
+
@MatchCode = matchcode
|
429
|
+
end
|
430
|
+
|
431
|
+
def deserialize(params)
|
432
|
+
@MatchCode = params['MatchCode']
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
436
|
+
# DescribeMatch返回参数结构体
|
437
|
+
class DescribeMatchResponse < TencentCloud::Common::AbstractModel
|
438
|
+
# @param MatchInfo: 匹配信息
|
439
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
440
|
+
# @type MatchInfo: :class:`Tencentcloud::Gpm.v20200820.models.MatchInfo`
|
441
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
442
|
+
# @type RequestId: String
|
443
|
+
|
444
|
+
attr_accessor :MatchInfo, :RequestId
|
445
|
+
|
446
|
+
def initialize(matchinfo=nil, requestid=nil)
|
447
|
+
@MatchInfo = matchinfo
|
448
|
+
@RequestId = requestid
|
449
|
+
end
|
450
|
+
|
451
|
+
def deserialize(params)
|
452
|
+
unless params['MatchInfo'].nil?
|
453
|
+
@MatchInfo = MatchInfo.new
|
454
|
+
@MatchInfo.deserialize(params['MatchInfo'])
|
455
|
+
end
|
456
|
+
@RequestId = params['RequestId']
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
460
|
+
# DescribeMatches请求参数结构体
|
461
|
+
class DescribeMatchesRequest < TencentCloud::Common::AbstractModel
|
462
|
+
# @param PageNumber: 当前页号,不传则获取所有有权限的资源。
|
463
|
+
# @type PageNumber: Integer
|
464
|
+
# @param PageSize: 单页大小,不传则获取所有有权限的资源。
|
465
|
+
# @type PageSize: Integer
|
466
|
+
# @param SearchType: 查询类型(可选):match表示通过matchCode或者matchName来搜索,rule表示通过ruleCode或者ruleName来搜索,其余类型不做过滤处理。
|
467
|
+
# @type SearchType: String
|
468
|
+
# @param Keyword: 查询关键词,针对SearchType进行具体过滤的内容。
|
469
|
+
# @type Keyword: String
|
470
|
+
# @param Tags: 标签列表,用于过滤。
|
471
|
+
# @type Tags: Array
|
472
|
+
|
473
|
+
attr_accessor :PageNumber, :PageSize, :SearchType, :Keyword, :Tags
|
474
|
+
|
475
|
+
def initialize(pagenumber=nil, pagesize=nil, searchtype=nil, keyword=nil, tags=nil)
|
476
|
+
@PageNumber = pagenumber
|
477
|
+
@PageSize = pagesize
|
478
|
+
@SearchType = searchtype
|
479
|
+
@Keyword = keyword
|
480
|
+
@Tags = tags
|
481
|
+
end
|
482
|
+
|
483
|
+
def deserialize(params)
|
484
|
+
@PageNumber = params['PageNumber']
|
485
|
+
@PageSize = params['PageSize']
|
486
|
+
@SearchType = params['SearchType']
|
487
|
+
@Keyword = params['Keyword']
|
488
|
+
unless params['Tags'].nil?
|
489
|
+
@Tags = []
|
490
|
+
params['Tags'].each do |i|
|
491
|
+
tag_tmp = Tag.new
|
492
|
+
tag_tmp.deserialize(i)
|
493
|
+
@Tags << tag_tmp
|
494
|
+
end
|
495
|
+
end
|
496
|
+
end
|
497
|
+
end
|
498
|
+
|
499
|
+
# DescribeMatches返回参数结构体
|
500
|
+
class DescribeMatchesResponse < TencentCloud::Common::AbstractModel
|
501
|
+
# @param MatchInfoList: 匹配信息列表
|
502
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
503
|
+
# @type MatchInfoList: Array
|
504
|
+
# @param TotalCount: 总记录数
|
505
|
+
# @type TotalCount: Integer
|
506
|
+
# @param PageNumber: 当前页号,不填默认返回第一页
|
507
|
+
# @type PageNumber: Integer
|
508
|
+
# @param PageSize: 单页大小,不填默认取 30,最大值不能超过 30
|
509
|
+
# @type PageSize: Integer
|
510
|
+
# @param SearchType: 查询类型(可选):matchName表示匹配名称,matchCode表示匹配code,ruleName表示规则名称,tag表示标签Key/Value
|
511
|
+
# @type SearchType: String
|
512
|
+
# @param Keyword: 查询关键词(可选)
|
513
|
+
# @type Keyword: String
|
514
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
515
|
+
# @type RequestId: String
|
516
|
+
|
517
|
+
attr_accessor :MatchInfoList, :TotalCount, :PageNumber, :PageSize, :SearchType, :Keyword, :RequestId
|
518
|
+
|
519
|
+
def initialize(matchinfolist=nil, totalcount=nil, pagenumber=nil, pagesize=nil, searchtype=nil, keyword=nil, requestid=nil)
|
520
|
+
@MatchInfoList = matchinfolist
|
521
|
+
@TotalCount = totalcount
|
522
|
+
@PageNumber = pagenumber
|
523
|
+
@PageSize = pagesize
|
524
|
+
@SearchType = searchtype
|
525
|
+
@Keyword = keyword
|
526
|
+
@RequestId = requestid
|
527
|
+
end
|
528
|
+
|
529
|
+
def deserialize(params)
|
530
|
+
unless params['MatchInfoList'].nil?
|
531
|
+
@MatchInfoList = []
|
532
|
+
params['MatchInfoList'].each do |i|
|
533
|
+
matchinfo_tmp = MatchInfo.new
|
534
|
+
matchinfo_tmp.deserialize(i)
|
535
|
+
@MatchInfoList << matchinfo_tmp
|
536
|
+
end
|
537
|
+
end
|
538
|
+
@TotalCount = params['TotalCount']
|
539
|
+
@PageNumber = params['PageNumber']
|
540
|
+
@PageSize = params['PageSize']
|
541
|
+
@SearchType = params['SearchType']
|
542
|
+
@Keyword = params['Keyword']
|
543
|
+
@RequestId = params['RequestId']
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
547
|
+
# DescribeMatchingProgress请求参数结构体
|
548
|
+
class DescribeMatchingProgressRequest < TencentCloud::Common::AbstractModel
|
549
|
+
# @param MatchTicketIds: 匹配票据 ID列表, 列表长度 12。
|
550
|
+
# @type MatchTicketIds: Array
|
551
|
+
|
552
|
+
attr_accessor :MatchTicketIds
|
553
|
+
|
554
|
+
def initialize(matchticketids=nil)
|
555
|
+
@MatchTicketIds = matchticketids
|
556
|
+
end
|
557
|
+
|
558
|
+
def deserialize(params)
|
559
|
+
unless params['MatchTicketIds'].nil?
|
560
|
+
@MatchTicketIds = []
|
561
|
+
params['MatchTicketIds'].each do |i|
|
562
|
+
mticket_tmp = MTicket.new
|
563
|
+
mticket_tmp.deserialize(i)
|
564
|
+
@MatchTicketIds << mticket_tmp
|
565
|
+
end
|
566
|
+
end
|
567
|
+
end
|
568
|
+
end
|
569
|
+
|
570
|
+
# DescribeMatchingProgress返回参数结构体
|
571
|
+
class DescribeMatchingProgressResponse < TencentCloud::Common::AbstractModel
|
572
|
+
# @param MatchTickets: 匹配票据列表
|
573
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
574
|
+
# @type MatchTickets: Array
|
575
|
+
# @param ErrCode: 错误码
|
576
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
577
|
+
# @type ErrCode: Integer
|
578
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
579
|
+
# @type RequestId: String
|
580
|
+
|
581
|
+
attr_accessor :MatchTickets, :ErrCode, :RequestId
|
582
|
+
|
583
|
+
def initialize(matchtickets=nil, errcode=nil, requestid=nil)
|
584
|
+
@MatchTickets = matchtickets
|
585
|
+
@ErrCode = errcode
|
586
|
+
@RequestId = requestid
|
587
|
+
end
|
588
|
+
|
589
|
+
def deserialize(params)
|
590
|
+
unless params['MatchTickets'].nil?
|
591
|
+
@MatchTickets = []
|
592
|
+
params['MatchTickets'].each do |i|
|
593
|
+
matchticket_tmp = MatchTicket.new
|
594
|
+
matchticket_tmp.deserialize(i)
|
595
|
+
@MatchTickets << matchticket_tmp
|
596
|
+
end
|
597
|
+
end
|
598
|
+
@ErrCode = params['ErrCode']
|
599
|
+
@RequestId = params['RequestId']
|
600
|
+
end
|
601
|
+
end
|
602
|
+
|
603
|
+
# DescribeRule请求参数结构体
|
604
|
+
class DescribeRuleRequest < TencentCloud::Common::AbstractModel
|
605
|
+
# @param RuleCode: 规则code
|
606
|
+
# @type RuleCode: String
|
607
|
+
|
608
|
+
attr_accessor :RuleCode
|
609
|
+
|
610
|
+
def initialize(rulecode=nil)
|
611
|
+
@RuleCode = rulecode
|
612
|
+
end
|
613
|
+
|
614
|
+
def deserialize(params)
|
615
|
+
@RuleCode = params['RuleCode']
|
616
|
+
end
|
617
|
+
end
|
618
|
+
|
619
|
+
# DescribeRule返回参数结构体
|
620
|
+
class DescribeRuleResponse < TencentCloud::Common::AbstractModel
|
621
|
+
# @param RuleInfo: 规则信息
|
622
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
623
|
+
# @type RuleInfo: :class:`Tencentcloud::Gpm.v20200820.models.RuleInfo`
|
624
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
625
|
+
# @type RequestId: String
|
626
|
+
|
627
|
+
attr_accessor :RuleInfo, :RequestId
|
628
|
+
|
629
|
+
def initialize(ruleinfo=nil, requestid=nil)
|
630
|
+
@RuleInfo = ruleinfo
|
631
|
+
@RequestId = requestid
|
632
|
+
end
|
633
|
+
|
634
|
+
def deserialize(params)
|
635
|
+
unless params['RuleInfo'].nil?
|
636
|
+
@RuleInfo = RuleInfo.new
|
637
|
+
@RuleInfo.deserialize(params['RuleInfo'])
|
638
|
+
end
|
639
|
+
@RequestId = params['RequestId']
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
643
|
+
# DescribeRules请求参数结构体
|
644
|
+
class DescribeRulesRequest < TencentCloud::Common::AbstractModel
|
645
|
+
# @param PageNumber: 当前页号,不传则返回第一页
|
646
|
+
# @type PageNumber: Integer
|
647
|
+
# @param PageSize: 单页大小,最大 30,不填默认30
|
648
|
+
# @type PageSize: Integer
|
649
|
+
# @param SearchType: 查询类型(可选):match表示通过matchCode或者matchName来搜索,rule表示通过ruleCode或者ruleName来搜索,其余类型不做过滤处理。
|
650
|
+
# @type SearchType: String
|
651
|
+
# @param Keyword: 查询关键词,针对SearchType进行具体过滤的内容。
|
652
|
+
# @type Keyword: String
|
653
|
+
# @param Tags: 标签列表,用于过滤。
|
654
|
+
# @type Tags: Array
|
655
|
+
|
656
|
+
attr_accessor :PageNumber, :PageSize, :SearchType, :Keyword, :Tags
|
657
|
+
|
658
|
+
def initialize(pagenumber=nil, pagesize=nil, searchtype=nil, keyword=nil, tags=nil)
|
659
|
+
@PageNumber = pagenumber
|
660
|
+
@PageSize = pagesize
|
661
|
+
@SearchType = searchtype
|
662
|
+
@Keyword = keyword
|
663
|
+
@Tags = tags
|
664
|
+
end
|
665
|
+
|
666
|
+
def deserialize(params)
|
667
|
+
@PageNumber = params['PageNumber']
|
668
|
+
@PageSize = params['PageSize']
|
669
|
+
@SearchType = params['SearchType']
|
670
|
+
@Keyword = params['Keyword']
|
671
|
+
unless params['Tags'].nil?
|
672
|
+
@Tags = []
|
673
|
+
params['Tags'].each do |i|
|
674
|
+
tag_tmp = Tag.new
|
675
|
+
tag_tmp.deserialize(i)
|
676
|
+
@Tags << tag_tmp
|
677
|
+
end
|
678
|
+
end
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
682
|
+
# DescribeRules返回参数结构体
|
683
|
+
class DescribeRulesResponse < TencentCloud::Common::AbstractModel
|
684
|
+
# @param RuleInfoList: 规则信息列表
|
685
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
686
|
+
# @type RuleInfoList: Array
|
687
|
+
# @param TotalCount: 总记录数
|
688
|
+
# @type TotalCount: Integer
|
689
|
+
# @param PageNumber: 当前页号
|
690
|
+
# @type PageNumber: Integer
|
691
|
+
# @param PageSize: 单页大小
|
692
|
+
# @type PageSize: Integer
|
693
|
+
# @param SearchType: 查询类型(可选)matchName表示匹配名称,matchCode表示匹配code,ruleName表示规则名称,tag表示标签Key/Value
|
694
|
+
# @type SearchType: String
|
695
|
+
# @param Keyword: 查询关键词(可选)
|
696
|
+
# @type Keyword: String
|
697
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
698
|
+
# @type RequestId: String
|
699
|
+
|
700
|
+
attr_accessor :RuleInfoList, :TotalCount, :PageNumber, :PageSize, :SearchType, :Keyword, :RequestId
|
701
|
+
|
702
|
+
def initialize(ruleinfolist=nil, totalcount=nil, pagenumber=nil, pagesize=nil, searchtype=nil, keyword=nil, requestid=nil)
|
703
|
+
@RuleInfoList = ruleinfolist
|
704
|
+
@TotalCount = totalcount
|
705
|
+
@PageNumber = pagenumber
|
706
|
+
@PageSize = pagesize
|
707
|
+
@SearchType = searchtype
|
708
|
+
@Keyword = keyword
|
709
|
+
@RequestId = requestid
|
710
|
+
end
|
711
|
+
|
712
|
+
def deserialize(params)
|
713
|
+
unless params['RuleInfoList'].nil?
|
714
|
+
@RuleInfoList = []
|
715
|
+
params['RuleInfoList'].each do |i|
|
716
|
+
rulebriefinfo_tmp = RuleBriefInfo.new
|
717
|
+
rulebriefinfo_tmp.deserialize(i)
|
718
|
+
@RuleInfoList << rulebriefinfo_tmp
|
719
|
+
end
|
720
|
+
end
|
721
|
+
@TotalCount = params['TotalCount']
|
722
|
+
@PageNumber = params['PageNumber']
|
723
|
+
@PageSize = params['PageSize']
|
724
|
+
@SearchType = params['SearchType']
|
725
|
+
@Keyword = params['Keyword']
|
726
|
+
@RequestId = params['RequestId']
|
727
|
+
end
|
728
|
+
end
|
729
|
+
|
730
|
+
# DescribeToken请求参数结构体
|
731
|
+
class DescribeTokenRequest < TencentCloud::Common::AbstractModel
|
732
|
+
# @param MatchCode: 匹配code
|
733
|
+
# @type MatchCode: String
|
734
|
+
|
735
|
+
attr_accessor :MatchCode
|
736
|
+
|
737
|
+
def initialize(matchcode=nil)
|
738
|
+
@MatchCode = matchcode
|
739
|
+
end
|
740
|
+
|
741
|
+
def deserialize(params)
|
742
|
+
@MatchCode = params['MatchCode']
|
743
|
+
end
|
744
|
+
end
|
745
|
+
|
746
|
+
# DescribeToken返回参数结构体
|
747
|
+
class DescribeTokenResponse < TencentCloud::Common::AbstractModel
|
748
|
+
# @param MatchToken: 当前的MatchCode对应的Token。如果当前MatchCode没有Token,该参数可能取不到有效值。
|
749
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
750
|
+
# @type MatchToken: String
|
751
|
+
# @param CompatibleSpan: 当Token被替换后,GPM将兼容推送原始Token的时间(秒)。
|
752
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
753
|
+
# @type CompatibleSpan: Integer
|
754
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
755
|
+
# @type RequestId: String
|
756
|
+
|
757
|
+
attr_accessor :MatchToken, :CompatibleSpan, :RequestId
|
758
|
+
|
759
|
+
def initialize(matchtoken=nil, compatiblespan=nil, requestid=nil)
|
760
|
+
@MatchToken = matchtoken
|
761
|
+
@CompatibleSpan = compatiblespan
|
762
|
+
@RequestId = requestid
|
763
|
+
end
|
764
|
+
|
765
|
+
def deserialize(params)
|
766
|
+
@MatchToken = params['MatchToken']
|
767
|
+
@CompatibleSpan = params['CompatibleSpan']
|
768
|
+
@RequestId = params['RequestId']
|
769
|
+
end
|
770
|
+
end
|
771
|
+
|
772
|
+
# matchCode和匹配票据 ID组合结构
|
773
|
+
class MTicket < TencentCloud::Common::AbstractModel
|
774
|
+
# @param MatchCode: 匹配Code
|
775
|
+
# @type MatchCode: String
|
776
|
+
# @param MatchTicketId: 匹配票据 ID
|
777
|
+
# @type MatchTicketId: String
|
778
|
+
|
779
|
+
attr_accessor :MatchCode, :MatchTicketId
|
780
|
+
|
781
|
+
def initialize(matchcode=nil, matchticketid=nil)
|
782
|
+
@MatchCode = matchcode
|
783
|
+
@MatchTicketId = matchticketid
|
784
|
+
end
|
785
|
+
|
786
|
+
def deserialize(params)
|
787
|
+
@MatchCode = params['MatchCode']
|
788
|
+
@MatchTicketId = params['MatchTicketId']
|
789
|
+
end
|
790
|
+
end
|
791
|
+
|
792
|
+
# 玩家匹配属性
|
793
|
+
class MatchAttribute < TencentCloud::Common::AbstractModel
|
794
|
+
# @param Name: 属性名 长度 128 [a-zA-Z0-9-\.]*
|
795
|
+
# @type Name: String
|
796
|
+
# @param Type: 属性类型: 0 数值; 1 string; 默认 0
|
797
|
+
# @type Type: Integer
|
798
|
+
# @param NumberValue: 数字属性值 默认 0.0
|
799
|
+
# @type NumberValue: Float
|
800
|
+
# @param StringValue: 字符串属性值 长度 128 默认 ""
|
801
|
+
# @type StringValue: String
|
802
|
+
# @param ListValue: list 属性值
|
803
|
+
# @type ListValue: Array
|
804
|
+
# @param MapValue: 字典属性值
|
805
|
+
# @type MapValue: Array
|
806
|
+
|
807
|
+
attr_accessor :Name, :Type, :NumberValue, :StringValue, :ListValue, :MapValue
|
808
|
+
|
809
|
+
def initialize(name=nil, type=nil, numbervalue=nil, stringvalue=nil, listvalue=nil, mapvalue=nil)
|
810
|
+
@Name = name
|
811
|
+
@Type = type
|
812
|
+
@NumberValue = numbervalue
|
813
|
+
@StringValue = stringvalue
|
814
|
+
@ListValue = listvalue
|
815
|
+
@MapValue = mapvalue
|
816
|
+
end
|
817
|
+
|
818
|
+
def deserialize(params)
|
819
|
+
@Name = params['Name']
|
820
|
+
@Type = params['Type']
|
821
|
+
@NumberValue = params['NumberValue']
|
822
|
+
@StringValue = params['StringValue']
|
823
|
+
@ListValue = params['ListValue']
|
824
|
+
unless params['MapValue'].nil?
|
825
|
+
@MapValue = []
|
826
|
+
params['MapValue'].each do |i|
|
827
|
+
attributemap_tmp = AttributeMap.new
|
828
|
+
attributemap_tmp.deserialize(i)
|
829
|
+
@MapValue << attributemap_tmp
|
830
|
+
end
|
831
|
+
end
|
832
|
+
end
|
833
|
+
end
|
834
|
+
|
835
|
+
# 匹配code
|
836
|
+
class MatchCodeAttr < TencentCloud::Common::AbstractModel
|
837
|
+
# @param MatchCode: 匹配code
|
838
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
839
|
+
# @type MatchCode: String
|
840
|
+
|
841
|
+
attr_accessor :MatchCode
|
842
|
+
|
843
|
+
def initialize(matchcode=nil)
|
844
|
+
@MatchCode = matchcode
|
845
|
+
end
|
846
|
+
|
847
|
+
def deserialize(params)
|
848
|
+
@MatchCode = params['MatchCode']
|
849
|
+
end
|
850
|
+
end
|
851
|
+
|
852
|
+
# 匹配信息
|
853
|
+
class MatchInfo < TencentCloud::Common::AbstractModel
|
854
|
+
# @param MatchCode: 匹配code
|
855
|
+
# @type MatchCode: String
|
856
|
+
# @param MatchName: 匹配名称
|
857
|
+
# @type MatchName: String
|
858
|
+
# @param MatchDesc: 匹配描述
|
859
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
860
|
+
# @type MatchDesc: String
|
861
|
+
# @param RuleCode: 规则code
|
862
|
+
# @type RuleCode: String
|
863
|
+
# @param CreateTime: 创建时间
|
864
|
+
# @type CreateTime: String
|
865
|
+
# @param Timeout: 超时时间
|
866
|
+
# @type Timeout: Integer
|
867
|
+
# @param NotifyUrl: 接收通知地址
|
868
|
+
# @type NotifyUrl: String
|
869
|
+
# @param ServerType: 是否为匹配结果请求服务器资源,0否,1请求GSE资源
|
870
|
+
# @type ServerType: Integer
|
871
|
+
# @param ServerRegion: 服务器队列所在地域
|
872
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
873
|
+
# @type ServerRegion: String
|
874
|
+
# @param ServerQueue: 服务器队列
|
875
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
876
|
+
# @type ServerQueue: String
|
877
|
+
# @param CustomPushData: 自定义推送数据
|
878
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
879
|
+
# @type CustomPushData: String
|
880
|
+
# @param ServerSessionData: 游戏服务器会话数据
|
881
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
882
|
+
# @type ServerSessionData: String
|
883
|
+
# @param GameProperties: 游戏属性
|
884
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
885
|
+
# @type GameProperties: Array
|
886
|
+
# @param LogSwitch: 日志开关,0表示关,1表示开
|
887
|
+
# @type LogSwitch: Integer
|
888
|
+
# @param LogsetId: 日志集id
|
889
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
890
|
+
# @type LogsetId: String
|
891
|
+
# @param LogsetName: 日志集名称
|
892
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
893
|
+
# @type LogsetName: String
|
894
|
+
# @param LogTopicId: 日志主题id
|
895
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
896
|
+
# @type LogTopicId: String
|
897
|
+
# @param LogTopicName: 日志主题名称
|
898
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
899
|
+
# @type LogTopicName: String
|
900
|
+
# @param Tags: 标签
|
901
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
902
|
+
# @type Tags: Array
|
903
|
+
# @param Region: 地区
|
904
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
905
|
+
# @type Region: String
|
906
|
+
# @param AppId: 用户AppId
|
907
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
908
|
+
# @type AppId: String
|
909
|
+
# @param Uin: 用户主账号Uin
|
910
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
911
|
+
# @type Uin: String
|
912
|
+
# @param CreateUin: 用户创建账号Uin
|
913
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
914
|
+
# @type CreateUin: String
|
915
|
+
# @param RuleName: 规则名称
|
916
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
917
|
+
# @type RuleName: String
|
918
|
+
# @param LogStatus: 日志状态,0表示正常,1表示日志集不存在,2表示日志主题不存在,3表示日志集和日志主题都不存在。
|
919
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
920
|
+
# @type LogStatus: Integer
|
921
|
+
|
922
|
+
attr_accessor :MatchCode, :MatchName, :MatchDesc, :RuleCode, :CreateTime, :Timeout, :NotifyUrl, :ServerType, :ServerRegion, :ServerQueue, :CustomPushData, :ServerSessionData, :GameProperties, :LogSwitch, :LogsetId, :LogsetName, :LogTopicId, :LogTopicName, :Tags, :Region, :AppId, :Uin, :CreateUin, :RuleName, :LogStatus
|
923
|
+
|
924
|
+
def initialize(matchcode=nil, matchname=nil, matchdesc=nil, rulecode=nil, createtime=nil, timeout=nil, notifyurl=nil, servertype=nil, serverregion=nil, serverqueue=nil, custompushdata=nil, serversessiondata=nil, gameproperties=nil, logswitch=nil, logsetid=nil, logsetname=nil, logtopicid=nil, logtopicname=nil, tags=nil, region=nil, appid=nil, uin=nil, createuin=nil, rulename=nil, logstatus=nil)
|
925
|
+
@MatchCode = matchcode
|
926
|
+
@MatchName = matchname
|
927
|
+
@MatchDesc = matchdesc
|
928
|
+
@RuleCode = rulecode
|
929
|
+
@CreateTime = createtime
|
930
|
+
@Timeout = timeout
|
931
|
+
@NotifyUrl = notifyurl
|
932
|
+
@ServerType = servertype
|
933
|
+
@ServerRegion = serverregion
|
934
|
+
@ServerQueue = serverqueue
|
935
|
+
@CustomPushData = custompushdata
|
936
|
+
@ServerSessionData = serversessiondata
|
937
|
+
@GameProperties = gameproperties
|
938
|
+
@LogSwitch = logswitch
|
939
|
+
@LogsetId = logsetid
|
940
|
+
@LogsetName = logsetname
|
941
|
+
@LogTopicId = logtopicid
|
942
|
+
@LogTopicName = logtopicname
|
943
|
+
@Tags = tags
|
944
|
+
@Region = region
|
945
|
+
@AppId = appid
|
946
|
+
@Uin = uin
|
947
|
+
@CreateUin = createuin
|
948
|
+
@RuleName = rulename
|
949
|
+
@LogStatus = logstatus
|
950
|
+
end
|
951
|
+
|
952
|
+
def deserialize(params)
|
953
|
+
@MatchCode = params['MatchCode']
|
954
|
+
@MatchName = params['MatchName']
|
955
|
+
@MatchDesc = params['MatchDesc']
|
956
|
+
@RuleCode = params['RuleCode']
|
957
|
+
@CreateTime = params['CreateTime']
|
958
|
+
@Timeout = params['Timeout']
|
959
|
+
@NotifyUrl = params['NotifyUrl']
|
960
|
+
@ServerType = params['ServerType']
|
961
|
+
@ServerRegion = params['ServerRegion']
|
962
|
+
@ServerQueue = params['ServerQueue']
|
963
|
+
@CustomPushData = params['CustomPushData']
|
964
|
+
@ServerSessionData = params['ServerSessionData']
|
965
|
+
unless params['GameProperties'].nil?
|
966
|
+
@GameProperties = []
|
967
|
+
params['GameProperties'].each do |i|
|
968
|
+
stringkv_tmp = StringKV.new
|
969
|
+
stringkv_tmp.deserialize(i)
|
970
|
+
@GameProperties << stringkv_tmp
|
971
|
+
end
|
972
|
+
end
|
973
|
+
@LogSwitch = params['LogSwitch']
|
974
|
+
@LogsetId = params['LogsetId']
|
975
|
+
@LogsetName = params['LogsetName']
|
976
|
+
@LogTopicId = params['LogTopicId']
|
977
|
+
@LogTopicName = params['LogTopicName']
|
978
|
+
unless params['Tags'].nil?
|
979
|
+
@Tags = []
|
980
|
+
params['Tags'].each do |i|
|
981
|
+
stringkv_tmp = StringKV.new
|
982
|
+
stringkv_tmp.deserialize(i)
|
983
|
+
@Tags << stringkv_tmp
|
984
|
+
end
|
985
|
+
end
|
986
|
+
@Region = params['Region']
|
987
|
+
@AppId = params['AppId']
|
988
|
+
@Uin = params['Uin']
|
989
|
+
@CreateUin = params['CreateUin']
|
990
|
+
@RuleName = params['RuleName']
|
991
|
+
@LogStatus = params['LogStatus']
|
992
|
+
end
|
993
|
+
end
|
994
|
+
|
995
|
+
# 匹配票据信息
|
996
|
+
class MatchTicket < TencentCloud::Common::AbstractModel
|
997
|
+
# @param Id: 匹配票据 ID长度 128 [a-zA-Z0-9-\.]*
|
998
|
+
# @type Id: String
|
999
|
+
# @param MatchCode: 匹配 Code
|
1000
|
+
# @type MatchCode: String
|
1001
|
+
# @param MatchResult: 根据 MatchType 取不同的结构序列化结果
|
1002
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1003
|
+
# @type MatchResult: String
|
1004
|
+
# @param MatchType: 表示不同的匹配类型,NORMAL | GSE
|
1005
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1006
|
+
# @type MatchType: String
|
1007
|
+
# @param Players: 玩家信息列表
|
1008
|
+
# @type Players: Array
|
1009
|
+
# @param Status: 匹配状态: SEARCHING 匹配中; PLACING 匹配放置中; COMPLETED 匹配完成; CANCELLED 匹配取消; TIMEDOUT 匹配超时; FAILED 匹配失败
|
1010
|
+
# @type Status: String
|
1011
|
+
# @param StatusMessage: 匹配状态信息
|
1012
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1013
|
+
# @type StatusMessage: String
|
1014
|
+
# @param StatusReason: 匹配状态原因
|
1015
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1016
|
+
# @type StatusReason: String
|
1017
|
+
# @param StartTime: 收到发起匹配请求的时间 eg: "2020-08-17T08:14:38.077Z"
|
1018
|
+
# @type StartTime: String
|
1019
|
+
# @param EndTime: 匹配请求因完成、失败、超时、被取消而停止执行的时间 eg: "2020-08-17T08:14:38.077Z"
|
1020
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1021
|
+
# @type EndTime: String
|
1022
|
+
|
1023
|
+
attr_accessor :Id, :MatchCode, :MatchResult, :MatchType, :Players, :Status, :StatusMessage, :StatusReason, :StartTime, :EndTime
|
1024
|
+
|
1025
|
+
def initialize(id=nil, matchcode=nil, matchresult=nil, matchtype=nil, players=nil, status=nil, statusmessage=nil, statusreason=nil, starttime=nil, endtime=nil)
|
1026
|
+
@Id = id
|
1027
|
+
@MatchCode = matchcode
|
1028
|
+
@MatchResult = matchresult
|
1029
|
+
@MatchType = matchtype
|
1030
|
+
@Players = players
|
1031
|
+
@Status = status
|
1032
|
+
@StatusMessage = statusmessage
|
1033
|
+
@StatusReason = statusreason
|
1034
|
+
@StartTime = starttime
|
1035
|
+
@EndTime = endtime
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
def deserialize(params)
|
1039
|
+
@Id = params['Id']
|
1040
|
+
@MatchCode = params['MatchCode']
|
1041
|
+
@MatchResult = params['MatchResult']
|
1042
|
+
@MatchType = params['MatchType']
|
1043
|
+
unless params['Players'].nil?
|
1044
|
+
@Players = []
|
1045
|
+
params['Players'].each do |i|
|
1046
|
+
player_tmp = Player.new
|
1047
|
+
player_tmp.deserialize(i)
|
1048
|
+
@Players << player_tmp
|
1049
|
+
end
|
1050
|
+
end
|
1051
|
+
@Status = params['Status']
|
1052
|
+
@StatusMessage = params['StatusMessage']
|
1053
|
+
@StatusReason = params['StatusReason']
|
1054
|
+
@StartTime = params['StartTime']
|
1055
|
+
@EndTime = params['EndTime']
|
1056
|
+
end
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# ModifyMatch请求参数结构体
|
1060
|
+
class ModifyMatchRequest < TencentCloud::Common::AbstractModel
|
1061
|
+
# @param MatchName: 匹配名称,[a-zA-Z0-9-\.]* 长度128
|
1062
|
+
# @type MatchName: String
|
1063
|
+
# @param RuleCode: 规则code
|
1064
|
+
# @type RuleCode: String
|
1065
|
+
# @param Timeout: 超时时间,1-600秒
|
1066
|
+
# @type Timeout: Integer
|
1067
|
+
# @param ServerType: 是否为匹配结果请求服务器资源,0表示否,1表示请求GSE资源
|
1068
|
+
# @type ServerType: Integer
|
1069
|
+
# @param MatchCode: 匹配code
|
1070
|
+
# @type MatchCode: String
|
1071
|
+
# @param MatchDesc: 匹配描述,最长1024
|
1072
|
+
# @type MatchDesc: String
|
1073
|
+
# @param NotifyUrl: 只支持 http 和 https 协议
|
1074
|
+
# @type NotifyUrl: String
|
1075
|
+
# @param ServerRegion: 游戏服务器队列地域
|
1076
|
+
# @type ServerRegion: String
|
1077
|
+
# @param ServerQueue: 游戏服务器队列
|
1078
|
+
# @type ServerQueue: String
|
1079
|
+
# @param CustomPushData: 自定义推送数据
|
1080
|
+
# @type CustomPushData: String
|
1081
|
+
# @param ServerSessionData: 游戏服务器会话数据
|
1082
|
+
# @type ServerSessionData: String
|
1083
|
+
# @param GameProperties: 游戏属性,key-value结构的数组
|
1084
|
+
# @type GameProperties: Array
|
1085
|
+
# @param LogSwitch: 日志开关,0表示关,1表示开
|
1086
|
+
# @type LogSwitch: Integer
|
1087
|
+
# @param Tags: 标签,key-value结构的数组
|
1088
|
+
# @type Tags: Array
|
1089
|
+
|
1090
|
+
attr_accessor :MatchName, :RuleCode, :Timeout, :ServerType, :MatchCode, :MatchDesc, :NotifyUrl, :ServerRegion, :ServerQueue, :CustomPushData, :ServerSessionData, :GameProperties, :LogSwitch, :Tags
|
1091
|
+
|
1092
|
+
def initialize(matchname=nil, rulecode=nil, timeout=nil, servertype=nil, matchcode=nil, matchdesc=nil, notifyurl=nil, serverregion=nil, serverqueue=nil, custompushdata=nil, serversessiondata=nil, gameproperties=nil, logswitch=nil, tags=nil)
|
1093
|
+
@MatchName = matchname
|
1094
|
+
@RuleCode = rulecode
|
1095
|
+
@Timeout = timeout
|
1096
|
+
@ServerType = servertype
|
1097
|
+
@MatchCode = matchcode
|
1098
|
+
@MatchDesc = matchdesc
|
1099
|
+
@NotifyUrl = notifyurl
|
1100
|
+
@ServerRegion = serverregion
|
1101
|
+
@ServerQueue = serverqueue
|
1102
|
+
@CustomPushData = custompushdata
|
1103
|
+
@ServerSessionData = serversessiondata
|
1104
|
+
@GameProperties = gameproperties
|
1105
|
+
@LogSwitch = logswitch
|
1106
|
+
@Tags = tags
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
def deserialize(params)
|
1110
|
+
@MatchName = params['MatchName']
|
1111
|
+
@RuleCode = params['RuleCode']
|
1112
|
+
@Timeout = params['Timeout']
|
1113
|
+
@ServerType = params['ServerType']
|
1114
|
+
@MatchCode = params['MatchCode']
|
1115
|
+
@MatchDesc = params['MatchDesc']
|
1116
|
+
@NotifyUrl = params['NotifyUrl']
|
1117
|
+
@ServerRegion = params['ServerRegion']
|
1118
|
+
@ServerQueue = params['ServerQueue']
|
1119
|
+
@CustomPushData = params['CustomPushData']
|
1120
|
+
@ServerSessionData = params['ServerSessionData']
|
1121
|
+
unless params['GameProperties'].nil?
|
1122
|
+
@GameProperties = []
|
1123
|
+
params['GameProperties'].each do |i|
|
1124
|
+
stringkv_tmp = StringKV.new
|
1125
|
+
stringkv_tmp.deserialize(i)
|
1126
|
+
@GameProperties << stringkv_tmp
|
1127
|
+
end
|
1128
|
+
end
|
1129
|
+
@LogSwitch = params['LogSwitch']
|
1130
|
+
unless params['Tags'].nil?
|
1131
|
+
@Tags = []
|
1132
|
+
params['Tags'].each do |i|
|
1133
|
+
stringkv_tmp = StringKV.new
|
1134
|
+
stringkv_tmp.deserialize(i)
|
1135
|
+
@Tags << stringkv_tmp
|
1136
|
+
end
|
1137
|
+
end
|
1138
|
+
end
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
# ModifyMatch返回参数结构体
|
1142
|
+
class ModifyMatchResponse < TencentCloud::Common::AbstractModel
|
1143
|
+
# @param MatchInfo: 匹配信息
|
1144
|
+
# @type MatchInfo: :class:`Tencentcloud::Gpm.v20200820.models.MatchInfo`
|
1145
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1146
|
+
# @type RequestId: String
|
1147
|
+
|
1148
|
+
attr_accessor :MatchInfo, :RequestId
|
1149
|
+
|
1150
|
+
def initialize(matchinfo=nil, requestid=nil)
|
1151
|
+
@MatchInfo = matchinfo
|
1152
|
+
@RequestId = requestid
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
def deserialize(params)
|
1156
|
+
unless params['MatchInfo'].nil?
|
1157
|
+
@MatchInfo = MatchInfo.new
|
1158
|
+
@MatchInfo.deserialize(params['MatchInfo'])
|
1159
|
+
end
|
1160
|
+
@RequestId = params['RequestId']
|
1161
|
+
end
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
# ModifyRule请求参数结构体
|
1165
|
+
class ModifyRuleRequest < TencentCloud::Common::AbstractModel
|
1166
|
+
# @param RuleCode: 规则code
|
1167
|
+
# @type RuleCode: String
|
1168
|
+
# @param RuleName: 规则名称,只能包含数字、字母、. 和 -
|
1169
|
+
# @type RuleName: String
|
1170
|
+
# @param RuleDesc: 规则描述,最长1024
|
1171
|
+
# @type RuleDesc: String
|
1172
|
+
# @param Tags: 标签,key-value结构的数组,最多关联50组标签
|
1173
|
+
# @type Tags: Array
|
1174
|
+
|
1175
|
+
attr_accessor :RuleCode, :RuleName, :RuleDesc, :Tags
|
1176
|
+
|
1177
|
+
def initialize(rulecode=nil, rulename=nil, ruledesc=nil, tags=nil)
|
1178
|
+
@RuleCode = rulecode
|
1179
|
+
@RuleName = rulename
|
1180
|
+
@RuleDesc = ruledesc
|
1181
|
+
@Tags = tags
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
def deserialize(params)
|
1185
|
+
@RuleCode = params['RuleCode']
|
1186
|
+
@RuleName = params['RuleName']
|
1187
|
+
@RuleDesc = params['RuleDesc']
|
1188
|
+
unless params['Tags'].nil?
|
1189
|
+
@Tags = []
|
1190
|
+
params['Tags'].each do |i|
|
1191
|
+
stringkv_tmp = StringKV.new
|
1192
|
+
stringkv_tmp.deserialize(i)
|
1193
|
+
@Tags << stringkv_tmp
|
1194
|
+
end
|
1195
|
+
end
|
1196
|
+
end
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
# ModifyRule返回参数结构体
|
1200
|
+
class ModifyRuleResponse < TencentCloud::Common::AbstractModel
|
1201
|
+
# @param RuleInfo: 规则信息
|
1202
|
+
# @type RuleInfo: :class:`Tencentcloud::Gpm.v20200820.models.RuleInfo`
|
1203
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1204
|
+
# @type RequestId: String
|
1205
|
+
|
1206
|
+
attr_accessor :RuleInfo, :RequestId
|
1207
|
+
|
1208
|
+
def initialize(ruleinfo=nil, requestid=nil)
|
1209
|
+
@RuleInfo = ruleinfo
|
1210
|
+
@RequestId = requestid
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
def deserialize(params)
|
1214
|
+
unless params['RuleInfo'].nil?
|
1215
|
+
@RuleInfo = RuleInfo.new
|
1216
|
+
@RuleInfo.deserialize(params['RuleInfo'])
|
1217
|
+
end
|
1218
|
+
@RequestId = params['RequestId']
|
1219
|
+
end
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
# ModifyToken请求参数结构体
|
1223
|
+
class ModifyTokenRequest < TencentCloud::Common::AbstractModel
|
1224
|
+
# @param MatchCode: 匹配Code。
|
1225
|
+
# @type MatchCode: String
|
1226
|
+
# @param CompatibleSpan: 单位秒,取值0-1800。此参数表示当前Token被替换后,GPM将持续推送原Token的时间。在CompatibleSpan时间范围内,用户将在事件消息中收到当前和原始Token。
|
1227
|
+
# @type CompatibleSpan: Integer
|
1228
|
+
# @param MatchToken: Token,[a-zA-Z0-9-_.], 长度0-64。如果为空,将由GPM随机生成。
|
1229
|
+
# @type MatchToken: String
|
1230
|
+
|
1231
|
+
attr_accessor :MatchCode, :CompatibleSpan, :MatchToken
|
1232
|
+
|
1233
|
+
def initialize(matchcode=nil, compatiblespan=nil, matchtoken=nil)
|
1234
|
+
@MatchCode = matchcode
|
1235
|
+
@CompatibleSpan = compatiblespan
|
1236
|
+
@MatchToken = matchtoken
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
def deserialize(params)
|
1240
|
+
@MatchCode = params['MatchCode']
|
1241
|
+
@CompatibleSpan = params['CompatibleSpan']
|
1242
|
+
@MatchToken = params['MatchToken']
|
1243
|
+
end
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
# ModifyToken返回参数结构体
|
1247
|
+
class ModifyTokenResponse < TencentCloud::Common::AbstractModel
|
1248
|
+
# @param MatchToken: 成功设置的Token。
|
1249
|
+
# @type MatchToken: String
|
1250
|
+
# @param CompatibleSpan: 当前Token被替换后,GPM将持续推送原Token的时间。
|
1251
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1252
|
+
# @type CompatibleSpan: Integer
|
1253
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1254
|
+
# @type RequestId: String
|
1255
|
+
|
1256
|
+
attr_accessor :MatchToken, :CompatibleSpan, :RequestId
|
1257
|
+
|
1258
|
+
def initialize(matchtoken=nil, compatiblespan=nil, requestid=nil)
|
1259
|
+
@MatchToken = matchtoken
|
1260
|
+
@CompatibleSpan = compatiblespan
|
1261
|
+
@RequestId = requestid
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
def deserialize(params)
|
1265
|
+
@MatchToken = params['MatchToken']
|
1266
|
+
@CompatibleSpan = params['CompatibleSpan']
|
1267
|
+
@RequestId = params['RequestId']
|
1268
|
+
end
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
# 玩家信息。
|
1272
|
+
class Player < TencentCloud::Common::AbstractModel
|
1273
|
+
# @param Id: 玩家 PlayerId 长度 128 [a-zA-Z\d-\._]*
|
1274
|
+
# @type Id: String
|
1275
|
+
# @param Name: 玩家昵称,长度 128
|
1276
|
+
# @type Name: String
|
1277
|
+
# @param MatchAttributes: 玩家匹配属性,最多 10 条
|
1278
|
+
# @type MatchAttributes: Array
|
1279
|
+
# @param Team: 队伍名,可以传递不同队伍名,长度 128 [a-zA-Z0-9-\.]*
|
1280
|
+
# @type Team: String
|
1281
|
+
# @param CustomPlayerStatus: 自定义玩家状态 透传参数 [0, 99999]
|
1282
|
+
# @type CustomPlayerStatus: Integer
|
1283
|
+
# @param CustomProfile: 自定义玩家信息 透传参数 长度 1024
|
1284
|
+
# @type CustomProfile: String
|
1285
|
+
# @param RegionLatencies: 各区域延迟,最多 20 条
|
1286
|
+
# @type RegionLatencies: Array
|
1287
|
+
|
1288
|
+
attr_accessor :Id, :Name, :MatchAttributes, :Team, :CustomPlayerStatus, :CustomProfile, :RegionLatencies
|
1289
|
+
|
1290
|
+
def initialize(id=nil, name=nil, matchattributes=nil, team=nil, customplayerstatus=nil, customprofile=nil, regionlatencies=nil)
|
1291
|
+
@Id = id
|
1292
|
+
@Name = name
|
1293
|
+
@MatchAttributes = matchattributes
|
1294
|
+
@Team = team
|
1295
|
+
@CustomPlayerStatus = customplayerstatus
|
1296
|
+
@CustomProfile = customprofile
|
1297
|
+
@RegionLatencies = regionlatencies
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
def deserialize(params)
|
1301
|
+
@Id = params['Id']
|
1302
|
+
@Name = params['Name']
|
1303
|
+
unless params['MatchAttributes'].nil?
|
1304
|
+
@MatchAttributes = []
|
1305
|
+
params['MatchAttributes'].each do |i|
|
1306
|
+
matchattribute_tmp = MatchAttribute.new
|
1307
|
+
matchattribute_tmp.deserialize(i)
|
1308
|
+
@MatchAttributes << matchattribute_tmp
|
1309
|
+
end
|
1310
|
+
end
|
1311
|
+
@Team = params['Team']
|
1312
|
+
@CustomPlayerStatus = params['CustomPlayerStatus']
|
1313
|
+
@CustomProfile = params['CustomProfile']
|
1314
|
+
unless params['RegionLatencies'].nil?
|
1315
|
+
@RegionLatencies = []
|
1316
|
+
params['RegionLatencies'].each do |i|
|
1317
|
+
regionlatency_tmp = RegionLatency.new
|
1318
|
+
regionlatency_tmp.deserialize(i)
|
1319
|
+
@RegionLatencies << regionlatency_tmp
|
1320
|
+
end
|
1321
|
+
end
|
1322
|
+
end
|
1323
|
+
end
|
1324
|
+
|
1325
|
+
# 玩家到各区域的延迟
|
1326
|
+
class RegionLatency < TencentCloud::Common::AbstractModel
|
1327
|
+
# @param Region: 地域
|
1328
|
+
# ap-beijing 华北地区(北京)
|
1329
|
+
# ap-chengdu 西南地区(成都)
|
1330
|
+
# ap-guangzhou 华南地区(广州)
|
1331
|
+
# ap-hongkong 港澳台地区(中国香港)
|
1332
|
+
# ap-seoul 亚太地区(首尔)
|
1333
|
+
# ap-shanghai 华东地区(上海)
|
1334
|
+
# ap-singapore 东南亚地区(新加坡)
|
1335
|
+
# eu-frankfurt 欧洲地区(法兰克福)
|
1336
|
+
# na-siliconvalley 美国西部(硅谷)
|
1337
|
+
# na-toronto 北美地区(多伦多)
|
1338
|
+
# ap-mumbai 亚太地区(孟买)
|
1339
|
+
# na-ashburn 美国东部(弗吉尼亚)
|
1340
|
+
# ap-bangkok 亚太地区(曼谷)
|
1341
|
+
# eu-moscow 欧洲地区(莫斯科)
|
1342
|
+
# ap-tokyo 亚太地区(东京)
|
1343
|
+
# @type Region: String
|
1344
|
+
# @param Latency: 毫秒延迟 0~999999
|
1345
|
+
# @type Latency: Integer
|
1346
|
+
|
1347
|
+
attr_accessor :Region, :Latency
|
1348
|
+
|
1349
|
+
def initialize(region=nil, latency=nil)
|
1350
|
+
@Region = region
|
1351
|
+
@Latency = latency
|
1352
|
+
end
|
1353
|
+
|
1354
|
+
def deserialize(params)
|
1355
|
+
@Region = params['Region']
|
1356
|
+
@Latency = params['Latency']
|
1357
|
+
end
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
# 匹配概况
|
1361
|
+
class ReportOverviewData < TencentCloud::Common::AbstractModel
|
1362
|
+
# @param TotalTimes: 总次数
|
1363
|
+
# @type TotalTimes: String
|
1364
|
+
# @param SuccessPercent: 成功率
|
1365
|
+
# @type SuccessPercent: Float
|
1366
|
+
# @param TimeoutPercent: 超时率
|
1367
|
+
# @type TimeoutPercent: Float
|
1368
|
+
# @param FailPercent: 失败率
|
1369
|
+
# @type FailPercent: Float
|
1370
|
+
# @param AverageSec: 平均匹配时间
|
1371
|
+
# @type AverageSec: Float
|
1372
|
+
|
1373
|
+
attr_accessor :TotalTimes, :SuccessPercent, :TimeoutPercent, :FailPercent, :AverageSec
|
1374
|
+
|
1375
|
+
def initialize(totaltimes=nil, successpercent=nil, timeoutpercent=nil, failpercent=nil, averagesec=nil)
|
1376
|
+
@TotalTimes = totaltimes
|
1377
|
+
@SuccessPercent = successpercent
|
1378
|
+
@TimeoutPercent = timeoutpercent
|
1379
|
+
@FailPercent = failpercent
|
1380
|
+
@AverageSec = averagesec
|
1381
|
+
end
|
1382
|
+
|
1383
|
+
def deserialize(params)
|
1384
|
+
@TotalTimes = params['TotalTimes']
|
1385
|
+
@SuccessPercent = params['SuccessPercent']
|
1386
|
+
@TimeoutPercent = params['TimeoutPercent']
|
1387
|
+
@FailPercent = params['FailPercent']
|
1388
|
+
@AverageSec = params['AverageSec']
|
1389
|
+
end
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
# 统计数据之趋势数据
|
1393
|
+
class ReportTrendData < TencentCloud::Common::AbstractModel
|
1394
|
+
# @param TotalList: 总次数
|
1395
|
+
# @type TotalList: Array
|
1396
|
+
# @param CancelList: 被取消次数
|
1397
|
+
# @type CancelList: Array
|
1398
|
+
# @param SuccessList: 成功次数
|
1399
|
+
# @type SuccessList: Array
|
1400
|
+
# @param FailList: 失败次数
|
1401
|
+
# @type FailList: Array
|
1402
|
+
# @param TimeoutList: 超时次数
|
1403
|
+
# @type TimeoutList: Array
|
1404
|
+
# @param TimeList: 时间数组,单位:秒
|
1405
|
+
# @type TimeList: Array
|
1406
|
+
|
1407
|
+
attr_accessor :TotalList, :CancelList, :SuccessList, :FailList, :TimeoutList, :TimeList
|
1408
|
+
|
1409
|
+
def initialize(totallist=nil, cancellist=nil, successlist=nil, faillist=nil, timeoutlist=nil, timelist=nil)
|
1410
|
+
@TotalList = totallist
|
1411
|
+
@CancelList = cancellist
|
1412
|
+
@SuccessList = successlist
|
1413
|
+
@FailList = faillist
|
1414
|
+
@TimeoutList = timeoutlist
|
1415
|
+
@TimeList = timelist
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
def deserialize(params)
|
1419
|
+
@TotalList = params['TotalList']
|
1420
|
+
@CancelList = params['CancelList']
|
1421
|
+
@SuccessList = params['SuccessList']
|
1422
|
+
@FailList = params['FailList']
|
1423
|
+
@TimeoutList = params['TimeoutList']
|
1424
|
+
@TimeList = params['TimeList']
|
1425
|
+
end
|
1426
|
+
end
|
1427
|
+
|
1428
|
+
# 规则简单信息
|
1429
|
+
class RuleBriefInfo < TencentCloud::Common::AbstractModel
|
1430
|
+
# @param RuleName: 规则名称 [a-zA-Z\d-\.]*
|
1431
|
+
# @type RuleName: String
|
1432
|
+
# @param MatchCodeList: 关联匹配
|
1433
|
+
# @type MatchCodeList: Array
|
1434
|
+
# @param CreateTime: 创建时间
|
1435
|
+
# @type CreateTime: String
|
1436
|
+
# @param RuleCode: 规则code
|
1437
|
+
# @type RuleCode: String
|
1438
|
+
|
1439
|
+
attr_accessor :RuleName, :MatchCodeList, :CreateTime, :RuleCode
|
1440
|
+
|
1441
|
+
def initialize(rulename=nil, matchcodelist=nil, createtime=nil, rulecode=nil)
|
1442
|
+
@RuleName = rulename
|
1443
|
+
@MatchCodeList = matchcodelist
|
1444
|
+
@CreateTime = createtime
|
1445
|
+
@RuleCode = rulecode
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
def deserialize(params)
|
1449
|
+
@RuleName = params['RuleName']
|
1450
|
+
unless params['MatchCodeList'].nil?
|
1451
|
+
@MatchCodeList = []
|
1452
|
+
params['MatchCodeList'].each do |i|
|
1453
|
+
stringkv_tmp = StringKV.new
|
1454
|
+
stringkv_tmp.deserialize(i)
|
1455
|
+
@MatchCodeList << stringkv_tmp
|
1456
|
+
end
|
1457
|
+
end
|
1458
|
+
@CreateTime = params['CreateTime']
|
1459
|
+
@RuleCode = params['RuleCode']
|
1460
|
+
end
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
# 规则信息
|
1464
|
+
class RuleInfo < TencentCloud::Common::AbstractModel
|
1465
|
+
# @param RuleName: 规则名称 [a-zA-Z0-9-\.]*
|
1466
|
+
# @type RuleName: String
|
1467
|
+
# @param CreateTime: 创建时间
|
1468
|
+
# @type CreateTime: String
|
1469
|
+
# @param RuleDesc: 规则描述
|
1470
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1471
|
+
# @type RuleDesc: String
|
1472
|
+
# @param RuleScript: 规则脚本
|
1473
|
+
# @type RuleScript: String
|
1474
|
+
# @param Tags: 标签
|
1475
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1476
|
+
# @type Tags: Array
|
1477
|
+
# @param MatchCodeList: 关联匹配
|
1478
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1479
|
+
# @type MatchCodeList: Array
|
1480
|
+
# @param RuleCode: 规则code
|
1481
|
+
# @type RuleCode: String
|
1482
|
+
# @param Region: 地区
|
1483
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1484
|
+
# @type Region: String
|
1485
|
+
# @param AppId: 用户AppId
|
1486
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1487
|
+
# @type AppId: String
|
1488
|
+
# @param Uin: 用户Uin
|
1489
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1490
|
+
# @type Uin: String
|
1491
|
+
# @param CreateUin: 用户OwnerUin
|
1492
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1493
|
+
# @type CreateUin: String
|
1494
|
+
|
1495
|
+
attr_accessor :RuleName, :CreateTime, :RuleDesc, :RuleScript, :Tags, :MatchCodeList, :RuleCode, :Region, :AppId, :Uin, :CreateUin
|
1496
|
+
|
1497
|
+
def initialize(rulename=nil, createtime=nil, ruledesc=nil, rulescript=nil, tags=nil, matchcodelist=nil, rulecode=nil, region=nil, appid=nil, uin=nil, createuin=nil)
|
1498
|
+
@RuleName = rulename
|
1499
|
+
@CreateTime = createtime
|
1500
|
+
@RuleDesc = ruledesc
|
1501
|
+
@RuleScript = rulescript
|
1502
|
+
@Tags = tags
|
1503
|
+
@MatchCodeList = matchcodelist
|
1504
|
+
@RuleCode = rulecode
|
1505
|
+
@Region = region
|
1506
|
+
@AppId = appid
|
1507
|
+
@Uin = uin
|
1508
|
+
@CreateUin = createuin
|
1509
|
+
end
|
1510
|
+
|
1511
|
+
def deserialize(params)
|
1512
|
+
@RuleName = params['RuleName']
|
1513
|
+
@CreateTime = params['CreateTime']
|
1514
|
+
@RuleDesc = params['RuleDesc']
|
1515
|
+
@RuleScript = params['RuleScript']
|
1516
|
+
unless params['Tags'].nil?
|
1517
|
+
@Tags = []
|
1518
|
+
params['Tags'].each do |i|
|
1519
|
+
stringkv_tmp = StringKV.new
|
1520
|
+
stringkv_tmp.deserialize(i)
|
1521
|
+
@Tags << stringkv_tmp
|
1522
|
+
end
|
1523
|
+
end
|
1524
|
+
unless params['MatchCodeList'].nil?
|
1525
|
+
@MatchCodeList = []
|
1526
|
+
params['MatchCodeList'].each do |i|
|
1527
|
+
stringkv_tmp = StringKV.new
|
1528
|
+
stringkv_tmp.deserialize(i)
|
1529
|
+
@MatchCodeList << stringkv_tmp
|
1530
|
+
end
|
1531
|
+
end
|
1532
|
+
@RuleCode = params['RuleCode']
|
1533
|
+
@Region = params['Region']
|
1534
|
+
@AppId = params['AppId']
|
1535
|
+
@Uin = params['Uin']
|
1536
|
+
@CreateUin = params['CreateUin']
|
1537
|
+
end
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
# StartMatchingBackfill请求参数结构体
|
1541
|
+
class StartMatchingBackfillRequest < TencentCloud::Common::AbstractModel
|
1542
|
+
# @param MatchCode: 匹配code
|
1543
|
+
# @type MatchCode: String
|
1544
|
+
# @param Players: 玩家信息
|
1545
|
+
# @type Players: Array
|
1546
|
+
# @param GameServerSessionId: 游戏服务器回话 ID [1-256] 个ASCII 字符
|
1547
|
+
# @type GameServerSessionId: String
|
1548
|
+
# @param MatchTicketId: 匹配票据 Id 默认 "" 为空则由 GPM 自动生成 长度 [1, 128]
|
1549
|
+
# @type MatchTicketId: String
|
1550
|
+
|
1551
|
+
attr_accessor :MatchCode, :Players, :GameServerSessionId, :MatchTicketId
|
1552
|
+
|
1553
|
+
def initialize(matchcode=nil, players=nil, gameserversessionid=nil, matchticketid=nil)
|
1554
|
+
@MatchCode = matchcode
|
1555
|
+
@Players = players
|
1556
|
+
@GameServerSessionId = gameserversessionid
|
1557
|
+
@MatchTicketId = matchticketid
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
def deserialize(params)
|
1561
|
+
@MatchCode = params['MatchCode']
|
1562
|
+
unless params['Players'].nil?
|
1563
|
+
@Players = []
|
1564
|
+
params['Players'].each do |i|
|
1565
|
+
player_tmp = Player.new
|
1566
|
+
player_tmp.deserialize(i)
|
1567
|
+
@Players << player_tmp
|
1568
|
+
end
|
1569
|
+
end
|
1570
|
+
@GameServerSessionId = params['GameServerSessionId']
|
1571
|
+
@MatchTicketId = params['MatchTicketId']
|
1572
|
+
end
|
1573
|
+
end
|
1574
|
+
|
1575
|
+
# StartMatchingBackfill返回参数结构体
|
1576
|
+
class StartMatchingBackfillResponse < TencentCloud::Common::AbstractModel
|
1577
|
+
# @param MatchTicket: 匹配票据
|
1578
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1579
|
+
# @type MatchTicket: :class:`Tencentcloud::Gpm.v20200820.models.MatchTicket`
|
1580
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1581
|
+
# @type RequestId: String
|
1582
|
+
|
1583
|
+
attr_accessor :MatchTicket, :RequestId
|
1584
|
+
|
1585
|
+
def initialize(matchticket=nil, requestid=nil)
|
1586
|
+
@MatchTicket = matchticket
|
1587
|
+
@RequestId = requestid
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
def deserialize(params)
|
1591
|
+
unless params['MatchTicket'].nil?
|
1592
|
+
@MatchTicket = MatchTicket.new
|
1593
|
+
@MatchTicket.deserialize(params['MatchTicket'])
|
1594
|
+
end
|
1595
|
+
@RequestId = params['RequestId']
|
1596
|
+
end
|
1597
|
+
end
|
1598
|
+
|
1599
|
+
# StartMatching请求参数结构体
|
1600
|
+
class StartMatchingRequest < TencentCloud::Common::AbstractModel
|
1601
|
+
# @param MatchCode: 匹配 Code。
|
1602
|
+
# @type MatchCode: String
|
1603
|
+
# @param Players: 玩家信息 最多 200 条。
|
1604
|
+
# @type Players: Array
|
1605
|
+
# @param MatchTicketId: 匹配票据 ID 默认空字符串,为空则由 GPM 自动生成 长度 128,只能包含数字、字母、. 和 -
|
1606
|
+
# @type MatchTicketId: String
|
1607
|
+
|
1608
|
+
attr_accessor :MatchCode, :Players, :MatchTicketId
|
1609
|
+
|
1610
|
+
def initialize(matchcode=nil, players=nil, matchticketid=nil)
|
1611
|
+
@MatchCode = matchcode
|
1612
|
+
@Players = players
|
1613
|
+
@MatchTicketId = matchticketid
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
def deserialize(params)
|
1617
|
+
@MatchCode = params['MatchCode']
|
1618
|
+
unless params['Players'].nil?
|
1619
|
+
@Players = []
|
1620
|
+
params['Players'].each do |i|
|
1621
|
+
player_tmp = Player.new
|
1622
|
+
player_tmp.deserialize(i)
|
1623
|
+
@Players << player_tmp
|
1624
|
+
end
|
1625
|
+
end
|
1626
|
+
@MatchTicketId = params['MatchTicketId']
|
1627
|
+
end
|
1628
|
+
end
|
1629
|
+
|
1630
|
+
# StartMatching返回参数结构体
|
1631
|
+
class StartMatchingResponse < TencentCloud::Common::AbstractModel
|
1632
|
+
# @param ErrCode: 错误码。
|
1633
|
+
# @type ErrCode: Integer
|
1634
|
+
# @param MatchTicketId: 匹配票据 ID长度 128。
|
1635
|
+
# @type MatchTicketId: String
|
1636
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1637
|
+
# @type RequestId: String
|
1638
|
+
|
1639
|
+
attr_accessor :ErrCode, :MatchTicketId, :RequestId
|
1640
|
+
|
1641
|
+
def initialize(errcode=nil, matchticketid=nil, requestid=nil)
|
1642
|
+
@ErrCode = errcode
|
1643
|
+
@MatchTicketId = matchticketid
|
1644
|
+
@RequestId = requestid
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
def deserialize(params)
|
1648
|
+
@ErrCode = params['ErrCode']
|
1649
|
+
@MatchTicketId = params['MatchTicketId']
|
1650
|
+
@RequestId = params['RequestId']
|
1651
|
+
end
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
# string keyValue解构
|
1655
|
+
class StringKV < TencentCloud::Common::AbstractModel
|
1656
|
+
# @param Key: 键
|
1657
|
+
# @type Key: String
|
1658
|
+
# @param Value: 值
|
1659
|
+
# @type Value: String
|
1660
|
+
|
1661
|
+
attr_accessor :Key, :Value
|
1662
|
+
|
1663
|
+
def initialize(key=nil, value=nil)
|
1664
|
+
@Key = key
|
1665
|
+
@Value = value
|
1666
|
+
end
|
1667
|
+
|
1668
|
+
def deserialize(params)
|
1669
|
+
@Key = params['Key']
|
1670
|
+
@Value = params['Value']
|
1671
|
+
end
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
# 标签键值对
|
1675
|
+
class Tag < TencentCloud::Common::AbstractModel
|
1676
|
+
# @param TagKey: 标签键
|
1677
|
+
# @type TagKey: String
|
1678
|
+
# @param TagValue: 标签值
|
1679
|
+
# @type TagValue: String
|
1680
|
+
|
1681
|
+
attr_accessor :TagKey, :TagValue
|
1682
|
+
|
1683
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
1684
|
+
@TagKey = tagkey
|
1685
|
+
@TagValue = tagvalue
|
1686
|
+
end
|
1687
|
+
|
1688
|
+
def deserialize(params)
|
1689
|
+
@TagKey = params['TagKey']
|
1690
|
+
@TagValue = params['TagValue']
|
1691
|
+
end
|
1692
|
+
end
|
1693
|
+
|
1694
|
+
end
|
1695
|
+
end
|
1696
|
+
end
|
1697
|
+
|