tencentcloud-sdk-python 3.0.1126__py2.py3-none-any.whl → 3.0.1128__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.

Potentially problematic release.


This version of tencentcloud-sdk-python might be problematic. Click here for more details.

Files changed (38) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/aiart_client.py +4 -11
  3. tencentcloud/aiart/v20221229/models.py +6 -5
  4. tencentcloud/antiddos/v20200309/models.py +13 -0
  5. tencentcloud/asr/v20190614/asr_client.py +1 -1
  6. tencentcloud/asr/v20190614/models.py +15 -4
  7. tencentcloud/cdb/v20170320/cdb_client.py +46 -0
  8. tencentcloud/cdb/v20170320/errorcodes.py +3 -0
  9. tencentcloud/cdb/v20170320/models.py +360 -0
  10. tencentcloud/csip/v20221121/models.py +3 -0
  11. tencentcloud/es/v20180416/models.py +12 -12
  12. tencentcloud/faceid/v20180301/faceid_client.py +1 -1
  13. tencentcloud/faceid/v20180301/models.py +12 -0
  14. tencentcloud/hunyuan/v20230901/hunyuan_client.py +8 -8
  15. tencentcloud/hunyuan/v20230901/models.py +121 -30
  16. tencentcloud/iss/v20230517/models.py +50 -0
  17. tencentcloud/lke/__init__.py +0 -0
  18. tencentcloud/lke/v20231130/__init__.py +0 -0
  19. tencentcloud/lke/v20231130/errorcodes.py +30 -0
  20. tencentcloud/lke/v20231130/lke_client.py +1751 -0
  21. tencentcloud/lke/v20231130/models.py +13358 -0
  22. tencentcloud/mna/v20210119/errorcodes.py +12 -0
  23. tencentcloud/mna/v20210119/models.py +301 -5
  24. tencentcloud/monitor/v20180724/models.py +0 -82
  25. tencentcloud/monitor/v20180724/monitor_client.py +0 -23
  26. tencentcloud/redis/v20180412/models.py +1 -1
  27. tencentcloud/sms/v20210111/models.py +1 -0
  28. tencentcloud/soe/v20180724/models.py +1 -1
  29. tencentcloud/tione/v20211111/models.py +48 -1
  30. tencentcloud/trtc/v20190722/models.py +97 -2
  31. tencentcloud/trtc/v20190722/trtc_client.py +3 -3
  32. tencentcloud/wedata/v20210820/models.py +345 -2088
  33. tencentcloud/wedata/v20210820/wedata_client.py +0 -253
  34. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/METADATA +1 -1
  35. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/RECORD +38 -33
  36. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/LICENSE +0 -0
  37. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/WHEEL +0 -0
  38. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/top_level.txt +0 -0
@@ -3065,29 +3065,6 @@ class MonitorClient(AbstractClient):
3065
3065
  raise TencentCloudSDKException(type(e).__name__, str(e))
3066
3066
 
3067
3067
 
3068
- def SendCustomAlarmMsg(self, request):
3069
- """发送自定义消息告警
3070
-
3071
- :param request: Request instance for SendCustomAlarmMsg.
3072
- :type request: :class:`tencentcloud.monitor.v20180724.models.SendCustomAlarmMsgRequest`
3073
- :rtype: :class:`tencentcloud.monitor.v20180724.models.SendCustomAlarmMsgResponse`
3074
-
3075
- """
3076
- try:
3077
- params = request._serialize()
3078
- headers = request.headers
3079
- body = self.call("SendCustomAlarmMsg", params, headers=headers)
3080
- response = json.loads(body)
3081
- model = models.SendCustomAlarmMsgResponse()
3082
- model._deserialize(response["Response"])
3083
- return model
3084
- except Exception as e:
3085
- if isinstance(e, TencentCloudSDKException):
3086
- raise
3087
- else:
3088
- raise TencentCloudSDKException(type(e).__name__, str(e))
3089
-
3090
-
3091
3068
  def SetDefaultAlarmPolicy(self, request):
3092
3069
  """设置一个策略为该告警策略类型、该项目的默认告警策略。
3093
3070
  同一项目下相同的告警策略类型,就会被设置为非默认。
@@ -10224,7 +10224,7 @@ class InstanceSet(AbstractModel):
10224
10224
  :param _CurrentProxyVersion: 实例当前Proxy版本。
10225
10225
  注意:此字段可能返回 null,表示取不到有效值。
10226
10226
  :type CurrentProxyVersion: str
10227
- :param _CurrentRedisVersion: 实例当前Cache小版本。
10227
+ :param _CurrentRedisVersion: 实例当前Cache小版本。如果实例加入全球复制组,显示全球复制的内核版本。
10228
10228
  注意:此字段可能返回 null,表示取不到有效值。
10229
10229
  :type CurrentRedisVersion: str
10230
10230
  :param _UpgradeProxyVersion: 实例可升级Proxy版本。
@@ -1598,6 +1598,7 @@ class ModifySmsTemplateRequest(AbstractModel):
1598
1598
  :param _International: 是否国际/港澳台短信:
1599
1599
  0:表示国内短信。
1600
1600
  1:表示国际/港澳台短信。
1601
+ 注:需要和待修改模板 International 值保持一致,该参数不能直接修改国内模板到国际模板。
1601
1602
  :type International: int
1602
1603
  :param _Remark: 模板备注,例如申请原因,使用场景等。
1603
1604
  :type Remark: str
@@ -994,7 +994,7 @@ class TransmitOralProcessRequest(AbstractModel):
994
994
  :type SessionId: str
995
995
  :param _SoeAppId: 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId,请勿填入该参数,否则会报欠费错误。使用指南:[业务应用](https://cloud.tencent.com/document/product/884/78824#.E4.B8.9A.E5.8A.A1.E5.BA.94.E7.94.A8)
996
996
  :type SoeAppId: str
997
- :param _IsLongLifeSession: 长效session标识,当该参数为1时,session的持续时间为300s,但会一定程度上影响第一个数据包的返回速度。当InitOralProcess接口调用时此项为1时,此项必填1才可生效。
997
+ :param _IsLongLifeSession: 长效session标识,当该参数为1时,session的持续时间为300s,但会一定程度上影响第一个数据包的返回速度。当InitOralProcess接口和TransmitOralProcess接口的IsLongLifeSession均为1时,才可生效。
998
998
  :type IsLongLifeSession: int
999
999
  :param _IsQuery: 查询标识,当该参数为1时,该请求为查询请求,请求返回该 Session 的评估结果。
1000
1000
  :type IsQuery: int
@@ -4009,7 +4009,7 @@ POSTPAID_BY_HOUR 按量计费
4009
4009
  :type ImageInfo: :class:`tencentcloud.tione.v20211111.models.ImageInfo`
4010
4010
  :param _CodePackagePath: COS代码包路径
4011
4011
  :type CodePackagePath: :class:`tencentcloud.tione.v20211111.models.CosPathInfo`
4012
- :param _StartCmdInfo: 启动命令信息,默认为sh start.sh
4012
+ :param _StartCmdInfo: 任务的启动命令,按任务训练模式输入,如遇特殊字符导致配置失败,可使用EncodedStartCmdInfo参数
4013
4013
  :type StartCmdInfo: :class:`tencentcloud.tione.v20211111.models.StartCmdInfo`
4014
4014
  :param _TrainingMode: 训练模式,通过DescribeTrainingFrameworks接口查询,eg:PS_WORKER、DDP、MPI、HOROVOD
4015
4015
  :type TrainingMode: str
@@ -4035,6 +4035,8 @@ POSTPAID_BY_HOUR 按量计费
4035
4035
  :type CallbackUrl: str
4036
4036
  :param _PreTrainModel: 太极预训练模型ID
4037
4037
  :type PreTrainModel: :class:`tencentcloud.tione.v20211111.models.PreTrainModel`
4038
+ :param _EncodedStartCmdInfo: 编码后的任务启动命令,与StartCmdInfo同时配置时,仅当前参数生效
4039
+ :type EncodedStartCmdInfo: :class:`tencentcloud.tione.v20211111.models.EncodedStartCmdInfo`
4038
4040
  """
4039
4041
  self._Name = None
4040
4042
  self._ChargeType = None
@@ -4059,6 +4061,7 @@ POSTPAID_BY_HOUR 按量计费
4059
4061
  self._DataSource = None
4060
4062
  self._CallbackUrl = None
4061
4063
  self._PreTrainModel = None
4064
+ self._EncodedStartCmdInfo = None
4062
4065
 
4063
4066
  @property
4064
4067
  def Name(self):
@@ -4244,6 +4247,14 @@ POSTPAID_BY_HOUR 按量计费
4244
4247
  def PreTrainModel(self, PreTrainModel):
4245
4248
  self._PreTrainModel = PreTrainModel
4246
4249
 
4250
+ @property
4251
+ def EncodedStartCmdInfo(self):
4252
+ return self._EncodedStartCmdInfo
4253
+
4254
+ @EncodedStartCmdInfo.setter
4255
+ def EncodedStartCmdInfo(self, EncodedStartCmdInfo):
4256
+ self._EncodedStartCmdInfo = EncodedStartCmdInfo
4257
+
4247
4258
 
4248
4259
  def _deserialize(self, params):
4249
4260
  self._Name = params.get("Name")
@@ -4296,6 +4307,9 @@ POSTPAID_BY_HOUR 按量计费
4296
4307
  if params.get("PreTrainModel") is not None:
4297
4308
  self._PreTrainModel = PreTrainModel()
4298
4309
  self._PreTrainModel._deserialize(params.get("PreTrainModel"))
4310
+ if params.get("EncodedStartCmdInfo") is not None:
4311
+ self._EncodedStartCmdInfo = EncodedStartCmdInfo()
4312
+ self._EncodedStartCmdInfo._deserialize(params.get("EncodedStartCmdInfo"))
4299
4313
  memeber_set = set(params.keys())
4300
4314
  for name, value in vars(self).items():
4301
4315
  property_name = name[1:]
@@ -11265,6 +11279,39 @@ class DetectionLabelInfo(AbstractModel):
11265
11279
 
11266
11280
 
11267
11281
 
11282
+ class EncodedStartCmdInfo(AbstractModel):
11283
+ """编码后的启动命令信息
11284
+
11285
+ """
11286
+
11287
+ def __init__(self):
11288
+ r"""
11289
+ :param _StartCmdInfo: 任务的启动命令,以base64格式输入,注意转换时需要完整输入{"StartCmd":"","PsStartCmd":"","WorkerStartCmd":""}
11290
+ :type StartCmdInfo: str
11291
+ """
11292
+ self._StartCmdInfo = None
11293
+
11294
+ @property
11295
+ def StartCmdInfo(self):
11296
+ return self._StartCmdInfo
11297
+
11298
+ @StartCmdInfo.setter
11299
+ def StartCmdInfo(self, StartCmdInfo):
11300
+ self._StartCmdInfo = StartCmdInfo
11301
+
11302
+
11303
+ def _deserialize(self, params):
11304
+ self._StartCmdInfo = params.get("StartCmdInfo")
11305
+ memeber_set = set(params.keys())
11306
+ for name, value in vars(self).items():
11307
+ property_name = name[1:]
11308
+ if property_name in memeber_set:
11309
+ memeber_set.remove(property_name)
11310
+ if len(memeber_set) > 0:
11311
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11312
+
11313
+
11314
+
11268
11315
  class EngineVersion(AbstractModel):
11269
11316
  """引擎版本
11270
11317
 
@@ -3905,8 +3905,14 @@ class DescribeWebRecordRequest(AbstractModel):
3905
3905
  r"""
3906
3906
  :param _TaskId: 开始页面录制时返回的任务id
3907
3907
  :type TaskId: str
3908
+ :param _SdkAppId: 发起页面录制时传递的SdkAppId
3909
+ :type SdkAppId: int
3910
+ :param _RecordId: 发起录制时传递的RecordId, 传入此值时需要传递SdkAppId
3911
+ :type RecordId: str
3908
3912
  """
3909
3913
  self._TaskId = None
3914
+ self._SdkAppId = None
3915
+ self._RecordId = None
3910
3916
 
3911
3917
  @property
3912
3918
  def TaskId(self):
@@ -3916,9 +3922,27 @@ class DescribeWebRecordRequest(AbstractModel):
3916
3922
  def TaskId(self, TaskId):
3917
3923
  self._TaskId = TaskId
3918
3924
 
3925
+ @property
3926
+ def SdkAppId(self):
3927
+ return self._SdkAppId
3928
+
3929
+ @SdkAppId.setter
3930
+ def SdkAppId(self, SdkAppId):
3931
+ self._SdkAppId = SdkAppId
3932
+
3933
+ @property
3934
+ def RecordId(self):
3935
+ return self._RecordId
3936
+
3937
+ @RecordId.setter
3938
+ def RecordId(self, RecordId):
3939
+ self._RecordId = RecordId
3940
+
3919
3941
 
3920
3942
  def _deserialize(self, params):
3921
3943
  self._TaskId = params.get("TaskId")
3944
+ self._SdkAppId = params.get("SdkAppId")
3945
+ self._RecordId = params.get("RecordId")
3922
3946
  memeber_set = set(params.keys())
3923
3947
  for name, value in vars(self).items():
3924
3948
  property_name = name[1:]
@@ -4682,6 +4706,63 @@ class McuAudioParams(AbstractModel):
4682
4706
 
4683
4707
 
4684
4708
 
4709
+ class McuBackgroundCustomRender(AbstractModel):
4710
+ """混流自定义渲染参数
4711
+
4712
+ """
4713
+
4714
+ def __init__(self):
4715
+ r"""
4716
+ :param _Width: 自定义渲染画面的宽度,单位为像素值,需大于0,且不能超过子布局的宽。
4717
+ :type Width: int
4718
+ :param _Height: 自定义渲染画面的高度,单位为像素值,需大于0,且不能超过子布局的高。
4719
+ :type Height: int
4720
+ :param _Radius: 自定义渲染画面的圆角半径,单位为像素值,不能超过渲染画面Width和Height最小值的一半,不指定默认为0,表示直角。
4721
+ :type Radius: int
4722
+ """
4723
+ self._Width = None
4724
+ self._Height = None
4725
+ self._Radius = None
4726
+
4727
+ @property
4728
+ def Width(self):
4729
+ return self._Width
4730
+
4731
+ @Width.setter
4732
+ def Width(self, Width):
4733
+ self._Width = Width
4734
+
4735
+ @property
4736
+ def Height(self):
4737
+ return self._Height
4738
+
4739
+ @Height.setter
4740
+ def Height(self, Height):
4741
+ self._Height = Height
4742
+
4743
+ @property
4744
+ def Radius(self):
4745
+ return self._Radius
4746
+
4747
+ @Radius.setter
4748
+ def Radius(self, Radius):
4749
+ self._Radius = Radius
4750
+
4751
+
4752
+ def _deserialize(self, params):
4753
+ self._Width = params.get("Width")
4754
+ self._Height = params.get("Height")
4755
+ self._Radius = params.get("Radius")
4756
+ memeber_set = set(params.keys())
4757
+ for name, value in vars(self).items():
4758
+ property_name = name[1:]
4759
+ if property_name in memeber_set:
4760
+ memeber_set.remove(property_name)
4761
+ if len(memeber_set) > 0:
4762
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4763
+
4764
+
4765
+
4685
4766
  class McuCustomCrop(AbstractModel):
4686
4767
  """混流自定义裁剪参数
4687
4768
 
@@ -4855,11 +4936,13 @@ class McuLayout(AbstractModel):
4855
4936
  :type BackgroundImageUrl: str
4856
4937
  :param _CustomCrop: 客户自定义裁剪,针对原始输入流裁剪
4857
4938
  :type CustomCrop: :class:`tencentcloud.trtc.v20190722.models.McuCustomCrop`
4858
- :param _BackgroundRenderMode: 子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩。不填默认为3。
4939
+ :param _BackgroundRenderMode: 子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩,4为自定义渲染。不填默认为3。
4859
4940
  :type BackgroundRenderMode: int
4860
4941
  :param _TransparentUrl: 子画面的透明模版url,指向一张包含透明通道的模板图片。填写该参数,后台混流时会提取该模板图片的透明通道,将其缩放作为目标画面的透明通道,再和其他画面进行混合。您可以通过透明模版实现目标画面的半透明效果和任意形状裁剪(如圆角、星形、心形等)。 支持png格式。图片大小限制不超过5MB。
4861
4942
  注:1,模板图片宽高比应接近目标画面宽高比,以避免缩放适配目标画面时出现模板效果变形;2,透明模版只有RenderMode为0(裁剪)时才生效;3,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,透明模版将不会生效。
4862
4943
  :type TransparentUrl: str
4944
+ :param _BackgroundCustomRender: 子背景图的自定义渲染参数,当BackgroundRenderMode为4时必须配置。
4945
+ :type BackgroundCustomRender: :class:`tencentcloud.trtc.v20190722.models.McuBackgroundCustomRender`
4863
4946
  """
4864
4947
  self._UserMediaStream = None
4865
4948
  self._ImageWidth = None
@@ -4873,6 +4956,7 @@ class McuLayout(AbstractModel):
4873
4956
  self._CustomCrop = None
4874
4957
  self._BackgroundRenderMode = None
4875
4958
  self._TransparentUrl = None
4959
+ self._BackgroundCustomRender = None
4876
4960
 
4877
4961
  @property
4878
4962
  def UserMediaStream(self):
@@ -4970,6 +5054,14 @@ class McuLayout(AbstractModel):
4970
5054
  def TransparentUrl(self, TransparentUrl):
4971
5055
  self._TransparentUrl = TransparentUrl
4972
5056
 
5057
+ @property
5058
+ def BackgroundCustomRender(self):
5059
+ return self._BackgroundCustomRender
5060
+
5061
+ @BackgroundCustomRender.setter
5062
+ def BackgroundCustomRender(self, BackgroundCustomRender):
5063
+ self._BackgroundCustomRender = BackgroundCustomRender
5064
+
4973
5065
 
4974
5066
  def _deserialize(self, params):
4975
5067
  if params.get("UserMediaStream") is not None:
@@ -4988,6 +5080,9 @@ class McuLayout(AbstractModel):
4988
5080
  self._CustomCrop._deserialize(params.get("CustomCrop"))
4989
5081
  self._BackgroundRenderMode = params.get("BackgroundRenderMode")
4990
5082
  self._TransparentUrl = params.get("TransparentUrl")
5083
+ if params.get("BackgroundCustomRender") is not None:
5084
+ self._BackgroundCustomRender = McuBackgroundCustomRender()
5085
+ self._BackgroundCustomRender._deserialize(params.get("BackgroundCustomRender"))
4991
5086
  memeber_set = set(params.keys())
4992
5087
  for name, value in vars(self).items():
4993
5088
  property_name = name[1:]
@@ -8543,7 +8638,7 @@ class StartWebRecordRequest(AbstractModel):
8543
8638
  :param _RecordUrl: 需要录制的网页URL
8544
8639
 
8545
8640
  :type RecordUrl: str
8546
- :param _MaxDurationLimit: 录制最大时长限制, 单位 s, 合法取值范围[0, 36000], 默认 36000s(10 小时)
8641
+ :param _MaxDurationLimit: 录制最大时长限制, 单位 s, 合法取值范围[1800, 36000], 默认 36000s(10 小时)
8547
8642
 
8548
8643
  :type MaxDurationLimit: int
8549
8644
  :param _StorageParams: 云存储相关的参数,目前支持腾讯云对象存储,不支持第三方云存储以及VOD
@@ -133,7 +133,7 @@ class TrtcClient(AbstractClient):
133
133
  """查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。(同老接口DescribeCallDetail)
134
134
  **注意**:
135
135
  1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
136
- 2.该接口目前免费提供中,监控仪表盘商业化计费后该接口需要订阅付费版后方可调用,仪表盘商业化说明请见:https://cloud.tencent.com/document/product/647/77735
136
+ 2.该接口自2024年4月1日起正式商业化,需订阅监控仪表盘商业套餐包获取此接口调用能力,[仪表盘商业化](https://cloud.tencent.com/document/product/647/81331)说明请见。另外也可通过订阅包月套餐尊享版和旗舰版解锁此接口调用能力,[包月套餐](https://cloud.tencent.com/document/product/647/85386)说明。
137
137
 
138
138
  :param request: Request instance for DescribeCallDetailInfo.
139
139
  :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeCallDetailInfoRequest`
@@ -318,7 +318,7 @@ class TrtcClient(AbstractClient):
318
318
  """查询SdkAppId下的房间列表。默认返回10条通话,一次最多返回100条通话。可查询14天内的数据。(同老接口DescribeRoomInformation)
319
319
  **注意**:
320
320
  1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
321
- 2.该接口目前免费提供中,监控仪表盘商业化计费后该接口需要订阅付费版后方可调用,仪表盘商业化说明请见:https://cloud.tencent.com/document/product/647/77735
321
+ 2.该接口自2024年4月1日起正式商业化,需订阅监控仪表盘商业套餐包获取此接口调用能力,[仪表盘商业化](https://cloud.tencent.com/document/product/647/81331)说明请见。另外也可通过订阅包月套餐尊享版和旗舰版解锁此接口调用能力,[包月套餐](https://cloud.tencent.com/document/product/647/85386)说明。
322
322
 
323
323
  :param request: Request instance for DescribeRoomInfo.
324
324
  :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeRoomInfoRequest`
@@ -756,7 +756,7 @@ class TrtcClient(AbstractClient):
756
756
  """查询指定时间内的用户列表,可查询14天内数据,查询起止时间不超过4小时。默认每页查询6个用户,支持每页最大查询100个用户PageSize不超过100)。(同老接口DescribeUserInformation)
757
757
  **注意**:
758
758
  1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
759
- 2.该接口目前免费提供中,监控仪表盘商业化计费后该接口需要订阅付费版后方可调用,仪表盘商业化说明请见:https://cloud.tencent.com/document/product/647/77735
759
+ 2.该接口自2024年4月1日起正式商业化,需订阅监控仪表盘商业套餐包获取此接口调用能力,[仪表盘商业化](https://cloud.tencent.com/document/product/647/81331)说明请见。另外也可通过订阅包月套餐尊享版和旗舰版解锁此接口调用能力,[包月套餐](https://cloud.tencent.com/document/product/647/85386)说明。
760
760
 
761
761
  :param request: Request instance for DescribeUserInfo.
762
762
  :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeUserInfoRequest`