tencentcloud-sdk-python-tokenhub 3.1.157__tar.gz → 3.1.160__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_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/setup.py +1 -1
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud/tokenhub/v20260322/errorcodes.py +3 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud/tokenhub/v20260322/models.py +34 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud/tokenhub/v20260322/tokenhub_client.py +23 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud/tokenhub/v20260322/tokenhub_client_async.py +18 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud_sdk_python_tokenhub.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tokenhub-3.1.160/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tokenhub-3.1.157/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/README.rst +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud/tokenhub/__init__.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud/tokenhub/v20260322/__init__.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud_sdk_python_tokenhub.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud_sdk_python_tokenhub.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/tencentcloud_sdk_python_tokenhub.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tokenhub
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.160
|
|
4
4
|
Summary: Tencent Cloud Tokenhub 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.160
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-tokenhub',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.160,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tokenhub SDK for Python',
|
|
@@ -134,6 +134,9 @@ RESOURCENOTFOUND_ENDPOINTNOTFOUND = 'ResourceNotFound.EndpointNotFound'
|
|
|
134
134
|
# ResourceNotFound.GlossaryNotFound
|
|
135
135
|
RESOURCENOTFOUND_GLOSSARYNOTFOUND = 'ResourceNotFound.GlossaryNotFound'
|
|
136
136
|
|
|
137
|
+
# ResourceNotFound.ModelNotFound
|
|
138
|
+
RESOURCENOTFOUND_MODELNOTFOUND = 'ResourceNotFound.ModelNotFound'
|
|
139
|
+
|
|
137
140
|
# ResourceNotFound.ResourceNotFound
|
|
138
141
|
RESOURCENOTFOUND_RESOURCENOTFOUND = 'ResourceNotFound.ResourceNotFound'
|
|
139
142
|
|
|
@@ -3152,6 +3152,40 @@ class DescribeModelListResponse(AbstractModel):
|
|
|
3152
3152
|
self._RequestId = params.get("RequestId")
|
|
3153
3153
|
|
|
3154
3154
|
|
|
3155
|
+
class DescribeModelQuotaRequest(AbstractModel):
|
|
3156
|
+
r"""DescribeModelQuota请求参数结构体
|
|
3157
|
+
|
|
3158
|
+
"""
|
|
3159
|
+
|
|
3160
|
+
|
|
3161
|
+
class DescribeModelQuotaResponse(AbstractModel):
|
|
3162
|
+
r"""DescribeModelQuota返回参数结构体
|
|
3163
|
+
|
|
3164
|
+
"""
|
|
3165
|
+
|
|
3166
|
+
def __init__(self):
|
|
3167
|
+
r"""
|
|
3168
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3169
|
+
:type RequestId: str
|
|
3170
|
+
"""
|
|
3171
|
+
self._RequestId = None
|
|
3172
|
+
|
|
3173
|
+
@property
|
|
3174
|
+
def RequestId(self):
|
|
3175
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3176
|
+
:rtype: str
|
|
3177
|
+
"""
|
|
3178
|
+
return self._RequestId
|
|
3179
|
+
|
|
3180
|
+
@RequestId.setter
|
|
3181
|
+
def RequestId(self, RequestId):
|
|
3182
|
+
self._RequestId = RequestId
|
|
3183
|
+
|
|
3184
|
+
|
|
3185
|
+
def _deserialize(self, params):
|
|
3186
|
+
self._RequestId = params.get("RequestId")
|
|
3187
|
+
|
|
3188
|
+
|
|
3155
3189
|
class DescribeTokenPlanApiKeyListRequest(AbstractModel):
|
|
3156
3190
|
r"""DescribeTokenPlanApiKeyList请求参数结构体
|
|
3157
3191
|
|
|
@@ -473,6 +473,29 @@ class TokenhubClient(AbstractClient):
|
|
|
473
473
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
474
474
|
|
|
475
475
|
|
|
476
|
+
def DescribeModelQuota(self, request):
|
|
477
|
+
r"""查询指定模型的 TPM 和 QPM 配额上限。
|
|
478
|
+
|
|
479
|
+
:param request: Request instance for DescribeModelQuota.
|
|
480
|
+
:type request: :class:`tencentcloud.tokenhub.v20260322.models.DescribeModelQuotaRequest`
|
|
481
|
+
:rtype: :class:`tencentcloud.tokenhub.v20260322.models.DescribeModelQuotaResponse`
|
|
482
|
+
|
|
483
|
+
"""
|
|
484
|
+
try:
|
|
485
|
+
params = request._serialize()
|
|
486
|
+
headers = request.headers
|
|
487
|
+
body = self.call("DescribeModelQuota", params, headers=headers)
|
|
488
|
+
response = json.loads(body)
|
|
489
|
+
model = models.DescribeModelQuotaResponse()
|
|
490
|
+
model._deserialize(response["Response"])
|
|
491
|
+
return model
|
|
492
|
+
except Exception as e:
|
|
493
|
+
if isinstance(e, TencentCloudSDKException):
|
|
494
|
+
raise
|
|
495
|
+
else:
|
|
496
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
497
|
+
|
|
498
|
+
|
|
476
499
|
def DescribeTokenPlan(self, request):
|
|
477
500
|
r"""查询 TokenPlan 套餐详情。
|
|
478
501
|
|
|
@@ -382,6 +382,24 @@ class TokenhubClient(AbstractClient):
|
|
|
382
382
|
|
|
383
383
|
return await self.call_and_deserialize(**kwargs)
|
|
384
384
|
|
|
385
|
+
async def DescribeModelQuota(
|
|
386
|
+
self,
|
|
387
|
+
request: models.DescribeModelQuotaRequest,
|
|
388
|
+
opts: Dict = None,
|
|
389
|
+
) -> models.DescribeModelQuotaResponse:
|
|
390
|
+
"""
|
|
391
|
+
查询指定模型的 TPM 和 QPM 配额上限。
|
|
392
|
+
"""
|
|
393
|
+
|
|
394
|
+
kwargs = {}
|
|
395
|
+
kwargs["action"] = "DescribeModelQuota"
|
|
396
|
+
kwargs["params"] = request._serialize()
|
|
397
|
+
kwargs["resp_cls"] = models.DescribeModelQuotaResponse
|
|
398
|
+
kwargs["headers"] = request.headers
|
|
399
|
+
kwargs["opts"] = opts or {}
|
|
400
|
+
|
|
401
|
+
return await self.call_and_deserialize(**kwargs)
|
|
402
|
+
|
|
385
403
|
async def DescribeTokenPlan(
|
|
386
404
|
self,
|
|
387
405
|
request: models.DescribeTokenPlanRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tokenhub
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.160
|
|
4
4
|
Summary: Tencent Cloud Tokenhub 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.160
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
tencentcloud_sdk_python_tokenhub-3.1.160/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.160
|
tencentcloud_sdk_python_tokenhub-3.1.157/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.157
|
{tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_tokenhub-3.1.157 → tencentcloud_sdk_python_tokenhub-3.1.160}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|