tencentcloud-sdk-python-adp 3.1.197__tar.gz → 3.1.199__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.
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/setup.py +1 -1
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud/adp/v20260520/adp_client.py +23 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud/adp/v20260520/adp_client_async.py +18 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud/adp/v20260520/models.py +109 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud_sdk_python_adp.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_adp-3.1.199/tencentcloud_sdk_python_adp.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_adp-3.1.197/tencentcloud_sdk_python_adp.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/README.rst +0 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/setup.cfg +0 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud/adp/__init__.py +0 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud/adp/v20260520/__init__.py +0 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud/adp/v20260520/errorcodes.py +0 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud_sdk_python_adp.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud_sdk_python_adp.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_adp-3.1.197 → tencentcloud_sdk_python_adp-3.1.199}/tencentcloud_sdk_python_adp.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-adp
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.199
|
|
4
4
|
Summary: Tencent Cloud Adp 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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.199
|
|
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-adp',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.199,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Adp SDK for Python',
|
|
@@ -417,6 +417,29 @@ class AdpClient(AbstractClient):
|
|
|
417
417
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
418
|
|
|
419
419
|
|
|
420
|
+
def CreateSSEToken(self, request):
|
|
421
|
+
r"""创建 SSE Token
|
|
422
|
+
|
|
423
|
+
:param request: Request instance for CreateSSEToken.
|
|
424
|
+
:type request: :class:`tencentcloud.adp.v20260520.models.CreateSSETokenRequest`
|
|
425
|
+
:rtype: :class:`tencentcloud.adp.v20260520.models.CreateSSETokenResponse`
|
|
426
|
+
|
|
427
|
+
"""
|
|
428
|
+
try:
|
|
429
|
+
params = request._serialize()
|
|
430
|
+
headers = request.headers
|
|
431
|
+
body = self.call("CreateSSEToken", params, headers=headers)
|
|
432
|
+
response = json.loads(body)
|
|
433
|
+
model = models.CreateSSETokenResponse()
|
|
434
|
+
model._deserialize(response["Response"])
|
|
435
|
+
return model
|
|
436
|
+
except Exception as e:
|
|
437
|
+
if isinstance(e, TencentCloudSDKException):
|
|
438
|
+
raise
|
|
439
|
+
else:
|
|
440
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
441
|
+
|
|
442
|
+
|
|
420
443
|
def CreateSimilarQuestion(self, request):
|
|
421
444
|
r"""创建相似问生成任务
|
|
422
445
|
|
|
@@ -331,6 +331,24 @@ class AdpClient(AbstractClient):
|
|
|
331
331
|
|
|
332
332
|
return await self.call_and_deserialize(**kwargs)
|
|
333
333
|
|
|
334
|
+
async def CreateSSEToken(
|
|
335
|
+
self,
|
|
336
|
+
request: models.CreateSSETokenRequest,
|
|
337
|
+
opts: Dict = None,
|
|
338
|
+
) -> models.CreateSSETokenResponse:
|
|
339
|
+
"""
|
|
340
|
+
创建 SSE Token
|
|
341
|
+
"""
|
|
342
|
+
|
|
343
|
+
kwargs = {}
|
|
344
|
+
kwargs["action"] = "CreateSSEToken"
|
|
345
|
+
kwargs["params"] = request._serialize()
|
|
346
|
+
kwargs["resp_cls"] = models.CreateSSETokenResponse
|
|
347
|
+
kwargs["headers"] = request.headers
|
|
348
|
+
kwargs["opts"] = opts or {}
|
|
349
|
+
|
|
350
|
+
return await self.call_and_deserialize(**kwargs)
|
|
351
|
+
|
|
334
352
|
async def CreateSimilarQuestion(
|
|
335
353
|
self,
|
|
336
354
|
request: models.CreateSimilarQuestionRequest,
|
|
@@ -14216,6 +14216,115 @@ class CreateReleaseResponse(AbstractModel):
|
|
|
14216
14216
|
self._RequestId = params.get("RequestId")
|
|
14217
14217
|
|
|
14218
14218
|
|
|
14219
|
+
class CreateSSETokenRequest(AbstractModel):
|
|
14220
|
+
r"""CreateSSEToken请求参数结构体
|
|
14221
|
+
|
|
14222
|
+
"""
|
|
14223
|
+
|
|
14224
|
+
def __init__(self):
|
|
14225
|
+
r"""
|
|
14226
|
+
:param _LoginUin: <p>主用户Uin</p>
|
|
14227
|
+
:type LoginUin: str
|
|
14228
|
+
:param _LoginSubAccountUin: <p>子用户Uin</p>
|
|
14229
|
+
:type LoginSubAccountUin: str
|
|
14230
|
+
:param _AppId: <p>应用ID</p>
|
|
14231
|
+
:type AppId: str
|
|
14232
|
+
"""
|
|
14233
|
+
self._LoginUin = None
|
|
14234
|
+
self._LoginSubAccountUin = None
|
|
14235
|
+
self._AppId = None
|
|
14236
|
+
|
|
14237
|
+
@property
|
|
14238
|
+
def LoginUin(self):
|
|
14239
|
+
r"""<p>主用户Uin</p>
|
|
14240
|
+
:rtype: str
|
|
14241
|
+
"""
|
|
14242
|
+
return self._LoginUin
|
|
14243
|
+
|
|
14244
|
+
@LoginUin.setter
|
|
14245
|
+
def LoginUin(self, LoginUin):
|
|
14246
|
+
self._LoginUin = LoginUin
|
|
14247
|
+
|
|
14248
|
+
@property
|
|
14249
|
+
def LoginSubAccountUin(self):
|
|
14250
|
+
r"""<p>子用户Uin</p>
|
|
14251
|
+
:rtype: str
|
|
14252
|
+
"""
|
|
14253
|
+
return self._LoginSubAccountUin
|
|
14254
|
+
|
|
14255
|
+
@LoginSubAccountUin.setter
|
|
14256
|
+
def LoginSubAccountUin(self, LoginSubAccountUin):
|
|
14257
|
+
self._LoginSubAccountUin = LoginSubAccountUin
|
|
14258
|
+
|
|
14259
|
+
@property
|
|
14260
|
+
def AppId(self):
|
|
14261
|
+
r"""<p>应用ID</p>
|
|
14262
|
+
:rtype: str
|
|
14263
|
+
"""
|
|
14264
|
+
return self._AppId
|
|
14265
|
+
|
|
14266
|
+
@AppId.setter
|
|
14267
|
+
def AppId(self, AppId):
|
|
14268
|
+
self._AppId = AppId
|
|
14269
|
+
|
|
14270
|
+
|
|
14271
|
+
def _deserialize(self, params):
|
|
14272
|
+
self._LoginUin = params.get("LoginUin")
|
|
14273
|
+
self._LoginSubAccountUin = params.get("LoginSubAccountUin")
|
|
14274
|
+
self._AppId = params.get("AppId")
|
|
14275
|
+
memeber_set = set(params.keys())
|
|
14276
|
+
for name, value in vars(self).items():
|
|
14277
|
+
property_name = name[1:]
|
|
14278
|
+
if property_name in memeber_set:
|
|
14279
|
+
memeber_set.remove(property_name)
|
|
14280
|
+
if len(memeber_set) > 0:
|
|
14281
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14282
|
+
|
|
14283
|
+
|
|
14284
|
+
|
|
14285
|
+
class CreateSSETokenResponse(AbstractModel):
|
|
14286
|
+
r"""CreateSSEToken返回参数结构体
|
|
14287
|
+
|
|
14288
|
+
"""
|
|
14289
|
+
|
|
14290
|
+
def __init__(self):
|
|
14291
|
+
r"""
|
|
14292
|
+
:param _Token: <p>SSE 鉴权 Token</p>
|
|
14293
|
+
:type Token: str
|
|
14294
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14295
|
+
:type RequestId: str
|
|
14296
|
+
"""
|
|
14297
|
+
self._Token = None
|
|
14298
|
+
self._RequestId = None
|
|
14299
|
+
|
|
14300
|
+
@property
|
|
14301
|
+
def Token(self):
|
|
14302
|
+
r"""<p>SSE 鉴权 Token</p>
|
|
14303
|
+
:rtype: str
|
|
14304
|
+
"""
|
|
14305
|
+
return self._Token
|
|
14306
|
+
|
|
14307
|
+
@Token.setter
|
|
14308
|
+
def Token(self, Token):
|
|
14309
|
+
self._Token = Token
|
|
14310
|
+
|
|
14311
|
+
@property
|
|
14312
|
+
def RequestId(self):
|
|
14313
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14314
|
+
:rtype: str
|
|
14315
|
+
"""
|
|
14316
|
+
return self._RequestId
|
|
14317
|
+
|
|
14318
|
+
@RequestId.setter
|
|
14319
|
+
def RequestId(self, RequestId):
|
|
14320
|
+
self._RequestId = RequestId
|
|
14321
|
+
|
|
14322
|
+
|
|
14323
|
+
def _deserialize(self, params):
|
|
14324
|
+
self._Token = params.get("Token")
|
|
14325
|
+
self._RequestId = params.get("RequestId")
|
|
14326
|
+
|
|
14327
|
+
|
|
14219
14328
|
class CreateSimilarQuestionRequest(AbstractModel):
|
|
14220
14329
|
r"""CreateSimilarQuestion请求参数结构体
|
|
14221
14330
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-adp
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.199
|
|
4
4
|
Summary: Tencent Cloud Adp 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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.199
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.199
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.197
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|