tencentcloud-sdk-gme 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1609 @@
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 Gme
19
+ module V20180711
20
+ # 年龄语音识别子任务
21
+ class AgeDetectTask < TencentCloud::Common::AbstractModel
22
+ # @param DataId: 数据唯一ID
23
+ # @type DataId: String
24
+ # @param Url: 数据文件的url,为 urlencode 编码,音频文件格式支持的类型:.wav、.m4a、.amr、.mp3、.aac、.wma、.ogg
25
+ # @type Url: String
26
+
27
+ attr_accessor :DataId, :Url
28
+
29
+ def initialize(dataid=nil, url=nil)
30
+ @DataId = dataid
31
+ @Url = url
32
+ end
33
+
34
+ def deserialize(params)
35
+ @DataId = params['DataId']
36
+ @Url = params['Url']
37
+ end
38
+ end
39
+
40
+ # 年龄语音任务结果
41
+ class AgeDetectTaskResult < TencentCloud::Common::AbstractModel
42
+ # @param DataId: 数据唯一ID
43
+ # @type DataId: String
44
+ # @param Url: 数据文件的url
45
+ # @type Url: String
46
+ # @param Status: 任务状态,0: 已创建,1:运行中,2:正常结束,3:异常结束,4:运行超时
47
+ # @type Status: Integer
48
+ # @param Age: 任务结果:0: 成年,1:未成年,100:未知
49
+ # @type Age: Integer
50
+
51
+ attr_accessor :DataId, :Url, :Status, :Age
52
+
53
+ def initialize(dataid=nil, url=nil, status=nil, age=nil)
54
+ @DataId = dataid
55
+ @Url = url
56
+ @Status = status
57
+ @Age = age
58
+ end
59
+
60
+ def deserialize(params)
61
+ @DataId = params['DataId']
62
+ @Url = params['Url']
63
+ @Status = params['Status']
64
+ @Age = params['Age']
65
+ end
66
+ end
67
+
68
+ # 应用用量统计数据
69
+ class AppStatisticsItem < TencentCloud::Common::AbstractModel
70
+ # @param RealtimeSpeechStatisticsItem: 实时语音统计数据
71
+ # 注意:此字段可能返回 null,表示取不到有效值。
72
+ # @type RealtimeSpeechStatisticsItem: :class:`Tencentcloud::Gme.v20180711.models.RealTimeSpeechStatisticsItem`
73
+ # @param VoiceMessageStatisticsItem: 语音消息统计数据
74
+ # 注意:此字段可能返回 null,表示取不到有效值。
75
+ # @type VoiceMessageStatisticsItem: :class:`Tencentcloud::Gme.v20180711.models.VoiceMessageStatisticsItem`
76
+ # @param VoiceFilterStatisticsItem: 语音过滤统计数据
77
+ # 注意:此字段可能返回 null,表示取不到有效值。
78
+ # @type VoiceFilterStatisticsItem: :class:`Tencentcloud::Gme.v20180711.models.VoiceFilterStatisticsItem`
79
+ # @param Date: 统计时间
80
+ # @type Date: String
81
+
82
+ attr_accessor :RealtimeSpeechStatisticsItem, :VoiceMessageStatisticsItem, :VoiceFilterStatisticsItem, :Date
83
+
84
+ def initialize(realtimespeechstatisticsitem=nil, voicemessagestatisticsitem=nil, voicefilterstatisticsitem=nil, date=nil)
85
+ @RealtimeSpeechStatisticsItem = realtimespeechstatisticsitem
86
+ @VoiceMessageStatisticsItem = voicemessagestatisticsitem
87
+ @VoiceFilterStatisticsItem = voicefilterstatisticsitem
88
+ @Date = date
89
+ end
90
+
91
+ def deserialize(params)
92
+ unless params['RealtimeSpeechStatisticsItem'].nil?
93
+ @RealtimeSpeechStatisticsItem = RealTimeSpeechStatisticsItem.new
94
+ @RealtimeSpeechStatisticsItem.deserialize(params['RealtimeSpeechStatisticsItem'])
95
+ end
96
+ unless params['VoiceMessageStatisticsItem'].nil?
97
+ @VoiceMessageStatisticsItem = VoiceMessageStatisticsItem.new
98
+ @VoiceMessageStatisticsItem.deserialize(params['VoiceMessageStatisticsItem'])
99
+ end
100
+ unless params['VoiceFilterStatisticsItem'].nil?
101
+ @VoiceFilterStatisticsItem = VoiceFilterStatisticsItem.new
102
+ @VoiceFilterStatisticsItem.deserialize(params['VoiceFilterStatisticsItem'])
103
+ end
104
+ @Date = params['Date']
105
+ end
106
+ end
107
+
108
+ # 应用统计数据
109
+ class ApplicationDataStatistics < TencentCloud::Common::AbstractModel
110
+ # @param BizId: 应用ID
111
+ # @type BizId: Integer
112
+ # @param DauDataNum: Dau统计项数目
113
+ # @type DauDataNum: Integer
114
+ # @param DauDataMainland: 大陆地区Dau统计数据,单位人
115
+ # @type DauDataMainland: Array
116
+ # @param DauDataOversea: 海外地区Dau统计数据,单位人
117
+ # @type DauDataOversea: Array
118
+ # @param DauDataSum: 大陆和海外地区Dau统计数据汇总,单位人
119
+ # @type DauDataSum: Array
120
+ # @param DurationDataNum: 实时语音时长统计项数目
121
+ # @type DurationDataNum: Integer
122
+ # @param DurationDataMainland: 大陆地区实时语音时长统计数据,单位分钟
123
+ # @type DurationDataMainland: Array
124
+ # @param DurationDataOversea: 海外地区实时语音时长统计数据,单位分钟
125
+ # @type DurationDataOversea: Array
126
+ # @param DurationDataSum: 大陆和海外地区实时语音时长统计数据汇总,单位分钟
127
+ # @type DurationDataSum: Array
128
+ # @param PcuDataNum: Pcu统计项数目
129
+ # @type PcuDataNum: Integer
130
+ # @param PcuDataMainland: 大陆地区Pcu统计数据,单位人
131
+ # @type PcuDataMainland: Array
132
+ # @param PcuDataOversea: 海外地区Pcu统计数据,单位人
133
+ # @type PcuDataOversea: Array
134
+ # @param PcuDataSum: 大陆和海外地区Pcu统计数据汇总,单位人
135
+ # @type PcuDataSum: Array
136
+
137
+ attr_accessor :BizId, :DauDataNum, :DauDataMainland, :DauDataOversea, :DauDataSum, :DurationDataNum, :DurationDataMainland, :DurationDataOversea, :DurationDataSum, :PcuDataNum, :PcuDataMainland, :PcuDataOversea, :PcuDataSum
138
+
139
+ def initialize(bizid=nil, daudatanum=nil, daudatamainland=nil, daudataoversea=nil, daudatasum=nil, durationdatanum=nil, durationdatamainland=nil, durationdataoversea=nil, durationdatasum=nil, pcudatanum=nil, pcudatamainland=nil, pcudataoversea=nil, pcudatasum=nil)
140
+ @BizId = bizid
141
+ @DauDataNum = daudatanum
142
+ @DauDataMainland = daudatamainland
143
+ @DauDataOversea = daudataoversea
144
+ @DauDataSum = daudatasum
145
+ @DurationDataNum = durationdatanum
146
+ @DurationDataMainland = durationdatamainland
147
+ @DurationDataOversea = durationdataoversea
148
+ @DurationDataSum = durationdatasum
149
+ @PcuDataNum = pcudatanum
150
+ @PcuDataMainland = pcudatamainland
151
+ @PcuDataOversea = pcudataoversea
152
+ @PcuDataSum = pcudatasum
153
+ end
154
+
155
+ def deserialize(params)
156
+ @BizId = params['BizId']
157
+ @DauDataNum = params['DauDataNum']
158
+ unless params['DauDataMainland'].nil?
159
+ @DauDataMainland = []
160
+ params['DauDataMainland'].each do |i|
161
+ statisticsitem_tmp = StatisticsItem.new
162
+ statisticsitem_tmp.deserialize(i)
163
+ @DauDataMainland << statisticsitem_tmp
164
+ end
165
+ end
166
+ unless params['DauDataOversea'].nil?
167
+ @DauDataOversea = []
168
+ params['DauDataOversea'].each do |i|
169
+ statisticsitem_tmp = StatisticsItem.new
170
+ statisticsitem_tmp.deserialize(i)
171
+ @DauDataOversea << statisticsitem_tmp
172
+ end
173
+ end
174
+ unless params['DauDataSum'].nil?
175
+ @DauDataSum = []
176
+ params['DauDataSum'].each do |i|
177
+ statisticsitem_tmp = StatisticsItem.new
178
+ statisticsitem_tmp.deserialize(i)
179
+ @DauDataSum << statisticsitem_tmp
180
+ end
181
+ end
182
+ @DurationDataNum = params['DurationDataNum']
183
+ unless params['DurationDataMainland'].nil?
184
+ @DurationDataMainland = []
185
+ params['DurationDataMainland'].each do |i|
186
+ statisticsitem_tmp = StatisticsItem.new
187
+ statisticsitem_tmp.deserialize(i)
188
+ @DurationDataMainland << statisticsitem_tmp
189
+ end
190
+ end
191
+ unless params['DurationDataOversea'].nil?
192
+ @DurationDataOversea = []
193
+ params['DurationDataOversea'].each do |i|
194
+ statisticsitem_tmp = StatisticsItem.new
195
+ statisticsitem_tmp.deserialize(i)
196
+ @DurationDataOversea << statisticsitem_tmp
197
+ end
198
+ end
199
+ unless params['DurationDataSum'].nil?
200
+ @DurationDataSum = []
201
+ params['DurationDataSum'].each do |i|
202
+ statisticsitem_tmp = StatisticsItem.new
203
+ statisticsitem_tmp.deserialize(i)
204
+ @DurationDataSum << statisticsitem_tmp
205
+ end
206
+ end
207
+ @PcuDataNum = params['PcuDataNum']
208
+ unless params['PcuDataMainland'].nil?
209
+ @PcuDataMainland = []
210
+ params['PcuDataMainland'].each do |i|
211
+ statisticsitem_tmp = StatisticsItem.new
212
+ statisticsitem_tmp.deserialize(i)
213
+ @PcuDataMainland << statisticsitem_tmp
214
+ end
215
+ end
216
+ unless params['PcuDataOversea'].nil?
217
+ @PcuDataOversea = []
218
+ params['PcuDataOversea'].each do |i|
219
+ statisticsitem_tmp = StatisticsItem.new
220
+ statisticsitem_tmp.deserialize(i)
221
+ @PcuDataOversea << statisticsitem_tmp
222
+ end
223
+ end
224
+ unless params['PcuDataSum'].nil?
225
+ @PcuDataSum = []
226
+ params['PcuDataSum'].each do |i|
227
+ statisticsitem_tmp = StatisticsItem.new
228
+ statisticsitem_tmp.deserialize(i)
229
+ @PcuDataSum << statisticsitem_tmp
230
+ end
231
+ end
232
+ end
233
+ end
234
+
235
+ # CreateAgeDetectTask请求参数结构体
236
+ class CreateAgeDetectTaskRequest < TencentCloud::Common::AbstractModel
237
+ # @param BizId: 应用id
238
+ # @type BizId: Integer
239
+ # @param Tasks: 语音检测子任务列表,列表最多支持100个检测子任务。结构体中包含:
240
+ # <li>DataId:数据的唯一ID</li>
241
+ # <li>Url:数据文件的url,为 urlencode 编码,流式则为拉流地址</li>
242
+ # @type Tasks: Array
243
+ # @param Callback: 任务结束时gme后台会自动触发回调
244
+ # @type Callback: String
245
+
246
+ attr_accessor :BizId, :Tasks, :Callback
247
+
248
+ def initialize(bizid=nil, tasks=nil, callback=nil)
249
+ @BizId = bizid
250
+ @Tasks = tasks
251
+ @Callback = callback
252
+ end
253
+
254
+ def deserialize(params)
255
+ @BizId = params['BizId']
256
+ unless params['Tasks'].nil?
257
+ @Tasks = []
258
+ params['Tasks'].each do |i|
259
+ agedetecttask_tmp = AgeDetectTask.new
260
+ agedetecttask_tmp.deserialize(i)
261
+ @Tasks << agedetecttask_tmp
262
+ end
263
+ end
264
+ @Callback = params['Callback']
265
+ end
266
+ end
267
+
268
+ # CreateAgeDetectTask返回参数结构体
269
+ class CreateAgeDetectTaskResponse < TencentCloud::Common::AbstractModel
270
+ # @param TaskId: 本次任务提交后唯一id,用于获取任务运行结果
271
+ # @type TaskId: String
272
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
273
+ # @type RequestId: String
274
+
275
+ attr_accessor :TaskId, :RequestId
276
+
277
+ def initialize(taskid=nil, requestid=nil)
278
+ @TaskId = taskid
279
+ @RequestId = requestid
280
+ end
281
+
282
+ def deserialize(params)
283
+ @TaskId = params['TaskId']
284
+ @RequestId = params['RequestId']
285
+ end
286
+ end
287
+
288
+ # CreateApp请求参数结构体
289
+ class CreateAppRequest < TencentCloud::Common::AbstractModel
290
+ # @param AppName: 应用名称
291
+ # @type AppName: String
292
+ # @param ProjectId: 腾讯云项目ID,默认为0,表示默认项目
293
+ # @type ProjectId: Integer
294
+ # @param EngineList: 需要支持的引擎列表,默认全选。
295
+ # @type EngineList: Array
296
+ # @param RegionList: 服务区域列表,默认全选。
297
+ # @type RegionList: Array
298
+ # @param RealtimeSpeechConf: 实时语音服务配置数据
299
+ # @type RealtimeSpeechConf: :class:`Tencentcloud::Gme.v20180711.models.RealtimeSpeechConf`
300
+ # @param VoiceMessageConf: 语音消息及转文本服务配置数据
301
+ # @type VoiceMessageConf: :class:`Tencentcloud::Gme.v20180711.models.VoiceMessageConf`
302
+ # @param VoiceFilterConf: 语音分析服务配置数据
303
+ # @type VoiceFilterConf: :class:`Tencentcloud::Gme.v20180711.models.VoiceFilterConf`
304
+ # @param Tags: 需要添加的标签列表
305
+ # @type Tags: Array
306
+
307
+ attr_accessor :AppName, :ProjectId, :EngineList, :RegionList, :RealtimeSpeechConf, :VoiceMessageConf, :VoiceFilterConf, :Tags
308
+
309
+ def initialize(appname=nil, projectid=nil, enginelist=nil, regionlist=nil, realtimespeechconf=nil, voicemessageconf=nil, voicefilterconf=nil, tags=nil)
310
+ @AppName = appname
311
+ @ProjectId = projectid
312
+ @EngineList = enginelist
313
+ @RegionList = regionlist
314
+ @RealtimeSpeechConf = realtimespeechconf
315
+ @VoiceMessageConf = voicemessageconf
316
+ @VoiceFilterConf = voicefilterconf
317
+ @Tags = tags
318
+ end
319
+
320
+ def deserialize(params)
321
+ @AppName = params['AppName']
322
+ @ProjectId = params['ProjectId']
323
+ @EngineList = params['EngineList']
324
+ @RegionList = params['RegionList']
325
+ unless params['RealtimeSpeechConf'].nil?
326
+ @RealtimeSpeechConf = RealtimeSpeechConf.new
327
+ @RealtimeSpeechConf.deserialize(params['RealtimeSpeechConf'])
328
+ end
329
+ unless params['VoiceMessageConf'].nil?
330
+ @VoiceMessageConf = VoiceMessageConf.new
331
+ @VoiceMessageConf.deserialize(params['VoiceMessageConf'])
332
+ end
333
+ unless params['VoiceFilterConf'].nil?
334
+ @VoiceFilterConf = VoiceFilterConf.new
335
+ @VoiceFilterConf.deserialize(params['VoiceFilterConf'])
336
+ end
337
+ unless params['Tags'].nil?
338
+ @Tags = []
339
+ params['Tags'].each do |i|
340
+ tag_tmp = Tag.new
341
+ tag_tmp.deserialize(i)
342
+ @Tags << tag_tmp
343
+ end
344
+ end
345
+ end
346
+ end
347
+
348
+ # CreateApp的输出参数
349
+ class CreateAppResp < TencentCloud::Common::AbstractModel
350
+ # @param BizId: 应用ID,由后台自动生成。
351
+ # @type BizId: Integer
352
+ # @param AppName: 应用名称,透传输入参数的AppName
353
+ # @type AppName: String
354
+ # @param ProjectId: 项目ID,透传输入的ProjectId
355
+ # @type ProjectId: Integer
356
+ # @param SecretKey: 应用密钥,GME SDK初始化时使用
357
+ # @type SecretKey: String
358
+ # @param CreateTime: 服务创建时间戳
359
+ # @type CreateTime: Integer
360
+ # @param RealtimeSpeechConf: 实时语音服务配置数据
361
+ # @type RealtimeSpeechConf: :class:`Tencentcloud::Gme.v20180711.models.RealtimeSpeechConf`
362
+ # @param VoiceMessageConf: 语音消息及转文本服务配置数据
363
+ # @type VoiceMessageConf: :class:`Tencentcloud::Gme.v20180711.models.VoiceMessageConf`
364
+ # @param VoiceFilterConf: 语音分析服务配置数据
365
+ # @type VoiceFilterConf: :class:`Tencentcloud::Gme.v20180711.models.VoiceFilterConf`
366
+
367
+ attr_accessor :BizId, :AppName, :ProjectId, :SecretKey, :CreateTime, :RealtimeSpeechConf, :VoiceMessageConf, :VoiceFilterConf
368
+
369
+ def initialize(bizid=nil, appname=nil, projectid=nil, secretkey=nil, createtime=nil, realtimespeechconf=nil, voicemessageconf=nil, voicefilterconf=nil)
370
+ @BizId = bizid
371
+ @AppName = appname
372
+ @ProjectId = projectid
373
+ @SecretKey = secretkey
374
+ @CreateTime = createtime
375
+ @RealtimeSpeechConf = realtimespeechconf
376
+ @VoiceMessageConf = voicemessageconf
377
+ @VoiceFilterConf = voicefilterconf
378
+ end
379
+
380
+ def deserialize(params)
381
+ @BizId = params['BizId']
382
+ @AppName = params['AppName']
383
+ @ProjectId = params['ProjectId']
384
+ @SecretKey = params['SecretKey']
385
+ @CreateTime = params['CreateTime']
386
+ unless params['RealtimeSpeechConf'].nil?
387
+ @RealtimeSpeechConf = RealtimeSpeechConf.new
388
+ @RealtimeSpeechConf.deserialize(params['RealtimeSpeechConf'])
389
+ end
390
+ unless params['VoiceMessageConf'].nil?
391
+ @VoiceMessageConf = VoiceMessageConf.new
392
+ @VoiceMessageConf.deserialize(params['VoiceMessageConf'])
393
+ end
394
+ unless params['VoiceFilterConf'].nil?
395
+ @VoiceFilterConf = VoiceFilterConf.new
396
+ @VoiceFilterConf.deserialize(params['VoiceFilterConf'])
397
+ end
398
+ end
399
+ end
400
+
401
+ # CreateApp返回参数结构体
402
+ class CreateAppResponse < TencentCloud::Common::AbstractModel
403
+ # @param Data: 创建应用返回数据
404
+ # @type Data: :class:`Tencentcloud::Gme.v20180711.models.CreateAppResp`
405
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
406
+ # @type RequestId: String
407
+
408
+ attr_accessor :Data, :RequestId
409
+
410
+ def initialize(data=nil, requestid=nil)
411
+ @Data = data
412
+ @RequestId = requestid
413
+ end
414
+
415
+ def deserialize(params)
416
+ unless params['Data'].nil?
417
+ @Data = CreateAppResp.new
418
+ @Data.deserialize(params['Data'])
419
+ end
420
+ @RequestId = params['RequestId']
421
+ end
422
+ end
423
+
424
+ # DescribeAgeDetectTask请求参数结构体
425
+ class DescribeAgeDetectTaskRequest < TencentCloud::Common::AbstractModel
426
+ # @param BizId: 应用id
427
+ # @type BizId: Integer
428
+ # @param TaskId: 创建年龄语音识别任务时返回的taskid
429
+ # @type TaskId: String
430
+
431
+ attr_accessor :BizId, :TaskId
432
+
433
+ def initialize(bizid=nil, taskid=nil)
434
+ @BizId = bizid
435
+ @TaskId = taskid
436
+ end
437
+
438
+ def deserialize(params)
439
+ @BizId = params['BizId']
440
+ @TaskId = params['TaskId']
441
+ end
442
+ end
443
+
444
+ # DescribeAgeDetectTask返回参数结构体
445
+ class DescribeAgeDetectTaskResponse < TencentCloud::Common::AbstractModel
446
+ # @param TaskId: 任务ID
447
+ # @type TaskId: String
448
+ # @param Results: 语音检测返回。Results 字段是 JSON 数组,每一个元素包含:
449
+ # DataId: 请求中对应的 DataId。
450
+ # Url :该请求中对应的 Url。
451
+ # Status :子任务状态,0:已创建,1:运行中,2:已完成,3:任务异常,4:任务超时。
452
+ # Age :子任务完成后的结果,0:成年人,1:未成年人,100:未知结果。
453
+ # @type Results: Array
454
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
455
+ # @type RequestId: String
456
+
457
+ attr_accessor :TaskId, :Results, :RequestId
458
+
459
+ def initialize(taskid=nil, results=nil, requestid=nil)
460
+ @TaskId = taskid
461
+ @Results = results
462
+ @RequestId = requestid
463
+ end
464
+
465
+ def deserialize(params)
466
+ @TaskId = params['TaskId']
467
+ unless params['Results'].nil?
468
+ @Results = []
469
+ params['Results'].each do |i|
470
+ agedetecttaskresult_tmp = AgeDetectTaskResult.new
471
+ agedetecttaskresult_tmp.deserialize(i)
472
+ @Results << agedetecttaskresult_tmp
473
+ end
474
+ end
475
+ @RequestId = params['RequestId']
476
+ end
477
+ end
478
+
479
+ # DescribeAppStatistics请求参数结构体
480
+ class DescribeAppStatisticsRequest < TencentCloud::Common::AbstractModel
481
+ # @param BizId: GME应用ID
482
+ # @type BizId: Integer
483
+ # @param StartDate: 数据开始时间,东八区时间,格式: 年-月-日,如: 2018-07-13
484
+ # @type StartDate: String
485
+ # @param EndDate: 数据结束时间,东八区时间,格式: 年-月-日,如: 2018-07-13
486
+ # @type EndDate: String
487
+ # @param Services: 要查询的服务列表,取值:RealTimeSpeech/VoiceMessage/VoiceFilter
488
+ # @type Services: Array
489
+
490
+ attr_accessor :BizId, :StartDate, :EndDate, :Services
491
+
492
+ def initialize(bizid=nil, startdate=nil, enddate=nil, services=nil)
493
+ @BizId = bizid
494
+ @StartDate = startdate
495
+ @EndDate = enddate
496
+ @Services = services
497
+ end
498
+
499
+ def deserialize(params)
500
+ @BizId = params['BizId']
501
+ @StartDate = params['StartDate']
502
+ @EndDate = params['EndDate']
503
+ @Services = params['Services']
504
+ end
505
+ end
506
+
507
+ # 获取应用用量统计数据输出参数
508
+ class DescribeAppStatisticsResp < TencentCloud::Common::AbstractModel
509
+ # @param AppStatistics: 应用用量统计数据
510
+ # @type AppStatistics: Array
511
+
512
+ attr_accessor :AppStatistics
513
+
514
+ def initialize(appstatistics=nil)
515
+ @AppStatistics = appstatistics
516
+ end
517
+
518
+ def deserialize(params)
519
+ unless params['AppStatistics'].nil?
520
+ @AppStatistics = []
521
+ params['AppStatistics'].each do |i|
522
+ appstatisticsitem_tmp = AppStatisticsItem.new
523
+ appstatisticsitem_tmp.deserialize(i)
524
+ @AppStatistics << appstatisticsitem_tmp
525
+ end
526
+ end
527
+ end
528
+ end
529
+
530
+ # DescribeAppStatistics返回参数结构体
531
+ class DescribeAppStatisticsResponse < TencentCloud::Common::AbstractModel
532
+ # @param Data: 应用用量统计数据
533
+ # @type Data: :class:`Tencentcloud::Gme.v20180711.models.DescribeAppStatisticsResp`
534
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
535
+ # @type RequestId: String
536
+
537
+ attr_accessor :Data, :RequestId
538
+
539
+ def initialize(data=nil, requestid=nil)
540
+ @Data = data
541
+ @RequestId = requestid
542
+ end
543
+
544
+ def deserialize(params)
545
+ unless params['Data'].nil?
546
+ @Data = DescribeAppStatisticsResp.new
547
+ @Data.deserialize(params['Data'])
548
+ end
549
+ @RequestId = params['RequestId']
550
+ end
551
+ end
552
+
553
+ # DescribeApplicationData请求参数结构体
554
+ class DescribeApplicationDataRequest < TencentCloud::Common::AbstractModel
555
+ # @param BizId: 应用ID
556
+ # @type BizId: Integer
557
+ # @param StartDate: 数据开始时间,格式为 年-月-日,如: 2018-07-13
558
+ # @type StartDate: String
559
+ # @param EndDate: 数据结束时间,格式为 年-月-日,如: 2018-07-13
560
+ # @type EndDate: String
561
+
562
+ attr_accessor :BizId, :StartDate, :EndDate
563
+
564
+ def initialize(bizid=nil, startdate=nil, enddate=nil)
565
+ @BizId = bizid
566
+ @StartDate = startdate
567
+ @EndDate = enddate
568
+ end
569
+
570
+ def deserialize(params)
571
+ @BizId = params['BizId']
572
+ @StartDate = params['StartDate']
573
+ @EndDate = params['EndDate']
574
+ end
575
+ end
576
+
577
+ # DescribeApplicationData返回参数结构体
578
+ class DescribeApplicationDataResponse < TencentCloud::Common::AbstractModel
579
+ # @param Data: 应用统计数据
580
+ # @type Data: :class:`Tencentcloud::Gme.v20180711.models.ApplicationDataStatistics`
581
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
582
+ # @type RequestId: String
583
+
584
+ attr_accessor :Data, :RequestId
585
+
586
+ def initialize(data=nil, requestid=nil)
587
+ @Data = data
588
+ @RequestId = requestid
589
+ end
590
+
591
+ def deserialize(params)
592
+ unless params['Data'].nil?
593
+ @Data = ApplicationDataStatistics.new
594
+ @Data.deserialize(params['Data'])
595
+ end
596
+ @RequestId = params['RequestId']
597
+ end
598
+ end
599
+
600
+ # DescribeFilterResultList请求参数结构体
601
+ class DescribeFilterResultListRequest < TencentCloud::Common::AbstractModel
602
+ # @param BizId: 应用ID
603
+ # @type BizId: Integer
604
+ # @param StartDate: 开始时间,格式为 年-月-日,如: 2018-07-11
605
+ # @type StartDate: String
606
+ # @param EndDate: 结束时间,格式为 年-月-日,如: 2018-07-11
607
+ # @type EndDate: String
608
+ # @param Offset: 偏移量,默认值为0。
609
+ # @type Offset: Integer
610
+ # @param Limit: 返回数量,默认值为10,最大值为100。
611
+ # @type Limit: Integer
612
+
613
+ attr_accessor :BizId, :StartDate, :EndDate, :Offset, :Limit
614
+
615
+ def initialize(bizid=nil, startdate=nil, enddate=nil, offset=nil, limit=nil)
616
+ @BizId = bizid
617
+ @StartDate = startdate
618
+ @EndDate = enddate
619
+ @Offset = offset
620
+ @Limit = limit
621
+ end
622
+
623
+ def deserialize(params)
624
+ @BizId = params['BizId']
625
+ @StartDate = params['StartDate']
626
+ @EndDate = params['EndDate']
627
+ @Offset = params['Offset']
628
+ @Limit = params['Limit']
629
+ end
630
+ end
631
+
632
+ # DescribeFilterResultList返回参数结构体
633
+ class DescribeFilterResultListResponse < TencentCloud::Common::AbstractModel
634
+ # @param TotalCount: 过滤结果总数
635
+ # 注意:此字段可能返回 null,表示取不到有效值。
636
+ # @type TotalCount: Integer
637
+ # @param Data: 当前分页过滤结果列表
638
+ # 注意:此字段可能返回 null,表示取不到有效值。
639
+ # @type Data: Array
640
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
641
+ # @type RequestId: String
642
+
643
+ attr_accessor :TotalCount, :Data, :RequestId
644
+
645
+ def initialize(totalcount=nil, data=nil, requestid=nil)
646
+ @TotalCount = totalcount
647
+ @Data = data
648
+ @RequestId = requestid
649
+ end
650
+
651
+ def deserialize(params)
652
+ @TotalCount = params['TotalCount']
653
+ unless params['Data'].nil?
654
+ @Data = []
655
+ params['Data'].each do |i|
656
+ voicefilterinfo_tmp = VoiceFilterInfo.new
657
+ voicefilterinfo_tmp.deserialize(i)
658
+ @Data << voicefilterinfo_tmp
659
+ end
660
+ end
661
+ @RequestId = params['RequestId']
662
+ end
663
+ end
664
+
665
+ # DescribeFilterResult请求参数结构体
666
+ class DescribeFilterResultRequest < TencentCloud::Common::AbstractModel
667
+ # @param BizId: 应用ID
668
+ # @type BizId: Integer
669
+ # @param FileId: 文件ID
670
+ # @type FileId: String
671
+
672
+ attr_accessor :BizId, :FileId
673
+
674
+ def initialize(bizid=nil, fileid=nil)
675
+ @BizId = bizid
676
+ @FileId = fileid
677
+ end
678
+
679
+ def deserialize(params)
680
+ @BizId = params['BizId']
681
+ @FileId = params['FileId']
682
+ end
683
+ end
684
+
685
+ # DescribeFilterResult返回参数结构体
686
+ class DescribeFilterResultResponse < TencentCloud::Common::AbstractModel
687
+ # @param Data: 过滤结果
688
+ # 注意:此字段可能返回 null,表示取不到有效值。
689
+ # @type Data: :class:`Tencentcloud::Gme.v20180711.models.VoiceFilterInfo`
690
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
691
+ # @type RequestId: String
692
+
693
+ attr_accessor :Data, :RequestId
694
+
695
+ def initialize(data=nil, requestid=nil)
696
+ @Data = data
697
+ @RequestId = requestid
698
+ end
699
+
700
+ def deserialize(params)
701
+ unless params['Data'].nil?
702
+ @Data = VoiceFilterInfo.new
703
+ @Data.deserialize(params['Data'])
704
+ end
705
+ @RequestId = params['RequestId']
706
+ end
707
+ end
708
+
709
+ # DescribeRoomInfo请求参数结构体
710
+ class DescribeRoomInfoRequest < TencentCloud::Common::AbstractModel
711
+ # @param SdkAppId: 应用ID,登录[控制台 - 服务管理](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
712
+ # @type SdkAppId: Integer
713
+ # @param RoomIds: 房间号列表,最大不能超过10个
714
+ # @type RoomIds: Array
715
+
716
+ attr_accessor :SdkAppId, :RoomIds
717
+
718
+ def initialize(sdkappid=nil, roomids=nil)
719
+ @SdkAppId = sdkappid
720
+ @RoomIds = roomids
721
+ end
722
+
723
+ def deserialize(params)
724
+ @SdkAppId = params['SdkAppId']
725
+ @RoomIds = params['RoomIds']
726
+ end
727
+ end
728
+
729
+ # DescribeRoomInfo返回参数结构体
730
+ class DescribeRoomInfoResponse < TencentCloud::Common::AbstractModel
731
+ # @param Result: 操作结果, 0成功, 非0失败
732
+ # 注意:此字段可能返回 null,表示取不到有效值。
733
+ # @type Result: Integer
734
+ # @param RoomUsers: 房间用户信息
735
+ # 注意:此字段可能返回 null,表示取不到有效值。
736
+ # @type RoomUsers: Array
737
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
738
+ # @type RequestId: String
739
+
740
+ attr_accessor :Result, :RoomUsers, :RequestId
741
+
742
+ def initialize(result=nil, roomusers=nil, requestid=nil)
743
+ @Result = result
744
+ @RoomUsers = roomusers
745
+ @RequestId = requestid
746
+ end
747
+
748
+ def deserialize(params)
749
+ @Result = params['Result']
750
+ unless params['RoomUsers'].nil?
751
+ @RoomUsers = []
752
+ params['RoomUsers'].each do |i|
753
+ roomuser_tmp = RoomUser.new
754
+ roomuser_tmp.deserialize(i)
755
+ @RoomUsers << roomuser_tmp
756
+ end
757
+ end
758
+ @RequestId = params['RequestId']
759
+ end
760
+ end
761
+
762
+ # 语音检测结果返回
763
+ class DescribeScanResult < TencentCloud::Common::AbstractModel
764
+ # @param Code: 业务返回码
765
+ # @type Code: Integer
766
+ # @param DataId: 数据唯一 ID
767
+ # @type DataId: String
768
+ # @param ScanFinishTime: 检测完成的时间戳
769
+ # @type ScanFinishTime: Integer
770
+ # @param HitFlag: 是否违规
771
+ # @type HitFlag: Boolean
772
+ # @param Live: 是否为流
773
+ # @type Live: Boolean
774
+ # @param Msg: 业务返回描述
775
+ # 注意:此字段可能返回 null,表示取不到有效值。
776
+ # @type Msg: String
777
+ # @param ScanPiece: 检测结果,Code 为 0 时返回
778
+ # 注意:此字段可能返回 null,表示取不到有效值。
779
+ # @type ScanPiece: Array
780
+ # @param ScanStartTime: 提交检测的时间戳
781
+ # @type ScanStartTime: Integer
782
+ # @param Scenes: 语音检测场景,对应请求时的 Scene
783
+ # @type Scenes: Array
784
+ # @param TaskId: 语音检测任务 ID,由后台分配
785
+ # @type TaskId: String
786
+ # @param Url: 文件或接流地址
787
+ # @type Url: String
788
+ # @param Status: 检测任务执行结果状态,分别为:
789
+ # <li>Start: 任务开始</li>
790
+ # <li>Success: 成功结束</li>
791
+ # <li>Error: 异常</li>
792
+ # @type Status: String
793
+ # @param BizId: 提交检测的应用 ID
794
+ # @type BizId: Integer
795
+
796
+ attr_accessor :Code, :DataId, :ScanFinishTime, :HitFlag, :Live, :Msg, :ScanPiece, :ScanStartTime, :Scenes, :TaskId, :Url, :Status, :BizId
797
+
798
+ def initialize(code=nil, dataid=nil, scanfinishtime=nil, hitflag=nil, live=nil, msg=nil, scanpiece=nil, scanstarttime=nil, scenes=nil, taskid=nil, url=nil, status=nil, bizid=nil)
799
+ @Code = code
800
+ @DataId = dataid
801
+ @ScanFinishTime = scanfinishtime
802
+ @HitFlag = hitflag
803
+ @Live = live
804
+ @Msg = msg
805
+ @ScanPiece = scanpiece
806
+ @ScanStartTime = scanstarttime
807
+ @Scenes = scenes
808
+ @TaskId = taskid
809
+ @Url = url
810
+ @Status = status
811
+ @BizId = bizid
812
+ end
813
+
814
+ def deserialize(params)
815
+ @Code = params['Code']
816
+ @DataId = params['DataId']
817
+ @ScanFinishTime = params['ScanFinishTime']
818
+ @HitFlag = params['HitFlag']
819
+ @Live = params['Live']
820
+ @Msg = params['Msg']
821
+ unless params['ScanPiece'].nil?
822
+ @ScanPiece = []
823
+ params['ScanPiece'].each do |i|
824
+ scanpiece_tmp = ScanPiece.new
825
+ scanpiece_tmp.deserialize(i)
826
+ @ScanPiece << scanpiece_tmp
827
+ end
828
+ end
829
+ @ScanStartTime = params['ScanStartTime']
830
+ @Scenes = params['Scenes']
831
+ @TaskId = params['TaskId']
832
+ @Url = params['Url']
833
+ @Status = params['Status']
834
+ @BizId = params['BizId']
835
+ end
836
+ end
837
+
838
+ # DescribeScanResultList请求参数结构体
839
+ class DescribeScanResultListRequest < TencentCloud::Common::AbstractModel
840
+ # @param BizId: 应用 ID,登录[控制台](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
841
+ # @type BizId: Integer
842
+ # @param TaskIdList: 查询的任务 ID 列表,任务 ID 列表最多支持 100 个。
843
+ # @type TaskIdList: Array
844
+ # @param Limit: 任务返回结果数量,默认10,上限500。大文件任务忽略此参数,返回全量结果
845
+ # @type Limit: Integer
846
+
847
+ attr_accessor :BizId, :TaskIdList, :Limit
848
+
849
+ def initialize(bizid=nil, taskidlist=nil, limit=nil)
850
+ @BizId = bizid
851
+ @TaskIdList = taskidlist
852
+ @Limit = limit
853
+ end
854
+
855
+ def deserialize(params)
856
+ @BizId = params['BizId']
857
+ @TaskIdList = params['TaskIdList']
858
+ @Limit = params['Limit']
859
+ end
860
+ end
861
+
862
+ # DescribeScanResultList返回参数结构体
863
+ class DescribeScanResultListResponse < TencentCloud::Common::AbstractModel
864
+ # @param Data: 要查询的语音检测任务的结果
865
+ # 注意:此字段可能返回 null,表示取不到有效值。
866
+ # @type Data: Array
867
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
868
+ # @type RequestId: String
869
+
870
+ attr_accessor :Data, :RequestId
871
+
872
+ def initialize(data=nil, requestid=nil)
873
+ @Data = data
874
+ @RequestId = requestid
875
+ end
876
+
877
+ def deserialize(params)
878
+ unless params['Data'].nil?
879
+ @Data = []
880
+ params['Data'].each do |i|
881
+ describescanresult_tmp = DescribeScanResult.new
882
+ describescanresult_tmp.deserialize(i)
883
+ @Data << describescanresult_tmp
884
+ end
885
+ end
886
+ @RequestId = params['RequestId']
887
+ end
888
+ end
889
+
890
+ # DescribeUserInAndOutTime请求参数结构体
891
+ class DescribeUserInAndOutTimeRequest < TencentCloud::Common::AbstractModel
892
+ # @param BizId: 应用ID
893
+ # @type BizId: Integer
894
+ # @param RoomId: 房间ID
895
+ # @type RoomId: Integer
896
+ # @param UserId: 用户ID
897
+ # @type UserId: Integer
898
+
899
+ attr_accessor :BizId, :RoomId, :UserId
900
+
901
+ def initialize(bizid=nil, roomid=nil, userid=nil)
902
+ @BizId = bizid
903
+ @RoomId = roomid
904
+ @UserId = userid
905
+ end
906
+
907
+ def deserialize(params)
908
+ @BizId = params['BizId']
909
+ @RoomId = params['RoomId']
910
+ @UserId = params['UserId']
911
+ end
912
+ end
913
+
914
+ # DescribeUserInAndOutTime返回参数结构体
915
+ class DescribeUserInAndOutTimeResponse < TencentCloud::Common::AbstractModel
916
+ # @param InOutList: 用户在房间得进出时间列表
917
+ # @type InOutList: Array
918
+ # @param Duration: 用户在房间中总时长
919
+ # @type Duration: Integer
920
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
921
+ # @type RequestId: String
922
+
923
+ attr_accessor :InOutList, :Duration, :RequestId
924
+
925
+ def initialize(inoutlist=nil, duration=nil, requestid=nil)
926
+ @InOutList = inoutlist
927
+ @Duration = duration
928
+ @RequestId = requestid
929
+ end
930
+
931
+ def deserialize(params)
932
+ unless params['InOutList'].nil?
933
+ @InOutList = []
934
+ params['InOutList'].each do |i|
935
+ inouttimeinfo_tmp = InOutTimeInfo.new
936
+ inouttimeinfo_tmp.deserialize(i)
937
+ @InOutList << inouttimeinfo_tmp
938
+ end
939
+ end
940
+ @Duration = params['Duration']
941
+ @RequestId = params['RequestId']
942
+ end
943
+ end
944
+
945
+ # 用户进出房间信息
946
+ class InOutTimeInfo < TencentCloud::Common::AbstractModel
947
+ # @param StartTime: 进入房间时间
948
+ # @type StartTime: Integer
949
+ # @param EndTime: 退出房间时间
950
+ # @type EndTime: Integer
951
+
952
+ attr_accessor :StartTime, :EndTime
953
+
954
+ def initialize(starttime=nil, endtime=nil)
955
+ @StartTime = starttime
956
+ @EndTime = endtime
957
+ end
958
+
959
+ def deserialize(params)
960
+ @StartTime = params['StartTime']
961
+ @EndTime = params['EndTime']
962
+ end
963
+ end
964
+
965
+ # ModifyAppStatus请求参数结构体
966
+ class ModifyAppStatusRequest < TencentCloud::Common::AbstractModel
967
+ # @param BizId: 应用ID,创建应用后由后台生成并返回。
968
+ # @type BizId: Integer
969
+ # @param Status: 应用状态,取值:open/close
970
+ # @type Status: String
971
+
972
+ attr_accessor :BizId, :Status
973
+
974
+ def initialize(bizid=nil, status=nil)
975
+ @BizId = bizid
976
+ @Status = status
977
+ end
978
+
979
+ def deserialize(params)
980
+ @BizId = params['BizId']
981
+ @Status = params['Status']
982
+ end
983
+ end
984
+
985
+ # ModifyAppStatus接口输出参数
986
+ class ModifyAppStatusResp < TencentCloud::Common::AbstractModel
987
+ # @param BizId: GME应用ID
988
+ # @type BizId: Integer
989
+ # @param Status: 应用状态,取值:open/close
990
+ # @type Status: String
991
+
992
+ attr_accessor :BizId, :Status
993
+
994
+ def initialize(bizid=nil, status=nil)
995
+ @BizId = bizid
996
+ @Status = status
997
+ end
998
+
999
+ def deserialize(params)
1000
+ @BizId = params['BizId']
1001
+ @Status = params['Status']
1002
+ end
1003
+ end
1004
+
1005
+ # ModifyAppStatus返回参数结构体
1006
+ class ModifyAppStatusResponse < TencentCloud::Common::AbstractModel
1007
+ # @param Data: 修改应用开关状态返回数据
1008
+ # @type Data: :class:`Tencentcloud::Gme.v20180711.models.ModifyAppStatusResp`
1009
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1010
+ # @type RequestId: String
1011
+
1012
+ attr_accessor :Data, :RequestId
1013
+
1014
+ def initialize(data=nil, requestid=nil)
1015
+ @Data = data
1016
+ @RequestId = requestid
1017
+ end
1018
+
1019
+ def deserialize(params)
1020
+ unless params['Data'].nil?
1021
+ @Data = ModifyAppStatusResp.new
1022
+ @Data.deserialize(params['Data'])
1023
+ end
1024
+ @RequestId = params['RequestId']
1025
+ end
1026
+ end
1027
+
1028
+ # ModifyRoomInfo请求参数结构体
1029
+ class ModifyRoomInfoRequest < TencentCloud::Common::AbstractModel
1030
+ # @param SdkAppId: 应用ID,登录[控制台 - 服务管理](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
1031
+ # @type SdkAppId: Integer
1032
+ # @param RoomId: 房间id
1033
+ # @type RoomId: Integer
1034
+ # @param OperationType: 301 启动推流
1035
+ # 302 停止推流
1036
+ # 303 重置RTMP连接
1037
+ # @type OperationType: Integer
1038
+
1039
+ attr_accessor :SdkAppId, :RoomId, :OperationType
1040
+
1041
+ def initialize(sdkappid=nil, roomid=nil, operationtype=nil)
1042
+ @SdkAppId = sdkappid
1043
+ @RoomId = roomid
1044
+ @OperationType = operationtype
1045
+ end
1046
+
1047
+ def deserialize(params)
1048
+ @SdkAppId = params['SdkAppId']
1049
+ @RoomId = params['RoomId']
1050
+ @OperationType = params['OperationType']
1051
+ end
1052
+ end
1053
+
1054
+ # ModifyRoomInfo返回参数结构体
1055
+ class ModifyRoomInfoResponse < TencentCloud::Common::AbstractModel
1056
+ # @param Result: 操作结果, 0成功, 非0失败
1057
+ # 注意:此字段可能返回 null,表示取不到有效值。
1058
+ # @type Result: Integer
1059
+ # @param ErrMsg: 错误信息
1060
+ # 注意:此字段可能返回 null,表示取不到有效值。
1061
+ # @type ErrMsg: String
1062
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1063
+ # @type RequestId: String
1064
+
1065
+ attr_accessor :Result, :ErrMsg, :RequestId
1066
+
1067
+ def initialize(result=nil, errmsg=nil, requestid=nil)
1068
+ @Result = result
1069
+ @ErrMsg = errmsg
1070
+ @RequestId = requestid
1071
+ end
1072
+
1073
+ def deserialize(params)
1074
+ @Result = params['Result']
1075
+ @ErrMsg = params['ErrMsg']
1076
+ @RequestId = params['RequestId']
1077
+ end
1078
+ end
1079
+
1080
+ # 实时语音用量统计数据
1081
+ class RealTimeSpeechStatisticsItem < TencentCloud::Common::AbstractModel
1082
+ # @param MainLandDau: 大陆地区DAU
1083
+ # @type MainLandDau: Integer
1084
+ # @param MainLandPcu: 大陆地区PCU
1085
+ # @type MainLandPcu: Integer
1086
+ # @param MainLandDuration: 大陆地区总使用时长,单位为min
1087
+ # @type MainLandDuration: Integer
1088
+ # @param OverseaDau: 海外地区DAU
1089
+ # @type OverseaDau: Integer
1090
+ # @param OverseaPcu: 海外地区PCU
1091
+ # @type OverseaPcu: Integer
1092
+ # @param OverseaDuration: 海外地区总使用时长,单位为min
1093
+ # @type OverseaDuration: Integer
1094
+
1095
+ attr_accessor :MainLandDau, :MainLandPcu, :MainLandDuration, :OverseaDau, :OverseaPcu, :OverseaDuration
1096
+
1097
+ def initialize(mainlanddau=nil, mainlandpcu=nil, mainlandduration=nil, overseadau=nil, overseapcu=nil, overseaduration=nil)
1098
+ @MainLandDau = mainlanddau
1099
+ @MainLandPcu = mainlandpcu
1100
+ @MainLandDuration = mainlandduration
1101
+ @OverseaDau = overseadau
1102
+ @OverseaPcu = overseapcu
1103
+ @OverseaDuration = overseaduration
1104
+ end
1105
+
1106
+ def deserialize(params)
1107
+ @MainLandDau = params['MainLandDau']
1108
+ @MainLandPcu = params['MainLandPcu']
1109
+ @MainLandDuration = params['MainLandDuration']
1110
+ @OverseaDau = params['OverseaDau']
1111
+ @OverseaPcu = params['OverseaPcu']
1112
+ @OverseaDuration = params['OverseaDuration']
1113
+ end
1114
+ end
1115
+
1116
+ # 实时语音配置数据
1117
+ class RealtimeSpeechConf < TencentCloud::Common::AbstractModel
1118
+ # @param Status: 实时语音服务开关,取值:open/close
1119
+ # @type Status: String
1120
+ # @param Quality: 实时语音音质类型,取值:high-高音质
1121
+ # @type Quality: String
1122
+
1123
+ attr_accessor :Status, :Quality
1124
+
1125
+ def initialize(status=nil, quality=nil)
1126
+ @Status = status
1127
+ @Quality = quality
1128
+ end
1129
+
1130
+ def deserialize(params)
1131
+ @Status = params['Status']
1132
+ @Quality = params['Quality']
1133
+ end
1134
+ end
1135
+
1136
+ # 房间内用户信息
1137
+ class RoomUser < TencentCloud::Common::AbstractModel
1138
+ # @param RoomId: 房间id
1139
+ # @type RoomId: Integer
1140
+ # @param Uins: 房间里用户uin列表
1141
+ # 注意:此字段可能返回 null,表示取不到有效值。
1142
+ # @type Uins: Array
1143
+
1144
+ attr_accessor :RoomId, :Uins
1145
+
1146
+ def initialize(roomid=nil, uins=nil)
1147
+ @RoomId = roomid
1148
+ @Uins = uins
1149
+ end
1150
+
1151
+ def deserialize(params)
1152
+ @RoomId = params['RoomId']
1153
+ @Uins = params['Uins']
1154
+ end
1155
+ end
1156
+
1157
+ # 语音检测详情
1158
+ class ScanDetail < TencentCloud::Common::AbstractModel
1159
+ # @param Label: 违规场景,参照<a href="https://cloud.tencent.com/document/product/607/37622#Label_Value">Label</a>定义
1160
+ # @type Label: String
1161
+ # @param Rate: 该场景下概率[0.00,100.00],分值越大违规概率越高
1162
+ # @type Rate: String
1163
+ # @param KeyWord: 违规关键字
1164
+ # @type KeyWord: String
1165
+ # @param StartTime: 关键字在音频的开始时间,从0开始的偏移量,单位为毫秒
1166
+ # @type StartTime: Integer
1167
+ # @param EndTime: 关键字在音频的结束时间,从0开始的偏移量,,单位为毫秒
1168
+ # @type EndTime: Integer
1169
+
1170
+ attr_accessor :Label, :Rate, :KeyWord, :StartTime, :EndTime
1171
+
1172
+ def initialize(label=nil, rate=nil, keyword=nil, starttime=nil, endtime=nil)
1173
+ @Label = label
1174
+ @Rate = rate
1175
+ @KeyWord = keyword
1176
+ @StartTime = starttime
1177
+ @EndTime = endtime
1178
+ end
1179
+
1180
+ def deserialize(params)
1181
+ @Label = params['Label']
1182
+ @Rate = params['Rate']
1183
+ @KeyWord = params['KeyWord']
1184
+ @StartTime = params['StartTime']
1185
+ @EndTime = params['EndTime']
1186
+ end
1187
+ end
1188
+
1189
+ # 语音检测结果,Code 为 0 时返回
1190
+ class ScanPiece < TencentCloud::Common::AbstractModel
1191
+ # @param DumpUrl: 流检测时返回,音频转存地址,保留30min
1192
+ # 注意:此字段可能返回 null,表示取不到有效值。
1193
+ # @type DumpUrl: String
1194
+ # @param HitFlag: 是否违规
1195
+ # @type HitFlag: Boolean
1196
+ # @param MainType: 违规主要类型
1197
+ # 注意:此字段可能返回 null,表示取不到有效值。
1198
+ # @type MainType: String
1199
+ # @param ScanDetail: 语音检测详情
1200
+ # @type ScanDetail: Array
1201
+ # @param RoomId: gme实时语音房间ID,透传任务传入时的RoomId
1202
+ # 注意:此字段可能返回 null,表示取不到有效值。
1203
+ # @type RoomId: String
1204
+ # @param OpenId: gme实时语音用户ID,透传任务传入时的OpenId
1205
+ # 注意:此字段可能返回 null,表示取不到有效值。
1206
+ # @type OpenId: String
1207
+ # @param Info: 备注
1208
+ # 注意:此字段可能返回 null,表示取不到有效值。
1209
+ # @type Info: String
1210
+ # @param Offset: 流检测时分片在流中的偏移时间,单位毫秒
1211
+ # 注意:此字段可能返回 null,表示取不到有效值。
1212
+ # @type Offset: Integer
1213
+ # @param Duration: 流检测时分片时长
1214
+ # 注意:此字段可能返回 null,表示取不到有效值。
1215
+ # @type Duration: Integer
1216
+ # @param PieceStartTime: 分片开始检测时间
1217
+ # 注意:此字段可能返回 null,表示取不到有效值。
1218
+ # @type PieceStartTime: Integer
1219
+
1220
+ attr_accessor :DumpUrl, :HitFlag, :MainType, :ScanDetail, :RoomId, :OpenId, :Info, :Offset, :Duration, :PieceStartTime
1221
+
1222
+ def initialize(dumpurl=nil, hitflag=nil, maintype=nil, scandetail=nil, roomid=nil, openid=nil, info=nil, offset=nil, duration=nil, piecestarttime=nil)
1223
+ @DumpUrl = dumpurl
1224
+ @HitFlag = hitflag
1225
+ @MainType = maintype
1226
+ @ScanDetail = scandetail
1227
+ @RoomId = roomid
1228
+ @OpenId = openid
1229
+ @Info = info
1230
+ @Offset = offset
1231
+ @Duration = duration
1232
+ @PieceStartTime = piecestarttime
1233
+ end
1234
+
1235
+ def deserialize(params)
1236
+ @DumpUrl = params['DumpUrl']
1237
+ @HitFlag = params['HitFlag']
1238
+ @MainType = params['MainType']
1239
+ unless params['ScanDetail'].nil?
1240
+ @ScanDetail = []
1241
+ params['ScanDetail'].each do |i|
1242
+ scandetail_tmp = ScanDetail.new
1243
+ scandetail_tmp.deserialize(i)
1244
+ @ScanDetail << scandetail_tmp
1245
+ end
1246
+ end
1247
+ @RoomId = params['RoomId']
1248
+ @OpenId = params['OpenId']
1249
+ @Info = params['Info']
1250
+ @Offset = params['Offset']
1251
+ @Duration = params['Duration']
1252
+ @PieceStartTime = params['PieceStartTime']
1253
+ end
1254
+ end
1255
+
1256
+ # ScanVoice请求参数结构体
1257
+ class ScanVoiceRequest < TencentCloud::Common::AbstractModel
1258
+ # @param BizId: 应用ID,登录[控制台 - 服务管理](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
1259
+ # @type BizId: Integer
1260
+ # @param Scenes: 语音检测场景,参数值目前要求为 default。 预留场景设置: 谩骂、色情、涉政、广告、暴恐、违禁等场景,<a href="#Label_Value">具体取值见上述 Label 说明。</a>
1261
+ # @type Scenes: Array
1262
+ # @param Live: 是否为直播流。值为 false 时表示普通语音文件检测;为 true 时表示语音流检测。
1263
+ # @type Live: Boolean
1264
+ # @param Tasks: 语音检测任务列表,列表最多支持100个检测任务。结构体中包含:
1265
+ # <li>DataId:数据的唯一ID</li>
1266
+ # <li>Url:数据文件的url,为 urlencode 编码,流式则为拉流地址</li>
1267
+ # @type Tasks: Array
1268
+ # @param Callback: 异步检测结果回调地址,具体见上述<a href="#Callback_Declare">回调相关说明</a>。(说明:该字段为空时,必须通过接口(查询语音检测结果)获取检测结果)。
1269
+ # @type Callback: String
1270
+
1271
+ attr_accessor :BizId, :Scenes, :Live, :Tasks, :Callback
1272
+
1273
+ def initialize(bizid=nil, scenes=nil, live=nil, tasks=nil, callback=nil)
1274
+ @BizId = bizid
1275
+ @Scenes = scenes
1276
+ @Live = live
1277
+ @Tasks = tasks
1278
+ @Callback = callback
1279
+ end
1280
+
1281
+ def deserialize(params)
1282
+ @BizId = params['BizId']
1283
+ @Scenes = params['Scenes']
1284
+ @Live = params['Live']
1285
+ unless params['Tasks'].nil?
1286
+ @Tasks = []
1287
+ params['Tasks'].each do |i|
1288
+ task_tmp = Task.new
1289
+ task_tmp.deserialize(i)
1290
+ @Tasks << task_tmp
1291
+ end
1292
+ end
1293
+ @Callback = params['Callback']
1294
+ end
1295
+ end
1296
+
1297
+ # ScanVoice返回参数结构体
1298
+ class ScanVoiceResponse < TencentCloud::Common::AbstractModel
1299
+ # @param Data: 语音检测返回。Data 字段是 JSON 数组,每一个元素包含:<li>DataId: 请求中对应的 DataId。</li>
1300
+ # <li>TaskID :该检测任务的 ID,用于轮询语音检测结果。</li>
1301
+ # @type Data: Array
1302
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1303
+ # @type RequestId: String
1304
+
1305
+ attr_accessor :Data, :RequestId
1306
+
1307
+ def initialize(data=nil, requestid=nil)
1308
+ @Data = data
1309
+ @RequestId = requestid
1310
+ end
1311
+
1312
+ def deserialize(params)
1313
+ unless params['Data'].nil?
1314
+ @Data = []
1315
+ params['Data'].each do |i|
1316
+ scanvoiceresult_tmp = ScanVoiceResult.new
1317
+ scanvoiceresult_tmp.deserialize(i)
1318
+ @Data << scanvoiceresult_tmp
1319
+ end
1320
+ end
1321
+ @RequestId = params['RequestId']
1322
+ end
1323
+ end
1324
+
1325
+ # 语音检测返回结果
1326
+ class ScanVoiceResult < TencentCloud::Common::AbstractModel
1327
+ # @param DataId: 数据ID
1328
+ # @type DataId: String
1329
+ # @param TaskId: 任务ID
1330
+ # @type TaskId: String
1331
+
1332
+ attr_accessor :DataId, :TaskId
1333
+
1334
+ def initialize(dataid=nil, taskid=nil)
1335
+ @DataId = dataid
1336
+ @TaskId = taskid
1337
+ end
1338
+
1339
+ def deserialize(params)
1340
+ @DataId = params['DataId']
1341
+ @TaskId = params['TaskId']
1342
+ end
1343
+ end
1344
+
1345
+ # 用量数据单元
1346
+ class StatisticsItem < TencentCloud::Common::AbstractModel
1347
+ # @param StatDate: 日期,格式为年-月-日,如2018-07-13
1348
+ # @type StatDate: String
1349
+ # @param Data: 统计值
1350
+ # @type Data: Integer
1351
+
1352
+ attr_accessor :StatDate, :Data
1353
+
1354
+ def initialize(statdate=nil, data=nil)
1355
+ @StatDate = statdate
1356
+ @Data = data
1357
+ end
1358
+
1359
+ def deserialize(params)
1360
+ @StatDate = params['StatDate']
1361
+ @Data = params['Data']
1362
+ end
1363
+ end
1364
+
1365
+ # 标签列表
1366
+ class Tag < TencentCloud::Common::AbstractModel
1367
+ # @param TagKey: 标签键
1368
+ # 注意:此字段可能返回 null,表示取不到有效值。
1369
+ # @type TagKey: String
1370
+ # @param TagValue: 标签值
1371
+ # 注意:此字段可能返回 null,表示取不到有效值。
1372
+ # @type TagValue: String
1373
+
1374
+ attr_accessor :TagKey, :TagValue
1375
+
1376
+ def initialize(tagkey=nil, tagvalue=nil)
1377
+ @TagKey = tagkey
1378
+ @TagValue = tagvalue
1379
+ end
1380
+
1381
+ def deserialize(params)
1382
+ @TagKey = params['TagKey']
1383
+ @TagValue = params['TagValue']
1384
+ end
1385
+ end
1386
+
1387
+ # 语音检测任务列表
1388
+ class Task < TencentCloud::Common::AbstractModel
1389
+ # @param DataId: 数据的唯一ID
1390
+ # @type DataId: String
1391
+ # @param Url: 数据文件的url,为 urlencode 编码,流式则为拉流地址
1392
+ # @type Url: String
1393
+ # @param RoomId: gme实时语音房间ID,通过gme实时语音进行语音分析时输入
1394
+ # @type RoomId: String
1395
+ # @param OpenId: gme实时语音用户ID,通过gme实时语音进行语音分析时输入
1396
+ # @type OpenId: String
1397
+
1398
+ attr_accessor :DataId, :Url, :RoomId, :OpenId
1399
+
1400
+ def initialize(dataid=nil, url=nil, roomid=nil, openid=nil)
1401
+ @DataId = dataid
1402
+ @Url = url
1403
+ @RoomId = roomid
1404
+ @OpenId = openid
1405
+ end
1406
+
1407
+ def deserialize(params)
1408
+ @DataId = params['DataId']
1409
+ @Url = params['Url']
1410
+ @RoomId = params['RoomId']
1411
+ @OpenId = params['OpenId']
1412
+ end
1413
+ end
1414
+
1415
+ # 过滤结果
1416
+ class VoiceFilter < TencentCloud::Common::AbstractModel
1417
+ # @param Type: 过滤类型,1:政治,2:色情,3:涉毒,4:谩骂
1418
+ # 注意:此字段可能返回 null,表示取不到有效值。
1419
+ # @type Type: Integer
1420
+ # @param Word: 过滤命中关键词
1421
+ # 注意:此字段可能返回 null,表示取不到有效值。
1422
+ # @type Word: String
1423
+
1424
+ attr_accessor :Type, :Word
1425
+
1426
+ def initialize(type=nil, word=nil)
1427
+ @Type = type
1428
+ @Word = word
1429
+ end
1430
+
1431
+ def deserialize(params)
1432
+ @Type = params['Type']
1433
+ @Word = params['Word']
1434
+ end
1435
+ end
1436
+
1437
+ # 语音过滤服务配置数据
1438
+ class VoiceFilterConf < TencentCloud::Common::AbstractModel
1439
+ # @param Status: 语音过滤服务开关,取值:open/close
1440
+ # @type Status: String
1441
+
1442
+ attr_accessor :Status
1443
+
1444
+ def initialize(status=nil)
1445
+ @Status = status
1446
+ end
1447
+
1448
+ def deserialize(params)
1449
+ @Status = params['Status']
1450
+ end
1451
+ end
1452
+
1453
+ # 语音文件过滤详情
1454
+ class VoiceFilterInfo < TencentCloud::Common::AbstractModel
1455
+ # @param BizId: 应用ID
1456
+ # 注意:此字段可能返回 null,表示取不到有效值。
1457
+ # @type BizId: Integer
1458
+ # @param FileId: 文件ID,表示文件唯一ID
1459
+ # 注意:此字段可能返回 null,表示取不到有效值。
1460
+ # @type FileId: String
1461
+ # @param FileName: 文件名
1462
+ # 注意:此字段可能返回 null,表示取不到有效值。
1463
+ # @type FileName: String
1464
+ # @param OpenId: 用户ID
1465
+ # 注意:此字段可能返回 null,表示取不到有效值。
1466
+ # @type OpenId: String
1467
+ # @param Timestamp: 数据创建时间
1468
+ # 注意:此字段可能返回 null,表示取不到有效值。
1469
+ # @type Timestamp: String
1470
+ # @param Data: 过滤结果列表
1471
+ # 注意:此字段可能返回 null,表示取不到有效值。
1472
+ # @type Data: Array
1473
+
1474
+ attr_accessor :BizId, :FileId, :FileName, :OpenId, :Timestamp, :Data
1475
+
1476
+ def initialize(bizid=nil, fileid=nil, filename=nil, openid=nil, timestamp=nil, data=nil)
1477
+ @BizId = bizid
1478
+ @FileId = fileid
1479
+ @FileName = filename
1480
+ @OpenId = openid
1481
+ @Timestamp = timestamp
1482
+ @Data = data
1483
+ end
1484
+
1485
+ def deserialize(params)
1486
+ @BizId = params['BizId']
1487
+ @FileId = params['FileId']
1488
+ @FileName = params['FileName']
1489
+ @OpenId = params['OpenId']
1490
+ @Timestamp = params['Timestamp']
1491
+ unless params['Data'].nil?
1492
+ @Data = []
1493
+ params['Data'].each do |i|
1494
+ voicefilter_tmp = VoiceFilter.new
1495
+ voicefilter_tmp.deserialize(i)
1496
+ @Data << voicefilter_tmp
1497
+ end
1498
+ end
1499
+ end
1500
+ end
1501
+
1502
+ # VoiceFilter请求参数结构体
1503
+ class VoiceFilterRequest < TencentCloud::Common::AbstractModel
1504
+ # @param BizId: 应用ID,登录[控制台](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
1505
+ # @type BizId: Integer
1506
+ # @param FileId: 文件ID,表示文件唯一ID
1507
+ # @type FileId: String
1508
+ # @param FileName: 文件名
1509
+ # @type FileName: String
1510
+ # @param FileUrl: 文件url,urlencode编码,FileUrl和FileContent二选一
1511
+ # @type FileUrl: String
1512
+ # @param FileContent: 文件内容,base64编码,FileUrl和FileContent二选一
1513
+ # @type FileContent: String
1514
+ # @param OpenId: 用户ID
1515
+ # @type OpenId: String
1516
+
1517
+ attr_accessor :BizId, :FileId, :FileName, :FileUrl, :FileContent, :OpenId
1518
+
1519
+ def initialize(bizid=nil, fileid=nil, filename=nil, fileurl=nil, filecontent=nil, openid=nil)
1520
+ @BizId = bizid
1521
+ @FileId = fileid
1522
+ @FileName = filename
1523
+ @FileUrl = fileurl
1524
+ @FileContent = filecontent
1525
+ @OpenId = openid
1526
+ end
1527
+
1528
+ def deserialize(params)
1529
+ @BizId = params['BizId']
1530
+ @FileId = params['FileId']
1531
+ @FileName = params['FileName']
1532
+ @FileUrl = params['FileUrl']
1533
+ @FileContent = params['FileContent']
1534
+ @OpenId = params['OpenId']
1535
+ end
1536
+ end
1537
+
1538
+ # VoiceFilter返回参数结构体
1539
+ class VoiceFilterResponse < TencentCloud::Common::AbstractModel
1540
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1541
+ # @type RequestId: String
1542
+
1543
+ attr_accessor :RequestId
1544
+
1545
+ def initialize(requestid=nil)
1546
+ @RequestId = requestid
1547
+ end
1548
+
1549
+ def deserialize(params)
1550
+ @RequestId = params['RequestId']
1551
+ end
1552
+ end
1553
+
1554
+ # 语音过滤用量统计数据
1555
+ class VoiceFilterStatisticsItem < TencentCloud::Common::AbstractModel
1556
+ # @param Duration: 语音过滤总时长
1557
+ # @type Duration: Integer
1558
+
1559
+ attr_accessor :Duration
1560
+
1561
+ def initialize(duration=nil)
1562
+ @Duration = duration
1563
+ end
1564
+
1565
+ def deserialize(params)
1566
+ @Duration = params['Duration']
1567
+ end
1568
+ end
1569
+
1570
+ # 离线语音服务配置数据
1571
+ class VoiceMessageConf < TencentCloud::Common::AbstractModel
1572
+ # @param Status: 离线语音服务开关,取值:open/close
1573
+ # @type Status: String
1574
+ # @param Language: 离线语音支持语种,取值: all-全部,cnen-中英文。默认为中英文
1575
+ # @type Language: String
1576
+
1577
+ attr_accessor :Status, :Language
1578
+
1579
+ def initialize(status=nil, language=nil)
1580
+ @Status = status
1581
+ @Language = language
1582
+ end
1583
+
1584
+ def deserialize(params)
1585
+ @Status = params['Status']
1586
+ @Language = params['Language']
1587
+ end
1588
+ end
1589
+
1590
+ # 语音消息用量统计信息
1591
+ class VoiceMessageStatisticsItem < TencentCloud::Common::AbstractModel
1592
+ # @param Dau: 离线语音DAU
1593
+ # @type Dau: Integer
1594
+
1595
+ attr_accessor :Dau
1596
+
1597
+ def initialize(dau=nil)
1598
+ @Dau = dau
1599
+ end
1600
+
1601
+ def deserialize(params)
1602
+ @Dau = params['Dau']
1603
+ end
1604
+ end
1605
+
1606
+ end
1607
+ end
1608
+ end
1609
+