tencentcloud-sdk-python-tokenhub 3.1.115__tar.gz → 3.1.118__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.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud/tokenhub/v20260322/models.py +196 -0
  5. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud_sdk_python_tokenhub.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_tokenhub-3.1.118/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_tokenhub-3.1.115/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/README.rst +0 -0
  9. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud/tokenhub/__init__.py +0 -0
  11. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud/tokenhub/v20260322/__init__.py +0 -0
  12. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud/tokenhub/v20260322/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud/tokenhub/v20260322/tokenhub_client.py +0 -0
  14. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud/tokenhub/v20260322/tokenhub_client_async.py +0 -0
  15. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud_sdk_python_tokenhub.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/tencentcloud_sdk_python_tokenhub.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tokenhub-3.1.115 → tencentcloud_sdk_python_tokenhub-3.1.118}/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.115
3
+ Version: 3.1.118
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.115
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.118
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.115,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.118,<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.115'
17
+ __version__ = '3.1.118'
@@ -57,6 +57,10 @@ class ApiKeyDetail(AbstractModel):
57
57
  :type IpWhitelist: list of str
58
58
  :param _Creator: 当Platform为maas时该字段为空
59
59
  :type Creator: str
60
+ :param _QuotaSet: Token 限额信息多维度列表。未配置限额时不返回该字段。
61
+ :type QuotaSet: list of QuotaInfo
62
+ :param _QuotaStatus: Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
63
+ :type QuotaStatus: str
60
64
  """
61
65
  self._ApiKeyId = None
62
66
  self._Name = None
@@ -74,6 +78,8 @@ class ApiKeyDetail(AbstractModel):
74
78
  self._BindingItems = None
75
79
  self._IpWhitelist = None
76
80
  self._Creator = None
81
+ self._QuotaSet = None
82
+ self._QuotaStatus = None
77
83
 
78
84
  @property
79
85
  def ApiKeyId(self):
@@ -251,6 +257,28 @@ class ApiKeyDetail(AbstractModel):
251
257
  def Creator(self, Creator):
252
258
  self._Creator = Creator
253
259
 
260
+ @property
261
+ def QuotaSet(self):
262
+ r"""Token 限额信息多维度列表。未配置限额时不返回该字段。
263
+ :rtype: list of QuotaInfo
264
+ """
265
+ return self._QuotaSet
266
+
267
+ @QuotaSet.setter
268
+ def QuotaSet(self, QuotaSet):
269
+ self._QuotaSet = QuotaSet
270
+
271
+ @property
272
+ def QuotaStatus(self):
273
+ r"""Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
274
+ :rtype: str
275
+ """
276
+ return self._QuotaStatus
277
+
278
+ @QuotaStatus.setter
279
+ def QuotaStatus(self, QuotaStatus):
280
+ self._QuotaStatus = QuotaStatus
281
+
254
282
 
255
283
  def _deserialize(self, params):
256
284
  self._ApiKeyId = params.get("ApiKeyId")
@@ -274,6 +302,13 @@ class ApiKeyDetail(AbstractModel):
274
302
  self._BindingItems.append(obj)
275
303
  self._IpWhitelist = params.get("IpWhitelist")
276
304
  self._Creator = params.get("Creator")
305
+ if params.get("QuotaSet") is not None:
306
+ self._QuotaSet = []
307
+ for item in params.get("QuotaSet"):
308
+ obj = QuotaInfo()
309
+ obj._deserialize(item)
310
+ self._QuotaSet.append(obj)
311
+ self._QuotaStatus = params.get("QuotaStatus")
277
312
  memeber_set = set(params.keys())
278
313
  for name, value in vars(self).items():
279
314
  property_name = name[1:]
@@ -1573,6 +1608,10 @@ class DescribeApiKeyResponse(AbstractModel):
1573
1608
  :type IpWhitelist: list of str
1574
1609
  :param _Creator: 当Platform为maas时该字段为空
1575
1610
  :type Creator: str
1611
+ :param _QuotaSet: Token 限额多维度信息。未配置限额时不返回该字段。
1612
+ :type QuotaSet: list of QuotaInfo
1613
+ :param _QuotaStatus: Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
1614
+ :type QuotaStatus: str
1576
1615
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1577
1616
  :type RequestId: str
1578
1617
  """
@@ -1592,6 +1631,8 @@ class DescribeApiKeyResponse(AbstractModel):
1592
1631
  self._BindingItems = None
1593
1632
  self._IpWhitelist = None
1594
1633
  self._Creator = None
1634
+ self._QuotaSet = None
1635
+ self._QuotaStatus = None
1595
1636
  self._RequestId = None
1596
1637
 
1597
1638
  @property
@@ -1770,6 +1811,28 @@ class DescribeApiKeyResponse(AbstractModel):
1770
1811
  def Creator(self, Creator):
1771
1812
  self._Creator = Creator
1772
1813
 
1814
+ @property
1815
+ def QuotaSet(self):
1816
+ r"""Token 限额多维度信息。未配置限额时不返回该字段。
1817
+ :rtype: list of QuotaInfo
1818
+ """
1819
+ return self._QuotaSet
1820
+
1821
+ @QuotaSet.setter
1822
+ def QuotaSet(self, QuotaSet):
1823
+ self._QuotaSet = QuotaSet
1824
+
1825
+ @property
1826
+ def QuotaStatus(self):
1827
+ r"""Token 限额状态。空字符串表示未配置任何限额包;active 表示已配置且当前可用;inactive 表示已配置但额度耗尽
1828
+ :rtype: str
1829
+ """
1830
+ return self._QuotaStatus
1831
+
1832
+ @QuotaStatus.setter
1833
+ def QuotaStatus(self, QuotaStatus):
1834
+ self._QuotaStatus = QuotaStatus
1835
+
1773
1836
  @property
1774
1837
  def RequestId(self):
1775
1838
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -1804,6 +1867,13 @@ class DescribeApiKeyResponse(AbstractModel):
1804
1867
  self._BindingItems.append(obj)
1805
1868
  self._IpWhitelist = params.get("IpWhitelist")
1806
1869
  self._Creator = params.get("Creator")
1870
+ if params.get("QuotaSet") is not None:
1871
+ self._QuotaSet = []
1872
+ for item in params.get("QuotaSet"):
1873
+ obj = QuotaInfo()
1874
+ obj._deserialize(item)
1875
+ self._QuotaSet.append(obj)
1876
+ self._QuotaStatus = params.get("QuotaStatus")
1807
1877
  self._RequestId = params.get("RequestId")
1808
1878
 
1809
1879
 
@@ -4335,6 +4405,132 @@ class ModifyTokenPlanApiKeySecretResponse(AbstractModel):
4335
4405
  self._RequestId = params.get("RequestId")
4336
4406
 
4337
4407
 
4408
+ class QuotaInfo(AbstractModel):
4409
+ r"""Token 限额信息
4410
+
4411
+ """
4412
+
4413
+ def __init__(self):
4414
+ r"""
4415
+ :param _PkgId: 限额包 ID。
4416
+ :type PkgId: str
4417
+ :param _Status: 限额包状态。取值:1(正常)、3(已耗尽)、4(已销毁)。
4418
+ :type Status: int
4419
+ :param _CycleUnit: 限额周期。取值:d(按日)、m(按月)、lifetime(总额度,不重置)。
4420
+ :type CycleUnit: str
4421
+ :param _CycleCredits: 维度当期限额总量(Token 数)。使用字符串避免大数精度丢失。
4422
+ :type CycleCredits: str
4423
+ :param _CycleUsed: 维度当期已使用量(Token 数)。使用字符串避免大数精度丢失。
4424
+ :type CycleUsed: str
4425
+ :param _StartTime: 限额生效起始时间。
4426
+ :type StartTime: str
4427
+ :param _ExpireTime: 限额过期时间。
4428
+ :type ExpireTime: str
4429
+ """
4430
+ self._PkgId = None
4431
+ self._Status = None
4432
+ self._CycleUnit = None
4433
+ self._CycleCredits = None
4434
+ self._CycleUsed = None
4435
+ self._StartTime = None
4436
+ self._ExpireTime = None
4437
+
4438
+ @property
4439
+ def PkgId(self):
4440
+ r"""限额包 ID。
4441
+ :rtype: str
4442
+ """
4443
+ return self._PkgId
4444
+
4445
+ @PkgId.setter
4446
+ def PkgId(self, PkgId):
4447
+ self._PkgId = PkgId
4448
+
4449
+ @property
4450
+ def Status(self):
4451
+ r"""限额包状态。取值:1(正常)、3(已耗尽)、4(已销毁)。
4452
+ :rtype: int
4453
+ """
4454
+ return self._Status
4455
+
4456
+ @Status.setter
4457
+ def Status(self, Status):
4458
+ self._Status = Status
4459
+
4460
+ @property
4461
+ def CycleUnit(self):
4462
+ r"""限额周期。取值:d(按日)、m(按月)、lifetime(总额度,不重置)。
4463
+ :rtype: str
4464
+ """
4465
+ return self._CycleUnit
4466
+
4467
+ @CycleUnit.setter
4468
+ def CycleUnit(self, CycleUnit):
4469
+ self._CycleUnit = CycleUnit
4470
+
4471
+ @property
4472
+ def CycleCredits(self):
4473
+ r"""维度当期限额总量(Token 数)。使用字符串避免大数精度丢失。
4474
+ :rtype: str
4475
+ """
4476
+ return self._CycleCredits
4477
+
4478
+ @CycleCredits.setter
4479
+ def CycleCredits(self, CycleCredits):
4480
+ self._CycleCredits = CycleCredits
4481
+
4482
+ @property
4483
+ def CycleUsed(self):
4484
+ r"""维度当期已使用量(Token 数)。使用字符串避免大数精度丢失。
4485
+ :rtype: str
4486
+ """
4487
+ return self._CycleUsed
4488
+
4489
+ @CycleUsed.setter
4490
+ def CycleUsed(self, CycleUsed):
4491
+ self._CycleUsed = CycleUsed
4492
+
4493
+ @property
4494
+ def StartTime(self):
4495
+ r"""限额生效起始时间。
4496
+ :rtype: str
4497
+ """
4498
+ return self._StartTime
4499
+
4500
+ @StartTime.setter
4501
+ def StartTime(self, StartTime):
4502
+ self._StartTime = StartTime
4503
+
4504
+ @property
4505
+ def ExpireTime(self):
4506
+ r"""限额过期时间。
4507
+ :rtype: str
4508
+ """
4509
+ return self._ExpireTime
4510
+
4511
+ @ExpireTime.setter
4512
+ def ExpireTime(self, ExpireTime):
4513
+ self._ExpireTime = ExpireTime
4514
+
4515
+
4516
+ def _deserialize(self, params):
4517
+ self._PkgId = params.get("PkgId")
4518
+ self._Status = params.get("Status")
4519
+ self._CycleUnit = params.get("CycleUnit")
4520
+ self._CycleCredits = params.get("CycleCredits")
4521
+ self._CycleUsed = params.get("CycleUsed")
4522
+ self._StartTime = params.get("StartTime")
4523
+ self._ExpireTime = params.get("ExpireTime")
4524
+ memeber_set = set(params.keys())
4525
+ for name, value in vars(self).items():
4526
+ property_name = name[1:]
4527
+ if property_name in memeber_set:
4528
+ memeber_set.remove(property_name)
4529
+ if len(memeber_set) > 0:
4530
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4531
+
4532
+
4533
+
4338
4534
  class RenewTokenPlanTeamOrderRequest(AbstractModel):
4339
4535
  r"""RenewTokenPlanTeamOrder请求参数结构体
4340
4536
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tokenhub
3
- Version: 3.1.115
3
+ Version: 3.1.118
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.115
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.118
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.118
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.115