tencentcloud-sdk-python 3.0.1125__py2.py3-none-any.whl → 3.0.1127__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 (28) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/models.py +1 -2
  3. tencentcloud/asr/v20190614/asr_client.py +1 -1
  4. tencentcloud/asr/v20190614/models.py +15 -4
  5. tencentcloud/ccc/v20200210/models.py +18 -0
  6. tencentcloud/csip/v20221121/models.py +3 -0
  7. tencentcloud/dts/v20211206/models.py +27 -2
  8. tencentcloud/ess/v20201111/models.py +0 -2
  9. tencentcloud/essbasic/v20210526/models.py +7 -3
  10. tencentcloud/faceid/v20180301/models.py +2 -0
  11. tencentcloud/gs/v20191118/gs_client.py +23 -0
  12. tencentcloud/gs/v20191118/models.py +70 -0
  13. tencentcloud/iss/v20230517/models.py +50 -0
  14. tencentcloud/monitor/v20180724/models.py +0 -82
  15. tencentcloud/monitor/v20180724/monitor_client.py +0 -23
  16. tencentcloud/organization/v20210331/models.py +55 -55
  17. tencentcloud/soe/v20180724/models.py +1 -1
  18. tencentcloud/sqlserver/v20180328/models.py +75 -0
  19. tencentcloud/tione/v20211111/errorcodes.py +3 -0
  20. tencentcloud/tione/v20211111/models.py +42 -2
  21. tencentcloud/trtc/v20190722/errorcodes.py +3 -0
  22. tencentcloud/trtc/v20190722/models.py +42 -1
  23. tencentcloud/trtc/v20190722/trtc_client.py +3 -3
  24. {tencentcloud_sdk_python-3.0.1125.dist-info → tencentcloud_sdk_python-3.0.1127.dist-info}/METADATA +1 -1
  25. {tencentcloud_sdk_python-3.0.1125.dist-info → tencentcloud_sdk_python-3.0.1127.dist-info}/RECORD +28 -28
  26. {tencentcloud_sdk_python-3.0.1125.dist-info → tencentcloud_sdk_python-3.0.1127.dist-info}/LICENSE +0 -0
  27. {tencentcloud_sdk_python-3.0.1125.dist-info → tencentcloud_sdk_python-3.0.1127.dist-info}/WHEEL +0 -0
  28. {tencentcloud_sdk_python-3.0.1125.dist-info → tencentcloud_sdk_python-3.0.1127.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1125'
17
+ __version__ = '3.0.1127'
@@ -391,8 +391,7 @@ class QueryTextToImageProJobResponse(AbstractModel):
391
391
  def __init__(self):
392
392
  r"""
393
393
  :param _JobStatusCode: 当前任务状态码:
394
- 1:排队中、3:处理中、5:处理失败、7:处理完成。
395
-
394
+ 1:等待中、2:运行中、4:处理失败、5:处理完成。
396
395
  :type JobStatusCode: str
397
396
  :param _JobStatusMsg: 当前任务状态:排队中、处理中、处理失败或者处理完成。
398
397
 
@@ -55,7 +55,7 @@ class AsrClient(AbstractClient):
55
55
  <br>• 每个热词表最多可添加1000个词,每个词最长10个汉字或30个英文字符,不能超出限制。
56
56
  <br>• 热词表可以通过数组或者本地文件形式上传。
57
57
  <br>• 本地文件必须为UTF-8编码格式,每行仅添加一个热词且不能包含标点和特殊字符。
58
- <br>• 热词权重取值范围为[1,11]之间的整数,权重越大代表该词被识别出来的概率越大。
58
+ <br>• 热词权重取值范围为[1,11]之间的整数或者100,权重越大代表该词被识别出来的概率越大。
59
59
  <br>• 注意: 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
60
60
 
61
61
  :param request: Request instance for CreateAsrVocab.
@@ -171,8 +171,10 @@ class CreateAsrVocabRequest(AbstractModel):
171
171
  :type Name: str
172
172
  :param _Description: 热词表描述,长度在0-1000之间
173
173
  :type Description: str
174
- :param _WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数,数组长度不大于1000
175
- 注意: 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
174
+ :param _WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数或者100,数组长度不大于1000
175
+ 注意:
176
+ - 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
177
+ - 热词权重设置为100时,当前热词开启热词增强同音替换功能(仅支持8k_zh,16k_zh),举例:热词配置“蜜制|100”时,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。建议仅将重要且必须生效的热词设置到100,设置过多权重为100的热词将影响整体字准率。
176
178
  :type WordWeights: list of HotWord
177
179
  :param _WordWeightStr: 词权重文件(纯文本文件)的二进制base64编码,以行分隔,每行的格式为word|weight,即以英文符号|为分割,左边为词,右边为权重,如:你好|5。
178
180
  当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
@@ -863,10 +865,14 @@ class CreateRecTaskRequest(AbstractModel):
863
865
 
864
866
  @property
865
867
  def ReinforceHotword(self):
868
+ warnings.warn("parameter `ReinforceHotword` is deprecated", DeprecationWarning)
869
+
866
870
  return self._ReinforceHotword
867
871
 
868
872
  @ReinforceHotword.setter
869
873
  def ReinforceHotword(self, ReinforceHotword):
874
+ warnings.warn("parameter `ReinforceHotword` is deprecated", DeprecationWarning)
875
+
870
876
  self._ReinforceHotword = ReinforceHotword
871
877
 
872
878
  @property
@@ -2441,7 +2447,7 @@ class SentenceRecognitionRequest(AbstractModel):
2441
2447
  :param _ReinforceHotword: 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
2442
2448
  :type ReinforceHotword: int
2443
2449
  :param _HotwordList: 临时热词表:该参数用于提升识别准确率。
2444
- 单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重1-11,如:“腾讯云|5” 或 “ASR|11”;
2450
+ 单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重1-11或者100,如:“腾讯云|5” 或 “ASR|11”;
2445
2451
  临时热词表限制:多个热词用英文逗号分割,最多支持128个热词,如:“腾讯云|10,语音识别|5,ASR|11”;
2446
2452
  参数 hotword_list(热词表) 与 hotword_id(临时热词表) 区别:
2447
2453
  hotword_id:热词表。需要先在控制台或接口创建热词表,获得对应hotword_id传入参数来使用热词功能;
@@ -2449,6 +2455,7 @@ hotword_list:临时热词表。每次请求时直接传入临时热词表来
2449
2455
  注意:
2450
2456
  • 如果同时传入了 hotword_id 和 hotword_list,会优先使用 hotword_list;
2451
2457
  • 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
2458
+ • 热词权重设置为100时,当前热词开启热词增强同音替换功能(仅支持8k_zh,16k_zh),举例:热词配置“蜜制|100”时,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。建议仅将重要且必须生效的热词设置到100,设置过多权重为100的热词将影响整体字准率。
2452
2459
  :type HotwordList: str
2453
2460
  :param _InputSampleRate: 支持pcm格式的8k音频在与引擎采样率不匹配的情况下升采样到16k后识别,能有效提升识别准确率。仅支持:8000。如:传入 8000 ,则pcm音频采样率为8k,当引擎选用16k_zh, 那么该8k采样率的pcm音频可以在16k_zh引擎下正常识别。 注:此参数仅适用于pcm格式音频,不传入值将维持默认状态,即默认调用的引擎采样率等于pcm音频采样率。
2454
2461
  :type InputSampleRate: int
@@ -2615,10 +2622,14 @@ hotword_list:临时热词表。每次请求时直接传入临时热词表来
2615
2622
 
2616
2623
  @property
2617
2624
  def ReinforceHotword(self):
2625
+ warnings.warn("parameter `ReinforceHotword` is deprecated", DeprecationWarning)
2626
+
2618
2627
  return self._ReinforceHotword
2619
2628
 
2620
2629
  @ReinforceHotword.setter
2621
2630
  def ReinforceHotword(self, ReinforceHotword):
2631
+ warnings.warn("parameter `ReinforceHotword` is deprecated", DeprecationWarning)
2632
+
2622
2633
  self._ReinforceHotword = ReinforceHotword
2623
2634
 
2624
2635
  @property
@@ -3103,7 +3114,7 @@ class UpdateAsrVocabRequest(AbstractModel):
3103
3114
  :type VocabId: str
3104
3115
  :param _Name: 热词表名称,长度在1-255之间
3105
3116
  :type Name: str
3106
- :param _WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数,数组长度不大于1000
3117
+ :param _WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数或100,数组长度不大于1000
3107
3118
  :type WordWeights: list of HotWord
3108
3119
  :param _WordWeightStr: 词权重文件(纯文本文件)的二进制base64编码,以行分隔,每行的格式为word|weight,即以英文符号|为分割,左边为词,右边为权重,如:你好|5。
3109
3120
  当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
@@ -11118,10 +11118,14 @@ class UploadIvrAudioResponse(AbstractModel):
11118
11118
  :param _FailedFileList: 上传失败的文件列表
11119
11119
  注意:此字段可能返回 null,表示取不到有效值。
11120
11120
  :type FailedFileList: list of UploadIvrAudioFailedInfo
11121
+ :param _SuccessFileList: 上传成功文件列表
11122
+ 注意:此字段可能返回 null,表示取不到有效值。
11123
+ :type SuccessFileList: list of AudioFileInfo
11121
11124
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11122
11125
  :type RequestId: str
11123
11126
  """
11124
11127
  self._FailedFileList = None
11128
+ self._SuccessFileList = None
11125
11129
  self._RequestId = None
11126
11130
 
11127
11131
  @property
@@ -11132,6 +11136,14 @@ class UploadIvrAudioResponse(AbstractModel):
11132
11136
  def FailedFileList(self, FailedFileList):
11133
11137
  self._FailedFileList = FailedFileList
11134
11138
 
11139
+ @property
11140
+ def SuccessFileList(self):
11141
+ return self._SuccessFileList
11142
+
11143
+ @SuccessFileList.setter
11144
+ def SuccessFileList(self, SuccessFileList):
11145
+ self._SuccessFileList = SuccessFileList
11146
+
11135
11147
  @property
11136
11148
  def RequestId(self):
11137
11149
  return self._RequestId
@@ -11148,6 +11160,12 @@ class UploadIvrAudioResponse(AbstractModel):
11148
11160
  obj = UploadIvrAudioFailedInfo()
11149
11161
  obj._deserialize(item)
11150
11162
  self._FailedFileList.append(obj)
11163
+ if params.get("SuccessFileList") is not None:
11164
+ self._SuccessFileList = []
11165
+ for item in params.get("SuccessFileList"):
11166
+ obj = AudioFileInfo()
11167
+ obj._deserialize(item)
11168
+ self._SuccessFileList.append(obj)
11151
11169
  self._RequestId = params.get("RequestId")
11152
11170
 
11153
11171
 
@@ -16057,13 +16057,16 @@ class WhereFilter(AbstractModel):
16057
16057
  def __init__(self):
16058
16058
  r"""
16059
16059
  :param _Name: 过滤的项
16060
+ 注意:此字段可能返回 null,表示取不到有效值。
16060
16061
  :type Name: str
16061
16062
  :param _Values: 过滤的值
16063
+ 注意:此字段可能返回 null,表示取不到有效值。
16062
16064
  :type Values: list of str
16063
16065
  :param _OperatorType: 中台定义:
16064
16066
  1等于 2大于 3小于 4大于等于 5小于等于 6不等于 9模糊匹配 13非模糊匹配 14按位与
16065
16067
  精确匹配填 7 模糊匹配填9
16066
16068
 
16069
+ 注意:此字段可能返回 null,表示取不到有效值。
16067
16070
  :type OperatorType: int
16068
16071
  """
16069
16072
  self._Name = None
@@ -1543,6 +1543,8 @@ class ConfigureSyncJobRequest(AbstractModel):
1543
1543
  :type RunMode: str
1544
1544
  :param _ExpectRunTime: 期待启动时间,当RunMode取值为Timed时,此值必填,形如:"2006-01-02 15:04:05"
1545
1545
  :type ExpectRunTime: str
1546
+ :param _SrcConnectType: 源端tdsql连接方式:proxy-通过tdsql proxy主机访问各个set节点,注意只有在自研上云的网络环境下才能通过这种方式连接,SrcInfos中只需要提供proxy主机信息。set-直连set节点,如选择直连set方式,需要正确填写proxy主机信息及所有set节点信息。源端是tdsqlmysql类型必填。
1547
+ :type SrcConnectType: str
1546
1548
  :param _SrcInfo: 源端信息,单节点数据库使用,且SrcNodeType传single
1547
1549
  :type SrcInfo: :class:`tencentcloud.dts.v20211206.models.Endpoint`
1548
1550
  :param _SrcInfos: 源端信息,多节点数据库使用,且SrcNodeType传cluster
@@ -1568,6 +1570,7 @@ class ConfigureSyncJobRequest(AbstractModel):
1568
1570
  self._JobMode = None
1569
1571
  self._RunMode = None
1570
1572
  self._ExpectRunTime = None
1573
+ self._SrcConnectType = None
1571
1574
  self._SrcInfo = None
1572
1575
  self._SrcInfos = None
1573
1576
  self._SrcNodeType = None
@@ -1641,6 +1644,14 @@ class ConfigureSyncJobRequest(AbstractModel):
1641
1644
  def ExpectRunTime(self, ExpectRunTime):
1642
1645
  self._ExpectRunTime = ExpectRunTime
1643
1646
 
1647
+ @property
1648
+ def SrcConnectType(self):
1649
+ return self._SrcConnectType
1650
+
1651
+ @SrcConnectType.setter
1652
+ def SrcConnectType(self, SrcConnectType):
1653
+ self._SrcConnectType = SrcConnectType
1654
+
1644
1655
  @property
1645
1656
  def SrcInfo(self):
1646
1657
  return self._SrcInfo
@@ -1717,6 +1728,7 @@ class ConfigureSyncJobRequest(AbstractModel):
1717
1728
  self._JobMode = params.get("JobMode")
1718
1729
  self._RunMode = params.get("RunMode")
1719
1730
  self._ExpectRunTime = params.get("ExpectRunTime")
1731
+ self._SrcConnectType = params.get("SrcConnectType")
1720
1732
  if params.get("SrcInfo") is not None:
1721
1733
  self._SrcInfo = Endpoint()
1722
1734
  self._SrcInfo._deserialize(params.get("SrcInfo"))
@@ -2988,6 +3000,9 @@ class DBEndpointInfo(AbstractModel):
2988
3000
  :param _DatabaseNetEnv: 数据库所属网络环境,AccessType为云联网(ccn)时必填, UserIDC表示用户IDC、TencentVPC表示腾讯云VPC;
2989
3001
  注意:此字段可能返回 null,表示取不到有效值。
2990
3002
  :type DatabaseNetEnv: str
3003
+ :param _ConnectType: tdsql连接方式:proxy-通过tdsql proxy主机访问各个set节点,注意只有在自研上云的网络环境下才能通过这种方式连接,Info中只需要提供proxy主机信息。set-直连set节点,如选择直连set方式,Info中需要正确填写proxy主机信息及所有set节点信息。源端是tdsqlmysql类型必填。
3004
+ 注意:此字段可能返回 null,表示取不到有效值。
3005
+ :type ConnectType: str
2991
3006
  """
2992
3007
  self._Region = None
2993
3008
  self._AccessType = None
@@ -2997,6 +3012,7 @@ class DBEndpointInfo(AbstractModel):
2997
3012
  self._Supplier = None
2998
3013
  self._ExtraAttr = None
2999
3014
  self._DatabaseNetEnv = None
3015
+ self._ConnectType = None
3000
3016
 
3001
3017
  @property
3002
3018
  def Region(self):
@@ -3062,6 +3078,14 @@ class DBEndpointInfo(AbstractModel):
3062
3078
  def DatabaseNetEnv(self, DatabaseNetEnv):
3063
3079
  self._DatabaseNetEnv = DatabaseNetEnv
3064
3080
 
3081
+ @property
3082
+ def ConnectType(self):
3083
+ return self._ConnectType
3084
+
3085
+ @ConnectType.setter
3086
+ def ConnectType(self, ConnectType):
3087
+ self._ConnectType = ConnectType
3088
+
3065
3089
 
3066
3090
  def _deserialize(self, params):
3067
3091
  self._Region = params.get("Region")
@@ -3082,6 +3106,7 @@ class DBEndpointInfo(AbstractModel):
3082
3106
  obj._deserialize(item)
3083
3107
  self._ExtraAttr.append(obj)
3084
3108
  self._DatabaseNetEnv = params.get("DatabaseNetEnv")
3109
+ self._ConnectType = params.get("ConnectType")
3085
3110
  memeber_set = set(params.keys())
3086
3111
  for name, value in vars(self).items():
3087
3112
  property_name = name[1:]
@@ -3099,7 +3124,7 @@ class DBInfo(AbstractModel):
3099
3124
 
3100
3125
  def __init__(self):
3101
3126
  r"""
3102
- :param _Role: 表示节点角色,针对分布式数据库,如mongodb中的mongos节点。如数据库是tdsql,枚举值为:proxyset
3127
+ :param _Role: 表示节点角色,针对分布式数据库,如mongodb中的mongos节点。tdsqlmysql的可选项:proxy表示节点类型为主机,set表示节点类型为节点。proxy类型必须填在数组第一项。tdsqlmysql类型的源/目标配置必填。
3103
3128
  注意:此字段可能返回 null,表示取不到有效值。
3104
3129
  :type Role: str
3105
3130
  :param _DbKernel: 内核版本,针对mariadb的不同内核版本等
@@ -3159,7 +3184,7 @@ class DBInfo(AbstractModel):
3159
3184
  :param _TmpToken: 临时Token,可通过 获取联合身份临时访问凭证获取临时密钥https://cloud.tencent.com/document/product/1312/48195
3160
3185
  注意:此字段可能返回 null,表示取不到有效值。
3161
3186
  :type TmpToken: str
3162
- :param _SetId: tdsql分片id。tdsql set节点必填
3187
+ :param _SetId: tdsql的分片id。如节点类型为set必填。
3163
3188
  注意:此字段可能返回 null,表示取不到有效值。
3164
3189
  :type SetId: str
3165
3190
  """
@@ -2084,8 +2084,6 @@ class Component(AbstractModel):
2084
2084
 
2085
2085
  - 如传入的关键字<font color="red">"^甲方签署^"</font >,则会在PDF文件中有且仅有"甲方签署"关键字的地方(<font color="red">前后不能有其他字符</font >)进行对应操作。
2086
2086
  - 如传入的关键字为<font color="red">"甲方签署</font >",则PDF文件中每个出现关键字的位置(<font color="red">前后可以有其他字符</font >)都会执行相应操作。
2087
- - 如传入的关键字为<font color="red">"^甲方签署</font >",则PDF文件中每个出现关键字的位置(<font color="red">前面不能有其他字符</font >)都会执行相应操作。
2088
- - 如传入的关键字为<font color="red">"甲方签署^</font >",则PDF文件中每个出现关键字的位置(<font color="red">后面不能有其他字符</font >)都会执行相应操作。
2089
2087
 
2090
2088
 
2091
2089
  注:`控件ID可以在一个PDF中不可重复`
@@ -8986,8 +8986,6 @@ class Component(AbstractModel):
8986
8986
 
8987
8987
  - 如传入的关键字<font color="red">"^甲方签署^"</font >,则会在PDF文件中有且仅有"甲方签署"关键字的地方(<font color="red">前后不能有其他字符</font >)进行对应操作。
8988
8988
  - 如传入的关键字为<font color="red">"甲方签署</font >",则PDF文件中每个出现关键字的位置(<font color="red">前后可以有其他字符</font >)都会执行相应操作。
8989
- - 如传入的关键字为<font color="red">"^甲方签署</font >",则PDF文件中每个出现关键字的位置(<font color="red">前面不能有其他字符</font >)都会执行相应操作。
8990
- - 如传入的关键字为<font color="red">"甲方签署^</font >",则PDF文件中每个出现关键字的位置(<font color="red">后面不能有其他字符</font >)都会执行相应操作。
8991
8989
 
8992
8990
 
8993
8991
  注:`控件ID可以在一个PDF中不可重复`
@@ -16663,7 +16661,13 @@ class OccupiedSeal(AbstractModel):
16663
16661
  :type FailReason: str
16664
16662
  :param _Url: 印章图片url,5分钟内有效
16665
16663
  :type Url: str
16666
- :param _SealType: 印章类型,OFFICIAL-企业公章,CONTRACT-合同专用章,LEGAL_PERSON_SEAL-法人章
16664
+ :param _SealType: 电子印章类型 , 可选类型如下:
16665
+ <ul><li>**OFFICIAL**: (默认)公章</li>
16666
+ <li>**CONTRACT**: 合同专用章;</li>
16667
+ <li>**FINANCE**: 财务专用章;</li>
16668
+ <li>**PERSONNEL**: 人事专用章</li>
16669
+ <li>**INVOICE**: 发票专用章</li>
16670
+ </ul>
16667
16671
  :type SealType: str
16668
16672
  :param _IsAllTime: 用印申请是否为永久授权
16669
16673
  :type IsAllTime: bool
@@ -1352,6 +1352,8 @@ class CheckPhoneAndNameResponse(AbstractModel):
1352
1352
  -1:查无记录
1353
1353
  -2:引擎未知错误
1354
1354
  -3:引擎服务异常
1355
+ -4:姓名校验不通过
1356
+ -5:手机号码不合法
1355
1357
  :type Result: str
1356
1358
  :param _Description: 业务结果描述
1357
1359
  :type Description: str
@@ -118,6 +118,29 @@ class GsClient(AbstractClient):
118
118
  raise TencentCloudSDKException(type(e).__name__, str(e))
119
119
 
120
120
 
121
+ def StartPublishStreamToCSS(self, request):
122
+ """开始云端推流
123
+
124
+ :param request: Request instance for StartPublishStreamToCSS.
125
+ :type request: :class:`tencentcloud.gs.v20191118.models.StartPublishStreamToCSSRequest`
126
+ :rtype: :class:`tencentcloud.gs.v20191118.models.StartPublishStreamToCSSResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("StartPublishStreamToCSS", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.StartPublishStreamToCSSResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
121
144
  def StopGame(self, request):
122
145
  """强制退出游戏
123
146
 
@@ -578,6 +578,76 @@ class StartPublishStreamResponse(AbstractModel):
578
578
  self._RequestId = params.get("RequestId")
579
579
 
580
580
 
581
+ class StartPublishStreamToCSSRequest(AbstractModel):
582
+ """StartPublishStreamToCSS请求参数结构体
583
+
584
+ """
585
+
586
+ def __init__(self):
587
+ r"""
588
+ :param _UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
589
+ :type UserId: str
590
+ :param _PublishStreamArgs: 推流参数,推流时携带自定义参数。
591
+ :type PublishStreamArgs: str
592
+ """
593
+ self._UserId = None
594
+ self._PublishStreamArgs = None
595
+
596
+ @property
597
+ def UserId(self):
598
+ return self._UserId
599
+
600
+ @UserId.setter
601
+ def UserId(self, UserId):
602
+ self._UserId = UserId
603
+
604
+ @property
605
+ def PublishStreamArgs(self):
606
+ return self._PublishStreamArgs
607
+
608
+ @PublishStreamArgs.setter
609
+ def PublishStreamArgs(self, PublishStreamArgs):
610
+ self._PublishStreamArgs = PublishStreamArgs
611
+
612
+
613
+ def _deserialize(self, params):
614
+ self._UserId = params.get("UserId")
615
+ self._PublishStreamArgs = params.get("PublishStreamArgs")
616
+ memeber_set = set(params.keys())
617
+ for name, value in vars(self).items():
618
+ property_name = name[1:]
619
+ if property_name in memeber_set:
620
+ memeber_set.remove(property_name)
621
+ if len(memeber_set) > 0:
622
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
623
+
624
+
625
+
626
+ class StartPublishStreamToCSSResponse(AbstractModel):
627
+ """StartPublishStreamToCSS返回参数结构体
628
+
629
+ """
630
+
631
+ def __init__(self):
632
+ r"""
633
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
634
+ :type RequestId: str
635
+ """
636
+ self._RequestId = None
637
+
638
+ @property
639
+ def RequestId(self):
640
+ return self._RequestId
641
+
642
+ @RequestId.setter
643
+ def RequestId(self, RequestId):
644
+ self._RequestId = RequestId
645
+
646
+
647
+ def _deserialize(self, params):
648
+ self._RequestId = params.get("RequestId")
649
+
650
+
581
651
  class StopGameRequest(AbstractModel):
582
652
  """StopGame请求参数结构体
583
653
 
@@ -5030,6 +5030,12 @@ class DescribeDeviceData(AbstractModel):
5030
5030
  :param _Manufacturer: 设备厂商
5031
5031
  注意:此字段可能返回 null,表示取不到有效值。
5032
5032
  :type Manufacturer: str
5033
+ :param _AudioSwitch: 音频关开(0:关闭;1:开启)关闭时丢弃音频
5034
+ 注意:此字段可能返回 null,表示取不到有效值。
5035
+ :type AudioSwitch: int
5036
+ :param _SubscribeSwitch: 订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效
5037
+ 注意:此字段可能返回 null,表示取不到有效值。
5038
+ :type SubscribeSwitch: int
5033
5039
  """
5034
5040
  self._DeviceId = None
5035
5041
  self._Code = None
@@ -5057,6 +5063,8 @@ class DescribeDeviceData(AbstractModel):
5057
5063
  self._Username = None
5058
5064
  self._Region = None
5059
5065
  self._Manufacturer = None
5066
+ self._AudioSwitch = None
5067
+ self._SubscribeSwitch = None
5060
5068
 
5061
5069
  @property
5062
5070
  def DeviceId(self):
@@ -5266,6 +5274,22 @@ class DescribeDeviceData(AbstractModel):
5266
5274
  def Manufacturer(self, Manufacturer):
5267
5275
  self._Manufacturer = Manufacturer
5268
5276
 
5277
+ @property
5278
+ def AudioSwitch(self):
5279
+ return self._AudioSwitch
5280
+
5281
+ @AudioSwitch.setter
5282
+ def AudioSwitch(self, AudioSwitch):
5283
+ self._AudioSwitch = AudioSwitch
5284
+
5285
+ @property
5286
+ def SubscribeSwitch(self):
5287
+ return self._SubscribeSwitch
5288
+
5289
+ @SubscribeSwitch.setter
5290
+ def SubscribeSwitch(self, SubscribeSwitch):
5291
+ self._SubscribeSwitch = SubscribeSwitch
5292
+
5269
5293
 
5270
5294
  def _deserialize(self, params):
5271
5295
  self._DeviceId = params.get("DeviceId")
@@ -5294,6 +5318,8 @@ class DescribeDeviceData(AbstractModel):
5294
5318
  self._Username = params.get("Username")
5295
5319
  self._Region = params.get("Region")
5296
5320
  self._Manufacturer = params.get("Manufacturer")
5321
+ self._AudioSwitch = params.get("AudioSwitch")
5322
+ self._SubscribeSwitch = params.get("SubscribeSwitch")
5297
5323
  memeber_set = set(params.keys())
5298
5324
  for name, value in vars(self).items():
5299
5325
  property_name = name[1:]
@@ -15496,6 +15522,10 @@ class UpdateUserDeviceRequest(AbstractModel):
15496
15522
  :type Username: str
15497
15523
  :param _ProtocolType: 网关设备接入协议(仅网关接入支持)
15498
15524
  :type ProtocolType: int
15525
+ :param _AudioSwitch: 音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频
15526
+ :type AudioSwitch: int
15527
+ :param _SubscribeSwitch: 订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效
15528
+ :type SubscribeSwitch: int
15499
15529
  """
15500
15530
  self._DeviceId = None
15501
15531
  self._Name = None
@@ -15506,6 +15536,8 @@ class UpdateUserDeviceRequest(AbstractModel):
15506
15536
  self._Port = None
15507
15537
  self._Username = None
15508
15538
  self._ProtocolType = None
15539
+ self._AudioSwitch = None
15540
+ self._SubscribeSwitch = None
15509
15541
 
15510
15542
  @property
15511
15543
  def DeviceId(self):
@@ -15579,6 +15611,22 @@ class UpdateUserDeviceRequest(AbstractModel):
15579
15611
  def ProtocolType(self, ProtocolType):
15580
15612
  self._ProtocolType = ProtocolType
15581
15613
 
15614
+ @property
15615
+ def AudioSwitch(self):
15616
+ return self._AudioSwitch
15617
+
15618
+ @AudioSwitch.setter
15619
+ def AudioSwitch(self, AudioSwitch):
15620
+ self._AudioSwitch = AudioSwitch
15621
+
15622
+ @property
15623
+ def SubscribeSwitch(self):
15624
+ return self._SubscribeSwitch
15625
+
15626
+ @SubscribeSwitch.setter
15627
+ def SubscribeSwitch(self, SubscribeSwitch):
15628
+ self._SubscribeSwitch = SubscribeSwitch
15629
+
15582
15630
 
15583
15631
  def _deserialize(self, params):
15584
15632
  self._DeviceId = params.get("DeviceId")
@@ -15590,6 +15638,8 @@ class UpdateUserDeviceRequest(AbstractModel):
15590
15638
  self._Port = params.get("Port")
15591
15639
  self._Username = params.get("Username")
15592
15640
  self._ProtocolType = params.get("ProtocolType")
15641
+ self._AudioSwitch = params.get("AudioSwitch")
15642
+ self._SubscribeSwitch = params.get("SubscribeSwitch")
15593
15643
  memeber_set = set(params.keys())
15594
15644
  for name, value in vars(self).items():
15595
15645
  property_name = name[1:]
@@ -28788,88 +28788,6 @@ class RunPrometheusInstanceResponse(AbstractModel):
28788
28788
  self._RequestId = params.get("RequestId")
28789
28789
 
28790
28790
 
28791
- class SendCustomAlarmMsgRequest(AbstractModel):
28792
- """SendCustomAlarmMsg请求参数结构体
28793
-
28794
- """
28795
-
28796
- def __init__(self):
28797
- r"""
28798
- :param _Module: 接口模块名,当前取值monitor
28799
- :type Module: str
28800
- :param _PolicyId: 消息策略ID,在自定义消息页面配置
28801
- :type PolicyId: str
28802
- :param _Msg: 用户想要发送的自定义消息内容
28803
- :type Msg: str
28804
- """
28805
- self._Module = None
28806
- self._PolicyId = None
28807
- self._Msg = None
28808
-
28809
- @property
28810
- def Module(self):
28811
- return self._Module
28812
-
28813
- @Module.setter
28814
- def Module(self, Module):
28815
- self._Module = Module
28816
-
28817
- @property
28818
- def PolicyId(self):
28819
- return self._PolicyId
28820
-
28821
- @PolicyId.setter
28822
- def PolicyId(self, PolicyId):
28823
- self._PolicyId = PolicyId
28824
-
28825
- @property
28826
- def Msg(self):
28827
- return self._Msg
28828
-
28829
- @Msg.setter
28830
- def Msg(self, Msg):
28831
- self._Msg = Msg
28832
-
28833
-
28834
- def _deserialize(self, params):
28835
- self._Module = params.get("Module")
28836
- self._PolicyId = params.get("PolicyId")
28837
- self._Msg = params.get("Msg")
28838
- memeber_set = set(params.keys())
28839
- for name, value in vars(self).items():
28840
- property_name = name[1:]
28841
- if property_name in memeber_set:
28842
- memeber_set.remove(property_name)
28843
- if len(memeber_set) > 0:
28844
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
28845
-
28846
-
28847
-
28848
- class SendCustomAlarmMsgResponse(AbstractModel):
28849
- """SendCustomAlarmMsg返回参数结构体
28850
-
28851
- """
28852
-
28853
- def __init__(self):
28854
- r"""
28855
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
28856
- :type RequestId: str
28857
- """
28858
- self._RequestId = None
28859
-
28860
- @property
28861
- def RequestId(self):
28862
- return self._RequestId
28863
-
28864
- @RequestId.setter
28865
- def RequestId(self, RequestId):
28866
- self._RequestId = RequestId
28867
-
28868
-
28869
- def _deserialize(self, params):
28870
- self._RequestId = params.get("RequestId")
28871
-
28872
-
28873
28791
  class ServiceDiscoveryItem(AbstractModel):
28874
28792
  """Prometheus 服务发现信息
28875
28793
 
@@ -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
  同一项目下相同的告警策略类型,就会被设置为非默认。