tencentcloud-sdk-python 3.0.1378__py2.py3-none-any.whl → 3.0.1379__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/batch/v20170312/batch_client.py +3 -3
- tencentcloud/batch/v20170312/models.py +230 -168
- tencentcloud/cbs/v20170312/cbs_client.py +1 -1
- tencentcloud/cbs/v20170312/models.py +18 -18
- tencentcloud/clb/v20180317/clb_client.py +7 -7
- tencentcloud/clb/v20180317/models.py +51 -41
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- tencentcloud/dbbrain/v20210527/models.py +368 -0
- tencentcloud/dnspod/v20210323/dnspod_client.py +23 -0
- tencentcloud/dnspod/v20210323/models.py +503 -0
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +68 -44
- tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
- tencentcloud/mps/v20190612/models.py +211 -2
- tencentcloud/postgres/v20170312/models.py +12 -4
- tencentcloud/tcb/v20180608/models.py +4 -4
- tencentcloud/tdmq/v20200217/errorcodes.py +27 -0
- tencentcloud/thpc/v20211109/models.py +2 -2
- tencentcloud/thpc/v20220401/models.py +4 -4
- tencentcloud/thpc/v20230321/errorcodes.py +9 -0
- tencentcloud/thpc/v20230321/models.py +79 -0
- tencentcloud/thpc/v20230321/thpc_client.py +23 -0
- tencentcloud/tmt/v20180321/errorcodes.py +3 -0
- tencentcloud/tmt/v20180321/models.py +296 -1
- tencentcloud/tmt/v20180321/tmt_client.py +28 -0
- tencentcloud/vpc/v20170312/models.py +24 -18
- tencentcloud/waf/v20180125/models.py +15 -0
- tencentcloud/wedata/v20210820/errorcodes.py +9 -0
- tencentcloud/wedata/v20210820/models.py +1078 -0
- tencentcloud/wedata/v20210820/wedata_client.py +46 -0
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/RECORD +36 -36
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1378.dist-info → tencentcloud_sdk_python-3.0.1379.dist-info}/top_level.txt +0 -0
@@ -98,6 +98,34 @@ class TmtClient(AbstractClient):
|
|
98
98
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
99
99
|
|
100
100
|
|
101
|
+
def ImageTranslateLLM(self, request):
|
102
|
+
"""提供18种语言的图片翻译服务,可自动识别图片中的文本内容并翻译成目标语言,识别后的文本按行翻译,后续会提供可按段落翻译的版本。
|
103
|
+
|
104
|
+
- 输入图片格式:png、jpg、jpeg等常用图片格式,不支持gif动图。
|
105
|
+
- 输出图片格式:jpg。
|
106
|
+
|
107
|
+
提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源 部分。
|
108
|
+
|
109
|
+
:param request: Request instance for ImageTranslateLLM.
|
110
|
+
:type request: :class:`tencentcloud.tmt.v20180321.models.ImageTranslateLLMRequest`
|
111
|
+
:rtype: :class:`tencentcloud.tmt.v20180321.models.ImageTranslateLLMResponse`
|
112
|
+
|
113
|
+
"""
|
114
|
+
try:
|
115
|
+
params = request._serialize()
|
116
|
+
headers = request.headers
|
117
|
+
body = self.call("ImageTranslateLLM", params, headers=headers)
|
118
|
+
response = json.loads(body)
|
119
|
+
model = models.ImageTranslateLLMResponse()
|
120
|
+
model._deserialize(response["Response"])
|
121
|
+
return model
|
122
|
+
except Exception as e:
|
123
|
+
if isinstance(e, TencentCloudSDKException):
|
124
|
+
raise
|
125
|
+
else:
|
126
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
127
|
+
|
128
|
+
|
101
129
|
def LanguageDetect(self, request):
|
102
130
|
"""可自动识别文本内容的语言种类,轻量高效,无需额外实现判断方式,使面向客户的服务体验更佳。 <br />
|
103
131
|
提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源 部分。
|
@@ -2550,13 +2550,16 @@ class AllocateIp6AddressesBandwidthRequest(AbstractModel):
|
|
2550
2550
|
|
2551
2551
|
def __init__(self):
|
2552
2552
|
r"""
|
2553
|
-
:param _Ip6Addresses: 需要开通公网访问能力的IPv6
|
2553
|
+
:param _Ip6Addresses: 需要开通公网访问能力的IPv6地址,可以使用[DescribeIp6Addresses](https://cloud.tencent.com/document/product/215/40089)接口查询Ip6Addresses。
|
2554
|
+
|
2554
2555
|
:type Ip6Addresses: list of str
|
2555
|
-
:param _InternetMaxBandwidthOut:
|
2556
|
+
:param _InternetMaxBandwidthOut: 带宽上限,单位Mbps。可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://cloud.tencent.com/document/product/1142/38369#IPv6)。
|
2557
|
+
默认值:1Mbps
|
2556
2558
|
:type InternetMaxBandwidthOut: int
|
2557
|
-
:param _InternetChargeType: 网络计费模式。IPv6
|
2559
|
+
:param _InternetChargeType: 网络计费模式。IPv6当前支持:<li>TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费</li><li>BANDWIDTH_PACKAGE:共享带宽包付费</li>
|
2560
|
+
默认值:TRAFFIC_POSTPAID_BY_HOUR
|
2558
2561
|
:type InternetChargeType: str
|
2559
|
-
:param _BandwidthPackageId: 带宽包id
|
2562
|
+
:param _BandwidthPackageId: 带宽包id,设定该参数且InternetChargeType为BANDWIDTH_PACKAGE,则表示创建的IPv6加入该带宽包并采用带宽包计费。可以使用[DescribeBandwidthPackages](https://cloud.tencent.com/document/product/215/19209)接口查询BandwidthPackageId。
|
2560
2563
|
:type BandwidthPackageId: str
|
2561
2564
|
:param _Tags: 需要关联的标签列表。
|
2562
2565
|
:type Tags: list of Tag
|
@@ -2569,7 +2572,8 @@ class AllocateIp6AddressesBandwidthRequest(AbstractModel):
|
|
2569
2572
|
|
2570
2573
|
@property
|
2571
2574
|
def Ip6Addresses(self):
|
2572
|
-
"""需要开通公网访问能力的IPv6
|
2575
|
+
"""需要开通公网访问能力的IPv6地址,可以使用[DescribeIp6Addresses](https://cloud.tencent.com/document/product/215/40089)接口查询Ip6Addresses。
|
2576
|
+
|
2573
2577
|
:rtype: list of str
|
2574
2578
|
"""
|
2575
2579
|
return self._Ip6Addresses
|
@@ -2580,7 +2584,8 @@ class AllocateIp6AddressesBandwidthRequest(AbstractModel):
|
|
2580
2584
|
|
2581
2585
|
@property
|
2582
2586
|
def InternetMaxBandwidthOut(self):
|
2583
|
-
"""
|
2587
|
+
"""带宽上限,单位Mbps。可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://cloud.tencent.com/document/product/1142/38369#IPv6)。
|
2588
|
+
默认值:1Mbps
|
2584
2589
|
:rtype: int
|
2585
2590
|
"""
|
2586
2591
|
return self._InternetMaxBandwidthOut
|
@@ -2591,7 +2596,8 @@ class AllocateIp6AddressesBandwidthRequest(AbstractModel):
|
|
2591
2596
|
|
2592
2597
|
@property
|
2593
2598
|
def InternetChargeType(self):
|
2594
|
-
"""网络计费模式。IPv6
|
2599
|
+
"""网络计费模式。IPv6当前支持:<li>TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费</li><li>BANDWIDTH_PACKAGE:共享带宽包付费</li>
|
2600
|
+
默认值:TRAFFIC_POSTPAID_BY_HOUR
|
2595
2601
|
:rtype: str
|
2596
2602
|
"""
|
2597
2603
|
return self._InternetChargeType
|
@@ -2602,7 +2608,7 @@ class AllocateIp6AddressesBandwidthRequest(AbstractModel):
|
|
2602
2608
|
|
2603
2609
|
@property
|
2604
2610
|
def BandwidthPackageId(self):
|
2605
|
-
"""带宽包id
|
2611
|
+
"""带宽包id,设定该参数且InternetChargeType为BANDWIDTH_PACKAGE,则表示创建的IPv6加入该带宽包并采用带宽包计费。可以使用[DescribeBandwidthPackages](https://cloud.tencent.com/document/product/215/19209)接口查询BandwidthPackageId。
|
2606
2612
|
:rtype: str
|
2607
2613
|
"""
|
2608
2614
|
return self._BandwidthPackageId
|
@@ -28107,11 +28113,11 @@ class DescribeIp6AddressesRequest(AbstractModel):
|
|
28107
28113
|
|
28108
28114
|
def __init__(self):
|
28109
28115
|
r"""
|
28110
|
-
:param _Ip6AddressIds: 标识 IPv6 的唯一 ID 列表。IPv6 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`Ip6AddressIds`和`Filters
|
28116
|
+
:param _Ip6AddressIds: 标识 IPv6 的唯一 ID 列表。IPv6 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`Ip6AddressIds`和`Filters`。可以使用[DescribeIp6Addresses](https://cloud.tencent.com/document/product/215/40089)接口查询Ip6AddressIds。
|
28111
28117
|
:type Ip6AddressIds: list of str
|
28112
28118
|
:param _Filters: 每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。参数不支持同时指定`AddressIds`和`Filters`。详细的过滤条件如下:
|
28113
|
-
<li> address-ip - String - 是否必填:否 - (过滤条件)按照 IPv6 的 IP
|
28114
|
-
<li> network-interface-id - String - 是否必填:否 - (过滤条件)按照弹性网卡的唯一ID
|
28119
|
+
<li> address-ip - String - 是否必填:否 - (过滤条件)按照 IPv6 的 IP 地址过滤。可以使用[DescribeIp6Addresses](https://cloud.tencent.com/document/product/215/40089)接口查询address-ip。</li>
|
28120
|
+
<li> network-interface-id - String - 是否必填:否 - (过滤条件)按照弹性网卡的唯一ID过滤。可以使用[DescribeNetworkInterfaces](https://cloud.tencent.com/document/product/215/15817)接口查询network-interface-id。</li>
|
28115
28121
|
:type Filters: list of Filter
|
28116
28122
|
:param _Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。
|
28117
28123
|
:type Offset: int
|
@@ -28125,7 +28131,7 @@ class DescribeIp6AddressesRequest(AbstractModel):
|
|
28125
28131
|
|
28126
28132
|
@property
|
28127
28133
|
def Ip6AddressIds(self):
|
28128
|
-
"""标识 IPv6 的唯一 ID 列表。IPv6 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`Ip6AddressIds`和`Filters
|
28134
|
+
"""标识 IPv6 的唯一 ID 列表。IPv6 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`Ip6AddressIds`和`Filters`。可以使用[DescribeIp6Addresses](https://cloud.tencent.com/document/product/215/40089)接口查询Ip6AddressIds。
|
28129
28135
|
:rtype: list of str
|
28130
28136
|
"""
|
28131
28137
|
return self._Ip6AddressIds
|
@@ -28137,8 +28143,8 @@ class DescribeIp6AddressesRequest(AbstractModel):
|
|
28137
28143
|
@property
|
28138
28144
|
def Filters(self):
|
28139
28145
|
"""每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。参数不支持同时指定`AddressIds`和`Filters`。详细的过滤条件如下:
|
28140
|
-
<li> address-ip - String - 是否必填:否 - (过滤条件)按照 IPv6 的 IP
|
28141
|
-
<li> network-interface-id - String - 是否必填:否 - (过滤条件)按照弹性网卡的唯一ID
|
28146
|
+
<li> address-ip - String - 是否必填:否 - (过滤条件)按照 IPv6 的 IP 地址过滤。可以使用[DescribeIp6Addresses](https://cloud.tencent.com/document/product/215/40089)接口查询address-ip。</li>
|
28147
|
+
<li> network-interface-id - String - 是否必填:否 - (过滤条件)按照弹性网卡的唯一ID过滤。可以使用[DescribeNetworkInterfaces](https://cloud.tencent.com/document/product/215/15817)接口查询network-interface-id。</li>
|
28142
28148
|
:rtype: list of Filter
|
28143
28149
|
"""
|
28144
28150
|
return self._Filters
|
@@ -49875,7 +49881,7 @@ class ModifyIPv6AddressesBandwidthRequest(AbstractModel):
|
|
49875
49881
|
r"""
|
49876
49882
|
:param _IPv6AddressIds: 弹性公网IPv6地址唯一ID,可以使用[DescribeIPv6Addresses](https://cloud.tencent.com/document/api/215/113677)接口获取IPv6AddressId。
|
49877
49883
|
:type IPv6AddressIds: list of str
|
49878
|
-
:param _InternetMaxBandwidthOut: 弹性公网IPv6地址网络带宽,可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://
|
49884
|
+
:param _InternetMaxBandwidthOut: 弹性公网IPv6地址网络带宽,可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://cloud.tencent.com/document/product/1142/38369#IPv6)。
|
49879
49885
|
:type InternetMaxBandwidthOut: int
|
49880
49886
|
"""
|
49881
49887
|
self._IPv6AddressIds = None
|
@@ -49894,7 +49900,7 @@ class ModifyIPv6AddressesBandwidthRequest(AbstractModel):
|
|
49894
49900
|
|
49895
49901
|
@property
|
49896
49902
|
def InternetMaxBandwidthOut(self):
|
49897
|
-
"""弹性公网IPv6地址网络带宽,可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://
|
49903
|
+
"""弹性公网IPv6地址网络带宽,可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://cloud.tencent.com/document/product/1142/38369#IPv6)。
|
49898
49904
|
:rtype: int
|
49899
49905
|
"""
|
49900
49906
|
return self._InternetMaxBandwidthOut
|
@@ -49952,7 +49958,7 @@ class ModifyIp6AddressesBandwidthRequest(AbstractModel):
|
|
49952
49958
|
|
49953
49959
|
def __init__(self):
|
49954
49960
|
r"""
|
49955
|
-
:param _InternetMaxBandwidthOut: 修改的目标带宽,单位Mbps。可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://
|
49961
|
+
:param _InternetMaxBandwidthOut: 修改的目标带宽,单位Mbps。可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://cloud.tencent.com/document/product/1142/38369#IPv6)。
|
49956
49962
|
:type InternetMaxBandwidthOut: int
|
49957
49963
|
:param _Ip6Addresses: IPv6地址。可以使用[DescribeIp6Addresses](https://cloud.tencent.com/document/product/215/40089)接口查询Ip6Addresses。Ip6Addresses和Ip6AddressIds必须且只能传一个。
|
49958
49964
|
:type Ip6Addresses: list of str
|
@@ -49965,7 +49971,7 @@ class ModifyIp6AddressesBandwidthRequest(AbstractModel):
|
|
49965
49971
|
|
49966
49972
|
@property
|
49967
49973
|
def InternetMaxBandwidthOut(self):
|
49968
|
-
"""修改的目标带宽,单位Mbps。可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://
|
49974
|
+
"""修改的目标带宽,单位Mbps。可调整的带宽上限值参考产品文档中[IPv6 计费限制说明](https://cloud.tencent.com/document/product/1142/38369#IPv6)。
|
49969
49975
|
:rtype: int
|
49970
49976
|
"""
|
49971
49977
|
return self._InternetMaxBandwidthOut
|
@@ -27925,6 +27925,8 @@ class InstanceInfo(AbstractModel):
|
|
27925
27925
|
:type Last3MaxBandwidth: int
|
27926
27926
|
:param _MajorEventsProPkg: 重保增强包
|
27927
27927
|
:type MajorEventsProPkg: :class:`tencentcloud.waf.v20180125.models.MajorEventsProPkg`
|
27928
|
+
:param _BasicFlag: 1是基础2025版本;0不是
|
27929
|
+
:type BasicFlag: int
|
27928
27930
|
"""
|
27929
27931
|
self._InstanceId = None
|
27930
27932
|
self._InstanceName = None
|
@@ -27970,6 +27972,7 @@ class InstanceInfo(AbstractModel):
|
|
27970
27972
|
self._Last3MaxQPS = None
|
27971
27973
|
self._Last3MaxBandwidth = None
|
27972
27974
|
self._MajorEventsProPkg = None
|
27975
|
+
self._BasicFlag = None
|
27973
27976
|
|
27974
27977
|
@property
|
27975
27978
|
def InstanceId(self):
|
@@ -28465,6 +28468,17 @@ class InstanceInfo(AbstractModel):
|
|
28465
28468
|
def MajorEventsProPkg(self, MajorEventsProPkg):
|
28466
28469
|
self._MajorEventsProPkg = MajorEventsProPkg
|
28467
28470
|
|
28471
|
+
@property
|
28472
|
+
def BasicFlag(self):
|
28473
|
+
"""1是基础2025版本;0不是
|
28474
|
+
:rtype: int
|
28475
|
+
"""
|
28476
|
+
return self._BasicFlag
|
28477
|
+
|
28478
|
+
@BasicFlag.setter
|
28479
|
+
def BasicFlag(self, BasicFlag):
|
28480
|
+
self._BasicFlag = BasicFlag
|
28481
|
+
|
28468
28482
|
|
28469
28483
|
def _deserialize(self, params):
|
28470
28484
|
self._InstanceId = params.get("InstanceId")
|
@@ -28533,6 +28547,7 @@ class InstanceInfo(AbstractModel):
|
|
28533
28547
|
if params.get("MajorEventsProPkg") is not None:
|
28534
28548
|
self._MajorEventsProPkg = MajorEventsProPkg()
|
28535
28549
|
self._MajorEventsProPkg._deserialize(params.get("MajorEventsProPkg"))
|
28550
|
+
self._BasicFlag = params.get("BasicFlag")
|
28536
28551
|
memeber_set = set(params.keys())
|
28537
28552
|
for name, value in vars(self).items():
|
28538
28553
|
property_name = name[1:]
|
@@ -47,12 +47,21 @@ INTERNALERROR_INTERNALCALLCLOUDAPIERROR = 'InternalError.InternalCallCloudApiErr
|
|
47
47
|
# 参数错误。
|
48
48
|
INVALIDPARAMETER = 'InvalidParameter'
|
49
49
|
|
50
|
+
# 告警接收地址不存在。
|
51
|
+
INVALIDPARAMETER_ALARMRECEIVEADDRESSNOTEXIST = 'InvalidParameter.AlarmReceiveAddressNotExist'
|
52
|
+
|
53
|
+
# ClientIp未被授权。
|
54
|
+
INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = 'InvalidParameter.ClientIpNotAuthorized'
|
55
|
+
|
50
56
|
# 数据引擎实例不存在。
|
51
57
|
INVALIDPARAMETER_DATAENGINEINSTANCENOTEXISTS = 'InvalidParameter.DataEngineInstanceNotExists'
|
52
58
|
|
53
59
|
# 名称重复。
|
54
60
|
INVALIDPARAMETER_DUPLICATENAME = 'InvalidParameter.DuplicateName'
|
55
61
|
|
62
|
+
# 告警接收地址不合法。
|
63
|
+
INVALIDPARAMETER_INVALIDALARMURL = 'InvalidParameter.InvalidAlarmUrl'
|
64
|
+
|
56
65
|
# 查询过滤条件参数错误。
|
57
66
|
INVALIDPARAMETER_INVALIDFILTERPARAMETER = 'InvalidParameter.InvalidFilterParameter'
|
58
67
|
|