tencentcloud-sdk-python-tokenhub 3.1.177__tar.gz → 3.1.205__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_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud/tokenhub/v20260322/models.py +114 -0
  5. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud/tokenhub/v20260322/tokenhub_client.py +25 -0
  6. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud/tokenhub/v20260322/tokenhub_client_async.py +20 -0
  7. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud_sdk_python_tokenhub.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_tokenhub-3.1.205/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_tokenhub-3.1.177/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud/tokenhub/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud/tokenhub/v20260322/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud/tokenhub/v20260322/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud_sdk_python_tokenhub.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud_sdk_python_tokenhub.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tokenhub-3.1.177 → tencentcloud_sdk_python_tokenhub-3.1.205}/tencentcloud_sdk_python_tokenhub.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tokenhub
3
- Version: 3.1.177
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.177
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.205
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-tokenhub',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.177,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.205,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tokenhub SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.177'
17
+ __version__ = '3.1.205'
@@ -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.177
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.177
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 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.205
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.177