tencentcloud-sdk-python-car 3.0.1416__tar.gz → 3.1.29__tar.gz

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.
Files changed (19) hide show
  1. tencentcloud_sdk_python_car-3.1.29/PKG-INFO +46 -0
  2. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/setup.py +2 -1
  3. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/v20220110/car_client.py +29 -6
  5. tencentcloud_sdk_python_car-3.1.29/tencentcloud/car/v20220110/car_client_async.py +152 -0
  6. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/v20220110/models.py +146 -37
  7. tencentcloud_sdk_python_car-3.1.29/tencentcloud_sdk_python_car.egg-info/PKG-INFO +46 -0
  8. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud_sdk_python_car.egg-info/SOURCES.txt +1 -0
  9. tencentcloud_sdk_python_car-3.1.29/tencentcloud_sdk_python_car.egg-info/requires.txt +1 -0
  10. tencentcloud-sdk-python-car-3.0.1416/PKG-INFO +0 -45
  11. tencentcloud-sdk-python-car-3.0.1416/tencentcloud_sdk_python_car.egg-info/PKG-INFO +0 -45
  12. tencentcloud-sdk-python-car-3.0.1416/tencentcloud_sdk_python_car.egg-info/requires.txt +0 -1
  13. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/README.rst +0 -0
  14. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/setup.cfg +0 -0
  15. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/__init__.py +0 -0
  16. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/v20220110/__init__.py +0 -0
  17. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud/car/v20220110/errorcodes.py +0 -0
  18. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud_sdk_python_car.egg-info/dependency_links.txt +0 -0
  19. {tencentcloud-sdk-python-car-3.0.1416 → tencentcloud_sdk_python_car-3.1.29}/tencentcloud_sdk_python_car.egg-info/top_level.txt +0 -0
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-car
3
+ Version: 3.1.29
4
+ Summary: Tencent Cloud Car SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Car SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-car
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common car
46
+
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-car',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1416"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.29,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Car SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1416'
17
+ __version__ = '3.1.29'
@@ -27,7 +27,7 @@ class CarClient(AbstractClient):
27
27
 
28
28
 
29
29
  def ApplyConcurrent(self, request):
30
- """本接口用于申请并发。接口超时时间:20秒。
30
+ r"""本接口用于申请并发。接口超时时间:20秒。
31
31
 
32
32
  :param request: Request instance for ApplyConcurrent.
33
33
  :type request: :class:`tencentcloud.car.v20220110.models.ApplyConcurrentRequest`
@@ -50,7 +50,7 @@ class CarClient(AbstractClient):
50
50
 
51
51
 
52
52
  def CreateSession(self, request):
53
- """本接口用于创建会话。接口超时时间:5秒。
53
+ r"""本接口用于创建会话。接口超时时间:5秒。
54
54
 
55
55
  :param request: Request instance for CreateSession.
56
56
  :type request: :class:`tencentcloud.car.v20220110.models.CreateSessionRequest`
@@ -72,8 +72,31 @@ class CarClient(AbstractClient):
72
72
  raise TencentCloudSDKException(type(e).__name__, str(e))
73
73
 
74
74
 
75
+ def DescribeConcurrentCount(self, request):
76
+ r"""获取并发计数
77
+
78
+ :param request: Request instance for DescribeConcurrentCount.
79
+ :type request: :class:`tencentcloud.car.v20220110.models.DescribeConcurrentCountRequest`
80
+ :rtype: :class:`tencentcloud.car.v20220110.models.DescribeConcurrentCountResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("DescribeConcurrentCount", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.DescribeConcurrentCountResponse()
89
+ model._deserialize(response["Response"])
90
+ return model
91
+ except Exception as e:
92
+ if isinstance(e, TencentCloudSDKException):
93
+ raise
94
+ else:
95
+ raise TencentCloudSDKException(type(e).__name__, str(e))
96
+
97
+
75
98
  def DestroySession(self, request):
76
- """销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。
99
+ r"""销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。
77
100
 
78
101
  :param request: Request instance for DestroySession.
79
102
  :type request: :class:`tencentcloud.car.v20220110.models.DestroySessionRequest`
@@ -96,7 +119,7 @@ class CarClient(AbstractClient):
96
119
 
97
120
 
98
121
  def StartPublishStream(self, request):
99
- """开始云端推流。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。
122
+ r"""开始云端推流。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。
100
123
 
101
124
  :param request: Request instance for StartPublishStream.
102
125
  :type request: :class:`tencentcloud.car.v20220110.models.StartPublishStreamRequest`
@@ -119,7 +142,7 @@ class CarClient(AbstractClient):
119
142
 
120
143
 
121
144
  def StartPublishStreamWithURL(self, request):
122
- """开始云端推流到指定URL。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。该推流方式需要单独计费,详细计费方式请查看[指定地址推流费用说明](https://cloud.tencent.com/document/product/1547/72168#98ac188a-d122-4caf-88be-05268ecefdf6)
145
+ r"""开始云端推流到指定URL。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。该推流方式需要单独计费,详细计费方式请查看[指定地址推流费用说明](https://cloud.tencent.com/document/product/1547/72168#98ac188a-d122-4caf-88be-05268ecefdf6)
123
146
 
124
147
  :param request: Request instance for StartPublishStreamWithURL.
125
148
  :type request: :class:`tencentcloud.car.v20220110.models.StartPublishStreamWithURLRequest`
@@ -142,7 +165,7 @@ class CarClient(AbstractClient):
142
165
 
143
166
 
144
167
  def StopPublishStream(self, request):
145
- """停止云端推流
168
+ r"""停止云端推流
146
169
 
147
170
  :param request: Request instance for StopPublishStream.
148
171
  :type request: :class:`tencentcloud.car.v20220110.models.StopPublishStreamRequest`
@@ -0,0 +1,152 @@
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
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.car.v20220110 import models
20
+ from typing import Dict
21
+
22
+
23
+ class CarClient(AbstractClient):
24
+ _apiVersion = '2022-01-10'
25
+ _endpoint = 'car.tencentcloudapi.com'
26
+ _service = 'car'
27
+
28
+ async def ApplyConcurrent(
29
+ self,
30
+ request: models.ApplyConcurrentRequest,
31
+ opts: Dict = None,
32
+ ) -> models.ApplyConcurrentResponse:
33
+ """
34
+ 本接口用于申请并发。接口超时时间:20秒。
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "ApplyConcurrent"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.ApplyConcurrentResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def CreateSession(
47
+ self,
48
+ request: models.CreateSessionRequest,
49
+ opts: Dict = None,
50
+ ) -> models.CreateSessionResponse:
51
+ """
52
+ 本接口用于创建会话。接口超时时间:5秒。
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "CreateSession"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.CreateSessionResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def DescribeConcurrentCount(
65
+ self,
66
+ request: models.DescribeConcurrentCountRequest,
67
+ opts: Dict = None,
68
+ ) -> models.DescribeConcurrentCountResponse:
69
+ """
70
+ 获取并发计数
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "DescribeConcurrentCount"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.DescribeConcurrentCountResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def DestroySession(
83
+ self,
84
+ request: models.DestroySessionRequest,
85
+ opts: Dict = None,
86
+ ) -> models.DestroySessionResponse:
87
+ """
88
+ 销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "DestroySession"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.DestroySessionResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def StartPublishStream(
101
+ self,
102
+ request: models.StartPublishStreamRequest,
103
+ opts: Dict = None,
104
+ ) -> models.StartPublishStreamResponse:
105
+ """
106
+ 开始云端推流。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "StartPublishStream"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.StartPublishStreamResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def StartPublishStreamWithURL(
119
+ self,
120
+ request: models.StartPublishStreamWithURLRequest,
121
+ opts: Dict = None,
122
+ ) -> models.StartPublishStreamWithURLResponse:
123
+ """
124
+ 开始云端推流到指定URL。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。该推流方式需要单独计费,详细计费方式请查看[指定地址推流费用说明](https://cloud.tencent.com/document/product/1547/72168#98ac188a-d122-4caf-88be-05268ecefdf6)
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "StartPublishStreamWithURL"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.StartPublishStreamWithURLResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def StopPublishStream(
137
+ self,
138
+ request: models.StopPublishStreamRequest,
139
+ opts: Dict = None,
140
+ ) -> models.StopPublishStreamResponse:
141
+ """
142
+ 停止云端推流
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "StopPublishStream"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.StopPublishStreamResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
@@ -19,7 +19,7 @@ from tencentcloud.common.abstract_model import AbstractModel
19
19
 
20
20
 
21
21
  class ApplyConcurrentRequest(AbstractModel):
22
- """ApplyConcurrent请求参数结构体
22
+ r"""ApplyConcurrent请求参数结构体
23
23
 
24
24
  """
25
25
 
@@ -44,7 +44,7 @@ class ApplyConcurrentRequest(AbstractModel):
44
44
 
45
45
  @property
46
46
  def UserId(self):
47
- """唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
47
+ r"""唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
48
48
  :rtype: str
49
49
  """
50
50
  return self._UserId
@@ -55,7 +55,7 @@ class ApplyConcurrentRequest(AbstractModel):
55
55
 
56
56
  @property
57
57
  def UserIp(self):
58
- """用户IP,用户客户端的公网IP,用于就近调度
58
+ r"""用户IP,用户客户端的公网IP,用于就近调度
59
59
  :rtype: str
60
60
  """
61
61
  return self._UserIp
@@ -66,7 +66,7 @@ class ApplyConcurrentRequest(AbstractModel):
66
66
 
67
67
  @property
68
68
  def ProjectId(self):
69
- """项目ID
69
+ r"""项目ID
70
70
  :rtype: str
71
71
  """
72
72
  return self._ProjectId
@@ -77,7 +77,7 @@ class ApplyConcurrentRequest(AbstractModel):
77
77
 
78
78
  @property
79
79
  def ApplicationVersionId(self):
80
- """应用版本ID。如果请求应用的当前版本,可以不用填写该字段。如果请求应用的其它版本时,才需要通过该字段来指定应用的版本。
80
+ r"""应用版本ID。如果请求应用的当前版本,可以不用填写该字段。如果请求应用的其它版本时,才需要通过该字段来指定应用的版本。
81
81
  :rtype: str
82
82
  """
83
83
  return self._ApplicationVersionId
@@ -88,7 +88,7 @@ class ApplyConcurrentRequest(AbstractModel):
88
88
 
89
89
  @property
90
90
  def ApplicationId(self):
91
- """应用ID。如果是独享项目,将忽略该参数,使用项目绑定的应用。如果是共享项目,使用该参数来指定应用。
91
+ r"""应用ID。如果是独享项目,将忽略该参数,使用项目绑定的应用。如果是共享项目,使用该参数来指定应用。
92
92
  :rtype: str
93
93
  """
94
94
  return self._ApplicationId
@@ -115,7 +115,7 @@ class ApplyConcurrentRequest(AbstractModel):
115
115
 
116
116
 
117
117
  class ApplyConcurrentResponse(AbstractModel):
118
- """ApplyConcurrent返回参数结构体
118
+ r"""ApplyConcurrent返回参数结构体
119
119
 
120
120
  """
121
121
 
@@ -128,7 +128,7 @@ class ApplyConcurrentResponse(AbstractModel):
128
128
 
129
129
  @property
130
130
  def RequestId(self):
131
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
131
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
132
132
  :rtype: str
133
133
  """
134
134
  return self._RequestId
@@ -143,7 +143,7 @@ class ApplyConcurrentResponse(AbstractModel):
143
143
 
144
144
 
145
145
  class CreateSessionRequest(AbstractModel):
146
- """CreateSession请求参数结构体
146
+ r"""CreateSession请求参数结构体
147
147
 
148
148
  """
149
149
 
@@ -186,7 +186,7 @@ Viewer:观察者(只能观看,无法操作)
186
186
 
187
187
  @property
188
188
  def UserId(self):
189
- """唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
189
+ r"""唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
190
190
  :rtype: str
191
191
  """
192
192
  return self._UserId
@@ -197,7 +197,7 @@ Viewer:观察者(只能观看,无法操作)
197
197
 
198
198
  @property
199
199
  def UserIp(self):
200
- """用户IP,用户客户端的公网IP,用于就近调度
200
+ r"""用户IP,用户客户端的公网IP,用于就近调度
201
201
  :rtype: str
202
202
  """
203
203
  return self._UserIp
@@ -208,7 +208,7 @@ Viewer:观察者(只能观看,无法操作)
208
208
 
209
209
  @property
210
210
  def ClientSession(self):
211
- """客户端session信息,从SDK请求中获得。特殊的,当 RunMode 参数为 RunWithoutClient 时,该字段可以为空
211
+ r"""客户端session信息,从SDK请求中获得。特殊的,当 RunMode 参数为 RunWithoutClient 时,该字段可以为空
212
212
  :rtype: str
213
213
  """
214
214
  return self._ClientSession
@@ -219,7 +219,7 @@ Viewer:观察者(只能观看,无法操作)
219
219
 
220
220
  @property
221
221
  def RunMode(self):
222
- """云端运行模式。
222
+ r"""云端运行模式。
223
223
  RunWithoutClient:允许无客户端连接的情况下仍保持云端 App 运行
224
224
  默认值(空):要求必须有客户端连接才会保持云端 App 运行。
225
225
  :rtype: str
@@ -232,7 +232,7 @@ RunWithoutClient:允许无客户端连接的情况下仍保持云端 App 运
232
232
 
233
233
  @property
234
234
  def ApplicationParameters(self):
235
- """应用启动参数。
235
+ r"""应用启动参数。
236
236
  如果请求的是多应用共享项目,此参数生效;
237
237
  如果请求的是关闭预启动的单应用独享项目,此参数生效;
238
238
  如果请求的是开启预启动的单应用独享项目,此参数失效。
@@ -249,7 +249,7 @@ RunWithoutClient:允许无客户端连接的情况下仍保持云端 App 运
249
249
 
250
250
  @property
251
251
  def HostUserId(self):
252
- """【多人互动】房主用户ID,在多人互动模式下为必填字段。
252
+ r"""【多人互动】房主用户ID,在多人互动模式下为必填字段。
253
253
  如果该用户是房主,HostUserId需要和UserId保持一致;
254
254
  如果该用户非房主,HostUserId需要填写房主的HostUserId。
255
255
  :rtype: str
@@ -262,7 +262,7 @@ RunWithoutClient:允许无客户端连接的情况下仍保持云端 App 运
262
262
 
263
263
  @property
264
264
  def Role(self):
265
- """【多人互动】角色。
265
+ r"""【多人互动】角色。
266
266
  Player:玩家(可通过键鼠等操作应用)
267
267
  Viewer:观察者(只能观看,无法操作)
268
268
  :rtype: str
@@ -293,7 +293,7 @@ Viewer:观察者(只能观看,无法操作)
293
293
 
294
294
 
295
295
  class CreateSessionResponse(AbstractModel):
296
- """CreateSession返回参数结构体
296
+ r"""CreateSession返回参数结构体
297
297
 
298
298
  """
299
299
 
@@ -309,7 +309,7 @@ class CreateSessionResponse(AbstractModel):
309
309
 
310
310
  @property
311
311
  def ServerSession(self):
312
- """服务端session信息,返回给SDK
312
+ r"""服务端session信息,返回给SDK
313
313
  :rtype: str
314
314
  """
315
315
  return self._ServerSession
@@ -320,7 +320,7 @@ class CreateSessionResponse(AbstractModel):
320
320
 
321
321
  @property
322
322
  def RequestId(self):
323
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
323
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
324
324
  :rtype: str
325
325
  """
326
326
  return self._RequestId
@@ -335,8 +335,117 @@ class CreateSessionResponse(AbstractModel):
335
335
  self._RequestId = params.get("RequestId")
336
336
 
337
337
 
338
+ class DescribeConcurrentCountRequest(AbstractModel):
339
+ r"""DescribeConcurrentCount请求参数结构体
340
+
341
+ """
342
+
343
+ def __init__(self):
344
+ r"""
345
+ :param _ProjectId: 项目ID
346
+ :type ProjectId: str
347
+ :param _ApplicationCategory: 应用类别(DESKTOP: 桌面端,MOBILE:移动端)
348
+ :type ApplicationCategory: str
349
+ """
350
+ self._ProjectId = None
351
+ self._ApplicationCategory = None
352
+
353
+ @property
354
+ def ProjectId(self):
355
+ r"""项目ID
356
+ :rtype: str
357
+ """
358
+ return self._ProjectId
359
+
360
+ @ProjectId.setter
361
+ def ProjectId(self, ProjectId):
362
+ self._ProjectId = ProjectId
363
+
364
+ @property
365
+ def ApplicationCategory(self):
366
+ r"""应用类别(DESKTOP: 桌面端,MOBILE:移动端)
367
+ :rtype: str
368
+ """
369
+ return self._ApplicationCategory
370
+
371
+ @ApplicationCategory.setter
372
+ def ApplicationCategory(self, ApplicationCategory):
373
+ self._ApplicationCategory = ApplicationCategory
374
+
375
+
376
+ def _deserialize(self, params):
377
+ self._ProjectId = params.get("ProjectId")
378
+ self._ApplicationCategory = params.get("ApplicationCategory")
379
+ memeber_set = set(params.keys())
380
+ for name, value in vars(self).items():
381
+ property_name = name[1:]
382
+ if property_name in memeber_set:
383
+ memeber_set.remove(property_name)
384
+ if len(memeber_set) > 0:
385
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
386
+
387
+
388
+
389
+ class DescribeConcurrentCountResponse(AbstractModel):
390
+ r"""DescribeConcurrentCount返回参数结构体
391
+
392
+ """
393
+
394
+ def __init__(self):
395
+ r"""
396
+ :param _Total: 并发总数
397
+ :type Total: int
398
+ :param _Running: 并发运行数,包括预启动中的、已连接的、等待重连、清理恢复等所有非空闲的并发数,所以刷新项目或断开并发包的用户连接,都会影响到该值
399
+ :type Running: int
400
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
401
+ :type RequestId: str
402
+ """
403
+ self._Total = None
404
+ self._Running = None
405
+ self._RequestId = None
406
+
407
+ @property
408
+ def Total(self):
409
+ r"""并发总数
410
+ :rtype: int
411
+ """
412
+ return self._Total
413
+
414
+ @Total.setter
415
+ def Total(self, Total):
416
+ self._Total = Total
417
+
418
+ @property
419
+ def Running(self):
420
+ r"""并发运行数,包括预启动中的、已连接的、等待重连、清理恢复等所有非空闲的并发数,所以刷新项目或断开并发包的用户连接,都会影响到该值
421
+ :rtype: int
422
+ """
423
+ return self._Running
424
+
425
+ @Running.setter
426
+ def Running(self, Running):
427
+ self._Running = Running
428
+
429
+ @property
430
+ def RequestId(self):
431
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
432
+ :rtype: str
433
+ """
434
+ return self._RequestId
435
+
436
+ @RequestId.setter
437
+ def RequestId(self, RequestId):
438
+ self._RequestId = RequestId
439
+
440
+
441
+ def _deserialize(self, params):
442
+ self._Total = params.get("Total")
443
+ self._Running = params.get("Running")
444
+ self._RequestId = params.get("RequestId")
445
+
446
+
338
447
  class DestroySessionRequest(AbstractModel):
339
- """DestroySession请求参数结构体
448
+ r"""DestroySession请求参数结构体
340
449
 
341
450
  """
342
451
 
@@ -349,7 +458,7 @@ class DestroySessionRequest(AbstractModel):
349
458
 
350
459
  @property
351
460
  def UserId(self):
352
- """唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
461
+ r"""唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
353
462
  :rtype: str
354
463
  """
355
464
  return self._UserId
@@ -372,7 +481,7 @@ class DestroySessionRequest(AbstractModel):
372
481
 
373
482
 
374
483
  class DestroySessionResponse(AbstractModel):
375
- """DestroySession返回参数结构体
484
+ r"""DestroySession返回参数结构体
376
485
 
377
486
  """
378
487
 
@@ -385,7 +494,7 @@ class DestroySessionResponse(AbstractModel):
385
494
 
386
495
  @property
387
496
  def RequestId(self):
388
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
497
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
389
498
  :rtype: str
390
499
  """
391
500
  return self._RequestId
@@ -400,7 +509,7 @@ class DestroySessionResponse(AbstractModel):
400
509
 
401
510
 
402
511
  class StartPublishStreamRequest(AbstractModel):
403
- """StartPublishStream请求参数结构体
512
+ r"""StartPublishStream请求参数结构体
404
513
 
405
514
  """
406
515
 
@@ -416,7 +525,7 @@ class StartPublishStreamRequest(AbstractModel):
416
525
 
417
526
  @property
418
527
  def UserId(self):
419
- """唯一用户身份标识,由业务方自定义,平台不予理解。(UserId将作为StreamId进行推流,比如绑定推流域名为abc.livepush.myqcloud.com,那么推流地址为rtmp://abc.livepush.myqcloud.com/live/UserId?txSecret=xxx&txTime=xxx)
528
+ r"""唯一用户身份标识,由业务方自定义,平台不予理解。(UserId将作为StreamId进行推流,比如绑定推流域名为abc.livepush.myqcloud.com,那么推流地址为rtmp://abc.livepush.myqcloud.com/live/UserId?txSecret=xxx&txTime=xxx)
420
529
  :rtype: str
421
530
  """
422
531
  return self._UserId
@@ -427,7 +536,7 @@ class StartPublishStreamRequest(AbstractModel):
427
536
 
428
537
  @property
429
538
  def PublishStreamArgs(self):
430
- """推流参数,推流时携带自定义参数。
539
+ r"""推流参数,推流时携带自定义参数。
431
540
  :rtype: str
432
541
  """
433
542
  return self._PublishStreamArgs
@@ -451,7 +560,7 @@ class StartPublishStreamRequest(AbstractModel):
451
560
 
452
561
 
453
562
  class StartPublishStreamResponse(AbstractModel):
454
- """StartPublishStream返回参数结构体
563
+ r"""StartPublishStream返回参数结构体
455
564
 
456
565
  """
457
566
 
@@ -464,7 +573,7 @@ class StartPublishStreamResponse(AbstractModel):
464
573
 
465
574
  @property
466
575
  def RequestId(self):
467
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
576
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
468
577
  :rtype: str
469
578
  """
470
579
  return self._RequestId
@@ -479,7 +588,7 @@ class StartPublishStreamResponse(AbstractModel):
479
588
 
480
589
 
481
590
  class StartPublishStreamWithURLRequest(AbstractModel):
482
- """StartPublishStreamWithURL请求参数结构体
591
+ r"""StartPublishStreamWithURL请求参数结构体
483
592
 
484
593
  """
485
594
 
@@ -495,7 +604,7 @@ class StartPublishStreamWithURLRequest(AbstractModel):
495
604
 
496
605
  @property
497
606
  def UserId(self):
498
- """唯一用户身份标识,由业务方自定义,平台不予理解。
607
+ r"""唯一用户身份标识,由业务方自定义,平台不予理解。
499
608
  :rtype: str
500
609
  """
501
610
  return self._UserId
@@ -506,7 +615,7 @@ class StartPublishStreamWithURLRequest(AbstractModel):
506
615
 
507
616
  @property
508
617
  def PublishStreamURL(self):
509
- """推流地址,仅支持rtmp协议。
618
+ r"""推流地址,仅支持rtmp协议。
510
619
  :rtype: str
511
620
  """
512
621
  return self._PublishStreamURL
@@ -530,7 +639,7 @@ class StartPublishStreamWithURLRequest(AbstractModel):
530
639
 
531
640
 
532
641
  class StartPublishStreamWithURLResponse(AbstractModel):
533
- """StartPublishStreamWithURL返回参数结构体
642
+ r"""StartPublishStreamWithURL返回参数结构体
534
643
 
535
644
  """
536
645
 
@@ -543,7 +652,7 @@ class StartPublishStreamWithURLResponse(AbstractModel):
543
652
 
544
653
  @property
545
654
  def RequestId(self):
546
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
655
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
547
656
  :rtype: str
548
657
  """
549
658
  return self._RequestId
@@ -558,7 +667,7 @@ class StartPublishStreamWithURLResponse(AbstractModel):
558
667
 
559
668
 
560
669
  class StopPublishStreamRequest(AbstractModel):
561
- """StopPublishStream请求参数结构体
670
+ r"""StopPublishStream请求参数结构体
562
671
 
563
672
  """
564
673
 
@@ -571,7 +680,7 @@ class StopPublishStreamRequest(AbstractModel):
571
680
 
572
681
  @property
573
682
  def UserId(self):
574
- """唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
683
+ r"""唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
575
684
  :rtype: str
576
685
  """
577
686
  return self._UserId
@@ -594,7 +703,7 @@ class StopPublishStreamRequest(AbstractModel):
594
703
 
595
704
 
596
705
  class StopPublishStreamResponse(AbstractModel):
597
- """StopPublishStream返回参数结构体
706
+ r"""StopPublishStream返回参数结构体
598
707
 
599
708
  """
600
709
 
@@ -607,7 +716,7 @@ class StopPublishStreamResponse(AbstractModel):
607
716
 
608
717
  @property
609
718
  def RequestId(self):
610
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
719
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
611
720
  :rtype: str
612
721
  """
613
722
  return self._RequestId
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-car
3
+ Version: 3.1.29
4
+ Summary: Tencent Cloud Car SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Car SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-car
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common car
46
+
@@ -5,6 +5,7 @@ tencentcloud/__init__.py
5
5
  tencentcloud/car/__init__.py
6
6
  tencentcloud/car/v20220110/__init__.py
7
7
  tencentcloud/car/v20220110/car_client.py
8
+ tencentcloud/car/v20220110/car_client_async.py
8
9
  tencentcloud/car/v20220110/errorcodes.py
9
10
  tencentcloud/car/v20220110/models.py
10
11
  tencentcloud_sdk_python_car.egg-info/PKG-INFO
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.29
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-car
3
- Version: 3.0.1416
4
- Summary: Tencent Cloud Car SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Car SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-car
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common car
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-car
3
- Version: 3.0.1416
4
- Summary: Tencent Cloud Car SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Car SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-car
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common car
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1416