tencentcloud-sdk-gme 3.0.384 → 3.0.385

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2a35b3d63c625208e35fc60c627b08d6fde7259
4
- data.tar.gz: 432d0f4c63f258a40c5a37ddd5156d8c76a0bbe8
3
+ metadata.gz: 55a84ac71a51390d1d4920f1bf8ddef96ae3d7e0
4
+ data.tar.gz: 9b41f6221c9e9ff70aa168a02e6953c527e59227
5
5
  SHA512:
6
- metadata.gz: 3604757d6c96fd33b2dd44fe9a4aa0e4038ce0a41861842e0640364313f8f718d2873ee0fab55fa017315edb79015a6b376116f5aed6dc3ad1a53a7ee80bd266
7
- data.tar.gz: 2e22a4e7936d79c31ca970524fb20e15fc442d8aee9e38a8cbeae946e44b0d61e3a9fa7f1c4da1b9ab6e3a9a8f1108b28e46ffe99ef8540dbea4b6112f05fe11
6
+ metadata.gz: 4f7f9c3a46d5606a2d8515d65558a367d3cf3ba3b5722af92f0ddaf4bdb30bb2efe5cdd800852877227f6a79dca62d077927dd631e0d056c35a6ae5cb7f95d08
7
+ data.tar.gz: 5244ee775a7451397e19d4ac3e732ff010362b5621e600072108c22470792ec28966c743370c92dca8ae534480a2784aef71544301a573e821c5d92ab847747e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.384
1
+ 3.0.385
@@ -87,6 +87,30 @@ module TencentCloud
87
87
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
88
88
  end
89
89
 
90
+ # 用户使用该接口可以创建语音消息转文本自学习模型,以供识别调用
91
+
92
+ # @param request: Request instance for CreateCustomization.
93
+ # @type request: :class:`Tencentcloud::gme::V20180711::CreateCustomizationRequest`
94
+ # @rtype: :class:`Tencentcloud::gme::V20180711::CreateCustomizationResponse`
95
+ def CreateCustomization(request)
96
+ body = send_request('CreateCustomization', request.serialize)
97
+ response = JSON.parse(body)
98
+ if response['Response'].key?('Error') == false
99
+ model = CreateCustomizationResponse.new
100
+ model.deserialize(response['Response'])
101
+ model
102
+ else
103
+ code = response['Response']['Error']['Code']
104
+ message = response['Response']['Error']['Message']
105
+ reqid = response['Response']['RequestId']
106
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
107
+ end
108
+ rescue TencentCloud::Common::TencentCloudSDKException => e
109
+ raise e
110
+ rescue StandardError => e
111
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
112
+ end
113
+
90
114
  # 新增自定义送检用户
91
115
 
92
116
  # @param request: Request instance for CreateScanUser.
@@ -111,6 +135,30 @@ module TencentCloud
111
135
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
112
136
  end
113
137
 
138
+ # 用户通过该接口可以删除语音消息转文本自学习模型
139
+
140
+ # @param request: Request instance for DeleteCustomization.
141
+ # @type request: :class:`Tencentcloud::gme::V20180711::DeleteCustomizationRequest`
142
+ # @rtype: :class:`Tencentcloud::gme::V20180711::DeleteCustomizationResponse`
143
+ def DeleteCustomization(request)
144
+ body = send_request('DeleteCustomization', request.serialize)
145
+ response = JSON.parse(body)
146
+ if response['Response'].key?('Error') == false
147
+ model = DeleteCustomizationResponse.new
148
+ model.deserialize(response['Response'])
149
+ model
150
+ else
151
+ code = response['Response']['Error']['Code']
152
+ message = response['Response']['Error']['Message']
153
+ reqid = response['Response']['RequestId']
154
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
155
+ end
156
+ rescue TencentCloud::Common::TencentCloudSDKException => e
157
+ raise e
158
+ rescue StandardError => e
159
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
160
+ end
161
+
114
162
  # 删除自定义送检用户
115
163
 
116
164
  # @param request: Request instance for DeleteScanUser.
@@ -352,6 +400,30 @@ module TencentCloud
352
400
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
353
401
  end
354
402
 
403
+ # 查询语音消息转文本自学习模型列表
404
+
405
+ # @param request: Request instance for GetCustomizationList.
406
+ # @type request: :class:`Tencentcloud::gme::V20180711::GetCustomizationListRequest`
407
+ # @rtype: :class:`Tencentcloud::gme::V20180711::GetCustomizationListResponse`
408
+ def GetCustomizationList(request)
409
+ body = send_request('GetCustomizationList', request.serialize)
410
+ response = JSON.parse(body)
411
+ if response['Response'].key?('Error') == false
412
+ model = GetCustomizationListResponse.new
413
+ model.deserialize(response['Response'])
414
+ model
415
+ else
416
+ code = response['Response']['Error']['Code']
417
+ message = response['Response']['Error']['Message']
418
+ reqid = response['Response']['RequestId']
419
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
420
+ end
421
+ rescue TencentCloud::Common::TencentCloudSDKException => e
422
+ raise e
423
+ rescue StandardError => e
424
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
425
+ end
426
+
355
427
  # 本接口(ModifyAppStatus)用于修改应用总开关状态。
356
428
 
357
429
  # @param request: Request instance for ModifyAppStatus.
@@ -376,6 +448,54 @@ module TencentCloud
376
448
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
377
449
  end
378
450
 
451
+ # 用户通过该接口可以更新语音消息转文本自学习模型。
452
+
453
+ # @param request: Request instance for ModifyCustomization.
454
+ # @type request: :class:`Tencentcloud::gme::V20180711::ModifyCustomizationRequest`
455
+ # @rtype: :class:`Tencentcloud::gme::V20180711::ModifyCustomizationResponse`
456
+ def ModifyCustomization(request)
457
+ body = send_request('ModifyCustomization', request.serialize)
458
+ response = JSON.parse(body)
459
+ if response['Response'].key?('Error') == false
460
+ model = ModifyCustomizationResponse.new
461
+ model.deserialize(response['Response'])
462
+ model
463
+ else
464
+ code = response['Response']['Error']['Code']
465
+ message = response['Response']['Error']['Message']
466
+ reqid = response['Response']['RequestId']
467
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
468
+ end
469
+ rescue TencentCloud::Common::TencentCloudSDKException => e
470
+ raise e
471
+ rescue StandardError => e
472
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
473
+ end
474
+
475
+ # 通过该接口,用户可以修改语音消息转文本自学习模型状态,上下线自学习模型
476
+
477
+ # @param request: Request instance for ModifyCustomizationState.
478
+ # @type request: :class:`Tencentcloud::gme::V20180711::ModifyCustomizationStateRequest`
479
+ # @rtype: :class:`Tencentcloud::gme::V20180711::ModifyCustomizationStateResponse`
480
+ def ModifyCustomizationState(request)
481
+ body = send_request('ModifyCustomizationState', request.serialize)
482
+ response = JSON.parse(body)
483
+ if response['Response'].key?('Error') == false
484
+ model = ModifyCustomizationStateResponse.new
485
+ model.deserialize(response['Response'])
486
+ model
487
+ else
488
+ code = response['Response']['Error']['Code']
489
+ message = response['Response']['Error']['Message']
490
+ reqid = response['Response']['RequestId']
491
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
492
+ end
493
+ rescue TencentCloud::Common::TencentCloudSDKException => e
494
+ raise e
495
+ rescue StandardError => e
496
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
497
+ end
498
+
379
499
  # 修改房间信息
380
500
 
381
501
  # @param request: Request instance for ModifyRoomInfo.
@@ -421,6 +421,46 @@ module TencentCloud
421
421
  end
422
422
  end
423
423
 
424
+ # CreateCustomization请求参数结构体
425
+ class CreateCustomizationRequest < TencentCloud::Common::AbstractModel
426
+ # @param BizId: 应用 ID,登录控制台创建应用得到的AppID
427
+ # @type BizId: Integer
428
+ # @param TextUrl: 文本文件的下载地址,服务会从该地址下载文件,目前仅支持腾讯云cos
429
+ # @type TextUrl: String
430
+
431
+ attr_accessor :BizId, :TextUrl
432
+
433
+ def initialize(bizid=nil, texturl=nil)
434
+ @BizId = bizid
435
+ @TextUrl = texturl
436
+ end
437
+
438
+ def deserialize(params)
439
+ @BizId = params['BizId']
440
+ @TextUrl = params['TextUrl']
441
+ end
442
+ end
443
+
444
+ # CreateCustomization返回参数结构体
445
+ class CreateCustomizationResponse < TencentCloud::Common::AbstractModel
446
+ # @param ModelId: 模型ID
447
+ # @type ModelId: String
448
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
449
+ # @type RequestId: String
450
+
451
+ attr_accessor :ModelId, :RequestId
452
+
453
+ def initialize(modelid=nil, requestid=nil)
454
+ @ModelId = modelid
455
+ @RequestId = requestid
456
+ end
457
+
458
+ def deserialize(params)
459
+ @ModelId = params['ModelId']
460
+ @RequestId = params['RequestId']
461
+ end
462
+ end
463
+
424
464
  # CreateScanUser请求参数结构体
425
465
  class CreateScanUserRequest < TencentCloud::Common::AbstractModel
426
466
  # @param BizId: 应用ID,登录控制台 - 服务管理创建应用得到的AppID
@@ -461,6 +501,70 @@ module TencentCloud
461
501
  end
462
502
  end
463
503
 
504
+ # 语音消息转文本自学习模型配置
505
+ class CustomizationConfigs < TencentCloud::Common::AbstractModel
506
+ # @param BizId: 应用 ID,登录控制台创建应用得到的AppID
507
+ # @type BizId: Integer
508
+ # @param ModelId: 模型ID
509
+ # @type ModelId: String
510
+ # @param ModelState: 模型状态,-1下线状态,1上线状态, 0训练中, -2训练失败
511
+ # @type ModelState: Integer
512
+
513
+ attr_accessor :BizId, :ModelId, :ModelState
514
+
515
+ def initialize(bizid=nil, modelid=nil, modelstate=nil)
516
+ @BizId = bizid
517
+ @ModelId = modelid
518
+ @ModelState = modelstate
519
+ end
520
+
521
+ def deserialize(params)
522
+ @BizId = params['BizId']
523
+ @ModelId = params['ModelId']
524
+ @ModelState = params['ModelState']
525
+ end
526
+ end
527
+
528
+ # DeleteCustomization请求参数结构体
529
+ class DeleteCustomizationRequest < TencentCloud::Common::AbstractModel
530
+ # @param ModelId: 要删除的模型ID
531
+ # @type ModelId: String
532
+ # @param BizId: 应用 ID,登录控制台创建应用得到的AppID
533
+ # @type BizId: Integer
534
+
535
+ attr_accessor :ModelId, :BizId
536
+
537
+ def initialize(modelid=nil, bizid=nil)
538
+ @ModelId = modelid
539
+ @BizId = bizid
540
+ end
541
+
542
+ def deserialize(params)
543
+ @ModelId = params['ModelId']
544
+ @BizId = params['BizId']
545
+ end
546
+ end
547
+
548
+ # DeleteCustomization返回参数结构体
549
+ class DeleteCustomizationResponse < TencentCloud::Common::AbstractModel
550
+ # @param ErrorCode: 返回值。0为成功,非0为失败。
551
+ # @type ErrorCode: Integer
552
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
553
+ # @type RequestId: String
554
+
555
+ attr_accessor :ErrorCode, :RequestId
556
+
557
+ def initialize(errorcode=nil, requestid=nil)
558
+ @ErrorCode = errorcode
559
+ @RequestId = requestid
560
+ end
561
+
562
+ def deserialize(params)
563
+ @ErrorCode = params['ErrorCode']
564
+ @RequestId = params['RequestId']
565
+ end
566
+ end
567
+
464
568
  # DeleteScanUser请求参数结构体
465
569
  class DeleteScanUserRequest < TencentCloud::Common::AbstractModel
466
570
  # @param BizId: 应用ID,登录控制台 - 服务管理创建应用得到的AppID
@@ -1086,6 +1190,50 @@ module TencentCloud
1086
1190
  end
1087
1191
  end
1088
1192
 
1193
+ # GetCustomizationList请求参数结构体
1194
+ class GetCustomizationListRequest < TencentCloud::Common::AbstractModel
1195
+ # @param BizId: 应用 ID,登录控制台创建应用得到的AppID
1196
+ # @type BizId: Integer
1197
+
1198
+ attr_accessor :BizId
1199
+
1200
+ def initialize(bizid=nil)
1201
+ @BizId = bizid
1202
+ end
1203
+
1204
+ def deserialize(params)
1205
+ @BizId = params['BizId']
1206
+ end
1207
+ end
1208
+
1209
+ # GetCustomizationList返回参数结构体
1210
+ class GetCustomizationListResponse < TencentCloud::Common::AbstractModel
1211
+ # @param CustomizationConfigs: 语音消息转文本自学习模型配置
1212
+ # 注意:此字段可能返回 null,表示取不到有效值。
1213
+ # @type CustomizationConfigs: Array
1214
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1215
+ # @type RequestId: String
1216
+
1217
+ attr_accessor :CustomizationConfigs, :RequestId
1218
+
1219
+ def initialize(customizationconfigs=nil, requestid=nil)
1220
+ @CustomizationConfigs = customizationconfigs
1221
+ @RequestId = requestid
1222
+ end
1223
+
1224
+ def deserialize(params)
1225
+ unless params['CustomizationConfigs'].nil?
1226
+ @CustomizationConfigs = []
1227
+ params['CustomizationConfigs'].each do |i|
1228
+ customizationconfigs_tmp = CustomizationConfigs.new
1229
+ customizationconfigs_tmp.deserialize(i)
1230
+ @CustomizationConfigs << customizationconfigs_tmp
1231
+ end
1232
+ end
1233
+ @RequestId = params['RequestId']
1234
+ end
1235
+ end
1236
+
1089
1237
  # 用户进出房间信息
1090
1238
  class InOutTimeInfo < TencentCloud::Common::AbstractModel
1091
1239
  # @param StartTime: 进入房间时间
@@ -1169,6 +1317,102 @@ module TencentCloud
1169
1317
  end
1170
1318
  end
1171
1319
 
1320
+ # ModifyCustomization请求参数结构体
1321
+ class ModifyCustomizationRequest < TencentCloud::Common::AbstractModel
1322
+ # @param BizId: 应用 ID,登录控制台创建应用得到的AppID
1323
+ # @type BizId: Integer
1324
+ # @param TextUrl: 文本文件
1325
+ # @type TextUrl: String
1326
+ # @param ModelId: 要修改的模型ID
1327
+ # @type ModelId: String
1328
+
1329
+ attr_accessor :BizId, :TextUrl, :ModelId
1330
+
1331
+ def initialize(bizid=nil, texturl=nil, modelid=nil)
1332
+ @BizId = bizid
1333
+ @TextUrl = texturl
1334
+ @ModelId = modelid
1335
+ end
1336
+
1337
+ def deserialize(params)
1338
+ @BizId = params['BizId']
1339
+ @TextUrl = params['TextUrl']
1340
+ @ModelId = params['ModelId']
1341
+ end
1342
+ end
1343
+
1344
+ # ModifyCustomization返回参数结构体
1345
+ class ModifyCustomizationResponse < TencentCloud::Common::AbstractModel
1346
+ # @param ErrorCode: 返回值。0为成功,非0为失败。
1347
+ # @type ErrorCode: Integer
1348
+ # @param ModelId: 自学习模型ID
1349
+ # @type ModelId: String
1350
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1351
+ # @type RequestId: String
1352
+
1353
+ attr_accessor :ErrorCode, :ModelId, :RequestId
1354
+
1355
+ def initialize(errorcode=nil, modelid=nil, requestid=nil)
1356
+ @ErrorCode = errorcode
1357
+ @ModelId = modelid
1358
+ @RequestId = requestid
1359
+ end
1360
+
1361
+ def deserialize(params)
1362
+ @ErrorCode = params['ErrorCode']
1363
+ @ModelId = params['ModelId']
1364
+ @RequestId = params['RequestId']
1365
+ end
1366
+ end
1367
+
1368
+ # ModifyCustomizationState请求参数结构体
1369
+ class ModifyCustomizationStateRequest < TencentCloud::Common::AbstractModel
1370
+ # @param ModelId: 自学习模型ID
1371
+ # @type ModelId: String
1372
+ # @param ToState: 想要变换的模型状态,-1代表下线,1代表上线
1373
+ # @type ToState: Integer
1374
+ # @param BizId: 应用 ID,登录控制台创建应用得到的AppID
1375
+ # @type BizId: Integer
1376
+
1377
+ attr_accessor :ModelId, :ToState, :BizId
1378
+
1379
+ def initialize(modelid=nil, tostate=nil, bizid=nil)
1380
+ @ModelId = modelid
1381
+ @ToState = tostate
1382
+ @BizId = bizid
1383
+ end
1384
+
1385
+ def deserialize(params)
1386
+ @ModelId = params['ModelId']
1387
+ @ToState = params['ToState']
1388
+ @BizId = params['BizId']
1389
+ end
1390
+ end
1391
+
1392
+ # ModifyCustomizationState返回参数结构体
1393
+ class ModifyCustomizationStateResponse < TencentCloud::Common::AbstractModel
1394
+ # @param ModelId: 自学习模型ID
1395
+ # @type ModelId: String
1396
+ # @param ErrorCode: 返回值。0为成功,非0为失败。
1397
+ # @type ErrorCode: Integer
1398
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1399
+ # @type RequestId: String
1400
+
1401
+ attr_accessor :ModelId, :ErrorCode, :RequestId
1402
+
1403
+ def initialize(modelid=nil, errorcode=nil, requestid=nil)
1404
+ @ModelId = modelid
1405
+ @ErrorCode = errorcode
1406
+ @RequestId = requestid
1407
+ end
1408
+
1409
+ def deserialize(params)
1410
+ @ModelId = params['ModelId']
1411
+ @ErrorCode = params['ErrorCode']
1412
+ @RequestId = params['RequestId']
1413
+ end
1414
+ end
1415
+
1172
1416
  # ModifyRoomInfo请求参数结构体
1173
1417
  class ModifyRoomInfoRequest < TencentCloud::Common::AbstractModel
1174
1418
  # @param SdkAppId: 应用ID,登录[控制台 - 服务管理](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-gme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.384
4
+ version: 3.0.385
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common