tencentcloud-sdk-python-tokenhub 3.1.130__tar.gz → 3.1.131__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.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/setup.py +1 -1
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud/tokenhub/v20260322/models.py +513 -6
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud_sdk_python_tokenhub.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tokenhub-3.1.131/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tokenhub-3.1.130/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/README.rst +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud/tokenhub/__init__.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud/tokenhub/v20260322/__init__.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud/tokenhub/v20260322/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud/tokenhub/v20260322/tokenhub_client.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud/tokenhub/v20260322/tokenhub_client_async.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud_sdk_python_tokenhub.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud_sdk_python_tokenhub.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/tencentcloud_sdk_python_tokenhub.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/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.131
|
|
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.131
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/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.131,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tokenhub SDK for Python',
|
|
@@ -392,11 +392,11 @@ class BindingItem(AbstractModel):
|
|
|
392
392
|
|
|
393
393
|
def __init__(self):
|
|
394
394
|
r"""
|
|
395
|
-
:param _ResourceId:
|
|
395
|
+
:param _ResourceId: <p>资源 ID(模型 ID 或服务 ID)。</p>
|
|
396
396
|
:type ResourceId: str
|
|
397
|
-
:param _ResourceType:
|
|
397
|
+
:param _ResourceType: <p>资源类型。取值:endpoint(推理服务)、model(模型)。推荐绑定endpoint,绑定model即将下线。已绑定model的apikey仍可使用,但控制台回显将不会展示模型绑定列表。</p><p>枚举值:</p><ul><li>endpoint: 绑定到endpoint(默认推理服务或自定义推理服务)</li></ul>
|
|
398
398
|
:type ResourceType: str
|
|
399
|
-
:param _Status:
|
|
399
|
+
:param _Status: <p>资源状态</p>
|
|
400
400
|
:type Status: str
|
|
401
401
|
"""
|
|
402
402
|
self._ResourceId = None
|
|
@@ -405,7 +405,7 @@ class BindingItem(AbstractModel):
|
|
|
405
405
|
|
|
406
406
|
@property
|
|
407
407
|
def ResourceId(self):
|
|
408
|
-
r"""
|
|
408
|
+
r"""<p>资源 ID(模型 ID 或服务 ID)。</p>
|
|
409
409
|
:rtype: str
|
|
410
410
|
"""
|
|
411
411
|
return self._ResourceId
|
|
@@ -416,7 +416,7 @@ class BindingItem(AbstractModel):
|
|
|
416
416
|
|
|
417
417
|
@property
|
|
418
418
|
def ResourceType(self):
|
|
419
|
-
r"""
|
|
419
|
+
r"""<p>资源类型。取值:endpoint(推理服务)、model(模型)。推荐绑定endpoint,绑定model即将下线。已绑定model的apikey仍可使用,但控制台回显将不会展示模型绑定列表。</p><p>枚举值:</p><ul><li>endpoint: 绑定到endpoint(默认推理服务或自定义推理服务)</li></ul>
|
|
420
420
|
:rtype: str
|
|
421
421
|
"""
|
|
422
422
|
return self._ResourceType
|
|
@@ -427,7 +427,7 @@ class BindingItem(AbstractModel):
|
|
|
427
427
|
|
|
428
428
|
@property
|
|
429
429
|
def Status(self):
|
|
430
|
-
r"""
|
|
430
|
+
r"""<p>资源状态</p>
|
|
431
431
|
:rtype: str
|
|
432
432
|
"""
|
|
433
433
|
return self._Status
|
|
@@ -456,6 +456,151 @@ class CreateApiKeyRequest(AbstractModel):
|
|
|
456
456
|
|
|
457
457
|
"""
|
|
458
458
|
|
|
459
|
+
def __init__(self):
|
|
460
|
+
r"""
|
|
461
|
+
:param _ApiKeyName: <p>API 密钥名称,创建后不可修改。</p>
|
|
462
|
+
:type ApiKeyName: str
|
|
463
|
+
:param _Platform: <p>平台类型。取值:maas</p>
|
|
464
|
+
:type Platform: str
|
|
465
|
+
:param _BindType: <p>绑定类型。取值:all(全部模型和接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。</p><p>枚举值:</p><ul><li>all: 全部模型和接入点</li><li>model_custom_endpoint_custom: 自定义模型+自定义接入点</li></ul>
|
|
466
|
+
:type BindType: str
|
|
467
|
+
:param _Remark: <p>备注信息</p>
|
|
468
|
+
:type Remark: str
|
|
469
|
+
:param _Status: <p>初始状态。取值:enable(启用)、disable(禁用)。不传默认 enable。</p>
|
|
470
|
+
:type Status: str
|
|
471
|
+
:param _Bindings: <p>资源绑定列表(model 和 endpoint 混合),每项需显式指定 ResourceType。BindType 为 all 时不填;BindType 为model_custom_endpoint_custom时必填。</p>
|
|
472
|
+
:type Bindings: list of BindingItem
|
|
473
|
+
:param _IpWhitelist: <p>IP 白名单列表。支持 IPv4(如 1.2.3.4)和 CIDR(如 10.0.0.0/24)格式,IPv6暂不支持。最多 50 个条目,不支持重复。不传或传空数组表示不限制 IP。</p>
|
|
474
|
+
:type IpWhitelist: list of str
|
|
475
|
+
:param _Quotas: <p>Token 限额配置多维度列表。可选,不传表示不开启限额。</p>
|
|
476
|
+
:type Quotas: list of QuotaCreateItem
|
|
477
|
+
"""
|
|
478
|
+
self._ApiKeyName = None
|
|
479
|
+
self._Platform = None
|
|
480
|
+
self._BindType = None
|
|
481
|
+
self._Remark = None
|
|
482
|
+
self._Status = None
|
|
483
|
+
self._Bindings = None
|
|
484
|
+
self._IpWhitelist = None
|
|
485
|
+
self._Quotas = None
|
|
486
|
+
|
|
487
|
+
@property
|
|
488
|
+
def ApiKeyName(self):
|
|
489
|
+
r"""<p>API 密钥名称,创建后不可修改。</p>
|
|
490
|
+
:rtype: str
|
|
491
|
+
"""
|
|
492
|
+
return self._ApiKeyName
|
|
493
|
+
|
|
494
|
+
@ApiKeyName.setter
|
|
495
|
+
def ApiKeyName(self, ApiKeyName):
|
|
496
|
+
self._ApiKeyName = ApiKeyName
|
|
497
|
+
|
|
498
|
+
@property
|
|
499
|
+
def Platform(self):
|
|
500
|
+
r"""<p>平台类型。取值:maas</p>
|
|
501
|
+
:rtype: str
|
|
502
|
+
"""
|
|
503
|
+
return self._Platform
|
|
504
|
+
|
|
505
|
+
@Platform.setter
|
|
506
|
+
def Platform(self, Platform):
|
|
507
|
+
self._Platform = Platform
|
|
508
|
+
|
|
509
|
+
@property
|
|
510
|
+
def BindType(self):
|
|
511
|
+
r"""<p>绑定类型。取值:all(全部模型和接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。</p><p>枚举值:</p><ul><li>all: 全部模型和接入点</li><li>model_custom_endpoint_custom: 自定义模型+自定义接入点</li></ul>
|
|
512
|
+
:rtype: str
|
|
513
|
+
"""
|
|
514
|
+
return self._BindType
|
|
515
|
+
|
|
516
|
+
@BindType.setter
|
|
517
|
+
def BindType(self, BindType):
|
|
518
|
+
self._BindType = BindType
|
|
519
|
+
|
|
520
|
+
@property
|
|
521
|
+
def Remark(self):
|
|
522
|
+
r"""<p>备注信息</p>
|
|
523
|
+
:rtype: str
|
|
524
|
+
"""
|
|
525
|
+
return self._Remark
|
|
526
|
+
|
|
527
|
+
@Remark.setter
|
|
528
|
+
def Remark(self, Remark):
|
|
529
|
+
self._Remark = Remark
|
|
530
|
+
|
|
531
|
+
@property
|
|
532
|
+
def Status(self):
|
|
533
|
+
r"""<p>初始状态。取值:enable(启用)、disable(禁用)。不传默认 enable。</p>
|
|
534
|
+
:rtype: str
|
|
535
|
+
"""
|
|
536
|
+
return self._Status
|
|
537
|
+
|
|
538
|
+
@Status.setter
|
|
539
|
+
def Status(self, Status):
|
|
540
|
+
self._Status = Status
|
|
541
|
+
|
|
542
|
+
@property
|
|
543
|
+
def Bindings(self):
|
|
544
|
+
r"""<p>资源绑定列表(model 和 endpoint 混合),每项需显式指定 ResourceType。BindType 为 all 时不填;BindType 为model_custom_endpoint_custom时必填。</p>
|
|
545
|
+
:rtype: list of BindingItem
|
|
546
|
+
"""
|
|
547
|
+
return self._Bindings
|
|
548
|
+
|
|
549
|
+
@Bindings.setter
|
|
550
|
+
def Bindings(self, Bindings):
|
|
551
|
+
self._Bindings = Bindings
|
|
552
|
+
|
|
553
|
+
@property
|
|
554
|
+
def IpWhitelist(self):
|
|
555
|
+
r"""<p>IP 白名单列表。支持 IPv4(如 1.2.3.4)和 CIDR(如 10.0.0.0/24)格式,IPv6暂不支持。最多 50 个条目,不支持重复。不传或传空数组表示不限制 IP。</p>
|
|
556
|
+
:rtype: list of str
|
|
557
|
+
"""
|
|
558
|
+
return self._IpWhitelist
|
|
559
|
+
|
|
560
|
+
@IpWhitelist.setter
|
|
561
|
+
def IpWhitelist(self, IpWhitelist):
|
|
562
|
+
self._IpWhitelist = IpWhitelist
|
|
563
|
+
|
|
564
|
+
@property
|
|
565
|
+
def Quotas(self):
|
|
566
|
+
r"""<p>Token 限额配置多维度列表。可选,不传表示不开启限额。</p>
|
|
567
|
+
:rtype: list of QuotaCreateItem
|
|
568
|
+
"""
|
|
569
|
+
return self._Quotas
|
|
570
|
+
|
|
571
|
+
@Quotas.setter
|
|
572
|
+
def Quotas(self, Quotas):
|
|
573
|
+
self._Quotas = Quotas
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
def _deserialize(self, params):
|
|
577
|
+
self._ApiKeyName = params.get("ApiKeyName")
|
|
578
|
+
self._Platform = params.get("Platform")
|
|
579
|
+
self._BindType = params.get("BindType")
|
|
580
|
+
self._Remark = params.get("Remark")
|
|
581
|
+
self._Status = params.get("Status")
|
|
582
|
+
if params.get("Bindings") is not None:
|
|
583
|
+
self._Bindings = []
|
|
584
|
+
for item in params.get("Bindings"):
|
|
585
|
+
obj = BindingItem()
|
|
586
|
+
obj._deserialize(item)
|
|
587
|
+
self._Bindings.append(obj)
|
|
588
|
+
self._IpWhitelist = params.get("IpWhitelist")
|
|
589
|
+
if params.get("Quotas") is not None:
|
|
590
|
+
self._Quotas = []
|
|
591
|
+
for item in params.get("Quotas"):
|
|
592
|
+
obj = QuotaCreateItem()
|
|
593
|
+
obj._deserialize(item)
|
|
594
|
+
self._Quotas.append(obj)
|
|
595
|
+
memeber_set = set(params.keys())
|
|
596
|
+
for name, value in vars(self).items():
|
|
597
|
+
property_name = name[1:]
|
|
598
|
+
if property_name in memeber_set:
|
|
599
|
+
memeber_set.remove(property_name)
|
|
600
|
+
if len(memeber_set) > 0:
|
|
601
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
602
|
+
|
|
603
|
+
|
|
459
604
|
|
|
460
605
|
class CreateApiKeyResponse(AbstractModel):
|
|
461
606
|
r"""CreateApiKey返回参数结构体
|
|
@@ -464,11 +609,25 @@ class CreateApiKeyResponse(AbstractModel):
|
|
|
464
609
|
|
|
465
610
|
def __init__(self):
|
|
466
611
|
r"""
|
|
612
|
+
:param _ApiKeyId: <p>apikey id</p>
|
|
613
|
+
:type ApiKeyId: str
|
|
467
614
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
468
615
|
:type RequestId: str
|
|
469
616
|
"""
|
|
617
|
+
self._ApiKeyId = None
|
|
470
618
|
self._RequestId = None
|
|
471
619
|
|
|
620
|
+
@property
|
|
621
|
+
def ApiKeyId(self):
|
|
622
|
+
r"""<p>apikey id</p>
|
|
623
|
+
:rtype: str
|
|
624
|
+
"""
|
|
625
|
+
return self._ApiKeyId
|
|
626
|
+
|
|
627
|
+
@ApiKeyId.setter
|
|
628
|
+
def ApiKeyId(self, ApiKeyId):
|
|
629
|
+
self._ApiKeyId = ApiKeyId
|
|
630
|
+
|
|
472
631
|
@property
|
|
473
632
|
def RequestId(self):
|
|
474
633
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -482,6 +641,7 @@ class CreateApiKeyResponse(AbstractModel):
|
|
|
482
641
|
|
|
483
642
|
|
|
484
643
|
def _deserialize(self, params):
|
|
644
|
+
self._ApiKeyId = params.get("ApiKeyId")
|
|
485
645
|
self._RequestId = params.get("RequestId")
|
|
486
646
|
|
|
487
647
|
|
|
@@ -1125,6 +1285,51 @@ class DeleteApiKeyRequest(AbstractModel):
|
|
|
1125
1285
|
|
|
1126
1286
|
"""
|
|
1127
1287
|
|
|
1288
|
+
def __init__(self):
|
|
1289
|
+
r"""
|
|
1290
|
+
:param _ApiKeyId: <p>API 密钥 ID。</p>
|
|
1291
|
+
:type ApiKeyId: str
|
|
1292
|
+
:param _Platform: <p>平台类型。取值:maas。</p>
|
|
1293
|
+
:type Platform: str
|
|
1294
|
+
"""
|
|
1295
|
+
self._ApiKeyId = None
|
|
1296
|
+
self._Platform = None
|
|
1297
|
+
|
|
1298
|
+
@property
|
|
1299
|
+
def ApiKeyId(self):
|
|
1300
|
+
r"""<p>API 密钥 ID。</p>
|
|
1301
|
+
:rtype: str
|
|
1302
|
+
"""
|
|
1303
|
+
return self._ApiKeyId
|
|
1304
|
+
|
|
1305
|
+
@ApiKeyId.setter
|
|
1306
|
+
def ApiKeyId(self, ApiKeyId):
|
|
1307
|
+
self._ApiKeyId = ApiKeyId
|
|
1308
|
+
|
|
1309
|
+
@property
|
|
1310
|
+
def Platform(self):
|
|
1311
|
+
r"""<p>平台类型。取值:maas。</p>
|
|
1312
|
+
:rtype: str
|
|
1313
|
+
"""
|
|
1314
|
+
return self._Platform
|
|
1315
|
+
|
|
1316
|
+
@Platform.setter
|
|
1317
|
+
def Platform(self, Platform):
|
|
1318
|
+
self._Platform = Platform
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
def _deserialize(self, params):
|
|
1322
|
+
self._ApiKeyId = params.get("ApiKeyId")
|
|
1323
|
+
self._Platform = params.get("Platform")
|
|
1324
|
+
memeber_set = set(params.keys())
|
|
1325
|
+
for name, value in vars(self).items():
|
|
1326
|
+
property_name = name[1:]
|
|
1327
|
+
if property_name in memeber_set:
|
|
1328
|
+
memeber_set.remove(property_name)
|
|
1329
|
+
if len(memeber_set) > 0:
|
|
1330
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1331
|
+
|
|
1332
|
+
|
|
1128
1333
|
|
|
1129
1334
|
class DeleteApiKeyResponse(AbstractModel):
|
|
1130
1335
|
r"""DeleteApiKey返回参数结构体
|
|
@@ -5036,6 +5241,116 @@ class ModifyApiKeyInfoRequest(AbstractModel):
|
|
|
5036
5241
|
|
|
5037
5242
|
"""
|
|
5038
5243
|
|
|
5244
|
+
def __init__(self):
|
|
5245
|
+
r"""
|
|
5246
|
+
:param _ApiKeyId: <p>API 密钥 ID。</p>
|
|
5247
|
+
:type ApiKeyId: str
|
|
5248
|
+
:param _Platform: <p>平台类型。取值:maas。</p>
|
|
5249
|
+
:type Platform: str
|
|
5250
|
+
:param _ApiKeyName: <p>API 密钥名称。最大 128 字符。不传表示不修改。</p>
|
|
5251
|
+
:type ApiKeyName: str
|
|
5252
|
+
:param _Remark: <p>备注。</p>
|
|
5253
|
+
:type Remark: str
|
|
5254
|
+
:param _IpWhitelist: <p>IP 白名单列表。支持 IPv4(如 1.2.3.4)、CIDR(如 10.0.0.0/24)格式,IPv6暂不支持。最多 50 个,不支持重复。传入空数组表示清空白名单(不限制 IP)。不传表示不修改。</p>
|
|
5255
|
+
:type IpWhitelist: list of str
|
|
5256
|
+
:param _QuotasDesired: <p>【修改限额推荐使用QuotaDesired参数】Token 限额期望状态。可选,不传表示不修改,传入空数组表示清空。和 Quotas(Token限额配置)字段互斥,不支持同时传入</p>
|
|
5257
|
+
:type QuotasDesired: list of QuotasDesired
|
|
5258
|
+
"""
|
|
5259
|
+
self._ApiKeyId = None
|
|
5260
|
+
self._Platform = None
|
|
5261
|
+
self._ApiKeyName = None
|
|
5262
|
+
self._Remark = None
|
|
5263
|
+
self._IpWhitelist = None
|
|
5264
|
+
self._QuotasDesired = None
|
|
5265
|
+
|
|
5266
|
+
@property
|
|
5267
|
+
def ApiKeyId(self):
|
|
5268
|
+
r"""<p>API 密钥 ID。</p>
|
|
5269
|
+
:rtype: str
|
|
5270
|
+
"""
|
|
5271
|
+
return self._ApiKeyId
|
|
5272
|
+
|
|
5273
|
+
@ApiKeyId.setter
|
|
5274
|
+
def ApiKeyId(self, ApiKeyId):
|
|
5275
|
+
self._ApiKeyId = ApiKeyId
|
|
5276
|
+
|
|
5277
|
+
@property
|
|
5278
|
+
def Platform(self):
|
|
5279
|
+
r"""<p>平台类型。取值:maas。</p>
|
|
5280
|
+
:rtype: str
|
|
5281
|
+
"""
|
|
5282
|
+
return self._Platform
|
|
5283
|
+
|
|
5284
|
+
@Platform.setter
|
|
5285
|
+
def Platform(self, Platform):
|
|
5286
|
+
self._Platform = Platform
|
|
5287
|
+
|
|
5288
|
+
@property
|
|
5289
|
+
def ApiKeyName(self):
|
|
5290
|
+
r"""<p>API 密钥名称。最大 128 字符。不传表示不修改。</p>
|
|
5291
|
+
:rtype: str
|
|
5292
|
+
"""
|
|
5293
|
+
return self._ApiKeyName
|
|
5294
|
+
|
|
5295
|
+
@ApiKeyName.setter
|
|
5296
|
+
def ApiKeyName(self, ApiKeyName):
|
|
5297
|
+
self._ApiKeyName = ApiKeyName
|
|
5298
|
+
|
|
5299
|
+
@property
|
|
5300
|
+
def Remark(self):
|
|
5301
|
+
r"""<p>备注。</p>
|
|
5302
|
+
:rtype: str
|
|
5303
|
+
"""
|
|
5304
|
+
return self._Remark
|
|
5305
|
+
|
|
5306
|
+
@Remark.setter
|
|
5307
|
+
def Remark(self, Remark):
|
|
5308
|
+
self._Remark = Remark
|
|
5309
|
+
|
|
5310
|
+
@property
|
|
5311
|
+
def IpWhitelist(self):
|
|
5312
|
+
r"""<p>IP 白名单列表。支持 IPv4(如 1.2.3.4)、CIDR(如 10.0.0.0/24)格式,IPv6暂不支持。最多 50 个,不支持重复。传入空数组表示清空白名单(不限制 IP)。不传表示不修改。</p>
|
|
5313
|
+
:rtype: list of str
|
|
5314
|
+
"""
|
|
5315
|
+
return self._IpWhitelist
|
|
5316
|
+
|
|
5317
|
+
@IpWhitelist.setter
|
|
5318
|
+
def IpWhitelist(self, IpWhitelist):
|
|
5319
|
+
self._IpWhitelist = IpWhitelist
|
|
5320
|
+
|
|
5321
|
+
@property
|
|
5322
|
+
def QuotasDesired(self):
|
|
5323
|
+
r"""<p>【修改限额推荐使用QuotaDesired参数】Token 限额期望状态。可选,不传表示不修改,传入空数组表示清空。和 Quotas(Token限额配置)字段互斥,不支持同时传入</p>
|
|
5324
|
+
:rtype: list of QuotasDesired
|
|
5325
|
+
"""
|
|
5326
|
+
return self._QuotasDesired
|
|
5327
|
+
|
|
5328
|
+
@QuotasDesired.setter
|
|
5329
|
+
def QuotasDesired(self, QuotasDesired):
|
|
5330
|
+
self._QuotasDesired = QuotasDesired
|
|
5331
|
+
|
|
5332
|
+
|
|
5333
|
+
def _deserialize(self, params):
|
|
5334
|
+
self._ApiKeyId = params.get("ApiKeyId")
|
|
5335
|
+
self._Platform = params.get("Platform")
|
|
5336
|
+
self._ApiKeyName = params.get("ApiKeyName")
|
|
5337
|
+
self._Remark = params.get("Remark")
|
|
5338
|
+
self._IpWhitelist = params.get("IpWhitelist")
|
|
5339
|
+
if params.get("QuotasDesired") is not None:
|
|
5340
|
+
self._QuotasDesired = []
|
|
5341
|
+
for item in params.get("QuotasDesired"):
|
|
5342
|
+
obj = QuotasDesired()
|
|
5343
|
+
obj._deserialize(item)
|
|
5344
|
+
self._QuotasDesired.append(obj)
|
|
5345
|
+
memeber_set = set(params.keys())
|
|
5346
|
+
for name, value in vars(self).items():
|
|
5347
|
+
property_name = name[1:]
|
|
5348
|
+
if property_name in memeber_set:
|
|
5349
|
+
memeber_set.remove(property_name)
|
|
5350
|
+
if len(memeber_set) > 0:
|
|
5351
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5352
|
+
|
|
5353
|
+
|
|
5039
5354
|
|
|
5040
5355
|
class ModifyApiKeyInfoResponse(AbstractModel):
|
|
5041
5356
|
r"""ModifyApiKeyInfo返回参数结构体
|
|
@@ -5070,6 +5385,66 @@ class ModifyApiKeyStatusRequest(AbstractModel):
|
|
|
5070
5385
|
|
|
5071
5386
|
"""
|
|
5072
5387
|
|
|
5388
|
+
def __init__(self):
|
|
5389
|
+
r"""
|
|
5390
|
+
:param _ApiKeyId: <p>API 密钥 ID。</p>
|
|
5391
|
+
:type ApiKeyId: str
|
|
5392
|
+
:param _Platform: <p>平台类型。取值:maas。</p>
|
|
5393
|
+
:type Platform: str
|
|
5394
|
+
:param _Status: <p>状态。取值:enable(启用)、disable(禁用)。</p>
|
|
5395
|
+
:type Status: str
|
|
5396
|
+
"""
|
|
5397
|
+
self._ApiKeyId = None
|
|
5398
|
+
self._Platform = None
|
|
5399
|
+
self._Status = None
|
|
5400
|
+
|
|
5401
|
+
@property
|
|
5402
|
+
def ApiKeyId(self):
|
|
5403
|
+
r"""<p>API 密钥 ID。</p>
|
|
5404
|
+
:rtype: str
|
|
5405
|
+
"""
|
|
5406
|
+
return self._ApiKeyId
|
|
5407
|
+
|
|
5408
|
+
@ApiKeyId.setter
|
|
5409
|
+
def ApiKeyId(self, ApiKeyId):
|
|
5410
|
+
self._ApiKeyId = ApiKeyId
|
|
5411
|
+
|
|
5412
|
+
@property
|
|
5413
|
+
def Platform(self):
|
|
5414
|
+
r"""<p>平台类型。取值:maas。</p>
|
|
5415
|
+
:rtype: str
|
|
5416
|
+
"""
|
|
5417
|
+
return self._Platform
|
|
5418
|
+
|
|
5419
|
+
@Platform.setter
|
|
5420
|
+
def Platform(self, Platform):
|
|
5421
|
+
self._Platform = Platform
|
|
5422
|
+
|
|
5423
|
+
@property
|
|
5424
|
+
def Status(self):
|
|
5425
|
+
r"""<p>状态。取值:enable(启用)、disable(禁用)。</p>
|
|
5426
|
+
:rtype: str
|
|
5427
|
+
"""
|
|
5428
|
+
return self._Status
|
|
5429
|
+
|
|
5430
|
+
@Status.setter
|
|
5431
|
+
def Status(self, Status):
|
|
5432
|
+
self._Status = Status
|
|
5433
|
+
|
|
5434
|
+
|
|
5435
|
+
def _deserialize(self, params):
|
|
5436
|
+
self._ApiKeyId = params.get("ApiKeyId")
|
|
5437
|
+
self._Platform = params.get("Platform")
|
|
5438
|
+
self._Status = params.get("Status")
|
|
5439
|
+
memeber_set = set(params.keys())
|
|
5440
|
+
for name, value in vars(self).items():
|
|
5441
|
+
property_name = name[1:]
|
|
5442
|
+
if property_name in memeber_set:
|
|
5443
|
+
memeber_set.remove(property_name)
|
|
5444
|
+
if len(memeber_set) > 0:
|
|
5445
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5446
|
+
|
|
5447
|
+
|
|
5073
5448
|
|
|
5074
5449
|
class ModifyApiKeyStatusResponse(AbstractModel):
|
|
5075
5450
|
r"""ModifyApiKeyStatus返回参数结构体
|
|
@@ -5524,6 +5899,72 @@ class ModifyTokenPlanApiKeySecretResponse(AbstractModel):
|
|
|
5524
5899
|
self._RequestId = params.get("RequestId")
|
|
5525
5900
|
|
|
5526
5901
|
|
|
5902
|
+
class QuotaCreateItem(AbstractModel):
|
|
5903
|
+
r"""Token 限额配置项(创建 API 密钥时用)
|
|
5904
|
+
|
|
5905
|
+
"""
|
|
5906
|
+
|
|
5907
|
+
def __init__(self):
|
|
5908
|
+
r"""
|
|
5909
|
+
:param _CycleUnit: <p>限额周期。取值:d(按日)、m(按月)、lifetime(总额度,不重置)。</p>
|
|
5910
|
+
:type CycleUnit: str
|
|
5911
|
+
:param _CycleCredits: <p>维度当期限额总量(Token 数),不能大于10万亿。使用字符串避免大数精度丢失。</p>
|
|
5912
|
+
:type CycleCredits: str
|
|
5913
|
+
:param _MonthStartDay: <p>月度限额起始日。CycleUnit 为 m 时可选,1~31,默认 1。小月(如 2 月)由下游自动取该月最后一天。</p>
|
|
5914
|
+
:type MonthStartDay: int
|
|
5915
|
+
"""
|
|
5916
|
+
self._CycleUnit = None
|
|
5917
|
+
self._CycleCredits = None
|
|
5918
|
+
self._MonthStartDay = None
|
|
5919
|
+
|
|
5920
|
+
@property
|
|
5921
|
+
def CycleUnit(self):
|
|
5922
|
+
r"""<p>限额周期。取值:d(按日)、m(按月)、lifetime(总额度,不重置)。</p>
|
|
5923
|
+
:rtype: str
|
|
5924
|
+
"""
|
|
5925
|
+
return self._CycleUnit
|
|
5926
|
+
|
|
5927
|
+
@CycleUnit.setter
|
|
5928
|
+
def CycleUnit(self, CycleUnit):
|
|
5929
|
+
self._CycleUnit = CycleUnit
|
|
5930
|
+
|
|
5931
|
+
@property
|
|
5932
|
+
def CycleCredits(self):
|
|
5933
|
+
r"""<p>维度当期限额总量(Token 数),不能大于10万亿。使用字符串避免大数精度丢失。</p>
|
|
5934
|
+
:rtype: str
|
|
5935
|
+
"""
|
|
5936
|
+
return self._CycleCredits
|
|
5937
|
+
|
|
5938
|
+
@CycleCredits.setter
|
|
5939
|
+
def CycleCredits(self, CycleCredits):
|
|
5940
|
+
self._CycleCredits = CycleCredits
|
|
5941
|
+
|
|
5942
|
+
@property
|
|
5943
|
+
def MonthStartDay(self):
|
|
5944
|
+
r"""<p>月度限额起始日。CycleUnit 为 m 时可选,1~31,默认 1。小月(如 2 月)由下游自动取该月最后一天。</p>
|
|
5945
|
+
:rtype: int
|
|
5946
|
+
"""
|
|
5947
|
+
return self._MonthStartDay
|
|
5948
|
+
|
|
5949
|
+
@MonthStartDay.setter
|
|
5950
|
+
def MonthStartDay(self, MonthStartDay):
|
|
5951
|
+
self._MonthStartDay = MonthStartDay
|
|
5952
|
+
|
|
5953
|
+
|
|
5954
|
+
def _deserialize(self, params):
|
|
5955
|
+
self._CycleUnit = params.get("CycleUnit")
|
|
5956
|
+
self._CycleCredits = params.get("CycleCredits")
|
|
5957
|
+
self._MonthStartDay = params.get("MonthStartDay")
|
|
5958
|
+
memeber_set = set(params.keys())
|
|
5959
|
+
for name, value in vars(self).items():
|
|
5960
|
+
property_name = name[1:]
|
|
5961
|
+
if property_name in memeber_set:
|
|
5962
|
+
memeber_set.remove(property_name)
|
|
5963
|
+
if len(memeber_set) > 0:
|
|
5964
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5965
|
+
|
|
5966
|
+
|
|
5967
|
+
|
|
5527
5968
|
class QuotaInfo(AbstractModel):
|
|
5528
5969
|
r"""Token 限额信息
|
|
5529
5970
|
|
|
@@ -5650,6 +6091,72 @@ class QuotaInfo(AbstractModel):
|
|
|
5650
6091
|
|
|
5651
6092
|
|
|
5652
6093
|
|
|
6094
|
+
class QuotasDesired(AbstractModel):
|
|
6095
|
+
r"""Token 限额期望状态
|
|
6096
|
+
|
|
6097
|
+
"""
|
|
6098
|
+
|
|
6099
|
+
def __init__(self):
|
|
6100
|
+
r"""
|
|
6101
|
+
:param _CycleUnit: <p>限额周期,必填。取值:d(按日)、m(按月)、lifetime(总额度)。</p>
|
|
6102
|
+
:type CycleUnit: str
|
|
6103
|
+
:param _CycleCredits: <p>单周期额度(Token 数),必填,不能大于10万亿。使用字符串避免大数精度丢失。同维度若与现网不同视为升配/降配。</p>
|
|
6104
|
+
:type CycleCredits: str
|
|
6105
|
+
:param _MonthStartDay: <p>月度限额起始日。CycleUnit=m 时可选,1~31,默认 1。小月(如 2 月)由下游自动取该月最后一天。已有月度限额包时,更新月起始日视为周期窗口切换,会 delete 旧包后 add 新包,累计额度会重置</p>
|
|
6106
|
+
:type MonthStartDay: int
|
|
6107
|
+
"""
|
|
6108
|
+
self._CycleUnit = None
|
|
6109
|
+
self._CycleCredits = None
|
|
6110
|
+
self._MonthStartDay = None
|
|
6111
|
+
|
|
6112
|
+
@property
|
|
6113
|
+
def CycleUnit(self):
|
|
6114
|
+
r"""<p>限额周期,必填。取值:d(按日)、m(按月)、lifetime(总额度)。</p>
|
|
6115
|
+
:rtype: str
|
|
6116
|
+
"""
|
|
6117
|
+
return self._CycleUnit
|
|
6118
|
+
|
|
6119
|
+
@CycleUnit.setter
|
|
6120
|
+
def CycleUnit(self, CycleUnit):
|
|
6121
|
+
self._CycleUnit = CycleUnit
|
|
6122
|
+
|
|
6123
|
+
@property
|
|
6124
|
+
def CycleCredits(self):
|
|
6125
|
+
r"""<p>单周期额度(Token 数),必填,不能大于10万亿。使用字符串避免大数精度丢失。同维度若与现网不同视为升配/降配。</p>
|
|
6126
|
+
:rtype: str
|
|
6127
|
+
"""
|
|
6128
|
+
return self._CycleCredits
|
|
6129
|
+
|
|
6130
|
+
@CycleCredits.setter
|
|
6131
|
+
def CycleCredits(self, CycleCredits):
|
|
6132
|
+
self._CycleCredits = CycleCredits
|
|
6133
|
+
|
|
6134
|
+
@property
|
|
6135
|
+
def MonthStartDay(self):
|
|
6136
|
+
r"""<p>月度限额起始日。CycleUnit=m 时可选,1~31,默认 1。小月(如 2 月)由下游自动取该月最后一天。已有月度限额包时,更新月起始日视为周期窗口切换,会 delete 旧包后 add 新包,累计额度会重置</p>
|
|
6137
|
+
:rtype: int
|
|
6138
|
+
"""
|
|
6139
|
+
return self._MonthStartDay
|
|
6140
|
+
|
|
6141
|
+
@MonthStartDay.setter
|
|
6142
|
+
def MonthStartDay(self, MonthStartDay):
|
|
6143
|
+
self._MonthStartDay = MonthStartDay
|
|
6144
|
+
|
|
6145
|
+
|
|
6146
|
+
def _deserialize(self, params):
|
|
6147
|
+
self._CycleUnit = params.get("CycleUnit")
|
|
6148
|
+
self._CycleCredits = params.get("CycleCredits")
|
|
6149
|
+
self._MonthStartDay = params.get("MonthStartDay")
|
|
6150
|
+
memeber_set = set(params.keys())
|
|
6151
|
+
for name, value in vars(self).items():
|
|
6152
|
+
property_name = name[1:]
|
|
6153
|
+
if property_name in memeber_set:
|
|
6154
|
+
memeber_set.remove(property_name)
|
|
6155
|
+
if len(memeber_set) > 0:
|
|
6156
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6157
|
+
|
|
6158
|
+
|
|
6159
|
+
|
|
5653
6160
|
class RenewTokenPlanTeamOrderRequest(AbstractModel):
|
|
5654
6161
|
r"""RenewTokenPlanTeamOrder请求参数结构体
|
|
5655
6162
|
|
|
@@ -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.131
|
|
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.131
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
tencentcloud_sdk_python_tokenhub-3.1.131/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.131
|
tencentcloud_sdk_python_tokenhub-3.1.130/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.130
|
{tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_tokenhub-3.1.130 → tencentcloud_sdk_python_tokenhub-3.1.131}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|