tencentcloud-sdk-python-car 3.1.29__tar.gz → 3.1.208__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 (17) hide show
  1. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/setup.py +1 -1
  3. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud/car/v20220110/car_client.py +69 -0
  5. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud/car/v20220110/car_client_async.py +54 -0
  6. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud/car/v20220110/errorcodes.py +21 -0
  7. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud/car/v20220110/models.py +102 -0
  8. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud_sdk_python_car.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_car-3.1.208/tencentcloud_sdk_python_car.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_car-3.1.29/tencentcloud_sdk_python_car.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/README.rst +0 -0
  12. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud/car/__init__.py +0 -0
  14. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud/car/v20220110/__init__.py +0 -0
  15. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud_sdk_python_car.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud_sdk_python_car.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_car-3.1.29 → tencentcloud_sdk_python_car-3.1.208}/tencentcloud_sdk_python_car.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-car
3
- Version: 3.1.29
3
+ Version: 3.1.208
4
4
  Summary: Tencent Cloud Car SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.208
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ 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.1.29,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.208,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Car SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.29'
17
+ __version__ = '3.1.208'
@@ -49,6 +49,29 @@ class CarClient(AbstractClient):
49
49
  raise TencentCloudSDKException(type(e).__name__, str(e))
50
50
 
51
51
 
52
+ def CreateMCPToken(self, request):
53
+ r"""创建 MCP Token(签发令牌)
54
+
55
+ :param request: Request instance for CreateMCPToken.
56
+ :type request: :class:`tencentcloud.car.v20220110.models.CreateMCPTokenRequest`
57
+ :rtype: :class:`tencentcloud.car.v20220110.models.CreateMCPTokenResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("CreateMCPToken", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.CreateMCPTokenResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
52
75
  def CreateSession(self, request):
53
76
  r"""本接口用于创建会话。接口超时时间:5秒。
54
77
 
@@ -95,6 +118,29 @@ class CarClient(AbstractClient):
95
118
  raise TencentCloudSDKException(type(e).__name__, str(e))
96
119
 
97
120
 
121
+ def DescribeMCPTokens(self, request):
122
+ r"""查询 MCP Token 列表
123
+
124
+ :param request: Request instance for DescribeMCPTokens.
125
+ :type request: :class:`tencentcloud.car.v20220110.models.DescribeMCPTokensRequest`
126
+ :rtype: :class:`tencentcloud.car.v20220110.models.DescribeMCPTokensResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("DescribeMCPTokens", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.DescribeMCPTokensResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
98
144
  def DestroySession(self, request):
99
145
  r"""销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。
100
146
 
@@ -118,6 +164,29 @@ class CarClient(AbstractClient):
118
164
  raise TencentCloudSDKException(type(e).__name__, str(e))
119
165
 
120
166
 
167
+ def RenewMCPToken(self, request):
168
+ r"""续期 MCP Token(续期令牌)
169
+
170
+ :param request: Request instance for RenewMCPToken.
171
+ :type request: :class:`tencentcloud.car.v20220110.models.RenewMCPTokenRequest`
172
+ :rtype: :class:`tencentcloud.car.v20220110.models.RenewMCPTokenResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("RenewMCPToken", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.RenewMCPTokenResponse()
181
+ model._deserialize(response["Response"])
182
+ return model
183
+ except Exception as e:
184
+ if isinstance(e, TencentCloudSDKException):
185
+ raise
186
+ else:
187
+ raise TencentCloudSDKException(type(e).__name__, str(e))
188
+
189
+
121
190
  def StartPublishStream(self, request):
122
191
  r"""开始云端推流。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。
123
192
 
@@ -43,6 +43,24 @@ class CarClient(AbstractClient):
43
43
 
44
44
  return await self.call_and_deserialize(**kwargs)
45
45
 
46
+ async def CreateMCPToken(
47
+ self,
48
+ request: models.CreateMCPTokenRequest,
49
+ opts: Dict = None,
50
+ ) -> models.CreateMCPTokenResponse:
51
+ """
52
+ 创建 MCP Token(签发令牌)
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "CreateMCPToken"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.CreateMCPTokenResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
46
64
  async def CreateSession(
47
65
  self,
48
66
  request: models.CreateSessionRequest,
@@ -79,6 +97,24 @@ class CarClient(AbstractClient):
79
97
 
80
98
  return await self.call_and_deserialize(**kwargs)
81
99
 
100
+ async def DescribeMCPTokens(
101
+ self,
102
+ request: models.DescribeMCPTokensRequest,
103
+ opts: Dict = None,
104
+ ) -> models.DescribeMCPTokensResponse:
105
+ """
106
+ 查询 MCP Token 列表
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "DescribeMCPTokens"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.DescribeMCPTokensResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
82
118
  async def DestroySession(
83
119
  self,
84
120
  request: models.DestroySessionRequest,
@@ -97,6 +133,24 @@ class CarClient(AbstractClient):
97
133
 
98
134
  return await self.call_and_deserialize(**kwargs)
99
135
 
136
+ async def RenewMCPToken(
137
+ self,
138
+ request: models.RenewMCPTokenRequest,
139
+ opts: Dict = None,
140
+ ) -> models.RenewMCPTokenResponse:
141
+ """
142
+ 续期 MCP Token(续期令牌)
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "RenewMCPToken"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.RenewMCPTokenResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
100
154
  async def StartPublishStream(
101
155
  self,
102
156
  request: models.StartPublishStreamRequest,
@@ -14,6 +14,12 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
+ # CAM签名/鉴权错误。
18
+ AUTHFAILURE = 'AuthFailure'
19
+
20
+ # 请求未授权。
21
+ AUTHFAILURE_UNAUTHORIZEDOPERATION = 'AuthFailure.UnauthorizedOperation'
22
+
17
23
  # 操作失败。
18
24
  FAILEDOPERATION = 'FailedOperation'
19
25
 
@@ -41,12 +47,24 @@ INVALIDPARAMETER_JSONPARSEERROR = 'InvalidParameter.JsonParseError'
41
47
  # 参数取值错误。
42
48
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
43
49
 
50
+ # MCP Token 数量超过配额限制。
51
+ LIMITEXCEEDED_MCPTOKEN = 'LimitExceeded.MCPToken'
52
+
44
53
  # 【多人互动】对应的角色人数超过限制。
45
54
  LIMITEXCEEDED_ROLE = 'LimitExceeded.Role'
46
55
 
56
+ # 缺少参数错误。
57
+ MISSINGPARAMETER = 'MissingParameter'
58
+
47
59
  # 操作被拒绝。
48
60
  OPERATIONDENIED = 'OperationDenied'
49
61
 
62
+ # 资源被占用。
63
+ RESOURCEINUSE = 'ResourceInUse'
64
+
65
+ # 资源不存在。
66
+ RESOURCENOTFOUND = 'ResourceNotFound'
67
+
50
68
  # 没有空闲并发。
51
69
  RESOURCENOTFOUND_NOIDLE = 'ResourceNotFound.NoIdle'
52
70
 
@@ -59,5 +77,8 @@ RESOURCEUNAVAILABLE_ACCESSFAILED = 'ResourceUnavailable.AccessFailed'
59
77
  # 初始化中。
60
78
  RESOURCEUNAVAILABLE_INITIALIZATION = 'ResourceUnavailable.Initialization'
61
79
 
80
+ # 操作不支持。
81
+ UNSUPPORTEDOPERATION = 'UnsupportedOperation'
82
+
62
83
  # 销毁会话中。
63
84
  UNSUPPORTEDOPERATION_STOPPING = 'UnsupportedOperation.Stopping'
@@ -142,6 +142,40 @@ class ApplyConcurrentResponse(AbstractModel):
142
142
  self._RequestId = params.get("RequestId")
143
143
 
144
144
 
145
+ class CreateMCPTokenRequest(AbstractModel):
146
+ r"""CreateMCPToken请求参数结构体
147
+
148
+ """
149
+
150
+
151
+ class CreateMCPTokenResponse(AbstractModel):
152
+ r"""CreateMCPToken返回参数结构体
153
+
154
+ """
155
+
156
+ def __init__(self):
157
+ r"""
158
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
159
+ :type RequestId: str
160
+ """
161
+ self._RequestId = None
162
+
163
+ @property
164
+ def RequestId(self):
165
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
166
+ :rtype: str
167
+ """
168
+ return self._RequestId
169
+
170
+ @RequestId.setter
171
+ def RequestId(self, RequestId):
172
+ self._RequestId = RequestId
173
+
174
+
175
+ def _deserialize(self, params):
176
+ self._RequestId = params.get("RequestId")
177
+
178
+
145
179
  class CreateSessionRequest(AbstractModel):
146
180
  r"""CreateSession请求参数结构体
147
181
 
@@ -444,6 +478,40 @@ class DescribeConcurrentCountResponse(AbstractModel):
444
478
  self._RequestId = params.get("RequestId")
445
479
 
446
480
 
481
+ class DescribeMCPTokensRequest(AbstractModel):
482
+ r"""DescribeMCPTokens请求参数结构体
483
+
484
+ """
485
+
486
+
487
+ class DescribeMCPTokensResponse(AbstractModel):
488
+ r"""DescribeMCPTokens返回参数结构体
489
+
490
+ """
491
+
492
+ def __init__(self):
493
+ r"""
494
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
495
+ :type RequestId: str
496
+ """
497
+ self._RequestId = None
498
+
499
+ @property
500
+ def RequestId(self):
501
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
502
+ :rtype: str
503
+ """
504
+ return self._RequestId
505
+
506
+ @RequestId.setter
507
+ def RequestId(self, RequestId):
508
+ self._RequestId = RequestId
509
+
510
+
511
+ def _deserialize(self, params):
512
+ self._RequestId = params.get("RequestId")
513
+
514
+
447
515
  class DestroySessionRequest(AbstractModel):
448
516
  r"""DestroySession请求参数结构体
449
517
 
@@ -508,6 +576,40 @@ class DestroySessionResponse(AbstractModel):
508
576
  self._RequestId = params.get("RequestId")
509
577
 
510
578
 
579
+ class RenewMCPTokenRequest(AbstractModel):
580
+ r"""RenewMCPToken请求参数结构体
581
+
582
+ """
583
+
584
+
585
+ class RenewMCPTokenResponse(AbstractModel):
586
+ r"""RenewMCPToken返回参数结构体
587
+
588
+ """
589
+
590
+ def __init__(self):
591
+ r"""
592
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
593
+ :type RequestId: str
594
+ """
595
+ self._RequestId = None
596
+
597
+ @property
598
+ def RequestId(self):
599
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
600
+ :rtype: str
601
+ """
602
+ return self._RequestId
603
+
604
+ @RequestId.setter
605
+ def RequestId(self, RequestId):
606
+ self._RequestId = RequestId
607
+
608
+
609
+ def _deserialize(self, params):
610
+ self._RequestId = params.get("RequestId")
611
+
612
+
511
613
  class StartPublishStreamRequest(AbstractModel):
512
614
  r"""StartPublishStream请求参数结构体
513
615
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-car
3
- Version: 3.1.29
3
+ Version: 3.1.208
4
4
  Summary: Tencent Cloud Car SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.29
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.208
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.208
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.29