tencentcloud-sdk-python-tcb 3.1.183__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.183 → tencentcloud_sdk_python_tcb-3.1.191}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/models.py +233 -0
  5. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/tcb_client.py +23 -0
  6. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/tcb_client_async.py +18 -0
  7. {tencentcloud_sdk_python_tcb-3.1.183 → 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.183/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.183 → tencentcloud_sdk_python_tcb-3.1.191}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.183 → 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.183 → 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.183
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.183
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.183,<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.183'
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
 
@@ -22565,9 +22616,25 @@ class LocalizedTemplate(AbstractModel):
22565
22616
  :param _EnUS: <p>英文</p>
22566
22617
  注意:此字段可能返回 null,表示取不到有效值。
22567
22618
  :type EnUS: str
22619
+ :param _SubjectZhCN: <p>中文主题</p><p>入参限制:长度限制100字符以内,仅允许:{{.VerificationCode}}、{{.Usage}}、{{.Email}}、{{.ExpireMinutes}}、{{.ConfirmationURL}},未知变量拒绝</p>
22620
+ 注意:此字段可能返回 null,表示取不到有效值。
22621
+ :type SubjectZhCN: str
22622
+ :param _SubjectEnUS: <p>英文主题</p><p>入参限制:长度限制100字符以内,仅允许:{{.VerificationCode}}、{{.Usage}}、{{.Email}}、{{.ExpireMinutes}}、{{.ConfirmationURL}},未知变量拒绝</p>
22623
+ 注意:此字段可能返回 null,表示取不到有效值。
22624
+ :type SubjectEnUS: str
22625
+ :param _SenderNameZhCN: <p>中文发件人</p><p>入参限制:长度限制50字符以内,静态纯文本,不支持变量</p>
22626
+ 注意:此字段可能返回 null,表示取不到有效值。
22627
+ :type SenderNameZhCN: str
22628
+ :param _SenderNameEnUS: <p>英文发件人</p><p>默认值:长度限制50字符以内,静态纯文本,不支持变量</p>
22629
+ 注意:此字段可能返回 null,表示取不到有效值。
22630
+ :type SenderNameEnUS: str
22568
22631
  """
22569
22632
  self._ZhCN = None
22570
22633
  self._EnUS = None
22634
+ self._SubjectZhCN = None
22635
+ self._SubjectEnUS = None
22636
+ self._SenderNameZhCN = None
22637
+ self._SenderNameEnUS = None
22571
22638
 
22572
22639
  @property
22573
22640
  def ZhCN(self):
@@ -22593,10 +22660,62 @@ class LocalizedTemplate(AbstractModel):
22593
22660
  def EnUS(self, EnUS):
22594
22661
  self._EnUS = EnUS
22595
22662
 
22663
+ @property
22664
+ def SubjectZhCN(self):
22665
+ r"""<p>中文主题</p><p>入参限制:长度限制100字符以内,仅允许:{{.VerificationCode}}、{{.Usage}}、{{.Email}}、{{.ExpireMinutes}}、{{.ConfirmationURL}},未知变量拒绝</p>
22666
+ 注意:此字段可能返回 null,表示取不到有效值。
22667
+ :rtype: str
22668
+ """
22669
+ return self._SubjectZhCN
22670
+
22671
+ @SubjectZhCN.setter
22672
+ def SubjectZhCN(self, SubjectZhCN):
22673
+ self._SubjectZhCN = SubjectZhCN
22674
+
22675
+ @property
22676
+ def SubjectEnUS(self):
22677
+ r"""<p>英文主题</p><p>入参限制:长度限制100字符以内,仅允许:{{.VerificationCode}}、{{.Usage}}、{{.Email}}、{{.ExpireMinutes}}、{{.ConfirmationURL}},未知变量拒绝</p>
22678
+ 注意:此字段可能返回 null,表示取不到有效值。
22679
+ :rtype: str
22680
+ """
22681
+ return self._SubjectEnUS
22682
+
22683
+ @SubjectEnUS.setter
22684
+ def SubjectEnUS(self, SubjectEnUS):
22685
+ self._SubjectEnUS = SubjectEnUS
22686
+
22687
+ @property
22688
+ def SenderNameZhCN(self):
22689
+ r"""<p>中文发件人</p><p>入参限制:长度限制50字符以内,静态纯文本,不支持变量</p>
22690
+ 注意:此字段可能返回 null,表示取不到有效值。
22691
+ :rtype: str
22692
+ """
22693
+ return self._SenderNameZhCN
22694
+
22695
+ @SenderNameZhCN.setter
22696
+ def SenderNameZhCN(self, SenderNameZhCN):
22697
+ self._SenderNameZhCN = SenderNameZhCN
22698
+
22699
+ @property
22700
+ def SenderNameEnUS(self):
22701
+ r"""<p>英文发件人</p><p>默认值:长度限制50字符以内,静态纯文本,不支持变量</p>
22702
+ 注意:此字段可能返回 null,表示取不到有效值。
22703
+ :rtype: str
22704
+ """
22705
+ return self._SenderNameEnUS
22706
+
22707
+ @SenderNameEnUS.setter
22708
+ def SenderNameEnUS(self, SenderNameEnUS):
22709
+ self._SenderNameEnUS = SenderNameEnUS
22710
+
22596
22711
 
22597
22712
  def _deserialize(self, params):
22598
22713
  self._ZhCN = params.get("ZhCN")
22599
22714
  self._EnUS = params.get("EnUS")
22715
+ self._SubjectZhCN = params.get("SubjectZhCN")
22716
+ self._SubjectEnUS = params.get("SubjectEnUS")
22717
+ self._SenderNameZhCN = params.get("SenderNameZhCN")
22718
+ self._SenderNameEnUS = params.get("SenderNameEnUS")
22600
22719
  memeber_set = set(params.keys())
22601
22720
  for name, value in vars(self).items():
22602
22721
  property_name = name[1:]
@@ -24225,6 +24344,120 @@ class MigrationSummary(AbstractModel):
24225
24344
 
24226
24345
 
24227
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
+
24228
24461
  class ModifyClientRequest(AbstractModel):
24229
24462
  r"""ModifyClient请求参数结构体
24230
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.183
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.183
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.183