tencentcloud-sdk-python-intl-en 3.0.1285__py2.py3-none-any.whl → 3.0.1287__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-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cvm/v20170312/errorcodes.py +1 -1
- tencentcloud/cvm/v20170312/models.py +141 -120
- tencentcloud/dlc/v20210125/dlc_client.py +46 -0
- tencentcloud/dlc/v20210125/models.py +424 -14
- tencentcloud/mdl/v20200326/models.py +72 -2
- tencentcloud/mdp/v20200527/models.py +100 -2
- tencentcloud/message/__init__.py +0 -0
- tencentcloud/message/v20181225/__init__.py +0 -0
- tencentcloud/message/v20181225/errorcodes.py +27 -0
- tencentcloud/message/v20181225/message_client.py +49 -0
- tencentcloud/message/v20181225/models.py +138 -0
- tencentcloud/mps/v20190612/errorcodes.py +42 -0
- tencentcloud/mps/v20190612/models.py +810 -43
- tencentcloud/mps/v20190612/mps_client.py +92 -0
- tencentcloud/teo/v20220901/teo_client.py +3 -3
- {tencentcloud_sdk_python_intl_en-3.0.1285.dist-info → tencentcloud_sdk_python_intl_en-3.0.1287.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1285.dist-info → tencentcloud_sdk_python_intl_en-3.0.1287.dist-info}/RECORD +20 -15
- {tencentcloud_sdk_python_intl_en-3.0.1285.dist-info → tencentcloud_sdk_python_intl_en-3.0.1287.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1285.dist-info → tencentcloud_sdk_python_intl_en-3.0.1287.dist-info}/top_level.txt +0 -0
|
@@ -598,6 +598,42 @@ Valid values: `6000`, `7000`, `8000`, `10000`, `12000`, `14000`, `16000`, `20000
|
|
|
598
598
|
|
|
599
599
|
|
|
600
600
|
|
|
601
|
+
class AbWatermarkSettingsReq(AbstractModel):
|
|
602
|
+
r"""
|
|
603
|
+
|
|
604
|
+
"""
|
|
605
|
+
|
|
606
|
+
def __init__(self):
|
|
607
|
+
r"""
|
|
608
|
+
:param _Type:
|
|
609
|
+
:type Type: str
|
|
610
|
+
"""
|
|
611
|
+
self._Type = None
|
|
612
|
+
|
|
613
|
+
@property
|
|
614
|
+
def Type(self):
|
|
615
|
+
r"""
|
|
616
|
+
:rtype: str
|
|
617
|
+
"""
|
|
618
|
+
return self._Type
|
|
619
|
+
|
|
620
|
+
@Type.setter
|
|
621
|
+
def Type(self, Type):
|
|
622
|
+
self._Type = Type
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
def _deserialize(self, params):
|
|
626
|
+
self._Type = params.get("Type")
|
|
627
|
+
memeber_set = set(params.keys())
|
|
628
|
+
for name, value in vars(self).items():
|
|
629
|
+
property_name = name[1:]
|
|
630
|
+
if property_name in memeber_set:
|
|
631
|
+
memeber_set.remove(property_name)
|
|
632
|
+
if len(memeber_set) > 0:
|
|
633
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
601
637
|
class AdditionalRateSetting(AbstractModel):
|
|
602
638
|
r"""additional bit rate configuration.
|
|
603
639
|
|
|
@@ -2769,11 +2805,14 @@ class CreateStreamLiveWatermarkRequest(AbstractModel):
|
|
|
2769
2805
|
:type ImageSettings: :class:`tencentcloud.mdl.v20200326.models.CreateImageSettings`
|
|
2770
2806
|
:param _TextSettings: Watermark text settings. This parameter is valid if `Type` is `TEXT`.
|
|
2771
2807
|
:type TextSettings: :class:`tencentcloud.mdl.v20200326.models.CreateTextSettings`
|
|
2808
|
+
:param _AbWatermarkSettings: AB watermark configuration
|
|
2809
|
+
:type AbWatermarkSettings: :class:`tencentcloud.mdl.v20200326.models.AbWatermarkSettingsReq`
|
|
2772
2810
|
"""
|
|
2773
2811
|
self._Name = None
|
|
2774
2812
|
self._Type = None
|
|
2775
2813
|
self._ImageSettings = None
|
|
2776
2814
|
self._TextSettings = None
|
|
2815
|
+
self._AbWatermarkSettings = None
|
|
2777
2816
|
|
|
2778
2817
|
@property
|
|
2779
2818
|
def Name(self):
|
|
@@ -2819,6 +2858,17 @@ class CreateStreamLiveWatermarkRequest(AbstractModel):
|
|
|
2819
2858
|
def TextSettings(self, TextSettings):
|
|
2820
2859
|
self._TextSettings = TextSettings
|
|
2821
2860
|
|
|
2861
|
+
@property
|
|
2862
|
+
def AbWatermarkSettings(self):
|
|
2863
|
+
r"""AB watermark configuration
|
|
2864
|
+
:rtype: :class:`tencentcloud.mdl.v20200326.models.AbWatermarkSettingsReq`
|
|
2865
|
+
"""
|
|
2866
|
+
return self._AbWatermarkSettings
|
|
2867
|
+
|
|
2868
|
+
@AbWatermarkSettings.setter
|
|
2869
|
+
def AbWatermarkSettings(self, AbWatermarkSettings):
|
|
2870
|
+
self._AbWatermarkSettings = AbWatermarkSettings
|
|
2871
|
+
|
|
2822
2872
|
|
|
2823
2873
|
def _deserialize(self, params):
|
|
2824
2874
|
self._Name = params.get("Name")
|
|
@@ -2829,6 +2879,9 @@ class CreateStreamLiveWatermarkRequest(AbstractModel):
|
|
|
2829
2879
|
if params.get("TextSettings") is not None:
|
|
2830
2880
|
self._TextSettings = CreateTextSettings()
|
|
2831
2881
|
self._TextSettings._deserialize(params.get("TextSettings"))
|
|
2882
|
+
if params.get("AbWatermarkSettings") is not None:
|
|
2883
|
+
self._AbWatermarkSettings = AbWatermarkSettingsReq()
|
|
2884
|
+
self._AbWatermarkSettings._deserialize(params.get("AbWatermarkSettings"))
|
|
2832
2885
|
memeber_set = set(params.keys())
|
|
2833
2886
|
for name, value in vars(self).items():
|
|
2834
2887
|
property_name = name[1:]
|
|
@@ -3629,7 +3682,7 @@ class DescribeStreamLiveChannelAlertsResponse(AbstractModel):
|
|
|
3629
3682
|
|
|
3630
3683
|
def __init__(self):
|
|
3631
3684
|
r"""
|
|
3632
|
-
:param _Infos: Alarm information of the channel
|
|
3685
|
+
:param _Infos: Alarm information of the channel's two pipelines
|
|
3633
3686
|
:type Infos: :class:`tencentcloud.mdl.v20200326.models.ChannelAlertInfos`
|
|
3634
3687
|
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
3635
3688
|
:type RequestId: str
|
|
@@ -3639,7 +3692,7 @@ class DescribeStreamLiveChannelAlertsResponse(AbstractModel):
|
|
|
3639
3692
|
|
|
3640
3693
|
@property
|
|
3641
3694
|
def Infos(self):
|
|
3642
|
-
r"""Alarm information of the channel
|
|
3695
|
+
r"""Alarm information of the channel's two pipelines
|
|
3643
3696
|
:rtype: :class:`tencentcloud.mdl.v20200326.models.ChannelAlertInfos`
|
|
3644
3697
|
"""
|
|
3645
3698
|
return self._Infos
|
|
@@ -8446,11 +8499,14 @@ class ModifyStreamLiveWatermarkRequest(AbstractModel):
|
|
|
8446
8499
|
:type ImageSettings: :class:`tencentcloud.mdl.v20200326.models.CreateImageSettings`
|
|
8447
8500
|
:param _TextSettings: Watermark text settings. This parameter is valid if `Type` is `TEXT`.
|
|
8448
8501
|
:type TextSettings: :class:`tencentcloud.mdl.v20200326.models.CreateTextSettings`
|
|
8502
|
+
:param _AbWatermarkSettings:
|
|
8503
|
+
:type AbWatermarkSettings: :class:`tencentcloud.mdl.v20200326.models.AbWatermarkSettingsReq`
|
|
8449
8504
|
"""
|
|
8450
8505
|
self._Id = None
|
|
8451
8506
|
self._Name = None
|
|
8452
8507
|
self._ImageSettings = None
|
|
8453
8508
|
self._TextSettings = None
|
|
8509
|
+
self._AbWatermarkSettings = None
|
|
8454
8510
|
|
|
8455
8511
|
@property
|
|
8456
8512
|
def Id(self):
|
|
@@ -8496,6 +8552,17 @@ class ModifyStreamLiveWatermarkRequest(AbstractModel):
|
|
|
8496
8552
|
def TextSettings(self, TextSettings):
|
|
8497
8553
|
self._TextSettings = TextSettings
|
|
8498
8554
|
|
|
8555
|
+
@property
|
|
8556
|
+
def AbWatermarkSettings(self):
|
|
8557
|
+
r"""
|
|
8558
|
+
:rtype: :class:`tencentcloud.mdl.v20200326.models.AbWatermarkSettingsReq`
|
|
8559
|
+
"""
|
|
8560
|
+
return self._AbWatermarkSettings
|
|
8561
|
+
|
|
8562
|
+
@AbWatermarkSettings.setter
|
|
8563
|
+
def AbWatermarkSettings(self, AbWatermarkSettings):
|
|
8564
|
+
self._AbWatermarkSettings = AbWatermarkSettings
|
|
8565
|
+
|
|
8499
8566
|
|
|
8500
8567
|
def _deserialize(self, params):
|
|
8501
8568
|
self._Id = params.get("Id")
|
|
@@ -8506,6 +8573,9 @@ class ModifyStreamLiveWatermarkRequest(AbstractModel):
|
|
|
8506
8573
|
if params.get("TextSettings") is not None:
|
|
8507
8574
|
self._TextSettings = CreateTextSettings()
|
|
8508
8575
|
self._TextSettings._deserialize(params.get("TextSettings"))
|
|
8576
|
+
if params.get("AbWatermarkSettings") is not None:
|
|
8577
|
+
self._AbWatermarkSettings = AbWatermarkSettingsReq()
|
|
8578
|
+
self._AbWatermarkSettings._deserialize(params.get("AbWatermarkSettings"))
|
|
8509
8579
|
memeber_set = set(params.keys())
|
|
8510
8580
|
for name, value in vars(self).items():
|
|
8511
8581
|
property_name = name[1:]
|
|
@@ -739,6 +739,8 @@ class ClipRangeInfo(AbstractModel):
|
|
|
739
739
|
|
|
740
740
|
@property
|
|
741
741
|
def Offset(self):
|
|
742
|
+
warnings.warn("parameter `Offset` is deprecated", DeprecationWarning)
|
|
743
|
+
|
|
742
744
|
r"""Offset, valid when Type is SpecifyTimeRange.
|
|
743
745
|
:rtype: int
|
|
744
746
|
"""
|
|
@@ -746,6 +748,8 @@ class ClipRangeInfo(AbstractModel):
|
|
|
746
748
|
|
|
747
749
|
@Offset.setter
|
|
748
750
|
def Offset(self, Offset):
|
|
751
|
+
warnings.warn("parameter `Offset` is deprecated", DeprecationWarning)
|
|
752
|
+
|
|
749
753
|
self._Offset = Offset
|
|
750
754
|
|
|
751
755
|
|
|
@@ -1164,7 +1168,7 @@ class CreateStreamPackageChannelRequest(AbstractModel):
|
|
|
1164
1168
|
r"""
|
|
1165
1169
|
:param _Name: Channel name.
|
|
1166
1170
|
:type Name: str
|
|
1167
|
-
:param _Protocol: Channel protocol. Valid values: HLS
|
|
1171
|
+
:param _Protocol: Channel protocol. Valid values: HLS/DASH.
|
|
1168
1172
|
:type Protocol: str
|
|
1169
1173
|
:param _CacheInfo: Cache configuration.
|
|
1170
1174
|
:type CacheInfo: :class:`tencentcloud.mdp.v20200527.models.CacheInfo`
|
|
@@ -1186,7 +1190,7 @@ class CreateStreamPackageChannelRequest(AbstractModel):
|
|
|
1186
1190
|
|
|
1187
1191
|
@property
|
|
1188
1192
|
def Protocol(self):
|
|
1189
|
-
r"""Channel protocol. Valid values: HLS
|
|
1193
|
+
r"""Channel protocol. Valid values: HLS/DASH.
|
|
1190
1194
|
:rtype: str
|
|
1191
1195
|
"""
|
|
1192
1196
|
return self._Protocol
|
|
@@ -2087,11 +2091,14 @@ class CreateStreamPackageSourceRequest(AbstractModel):
|
|
|
2087
2091
|
:type Type: str
|
|
2088
2092
|
:param _PackageConfs: source specific configuration.
|
|
2089
2093
|
:type PackageConfs: list of SourcePackageConf
|
|
2094
|
+
:param _SourceTags: The sourcetag allows ADS to deliver more precise ads based on the Source Tag information
|
|
2095
|
+
:type SourceTags: list of SourceTag
|
|
2090
2096
|
"""
|
|
2091
2097
|
self._AttachedLocation = None
|
|
2092
2098
|
self._Name = None
|
|
2093
2099
|
self._Type = None
|
|
2094
2100
|
self._PackageConfs = None
|
|
2101
|
+
self._SourceTags = None
|
|
2095
2102
|
|
|
2096
2103
|
@property
|
|
2097
2104
|
def AttachedLocation(self):
|
|
@@ -2137,6 +2144,17 @@ class CreateStreamPackageSourceRequest(AbstractModel):
|
|
|
2137
2144
|
def PackageConfs(self, PackageConfs):
|
|
2138
2145
|
self._PackageConfs = PackageConfs
|
|
2139
2146
|
|
|
2147
|
+
@property
|
|
2148
|
+
def SourceTags(self):
|
|
2149
|
+
r"""The sourcetag allows ADS to deliver more precise ads based on the Source Tag information
|
|
2150
|
+
:rtype: list of SourceTag
|
|
2151
|
+
"""
|
|
2152
|
+
return self._SourceTags
|
|
2153
|
+
|
|
2154
|
+
@SourceTags.setter
|
|
2155
|
+
def SourceTags(self, SourceTags):
|
|
2156
|
+
self._SourceTags = SourceTags
|
|
2157
|
+
|
|
2140
2158
|
|
|
2141
2159
|
def _deserialize(self, params):
|
|
2142
2160
|
self._AttachedLocation = params.get("AttachedLocation")
|
|
@@ -2148,6 +2166,12 @@ class CreateStreamPackageSourceRequest(AbstractModel):
|
|
|
2148
2166
|
obj = SourcePackageConf()
|
|
2149
2167
|
obj._deserialize(item)
|
|
2150
2168
|
self._PackageConfs.append(obj)
|
|
2169
|
+
if params.get("SourceTags") is not None:
|
|
2170
|
+
self._SourceTags = []
|
|
2171
|
+
for item in params.get("SourceTags"):
|
|
2172
|
+
obj = SourceTag()
|
|
2173
|
+
obj._deserialize(item)
|
|
2174
|
+
self._SourceTags.append(obj)
|
|
2151
2175
|
memeber_set = set(params.keys())
|
|
2152
2176
|
for name, value in vars(self).items():
|
|
2153
2177
|
property_name = name[1:]
|
|
@@ -8684,11 +8708,14 @@ Optional values: Live, VOD (on demand)
|
|
|
8684
8708
|
:type Type: str
|
|
8685
8709
|
:param _PackageConfs: source configuration.
|
|
8686
8710
|
:type PackageConfs: list of SourcePackageConf
|
|
8711
|
+
:param _SourceTags: ADS can return more precise advertisements based on Source Tag information.
|
|
8712
|
+
:type SourceTags: list of SourceTag
|
|
8687
8713
|
"""
|
|
8688
8714
|
self._Id = None
|
|
8689
8715
|
self._Name = None
|
|
8690
8716
|
self._Type = None
|
|
8691
8717
|
self._PackageConfs = None
|
|
8718
|
+
self._SourceTags = None
|
|
8692
8719
|
|
|
8693
8720
|
@property
|
|
8694
8721
|
def Id(self):
|
|
@@ -8735,6 +8762,17 @@ Optional values: Live, VOD (on demand)
|
|
|
8735
8762
|
def PackageConfs(self, PackageConfs):
|
|
8736
8763
|
self._PackageConfs = PackageConfs
|
|
8737
8764
|
|
|
8765
|
+
@property
|
|
8766
|
+
def SourceTags(self):
|
|
8767
|
+
r"""ADS can return more precise advertisements based on Source Tag information.
|
|
8768
|
+
:rtype: list of SourceTag
|
|
8769
|
+
"""
|
|
8770
|
+
return self._SourceTags
|
|
8771
|
+
|
|
8772
|
+
@SourceTags.setter
|
|
8773
|
+
def SourceTags(self, SourceTags):
|
|
8774
|
+
self._SourceTags = SourceTags
|
|
8775
|
+
|
|
8738
8776
|
|
|
8739
8777
|
def _deserialize(self, params):
|
|
8740
8778
|
self._Id = params.get("Id")
|
|
@@ -8746,6 +8784,12 @@ Optional values: Live, VOD (on demand)
|
|
|
8746
8784
|
obj = SourcePackageConf()
|
|
8747
8785
|
obj._deserialize(item)
|
|
8748
8786
|
self._PackageConfs.append(obj)
|
|
8787
|
+
if params.get("SourceTags") is not None:
|
|
8788
|
+
self._SourceTags = []
|
|
8789
|
+
for item in params.get("SourceTags"):
|
|
8790
|
+
obj = SourceTag()
|
|
8791
|
+
obj._deserialize(item)
|
|
8792
|
+
self._SourceTags.append(obj)
|
|
8749
8793
|
memeber_set = set(params.keys())
|
|
8750
8794
|
for name, value in vars(self).items():
|
|
8751
8795
|
property_name = name[1:]
|
|
@@ -10917,6 +10961,60 @@ class SourcePackageConf(AbstractModel):
|
|
|
10917
10961
|
|
|
10918
10962
|
|
|
10919
10963
|
|
|
10964
|
+
class SourceTag(AbstractModel):
|
|
10965
|
+
r"""type SourceTag struct {
|
|
10966
|
+
Key string `json:"Key"`
|
|
10967
|
+
Value string `json:"Value"`
|
|
10968
|
+
}
|
|
10969
|
+
|
|
10970
|
+
"""
|
|
10971
|
+
|
|
10972
|
+
def __init__(self):
|
|
10973
|
+
r"""
|
|
10974
|
+
:param _Key:
|
|
10975
|
+
:type Key: str
|
|
10976
|
+
:param _Value:
|
|
10977
|
+
:type Value: str
|
|
10978
|
+
"""
|
|
10979
|
+
self._Key = None
|
|
10980
|
+
self._Value = None
|
|
10981
|
+
|
|
10982
|
+
@property
|
|
10983
|
+
def Key(self):
|
|
10984
|
+
r"""
|
|
10985
|
+
:rtype: str
|
|
10986
|
+
"""
|
|
10987
|
+
return self._Key
|
|
10988
|
+
|
|
10989
|
+
@Key.setter
|
|
10990
|
+
def Key(self, Key):
|
|
10991
|
+
self._Key = Key
|
|
10992
|
+
|
|
10993
|
+
@property
|
|
10994
|
+
def Value(self):
|
|
10995
|
+
r"""
|
|
10996
|
+
:rtype: str
|
|
10997
|
+
"""
|
|
10998
|
+
return self._Value
|
|
10999
|
+
|
|
11000
|
+
@Value.setter
|
|
11001
|
+
def Value(self, Value):
|
|
11002
|
+
self._Value = Value
|
|
11003
|
+
|
|
11004
|
+
|
|
11005
|
+
def _deserialize(self, params):
|
|
11006
|
+
self._Key = params.get("Key")
|
|
11007
|
+
self._Value = params.get("Value")
|
|
11008
|
+
memeber_set = set(params.keys())
|
|
11009
|
+
for name, value in vars(self).items():
|
|
11010
|
+
property_name = name[1:]
|
|
11011
|
+
if property_name in memeber_set:
|
|
11012
|
+
memeber_set.remove(property_name)
|
|
11013
|
+
if len(memeber_set) > 0:
|
|
11014
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11015
|
+
|
|
11016
|
+
|
|
11017
|
+
|
|
10920
11018
|
class SpliceInsertInfo(AbstractModel):
|
|
10921
11019
|
r"""SpliceInsertInfo.
|
|
10922
11020
|
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# Internal error.
|
|
18
|
+
INTERNALERROR = 'InternalError'
|
|
19
|
+
|
|
20
|
+
# Parameter error.
|
|
21
|
+
INVALIDPARAMETER_ = 'InvalidParameter.'
|
|
22
|
+
|
|
23
|
+
# Message type does not exist.
|
|
24
|
+
INVALIDPARAMETER_MSGTYPENOTEXIST = 'InvalidParameter.MsgTypeNotExist'
|
|
25
|
+
|
|
26
|
+
# The user does not exist.
|
|
27
|
+
INVALIDPARAMETER_USERNOTEXIST = 'InvalidParameter.UserNotExist'
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
|
20
|
+
from tencentcloud.message.v20181225 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class MessageClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2018-12-25'
|
|
25
|
+
_endpoint = 'message.intl.tencentcloudapi.com'
|
|
26
|
+
_service = 'message'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def ModifySendChannelOnMsgTypes(self, request):
|
|
30
|
+
r"""This API is used to batch modify delivery methods.
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for ModifySendChannelOnMsgTypes.
|
|
33
|
+
:type request: :class:`tencentcloud.message.v20181225.models.ModifySendChannelOnMsgTypesRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.message.v20181225.models.ModifySendChannelOnMsgTypesResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("ModifySendChannelOnMsgTypes", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.ModifySendChannelOnMsgTypesResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import warnings
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ModifySendChannelOnMsgTypesRequest(AbstractModel):
|
|
22
|
+
r"""ModifySendChannelOnMsgTypes request structure.
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _SendTypes: Message sending channel.
|
|
29
|
+
:type SendTypes: list of SendType
|
|
30
|
+
"""
|
|
31
|
+
self._SendTypes = None
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def SendTypes(self):
|
|
35
|
+
r"""Message sending channel.
|
|
36
|
+
:rtype: list of SendType
|
|
37
|
+
"""
|
|
38
|
+
return self._SendTypes
|
|
39
|
+
|
|
40
|
+
@SendTypes.setter
|
|
41
|
+
def SendTypes(self, SendTypes):
|
|
42
|
+
self._SendTypes = SendTypes
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _deserialize(self, params):
|
|
46
|
+
if params.get("SendTypes") is not None:
|
|
47
|
+
self._SendTypes = []
|
|
48
|
+
for item in params.get("SendTypes"):
|
|
49
|
+
obj = SendType()
|
|
50
|
+
obj._deserialize(item)
|
|
51
|
+
self._SendTypes.append(obj)
|
|
52
|
+
memeber_set = set(params.keys())
|
|
53
|
+
for name, value in vars(self).items():
|
|
54
|
+
property_name = name[1:]
|
|
55
|
+
if property_name in memeber_set:
|
|
56
|
+
memeber_set.remove(property_name)
|
|
57
|
+
if len(memeber_set) > 0:
|
|
58
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class ModifySendChannelOnMsgTypesResponse(AbstractModel):
|
|
63
|
+
r"""ModifySendChannelOnMsgTypes response structure.
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
def __init__(self):
|
|
68
|
+
r"""
|
|
69
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
70
|
+
:type RequestId: str
|
|
71
|
+
"""
|
|
72
|
+
self._RequestId = None
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def RequestId(self):
|
|
76
|
+
r"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._RequestId
|
|
80
|
+
|
|
81
|
+
@RequestId.setter
|
|
82
|
+
def RequestId(self, RequestId):
|
|
83
|
+
self._RequestId = RequestId
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def _deserialize(self, params):
|
|
87
|
+
self._RequestId = params.get("RequestId")
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class SendType(AbstractModel):
|
|
91
|
+
r"""Message type sending channel.
|
|
92
|
+
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
def __init__(self):
|
|
96
|
+
r"""
|
|
97
|
+
:param _MsgType: Message type.
|
|
98
|
+
:type MsgType: int
|
|
99
|
+
:param _SendChannel: Delivery channel.
|
|
100
|
+
:type SendChannel: int
|
|
101
|
+
"""
|
|
102
|
+
self._MsgType = None
|
|
103
|
+
self._SendChannel = None
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def MsgType(self):
|
|
107
|
+
r"""Message type.
|
|
108
|
+
:rtype: int
|
|
109
|
+
"""
|
|
110
|
+
return self._MsgType
|
|
111
|
+
|
|
112
|
+
@MsgType.setter
|
|
113
|
+
def MsgType(self, MsgType):
|
|
114
|
+
self._MsgType = MsgType
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def SendChannel(self):
|
|
118
|
+
r"""Delivery channel.
|
|
119
|
+
:rtype: int
|
|
120
|
+
"""
|
|
121
|
+
return self._SendChannel
|
|
122
|
+
|
|
123
|
+
@SendChannel.setter
|
|
124
|
+
def SendChannel(self, SendChannel):
|
|
125
|
+
self._SendChannel = SendChannel
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def _deserialize(self, params):
|
|
129
|
+
self._MsgType = params.get("MsgType")
|
|
130
|
+
self._SendChannel = params.get("SendChannel")
|
|
131
|
+
memeber_set = set(params.keys())
|
|
132
|
+
for name, value in vars(self).items():
|
|
133
|
+
property_name = name[1:]
|
|
134
|
+
if property_name in memeber_set:
|
|
135
|
+
memeber_set.remove(property_name)
|
|
136
|
+
if len(memeber_set) > 0:
|
|
137
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
138
|
+
|
|
@@ -83,6 +83,9 @@ INVALIDPARAMETERVALUE_AUDIOCODEC = 'InvalidParameterValue.AudioCodec'
|
|
|
83
83
|
# Parameter error: audio stream sample rate.
|
|
84
84
|
INVALIDPARAMETERVALUE_AUDIOSAMPLERATE = 'InvalidParameterValue.AudioSampleRate'
|
|
85
85
|
|
|
86
|
+
# The configuration for the automatic erasing area of the erasing template is incorrect.
|
|
87
|
+
INVALIDPARAMETERVALUE_AUTOAREAS = 'InvalidParameterValue.AutoAreas'
|
|
88
|
+
|
|
86
89
|
# Invalid audio/video bitrate.
|
|
87
90
|
INVALIDPARAMETERVALUE_BITRATE = 'InvalidParameterValue.Bitrate'
|
|
88
91
|
|
|
@@ -113,6 +116,9 @@ INVALIDPARAMETERVALUE_COORDINATEORIGIN = 'InvalidParameterValue.CoordinateOrigin
|
|
|
113
116
|
# Incorrect parameter value: the control field parameter for intelligent cover generation is incorrect.
|
|
114
117
|
INVALIDPARAMETERVALUE_COVERCONFIGURE = 'InvalidParameterValue.CoverConfigure'
|
|
115
118
|
|
|
119
|
+
# The specified area of the erasing template is incorrect.
|
|
120
|
+
INVALIDPARAMETERVALUE_CUSTOMAREAS = 'InvalidParameterValue.CustomAreas'
|
|
121
|
+
|
|
116
122
|
# Incorrect parameter value: the default face library filter tag is invalid.
|
|
117
123
|
INVALIDPARAMETERVALUE_DEFAULTLIBRARYLABELSET = 'InvalidParameterValue.DefaultLibraryLabelSet'
|
|
118
124
|
|
|
@@ -137,6 +143,18 @@ INVALIDPARAMETERVALUE_DISABLEHIGHERVIDEORESOLUTION = 'InvalidParameterValue.Disa
|
|
|
137
143
|
# The enabled detection items of the template are empty.
|
|
138
144
|
INVALIDPARAMETERVALUE_EMPTYDETECTITEM = 'InvalidParameterValue.EmptyDetectItem'
|
|
139
145
|
|
|
146
|
+
# The privacy protection configuration of the erasing template is incorrect.
|
|
147
|
+
INVALIDPARAMETERVALUE_ERASEPRIVACYCONFIG = 'InvalidParameterValue.ErasePrivacyConfig'
|
|
148
|
+
|
|
149
|
+
# The subtitle erasing configuration of the erasing template is incorrect.
|
|
150
|
+
INVALIDPARAMETERVALUE_ERASESUBTITLECONFIG = 'InvalidParameterValue.EraseSubtitleConfig'
|
|
151
|
+
|
|
152
|
+
# The erasing type of the erasing template is incorrect.
|
|
153
|
+
INVALIDPARAMETERVALUE_ERASETYPE = 'InvalidParameterValue.EraseType'
|
|
154
|
+
|
|
155
|
+
# The watermark erasing configuration of the erasing template is incorrect.
|
|
156
|
+
INVALIDPARAMETERVALUE_ERASEWATERMARKCONFIG = 'InvalidParameterValue.EraseWatermarkConfig'
|
|
157
|
+
|
|
140
158
|
# Incorrect parameter value: duplicated face.
|
|
141
159
|
INVALIDPARAMETERVALUE_FACEDUPLICATE = 'InvalidParameterValue.FaceDuplicate'
|
|
142
160
|
|
|
@@ -218,6 +236,12 @@ INVALIDPARAMETERVALUE_OBJECTLIBRARY = 'InvalidParameterValue.ObjectLibrary'
|
|
|
218
236
|
# Incorrect parameter value: incorrect face image format.
|
|
219
237
|
INVALIDPARAMETERVALUE_PICFORMATERROR = 'InvalidParameterValue.PicFormatError'
|
|
220
238
|
|
|
239
|
+
# The privacy protection model of the erasing template is incorrect.
|
|
240
|
+
INVALIDPARAMETERVALUE_PRIVACYMODEL = 'InvalidParameterValue.PrivacyModel'
|
|
241
|
+
|
|
242
|
+
# The privacy protection target of the erasing template is incorrect.
|
|
243
|
+
INVALIDPARAMETERVALUE_PRIVACYTARGETS = 'InvalidParameterValue.PrivacyTargets'
|
|
244
|
+
|
|
221
245
|
# Incorrect parameter value: Quality.
|
|
222
246
|
INVALIDPARAMETERVALUE_QUALITY = 'InvalidParameterValue.Quality'
|
|
223
247
|
|
|
@@ -269,9 +293,18 @@ INVALIDPARAMETERVALUE_SOURCELANGUAGE = 'InvalidParameterValue.SourceLanguage'
|
|
|
269
293
|
# Source file error.
|
|
270
294
|
INVALIDPARAMETERVALUE_SRCFILE = 'InvalidParameterValue.SrcFile'
|
|
271
295
|
|
|
296
|
+
# The subtitle erasing method of the erasing template is incorrect.
|
|
297
|
+
INVALIDPARAMETERVALUE_SUBTITLEERASEMETHOD = 'InvalidParameterValue.SubtitleEraseMethod'
|
|
298
|
+
|
|
272
299
|
# Incorrect parameter value: The value of the `SubtitleFormat` parameter is invalid.
|
|
273
300
|
INVALIDPARAMETERVALUE_SUBTITLEFORMAT = 'InvalidParameterValue.SubtitleFormat'
|
|
274
301
|
|
|
302
|
+
# The language for the subtitle erasing of the erasing template is incorrect.
|
|
303
|
+
INVALIDPARAMETERVALUE_SUBTITLELANG = 'InvalidParameterValue.SubtitleLang'
|
|
304
|
+
|
|
305
|
+
# The subtitle erasing model of the erasing template is incorrect.
|
|
306
|
+
INVALIDPARAMETERVALUE_SUBTITLEMODEL = 'InvalidParameterValue.SubtitleModel'
|
|
307
|
+
|
|
275
308
|
# The value of the subtitle language type is incorrect.
|
|
276
309
|
INVALIDPARAMETERVALUE_SUBTITLETYPE = 'InvalidParameterValue.SubtitleType'
|
|
277
310
|
|
|
@@ -302,6 +335,9 @@ INVALIDPARAMETERVALUE_TEXTALPHA = 'InvalidParameterValue.TextAlpha'
|
|
|
302
335
|
# Parameter error: text template.
|
|
303
336
|
INVALIDPARAMETERVALUE_TEXTTEMPLATE = 'InvalidParameterValue.TextTemplate'
|
|
304
337
|
|
|
338
|
+
# The configuration for the translation target language is incorrect under the smart erasing - subtitle erasing template.
|
|
339
|
+
INVALIDPARAMETERVALUE_TRANSDSTLANG = 'InvalidParameterValue.TransDstLang'
|
|
340
|
+
|
|
305
341
|
# The value of the target language parameter is incorrect.
|
|
306
342
|
INVALIDPARAMETERVALUE_TRANSLATEDSTLANGUAGE = 'InvalidParameterValue.TranslateDstLanguage'
|
|
307
343
|
|
|
@@ -326,6 +362,12 @@ INVALIDPARAMETERVALUE_VIDEOCODEC = 'InvalidParameterValue.VideoCodec'
|
|
|
326
362
|
# The value of the video source language parameter is incorrect.
|
|
327
363
|
INVALIDPARAMETERVALUE_VIDEOSRCLANGUAGE = 'InvalidParameterValue.VideoSrcLanguage'
|
|
328
364
|
|
|
365
|
+
# The watermark erasing method of the erasing template is incorrect.
|
|
366
|
+
INVALIDPARAMETERVALUE_WATERMARKERASEMETHOD = 'InvalidParameterValue.WatermarkEraseMethod'
|
|
367
|
+
|
|
368
|
+
# The watermark erasing model of the erasing template is incorrect.
|
|
369
|
+
INVALIDPARAMETERVALUE_WATERMARKMODEL = 'InvalidParameterValue.WatermarkModel'
|
|
370
|
+
|
|
329
371
|
# Parameter error: Wwdth.
|
|
330
372
|
INVALIDPARAMETERVALUE_WIDTH = 'InvalidParameterValue.Width'
|
|
331
373
|
|