tencentcloud-sdk-python-intl-en 3.0.1235__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 CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1235'
16
+ __version__ = '3.0.1236'
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-intl-en
3
- Version: 3.0.1235
3
+ Version: 3.0.1236
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python-intl-en
6
6
  Author: Tencent Cloud
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=g7U9qr-CVgG2fDzJA-QOivvB2amvhfAfQG34dg-n5tY,630
1
+ tencentcloud/__init__.py,sha256=KVbbpPk5hRTVo-MTN41WjO9aQWt6xHmIrbDHvHY8Zi0,630
2
2
  tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/advisor/v20200721/advisor_client.py,sha256=fiBV7Nao68T0UJdOUt5BxEABWr7mG_J9NPJT2lXDdyw,2897
@@ -368,8 +368,8 @@ tencentcloud/lighthouse/v20200324/models.py,sha256=OknSSoXOExOyBK3a4Px3QDWZ97Chd
368
368
  tencentcloud/live/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
369
369
  tencentcloud/live/v20180801/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
370
370
  tencentcloud/live/v20180801/errorcodes.py,sha256=XZ9sSJD88PByjGF4JfSv12kGPSzk7-NnorEqs1Jr2Tk,20303
371
- tencentcloud/live/v20180801/live_client.py,sha256=S5nc0I4lZJjbnUOgO5QwWrMjjeMsmfLdPZWknIhVGkU,130957
372
- tencentcloud/live/v20180801/models.py,sha256=wwbCw5AQfRLgcNTGDgYFx4OHJV_XLE6HgoV9Q4W76iA,781666
371
+ tencentcloud/live/v20180801/live_client.py,sha256=zncs4xFeLAzbjFmKqQsnN_b0vfQ_oWbF1bSPW3bzit0,132736
372
+ tencentcloud/live/v20180801/models.py,sha256=MusiG6BwraUEyltwNE5iHM7cOcYJPCz3_eMhyJqC0_U,789964
373
373
  tencentcloud/lke/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
374
374
  tencentcloud/lke/v20231130/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
375
375
  tencentcloud/lke/v20231130/errorcodes.py,sha256=wwGIoFiGFe88exB28UpkEK44INVeAmq7giOsYa7NXfg,1919
@@ -663,7 +663,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
663
663
  tencentcloud/yunjing/v20180228/errorcodes.py,sha256=g2ac3Fxgbof23WWhGj9VxvuLJZNshnB0Mg7jWUzTh24,3168
664
664
  tencentcloud/yunjing/v20180228/models.py,sha256=vFpNnPGWiOLdTut0XPTpRRF5lobWUTkFUO1EHc9RkBk,330643
665
665
  tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=PqtaJz4gQ-rIxKXVMNtOKx7kFBQdUn-zKVuH2NcMFcA,67362
666
- tencentcloud_sdk_python_intl_en-3.0.1235.dist-info/METADATA,sha256=8bcPSgfu3aKXzKSsAGCivMHCvbXdZKI6P9pAWlr3EYw,1628
667
- tencentcloud_sdk_python_intl_en-3.0.1235.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
668
- tencentcloud_sdk_python_intl_en-3.0.1235.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
669
- tencentcloud_sdk_python_intl_en-3.0.1235.dist-info/RECORD,,
666
+ tencentcloud_sdk_python_intl_en-3.0.1236.dist-info/METADATA,sha256=MUI9arUMLxAq-AukhZIoaKPZR6FvGCgAboUtX-8eBZk,1628
667
+ tencentcloud_sdk_python_intl_en-3.0.1236.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
668
+ tencentcloud_sdk_python_intl_en-3.0.1236.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
669
+ tencentcloud_sdk_python_intl_en-3.0.1236.dist-info/RECORD,,