tencentcloud-sdk-python-tcb 3.1.190__tar.gz → 3.1.192__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_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud/tcb/v20180608/errorcodes.py +6 -0
  5. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud/tcb/v20180608/models.py +177 -12
  6. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud/tcb/v20180608/tcb_client.py +23 -0
  7. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud/tcb/v20180608/tcb_client_async.py +18 -0
  8. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_tcb-3.1.192/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_tcb-3.1.190/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud/tcb/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.192}/tencentcloud_sdk_python_tcb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.190
3
+ Version: 3.1.192
4
4
  Summary: Tencent Cloud Tcb 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.190
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.192
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-tcb',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.190,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.192,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tcb SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.190'
17
+ __version__ = '3.1.192'
@@ -17,6 +17,9 @@
17
17
  # CAM签名/鉴权错误。
18
18
  AUTHFAILURE = 'AuthFailure'
19
19
 
20
+ # 鉴权失败,请在权限模块设置合理权限。
21
+ AUTHFAILURE_DATASOURCEOPERATIONAUTHFAILURE = 'AuthFailure.DataSourceOperationAuthFailure'
22
+
20
23
  # 您没有查看该资源的权限。
21
24
  AUTHFAILURE_UNAUTHORIZEDOPERATION = 'AuthFailure.UnauthorizedOperation'
22
25
 
@@ -320,6 +323,9 @@ RESOURCENOTFOUND_TABLE = 'ResourceNotFound.Table'
320
323
  # 表不存在。
321
324
  RESOURCENOTFOUND_TABLENOTFOUND = 'ResourceNotFound.TableNotFound'
322
325
 
326
+ # 未找到指定任务。
327
+ RESOURCENOTFOUND_TASKNOTFOUND = 'ResourceNotFound.TaskNotFound'
328
+
323
329
  # 主题不存在
324
330
  RESOURCENOTFOUND_TOPICNOTEXIST = 'ResourceNotFound.TopicNotExist'
325
331
 
@@ -347,6 +347,57 @@ class AIModelSecret(AbstractModel):
347
347
 
348
348
 
349
349
 
350
+ class AIModelStatus(AbstractModel):
351
+ r"""控制模型启用和停止
352
+
353
+ """
354
+
355
+ def __init__(self):
356
+ r"""
357
+ :param _Model: <p>模型名称</p>
358
+ :type Model: str
359
+ :param _Status: <p>开关状态</p><p>枚举值:</p><ul><li>ENABLE: 打开模型</li><li>DISABLE: 关闭模型</li></ul>
360
+ :type Status: str
361
+ """
362
+ self._Model = None
363
+ self._Status = None
364
+
365
+ @property
366
+ def Model(self):
367
+ r"""<p>模型名称</p>
368
+ :rtype: str
369
+ """
370
+ return self._Model
371
+
372
+ @Model.setter
373
+ def Model(self, Model):
374
+ self._Model = Model
375
+
376
+ @property
377
+ def Status(self):
378
+ r"""<p>开关状态</p><p>枚举值:</p><ul><li>ENABLE: 打开模型</li><li>DISABLE: 关闭模型</li></ul>
379
+ :rtype: str
380
+ """
381
+ return self._Status
382
+
383
+ @Status.setter
384
+ def Status(self, Status):
385
+ self._Status = Status
386
+
387
+
388
+ def _deserialize(self, params):
389
+ self._Model = params.get("Model")
390
+ self._Status = params.get("Status")
391
+ memeber_set = set(params.keys())
392
+ for name, value in vars(self).items():
393
+ property_name = name[1:]
394
+ if property_name in memeber_set:
395
+ memeber_set.remove(property_name)
396
+ if len(memeber_set) > 0:
397
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
398
+
399
+
400
+
350
401
  class AddProviderRequest(AbstractModel):
351
402
  r"""AddProvider请求参数结构体
352
403
 
@@ -15825,7 +15876,7 @@ class DescribeTaskResultRequest(AbstractModel):
15825
15876
 
15826
15877
  def __init__(self):
15827
15878
  r"""
15828
- :param _EnvId: <p>云开发环境ID</p>
15879
+ :param _EnvId: <p>云开发环境 ID。查询 PGDump 任务时,所有状态均须提供且与任务环境一致,用于验证调用方环境归属。环境隔离或销毁后,仍可在归档保留期内查询历史任务及下载文件。</p>
15829
15880
  :type EnvId: str
15830
15881
  :param _TaskId: <p>任务ID</p>
15831
15882
  :type TaskId: str
@@ -15835,7 +15886,7 @@ class DescribeTaskResultRequest(AbstractModel):
15835
15886
 
15836
15887
  @property
15837
15888
  def EnvId(self):
15838
- r"""<p>云开发环境ID</p>
15889
+ r"""<p>云开发环境 ID。查询 PGDump 任务时,所有状态均须提供且与任务环境一致,用于验证调用方环境归属。环境隔离或销毁后,仍可在归档保留期内查询历史任务及下载文件。</p>
15839
15890
  :rtype: str
15840
15891
  """
15841
15892
  return self._EnvId
@@ -15878,19 +15929,19 @@ class DescribeTaskResultResponse(AbstractModel):
15878
15929
  r"""
15879
15930
  :param _TaskId: <p>任务ID</p>
15880
15931
  :type TaskId: str
15881
- :param _TaskType: <p>任务类型</p><p>枚举值:</p><ul><li>PGUserMigration: PG Migrate 任务</li></ul>
15932
+ :param _TaskType: <p>任务类型</p><p>枚举值:</p><ul><li>PGUserMigration: PG Migrate 任务</li><li>PGDump: PG 数据库整库导出任务</li></ul>
15882
15933
  :type TaskType: str
15883
- :param _Status: <p>任务状态</p><p>枚举值:</p><ul><li>Failed: 失败</li><li>Succeed: 成功</li><li>Accepted: 已接收</li><li>Running: 运行中</li></ul>
15934
+ :param _Status: <p>任务状态</p><p>枚举值:</p><ul><li>Failed: 失败</li><li>Succeed: 成功</li><li>Accepted: 已接收</li><li>Running: 运行中</li><li>Pending: 已受理,等待工作流启动</li></ul>
15884
15935
  :type Status: str
15885
- :param _Phase: <p>当前步骤</p>
15936
+ :param _Phase: <p>任务当前执行步骤。PGDump 任务可能为 Queued(排队)、Preparing(准备)、Dumping(导出)、Validating(校验)、Uploading(上传)、Finalizing(收尾)、Completed(完成);其他任务的步骤由任务类型决定。</p>
15886
15937
  :type Phase: str
15887
- :param _Reason: <p>失败原因</p>
15938
+ :param _Reason: <p>失败原因。PGDump 任务返回稳定业务码:PGDumpPermissionDenied、PGDumpToolVersionMismatch、PGDumpSizeExceeded、PGDumpTimeout、PGDumpProcessFailed、PGDumpUploadFailed、PGDumpSourceChanged;成功时为空。其他任务按原有失败原因返回。</p>
15888
15939
  :type Reason: str
15889
15940
  :param _CreatedAt: <p>创建时间</p><p>参数格式:2026-05-26T11:26:14+08:00</p>
15890
15941
  :type CreatedAt: str
15891
15942
  :param _UpdatedAt: <p>最后更新时间</p><p>参数格式:2026-05-26T11:26:14+08:00</p>
15892
15943
  :type UpdatedAt: str
15893
- :param _Params: <p>任务参数</p>
15944
+ :param _Params: <p>任务参数键值对列表,Value 均为字符串。PGDump 成功任务包含 file_name(文件名)、file_size_bytes(字节数)、checksum_sha256(SHA256)、source_db_version(源库版本)、dump_tool_version(工具版本)、file_expires_at(RFC3339 过期时间)。文件未过期且对象存在时返回 download_url;URL 过期后可重新查询,勿记录或持久化签名 URL。仅对象确认缺失时返回 file_missing=true;文件过期不返回下载 URL。归档查询或签名临时故障返回系统错误,任务终态不变。</p>
15894
15945
  :type Params: list of ObjectKV
15895
15946
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
15896
15947
  :type RequestId: str
@@ -15918,7 +15969,7 @@ class DescribeTaskResultResponse(AbstractModel):
15918
15969
 
15919
15970
  @property
15920
15971
  def TaskType(self):
15921
- r"""<p>任务类型</p><p>枚举值:</p><ul><li>PGUserMigration: PG Migrate 任务</li></ul>
15972
+ r"""<p>任务类型</p><p>枚举值:</p><ul><li>PGUserMigration: PG Migrate 任务</li><li>PGDump: PG 数据库整库导出任务</li></ul>
15922
15973
  :rtype: str
15923
15974
  """
15924
15975
  return self._TaskType
@@ -15929,7 +15980,7 @@ class DescribeTaskResultResponse(AbstractModel):
15929
15980
 
15930
15981
  @property
15931
15982
  def Status(self):
15932
- r"""<p>任务状态</p><p>枚举值:</p><ul><li>Failed: 失败</li><li>Succeed: 成功</li><li>Accepted: 已接收</li><li>Running: 运行中</li></ul>
15983
+ r"""<p>任务状态</p><p>枚举值:</p><ul><li>Failed: 失败</li><li>Succeed: 成功</li><li>Accepted: 已接收</li><li>Running: 运行中</li><li>Pending: 已受理,等待工作流启动</li></ul>
15933
15984
  :rtype: str
15934
15985
  """
15935
15986
  return self._Status
@@ -15940,7 +15991,7 @@ class DescribeTaskResultResponse(AbstractModel):
15940
15991
 
15941
15992
  @property
15942
15993
  def Phase(self):
15943
- r"""<p>当前步骤</p>
15994
+ r"""<p>任务当前执行步骤。PGDump 任务可能为 Queued(排队)、Preparing(准备)、Dumping(导出)、Validating(校验)、Uploading(上传)、Finalizing(收尾)、Completed(完成);其他任务的步骤由任务类型决定。</p>
15944
15995
  :rtype: str
15945
15996
  """
15946
15997
  return self._Phase
@@ -15951,7 +16002,7 @@ class DescribeTaskResultResponse(AbstractModel):
15951
16002
 
15952
16003
  @property
15953
16004
  def Reason(self):
15954
- r"""<p>失败原因</p>
16005
+ r"""<p>失败原因。PGDump 任务返回稳定业务码:PGDumpPermissionDenied、PGDumpToolVersionMismatch、PGDumpSizeExceeded、PGDumpTimeout、PGDumpProcessFailed、PGDumpUploadFailed、PGDumpSourceChanged;成功时为空。其他任务按原有失败原因返回。</p>
15955
16006
  :rtype: str
15956
16007
  """
15957
16008
  return self._Reason
@@ -15984,7 +16035,7 @@ class DescribeTaskResultResponse(AbstractModel):
15984
16035
 
15985
16036
  @property
15986
16037
  def Params(self):
15987
- r"""<p>任务参数</p>
16038
+ r"""<p>任务参数键值对列表,Value 均为字符串。PGDump 成功任务包含 file_name(文件名)、file_size_bytes(字节数)、checksum_sha256(SHA256)、source_db_version(源库版本)、dump_tool_version(工具版本)、file_expires_at(RFC3339 过期时间)。文件未过期且对象存在时返回 download_url;URL 过期后可重新查询,勿记录或持久化签名 URL。仅对象确认缺失时返回 file_missing=true;文件过期不返回下载 URL。归档查询或签名临时故障返回系统错误,任务终态不变。</p>
15988
16039
  :rtype: list of ObjectKV
15989
16040
  """
15990
16041
  return self._Params
@@ -24293,6 +24344,120 @@ class MigrationSummary(AbstractModel):
24293
24344
 
24294
24345
 
24295
24346
 
24347
+ class ModifyAIModelStatusRequest(AbstractModel):
24348
+ r"""ModifyAIModelStatus请求参数结构体
24349
+
24350
+ """
24351
+
24352
+ def __init__(self):
24353
+ r"""
24354
+ :param _EnvId: <p>环境ID</p>
24355
+ :type EnvId: str
24356
+ :param _GroupName: <p>分组名</p><p>枚举值:</p><ul><li>cloudbase: 生文系列内置模型</li><li>hunyuan-image: 生图系列内置模型</li></ul><p>系统内置分组固定标识</p>
24357
+ :type GroupName: str
24358
+ :param _Models: <p>模型设置</p><p>空数组表示无操作</p>
24359
+ :type Models: list of AIModelStatus
24360
+ """
24361
+ self._EnvId = None
24362
+ self._GroupName = None
24363
+ self._Models = None
24364
+
24365
+ @property
24366
+ def EnvId(self):
24367
+ r"""<p>环境ID</p>
24368
+ :rtype: str
24369
+ """
24370
+ return self._EnvId
24371
+
24372
+ @EnvId.setter
24373
+ def EnvId(self, EnvId):
24374
+ self._EnvId = EnvId
24375
+
24376
+ @property
24377
+ def GroupName(self):
24378
+ r"""<p>分组名</p><p>枚举值:</p><ul><li>cloudbase: 生文系列内置模型</li><li>hunyuan-image: 生图系列内置模型</li></ul><p>系统内置分组固定标识</p>
24379
+ :rtype: str
24380
+ """
24381
+ return self._GroupName
24382
+
24383
+ @GroupName.setter
24384
+ def GroupName(self, GroupName):
24385
+ self._GroupName = GroupName
24386
+
24387
+ @property
24388
+ def Models(self):
24389
+ r"""<p>模型设置</p><p>空数组表示无操作</p>
24390
+ :rtype: list of AIModelStatus
24391
+ """
24392
+ return self._Models
24393
+
24394
+ @Models.setter
24395
+ def Models(self, Models):
24396
+ self._Models = Models
24397
+
24398
+
24399
+ def _deserialize(self, params):
24400
+ self._EnvId = params.get("EnvId")
24401
+ self._GroupName = params.get("GroupName")
24402
+ if params.get("Models") is not None:
24403
+ self._Models = []
24404
+ for item in params.get("Models"):
24405
+ obj = AIModelStatus()
24406
+ obj._deserialize(item)
24407
+ self._Models.append(obj)
24408
+ memeber_set = set(params.keys())
24409
+ for name, value in vars(self).items():
24410
+ property_name = name[1:]
24411
+ if property_name in memeber_set:
24412
+ memeber_set.remove(property_name)
24413
+ if len(memeber_set) > 0:
24414
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
24415
+
24416
+
24417
+
24418
+ class ModifyAIModelStatusResponse(AbstractModel):
24419
+ r"""ModifyAIModelStatus返回参数结构体
24420
+
24421
+ """
24422
+
24423
+ def __init__(self):
24424
+ r"""
24425
+ :param _Count: <p>影响的分组数</p>
24426
+ :type Count: int
24427
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
24428
+ :type RequestId: str
24429
+ """
24430
+ self._Count = None
24431
+ self._RequestId = None
24432
+
24433
+ @property
24434
+ def Count(self):
24435
+ r"""<p>影响的分组数</p>
24436
+ :rtype: int
24437
+ """
24438
+ return self._Count
24439
+
24440
+ @Count.setter
24441
+ def Count(self, Count):
24442
+ self._Count = Count
24443
+
24444
+ @property
24445
+ def RequestId(self):
24446
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
24447
+ :rtype: str
24448
+ """
24449
+ return self._RequestId
24450
+
24451
+ @RequestId.setter
24452
+ def RequestId(self, RequestId):
24453
+ self._RequestId = RequestId
24454
+
24455
+
24456
+ def _deserialize(self, params):
24457
+ self._Count = params.get("Count")
24458
+ self._RequestId = params.get("RequestId")
24459
+
24460
+
24296
24461
  class ModifyClientRequest(AbstractModel):
24297
24462
  r"""ModifyClient请求参数结构体
24298
24463
 
@@ -2261,6 +2261,29 @@ class TcbClient(AbstractClient):
2261
2261
  raise TencentCloudSDKException(type(e).__name__, str(e))
2262
2262
 
2263
2263
 
2264
+ def ModifyAIModelStatus(self, request):
2265
+ r"""启停AI模型,只支持内置分组 cloudbase 和 hunyuan-image
2266
+
2267
+ :param request: Request instance for ModifyAIModelStatus.
2268
+ :type request: :class:`tencentcloud.tcb.v20180608.models.ModifyAIModelStatusRequest`
2269
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.ModifyAIModelStatusResponse`
2270
+
2271
+ """
2272
+ try:
2273
+ params = request._serialize()
2274
+ headers = request.headers
2275
+ body = self.call("ModifyAIModelStatus", params, headers=headers)
2276
+ response = json.loads(body)
2277
+ model = models.ModifyAIModelStatusResponse()
2278
+ model._deserialize(response["Response"])
2279
+ return model
2280
+ except Exception as e:
2281
+ if isinstance(e, TencentCloudSDKException):
2282
+ raise
2283
+ else:
2284
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2285
+
2286
+
2264
2287
  def ModifyClient(self, request):
2265
2288
  r"""修改客户端配置。采用增量更新策略,仅更新请求中传入的非空字段,未传入的字段保持原值不变。支持修改客户端基本信息(名称、图标、描述、主页地址)、安全域名、允许的 Scope 列表、Token 有效期、会话控制策略及启用状态等配置。
2266
2289
  Id、Secret、CreatedAt、Meta 等字段在该接口中不可修改,当客户端 ID 等于环境 ID 且客户端尚未创建时,将自动创建默认客户端配置。
@@ -1805,6 +1805,24 @@ class TcbClient(AbstractClient):
1805
1805
 
1806
1806
  return await self.call_and_deserialize(**kwargs)
1807
1807
 
1808
+ async def ModifyAIModelStatus(
1809
+ self,
1810
+ request: models.ModifyAIModelStatusRequest,
1811
+ opts: Dict = None,
1812
+ ) -> models.ModifyAIModelStatusResponse:
1813
+ """
1814
+ 启停AI模型,只支持内置分组 cloudbase 和 hunyuan-image
1815
+ """
1816
+
1817
+ kwargs = {}
1818
+ kwargs["action"] = "ModifyAIModelStatus"
1819
+ kwargs["params"] = request._serialize()
1820
+ kwargs["resp_cls"] = models.ModifyAIModelStatusResponse
1821
+ kwargs["headers"] = request.headers
1822
+ kwargs["opts"] = opts or {}
1823
+
1824
+ return await self.call_and_deserialize(**kwargs)
1825
+
1808
1826
  async def ModifyClient(
1809
1827
  self,
1810
1828
  request: models.ModifyClientRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.190
3
+ Version: 3.1.192
4
4
  Summary: Tencent Cloud Tcb 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.190
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.192
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.192
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.190