tencentcloud-sdk-python-intl-en 3.0.1234__py2.py3-none-any.whl → 3.0.1236__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/live/v20180801/live_client.py +46 -0
- tencentcloud/live/v20180801/models.py +263 -0
- tencentcloud/mongodb/v20190725/errorcodes.py +8 -2
- tencentcloud/mongodb/v20190725/models.py +1162 -506
- tencentcloud/mongodb/v20190725/mongodb_client.py +34 -11
- {tencentcloud_sdk_python_intl_en-3.0.1234.dist-info → tencentcloud_sdk_python_intl_en-3.0.1236.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1234.dist-info → tencentcloud_sdk_python_intl_en-3.0.1236.dist-info}/RECORD +10 -10
- {tencentcloud_sdk_python_intl_en-3.0.1234.dist-info → tencentcloud_sdk_python_intl_en-3.0.1236.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1234.dist-info → tencentcloud_sdk_python_intl_en-3.0.1236.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -218,6 +218,52 @@ class LiveClient(AbstractClient):
|
|
|
218
218
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
219
219
|
|
|
220
220
|
|
|
221
|
+
def CreateLivePadRule(self, request):
|
|
222
|
+
"""create a live pad rule.
|
|
223
|
+
|
|
224
|
+
:param request: Request instance for CreateLivePadRule.
|
|
225
|
+
:type request: :class:`tencentcloud.live.v20180801.models.CreateLivePadRuleRequest`
|
|
226
|
+
:rtype: :class:`tencentcloud.live.v20180801.models.CreateLivePadRuleResponse`
|
|
227
|
+
|
|
228
|
+
"""
|
|
229
|
+
try:
|
|
230
|
+
params = request._serialize()
|
|
231
|
+
headers = request.headers
|
|
232
|
+
body = self.call("CreateLivePadRule", params, headers=headers)
|
|
233
|
+
response = json.loads(body)
|
|
234
|
+
model = models.CreateLivePadRuleResponse()
|
|
235
|
+
model._deserialize(response["Response"])
|
|
236
|
+
return model
|
|
237
|
+
except Exception as e:
|
|
238
|
+
if isinstance(e, TencentCloudSDKException):
|
|
239
|
+
raise
|
|
240
|
+
else:
|
|
241
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
def CreateLivePadTemplate(self, request):
|
|
245
|
+
"""create a live pad template
|
|
246
|
+
|
|
247
|
+
:param request: Request instance for CreateLivePadTemplate.
|
|
248
|
+
:type request: :class:`tencentcloud.live.v20180801.models.CreateLivePadTemplateRequest`
|
|
249
|
+
:rtype: :class:`tencentcloud.live.v20180801.models.CreateLivePadTemplateResponse`
|
|
250
|
+
|
|
251
|
+
"""
|
|
252
|
+
try:
|
|
253
|
+
params = request._serialize()
|
|
254
|
+
headers = request.headers
|
|
255
|
+
body = self.call("CreateLivePadTemplate", params, headers=headers)
|
|
256
|
+
response = json.loads(body)
|
|
257
|
+
model = models.CreateLivePadTemplateResponse()
|
|
258
|
+
model._deserialize(response["Response"])
|
|
259
|
+
return model
|
|
260
|
+
except Exception as e:
|
|
261
|
+
if isinstance(e, TencentCloudSDKException):
|
|
262
|
+
raise
|
|
263
|
+
else:
|
|
264
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
265
|
+
|
|
266
|
+
|
|
221
267
|
def CreateLivePullStreamTask(self, request):
|
|
222
268
|
"""This API is used to create a task to pull streams from video files or an external live streaming source and publish them to a specified destination URL.
|
|
223
269
|
Notes:
|
|
@@ -2688,6 +2688,269 @@ class CreateLiveCallbackTemplateResponse(AbstractModel):
|
|
|
2688
2688
|
self._RequestId = params.get("RequestId")
|
|
2689
2689
|
|
|
2690
2690
|
|
|
2691
|
+
class CreateLivePadRuleRequest(AbstractModel):
|
|
2692
|
+
"""CreateLivePadRule request structure.
|
|
2693
|
+
|
|
2694
|
+
"""
|
|
2695
|
+
|
|
2696
|
+
def __init__(self):
|
|
2697
|
+
r"""
|
|
2698
|
+
:param _DomainName: Domain name for streaming.
|
|
2699
|
+
:type DomainName: str
|
|
2700
|
+
:param _TemplateId: The template ID.
|
|
2701
|
+
:type TemplateId: int
|
|
2702
|
+
:param _AppName: The streaming path is consistent with the AppName in the streaming and playback address. The default value is live.
|
|
2703
|
+
:type AppName: str
|
|
2704
|
+
:param _StreamName: Stream name. Note: If this parameter is set to a non-empty string, the rule will only work on this push stream.
|
|
2705
|
+
:type StreamName: str
|
|
2706
|
+
"""
|
|
2707
|
+
self._DomainName = None
|
|
2708
|
+
self._TemplateId = None
|
|
2709
|
+
self._AppName = None
|
|
2710
|
+
self._StreamName = None
|
|
2711
|
+
|
|
2712
|
+
@property
|
|
2713
|
+
def DomainName(self):
|
|
2714
|
+
"""Domain name for streaming.
|
|
2715
|
+
:rtype: str
|
|
2716
|
+
"""
|
|
2717
|
+
return self._DomainName
|
|
2718
|
+
|
|
2719
|
+
@DomainName.setter
|
|
2720
|
+
def DomainName(self, DomainName):
|
|
2721
|
+
self._DomainName = DomainName
|
|
2722
|
+
|
|
2723
|
+
@property
|
|
2724
|
+
def TemplateId(self):
|
|
2725
|
+
"""The template ID.
|
|
2726
|
+
:rtype: int
|
|
2727
|
+
"""
|
|
2728
|
+
return self._TemplateId
|
|
2729
|
+
|
|
2730
|
+
@TemplateId.setter
|
|
2731
|
+
def TemplateId(self, TemplateId):
|
|
2732
|
+
self._TemplateId = TemplateId
|
|
2733
|
+
|
|
2734
|
+
@property
|
|
2735
|
+
def AppName(self):
|
|
2736
|
+
"""The streaming path is consistent with the AppName in the streaming and playback address. The default value is live.
|
|
2737
|
+
:rtype: str
|
|
2738
|
+
"""
|
|
2739
|
+
return self._AppName
|
|
2740
|
+
|
|
2741
|
+
@AppName.setter
|
|
2742
|
+
def AppName(self, AppName):
|
|
2743
|
+
self._AppName = AppName
|
|
2744
|
+
|
|
2745
|
+
@property
|
|
2746
|
+
def StreamName(self):
|
|
2747
|
+
"""Stream name. Note: If this parameter is set to a non-empty string, the rule will only work on this push stream.
|
|
2748
|
+
:rtype: str
|
|
2749
|
+
"""
|
|
2750
|
+
return self._StreamName
|
|
2751
|
+
|
|
2752
|
+
@StreamName.setter
|
|
2753
|
+
def StreamName(self, StreamName):
|
|
2754
|
+
self._StreamName = StreamName
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
def _deserialize(self, params):
|
|
2758
|
+
self._DomainName = params.get("DomainName")
|
|
2759
|
+
self._TemplateId = params.get("TemplateId")
|
|
2760
|
+
self._AppName = params.get("AppName")
|
|
2761
|
+
self._StreamName = params.get("StreamName")
|
|
2762
|
+
memeber_set = set(params.keys())
|
|
2763
|
+
for name, value in vars(self).items():
|
|
2764
|
+
property_name = name[1:]
|
|
2765
|
+
if property_name in memeber_set:
|
|
2766
|
+
memeber_set.remove(property_name)
|
|
2767
|
+
if len(memeber_set) > 0:
|
|
2768
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2769
|
+
|
|
2770
|
+
|
|
2771
|
+
|
|
2772
|
+
class CreateLivePadRuleResponse(AbstractModel):
|
|
2773
|
+
"""CreateLivePadRule response structure.
|
|
2774
|
+
|
|
2775
|
+
"""
|
|
2776
|
+
|
|
2777
|
+
def __init__(self):
|
|
2778
|
+
r"""
|
|
2779
|
+
: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.
|
|
2780
|
+
:type RequestId: str
|
|
2781
|
+
"""
|
|
2782
|
+
self._RequestId = None
|
|
2783
|
+
|
|
2784
|
+
@property
|
|
2785
|
+
def RequestId(self):
|
|
2786
|
+
"""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.
|
|
2787
|
+
:rtype: str
|
|
2788
|
+
"""
|
|
2789
|
+
return self._RequestId
|
|
2790
|
+
|
|
2791
|
+
@RequestId.setter
|
|
2792
|
+
def RequestId(self, RequestId):
|
|
2793
|
+
self._RequestId = RequestId
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
def _deserialize(self, params):
|
|
2797
|
+
self._RequestId = params.get("RequestId")
|
|
2798
|
+
|
|
2799
|
+
|
|
2800
|
+
class CreateLivePadTemplateRequest(AbstractModel):
|
|
2801
|
+
"""CreateLivePadTemplate request structure.
|
|
2802
|
+
|
|
2803
|
+
"""
|
|
2804
|
+
|
|
2805
|
+
def __init__(self):
|
|
2806
|
+
r"""
|
|
2807
|
+
:param _TemplateName: Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, and - are supported.
|
|
2808
|
+
:type TemplateName: str
|
|
2809
|
+
:param _Url: Gasket content.
|
|
2810
|
+
:type Url: str
|
|
2811
|
+
:param _Description: Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, and - are supported.
|
|
2812
|
+
:type Description: str
|
|
2813
|
+
:param _WaitDuration: The waiting time for disconnection. Value range: 0-30000. Unit: ms.
|
|
2814
|
+
:type WaitDuration: int
|
|
2815
|
+
:param _MaxDuration: Maximum shim duration. Value range: 0 - positive infinity. Unit: ms.
|
|
2816
|
+
:type MaxDuration: int
|
|
2817
|
+
:param _Type: Shim content type: 1: image, 2: video. Default value: 1.
|
|
2818
|
+
:type Type: int
|
|
2819
|
+
"""
|
|
2820
|
+
self._TemplateName = None
|
|
2821
|
+
self._Url = None
|
|
2822
|
+
self._Description = None
|
|
2823
|
+
self._WaitDuration = None
|
|
2824
|
+
self._MaxDuration = None
|
|
2825
|
+
self._Type = None
|
|
2826
|
+
|
|
2827
|
+
@property
|
|
2828
|
+
def TemplateName(self):
|
|
2829
|
+
"""Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, and - are supported.
|
|
2830
|
+
:rtype: str
|
|
2831
|
+
"""
|
|
2832
|
+
return self._TemplateName
|
|
2833
|
+
|
|
2834
|
+
@TemplateName.setter
|
|
2835
|
+
def TemplateName(self, TemplateName):
|
|
2836
|
+
self._TemplateName = TemplateName
|
|
2837
|
+
|
|
2838
|
+
@property
|
|
2839
|
+
def Url(self):
|
|
2840
|
+
"""Gasket content.
|
|
2841
|
+
:rtype: str
|
|
2842
|
+
"""
|
|
2843
|
+
return self._Url
|
|
2844
|
+
|
|
2845
|
+
@Url.setter
|
|
2846
|
+
def Url(self, Url):
|
|
2847
|
+
self._Url = Url
|
|
2848
|
+
|
|
2849
|
+
@property
|
|
2850
|
+
def Description(self):
|
|
2851
|
+
"""Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, and - are supported.
|
|
2852
|
+
:rtype: str
|
|
2853
|
+
"""
|
|
2854
|
+
return self._Description
|
|
2855
|
+
|
|
2856
|
+
@Description.setter
|
|
2857
|
+
def Description(self, Description):
|
|
2858
|
+
self._Description = Description
|
|
2859
|
+
|
|
2860
|
+
@property
|
|
2861
|
+
def WaitDuration(self):
|
|
2862
|
+
"""The waiting time for disconnection. Value range: 0-30000. Unit: ms.
|
|
2863
|
+
:rtype: int
|
|
2864
|
+
"""
|
|
2865
|
+
return self._WaitDuration
|
|
2866
|
+
|
|
2867
|
+
@WaitDuration.setter
|
|
2868
|
+
def WaitDuration(self, WaitDuration):
|
|
2869
|
+
self._WaitDuration = WaitDuration
|
|
2870
|
+
|
|
2871
|
+
@property
|
|
2872
|
+
def MaxDuration(self):
|
|
2873
|
+
"""Maximum shim duration. Value range: 0 - positive infinity. Unit: ms.
|
|
2874
|
+
:rtype: int
|
|
2875
|
+
"""
|
|
2876
|
+
return self._MaxDuration
|
|
2877
|
+
|
|
2878
|
+
@MaxDuration.setter
|
|
2879
|
+
def MaxDuration(self, MaxDuration):
|
|
2880
|
+
self._MaxDuration = MaxDuration
|
|
2881
|
+
|
|
2882
|
+
@property
|
|
2883
|
+
def Type(self):
|
|
2884
|
+
"""Shim content type: 1: image, 2: video. Default value: 1.
|
|
2885
|
+
:rtype: int
|
|
2886
|
+
"""
|
|
2887
|
+
return self._Type
|
|
2888
|
+
|
|
2889
|
+
@Type.setter
|
|
2890
|
+
def Type(self, Type):
|
|
2891
|
+
self._Type = Type
|
|
2892
|
+
|
|
2893
|
+
|
|
2894
|
+
def _deserialize(self, params):
|
|
2895
|
+
self._TemplateName = params.get("TemplateName")
|
|
2896
|
+
self._Url = params.get("Url")
|
|
2897
|
+
self._Description = params.get("Description")
|
|
2898
|
+
self._WaitDuration = params.get("WaitDuration")
|
|
2899
|
+
self._MaxDuration = params.get("MaxDuration")
|
|
2900
|
+
self._Type = params.get("Type")
|
|
2901
|
+
memeber_set = set(params.keys())
|
|
2902
|
+
for name, value in vars(self).items():
|
|
2903
|
+
property_name = name[1:]
|
|
2904
|
+
if property_name in memeber_set:
|
|
2905
|
+
memeber_set.remove(property_name)
|
|
2906
|
+
if len(memeber_set) > 0:
|
|
2907
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
|
|
2911
|
+
class CreateLivePadTemplateResponse(AbstractModel):
|
|
2912
|
+
"""CreateLivePadTemplate response structure.
|
|
2913
|
+
|
|
2914
|
+
"""
|
|
2915
|
+
|
|
2916
|
+
def __init__(self):
|
|
2917
|
+
r"""
|
|
2918
|
+
:param _TemplateId: Template Id.
|
|
2919
|
+
:type TemplateId: int
|
|
2920
|
+
: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.
|
|
2921
|
+
:type RequestId: str
|
|
2922
|
+
"""
|
|
2923
|
+
self._TemplateId = None
|
|
2924
|
+
self._RequestId = None
|
|
2925
|
+
|
|
2926
|
+
@property
|
|
2927
|
+
def TemplateId(self):
|
|
2928
|
+
"""Template Id.
|
|
2929
|
+
:rtype: int
|
|
2930
|
+
"""
|
|
2931
|
+
return self._TemplateId
|
|
2932
|
+
|
|
2933
|
+
@TemplateId.setter
|
|
2934
|
+
def TemplateId(self, TemplateId):
|
|
2935
|
+
self._TemplateId = TemplateId
|
|
2936
|
+
|
|
2937
|
+
@property
|
|
2938
|
+
def RequestId(self):
|
|
2939
|
+
"""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.
|
|
2940
|
+
:rtype: str
|
|
2941
|
+
"""
|
|
2942
|
+
return self._RequestId
|
|
2943
|
+
|
|
2944
|
+
@RequestId.setter
|
|
2945
|
+
def RequestId(self, RequestId):
|
|
2946
|
+
self._RequestId = RequestId
|
|
2947
|
+
|
|
2948
|
+
|
|
2949
|
+
def _deserialize(self, params):
|
|
2950
|
+
self._TemplateId = params.get("TemplateId")
|
|
2951
|
+
self._RequestId = params.get("RequestId")
|
|
2952
|
+
|
|
2953
|
+
|
|
2691
2954
|
class CreateLivePullStreamTaskRequest(AbstractModel):
|
|
2692
2955
|
"""CreateLivePullStreamTask request structure.
|
|
2693
2956
|
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
# CAM signature/authentication error
|
|
18
18
|
AUTHFAILURE = 'AuthFailure'
|
|
19
19
|
|
|
20
|
+
# Public network access has been enabled for the current instance.
|
|
21
|
+
FAILEDOPERATION_NOTALLOWMODIFYADDRAFTEROPENWANSERVICE = 'FailedOperation.NotAllowModifyAddrAfterOpenWanService'
|
|
22
|
+
|
|
20
23
|
# Internal error
|
|
21
24
|
INTERNALERROR = 'InternalError'
|
|
22
25
|
|
|
@@ -35,7 +38,7 @@ INVALIDPARAMETER_CURRENTINSTANCENOTSUPPORTMODIFYPARAMS = 'InvalidParameter.Curre
|
|
|
35
38
|
# Invalid Vip information
|
|
36
39
|
INVALIDPARAMETER_INVALIDVIP = 'InvalidParameter.InvalidVip'
|
|
37
40
|
|
|
38
|
-
# The current
|
|
41
|
+
# The current sub-account has no permission to perform this operation.
|
|
39
42
|
INVALIDPARAMETER_PERMISSIONDENIED = 'InvalidParameter.PermissionDenied'
|
|
40
43
|
|
|
41
44
|
# Instances are not purchasable in this AZ.
|
|
@@ -131,7 +134,7 @@ INVALIDPARAMETERVALUE_SECURITYGROUPID = 'InvalidParameterValue.SecurityGroupId'
|
|
|
131
134
|
# The disk size to be set cannot be less than 1.2 times the used disk capacity.
|
|
132
135
|
INVALIDPARAMETERVALUE_SETDISKLESSTHANUSED = 'InvalidParameterValue.SetDiskLessThanUsed'
|
|
133
136
|
|
|
134
|
-
# The value of the
|
|
137
|
+
# The value range of the slowMS parameter is [100,65536].
|
|
135
138
|
INVALIDPARAMETERVALUE_SLOWMSBELOWLIMIT = 'InvalidParameterValue.SlowMSBelowLimit'
|
|
136
139
|
|
|
137
140
|
# Incorrect purchasable specification.
|
|
@@ -158,6 +161,9 @@ INVALIDPARAMETERVALUE_ZONECLOSED = 'InvalidParameterValue.ZoneClosed'
|
|
|
158
161
|
# Invalid availability zone
|
|
159
162
|
INVALIDPARAMETERVALUE_ZONEERROR = 'InvalidParameterValue.ZoneError'
|
|
160
163
|
|
|
164
|
+
# The API frequency limit is triggered due to frequent requests.
|
|
165
|
+
LIMITEXCEEDED_TOOMANYREQUESTS = 'LimitExceeded.TooManyRequests'
|
|
166
|
+
|
|
161
167
|
# The resource does not exist.
|
|
162
168
|
RESOURCENOTFOUND = 'ResourceNotFound'
|
|
163
169
|
|