tencentcloud-sdk-python-tokenhub 3.1.177__py2.py3-none-any.whl → 3.1.205__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/tokenhub/v20260322/models.py +114 -0
- tencentcloud/tokenhub/v20260322/tokenhub_client.py +25 -0
- tencentcloud/tokenhub/v20260322/tokenhub_client_async.py +20 -0
- {tencentcloud_sdk_python_tokenhub-3.1.177.dist-info → tencentcloud_sdk_python_tokenhub-3.1.205.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_tokenhub-3.1.205.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_tokenhub-3.1.177.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_tokenhub-3.1.177.dist-info → tencentcloud_sdk_python_tokenhub-3.1.205.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.177.dist-info → tencentcloud_sdk_python_tokenhub-3.1.205.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -6553,6 +6553,120 @@ class ModelSpec(AbstractModel):
|
|
|
6553
6553
|
|
|
6554
6554
|
|
|
6555
6555
|
|
|
6556
|
+
class ModifyApiKeyBindingsRequest(AbstractModel):
|
|
6557
|
+
r"""ModifyApiKeyBindings请求参数结构体
|
|
6558
|
+
|
|
6559
|
+
"""
|
|
6560
|
+
|
|
6561
|
+
def __init__(self):
|
|
6562
|
+
r"""
|
|
6563
|
+
:param _ApiKeyId: <p>API 密钥 ID。</p>
|
|
6564
|
+
:type ApiKeyId: str
|
|
6565
|
+
:param _Platform: <p>平台类型。取值:maas。</p>
|
|
6566
|
+
:type Platform: str
|
|
6567
|
+
:param _BindType: <p>绑定类型。取值:all(全部模型和接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。</p><p>枚举值:</p><ul><li>model_custom_endpoint_custom: 自定义模型+自定义接入点</li></ul>
|
|
6568
|
+
:type BindType: str
|
|
6569
|
+
:param _Bindings: <p>修改后的apikey的模型或服务绑定列表</p>
|
|
6570
|
+
:type Bindings: list of BindingItem
|
|
6571
|
+
"""
|
|
6572
|
+
self._ApiKeyId = None
|
|
6573
|
+
self._Platform = None
|
|
6574
|
+
self._BindType = None
|
|
6575
|
+
self._Bindings = None
|
|
6576
|
+
|
|
6577
|
+
@property
|
|
6578
|
+
def ApiKeyId(self):
|
|
6579
|
+
r"""<p>API 密钥 ID。</p>
|
|
6580
|
+
:rtype: str
|
|
6581
|
+
"""
|
|
6582
|
+
return self._ApiKeyId
|
|
6583
|
+
|
|
6584
|
+
@ApiKeyId.setter
|
|
6585
|
+
def ApiKeyId(self, ApiKeyId):
|
|
6586
|
+
self._ApiKeyId = ApiKeyId
|
|
6587
|
+
|
|
6588
|
+
@property
|
|
6589
|
+
def Platform(self):
|
|
6590
|
+
r"""<p>平台类型。取值:maas。</p>
|
|
6591
|
+
:rtype: str
|
|
6592
|
+
"""
|
|
6593
|
+
return self._Platform
|
|
6594
|
+
|
|
6595
|
+
@Platform.setter
|
|
6596
|
+
def Platform(self, Platform):
|
|
6597
|
+
self._Platform = Platform
|
|
6598
|
+
|
|
6599
|
+
@property
|
|
6600
|
+
def BindType(self):
|
|
6601
|
+
r"""<p>绑定类型。取值:all(全部模型和接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。</p><p>枚举值:</p><ul><li>model_custom_endpoint_custom: 自定义模型+自定义接入点</li></ul>
|
|
6602
|
+
:rtype: str
|
|
6603
|
+
"""
|
|
6604
|
+
return self._BindType
|
|
6605
|
+
|
|
6606
|
+
@BindType.setter
|
|
6607
|
+
def BindType(self, BindType):
|
|
6608
|
+
self._BindType = BindType
|
|
6609
|
+
|
|
6610
|
+
@property
|
|
6611
|
+
def Bindings(self):
|
|
6612
|
+
r"""<p>修改后的apikey的模型或服务绑定列表</p>
|
|
6613
|
+
:rtype: list of BindingItem
|
|
6614
|
+
"""
|
|
6615
|
+
return self._Bindings
|
|
6616
|
+
|
|
6617
|
+
@Bindings.setter
|
|
6618
|
+
def Bindings(self, Bindings):
|
|
6619
|
+
self._Bindings = Bindings
|
|
6620
|
+
|
|
6621
|
+
|
|
6622
|
+
def _deserialize(self, params):
|
|
6623
|
+
self._ApiKeyId = params.get("ApiKeyId")
|
|
6624
|
+
self._Platform = params.get("Platform")
|
|
6625
|
+
self._BindType = params.get("BindType")
|
|
6626
|
+
if params.get("Bindings") is not None:
|
|
6627
|
+
self._Bindings = []
|
|
6628
|
+
for item in params.get("Bindings"):
|
|
6629
|
+
obj = BindingItem()
|
|
6630
|
+
obj._deserialize(item)
|
|
6631
|
+
self._Bindings.append(obj)
|
|
6632
|
+
memeber_set = set(params.keys())
|
|
6633
|
+
for name, value in vars(self).items():
|
|
6634
|
+
property_name = name[1:]
|
|
6635
|
+
if property_name in memeber_set:
|
|
6636
|
+
memeber_set.remove(property_name)
|
|
6637
|
+
if len(memeber_set) > 0:
|
|
6638
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6639
|
+
|
|
6640
|
+
|
|
6641
|
+
|
|
6642
|
+
class ModifyApiKeyBindingsResponse(AbstractModel):
|
|
6643
|
+
r"""ModifyApiKeyBindings返回参数结构体
|
|
6644
|
+
|
|
6645
|
+
"""
|
|
6646
|
+
|
|
6647
|
+
def __init__(self):
|
|
6648
|
+
r"""
|
|
6649
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6650
|
+
:type RequestId: str
|
|
6651
|
+
"""
|
|
6652
|
+
self._RequestId = None
|
|
6653
|
+
|
|
6654
|
+
@property
|
|
6655
|
+
def RequestId(self):
|
|
6656
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6657
|
+
:rtype: str
|
|
6658
|
+
"""
|
|
6659
|
+
return self._RequestId
|
|
6660
|
+
|
|
6661
|
+
@RequestId.setter
|
|
6662
|
+
def RequestId(self, RequestId):
|
|
6663
|
+
self._RequestId = RequestId
|
|
6664
|
+
|
|
6665
|
+
|
|
6666
|
+
def _deserialize(self, params):
|
|
6667
|
+
self._RequestId = params.get("RequestId")
|
|
6668
|
+
|
|
6669
|
+
|
|
6556
6670
|
class ModifyApiKeyInfoRequest(AbstractModel):
|
|
6557
6671
|
r"""ModifyApiKeyInfo请求参数结构体
|
|
6558
6672
|
|
|
@@ -683,6 +683,31 @@ class TokenhubClient(AbstractClient):
|
|
|
683
683
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
684
684
|
|
|
685
685
|
|
|
686
|
+
def ModifyApiKeyBindings(self, request):
|
|
687
|
+
r"""更新 API 密钥绑定。
|
|
688
|
+
|
|
689
|
+
更新 API 密钥的绑定关系和绑定类型。BindType 为 all 时 Bindings 必须为空,BindType含 custom 时 Bindings 为绑定列表。
|
|
690
|
+
|
|
691
|
+
:param request: Request instance for ModifyApiKeyBindings.
|
|
692
|
+
:type request: :class:`tencentcloud.tokenhub.v20260322.models.ModifyApiKeyBindingsRequest`
|
|
693
|
+
:rtype: :class:`tencentcloud.tokenhub.v20260322.models.ModifyApiKeyBindingsResponse`
|
|
694
|
+
|
|
695
|
+
"""
|
|
696
|
+
try:
|
|
697
|
+
params = request._serialize()
|
|
698
|
+
headers = request.headers
|
|
699
|
+
body = self.call("ModifyApiKeyBindings", params, headers=headers)
|
|
700
|
+
response = json.loads(body)
|
|
701
|
+
model = models.ModifyApiKeyBindingsResponse()
|
|
702
|
+
model._deserialize(response["Response"])
|
|
703
|
+
return model
|
|
704
|
+
except Exception as e:
|
|
705
|
+
if isinstance(e, TencentCloudSDKException):
|
|
706
|
+
raise
|
|
707
|
+
else:
|
|
708
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
709
|
+
|
|
710
|
+
|
|
686
711
|
def ModifyApiKeyInfo(self, request):
|
|
687
712
|
r"""更新 API 密钥信息。
|
|
688
713
|
|
|
@@ -552,6 +552,26 @@ class TokenhubClient(AbstractClient):
|
|
|
552
552
|
|
|
553
553
|
return await self.call_and_deserialize(**kwargs)
|
|
554
554
|
|
|
555
|
+
async def ModifyApiKeyBindings(
|
|
556
|
+
self,
|
|
557
|
+
request: models.ModifyApiKeyBindingsRequest,
|
|
558
|
+
opts: Dict = None,
|
|
559
|
+
) -> models.ModifyApiKeyBindingsResponse:
|
|
560
|
+
"""
|
|
561
|
+
更新 API 密钥绑定。
|
|
562
|
+
|
|
563
|
+
更新 API 密钥的绑定关系和绑定类型。BindType 为 all 时 Bindings 必须为空,BindType含 custom 时 Bindings 为绑定列表。
|
|
564
|
+
"""
|
|
565
|
+
|
|
566
|
+
kwargs = {}
|
|
567
|
+
kwargs["action"] = "ModifyApiKeyBindings"
|
|
568
|
+
kwargs["params"] = request._serialize()
|
|
569
|
+
kwargs["resp_cls"] = models.ModifyApiKeyBindingsResponse
|
|
570
|
+
kwargs["headers"] = request.headers
|
|
571
|
+
kwargs["opts"] = opts or {}
|
|
572
|
+
|
|
573
|
+
return await self.call_and_deserialize(**kwargs)
|
|
574
|
+
|
|
555
575
|
async def ModifyApiKeyInfo(
|
|
556
576
|
self,
|
|
557
577
|
request: models.ModifyApiKeyInfoRequest,
|
|
@@ -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.205
|
|
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.205
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=aisXuvVz8-xZ1rwMQjGx8uh3qhHgjdp1v9KtQxSFpH0,630
|
|
2
|
+
tencentcloud/tokenhub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/tokenhub/v20260322/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/tokenhub/v20260322/errorcodes.py,sha256=PbXuAwOFyrrqNktUv8iAHg_58Cr07sMxORM3XD1ubIA,5205
|
|
5
|
+
tencentcloud/tokenhub/v20260322/models.py,sha256=z1ocFON91Jn7C0eRwyQEs7j9rdHnuD-2gXpuQynix2k,323034
|
|
6
|
+
tencentcloud/tokenhub/v20260322/tokenhub_client.py,sha256=0KPbo6zIRxoVRzFsHJOAMLsk-YarIdgfE0Y-MO-XjPk,38931
|
|
7
|
+
tencentcloud/tokenhub/v20260322/tokenhub_client_async.py,sha256=lTQg0izdRrv4Rsq8NhD3Ana2LTIpfno-10sW1eKsWCc,27926
|
|
8
|
+
tencentcloud_sdk_python_tokenhub-3.1.205.dist-info/METADATA,sha256=AS5IbSbN0av0PXhwI71s6WUcI7lSZt6bOeraaZkQ0fY,1522
|
|
9
|
+
tencentcloud_sdk_python_tokenhub-3.1.205.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_tokenhub-3.1.205.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_tokenhub-3.1.205.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=WVkBUqHrfZXNHoBIQ-1nccICLT2I44hMAEF2B971pfQ,630
|
|
2
|
-
tencentcloud/tokenhub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/tokenhub/v20260322/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/tokenhub/v20260322/errorcodes.py,sha256=PbXuAwOFyrrqNktUv8iAHg_58Cr07sMxORM3XD1ubIA,5205
|
|
5
|
-
tencentcloud/tokenhub/v20260322/models.py,sha256=heiDsrhwNmPIbWaDGENL3I6iPA76keupWuF1El3pCtc,319233
|
|
6
|
-
tencentcloud/tokenhub/v20260322/tokenhub_client.py,sha256=Tux46r-MfvhTpD8b-7kulQqiGYs5QP6fU5kBbRRua5Y,37870
|
|
7
|
-
tencentcloud/tokenhub/v20260322/tokenhub_client_async.py,sha256=UoTz1FLg8-TAvoFf4jX8CEErCcKzPsWZ-6yL4-OH0FA,27177
|
|
8
|
-
tencentcloud_sdk_python_tokenhub-3.1.177.dist-info/METADATA,sha256=QLn6bX62Ro9KLYN1_7BAs7ETpgW0viWaycBBeDHI44E,1522
|
|
9
|
-
tencentcloud_sdk_python_tokenhub-3.1.177.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_tokenhub-3.1.177.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_tokenhub-3.1.177.dist-info/RECORD,,
|
|
File without changes
|