tencentcloud-sdk-python 3.0.1401__py2.py3-none-any.whl → 3.0.1403__py2.py3-none-any.whl

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 (35) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/bmvpc/v20180625/bmvpc_client.py +54 -18
  3. tencentcloud/cdb/v20170320/models.py +8 -8
  4. tencentcloud/cdn/v20180606/models.py +4 -4
  5. tencentcloud/cfs/v20190719/models.py +2 -2
  6. tencentcloud/cfw/v20190904/models.py +2 -2
  7. tencentcloud/ckafka/v20190819/errorcodes.py +1 -1
  8. tencentcloud/clb/v20180317/models.py +2 -2
  9. tencentcloud/csip/v20221121/csip_client.py +23 -0
  10. tencentcloud/csip/v20221121/models.py +767 -0
  11. tencentcloud/domain/v20180808/errorcodes.py +3 -0
  12. tencentcloud/ess/v20201111/ess_client.py +1 -0
  13. tencentcloud/ess/v20201111/models.py +55 -6
  14. tencentcloud/essbasic/v20210526/essbasic_client.py +1 -0
  15. tencentcloud/essbasic/v20210526/models.py +49 -12
  16. tencentcloud/goosefs/v20220519/goosefs_client.py +23 -0
  17. tencentcloud/goosefs/v20220519/models.py +94 -0
  18. tencentcloud/gs/v20191118/gs_client.py +69 -0
  19. tencentcloud/gs/v20191118/models.py +408 -2
  20. tencentcloud/hunyuan/v20230901/models.py +119 -0
  21. tencentcloud/ioa/v20220601/errorcodes.py +3 -0
  22. tencentcloud/ioa/v20220601/ioa_client.py +46 -0
  23. tencentcloud/ioa/v20220601/models.py +669 -0
  24. tencentcloud/lke/v20231130/models.py +49 -4
  25. tencentcloud/ocr/v20181119/models.py +6 -6
  26. tencentcloud/tat/v20201028/errorcodes.py +3 -0
  27. tencentcloud/tke/v20180525/models.py +218 -0
  28. tencentcloud/tke/v20180525/tke_client.py +46 -0
  29. tencentcloud/trtc/v20190722/errorcodes.py +5 -2
  30. tencentcloud/trtc/v20190722/models.py +91 -4
  31. {tencentcloud_sdk_python-3.0.1401.dist-info → tencentcloud_sdk_python-3.0.1403.dist-info}/METADATA +1 -1
  32. {tencentcloud_sdk_python-3.0.1401.dist-info → tencentcloud_sdk_python-3.0.1403.dist-info}/RECORD +35 -35
  33. {tencentcloud_sdk_python-3.0.1401.dist-info → tencentcloud_sdk_python-3.0.1403.dist-info}/LICENSE +0 -0
  34. {tencentcloud_sdk_python-3.0.1401.dist-info → tencentcloud_sdk_python-3.0.1403.dist-info}/WHEEL +0 -0
  35. {tencentcloud_sdk_python-3.0.1401.dist-info → tencentcloud_sdk_python-3.0.1403.dist-info}/top_level.txt +0 -0
@@ -2250,6 +2250,8 @@ class CallDetail(AbstractModel):
2250
2250
  :param _SubScene: 筛选子场景
2251
2251
  注意:此字段可能返回 null,表示取不到有效值。
2252
2252
  :type SubScene: str
2253
+ :param _BillingTag: 账单明细对应的自定义tag
2254
+ :type BillingTag: str
2253
2255
  """
2254
2256
  self._Id = None
2255
2257
  self._CallTime = None
@@ -2263,6 +2265,7 @@ class CallDetail(AbstractModel):
2263
2265
  self._AppName = None
2264
2266
  self._PageUsage = None
2265
2267
  self._SubScene = None
2268
+ self._BillingTag = None
2266
2269
 
2267
2270
  @property
2268
2271
  def Id(self):
@@ -2408,6 +2411,17 @@ class CallDetail(AbstractModel):
2408
2411
  def SubScene(self, SubScene):
2409
2412
  self._SubScene = SubScene
2410
2413
 
2414
+ @property
2415
+ def BillingTag(self):
2416
+ """账单明细对应的自定义tag
2417
+ :rtype: str
2418
+ """
2419
+ return self._BillingTag
2420
+
2421
+ @BillingTag.setter
2422
+ def BillingTag(self, BillingTag):
2423
+ self._BillingTag = BillingTag
2424
+
2411
2425
 
2412
2426
  def _deserialize(self, params):
2413
2427
  self._Id = params.get("Id")
@@ -2422,6 +2436,7 @@ class CallDetail(AbstractModel):
2422
2436
  self._AppName = params.get("AppName")
2423
2437
  self._PageUsage = params.get("PageUsage")
2424
2438
  self._SubScene = params.get("SubScene")
2439
+ self._BillingTag = params.get("BillingTag")
2425
2440
  memeber_set = set(params.keys())
2426
2441
  for name, value in vars(self).items():
2427
2442
  property_name = name[1:]
@@ -5952,6 +5967,8 @@ class DescribeAppResponse(AbstractModel):
5952
5967
  :type AppStatus: int
5953
5968
  :param _AppStatusDesc: 状态说明
5954
5969
  :type AppStatusDesc: str
5970
+ :param _IsCopying: 应用是否在复制中
5971
+ :type IsCopying: bool
5955
5972
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5956
5973
  :type RequestId: str
5957
5974
  """
@@ -5968,6 +5985,7 @@ class DescribeAppResponse(AbstractModel):
5968
5985
  self._AppKey = None
5969
5986
  self._AppStatus = None
5970
5987
  self._AppStatusDesc = None
5988
+ self._IsCopying = None
5971
5989
  self._RequestId = None
5972
5990
 
5973
5991
  @property
@@ -6113,6 +6131,17 @@ class DescribeAppResponse(AbstractModel):
6113
6131
  def AppStatusDesc(self, AppStatusDesc):
6114
6132
  self._AppStatusDesc = AppStatusDesc
6115
6133
 
6134
+ @property
6135
+ def IsCopying(self):
6136
+ """应用是否在复制中
6137
+ :rtype: bool
6138
+ """
6139
+ return self._IsCopying
6140
+
6141
+ @IsCopying.setter
6142
+ def IsCopying(self, IsCopying):
6143
+ self._IsCopying = IsCopying
6144
+
6116
6145
  @property
6117
6146
  def RequestId(self):
6118
6147
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -6143,6 +6172,7 @@ class DescribeAppResponse(AbstractModel):
6143
6172
  self._AppKey = params.get("AppKey")
6144
6173
  self._AppStatus = params.get("AppStatus")
6145
6174
  self._AppStatusDesc = params.get("AppStatusDesc")
6175
+ self._IsCopying = params.get("IsCopying")
6146
6176
  self._RequestId = params.get("RequestId")
6147
6177
 
6148
6178
 
@@ -20296,9 +20326,9 @@ class ListUsageCallDetailRequest(AbstractModel):
20296
20326
  :type StartTime: str
20297
20327
  :param _EndTime: 结束时间
20298
20328
  :type EndTime: str
20299
- :param _PageNumber: 页码
20329
+ :param _PageNumber: 页码(从1开始)
20300
20330
  :type PageNumber: int
20301
- :param _PageSize: 分页数量
20331
+ :param _PageSize: 分页数量(最大值1000)
20302
20332
  :type PageSize: int
20303
20333
  :param _UinAccount: uin列表
20304
20334
  :type UinAccount: list of str
@@ -20310,6 +20340,8 @@ class ListUsageCallDetailRequest(AbstractModel):
20310
20340
  :type SubScenes: list of str
20311
20341
  :param _AppType: 应用类型(knowledge_qa应用管理, shared_knowlege 共享知识库)
20312
20342
  :type AppType: str
20343
+ :param _BillingTag: 账单明细对应的自定义tag
20344
+ :type BillingTag: str
20313
20345
  """
20314
20346
  self._ModelName = None
20315
20347
  self._StartTime = None
@@ -20321,6 +20353,7 @@ class ListUsageCallDetailRequest(AbstractModel):
20321
20353
  self._CallType = None
20322
20354
  self._SubScenes = None
20323
20355
  self._AppType = None
20356
+ self._BillingTag = None
20324
20357
 
20325
20358
  @property
20326
20359
  def ModelName(self):
@@ -20357,7 +20390,7 @@ class ListUsageCallDetailRequest(AbstractModel):
20357
20390
 
20358
20391
  @property
20359
20392
  def PageNumber(self):
20360
- """页码
20393
+ """页码(从1开始)
20361
20394
  :rtype: int
20362
20395
  """
20363
20396
  return self._PageNumber
@@ -20368,7 +20401,7 @@ class ListUsageCallDetailRequest(AbstractModel):
20368
20401
 
20369
20402
  @property
20370
20403
  def PageSize(self):
20371
- """分页数量
20404
+ """分页数量(最大值1000)
20372
20405
  :rtype: int
20373
20406
  """
20374
20407
  return self._PageSize
@@ -20432,6 +20465,17 @@ class ListUsageCallDetailRequest(AbstractModel):
20432
20465
  def AppType(self, AppType):
20433
20466
  self._AppType = AppType
20434
20467
 
20468
+ @property
20469
+ def BillingTag(self):
20470
+ """账单明细对应的自定义tag
20471
+ :rtype: str
20472
+ """
20473
+ return self._BillingTag
20474
+
20475
+ @BillingTag.setter
20476
+ def BillingTag(self, BillingTag):
20477
+ self._BillingTag = BillingTag
20478
+
20435
20479
 
20436
20480
  def _deserialize(self, params):
20437
20481
  self._ModelName = params.get("ModelName")
@@ -20444,6 +20488,7 @@ class ListUsageCallDetailRequest(AbstractModel):
20444
20488
  self._CallType = params.get("CallType")
20445
20489
  self._SubScenes = params.get("SubScenes")
20446
20490
  self._AppType = params.get("AppType")
20491
+ self._BillingTag = params.get("BillingTag")
20447
20492
  memeber_set = set(params.keys())
20448
20493
  for name, value in vars(self).items():
20449
20494
  property_name = name[1:]
@@ -34640,11 +34640,11 @@ class TextVehicleFront(AbstractModel):
34640
34640
  :param _Seal: 印章
34641
34641
  注意:此字段可能返回 null,表示取不到有效值。
34642
34642
  :type Seal: str
34643
- :param _StateElectronic: 状态
34643
+ :param _StateElectronic: 状态,该字段仅支持电子行驶证返回
34644
34644
  :type StateElectronic: str
34645
- :param _InspectionValidityTimeElectronic: 检验有效期
34645
+ :param _InspectionValidityTimeElectronic: 检验有效期,该字段仅支持电子行驶证返回
34646
34646
  :type InspectionValidityTimeElectronic: str
34647
- :param _GenerationTimeElectronic: 生成时间
34647
+ :param _GenerationTimeElectronic: 生成时间,该字段仅支持电子行驶证返回
34648
34648
  :type GenerationTimeElectronic: str
34649
34649
  """
34650
34650
  self._PlateNo = None
@@ -34796,7 +34796,7 @@ class TextVehicleFront(AbstractModel):
34796
34796
 
34797
34797
  @property
34798
34798
  def StateElectronic(self):
34799
- """状态
34799
+ """状态,该字段仅支持电子行驶证返回
34800
34800
  :rtype: str
34801
34801
  """
34802
34802
  return self._StateElectronic
@@ -34807,7 +34807,7 @@ class TextVehicleFront(AbstractModel):
34807
34807
 
34808
34808
  @property
34809
34809
  def InspectionValidityTimeElectronic(self):
34810
- """检验有效期
34810
+ """检验有效期,该字段仅支持电子行驶证返回
34811
34811
  :rtype: str
34812
34812
  """
34813
34813
  return self._InspectionValidityTimeElectronic
@@ -34818,7 +34818,7 @@ class TextVehicleFront(AbstractModel):
34818
34818
 
34819
34819
  @property
34820
34820
  def GenerationTimeElectronic(self):
34821
- """生成时间
34821
+ """生成时间,该字段仅支持电子行驶证返回
34822
34822
  :rtype: str
34823
34823
  """
34824
34824
  return self._GenerationTimeElectronic
@@ -185,6 +185,9 @@ RESOURCENOTFOUND = 'ResourceNotFound'
185
185
  # 命令不存在。
186
186
  RESOURCENOTFOUND_COMMANDNOTFOUND = 'ResourceNotFound.CommandNotFound'
187
187
 
188
+ # CosBucket不存在。
189
+ RESOURCENOTFOUND_COSBUCKETNOTFOUNDCODE = 'ResourceNotFound.CosBucketNotFoundCode'
190
+
188
191
  # 实例不存在。
189
192
  RESOURCENOTFOUND_INSTANCENOTFOUND = 'ResourceNotFound.InstanceNotFound'
190
193
 
@@ -20010,6 +20010,115 @@ class DescribeLogSwitchesResponse(AbstractModel):
20010
20010
  self._RequestId = params.get("RequestId")
20011
20011
 
20012
20012
 
20013
+ class DescribeMasterComponentRequest(AbstractModel):
20014
+ """DescribeMasterComponent请求参数结构体
20015
+
20016
+ """
20017
+
20018
+ def __init__(self):
20019
+ r"""
20020
+ :param _ClusterId: 集群ID
20021
+ :type ClusterId: str
20022
+ :param _Component: master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
20023
+ :type Component: str
20024
+ """
20025
+ self._ClusterId = None
20026
+ self._Component = None
20027
+
20028
+ @property
20029
+ def ClusterId(self):
20030
+ """集群ID
20031
+ :rtype: str
20032
+ """
20033
+ return self._ClusterId
20034
+
20035
+ @ClusterId.setter
20036
+ def ClusterId(self, ClusterId):
20037
+ self._ClusterId = ClusterId
20038
+
20039
+ @property
20040
+ def Component(self):
20041
+ """master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
20042
+ :rtype: str
20043
+ """
20044
+ return self._Component
20045
+
20046
+ @Component.setter
20047
+ def Component(self, Component):
20048
+ self._Component = Component
20049
+
20050
+
20051
+ def _deserialize(self, params):
20052
+ self._ClusterId = params.get("ClusterId")
20053
+ self._Component = params.get("Component")
20054
+ memeber_set = set(params.keys())
20055
+ for name, value in vars(self).items():
20056
+ property_name = name[1:]
20057
+ if property_name in memeber_set:
20058
+ memeber_set.remove(property_name)
20059
+ if len(memeber_set) > 0:
20060
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20061
+
20062
+
20063
+
20064
+ class DescribeMasterComponentResponse(AbstractModel):
20065
+ """DescribeMasterComponent返回参数结构体
20066
+
20067
+ """
20068
+
20069
+ def __init__(self):
20070
+ r"""
20071
+ :param _Component: master组件名称
20072
+ :type Component: str
20073
+ :param _Status: master组件状态,三种状态:running、updating、shutdown
20074
+ :type Status: str
20075
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20076
+ :type RequestId: str
20077
+ """
20078
+ self._Component = None
20079
+ self._Status = None
20080
+ self._RequestId = None
20081
+
20082
+ @property
20083
+ def Component(self):
20084
+ """master组件名称
20085
+ :rtype: str
20086
+ """
20087
+ return self._Component
20088
+
20089
+ @Component.setter
20090
+ def Component(self, Component):
20091
+ self._Component = Component
20092
+
20093
+ @property
20094
+ def Status(self):
20095
+ """master组件状态,三种状态:running、updating、shutdown
20096
+ :rtype: str
20097
+ """
20098
+ return self._Status
20099
+
20100
+ @Status.setter
20101
+ def Status(self, Status):
20102
+ self._Status = Status
20103
+
20104
+ @property
20105
+ def RequestId(self):
20106
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20107
+ :rtype: str
20108
+ """
20109
+ return self._RequestId
20110
+
20111
+ @RequestId.setter
20112
+ def RequestId(self, RequestId):
20113
+ self._RequestId = RequestId
20114
+
20115
+
20116
+ def _deserialize(self, params):
20117
+ self._Component = params.get("Component")
20118
+ self._Status = params.get("Status")
20119
+ self._RequestId = params.get("RequestId")
20120
+
20121
+
20013
20122
  class DescribeOSImagesRequest(AbstractModel):
20014
20123
  """DescribeOSImages请求参数结构体
20015
20124
 
@@ -34492,6 +34601,115 @@ class ModifyClusterVirtualNodePoolResponse(AbstractModel):
34492
34601
  self._RequestId = params.get("RequestId")
34493
34602
 
34494
34603
 
34604
+ class ModifyMasterComponentRequest(AbstractModel):
34605
+ """ModifyMasterComponent请求参数结构体
34606
+
34607
+ """
34608
+
34609
+ def __init__(self):
34610
+ r"""
34611
+ :param _ClusterId: 集群ID
34612
+ :type ClusterId: str
34613
+ :param _Component: master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
34614
+ :type Component: str
34615
+ :param _Operation: 停机或恢复,值只能为:shutdown或restore
34616
+ :type Operation: str
34617
+ :param _DryRun: 为true时,不真正执行停机或恢复操作
34618
+ :type DryRun: bool
34619
+ """
34620
+ self._ClusterId = None
34621
+ self._Component = None
34622
+ self._Operation = None
34623
+ self._DryRun = None
34624
+
34625
+ @property
34626
+ def ClusterId(self):
34627
+ """集群ID
34628
+ :rtype: str
34629
+ """
34630
+ return self._ClusterId
34631
+
34632
+ @ClusterId.setter
34633
+ def ClusterId(self, ClusterId):
34634
+ self._ClusterId = ClusterId
34635
+
34636
+ @property
34637
+ def Component(self):
34638
+ """master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
34639
+ :rtype: str
34640
+ """
34641
+ return self._Component
34642
+
34643
+ @Component.setter
34644
+ def Component(self, Component):
34645
+ self._Component = Component
34646
+
34647
+ @property
34648
+ def Operation(self):
34649
+ """停机或恢复,值只能为:shutdown或restore
34650
+ :rtype: str
34651
+ """
34652
+ return self._Operation
34653
+
34654
+ @Operation.setter
34655
+ def Operation(self, Operation):
34656
+ self._Operation = Operation
34657
+
34658
+ @property
34659
+ def DryRun(self):
34660
+ """为true时,不真正执行停机或恢复操作
34661
+ :rtype: bool
34662
+ """
34663
+ return self._DryRun
34664
+
34665
+ @DryRun.setter
34666
+ def DryRun(self, DryRun):
34667
+ self._DryRun = DryRun
34668
+
34669
+
34670
+ def _deserialize(self, params):
34671
+ self._ClusterId = params.get("ClusterId")
34672
+ self._Component = params.get("Component")
34673
+ self._Operation = params.get("Operation")
34674
+ self._DryRun = params.get("DryRun")
34675
+ memeber_set = set(params.keys())
34676
+ for name, value in vars(self).items():
34677
+ property_name = name[1:]
34678
+ if property_name in memeber_set:
34679
+ memeber_set.remove(property_name)
34680
+ if len(memeber_set) > 0:
34681
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
34682
+
34683
+
34684
+
34685
+ class ModifyMasterComponentResponse(AbstractModel):
34686
+ """ModifyMasterComponent返回参数结构体
34687
+
34688
+ """
34689
+
34690
+ def __init__(self):
34691
+ r"""
34692
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
34693
+ :type RequestId: str
34694
+ """
34695
+ self._RequestId = None
34696
+
34697
+ @property
34698
+ def RequestId(self):
34699
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
34700
+ :rtype: str
34701
+ """
34702
+ return self._RequestId
34703
+
34704
+ @RequestId.setter
34705
+ def RequestId(self, RequestId):
34706
+ self._RequestId = RequestId
34707
+
34708
+
34709
+ def _deserialize(self, params):
34710
+ self._RequestId = params.get("RequestId")
34711
+
34712
+
34495
34713
  class ModifyNodePoolDesiredCapacityAboutAsgRequest(AbstractModel):
34496
34714
  """ModifyNodePoolDesiredCapacityAboutAsg请求参数结构体
34497
34715
 
@@ -2855,6 +2855,29 @@ class TkeClient(AbstractClient):
2855
2855
  raise TencentCloudSDKException(type(e).__name__, str(e))
2856
2856
 
2857
2857
 
2858
+ def DescribeMasterComponent(self, request):
2859
+ """进行master组件停机故障演练时,获取master组件运行状态,支持kube-apiserver、kube-scheduler、kube-controller-manager
2860
+
2861
+ :param request: Request instance for DescribeMasterComponent.
2862
+ :type request: :class:`tencentcloud.tke.v20180525.models.DescribeMasterComponentRequest`
2863
+ :rtype: :class:`tencentcloud.tke.v20180525.models.DescribeMasterComponentResponse`
2864
+
2865
+ """
2866
+ try:
2867
+ params = request._serialize()
2868
+ headers = request.headers
2869
+ body = self.call("DescribeMasterComponent", params, headers=headers)
2870
+ response = json.loads(body)
2871
+ model = models.DescribeMasterComponentResponse()
2872
+ model._deserialize(response["Response"])
2873
+ return model
2874
+ except Exception as e:
2875
+ if isinstance(e, TencentCloudSDKException):
2876
+ raise
2877
+ else:
2878
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2879
+
2880
+
2858
2881
  def DescribeOSImages(self, request):
2859
2882
  """获取OS聚合信息
2860
2883
 
@@ -4465,6 +4488,29 @@ class TkeClient(AbstractClient):
4465
4488
  raise TencentCloudSDKException(type(e).__name__, str(e))
4466
4489
 
4467
4490
 
4491
+ def ModifyMasterComponent(self, request):
4492
+ """修改master组件,支持kube-apiserver、kube-scheduler、kube-controller-manager副本数调整为0和恢复
4493
+
4494
+ :param request: Request instance for ModifyMasterComponent.
4495
+ :type request: :class:`tencentcloud.tke.v20180525.models.ModifyMasterComponentRequest`
4496
+ :rtype: :class:`tencentcloud.tke.v20180525.models.ModifyMasterComponentResponse`
4497
+
4498
+ """
4499
+ try:
4500
+ params = request._serialize()
4501
+ headers = request.headers
4502
+ body = self.call("ModifyMasterComponent", params, headers=headers)
4503
+ response = json.loads(body)
4504
+ model = models.ModifyMasterComponentResponse()
4505
+ model._deserialize(response["Response"])
4506
+ return model
4507
+ except Exception as e:
4508
+ if isinstance(e, TencentCloudSDKException):
4509
+ raise
4510
+ else:
4511
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4512
+
4513
+
4468
4514
  def ModifyNodePoolDesiredCapacityAboutAsg(self, request):
4469
4515
  """修改节点池关联伸缩组的期望实例数
4470
4516
 
@@ -161,6 +161,9 @@ INVALIDPARAMETER_INVALIDAUDIOINPUT = 'InvalidParameter.InvalidAudioInput'
161
161
  # invalid sdkAppId
162
162
  INVALIDPARAMETER_INVALIDSDKAPPID = 'InvalidParameter.InvalidSdkAppId'
163
163
 
164
+ # VoicePrintIdList 不能为空,也不能过长。
165
+ INVALIDPARAMETER_INVALIDVOICEPRINTIDLIST = 'InvalidParameter.InvalidVoicePrintIdList'
166
+
164
167
  # 大画面居右显示参数错误。
165
168
  INVALIDPARAMETER_MAINVIDEORIGHTALIGN = 'InvalidParameter.MainVideoRightAlign'
166
169
 
@@ -296,8 +299,8 @@ MISSINGPARAMETER_ENCODEPARAMS = 'MissingParameter.EncodeParams'
296
299
  # 缺少endTS_s参数。
297
300
  MISSINGPARAMETER_ENDTS = 'MissingParameter.EndTs'
298
301
 
299
- # 缺少VoicePrintIdList 参数。
300
- MISSINGPARAMETER_MISSINGVOICEPRINTIDLIST = 'MissingParameter.MissingVoicePrintIdList'
302
+ # 更新声纹时,Audio,AudioName,AudioMetaInfo不能都为空。
303
+ MISSINGPARAMETER_MISSINGVOICEPRINTUPDATEPARAMS = 'MissingParameter.MissingVoicePrintUpdateParams'
301
304
 
302
305
  # 缺少OutputParams参数。
303
306
  MISSINGPARAMETER_OUTPUTPARAMS = 'MissingParameter.OutputParams'
@@ -211,6 +211,8 @@ class AgentConfig(AbstractModel):
211
211
  :type AmbientSound: :class:`tencentcloud.trtc.v20190722.models.AmbientSound`
212
212
  :param _VoicePrint: 声纹配置
213
213
  :type VoicePrint: :class:`tencentcloud.trtc.v20190722.models.VoicePrint`
214
+ :param _TurnDetection: 语义断句检测
215
+ :type TurnDetection: :class:`tencentcloud.trtc.v20190722.models.TurnDetection`
214
216
  """
215
217
  self._UserId = None
216
218
  self._UserSig = None
@@ -225,6 +227,7 @@ class AgentConfig(AbstractModel):
225
227
  self._FilterBracketsContent = None
226
228
  self._AmbientSound = None
227
229
  self._VoicePrint = None
230
+ self._TurnDetection = None
228
231
 
229
232
  @property
230
233
  def UserId(self):
@@ -377,6 +380,17 @@ class AgentConfig(AbstractModel):
377
380
  def VoicePrint(self, VoicePrint):
378
381
  self._VoicePrint = VoicePrint
379
382
 
383
+ @property
384
+ def TurnDetection(self):
385
+ """语义断句检测
386
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TurnDetection`
387
+ """
388
+ return self._TurnDetection
389
+
390
+ @TurnDetection.setter
391
+ def TurnDetection(self, TurnDetection):
392
+ self._TurnDetection = TurnDetection
393
+
380
394
 
381
395
  def _deserialize(self, params):
382
396
  self._UserId = params.get("UserId")
@@ -396,6 +410,9 @@ class AgentConfig(AbstractModel):
396
410
  if params.get("VoicePrint") is not None:
397
411
  self._VoicePrint = VoicePrint()
398
412
  self._VoicePrint._deserialize(params.get("VoicePrint"))
413
+ if params.get("TurnDetection") is not None:
414
+ self._TurnDetection = TurnDetection()
415
+ self._TurnDetection._deserialize(params.get("TurnDetection"))
399
416
  memeber_set = set(params.keys())
400
417
  for name, value in vars(self).items():
401
418
  property_name = name[1:]
@@ -10803,7 +10820,7 @@ class RegisterVoicePrintRequest(AbstractModel):
10803
10820
 
10804
10821
  def __init__(self):
10805
10822
  r"""
10806
- :param _Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k或8k采样率, 16bit位深, 单声道, 8到18秒有效音频时长,编码数据大小不超过2M
10823
+ :param _Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
10807
10824
  :type Audio: str
10808
10825
  :param _ReqTimestamp: 毫秒时间戳
10809
10826
  :type ReqTimestamp: int
@@ -10822,7 +10839,7 @@ class RegisterVoicePrintRequest(AbstractModel):
10822
10839
 
10823
10840
  @property
10824
10841
  def Audio(self):
10825
- """整个wav音频文件的base64字符串,其中wav文件限定为16k或8k采样率, 16bit位深, 单声道, 8到18秒有效音频时长,编码数据大小不超过2M
10842
+ """整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
10826
10843
  :rtype: str
10827
10844
  """
10828
10845
  return self._Audio
@@ -14942,6 +14959,76 @@ class TrtcUsage(AbstractModel):
14942
14959
 
14943
14960
 
14944
14961
 
14962
+ class TurnDetection(AbstractModel):
14963
+ """断句配置
14964
+
14965
+ """
14966
+
14967
+ def __init__(self):
14968
+ r"""
14969
+ :param _SemanticEagerness: TurnDetectionMode为3时生效,语义断句的灵敏程度
14970
+
14971
+
14972
+ 功能简介:根据用户所说的话来判断其已完成发言来分割音频
14973
+
14974
+
14975
+ 可选: "low" | "medium" | "high" | "auto"
14976
+
14977
+
14978
+ auto 是默认值,与 medium 相同。
14979
+ low 将让用户有足够的时间说话。
14980
+ high 将尽快对音频进行分块。
14981
+
14982
+
14983
+ 如果您希望模型在对话模式下更频繁地响应,可以将 SemanticEagerness 设置为 high
14984
+ 如果您希望在用户停顿时,AI能够等待片刻,可以将 SemanticEagerness 设置为 low
14985
+ 无论什么模式,最终都会分割送个大模型进行回复
14986
+
14987
+ :type SemanticEagerness: str
14988
+ """
14989
+ self._SemanticEagerness = None
14990
+
14991
+ @property
14992
+ def SemanticEagerness(self):
14993
+ """TurnDetectionMode为3时生效,语义断句的灵敏程度
14994
+
14995
+
14996
+ 功能简介:根据用户所说的话来判断其已完成发言来分割音频
14997
+
14998
+
14999
+ 可选: "low" | "medium" | "high" | "auto"
15000
+
15001
+
15002
+ auto 是默认值,与 medium 相同。
15003
+ low 将让用户有足够的时间说话。
15004
+ high 将尽快对音频进行分块。
15005
+
15006
+
15007
+ 如果您希望模型在对话模式下更频繁地响应,可以将 SemanticEagerness 设置为 high
15008
+ 如果您希望在用户停顿时,AI能够等待片刻,可以将 SemanticEagerness 设置为 low
15009
+ 无论什么模式,最终都会分割送个大模型进行回复
15010
+
15011
+ :rtype: str
15012
+ """
15013
+ return self._SemanticEagerness
15014
+
15015
+ @SemanticEagerness.setter
15016
+ def SemanticEagerness(self, SemanticEagerness):
15017
+ self._SemanticEagerness = SemanticEagerness
15018
+
15019
+
15020
+ def _deserialize(self, params):
15021
+ self._SemanticEagerness = params.get("SemanticEagerness")
15022
+ memeber_set = set(params.keys())
15023
+ for name, value in vars(self).items():
15024
+ property_name = name[1:]
15025
+ if property_name in memeber_set:
15026
+ memeber_set.remove(property_name)
15027
+ if len(memeber_set) > 0:
15028
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15029
+
15030
+
15031
+
14945
15032
  class UpdateAIConversationRequest(AbstractModel):
14946
15033
  """UpdateAIConversation请求参数结构体
14947
15034
 
@@ -15467,7 +15554,7 @@ class UpdateVoicePrintRequest(AbstractModel):
15467
15554
  :type ReqTimestamp: int
15468
15555
  :param _AudioFormat: 音频格式,目前只支持0,代表wav
15469
15556
  :type AudioFormat: int
15470
- :param _Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k或8k采样率, 16bit位深, 单声道, 8到18秒有效音频时长,编码数据大小不超过2M
15557
+ :param _Audio: 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
15471
15558
  :type Audio: str
15472
15559
  :param _AudioMetaInfo: 和声纹绑定的MetaInfo,长度最大不超过512
15473
15560
  :type AudioMetaInfo: str
@@ -15513,7 +15600,7 @@ class UpdateVoicePrintRequest(AbstractModel):
15513
15600
 
15514
15601
  @property
15515
15602
  def Audio(self):
15516
- """整个wav音频文件的base64字符串,其中wav文件限定为16k或8k采样率, 16bit位深, 单声道, 8到18秒有效音频时长,编码数据大小不超过2M
15603
+ """整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
15517
15604
  :rtype: str
15518
15605
  """
15519
15606
  return self._Audio
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python
3
- Version: 3.0.1401
3
+ Version: 3.0.1403
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud