tencentcloud-sdk-python-tcb 3.1.190__tar.gz → 3.1.191__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.191}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/models.py +165 -0
  5. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/tcb_client.py +23 -0
  6. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/tcb_client_async.py +18 -0
  7. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_tcb-3.1.191/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_tcb-3.1.190/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.190 → tencentcloud_sdk_python_tcb-3.1.191}/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.191}/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.191
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.191
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.191,<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.191'
@@ -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
 
@@ -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.191
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.191
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.191
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.190