tencentcloud-sdk-python-tokenhub 3.1.177__py2.py3-none-any.whl → 3.1.207__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 +418 -0
- tencentcloud/tokenhub/v20260322/tokenhub_client.py +50 -0
- tencentcloud/tokenhub/v20260322/tokenhub_client_async.py +40 -0
- {tencentcloud_sdk_python_tokenhub-3.1.177.dist-info → tencentcloud_sdk_python_tokenhub-3.1.207.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_tokenhub-3.1.207.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.207.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.177.dist-info → tencentcloud_sdk_python_tokenhub-3.1.207.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -4115,6 +4115,310 @@ class DescribeTokenPlanListResponse(AbstractModel):
|
|
|
4115
4115
|
self._RequestId = params.get("RequestId")
|
|
4116
4116
|
|
|
4117
4117
|
|
|
4118
|
+
class DescribeTokenPlanPersonalPackageRequest(AbstractModel):
|
|
4119
|
+
r"""DescribeTokenPlanPersonalPackage请求参数结构体
|
|
4120
|
+
|
|
4121
|
+
"""
|
|
4122
|
+
|
|
4123
|
+
def __init__(self):
|
|
4124
|
+
r"""
|
|
4125
|
+
:param _ProductType: <p>产品类型。取值:personal(个人版)、personal-hunyuan(个人版混元)。</p>
|
|
4126
|
+
:type ProductType: str
|
|
4127
|
+
"""
|
|
4128
|
+
self._ProductType = None
|
|
4129
|
+
|
|
4130
|
+
@property
|
|
4131
|
+
def ProductType(self):
|
|
4132
|
+
r"""<p>产品类型。取值:personal(个人版)、personal-hunyuan(个人版混元)。</p>
|
|
4133
|
+
:rtype: str
|
|
4134
|
+
"""
|
|
4135
|
+
return self._ProductType
|
|
4136
|
+
|
|
4137
|
+
@ProductType.setter
|
|
4138
|
+
def ProductType(self, ProductType):
|
|
4139
|
+
self._ProductType = ProductType
|
|
4140
|
+
|
|
4141
|
+
|
|
4142
|
+
def _deserialize(self, params):
|
|
4143
|
+
self._ProductType = params.get("ProductType")
|
|
4144
|
+
memeber_set = set(params.keys())
|
|
4145
|
+
for name, value in vars(self).items():
|
|
4146
|
+
property_name = name[1:]
|
|
4147
|
+
if property_name in memeber_set:
|
|
4148
|
+
memeber_set.remove(property_name)
|
|
4149
|
+
if len(memeber_set) > 0:
|
|
4150
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4151
|
+
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
class DescribeTokenPlanPersonalPackageResponse(AbstractModel):
|
|
4155
|
+
r"""DescribeTokenPlanPersonalPackage返回参数结构体
|
|
4156
|
+
|
|
4157
|
+
"""
|
|
4158
|
+
|
|
4159
|
+
def __init__(self):
|
|
4160
|
+
r"""
|
|
4161
|
+
:param _ProductType: <p>产品类型。</p>
|
|
4162
|
+
:type ProductType: str
|
|
4163
|
+
:param _PackageStatus: <p>套餐状态。取值:active(生效中)、processing(处理中)、failed(创建失败)、isolated(隔离/欠费)、destroyed(已销毁)、used_up(额度用尽)、stopped(已停止)、unpurchased(未购买)。</p>
|
|
4164
|
+
:type PackageStatus: str
|
|
4165
|
+
:param _ResourceId: <p>计费资源ID</p>
|
|
4166
|
+
:type ResourceId: str
|
|
4167
|
+
:param _TotalCredits: <p>总额度。</p>
|
|
4168
|
+
:type TotalCredits: str
|
|
4169
|
+
:param _TotalUsed: <p>已使用额度。</p>
|
|
4170
|
+
:type TotalUsed: str
|
|
4171
|
+
:param _CycleCredits: <p>单周期额度。</p>
|
|
4172
|
+
:type CycleCredits: str
|
|
4173
|
+
:param _TotalCycles: <p>总周期数。</p>
|
|
4174
|
+
:type TotalCycles: int
|
|
4175
|
+
:param _CurrentCycle: <p>当前周期序号。</p>
|
|
4176
|
+
:type CurrentCycle: int
|
|
4177
|
+
:param _RemainCycles: <p>剩余周期数。</p>
|
|
4178
|
+
:type RemainCycles: int
|
|
4179
|
+
:param _StartTime: <p>套餐生效时间,ISO 8601 格式。</p>
|
|
4180
|
+
:type StartTime: str
|
|
4181
|
+
:param _ExpireTime: <p>套餐过期时间,ISO 8601 格式。</p>
|
|
4182
|
+
:type ExpireTime: str
|
|
4183
|
+
:param _PeriodEndDate: <p>当前周期到期日,ISO 8601 格式。</p>
|
|
4184
|
+
:type PeriodEndDate: str
|
|
4185
|
+
:param _AutoRenewFlag: <p>自动续费标识。取值:0(未开启)、1(已开启)。</p>
|
|
4186
|
+
:type AutoRenewFlag: int
|
|
4187
|
+
:param _OutputToken: <p>输出token数</p><p>单位:tokens</p>
|
|
4188
|
+
:type OutputToken: int
|
|
4189
|
+
:param _InputToken: <p>输入token数</p><p>单位:token</p>
|
|
4190
|
+
:type InputToken: int
|
|
4191
|
+
:param _CacheToken: <p>缓存命中token数</p><p>单位:token</p>
|
|
4192
|
+
:type CacheToken: int
|
|
4193
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4194
|
+
:type RequestId: str
|
|
4195
|
+
"""
|
|
4196
|
+
self._ProductType = None
|
|
4197
|
+
self._PackageStatus = None
|
|
4198
|
+
self._ResourceId = None
|
|
4199
|
+
self._TotalCredits = None
|
|
4200
|
+
self._TotalUsed = None
|
|
4201
|
+
self._CycleCredits = None
|
|
4202
|
+
self._TotalCycles = None
|
|
4203
|
+
self._CurrentCycle = None
|
|
4204
|
+
self._RemainCycles = None
|
|
4205
|
+
self._StartTime = None
|
|
4206
|
+
self._ExpireTime = None
|
|
4207
|
+
self._PeriodEndDate = None
|
|
4208
|
+
self._AutoRenewFlag = None
|
|
4209
|
+
self._OutputToken = None
|
|
4210
|
+
self._InputToken = None
|
|
4211
|
+
self._CacheToken = None
|
|
4212
|
+
self._RequestId = None
|
|
4213
|
+
|
|
4214
|
+
@property
|
|
4215
|
+
def ProductType(self):
|
|
4216
|
+
r"""<p>产品类型。</p>
|
|
4217
|
+
:rtype: str
|
|
4218
|
+
"""
|
|
4219
|
+
return self._ProductType
|
|
4220
|
+
|
|
4221
|
+
@ProductType.setter
|
|
4222
|
+
def ProductType(self, ProductType):
|
|
4223
|
+
self._ProductType = ProductType
|
|
4224
|
+
|
|
4225
|
+
@property
|
|
4226
|
+
def PackageStatus(self):
|
|
4227
|
+
r"""<p>套餐状态。取值:active(生效中)、processing(处理中)、failed(创建失败)、isolated(隔离/欠费)、destroyed(已销毁)、used_up(额度用尽)、stopped(已停止)、unpurchased(未购买)。</p>
|
|
4228
|
+
:rtype: str
|
|
4229
|
+
"""
|
|
4230
|
+
return self._PackageStatus
|
|
4231
|
+
|
|
4232
|
+
@PackageStatus.setter
|
|
4233
|
+
def PackageStatus(self, PackageStatus):
|
|
4234
|
+
self._PackageStatus = PackageStatus
|
|
4235
|
+
|
|
4236
|
+
@property
|
|
4237
|
+
def ResourceId(self):
|
|
4238
|
+
r"""<p>计费资源ID</p>
|
|
4239
|
+
:rtype: str
|
|
4240
|
+
"""
|
|
4241
|
+
return self._ResourceId
|
|
4242
|
+
|
|
4243
|
+
@ResourceId.setter
|
|
4244
|
+
def ResourceId(self, ResourceId):
|
|
4245
|
+
self._ResourceId = ResourceId
|
|
4246
|
+
|
|
4247
|
+
@property
|
|
4248
|
+
def TotalCredits(self):
|
|
4249
|
+
r"""<p>总额度。</p>
|
|
4250
|
+
:rtype: str
|
|
4251
|
+
"""
|
|
4252
|
+
return self._TotalCredits
|
|
4253
|
+
|
|
4254
|
+
@TotalCredits.setter
|
|
4255
|
+
def TotalCredits(self, TotalCredits):
|
|
4256
|
+
self._TotalCredits = TotalCredits
|
|
4257
|
+
|
|
4258
|
+
@property
|
|
4259
|
+
def TotalUsed(self):
|
|
4260
|
+
r"""<p>已使用额度。</p>
|
|
4261
|
+
:rtype: str
|
|
4262
|
+
"""
|
|
4263
|
+
return self._TotalUsed
|
|
4264
|
+
|
|
4265
|
+
@TotalUsed.setter
|
|
4266
|
+
def TotalUsed(self, TotalUsed):
|
|
4267
|
+
self._TotalUsed = TotalUsed
|
|
4268
|
+
|
|
4269
|
+
@property
|
|
4270
|
+
def CycleCredits(self):
|
|
4271
|
+
r"""<p>单周期额度。</p>
|
|
4272
|
+
:rtype: str
|
|
4273
|
+
"""
|
|
4274
|
+
return self._CycleCredits
|
|
4275
|
+
|
|
4276
|
+
@CycleCredits.setter
|
|
4277
|
+
def CycleCredits(self, CycleCredits):
|
|
4278
|
+
self._CycleCredits = CycleCredits
|
|
4279
|
+
|
|
4280
|
+
@property
|
|
4281
|
+
def TotalCycles(self):
|
|
4282
|
+
r"""<p>总周期数。</p>
|
|
4283
|
+
:rtype: int
|
|
4284
|
+
"""
|
|
4285
|
+
return self._TotalCycles
|
|
4286
|
+
|
|
4287
|
+
@TotalCycles.setter
|
|
4288
|
+
def TotalCycles(self, TotalCycles):
|
|
4289
|
+
self._TotalCycles = TotalCycles
|
|
4290
|
+
|
|
4291
|
+
@property
|
|
4292
|
+
def CurrentCycle(self):
|
|
4293
|
+
r"""<p>当前周期序号。</p>
|
|
4294
|
+
:rtype: int
|
|
4295
|
+
"""
|
|
4296
|
+
return self._CurrentCycle
|
|
4297
|
+
|
|
4298
|
+
@CurrentCycle.setter
|
|
4299
|
+
def CurrentCycle(self, CurrentCycle):
|
|
4300
|
+
self._CurrentCycle = CurrentCycle
|
|
4301
|
+
|
|
4302
|
+
@property
|
|
4303
|
+
def RemainCycles(self):
|
|
4304
|
+
r"""<p>剩余周期数。</p>
|
|
4305
|
+
:rtype: int
|
|
4306
|
+
"""
|
|
4307
|
+
return self._RemainCycles
|
|
4308
|
+
|
|
4309
|
+
@RemainCycles.setter
|
|
4310
|
+
def RemainCycles(self, RemainCycles):
|
|
4311
|
+
self._RemainCycles = RemainCycles
|
|
4312
|
+
|
|
4313
|
+
@property
|
|
4314
|
+
def StartTime(self):
|
|
4315
|
+
r"""<p>套餐生效时间,ISO 8601 格式。</p>
|
|
4316
|
+
:rtype: str
|
|
4317
|
+
"""
|
|
4318
|
+
return self._StartTime
|
|
4319
|
+
|
|
4320
|
+
@StartTime.setter
|
|
4321
|
+
def StartTime(self, StartTime):
|
|
4322
|
+
self._StartTime = StartTime
|
|
4323
|
+
|
|
4324
|
+
@property
|
|
4325
|
+
def ExpireTime(self):
|
|
4326
|
+
r"""<p>套餐过期时间,ISO 8601 格式。</p>
|
|
4327
|
+
:rtype: str
|
|
4328
|
+
"""
|
|
4329
|
+
return self._ExpireTime
|
|
4330
|
+
|
|
4331
|
+
@ExpireTime.setter
|
|
4332
|
+
def ExpireTime(self, ExpireTime):
|
|
4333
|
+
self._ExpireTime = ExpireTime
|
|
4334
|
+
|
|
4335
|
+
@property
|
|
4336
|
+
def PeriodEndDate(self):
|
|
4337
|
+
r"""<p>当前周期到期日,ISO 8601 格式。</p>
|
|
4338
|
+
:rtype: str
|
|
4339
|
+
"""
|
|
4340
|
+
return self._PeriodEndDate
|
|
4341
|
+
|
|
4342
|
+
@PeriodEndDate.setter
|
|
4343
|
+
def PeriodEndDate(self, PeriodEndDate):
|
|
4344
|
+
self._PeriodEndDate = PeriodEndDate
|
|
4345
|
+
|
|
4346
|
+
@property
|
|
4347
|
+
def AutoRenewFlag(self):
|
|
4348
|
+
r"""<p>自动续费标识。取值:0(未开启)、1(已开启)。</p>
|
|
4349
|
+
:rtype: int
|
|
4350
|
+
"""
|
|
4351
|
+
return self._AutoRenewFlag
|
|
4352
|
+
|
|
4353
|
+
@AutoRenewFlag.setter
|
|
4354
|
+
def AutoRenewFlag(self, AutoRenewFlag):
|
|
4355
|
+
self._AutoRenewFlag = AutoRenewFlag
|
|
4356
|
+
|
|
4357
|
+
@property
|
|
4358
|
+
def OutputToken(self):
|
|
4359
|
+
r"""<p>输出token数</p><p>单位:tokens</p>
|
|
4360
|
+
:rtype: int
|
|
4361
|
+
"""
|
|
4362
|
+
return self._OutputToken
|
|
4363
|
+
|
|
4364
|
+
@OutputToken.setter
|
|
4365
|
+
def OutputToken(self, OutputToken):
|
|
4366
|
+
self._OutputToken = OutputToken
|
|
4367
|
+
|
|
4368
|
+
@property
|
|
4369
|
+
def InputToken(self):
|
|
4370
|
+
r"""<p>输入token数</p><p>单位:token</p>
|
|
4371
|
+
:rtype: int
|
|
4372
|
+
"""
|
|
4373
|
+
return self._InputToken
|
|
4374
|
+
|
|
4375
|
+
@InputToken.setter
|
|
4376
|
+
def InputToken(self, InputToken):
|
|
4377
|
+
self._InputToken = InputToken
|
|
4378
|
+
|
|
4379
|
+
@property
|
|
4380
|
+
def CacheToken(self):
|
|
4381
|
+
r"""<p>缓存命中token数</p><p>单位:token</p>
|
|
4382
|
+
:rtype: int
|
|
4383
|
+
"""
|
|
4384
|
+
return self._CacheToken
|
|
4385
|
+
|
|
4386
|
+
@CacheToken.setter
|
|
4387
|
+
def CacheToken(self, CacheToken):
|
|
4388
|
+
self._CacheToken = CacheToken
|
|
4389
|
+
|
|
4390
|
+
@property
|
|
4391
|
+
def RequestId(self):
|
|
4392
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4393
|
+
:rtype: str
|
|
4394
|
+
"""
|
|
4395
|
+
return self._RequestId
|
|
4396
|
+
|
|
4397
|
+
@RequestId.setter
|
|
4398
|
+
def RequestId(self, RequestId):
|
|
4399
|
+
self._RequestId = RequestId
|
|
4400
|
+
|
|
4401
|
+
|
|
4402
|
+
def _deserialize(self, params):
|
|
4403
|
+
self._ProductType = params.get("ProductType")
|
|
4404
|
+
self._PackageStatus = params.get("PackageStatus")
|
|
4405
|
+
self._ResourceId = params.get("ResourceId")
|
|
4406
|
+
self._TotalCredits = params.get("TotalCredits")
|
|
4407
|
+
self._TotalUsed = params.get("TotalUsed")
|
|
4408
|
+
self._CycleCredits = params.get("CycleCredits")
|
|
4409
|
+
self._TotalCycles = params.get("TotalCycles")
|
|
4410
|
+
self._CurrentCycle = params.get("CurrentCycle")
|
|
4411
|
+
self._RemainCycles = params.get("RemainCycles")
|
|
4412
|
+
self._StartTime = params.get("StartTime")
|
|
4413
|
+
self._ExpireTime = params.get("ExpireTime")
|
|
4414
|
+
self._PeriodEndDate = params.get("PeriodEndDate")
|
|
4415
|
+
self._AutoRenewFlag = params.get("AutoRenewFlag")
|
|
4416
|
+
self._OutputToken = params.get("OutputToken")
|
|
4417
|
+
self._InputToken = params.get("InputToken")
|
|
4418
|
+
self._CacheToken = params.get("CacheToken")
|
|
4419
|
+
self._RequestId = params.get("RequestId")
|
|
4420
|
+
|
|
4421
|
+
|
|
4118
4422
|
class DescribeTokenPlanRequest(AbstractModel):
|
|
4119
4423
|
r"""DescribeTokenPlan请求参数结构体
|
|
4120
4424
|
|
|
@@ -6553,6 +6857,120 @@ class ModelSpec(AbstractModel):
|
|
|
6553
6857
|
|
|
6554
6858
|
|
|
6555
6859
|
|
|
6860
|
+
class ModifyApiKeyBindingsRequest(AbstractModel):
|
|
6861
|
+
r"""ModifyApiKeyBindings请求参数结构体
|
|
6862
|
+
|
|
6863
|
+
"""
|
|
6864
|
+
|
|
6865
|
+
def __init__(self):
|
|
6866
|
+
r"""
|
|
6867
|
+
:param _ApiKeyId: <p>API 密钥 ID。</p>
|
|
6868
|
+
:type ApiKeyId: str
|
|
6869
|
+
:param _Platform: <p>平台类型。取值:maas。</p>
|
|
6870
|
+
:type Platform: str
|
|
6871
|
+
:param _BindType: <p>绑定类型。取值:all(全部模型和接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。</p><p>枚举值:</p><ul><li>model_custom_endpoint_custom: 自定义模型+自定义接入点</li></ul>
|
|
6872
|
+
:type BindType: str
|
|
6873
|
+
:param _Bindings: <p>修改后的apikey的模型或服务绑定列表</p>
|
|
6874
|
+
:type Bindings: list of BindingItem
|
|
6875
|
+
"""
|
|
6876
|
+
self._ApiKeyId = None
|
|
6877
|
+
self._Platform = None
|
|
6878
|
+
self._BindType = None
|
|
6879
|
+
self._Bindings = None
|
|
6880
|
+
|
|
6881
|
+
@property
|
|
6882
|
+
def ApiKeyId(self):
|
|
6883
|
+
r"""<p>API 密钥 ID。</p>
|
|
6884
|
+
:rtype: str
|
|
6885
|
+
"""
|
|
6886
|
+
return self._ApiKeyId
|
|
6887
|
+
|
|
6888
|
+
@ApiKeyId.setter
|
|
6889
|
+
def ApiKeyId(self, ApiKeyId):
|
|
6890
|
+
self._ApiKeyId = ApiKeyId
|
|
6891
|
+
|
|
6892
|
+
@property
|
|
6893
|
+
def Platform(self):
|
|
6894
|
+
r"""<p>平台类型。取值:maas。</p>
|
|
6895
|
+
:rtype: str
|
|
6896
|
+
"""
|
|
6897
|
+
return self._Platform
|
|
6898
|
+
|
|
6899
|
+
@Platform.setter
|
|
6900
|
+
def Platform(self, Platform):
|
|
6901
|
+
self._Platform = Platform
|
|
6902
|
+
|
|
6903
|
+
@property
|
|
6904
|
+
def BindType(self):
|
|
6905
|
+
r"""<p>绑定类型。取值:all(全部模型和接入点)、model_custom_endpoint_custom(自定义模型+自定义接入点)。</p><p>枚举值:</p><ul><li>model_custom_endpoint_custom: 自定义模型+自定义接入点</li></ul>
|
|
6906
|
+
:rtype: str
|
|
6907
|
+
"""
|
|
6908
|
+
return self._BindType
|
|
6909
|
+
|
|
6910
|
+
@BindType.setter
|
|
6911
|
+
def BindType(self, BindType):
|
|
6912
|
+
self._BindType = BindType
|
|
6913
|
+
|
|
6914
|
+
@property
|
|
6915
|
+
def Bindings(self):
|
|
6916
|
+
r"""<p>修改后的apikey的模型或服务绑定列表</p>
|
|
6917
|
+
:rtype: list of BindingItem
|
|
6918
|
+
"""
|
|
6919
|
+
return self._Bindings
|
|
6920
|
+
|
|
6921
|
+
@Bindings.setter
|
|
6922
|
+
def Bindings(self, Bindings):
|
|
6923
|
+
self._Bindings = Bindings
|
|
6924
|
+
|
|
6925
|
+
|
|
6926
|
+
def _deserialize(self, params):
|
|
6927
|
+
self._ApiKeyId = params.get("ApiKeyId")
|
|
6928
|
+
self._Platform = params.get("Platform")
|
|
6929
|
+
self._BindType = params.get("BindType")
|
|
6930
|
+
if params.get("Bindings") is not None:
|
|
6931
|
+
self._Bindings = []
|
|
6932
|
+
for item in params.get("Bindings"):
|
|
6933
|
+
obj = BindingItem()
|
|
6934
|
+
obj._deserialize(item)
|
|
6935
|
+
self._Bindings.append(obj)
|
|
6936
|
+
memeber_set = set(params.keys())
|
|
6937
|
+
for name, value in vars(self).items():
|
|
6938
|
+
property_name = name[1:]
|
|
6939
|
+
if property_name in memeber_set:
|
|
6940
|
+
memeber_set.remove(property_name)
|
|
6941
|
+
if len(memeber_set) > 0:
|
|
6942
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6943
|
+
|
|
6944
|
+
|
|
6945
|
+
|
|
6946
|
+
class ModifyApiKeyBindingsResponse(AbstractModel):
|
|
6947
|
+
r"""ModifyApiKeyBindings返回参数结构体
|
|
6948
|
+
|
|
6949
|
+
"""
|
|
6950
|
+
|
|
6951
|
+
def __init__(self):
|
|
6952
|
+
r"""
|
|
6953
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6954
|
+
:type RequestId: str
|
|
6955
|
+
"""
|
|
6956
|
+
self._RequestId = None
|
|
6957
|
+
|
|
6958
|
+
@property
|
|
6959
|
+
def RequestId(self):
|
|
6960
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6961
|
+
:rtype: str
|
|
6962
|
+
"""
|
|
6963
|
+
return self._RequestId
|
|
6964
|
+
|
|
6965
|
+
@RequestId.setter
|
|
6966
|
+
def RequestId(self, RequestId):
|
|
6967
|
+
self._RequestId = RequestId
|
|
6968
|
+
|
|
6969
|
+
|
|
6970
|
+
def _deserialize(self, params):
|
|
6971
|
+
self._RequestId = params.get("RequestId")
|
|
6972
|
+
|
|
6973
|
+
|
|
6556
6974
|
class ModifyApiKeyInfoRequest(AbstractModel):
|
|
6557
6975
|
r"""ModifyApiKeyInfo请求参数结构体
|
|
6558
6976
|
|
|
@@ -646,6 +646,31 @@ class TokenhubClient(AbstractClient):
|
|
|
646
646
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
647
647
|
|
|
648
648
|
|
|
649
|
+
def DescribeTokenPlanPersonalPackage(self, request):
|
|
650
|
+
r"""查询个人版套餐详情。
|
|
651
|
+
|
|
652
|
+
查询指定产品类型的个人版 Token Plan 套餐状态、额度及续费信息。
|
|
653
|
+
|
|
654
|
+
:param request: Request instance for DescribeTokenPlanPersonalPackage.
|
|
655
|
+
:type request: :class:`tencentcloud.tokenhub.v20260322.models.DescribeTokenPlanPersonalPackageRequest`
|
|
656
|
+
:rtype: :class:`tencentcloud.tokenhub.v20260322.models.DescribeTokenPlanPersonalPackageResponse`
|
|
657
|
+
|
|
658
|
+
"""
|
|
659
|
+
try:
|
|
660
|
+
params = request._serialize()
|
|
661
|
+
headers = request.headers
|
|
662
|
+
body = self.call("DescribeTokenPlanPersonalPackage", params, headers=headers)
|
|
663
|
+
response = json.loads(body)
|
|
664
|
+
model = models.DescribeTokenPlanPersonalPackageResponse()
|
|
665
|
+
model._deserialize(response["Response"])
|
|
666
|
+
return model
|
|
667
|
+
except Exception as e:
|
|
668
|
+
if isinstance(e, TencentCloudSDKException):
|
|
669
|
+
raise
|
|
670
|
+
else:
|
|
671
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
672
|
+
|
|
673
|
+
|
|
649
674
|
def DescribeUsageRankList(self, request):
|
|
650
675
|
r"""查询用量排行列表。
|
|
651
676
|
|
|
@@ -683,6 +708,31 @@ class TokenhubClient(AbstractClient):
|
|
|
683
708
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
684
709
|
|
|
685
710
|
|
|
711
|
+
def ModifyApiKeyBindings(self, request):
|
|
712
|
+
r"""更新 API 密钥绑定。
|
|
713
|
+
|
|
714
|
+
更新 API 密钥的绑定关系和绑定类型。BindType 为 all 时 Bindings 必须为空,BindType含 custom 时 Bindings 为绑定列表。
|
|
715
|
+
|
|
716
|
+
:param request: Request instance for ModifyApiKeyBindings.
|
|
717
|
+
:type request: :class:`tencentcloud.tokenhub.v20260322.models.ModifyApiKeyBindingsRequest`
|
|
718
|
+
:rtype: :class:`tencentcloud.tokenhub.v20260322.models.ModifyApiKeyBindingsResponse`
|
|
719
|
+
|
|
720
|
+
"""
|
|
721
|
+
try:
|
|
722
|
+
params = request._serialize()
|
|
723
|
+
headers = request.headers
|
|
724
|
+
body = self.call("ModifyApiKeyBindings", params, headers=headers)
|
|
725
|
+
response = json.loads(body)
|
|
726
|
+
model = models.ModifyApiKeyBindingsResponse()
|
|
727
|
+
model._deserialize(response["Response"])
|
|
728
|
+
return model
|
|
729
|
+
except Exception as e:
|
|
730
|
+
if isinstance(e, TencentCloudSDKException):
|
|
731
|
+
raise
|
|
732
|
+
else:
|
|
733
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
734
|
+
|
|
735
|
+
|
|
686
736
|
def ModifyApiKeyInfo(self, request):
|
|
687
737
|
r"""更新 API 密钥信息。
|
|
688
738
|
|
|
@@ -520,6 +520,26 @@ class TokenhubClient(AbstractClient):
|
|
|
520
520
|
|
|
521
521
|
return await self.call_and_deserialize(**kwargs)
|
|
522
522
|
|
|
523
|
+
async def DescribeTokenPlanPersonalPackage(
|
|
524
|
+
self,
|
|
525
|
+
request: models.DescribeTokenPlanPersonalPackageRequest,
|
|
526
|
+
opts: Dict = None,
|
|
527
|
+
) -> models.DescribeTokenPlanPersonalPackageResponse:
|
|
528
|
+
"""
|
|
529
|
+
查询个人版套餐详情。
|
|
530
|
+
|
|
531
|
+
查询指定产品类型的个人版 Token Plan 套餐状态、额度及续费信息。
|
|
532
|
+
"""
|
|
533
|
+
|
|
534
|
+
kwargs = {}
|
|
535
|
+
kwargs["action"] = "DescribeTokenPlanPersonalPackage"
|
|
536
|
+
kwargs["params"] = request._serialize()
|
|
537
|
+
kwargs["resp_cls"] = models.DescribeTokenPlanPersonalPackageResponse
|
|
538
|
+
kwargs["headers"] = request.headers
|
|
539
|
+
kwargs["opts"] = opts or {}
|
|
540
|
+
|
|
541
|
+
return await self.call_and_deserialize(**kwargs)
|
|
542
|
+
|
|
523
543
|
async def DescribeUsageRankList(
|
|
524
544
|
self,
|
|
525
545
|
request: models.DescribeUsageRankListRequest,
|
|
@@ -552,6 +572,26 @@ class TokenhubClient(AbstractClient):
|
|
|
552
572
|
|
|
553
573
|
return await self.call_and_deserialize(**kwargs)
|
|
554
574
|
|
|
575
|
+
async def ModifyApiKeyBindings(
|
|
576
|
+
self,
|
|
577
|
+
request: models.ModifyApiKeyBindingsRequest,
|
|
578
|
+
opts: Dict = None,
|
|
579
|
+
) -> models.ModifyApiKeyBindingsResponse:
|
|
580
|
+
"""
|
|
581
|
+
更新 API 密钥绑定。
|
|
582
|
+
|
|
583
|
+
更新 API 密钥的绑定关系和绑定类型。BindType 为 all 时 Bindings 必须为空,BindType含 custom 时 Bindings 为绑定列表。
|
|
584
|
+
"""
|
|
585
|
+
|
|
586
|
+
kwargs = {}
|
|
587
|
+
kwargs["action"] = "ModifyApiKeyBindings"
|
|
588
|
+
kwargs["params"] = request._serialize()
|
|
589
|
+
kwargs["resp_cls"] = models.ModifyApiKeyBindingsResponse
|
|
590
|
+
kwargs["headers"] = request.headers
|
|
591
|
+
kwargs["opts"] = opts or {}
|
|
592
|
+
|
|
593
|
+
return await self.call_and_deserialize(**kwargs)
|
|
594
|
+
|
|
555
595
|
async def ModifyApiKeyInfo(
|
|
556
596
|
self,
|
|
557
597
|
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.207
|
|
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.207
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=7wxxwgy4o2cS92M5HhRyu1CjoSZz6utbZRAzG9UpafU,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=BbS083_A4LLIkIZGJDTVBnuGtYvJ44Xn72rXOFqMGcs,332721
|
|
6
|
+
tencentcloud/tokenhub/v20260322/tokenhub_client.py,sha256=bD8whTEsOu9zsfp8stmC5-vzQL0KP8TU4xKJ65CMB3U,40010
|
|
7
|
+
tencentcloud/tokenhub/v20260322/tokenhub_client_async.py,sha256=30FazDMBcytqTcarMm3Dgw0xEfE3SIYYTTLwTwXO5Uo,28681
|
|
8
|
+
tencentcloud_sdk_python_tokenhub-3.1.207.dist-info/METADATA,sha256=RtMfAQtZ0MVj-AcdAQQ_QrKpHne9FIOi6CJ9U5iwcOQ,1522
|
|
9
|
+
tencentcloud_sdk_python_tokenhub-3.1.207.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_tokenhub-3.1.207.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_tokenhub-3.1.207.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
|