tencentcloud-sdk-ccc 3.0.916 → 3.0.917

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: 4b7897498e3d44d55e57d5f05625647ba53358cc
4
- data.tar.gz: c4e4e6e7917240ac8fa0b205e0a8871c4143c97d
3
+ metadata.gz: 691ad2e53d12ff1bc266466bde72e6c7b609e358
4
+ data.tar.gz: cbb38accba6d227d23ec7a32954cb967159ce3a1
5
5
  SHA512:
6
- metadata.gz: 8b8f97e265764606408e39609e0485f00b0289ecac2f2901463a8b999d4a7e2ce943bd9b80153c505378d97631c92a78646231b75e02bbfdf388b960ca56663d
7
- data.tar.gz: 4a02f56ce15b2dd8c215405fb83cbfdc8ff14d628575f2d073d814d764378bc17bcfcd7b3b1e403466433bd277b34bce46a211dcc247ef99128c0d95851a212a
6
+ metadata.gz: 3983ea744803ea6d65d5822170b41bdcf11075f9d3953df19f01b40efe92a55db22abbc7ea2415f4f2477fc2edae68471027ca63179b512f5f53599339426753
7
+ data.tar.gz: 980a2b351949949f298120375fecf17605b45dc1547caf0070a9a837aaf6bd5477fe6f72a9611af86228ed3efba5d7209768d13efceafa1cf3919e1c8a3e61d5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.916
1
+ 3.0.917
@@ -317,6 +317,30 @@ module TencentCloud
317
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
318
  end
319
319
 
320
+ # 创建客户自携号码接入审核
321
+
322
+ # @param request: Request instance for CreateOwnNumberApply.
323
+ # @type request: :class:`Tencentcloud::ccc::V20200210::CreateOwnNumberApplyRequest`
324
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::CreateOwnNumberApplyResponse`
325
+ def CreateOwnNumberApply(request)
326
+ body = send_request('CreateOwnNumberApply', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = CreateOwnNumberApplyResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
320
344
  # 创建预测式外呼任务
321
345
 
322
346
  # @param request: Request instance for CreatePredictiveDialingCampaign.
@@ -1183,6 +1207,30 @@ module TencentCloud
1183
1207
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1184
1208
  end
1185
1209
 
1210
+ # 修改客户自携号码审批单
1211
+
1212
+ # @param request: Request instance for ModifyOwnNumberApply.
1213
+ # @type request: :class:`Tencentcloud::ccc::V20200210::ModifyOwnNumberApplyRequest`
1214
+ # @rtype: :class:`Tencentcloud::ccc::V20200210::ModifyOwnNumberApplyResponse`
1215
+ def ModifyOwnNumberApply(request)
1216
+ body = send_request('ModifyOwnNumberApply', request.serialize)
1217
+ response = JSON.parse(body)
1218
+ if response['Response'].key?('Error') == false
1219
+ model = ModifyOwnNumberApplyResponse.new
1220
+ model.deserialize(response['Response'])
1221
+ model
1222
+ else
1223
+ code = response['Response']['Error']['Code']
1224
+ message = response['Response']['Error']['Message']
1225
+ reqid = response['Response']['RequestId']
1226
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1227
+ end
1228
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1229
+ raise e
1230
+ rescue StandardError => e
1231
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1232
+ end
1233
+
1186
1234
  # 修改客服账号
1187
1235
 
1188
1236
  # @param request: Request instance for ModifyStaff.
@@ -1254,6 +1254,61 @@ module TencentCloud
1254
1254
  end
1255
1255
  end
1256
1256
 
1257
+ # CreateOwnNumberApply请求参数结构体
1258
+ class CreateOwnNumberApplyRequest < TencentCloud::Common::AbstractModel
1259
+ # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
1260
+ # @type SdkAppId: Integer
1261
+ # @param SipTrunkId: SIP通道ID
1262
+ # @type SipTrunkId: Integer
1263
+ # @param DetailList: 线路相关参数
1264
+ # @type DetailList: Array
1265
+ # @param Prefix: 送号前缀
1266
+ # @type Prefix: String
1267
+
1268
+ attr_accessor :SdkAppId, :SipTrunkId, :DetailList, :Prefix
1269
+
1270
+ def initialize(sdkappid=nil, siptrunkid=nil, detaillist=nil, prefix=nil)
1271
+ @SdkAppId = sdkappid
1272
+ @SipTrunkId = siptrunkid
1273
+ @DetailList = detaillist
1274
+ @Prefix = prefix
1275
+ end
1276
+
1277
+ def deserialize(params)
1278
+ @SdkAppId = params['SdkAppId']
1279
+ @SipTrunkId = params['SipTrunkId']
1280
+ unless params['DetailList'].nil?
1281
+ @DetailList = []
1282
+ params['DetailList'].each do |i|
1283
+ ownnumberapplydetailitem_tmp = OwnNumberApplyDetailItem.new
1284
+ ownnumberapplydetailitem_tmp.deserialize(i)
1285
+ @DetailList << ownnumberapplydetailitem_tmp
1286
+ end
1287
+ end
1288
+ @Prefix = params['Prefix']
1289
+ end
1290
+ end
1291
+
1292
+ # CreateOwnNumberApply返回参数结构体
1293
+ class CreateOwnNumberApplyResponse < TencentCloud::Common::AbstractModel
1294
+ # @param ApplyId: 审批单号
1295
+ # @type ApplyId: Integer
1296
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1297
+ # @type RequestId: String
1298
+
1299
+ attr_accessor :ApplyId, :RequestId
1300
+
1301
+ def initialize(applyid=nil, requestid=nil)
1302
+ @ApplyId = applyid
1303
+ @RequestId = requestid
1304
+ end
1305
+
1306
+ def deserialize(params)
1307
+ @ApplyId = params['ApplyId']
1308
+ @RequestId = params['RequestId']
1309
+ end
1310
+ end
1311
+
1257
1312
  # CreatePredictiveDialingCampaign请求参数结构体
1258
1313
  class CreatePredictiveDialingCampaignRequest < TencentCloud::Common::AbstractModel
1259
1314
  # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
@@ -3773,6 +3828,57 @@ module TencentCloud
3773
3828
  end
3774
3829
  end
3775
3830
 
3831
+ # ModifyOwnNumberApply请求参数结构体
3832
+ class ModifyOwnNumberApplyRequest < TencentCloud::Common::AbstractModel
3833
+ # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
3834
+ # @type SdkAppId: Integer
3835
+ # @param DetailList: 线路相关参数
3836
+ # @type DetailList: Array
3837
+ # @param ApplyId: 审批单号
3838
+ # @type ApplyId: Integer
3839
+ # @param Prefix: 送号前缀
3840
+ # @type Prefix: String
3841
+
3842
+ attr_accessor :SdkAppId, :DetailList, :ApplyId, :Prefix
3843
+
3844
+ def initialize(sdkappid=nil, detaillist=nil, applyid=nil, prefix=nil)
3845
+ @SdkAppId = sdkappid
3846
+ @DetailList = detaillist
3847
+ @ApplyId = applyid
3848
+ @Prefix = prefix
3849
+ end
3850
+
3851
+ def deserialize(params)
3852
+ @SdkAppId = params['SdkAppId']
3853
+ unless params['DetailList'].nil?
3854
+ @DetailList = []
3855
+ params['DetailList'].each do |i|
3856
+ ownnumberapplydetailitem_tmp = OwnNumberApplyDetailItem.new
3857
+ ownnumberapplydetailitem_tmp.deserialize(i)
3858
+ @DetailList << ownnumberapplydetailitem_tmp
3859
+ end
3860
+ end
3861
+ @ApplyId = params['ApplyId']
3862
+ @Prefix = params['Prefix']
3863
+ end
3864
+ end
3865
+
3866
+ # ModifyOwnNumberApply返回参数结构体
3867
+ class ModifyOwnNumberApplyResponse < TencentCloud::Common::AbstractModel
3868
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3869
+ # @type RequestId: String
3870
+
3871
+ attr_accessor :RequestId
3872
+
3873
+ def initialize(requestid=nil)
3874
+ @RequestId = requestid
3875
+ end
3876
+
3877
+ def deserialize(params)
3878
+ @RequestId = params['RequestId']
3879
+ end
3880
+ end
3881
+
3776
3882
  # ModifyStaffPassword请求参数结构体
3777
3883
  class ModifyStaffPasswordRequest < TencentCloud::Common::AbstractModel
3778
3884
  # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
@@ -3901,6 +4007,34 @@ module TencentCloud
3901
4007
  end
3902
4008
  end
3903
4009
 
4010
+ # 用户自带号码审批明细数据类型
4011
+ class OwnNumberApplyDetailItem < TencentCloud::Common::AbstractModel
4012
+ # @param CallType: 号码类型:0-呼入|1-呼出|2-呼入呼出
4013
+ # @type CallType: Integer
4014
+ # @param PhoneNumber: 线路号码
4015
+ # @type PhoneNumber: String
4016
+ # @param MaxCallCount: 最大并发呼叫数
4017
+ # @type MaxCallCount: Integer
4018
+ # @param MaxCallPSec: 每秒最大并发数
4019
+ # @type MaxCallPSec: Integer
4020
+
4021
+ attr_accessor :CallType, :PhoneNumber, :MaxCallCount, :MaxCallPSec
4022
+
4023
+ def initialize(calltype=nil, phonenumber=nil, maxcallcount=nil, maxcallpsec=nil)
4024
+ @CallType = calltype
4025
+ @PhoneNumber = phonenumber
4026
+ @MaxCallCount = maxcallcount
4027
+ @MaxCallPSec = maxcallpsec
4028
+ end
4029
+
4030
+ def deserialize(params)
4031
+ @CallType = params['CallType']
4032
+ @PhoneNumber = params['PhoneNumber']
4033
+ @MaxCallCount = params['MaxCallCount']
4034
+ @MaxCallPSec = params['MaxCallPSec']
4035
+ end
4036
+ end
4037
+
3904
4038
  # PSTN 会话类型。
3905
4039
  class PSTNSession < TencentCloud::Common::AbstractModel
3906
4040
  # @param SessionID: 会话 ID
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ccc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.916
4
+ version: 3.0.917
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud