tencentcloud-sdk-python-ccc 3.0.1241__tar.gz → 3.0.1245__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud/ccc/v20200210/ccc_client.py +46 -0
  5. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud/ccc/v20200210/errorcodes.py +6 -0
  6. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud/ccc/v20200210/models.py +279 -0
  7. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud_sdk_python_ccc.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-ccc-3.0.1245/tencentcloud_sdk_python_ccc.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-ccc-3.0.1241/tencentcloud_sdk_python_ccc.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/README.rst +0 -0
  11. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud/ccc/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud/ccc/v20200210/__init__.py +0 -0
  14. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud_sdk_python_ccc.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud_sdk_python_ccc.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ccc-3.0.1241 → tencentcloud-sdk-python-ccc-3.0.1245}/tencentcloud_sdk_python_ccc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-ccc
3
- Version: 3.0.1241
3
+ Version: 3.0.1245
4
4
  Summary: Tencent Cloud Ccc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-ccc',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1241"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1245"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Ccc SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1241'
17
+ __version__ = '3.0.1245'
@@ -302,6 +302,29 @@ class CccClient(AbstractClient):
302
302
  raise TencentCloudSDKException(type(e).__name__, str(e))
303
303
 
304
304
 
305
+ def CreateOwnNumberApply(self, request):
306
+ """创建客户自携号码接入审核
307
+
308
+ :param request: Request instance for CreateOwnNumberApply.
309
+ :type request: :class:`tencentcloud.ccc.v20200210.models.CreateOwnNumberApplyRequest`
310
+ :rtype: :class:`tencentcloud.ccc.v20200210.models.CreateOwnNumberApplyResponse`
311
+
312
+ """
313
+ try:
314
+ params = request._serialize()
315
+ headers = request.headers
316
+ body = self.call("CreateOwnNumberApply", params, headers=headers)
317
+ response = json.loads(body)
318
+ model = models.CreateOwnNumberApplyResponse()
319
+ model._deserialize(response["Response"])
320
+ return model
321
+ except Exception as e:
322
+ if isinstance(e, TencentCloudSDKException):
323
+ raise
324
+ else:
325
+ raise TencentCloudSDKException(type(e).__name__, str(e))
326
+
327
+
305
328
  def CreatePredictiveDialingCampaign(self, request):
306
329
  """创建预测式外呼任务
307
330
 
@@ -1132,6 +1155,29 @@ class CccClient(AbstractClient):
1132
1155
  raise TencentCloudSDKException(type(e).__name__, str(e))
1133
1156
 
1134
1157
 
1158
+ def ModifyOwnNumberApply(self, request):
1159
+ """修改客户自携号码审批单
1160
+
1161
+ :param request: Request instance for ModifyOwnNumberApply.
1162
+ :type request: :class:`tencentcloud.ccc.v20200210.models.ModifyOwnNumberApplyRequest`
1163
+ :rtype: :class:`tencentcloud.ccc.v20200210.models.ModifyOwnNumberApplyResponse`
1164
+
1165
+ """
1166
+ try:
1167
+ params = request._serialize()
1168
+ headers = request.headers
1169
+ body = self.call("ModifyOwnNumberApply", params, headers=headers)
1170
+ response = json.loads(body)
1171
+ model = models.ModifyOwnNumberApplyResponse()
1172
+ model._deserialize(response["Response"])
1173
+ return model
1174
+ except Exception as e:
1175
+ if isinstance(e, TencentCloudSDKException):
1176
+ raise
1177
+ else:
1178
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1179
+
1180
+
1135
1181
  def ModifyStaff(self, request):
1136
1182
  """修改客服账号
1137
1183
 
@@ -119,9 +119,15 @@ INVALIDPARAMETERVALUE_APPLYIDNOTEXIST = 'InvalidParameterValue.ApplyIDNotExist'
119
119
  # 公司信息已经存在。
120
120
  INVALIDPARAMETERVALUE_COMPANYEXIST = 'InvalidParameterValue.CompanyExist'
121
121
 
122
+ # 审核单状态错误。
123
+ INVALIDPARAMETERVALUE_ERRORAPPLYSTATUS = 'InvalidParameterValue.ErrorApplyStatus'
124
+
122
125
  # 实例不存在。
123
126
  INVALIDPARAMETERVALUE_INSTANCENOTEXIST = 'InvalidParameterValue.InstanceNotExist'
124
127
 
128
+ # 号码状态无效。
129
+ INVALIDPARAMETERVALUE_PHONENUMINVALID = 'InvalidParameterValue.PhoneNumInvalid'
130
+
125
131
  # 号码已经绑定别的账号。
126
132
  INVALIDPARAMETERVALUE_PHONENUMISBOUNDOTHERACCOUNT = 'InvalidParameterValue.PhoneNumIsBoundOtherAccount'
127
133
 
@@ -2792,6 +2792,117 @@ class CreateIVRSessionResponse(AbstractModel):
2792
2792
  self._RequestId = params.get("RequestId")
2793
2793
 
2794
2794
 
2795
+ class CreateOwnNumberApplyRequest(AbstractModel):
2796
+ """CreateOwnNumberApply请求参数结构体
2797
+
2798
+ """
2799
+
2800
+ def __init__(self):
2801
+ r"""
2802
+ :param _SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
2803
+ :type SdkAppId: int
2804
+ :param _SipTrunkId: SIP通道ID
2805
+ :type SipTrunkId: int
2806
+ :param _DetailList: 线路相关参数
2807
+ :type DetailList: list of OwnNumberApplyDetailItem
2808
+ :param _Prefix: 送号前缀
2809
+ :type Prefix: str
2810
+ """
2811
+ self._SdkAppId = None
2812
+ self._SipTrunkId = None
2813
+ self._DetailList = None
2814
+ self._Prefix = None
2815
+
2816
+ @property
2817
+ def SdkAppId(self):
2818
+ return self._SdkAppId
2819
+
2820
+ @SdkAppId.setter
2821
+ def SdkAppId(self, SdkAppId):
2822
+ self._SdkAppId = SdkAppId
2823
+
2824
+ @property
2825
+ def SipTrunkId(self):
2826
+ return self._SipTrunkId
2827
+
2828
+ @SipTrunkId.setter
2829
+ def SipTrunkId(self, SipTrunkId):
2830
+ self._SipTrunkId = SipTrunkId
2831
+
2832
+ @property
2833
+ def DetailList(self):
2834
+ return self._DetailList
2835
+
2836
+ @DetailList.setter
2837
+ def DetailList(self, DetailList):
2838
+ self._DetailList = DetailList
2839
+
2840
+ @property
2841
+ def Prefix(self):
2842
+ return self._Prefix
2843
+
2844
+ @Prefix.setter
2845
+ def Prefix(self, Prefix):
2846
+ self._Prefix = Prefix
2847
+
2848
+
2849
+ def _deserialize(self, params):
2850
+ self._SdkAppId = params.get("SdkAppId")
2851
+ self._SipTrunkId = params.get("SipTrunkId")
2852
+ if params.get("DetailList") is not None:
2853
+ self._DetailList = []
2854
+ for item in params.get("DetailList"):
2855
+ obj = OwnNumberApplyDetailItem()
2856
+ obj._deserialize(item)
2857
+ self._DetailList.append(obj)
2858
+ self._Prefix = params.get("Prefix")
2859
+ memeber_set = set(params.keys())
2860
+ for name, value in vars(self).items():
2861
+ property_name = name[1:]
2862
+ if property_name in memeber_set:
2863
+ memeber_set.remove(property_name)
2864
+ if len(memeber_set) > 0:
2865
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2866
+
2867
+
2868
+
2869
+ class CreateOwnNumberApplyResponse(AbstractModel):
2870
+ """CreateOwnNumberApply返回参数结构体
2871
+
2872
+ """
2873
+
2874
+ def __init__(self):
2875
+ r"""
2876
+ :param _ApplyId: 审批单号
2877
+ :type ApplyId: int
2878
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2879
+ :type RequestId: str
2880
+ """
2881
+ self._ApplyId = None
2882
+ self._RequestId = None
2883
+
2884
+ @property
2885
+ def ApplyId(self):
2886
+ return self._ApplyId
2887
+
2888
+ @ApplyId.setter
2889
+ def ApplyId(self, ApplyId):
2890
+ self._ApplyId = ApplyId
2891
+
2892
+ @property
2893
+ def RequestId(self):
2894
+ return self._RequestId
2895
+
2896
+ @RequestId.setter
2897
+ def RequestId(self, RequestId):
2898
+ self._RequestId = RequestId
2899
+
2900
+
2901
+ def _deserialize(self, params):
2902
+ self._ApplyId = params.get("ApplyId")
2903
+ self._RequestId = params.get("RequestId")
2904
+
2905
+
2795
2906
  class CreatePredictiveDialingCampaignRequest(AbstractModel):
2796
2907
  """CreatePredictiveDialingCampaign请求参数结构体
2797
2908
 
@@ -8235,6 +8346,105 @@ class ModifyExtensionResponse(AbstractModel):
8235
8346
  self._RequestId = params.get("RequestId")
8236
8347
 
8237
8348
 
8349
+ class ModifyOwnNumberApplyRequest(AbstractModel):
8350
+ """ModifyOwnNumberApply请求参数结构体
8351
+
8352
+ """
8353
+
8354
+ def __init__(self):
8355
+ r"""
8356
+ :param _SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
8357
+ :type SdkAppId: int
8358
+ :param _DetailList: 线路相关参数
8359
+ :type DetailList: list of OwnNumberApplyDetailItem
8360
+ :param _ApplyId: 审批单号
8361
+ :type ApplyId: int
8362
+ :param _Prefix: 送号前缀
8363
+ :type Prefix: str
8364
+ """
8365
+ self._SdkAppId = None
8366
+ self._DetailList = None
8367
+ self._ApplyId = None
8368
+ self._Prefix = None
8369
+
8370
+ @property
8371
+ def SdkAppId(self):
8372
+ return self._SdkAppId
8373
+
8374
+ @SdkAppId.setter
8375
+ def SdkAppId(self, SdkAppId):
8376
+ self._SdkAppId = SdkAppId
8377
+
8378
+ @property
8379
+ def DetailList(self):
8380
+ return self._DetailList
8381
+
8382
+ @DetailList.setter
8383
+ def DetailList(self, DetailList):
8384
+ self._DetailList = DetailList
8385
+
8386
+ @property
8387
+ def ApplyId(self):
8388
+ return self._ApplyId
8389
+
8390
+ @ApplyId.setter
8391
+ def ApplyId(self, ApplyId):
8392
+ self._ApplyId = ApplyId
8393
+
8394
+ @property
8395
+ def Prefix(self):
8396
+ return self._Prefix
8397
+
8398
+ @Prefix.setter
8399
+ def Prefix(self, Prefix):
8400
+ self._Prefix = Prefix
8401
+
8402
+
8403
+ def _deserialize(self, params):
8404
+ self._SdkAppId = params.get("SdkAppId")
8405
+ if params.get("DetailList") is not None:
8406
+ self._DetailList = []
8407
+ for item in params.get("DetailList"):
8408
+ obj = OwnNumberApplyDetailItem()
8409
+ obj._deserialize(item)
8410
+ self._DetailList.append(obj)
8411
+ self._ApplyId = params.get("ApplyId")
8412
+ self._Prefix = params.get("Prefix")
8413
+ memeber_set = set(params.keys())
8414
+ for name, value in vars(self).items():
8415
+ property_name = name[1:]
8416
+ if property_name in memeber_set:
8417
+ memeber_set.remove(property_name)
8418
+ if len(memeber_set) > 0:
8419
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8420
+
8421
+
8422
+
8423
+ class ModifyOwnNumberApplyResponse(AbstractModel):
8424
+ """ModifyOwnNumberApply返回参数结构体
8425
+
8426
+ """
8427
+
8428
+ def __init__(self):
8429
+ r"""
8430
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8431
+ :type RequestId: str
8432
+ """
8433
+ self._RequestId = None
8434
+
8435
+ @property
8436
+ def RequestId(self):
8437
+ return self._RequestId
8438
+
8439
+ @RequestId.setter
8440
+ def RequestId(self, RequestId):
8441
+ self._RequestId = RequestId
8442
+
8443
+
8444
+ def _deserialize(self, params):
8445
+ self._RequestId = params.get("RequestId")
8446
+
8447
+
8238
8448
  class ModifyStaffPasswordRequest(AbstractModel):
8239
8449
  """ModifyStaffPassword请求参数结构体
8240
8450
 
@@ -8528,6 +8738,75 @@ class NumberInfo(AbstractModel):
8528
8738
 
8529
8739
 
8530
8740
 
8741
+ class OwnNumberApplyDetailItem(AbstractModel):
8742
+ """用户自带号码审批明细数据类型
8743
+
8744
+ """
8745
+
8746
+ def __init__(self):
8747
+ r"""
8748
+ :param _CallType: 号码类型:0-呼入|1-呼出|2-呼入呼出
8749
+ :type CallType: int
8750
+ :param _PhoneNumber: 线路号码
8751
+ :type PhoneNumber: str
8752
+ :param _MaxCallCount: 最大并发呼叫数
8753
+ :type MaxCallCount: int
8754
+ :param _MaxCallPSec: 每秒最大并发数
8755
+ :type MaxCallPSec: int
8756
+ """
8757
+ self._CallType = None
8758
+ self._PhoneNumber = None
8759
+ self._MaxCallCount = None
8760
+ self._MaxCallPSec = None
8761
+
8762
+ @property
8763
+ def CallType(self):
8764
+ return self._CallType
8765
+
8766
+ @CallType.setter
8767
+ def CallType(self, CallType):
8768
+ self._CallType = CallType
8769
+
8770
+ @property
8771
+ def PhoneNumber(self):
8772
+ return self._PhoneNumber
8773
+
8774
+ @PhoneNumber.setter
8775
+ def PhoneNumber(self, PhoneNumber):
8776
+ self._PhoneNumber = PhoneNumber
8777
+
8778
+ @property
8779
+ def MaxCallCount(self):
8780
+ return self._MaxCallCount
8781
+
8782
+ @MaxCallCount.setter
8783
+ def MaxCallCount(self, MaxCallCount):
8784
+ self._MaxCallCount = MaxCallCount
8785
+
8786
+ @property
8787
+ def MaxCallPSec(self):
8788
+ return self._MaxCallPSec
8789
+
8790
+ @MaxCallPSec.setter
8791
+ def MaxCallPSec(self, MaxCallPSec):
8792
+ self._MaxCallPSec = MaxCallPSec
8793
+
8794
+
8795
+ def _deserialize(self, params):
8796
+ self._CallType = params.get("CallType")
8797
+ self._PhoneNumber = params.get("PhoneNumber")
8798
+ self._MaxCallCount = params.get("MaxCallCount")
8799
+ self._MaxCallPSec = params.get("MaxCallPSec")
8800
+ memeber_set = set(params.keys())
8801
+ for name, value in vars(self).items():
8802
+ property_name = name[1:]
8803
+ if property_name in memeber_set:
8804
+ memeber_set.remove(property_name)
8805
+ if len(memeber_set) > 0:
8806
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8807
+
8808
+
8809
+
8531
8810
  class PSTNSession(AbstractModel):
8532
8811
  """PSTN 会话类型。
8533
8812
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-ccc
3
- Version: 3.0.1241
3
+ Version: 3.0.1245
4
4
  Summary: Tencent Cloud Ccc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1245
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1241