tencentcloud-sdk-python 3.0.1137__py2.py3-none-any.whl → 3.0.1139__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/aiart/v20221229/models.py +4 -3
- tencentcloud/cls/v20201016/cls_client.py +115 -0
- tencentcloud/cls/v20201016/errorcodes.py +12 -0
- tencentcloud/cls/v20201016/models.py +295 -14
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +16 -3
- tencentcloud/domain/v20180808/domain_client.py +23 -0
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +100 -0
- tencentcloud/dts/v20211206/models.py +1 -1
- tencentcloud/ess/v20201111/ess_client.py +27 -0
- tencentcloud/ess/v20201111/models.py +157 -0
- tencentcloud/essbasic/v20210526/models.py +1 -1
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +6 -2
- tencentcloud/hunyuan/v20230901/models.py +12 -10
- tencentcloud/ims/v20201229/ims_client.py +1 -1
- tencentcloud/iotvideo/v20211125/models.py +13 -0
- tencentcloud/lke/v20231130/errorcodes.py +12 -0
- tencentcloud/lke/v20231130/lke_client.py +46 -0
- tencentcloud/lke/v20231130/models.py +673 -0
- tencentcloud/ocr/v20181119/models.py +251 -0
- tencentcloud/ocr/v20181119/ocr_client.py +25 -0
- tencentcloud/rce/v20201103/models.py +6 -1
- tencentcloud/rum/v20210622/models.py +16 -16
- tencentcloud/teo/v20220901/errorcodes.py +45 -0
- tencentcloud/teo/v20220901/models.py +610 -0
- tencentcloud/teo/v20220901/teo_client.py +151 -0
- tencentcloud/tione/v20191022/models.py +1 -1
- tencentcloud/tione/v20211111/errorcodes.py +13 -1
- tencentcloud/tms/v20201229/errorcodes.py +6 -0
- tencentcloud/tms/v20201229/models.py +70 -0
- tencentcloud/tms/v20201229/tms_client.py +23 -0
- tencentcloud/tse/v20201207/models.py +77 -1
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1139.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1139.dist-info}/RECORD +39 -39
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1139.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1139.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1137.dist-info → tencentcloud_sdk_python-3.0.1139.dist-info}/top_level.txt +0 -0
@@ -328,6 +328,30 @@ class TeoClient(AbstractClient):
|
|
328
328
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
329
329
|
|
330
330
|
|
331
|
+
def CreatePlan(self, request):
|
332
|
+
"""若您需要使用 Edgeone 产品,您需要通过此接口创建计费套餐。
|
333
|
+
> 创建套餐后,您需要通过 [CreateZone](https://cloud.tencent.com/document/product/1552/80719) 完成创建站点,绑定套餐的流程,Edgeone 才能正常提供服务。
|
334
|
+
|
335
|
+
:param request: Request instance for CreatePlan.
|
336
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.CreatePlanRequest`
|
337
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.CreatePlanResponse`
|
338
|
+
|
339
|
+
"""
|
340
|
+
try:
|
341
|
+
params = request._serialize()
|
342
|
+
headers = request.headers
|
343
|
+
body = self.call("CreatePlan", params, headers=headers)
|
344
|
+
response = json.loads(body)
|
345
|
+
model = models.CreatePlanResponse()
|
346
|
+
model._deserialize(response["Response"])
|
347
|
+
return model
|
348
|
+
except Exception as e:
|
349
|
+
if isinstance(e, TencentCloudSDKException):
|
350
|
+
raise
|
351
|
+
else:
|
352
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
353
|
+
|
354
|
+
|
331
355
|
def CreatePlanForZone(self, request):
|
332
356
|
"""为未购买套餐的站点购买套餐
|
333
357
|
|
@@ -1645,6 +1669,36 @@ class TeoClient(AbstractClient):
|
|
1645
1669
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1646
1670
|
|
1647
1671
|
|
1672
|
+
def DestroyPlan(self, request):
|
1673
|
+
"""当您需要停止 Edgeone 套餐的计费,可以通过该接口销毁计费套餐。
|
1674
|
+
> 销毁计费套餐需要满足以下条件:
|
1675
|
+
1.套餐已过期(企业版套餐除外);
|
1676
|
+
2.套餐下所有站点均已关闭或删除。
|
1677
|
+
|
1678
|
+
> 站点状态可以通过 [查询站点列表](https://cloud.tencent.com/document/product/1552/80713) 接口进行查询
|
1679
|
+
停用站点可以通过 [切换站点状态](https://cloud.tencent.com/document/product/1552/80707) 接口将站点切换至关闭状态
|
1680
|
+
删除站点可以通过 [删除站点](https://cloud.tencent.com/document/product/1552/80717) 接口将站点删除
|
1681
|
+
|
1682
|
+
:param request: Request instance for DestroyPlan.
|
1683
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.DestroyPlanRequest`
|
1684
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.DestroyPlanResponse`
|
1685
|
+
|
1686
|
+
"""
|
1687
|
+
try:
|
1688
|
+
params = request._serialize()
|
1689
|
+
headers = request.headers
|
1690
|
+
body = self.call("DestroyPlan", params, headers=headers)
|
1691
|
+
response = json.loads(body)
|
1692
|
+
model = models.DestroyPlanResponse()
|
1693
|
+
model._deserialize(response["Response"])
|
1694
|
+
return model
|
1695
|
+
except Exception as e:
|
1696
|
+
if isinstance(e, TencentCloudSDKException):
|
1697
|
+
raise
|
1698
|
+
else:
|
1699
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1700
|
+
|
1701
|
+
|
1648
1702
|
def DownloadL4Logs(self, request):
|
1649
1703
|
"""本接口(DownloadL4Logs)用于下载四层离线日志。
|
1650
1704
|
|
@@ -1714,6 +1768,30 @@ class TeoClient(AbstractClient):
|
|
1714
1768
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1715
1769
|
|
1716
1770
|
|
1771
|
+
def IncreasePlanQuota(self, request):
|
1772
|
+
"""当您的套餐绑定的站点数,或配置的 Web 防护 - 自定义规则 - 精准匹配策略的规则数,或 Web 防护 - 速率限制 - 精准速率限制模块的规则数达到套餐允许的配额上限,可以通过该接口增购对应配额。
|
1773
|
+
> 该接口该仅支持企业版套餐。
|
1774
|
+
|
1775
|
+
:param request: Request instance for IncreasePlanQuota.
|
1776
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.IncreasePlanQuotaRequest`
|
1777
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.IncreasePlanQuotaResponse`
|
1778
|
+
|
1779
|
+
"""
|
1780
|
+
try:
|
1781
|
+
params = request._serialize()
|
1782
|
+
headers = request.headers
|
1783
|
+
body = self.call("IncreasePlanQuota", params, headers=headers)
|
1784
|
+
response = json.loads(body)
|
1785
|
+
model = models.IncreasePlanQuotaResponse()
|
1786
|
+
model._deserialize(response["Response"])
|
1787
|
+
return model
|
1788
|
+
except Exception as e:
|
1789
|
+
if isinstance(e, TencentCloudSDKException):
|
1790
|
+
raise
|
1791
|
+
else:
|
1792
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1793
|
+
|
1794
|
+
|
1717
1795
|
def ModifyAccelerationDomain(self, request):
|
1718
1796
|
"""修改加速域名信息
|
1719
1797
|
|
@@ -2041,6 +2119,29 @@ class TeoClient(AbstractClient):
|
|
2041
2119
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2042
2120
|
|
2043
2121
|
|
2122
|
+
def ModifyPlan(self, request):
|
2123
|
+
"""修改套餐配置。目前仅支持修改预付费套餐的自动续费开关。
|
2124
|
+
|
2125
|
+
:param request: Request instance for ModifyPlan.
|
2126
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.ModifyPlanRequest`
|
2127
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.ModifyPlanResponse`
|
2128
|
+
|
2129
|
+
"""
|
2130
|
+
try:
|
2131
|
+
params = request._serialize()
|
2132
|
+
headers = request.headers
|
2133
|
+
body = self.call("ModifyPlan", params, headers=headers)
|
2134
|
+
response = json.loads(body)
|
2135
|
+
model = models.ModifyPlanResponse()
|
2136
|
+
model._deserialize(response["Response"])
|
2137
|
+
return model
|
2138
|
+
except Exception as e:
|
2139
|
+
if isinstance(e, TencentCloudSDKException):
|
2140
|
+
raise
|
2141
|
+
else:
|
2142
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2143
|
+
|
2144
|
+
|
2044
2145
|
def ModifyRealtimeLogDeliveryTask(self, request):
|
2045
2146
|
"""通过本接口修改实时日志投递任务配置。本接口有如下限制:<li>不支持修改实时日志投递任务目的地类型(TaskType);</li><li>不支持修改数据投递类型(LogType)</li><li>不支持修改数据投递区域(Area)</li><li>当原实时日志投递任务的目的地为腾讯云 CLS 时,不支持修改目的地详细配置,如日志集、日志主题。</li>
|
2046
2147
|
|
@@ -2202,6 +2303,56 @@ class TeoClient(AbstractClient):
|
|
2202
2303
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2203
2304
|
|
2204
2305
|
|
2306
|
+
def RenewPlan(self, request):
|
2307
|
+
"""当您的套餐需要延长有效期,可以通过该接口进行续费。套餐续费仅支持个人版,基础版,标准版套餐。
|
2308
|
+
> 费用详情可参考 [套餐费用](https://cloud.tencent.com/document/product/1552/94158)
|
2309
|
+
|
2310
|
+
:param request: Request instance for RenewPlan.
|
2311
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.RenewPlanRequest`
|
2312
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.RenewPlanResponse`
|
2313
|
+
|
2314
|
+
"""
|
2315
|
+
try:
|
2316
|
+
params = request._serialize()
|
2317
|
+
headers = request.headers
|
2318
|
+
body = self.call("RenewPlan", params, headers=headers)
|
2319
|
+
response = json.loads(body)
|
2320
|
+
model = models.RenewPlanResponse()
|
2321
|
+
model._deserialize(response["Response"])
|
2322
|
+
return model
|
2323
|
+
except Exception as e:
|
2324
|
+
if isinstance(e, TencentCloudSDKException):
|
2325
|
+
raise
|
2326
|
+
else:
|
2327
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2328
|
+
|
2329
|
+
|
2330
|
+
def UpgradePlan(self, request):
|
2331
|
+
"""当您需要使用高等级套餐才拥有的功能,可以通过本接口升级套餐,仅支持个人版,基础版套餐进行升级。
|
2332
|
+
> 不同类型 Edgeone 计费套餐区别参考 [Edgeone计费套餐选型对比](https://cloud.tencent.com/document/product/1552/94165)
|
2333
|
+
计费套餐升级规则以及资费详情参考 [Edgeone计费套餐升配说明](https://cloud.tencent.com/document/product/1552/95291)
|
2334
|
+
如果需要将套餐升级至企业版,请 [联系我们](https://cloud.tencent.com/online-service)
|
2335
|
+
|
2336
|
+
:param request: Request instance for UpgradePlan.
|
2337
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.UpgradePlanRequest`
|
2338
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.UpgradePlanResponse`
|
2339
|
+
|
2340
|
+
"""
|
2341
|
+
try:
|
2342
|
+
params = request._serialize()
|
2343
|
+
headers = request.headers
|
2344
|
+
body = self.call("UpgradePlan", params, headers=headers)
|
2345
|
+
response = json.loads(body)
|
2346
|
+
model = models.UpgradePlanResponse()
|
2347
|
+
model._deserialize(response["Response"])
|
2348
|
+
return model
|
2349
|
+
except Exception as e:
|
2350
|
+
if isinstance(e, TencentCloudSDKException):
|
2351
|
+
raise
|
2352
|
+
else:
|
2353
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2354
|
+
|
2355
|
+
|
2205
2356
|
def VerifyOwnership(self, request):
|
2206
2357
|
"""在 CNAME 接入模式下,您需要对站点或者域名的归属权进行验证,可以通过本接口触发验证。若站点通过归属权验证后,后续添加域名无需再验证。详情参考 [站点/域名归属权验证](https://cloud.tencent.com/document/product/1552/70789)。
|
2207
2358
|
|
@@ -260,9 +260,12 @@ INTERNALERROR_QUERYRESOURCESPECFAILED = 'InternalError.QueryResourceSpecFailed'
|
|
260
260
|
# 查询子网信息失败。
|
261
261
|
INTERNALERROR_QUERYSUBNETINFOFAILED = 'InternalError.QuerySubnetInfoFailed'
|
262
262
|
|
263
|
-
#
|
263
|
+
# 查询用户临时密钥失败
|
264
264
|
INTERNALERROR_QUERYUSERTMPCREDENTIALFAILED = 'InternalError.QueryUserTMPCredentialFailed'
|
265
265
|
|
266
|
+
# 查询vpc信息失败
|
267
|
+
INTERNALERROR_QUERYVPCINFOFAILED = 'InternalError.QueryVPCInfoFailed'
|
268
|
+
|
266
269
|
# 停止任务失败。
|
267
270
|
INTERNALERROR_STOPJOBINSTANCEFAILED = 'InternalError.StopJobInstanceFailed'
|
268
271
|
|
@@ -350,6 +353,9 @@ INVALIDPARAMETERVALUE_DATASETNUMLIMITEXCEEDED = 'InvalidParameterValue.DatasetNu
|
|
350
353
|
# 实例名称冲突,请更换名称后重试。
|
351
354
|
INVALIDPARAMETERVALUE_DUPLICATENAME = 'InvalidParameterValue.DuplicateName'
|
352
355
|
|
356
|
+
# 文件系统路径访问权限受限
|
357
|
+
INVALIDPARAMETERVALUE_FSPATHINACCESSIBLE = 'InvalidParameterValue.FSPathInaccessible'
|
358
|
+
|
353
359
|
# 训练框架对应的版本不支持,请阅读文档查看TIONE目前支持的框架和版本。
|
354
360
|
INVALIDPARAMETERVALUE_FRAMEWORKVERSIONNOTSUPPORT = 'InvalidParameterValue.FrameworkVersionNotSupport'
|
355
361
|
|
@@ -479,9 +485,15 @@ RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
|
479
485
|
# 资源不存在。
|
480
486
|
RESOURCENOTFOUND = 'ResourceNotFound'
|
481
487
|
|
488
|
+
# 文件系统不存在
|
489
|
+
RESOURCENOTFOUND_CFSNOTFOUND = 'ResourceNotFound.CfsNotFound'
|
490
|
+
|
482
491
|
# 没有该模型。
|
483
492
|
RESOURCENOTFOUND_NOMODEL = 'ResourceNotFound.NoModel'
|
484
493
|
|
494
|
+
# vpc不存在
|
495
|
+
RESOURCENOTFOUND_VPCNOTFOUND = 'ResourceNotFound.VPCNotFound'
|
496
|
+
|
485
497
|
# 资源不可用。
|
486
498
|
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
487
499
|
|
@@ -14,6 +14,9 @@
|
|
14
14
|
# limitations under the License.
|
15
15
|
|
16
16
|
|
17
|
+
# 内部错误。
|
18
|
+
INTERNALERROR = 'InternalError'
|
19
|
+
|
17
20
|
# 请求超时。
|
18
21
|
INTERNALERROR_ERRTEXTTIMEOUT = 'InternalError.ErrTextTimeOut'
|
19
22
|
|
@@ -26,6 +29,9 @@ INVALIDPARAMETER_ERRTEXTCONTENTLEN = 'InvalidParameter.ErrTextContentLen'
|
|
26
29
|
# 文本类型错误,需要base64的文本。
|
27
30
|
INVALIDPARAMETER_ERRTEXTCONTENTTYPE = 'InvalidParameter.ErrTextContentType'
|
28
31
|
|
32
|
+
# Question参数错误
|
33
|
+
INVALIDPARAMETER_INVALIDQUESTION = 'InvalidParameter.InvalidQuestion'
|
34
|
+
|
29
35
|
# InvalidParameter.ParameterError
|
30
36
|
INVALIDPARAMETER_PARAMETERERROR = 'InvalidParameter.ParameterError'
|
31
37
|
|
@@ -18,6 +18,76 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
+
class AnswerQuestionRequest(AbstractModel):
|
22
|
+
"""AnswerQuestion请求参数结构体
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _Question: 用户问题
|
29
|
+
:type Question: str
|
30
|
+
"""
|
31
|
+
self._Question = None
|
32
|
+
|
33
|
+
@property
|
34
|
+
def Question(self):
|
35
|
+
return self._Question
|
36
|
+
|
37
|
+
@Question.setter
|
38
|
+
def Question(self, Question):
|
39
|
+
self._Question = Question
|
40
|
+
|
41
|
+
|
42
|
+
def _deserialize(self, params):
|
43
|
+
self._Question = params.get("Question")
|
44
|
+
memeber_set = set(params.keys())
|
45
|
+
for name, value in vars(self).items():
|
46
|
+
property_name = name[1:]
|
47
|
+
if property_name in memeber_set:
|
48
|
+
memeber_set.remove(property_name)
|
49
|
+
if len(memeber_set) > 0:
|
50
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
class AnswerQuestionResponse(AbstractModel):
|
55
|
+
"""AnswerQuestion返回参数结构体
|
56
|
+
|
57
|
+
"""
|
58
|
+
|
59
|
+
def __init__(self):
|
60
|
+
r"""
|
61
|
+
:param _Answer: 匹配到的答案
|
62
|
+
:type Answer: str
|
63
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
64
|
+
:type RequestId: str
|
65
|
+
"""
|
66
|
+
self._Answer = None
|
67
|
+
self._RequestId = None
|
68
|
+
|
69
|
+
@property
|
70
|
+
def Answer(self):
|
71
|
+
return self._Answer
|
72
|
+
|
73
|
+
@Answer.setter
|
74
|
+
def Answer(self, Answer):
|
75
|
+
self._Answer = Answer
|
76
|
+
|
77
|
+
@property
|
78
|
+
def RequestId(self):
|
79
|
+
return self._RequestId
|
80
|
+
|
81
|
+
@RequestId.setter
|
82
|
+
def RequestId(self, RequestId):
|
83
|
+
self._RequestId = RequestId
|
84
|
+
|
85
|
+
|
86
|
+
def _deserialize(self, params):
|
87
|
+
self._Answer = params.get("Answer")
|
88
|
+
self._RequestId = params.get("RequestId")
|
89
|
+
|
90
|
+
|
21
91
|
class DetailResults(AbstractModel):
|
22
92
|
"""文本审核返回的详细结果
|
23
93
|
|
@@ -26,6 +26,29 @@ class TmsClient(AbstractClient):
|
|
26
26
|
_service = 'tms'
|
27
27
|
|
28
28
|
|
29
|
+
def AnswerQuestion(self, request):
|
30
|
+
""""AIGC代答"产品帮助客户在其AIGC场景下,对于敏感类的问题,不是由客户的大模型机器人来回答,而是我们来进行代答,尽最大可能帮助客户规避风险。
|
31
|
+
|
32
|
+
:param request: Request instance for AnswerQuestion.
|
33
|
+
:type request: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionRequest`
|
34
|
+
:rtype: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("AnswerQuestion", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.AnswerQuestionResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
29
52
|
def ModerateText(self, request):
|
30
53
|
"""天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。
|
31
54
|
|
@@ -18,6 +18,51 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
+
class AccurateQpsThreshold(AbstractModel):
|
22
|
+
"""云原生网关限流插件参数限流的精确Qps阈值
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _Unit: qps阈值控制维度,包含:second、minute、hour、day、month、year
|
29
|
+
:type Unit: str
|
30
|
+
:param _GlobalConfigId: 全局配置ID
|
31
|
+
:type GlobalConfigId: str
|
32
|
+
"""
|
33
|
+
self._Unit = None
|
34
|
+
self._GlobalConfigId = None
|
35
|
+
|
36
|
+
@property
|
37
|
+
def Unit(self):
|
38
|
+
return self._Unit
|
39
|
+
|
40
|
+
@Unit.setter
|
41
|
+
def Unit(self, Unit):
|
42
|
+
self._Unit = Unit
|
43
|
+
|
44
|
+
@property
|
45
|
+
def GlobalConfigId(self):
|
46
|
+
return self._GlobalConfigId
|
47
|
+
|
48
|
+
@GlobalConfigId.setter
|
49
|
+
def GlobalConfigId(self, GlobalConfigId):
|
50
|
+
self._GlobalConfigId = GlobalConfigId
|
51
|
+
|
52
|
+
|
53
|
+
def _deserialize(self, params):
|
54
|
+
self._Unit = params.get("Unit")
|
55
|
+
self._GlobalConfigId = params.get("GlobalConfigId")
|
56
|
+
memeber_set = set(params.keys())
|
57
|
+
for name, value in vars(self).items():
|
58
|
+
property_name = name[1:]
|
59
|
+
if property_name in memeber_set:
|
60
|
+
memeber_set.remove(property_name)
|
61
|
+
if len(memeber_set) > 0:
|
62
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
63
|
+
|
64
|
+
|
65
|
+
|
21
66
|
class ApolloEnvParam(AbstractModel):
|
22
67
|
"""Apollo 环境配置参数
|
23
68
|
|
@@ -5600,6 +5645,8 @@ zk标准版没有跨地域部署,请不要填写
|
|
5600
5645
|
:param _StorageOption: zk专业版至多有两个盘,且磁盘的容量在50-3200之间
|
5601
5646
|
如果只有一个磁盘,storageCapacity与storageOption里面的capacity应该一致
|
5602
5647
|
:type StorageOption: list of StorageOption
|
5648
|
+
:param _AffinityConstraint: ZK引擎实例,可用区分布约束,STRICT:强约束,PERMISSIVE: 弱约束
|
5649
|
+
:type AffinityConstraint: str
|
5603
5650
|
"""
|
5604
5651
|
self._EngineType = None
|
5605
5652
|
self._EngineVersion = None
|
@@ -5618,6 +5665,7 @@ zk标准版没有跨地域部署,请不要填写
|
|
5618
5665
|
self._PrepaidRenewFlag = None
|
5619
5666
|
self._EngineRegionInfos = None
|
5620
5667
|
self._StorageOption = None
|
5668
|
+
self._AffinityConstraint = None
|
5621
5669
|
|
5622
5670
|
@property
|
5623
5671
|
def EngineType(self):
|
@@ -5755,6 +5803,14 @@ zk标准版没有跨地域部署,请不要填写
|
|
5755
5803
|
def StorageOption(self, StorageOption):
|
5756
5804
|
self._StorageOption = StorageOption
|
5757
5805
|
|
5806
|
+
@property
|
5807
|
+
def AffinityConstraint(self):
|
5808
|
+
return self._AffinityConstraint
|
5809
|
+
|
5810
|
+
@AffinityConstraint.setter
|
5811
|
+
def AffinityConstraint(self, AffinityConstraint):
|
5812
|
+
self._AffinityConstraint = AffinityConstraint
|
5813
|
+
|
5758
5814
|
|
5759
5815
|
def _deserialize(self, params):
|
5760
5816
|
self._EngineType = params.get("EngineType")
|
@@ -5796,6 +5852,7 @@ zk标准版没有跨地域部署,请不要填写
|
|
5796
5852
|
obj = StorageOption()
|
5797
5853
|
obj._deserialize(item)
|
5798
5854
|
self._StorageOption.append(obj)
|
5855
|
+
self._AffinityConstraint = params.get("AffinityConstraint")
|
5799
5856
|
memeber_set = set(params.keys())
|
5800
5857
|
for name, value in vars(self).items():
|
5801
5858
|
property_name = name[1:]
|
@@ -14377,7 +14434,8 @@ class EngineRegionInfo(AbstractModel):
|
|
14377
14434
|
:type Replica: int
|
14378
14435
|
:param _VpcInfos: 集群网络信息
|
14379
14436
|
:type VpcInfos: list of VpcInfo
|
14380
|
-
:param _MainRegion: 是否为主地域
|
14437
|
+
:param _MainRegion: Polaris: 是否为主地域
|
14438
|
+
Zookeeper: 是否为Leader固定地域
|
14381
14439
|
:type MainRegion: bool
|
14382
14440
|
:param _SpecId: 引擎规格ID
|
14383
14441
|
:type SpecId: str
|
@@ -18643,10 +18701,14 @@ class LimitRule(AbstractModel):
|
|
18643
18701
|
:param _QpsThresholds: 限流阈值
|
18644
18702
|
注意:此字段可能返回 null,表示取不到有效值。
|
18645
18703
|
:type QpsThresholds: list of QpsThreshold
|
18704
|
+
:param _AccurateQpsThresholds: 精确限流阈值
|
18705
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
18706
|
+
:type AccurateQpsThresholds: list of AccurateQpsThreshold
|
18646
18707
|
"""
|
18647
18708
|
self._Filters = None
|
18648
18709
|
self._LimitBy = None
|
18649
18710
|
self._QpsThresholds = None
|
18711
|
+
self._AccurateQpsThresholds = None
|
18650
18712
|
|
18651
18713
|
@property
|
18652
18714
|
def Filters(self):
|
@@ -18672,6 +18734,14 @@ class LimitRule(AbstractModel):
|
|
18672
18734
|
def QpsThresholds(self, QpsThresholds):
|
18673
18735
|
self._QpsThresholds = QpsThresholds
|
18674
18736
|
|
18737
|
+
@property
|
18738
|
+
def AccurateQpsThresholds(self):
|
18739
|
+
return self._AccurateQpsThresholds
|
18740
|
+
|
18741
|
+
@AccurateQpsThresholds.setter
|
18742
|
+
def AccurateQpsThresholds(self, AccurateQpsThresholds):
|
18743
|
+
self._AccurateQpsThresholds = AccurateQpsThresholds
|
18744
|
+
|
18675
18745
|
|
18676
18746
|
def _deserialize(self, params):
|
18677
18747
|
if params.get("Filters") is not None:
|
@@ -18692,6 +18762,12 @@ class LimitRule(AbstractModel):
|
|
18692
18762
|
obj = QpsThreshold()
|
18693
18763
|
obj._deserialize(item)
|
18694
18764
|
self._QpsThresholds.append(obj)
|
18765
|
+
if params.get("AccurateQpsThresholds") is not None:
|
18766
|
+
self._AccurateQpsThresholds = []
|
18767
|
+
for item in params.get("AccurateQpsThresholds"):
|
18768
|
+
obj = AccurateQpsThreshold()
|
18769
|
+
obj._deserialize(item)
|
18770
|
+
self._AccurateQpsThresholds.append(obj)
|
18695
18771
|
memeber_set = set(params.keys())
|
18696
18772
|
for name, value in vars(self).items():
|
18697
18773
|
property_name = name[1:]
|