tencentcloud-sdk-ccc 3.0.504 → 3.0.506

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: a1ea80a20d9f87348821ee6a984973a942ff2437
4
- data.tar.gz: 3e8fbd3adbe066a8b4ad8e719a6c41d86bf29158
3
+ metadata.gz: 0f167c2dbdc6c2bf9c9d7c7e9c3e2eed7d7c1c25
4
+ data.tar.gz: e567bee7bda692e445b108cc6e5e1ab4c632df4f
5
5
  SHA512:
6
- metadata.gz: 7a06354f9d70175f9a60a29440bb817448b035b445e4cfad3874d9b1fb77f18042df13f5151a77649c9e696824985519e240e63d13fd12626bfbcc24f53f7b04
7
- data.tar.gz: 70085bae3b72613b40825859e76ea5ed5217ca9ad90a07eb3c552c316c14c970c4f085b69f2c6c96b0313020cce5baf4ddc54b2b692125f1e35dc4dd7a759b28
6
+ metadata.gz: 183f4c9811b7cfd2e52138b0e6e4b3eea63100392731a27ac2d13f51bc3f344f4b460fc6b5fd5545a79257a70c6a0fade1859e32a15be0a5429a41d982c9aa45
7
+ data.tar.gz: 2783a6d33384ac77c8183b590f91ccc2025f863ce493f27ed9d51f3720986348bd7d32c3c96a96f305b8cbbdcb953ac75c5df8a4f91f21d42e837836c530df55
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.504
1
+ 3.0.506
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 绑定号码外呼技能组
33
+
34
+ # @param request: Request instance for BindNumberCallOutSkillGroup.
35
+ # @type request: :class:`Tencentcloud::ccc::V20200210::BindNumberCallOutSkillGroupRequest`
36
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::BindNumberCallOutSkillGroupResponse`
37
+ def BindNumberCallOutSkillGroup(request)
38
+ body = send_request('BindNumberCallOutSkillGroup', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = BindNumberCallOutSkillGroupResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 绑定坐席所属技能组
33
57
 
34
58
  # @param request: Request instance for BindStaffSkillGroupList.
@@ -535,6 +559,30 @@ module TencentCloud
535
559
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
536
560
  end
537
561
 
562
+ # 查询号码列表
563
+
564
+ # @param request: Request instance for DescribeNumbers.
565
+ # @type request: :class:`Tencentcloud::ccc::V20200210::DescribeNumbersRequest`
566
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeNumbersResponse`
567
+ def DescribeNumbers(request)
568
+ body = send_request('DescribeNumbers', request.serialize)
569
+ response = JSON.parse(body)
570
+ if response['Response'].key?('Error') == false
571
+ model = DescribeNumbersResponse.new
572
+ model.deserialize(response['Response'])
573
+ model
574
+ else
575
+ code = response['Response']['Error']['Code']
576
+ message = response['Response']['Error']['Message']
577
+ reqid = response['Response']['RequestId']
578
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
579
+ end
580
+ rescue TencentCloud::Common::TencentCloudSDKException => e
581
+ raise e
582
+ rescue StandardError => e
583
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
584
+ end
585
+
538
586
  # 获取当前正在通话的会话列表
539
587
 
540
588
  # @param request: Request instance for DescribePSTNActiveSessionList.
@@ -871,6 +919,30 @@ module TencentCloud
871
919
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
872
920
  end
873
921
 
922
+ # 解绑号码外呼技能组
923
+
924
+ # @param request: Request instance for UnbindNumberCallOutSkillGroup.
925
+ # @type request: :class:`Tencentcloud::ccc::V20200210::UnbindNumberCallOutSkillGroupRequest`
926
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::UnbindNumberCallOutSkillGroupResponse`
927
+ def UnbindNumberCallOutSkillGroup(request)
928
+ body = send_request('UnbindNumberCallOutSkillGroup', request.serialize)
929
+ response = JSON.parse(body)
930
+ if response['Response'].key?('Error') == false
931
+ model = UnbindNumberCallOutSkillGroupResponse.new
932
+ model.deserialize(response['Response'])
933
+ model
934
+ else
935
+ code = response['Response']['Error']['Code']
936
+ message = response['Response']['Error']['Message']
937
+ reqid = response['Response']['RequestId']
938
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
939
+ end
940
+ rescue TencentCloud::Common::TencentCloudSDKException => e
941
+ raise e
942
+ rescue StandardError => e
943
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
944
+ end
945
+
874
946
  # 解绑坐席所属技能组
875
947
 
876
948
  # @param request: Request instance for UnbindStaffSkillGroupList.
@@ -114,6 +114,46 @@ module TencentCloud
114
114
  end
115
115
  end
116
116
 
117
+ # BindNumberCallOutSkillGroup请求参数结构体
118
+ class BindNumberCallOutSkillGroupRequest < TencentCloud::Common::AbstractModel
119
+ # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
120
+ # @type SdkAppId: Integer
121
+ # @param Number: 待绑定的号码
122
+ # @type Number: String
123
+ # @param SkillGroupIds: 待绑定的技能组Id列表
124
+ # @type SkillGroupIds: Array
125
+
126
+ attr_accessor :SdkAppId, :Number, :SkillGroupIds
127
+
128
+ def initialize(sdkappid=nil, number=nil, skillgroupids=nil)
129
+ @SdkAppId = sdkappid
130
+ @Number = number
131
+ @SkillGroupIds = skillgroupids
132
+ end
133
+
134
+ def deserialize(params)
135
+ @SdkAppId = params['SdkAppId']
136
+ @Number = params['Number']
137
+ @SkillGroupIds = params['SkillGroupIds']
138
+ end
139
+ end
140
+
141
+ # BindNumberCallOutSkillGroup返回参数结构体
142
+ class BindNumberCallOutSkillGroupResponse < TencentCloud::Common::AbstractModel
143
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
144
+ # @type RequestId: String
145
+
146
+ attr_accessor :RequestId
147
+
148
+ def initialize(requestid=nil)
149
+ @RequestId = requestid
150
+ end
151
+
152
+ def deserialize(params)
153
+ @RequestId = params['RequestId']
154
+ end
155
+ end
156
+
117
157
  # BindStaffSkillGroupList请求参数结构体
118
158
  class BindStaffSkillGroupListRequest < TencentCloud::Common::AbstractModel
119
159
  # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
@@ -1486,6 +1526,61 @@ module TencentCloud
1486
1526
  end
1487
1527
  end
1488
1528
 
1529
+ # DescribeNumbers请求参数结构体
1530
+ class DescribeNumbersRequest < TencentCloud::Common::AbstractModel
1531
+ # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
1532
+ # @type SdkAppId: Integer
1533
+ # @param PageNumber: 页数,从0开始
1534
+ # @type PageNumber: Integer
1535
+ # @param PageSize: 分页大小,默认20
1536
+ # @type PageSize: Integer
1537
+
1538
+ attr_accessor :SdkAppId, :PageNumber, :PageSize
1539
+
1540
+ def initialize(sdkappid=nil, pagenumber=nil, pagesize=nil)
1541
+ @SdkAppId = sdkappid
1542
+ @PageNumber = pagenumber
1543
+ @PageSize = pagesize
1544
+ end
1545
+
1546
+ def deserialize(params)
1547
+ @SdkAppId = params['SdkAppId']
1548
+ @PageNumber = params['PageNumber']
1549
+ @PageSize = params['PageSize']
1550
+ end
1551
+ end
1552
+
1553
+ # DescribeNumbers返回参数结构体
1554
+ class DescribeNumbersResponse < TencentCloud::Common::AbstractModel
1555
+ # @param TotalCount: 总数量
1556
+ # @type TotalCount: Integer
1557
+ # @param Numbers: 号码列表
1558
+ # @type Numbers: Array
1559
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1560
+ # @type RequestId: String
1561
+
1562
+ attr_accessor :TotalCount, :Numbers, :RequestId
1563
+
1564
+ def initialize(totalcount=nil, numbers=nil, requestid=nil)
1565
+ @TotalCount = totalcount
1566
+ @Numbers = numbers
1567
+ @RequestId = requestid
1568
+ end
1569
+
1570
+ def deserialize(params)
1571
+ @TotalCount = params['TotalCount']
1572
+ unless params['Numbers'].nil?
1573
+ @Numbers = []
1574
+ params['Numbers'].each do |i|
1575
+ numberinfo_tmp = NumberInfo.new
1576
+ numberinfo_tmp.deserialize(i)
1577
+ @Numbers << numberinfo_tmp
1578
+ end
1579
+ end
1580
+ @RequestId = params['RequestId']
1581
+ end
1582
+ end
1583
+
1489
1584
  # DescribePSTNActiveSessionList请求参数结构体
1490
1585
  class DescribePSTNActiveSessionListRequest < TencentCloud::Common::AbstractModel
1491
1586
  # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
@@ -2415,6 +2510,26 @@ module TencentCloud
2415
2510
  end
2416
2511
  end
2417
2512
 
2513
+ # 号码信息
2514
+ class NumberInfo < TencentCloud::Common::AbstractModel
2515
+ # @param Number: 号码
2516
+ # @type Number: String
2517
+ # @param CallOutSkillGroupIds: 绑定的外呼技能组
2518
+ # @type CallOutSkillGroupIds: Array
2519
+
2520
+ attr_accessor :Number, :CallOutSkillGroupIds
2521
+
2522
+ def initialize(number=nil, calloutskillgroupids=nil)
2523
+ @Number = number
2524
+ @CallOutSkillGroupIds = calloutskillgroupids
2525
+ end
2526
+
2527
+ def deserialize(params)
2528
+ @Number = params['Number']
2529
+ @CallOutSkillGroupIds = params['CallOutSkillGroupIds']
2530
+ end
2531
+ end
2532
+
2418
2533
  # PSTN 会话类型。
2419
2534
  class PSTNSession < TencentCloud::Common::AbstractModel
2420
2535
  # @param SessionID: 会话 ID
@@ -3264,10 +3379,13 @@ module TencentCloud
3264
3379
  # @param QueuedSkillGroupName: 排队技能组名称
3265
3380
  # 注意:此字段可能返回 null,表示取不到有效值。
3266
3381
  # @type QueuedSkillGroupName: String
3382
+ # @param VoicemailRecordURL: 通话中语音留言录音URL
3383
+ # 注意:此字段可能返回 null,表示取不到有效值。
3384
+ # @type VoicemailRecordURL: Array
3267
3385
 
3268
- attr_accessor :Caller, :Callee, :Time, :Direction, :Duration, :RecordURL, :SeatUser, :EndStatus, :SkillGroup, :CallerLocation, :IVRDuration, :RingTimestamp, :AcceptTimestamp, :EndedTimestamp, :IVRKeyPressed, :HungUpSide, :ServeParticipants, :SkillGroupId, :EndStatusString, :StartTimestamp, :QueuedTimestamp, :PostIVRKeyPressed, :QueuedSkillGroupId, :SessionId, :ProtectedCaller, :ProtectedCallee, :Uui, :IVRKeyPressedEx, :AsrUrl, :CustomRecordURL, :Remark, :QueuedSkillGroupName
3386
+ attr_accessor :Caller, :Callee, :Time, :Direction, :Duration, :RecordURL, :SeatUser, :EndStatus, :SkillGroup, :CallerLocation, :IVRDuration, :RingTimestamp, :AcceptTimestamp, :EndedTimestamp, :IVRKeyPressed, :HungUpSide, :ServeParticipants, :SkillGroupId, :EndStatusString, :StartTimestamp, :QueuedTimestamp, :PostIVRKeyPressed, :QueuedSkillGroupId, :SessionId, :ProtectedCaller, :ProtectedCallee, :Uui, :IVRKeyPressedEx, :AsrUrl, :CustomRecordURL, :Remark, :QueuedSkillGroupName, :VoicemailRecordURL
3269
3387
 
3270
- def initialize(caller=nil, callee=nil, time=nil, direction=nil, duration=nil, recordurl=nil, seatuser=nil, endstatus=nil, skillgroup=nil, callerlocation=nil, ivrduration=nil, ringtimestamp=nil, accepttimestamp=nil, endedtimestamp=nil, ivrkeypressed=nil, hungupside=nil, serveparticipants=nil, skillgroupid=nil, endstatusstring=nil, starttimestamp=nil, queuedtimestamp=nil, postivrkeypressed=nil, queuedskillgroupid=nil, sessionid=nil, protectedcaller=nil, protectedcallee=nil, uui=nil, ivrkeypressedex=nil, asrurl=nil, customrecordurl=nil, remark=nil, queuedskillgroupname=nil)
3388
+ def initialize(caller=nil, callee=nil, time=nil, direction=nil, duration=nil, recordurl=nil, seatuser=nil, endstatus=nil, skillgroup=nil, callerlocation=nil, ivrduration=nil, ringtimestamp=nil, accepttimestamp=nil, endedtimestamp=nil, ivrkeypressed=nil, hungupside=nil, serveparticipants=nil, skillgroupid=nil, endstatusstring=nil, starttimestamp=nil, queuedtimestamp=nil, postivrkeypressed=nil, queuedskillgroupid=nil, sessionid=nil, protectedcaller=nil, protectedcallee=nil, uui=nil, ivrkeypressedex=nil, asrurl=nil, customrecordurl=nil, remark=nil, queuedskillgroupname=nil, voicemailrecordurl=nil)
3271
3389
  @Caller = caller
3272
3390
  @Callee = callee
3273
3391
  @Time = time
@@ -3300,6 +3418,7 @@ module TencentCloud
3300
3418
  @CustomRecordURL = customrecordurl
3301
3419
  @Remark = remark
3302
3420
  @QueuedSkillGroupName = queuedskillgroupname
3421
+ @VoicemailRecordURL = voicemailrecordurl
3303
3422
  end
3304
3423
 
3305
3424
  def deserialize(params)
@@ -3359,6 +3478,47 @@ module TencentCloud
3359
3478
  @CustomRecordURL = params['CustomRecordURL']
3360
3479
  @Remark = params['Remark']
3361
3480
  @QueuedSkillGroupName = params['QueuedSkillGroupName']
3481
+ @VoicemailRecordURL = params['VoicemailRecordURL']
3482
+ end
3483
+ end
3484
+
3485
+ # UnbindNumberCallOutSkillGroup请求参数结构体
3486
+ class UnbindNumberCallOutSkillGroupRequest < TencentCloud::Common::AbstractModel
3487
+ # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
3488
+ # @type SdkAppId: Integer
3489
+ # @param Number: 待解绑的号码
3490
+ # @type Number: String
3491
+ # @param SkillGroupIds: 待解绑的技能组Id列表
3492
+ # @type SkillGroupIds: Array
3493
+
3494
+ attr_accessor :SdkAppId, :Number, :SkillGroupIds
3495
+
3496
+ def initialize(sdkappid=nil, number=nil, skillgroupids=nil)
3497
+ @SdkAppId = sdkappid
3498
+ @Number = number
3499
+ @SkillGroupIds = skillgroupids
3500
+ end
3501
+
3502
+ def deserialize(params)
3503
+ @SdkAppId = params['SdkAppId']
3504
+ @Number = params['Number']
3505
+ @SkillGroupIds = params['SkillGroupIds']
3506
+ end
3507
+ end
3508
+
3509
+ # UnbindNumberCallOutSkillGroup返回参数结构体
3510
+ class UnbindNumberCallOutSkillGroupResponse < TencentCloud::Common::AbstractModel
3511
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3512
+ # @type RequestId: String
3513
+
3514
+ attr_accessor :RequestId
3515
+
3516
+ def initialize(requestid=nil)
3517
+ @RequestId = requestid
3518
+ end
3519
+
3520
+ def deserialize(params)
3521
+ @RequestId = params['RequestId']
3362
3522
  end
3363
3523
  end
3364
3524
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ccc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.504
4
+ version: 3.0.506
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-08 00:00:00.000000000 Z
11
+ date: 2023-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common