tencentcloud-sdk-python 3.0.1341__py2.py3-none-any.whl → 3.0.1342__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/billing/v20180709/models.py +0 -246
- tencentcloud/captcha/v20190722/models.py +6 -24
- tencentcloud/cdc/v20201214/models.py +0 -12
- tencentcloud/cfs/v20190719/errorcodes.py +3 -0
- tencentcloud/cvm/v20170312/cvm_client.py +23 -0
- tencentcloud/cvm/v20170312/models.py +211 -4
- tencentcloud/cwp/v20180228/models.py +99 -24
- tencentcloud/domain/v20180808/models.py +30 -24
- tencentcloud/ess/v20201111/models.py +69 -2
- tencentcloud/essbasic/v20210526/models.py +73 -6
- tencentcloud/hunyuan/v20230901/models.py +97 -21
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/mariadb/v20170312/models.py +0 -24
- tencentcloud/mongodb/v20190725/models.py +6 -6
- tencentcloud/redis/v20180412/models.py +8 -8
- tencentcloud/ses/v20201002/models.py +2 -4
- tencentcloud/tat/v20201028/models.py +10 -8
- tencentcloud/tcb/v20180608/models.py +0 -230
- tencentcloud/tdmq/v20200217/models.py +17 -198
- tencentcloud/teo/v20220901/models.py +227 -1
- tencentcloud/teo/v20220901/teo_client.py +8 -4
- tencentcloud/trocket/v20230308/models.py +109 -0
- tencentcloud/trocket/v20230308/trocket_client.py +23 -0
- tencentcloud/trro/v20220325/models.py +140 -0
- tencentcloud/trro/v20220325/trro_client.py +25 -0
- tencentcloud/vpc/v20170312/errorcodes.py +9 -0
- tencentcloud/waf/v20180125/models.py +398 -0
- tencentcloud/waf/v20180125/waf_client.py +69 -0
- {tencentcloud_sdk_python-3.0.1341.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1341.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/RECORD +34 -34
- {tencentcloud_sdk_python-3.0.1341.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1341.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1341.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/top_level.txt +0 -0
@@ -21417,6 +21417,213 @@ class DetailHost(AbstractModel):
|
|
21417
21417
|
|
21418
21418
|
|
21419
21419
|
|
21420
|
+
class DetectLengthLimitCondition(AbstractModel):
|
21421
|
+
"""检测长度限制配置条件。
|
21422
|
+
|
21423
|
+
"""
|
21424
|
+
|
21425
|
+
def __init__(self):
|
21426
|
+
r"""
|
21427
|
+
:param _Name: 匹配条件的参数名称,取值有:
|
21428
|
+
<li>body_depth:请求正文包部分的检测深度。</li>
|
21429
|
+
:type Name: str
|
21430
|
+
:param _Values: 匹配条件的参数值,取值与 Name 成对使用。
|
21431
|
+
当 Name 值为 body_depth 时, Values 只支持传入单个值,取值有:
|
21432
|
+
<li>8KB;</li>
|
21433
|
+
<li>64KB;</li>
|
21434
|
+
<li>128KB。</li>
|
21435
|
+
:type Values: list of str
|
21436
|
+
"""
|
21437
|
+
self._Name = None
|
21438
|
+
self._Values = None
|
21439
|
+
|
21440
|
+
@property
|
21441
|
+
def Name(self):
|
21442
|
+
"""匹配条件的参数名称,取值有:
|
21443
|
+
<li>body_depth:请求正文包部分的检测深度。</li>
|
21444
|
+
:rtype: str
|
21445
|
+
"""
|
21446
|
+
return self._Name
|
21447
|
+
|
21448
|
+
@Name.setter
|
21449
|
+
def Name(self, Name):
|
21450
|
+
self._Name = Name
|
21451
|
+
|
21452
|
+
@property
|
21453
|
+
def Values(self):
|
21454
|
+
"""匹配条件的参数值,取值与 Name 成对使用。
|
21455
|
+
当 Name 值为 body_depth 时, Values 只支持传入单个值,取值有:
|
21456
|
+
<li>8KB;</li>
|
21457
|
+
<li>64KB;</li>
|
21458
|
+
<li>128KB。</li>
|
21459
|
+
:rtype: list of str
|
21460
|
+
"""
|
21461
|
+
return self._Values
|
21462
|
+
|
21463
|
+
@Values.setter
|
21464
|
+
def Values(self, Values):
|
21465
|
+
self._Values = Values
|
21466
|
+
|
21467
|
+
|
21468
|
+
def _deserialize(self, params):
|
21469
|
+
self._Name = params.get("Name")
|
21470
|
+
self._Values = params.get("Values")
|
21471
|
+
memeber_set = set(params.keys())
|
21472
|
+
for name, value in vars(self).items():
|
21473
|
+
property_name = name[1:]
|
21474
|
+
if property_name in memeber_set:
|
21475
|
+
memeber_set.remove(property_name)
|
21476
|
+
if len(memeber_set) > 0:
|
21477
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
21478
|
+
|
21479
|
+
|
21480
|
+
|
21481
|
+
class DetectLengthLimitConfig(AbstractModel):
|
21482
|
+
"""检测长度限制
|
21483
|
+
|
21484
|
+
"""
|
21485
|
+
|
21486
|
+
def __init__(self):
|
21487
|
+
r"""
|
21488
|
+
:param _DetectLengthLimitRules: 检测长度限制的规则列表。
|
21489
|
+
:type DetectLengthLimitRules: list of DetectLengthLimitRule
|
21490
|
+
"""
|
21491
|
+
self._DetectLengthLimitRules = None
|
21492
|
+
|
21493
|
+
@property
|
21494
|
+
def DetectLengthLimitRules(self):
|
21495
|
+
"""检测长度限制的规则列表。
|
21496
|
+
:rtype: list of DetectLengthLimitRule
|
21497
|
+
"""
|
21498
|
+
return self._DetectLengthLimitRules
|
21499
|
+
|
21500
|
+
@DetectLengthLimitRules.setter
|
21501
|
+
def DetectLengthLimitRules(self, DetectLengthLimitRules):
|
21502
|
+
self._DetectLengthLimitRules = DetectLengthLimitRules
|
21503
|
+
|
21504
|
+
|
21505
|
+
def _deserialize(self, params):
|
21506
|
+
if params.get("DetectLengthLimitRules") is not None:
|
21507
|
+
self._DetectLengthLimitRules = []
|
21508
|
+
for item in params.get("DetectLengthLimitRules"):
|
21509
|
+
obj = DetectLengthLimitRule()
|
21510
|
+
obj._deserialize(item)
|
21511
|
+
self._DetectLengthLimitRules.append(obj)
|
21512
|
+
memeber_set = set(params.keys())
|
21513
|
+
for name, value in vars(self).items():
|
21514
|
+
property_name = name[1:]
|
21515
|
+
if property_name in memeber_set:
|
21516
|
+
memeber_set.remove(property_name)
|
21517
|
+
if len(memeber_set) > 0:
|
21518
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
21519
|
+
|
21520
|
+
|
21521
|
+
|
21522
|
+
class DetectLengthLimitRule(AbstractModel):
|
21523
|
+
"""检测长度限制规则详情
|
21524
|
+
|
21525
|
+
"""
|
21526
|
+
|
21527
|
+
def __init__(self):
|
21528
|
+
r"""
|
21529
|
+
:param _RuleId: 规则Id。仅出参使用。
|
21530
|
+
:type RuleId: int
|
21531
|
+
:param _RuleName: 规则名称。仅出参使用。
|
21532
|
+
:type RuleName: str
|
21533
|
+
:param _Description: 规则描述,仅出参使用。
|
21534
|
+
:type Description: str
|
21535
|
+
:param _Conditions: 规则配置条件。仅出参使用。
|
21536
|
+
:type Conditions: list of DetectLengthLimitCondition
|
21537
|
+
:param _Action: 处置方式,取值有:
|
21538
|
+
<li>skip:当请求正文数据超过 Conditions 出参中 body_depth 设置的检测深度时,跳过所有请求正文内容的检测;</li>
|
21539
|
+
<li>scan:仅检测 Conditions 出参中 body_depth 设置的检测深度,对超出部分的请求正文内容直接截断处理,超出部分的请求正文不会经过安全检测。</li>仅出参使用。
|
21540
|
+
:type Action: str
|
21541
|
+
"""
|
21542
|
+
self._RuleId = None
|
21543
|
+
self._RuleName = None
|
21544
|
+
self._Description = None
|
21545
|
+
self._Conditions = None
|
21546
|
+
self._Action = None
|
21547
|
+
|
21548
|
+
@property
|
21549
|
+
def RuleId(self):
|
21550
|
+
"""规则Id。仅出参使用。
|
21551
|
+
:rtype: int
|
21552
|
+
"""
|
21553
|
+
return self._RuleId
|
21554
|
+
|
21555
|
+
@RuleId.setter
|
21556
|
+
def RuleId(self, RuleId):
|
21557
|
+
self._RuleId = RuleId
|
21558
|
+
|
21559
|
+
@property
|
21560
|
+
def RuleName(self):
|
21561
|
+
"""规则名称。仅出参使用。
|
21562
|
+
:rtype: str
|
21563
|
+
"""
|
21564
|
+
return self._RuleName
|
21565
|
+
|
21566
|
+
@RuleName.setter
|
21567
|
+
def RuleName(self, RuleName):
|
21568
|
+
self._RuleName = RuleName
|
21569
|
+
|
21570
|
+
@property
|
21571
|
+
def Description(self):
|
21572
|
+
"""规则描述,仅出参使用。
|
21573
|
+
:rtype: str
|
21574
|
+
"""
|
21575
|
+
return self._Description
|
21576
|
+
|
21577
|
+
@Description.setter
|
21578
|
+
def Description(self, Description):
|
21579
|
+
self._Description = Description
|
21580
|
+
|
21581
|
+
@property
|
21582
|
+
def Conditions(self):
|
21583
|
+
"""规则配置条件。仅出参使用。
|
21584
|
+
:rtype: list of DetectLengthLimitCondition
|
21585
|
+
"""
|
21586
|
+
return self._Conditions
|
21587
|
+
|
21588
|
+
@Conditions.setter
|
21589
|
+
def Conditions(self, Conditions):
|
21590
|
+
self._Conditions = Conditions
|
21591
|
+
|
21592
|
+
@property
|
21593
|
+
def Action(self):
|
21594
|
+
"""处置方式,取值有:
|
21595
|
+
<li>skip:当请求正文数据超过 Conditions 出参中 body_depth 设置的检测深度时,跳过所有请求正文内容的检测;</li>
|
21596
|
+
<li>scan:仅检测 Conditions 出参中 body_depth 设置的检测深度,对超出部分的请求正文内容直接截断处理,超出部分的请求正文不会经过安全检测。</li>仅出参使用。
|
21597
|
+
:rtype: str
|
21598
|
+
"""
|
21599
|
+
return self._Action
|
21600
|
+
|
21601
|
+
@Action.setter
|
21602
|
+
def Action(self, Action):
|
21603
|
+
self._Action = Action
|
21604
|
+
|
21605
|
+
|
21606
|
+
def _deserialize(self, params):
|
21607
|
+
self._RuleId = params.get("RuleId")
|
21608
|
+
self._RuleName = params.get("RuleName")
|
21609
|
+
self._Description = params.get("Description")
|
21610
|
+
if params.get("Conditions") is not None:
|
21611
|
+
self._Conditions = []
|
21612
|
+
for item in params.get("Conditions"):
|
21613
|
+
obj = DetectLengthLimitCondition()
|
21614
|
+
obj._deserialize(item)
|
21615
|
+
self._Conditions.append(obj)
|
21616
|
+
self._Action = params.get("Action")
|
21617
|
+
memeber_set = set(params.keys())
|
21618
|
+
for name, value in vars(self).items():
|
21619
|
+
property_name = name[1:]
|
21620
|
+
if property_name in memeber_set:
|
21621
|
+
memeber_set.remove(property_name)
|
21622
|
+
if len(memeber_set) > 0:
|
21623
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
21624
|
+
|
21625
|
+
|
21626
|
+
|
21420
21627
|
class DiffIPWhitelist(AbstractModel):
|
21421
21628
|
"""最新IP白名单列表相比于当前IP白名单列表的区别
|
21422
21629
|
|
@@ -39071,7 +39278,7 @@ class SecEntryValue(AbstractModel):
|
|
39071
39278
|
|
39072
39279
|
|
39073
39280
|
class SecurityConfig(AbstractModel):
|
39074
|
-
"""安全配置
|
39281
|
+
"""Web安全配置
|
39075
39282
|
|
39076
39283
|
"""
|
39077
39284
|
|
@@ -39107,6 +39314,9 @@ class SecurityConfig(AbstractModel):
|
|
39107
39314
|
:param _SlowPostConfig: 慢速攻击配置。如果入参为空或不填,默认使用历史配置。
|
39108
39315
|
注意:此字段可能返回 null,表示取不到有效值。
|
39109
39316
|
:type SlowPostConfig: :class:`tencentcloud.teo.v20220901.models.SlowPostConfig`
|
39317
|
+
:param _DetectLengthLimitConfig: 检测长度限制配置。仅出参使用。
|
39318
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
39319
|
+
:type DetectLengthLimitConfig: :class:`tencentcloud.teo.v20220901.models.DetectLengthLimitConfig`
|
39110
39320
|
"""
|
39111
39321
|
self._WafConfig = None
|
39112
39322
|
self._RateLimitConfig = None
|
@@ -39118,6 +39328,7 @@ class SecurityConfig(AbstractModel):
|
|
39118
39328
|
self._DropPageConfig = None
|
39119
39329
|
self._TemplateConfig = None
|
39120
39330
|
self._SlowPostConfig = None
|
39331
|
+
self._DetectLengthLimitConfig = None
|
39121
39332
|
|
39122
39333
|
@property
|
39123
39334
|
def WafConfig(self):
|
@@ -39239,6 +39450,18 @@ class SecurityConfig(AbstractModel):
|
|
39239
39450
|
def SlowPostConfig(self, SlowPostConfig):
|
39240
39451
|
self._SlowPostConfig = SlowPostConfig
|
39241
39452
|
|
39453
|
+
@property
|
39454
|
+
def DetectLengthLimitConfig(self):
|
39455
|
+
"""检测长度限制配置。仅出参使用。
|
39456
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
39457
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.DetectLengthLimitConfig`
|
39458
|
+
"""
|
39459
|
+
return self._DetectLengthLimitConfig
|
39460
|
+
|
39461
|
+
@DetectLengthLimitConfig.setter
|
39462
|
+
def DetectLengthLimitConfig(self, DetectLengthLimitConfig):
|
39463
|
+
self._DetectLengthLimitConfig = DetectLengthLimitConfig
|
39464
|
+
|
39242
39465
|
|
39243
39466
|
def _deserialize(self, params):
|
39244
39467
|
if params.get("WafConfig") is not None:
|
@@ -39271,6 +39494,9 @@ class SecurityConfig(AbstractModel):
|
|
39271
39494
|
if params.get("SlowPostConfig") is not None:
|
39272
39495
|
self._SlowPostConfig = SlowPostConfig()
|
39273
39496
|
self._SlowPostConfig._deserialize(params.get("SlowPostConfig"))
|
39497
|
+
if params.get("DetectLengthLimitConfig") is not None:
|
39498
|
+
self._DetectLengthLimitConfig = DetectLengthLimitConfig()
|
39499
|
+
self._DetectLengthLimitConfig._deserialize(params.get("DetectLengthLimitConfig"))
|
39274
39500
|
memeber_set = set(params.keys())
|
39275
39501
|
for name, value in vars(self).items():
|
39276
39502
|
property_name = name[1:]
|
@@ -609,7 +609,8 @@ class TeoClient(AbstractClient):
|
|
609
609
|
|
610
610
|
|
611
611
|
def CreateRule(self, request):
|
612
|
-
"""
|
612
|
+
"""本接口为旧版本创建规则引擎接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本创建七层加速规则接口详情请参考 [CreateL7AccRules](https://cloud.tencent.com/document/product/1552/115822)。
|
613
|
+
<p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
613
614
|
|
614
615
|
:param request: Request instance for CreateRule.
|
615
616
|
:type request: :class:`tencentcloud.teo.v20220901.models.CreateRuleRequest`
|
@@ -1049,7 +1050,8 @@ class TeoClient(AbstractClient):
|
|
1049
1050
|
|
1050
1051
|
|
1051
1052
|
def DeleteRules(self, request):
|
1052
|
-
"""
|
1053
|
+
"""本接口为旧版本删除规则引擎接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本删除七层加速规则接口详情请参考 [DeleteL7AccRules](https://cloud.tencent.com/document/product/1552/115821)。
|
1054
|
+
<p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
1053
1055
|
|
1054
1056
|
:param request: Request instance for DeleteRules.
|
1055
1057
|
:type request: :class:`tencentcloud.teo.v20220901.models.DeleteRulesRequest`
|
@@ -1969,7 +1971,8 @@ class TeoClient(AbstractClient):
|
|
1969
1971
|
|
1970
1972
|
|
1971
1973
|
def DescribeRules(self, request):
|
1972
|
-
"""
|
1974
|
+
"""本接口为旧版本查询规则引擎规则接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本查询七层加速规则接口详情请参考 [DescribeL7AccRules](https://cloud.tencent.com/document/product/1552/115820)。
|
1975
|
+
<p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
1973
1976
|
|
1974
1977
|
:param request: Request instance for DescribeRules.
|
1975
1978
|
:type request: :class:`tencentcloud.teo.v20220901.models.DescribeRulesRequest`
|
@@ -3067,7 +3070,8 @@ class TeoClient(AbstractClient):
|
|
3067
3070
|
|
3068
3071
|
|
3069
3072
|
def ModifyRule(self, request):
|
3070
|
-
"""
|
3073
|
+
"""本接口为旧版本修改规则引擎接口,EdgeOne 于 2025 年 1 月 21 日已对规则引擎相关接口全面升级,新版本修改七层加速规则接口详情请参考 [ModifyL7AccRule](https://cloud.tencent.com/document/product/1552/115818)。
|
3074
|
+
<p style="color: red;">注意:自 2025 年 1 月 21 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供,旧版接口支持的原有能力将不受影响。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版规则引擎接口。</p>
|
3071
3075
|
|
3072
3076
|
:param request: Request instance for ModifyRule.
|
3073
3077
|
:type request: :class:`tencentcloud.teo.v20220901.models.ModifyRuleRequest`
|
@@ -12070,6 +12070,115 @@ class ResendDeadLetterMessageResponse(AbstractModel):
|
|
12070
12070
|
self._RequestId = params.get("RequestId")
|
12071
12071
|
|
12072
12072
|
|
12073
|
+
class ResetConsumerGroupOffsetRequest(AbstractModel):
|
12074
|
+
"""ResetConsumerGroupOffset请求参数结构体
|
12075
|
+
|
12076
|
+
"""
|
12077
|
+
|
12078
|
+
def __init__(self):
|
12079
|
+
r"""
|
12080
|
+
:param _InstanceId: 集群ID
|
12081
|
+
:type InstanceId: str
|
12082
|
+
:param _Topic: 主题名称
|
12083
|
+
:type Topic: str
|
12084
|
+
:param _ResetTimestamp: 重置位点时间(单位:毫秒)-1表示重置到最新位点
|
12085
|
+
:type ResetTimestamp: int
|
12086
|
+
:param _ConsumerGroup: 消费组名称
|
12087
|
+
:type ConsumerGroup: str
|
12088
|
+
"""
|
12089
|
+
self._InstanceId = None
|
12090
|
+
self._Topic = None
|
12091
|
+
self._ResetTimestamp = None
|
12092
|
+
self._ConsumerGroup = None
|
12093
|
+
|
12094
|
+
@property
|
12095
|
+
def InstanceId(self):
|
12096
|
+
"""集群ID
|
12097
|
+
:rtype: str
|
12098
|
+
"""
|
12099
|
+
return self._InstanceId
|
12100
|
+
|
12101
|
+
@InstanceId.setter
|
12102
|
+
def InstanceId(self, InstanceId):
|
12103
|
+
self._InstanceId = InstanceId
|
12104
|
+
|
12105
|
+
@property
|
12106
|
+
def Topic(self):
|
12107
|
+
"""主题名称
|
12108
|
+
:rtype: str
|
12109
|
+
"""
|
12110
|
+
return self._Topic
|
12111
|
+
|
12112
|
+
@Topic.setter
|
12113
|
+
def Topic(self, Topic):
|
12114
|
+
self._Topic = Topic
|
12115
|
+
|
12116
|
+
@property
|
12117
|
+
def ResetTimestamp(self):
|
12118
|
+
"""重置位点时间(单位:毫秒)-1表示重置到最新位点
|
12119
|
+
:rtype: int
|
12120
|
+
"""
|
12121
|
+
return self._ResetTimestamp
|
12122
|
+
|
12123
|
+
@ResetTimestamp.setter
|
12124
|
+
def ResetTimestamp(self, ResetTimestamp):
|
12125
|
+
self._ResetTimestamp = ResetTimestamp
|
12126
|
+
|
12127
|
+
@property
|
12128
|
+
def ConsumerGroup(self):
|
12129
|
+
"""消费组名称
|
12130
|
+
:rtype: str
|
12131
|
+
"""
|
12132
|
+
return self._ConsumerGroup
|
12133
|
+
|
12134
|
+
@ConsumerGroup.setter
|
12135
|
+
def ConsumerGroup(self, ConsumerGroup):
|
12136
|
+
self._ConsumerGroup = ConsumerGroup
|
12137
|
+
|
12138
|
+
|
12139
|
+
def _deserialize(self, params):
|
12140
|
+
self._InstanceId = params.get("InstanceId")
|
12141
|
+
self._Topic = params.get("Topic")
|
12142
|
+
self._ResetTimestamp = params.get("ResetTimestamp")
|
12143
|
+
self._ConsumerGroup = params.get("ConsumerGroup")
|
12144
|
+
memeber_set = set(params.keys())
|
12145
|
+
for name, value in vars(self).items():
|
12146
|
+
property_name = name[1:]
|
12147
|
+
if property_name in memeber_set:
|
12148
|
+
memeber_set.remove(property_name)
|
12149
|
+
if len(memeber_set) > 0:
|
12150
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
12151
|
+
|
12152
|
+
|
12153
|
+
|
12154
|
+
class ResetConsumerGroupOffsetResponse(AbstractModel):
|
12155
|
+
"""ResetConsumerGroupOffset返回参数结构体
|
12156
|
+
|
12157
|
+
"""
|
12158
|
+
|
12159
|
+
def __init__(self):
|
12160
|
+
r"""
|
12161
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12162
|
+
:type RequestId: str
|
12163
|
+
"""
|
12164
|
+
self._RequestId = None
|
12165
|
+
|
12166
|
+
@property
|
12167
|
+
def RequestId(self):
|
12168
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12169
|
+
:rtype: str
|
12170
|
+
"""
|
12171
|
+
return self._RequestId
|
12172
|
+
|
12173
|
+
@RequestId.setter
|
12174
|
+
def RequestId(self, RequestId):
|
12175
|
+
self._RequestId = RequestId
|
12176
|
+
|
12177
|
+
|
12178
|
+
def _deserialize(self, params):
|
12179
|
+
self._RequestId = params.get("RequestId")
|
12180
|
+
|
12181
|
+
|
12073
12182
|
class RoleItem(AbstractModel):
|
12074
12183
|
"""角色信息
|
12075
12184
|
|
@@ -1343,6 +1343,29 @@ class TrocketClient(AbstractClient):
|
|
1343
1343
|
model = models.ResendDeadLetterMessageResponse()
|
1344
1344
|
model._deserialize(response["Response"])
|
1345
1345
|
return model
|
1346
|
+
except Exception as e:
|
1347
|
+
if isinstance(e, TencentCloudSDKException):
|
1348
|
+
raise
|
1349
|
+
else:
|
1350
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1351
|
+
|
1352
|
+
|
1353
|
+
def ResetConsumerGroupOffset(self, request):
|
1354
|
+
"""重置消费位点
|
1355
|
+
|
1356
|
+
:param request: Request instance for ResetConsumerGroupOffset.
|
1357
|
+
:type request: :class:`tencentcloud.trocket.v20230308.models.ResetConsumerGroupOffsetRequest`
|
1358
|
+
:rtype: :class:`tencentcloud.trocket.v20230308.models.ResetConsumerGroupOffsetResponse`
|
1359
|
+
|
1360
|
+
"""
|
1361
|
+
try:
|
1362
|
+
params = request._serialize()
|
1363
|
+
headers = request.headers
|
1364
|
+
body = self.call("ResetConsumerGroupOffset", params, headers=headers)
|
1365
|
+
response = json.loads(body)
|
1366
|
+
model = models.ResetConsumerGroupOffsetResponse()
|
1367
|
+
model._deserialize(response["Response"])
|
1368
|
+
return model
|
1346
1369
|
except Exception as e:
|
1347
1370
|
if isinstance(e, TencentCloudSDKException):
|
1348
1371
|
raise
|
@@ -3488,6 +3488,146 @@ class ModifyProjectResponse(AbstractModel):
|
|
3488
3488
|
self._RequestId = params.get("RequestId")
|
3489
3489
|
|
3490
3490
|
|
3491
|
+
class ModifyProjectSecModeRequest(AbstractModel):
|
3492
|
+
"""ModifyProjectSecMode请求参数结构体
|
3493
|
+
|
3494
|
+
"""
|
3495
|
+
|
3496
|
+
def __init__(self):
|
3497
|
+
r"""
|
3498
|
+
:param _ProjectId: 项目ID
|
3499
|
+
:type ProjectId: str
|
3500
|
+
:param _Mode: 安全模式
|
3501
|
+
0:关闭项目共享密钥
|
3502
|
+
1:开启项目共享密钥
|
3503
|
+
:type Mode: int
|
3504
|
+
:param _Key: 项目密钥 32位 小写英文+数字; 项目密钥模式必填
|
3505
|
+
:type Key: str
|
3506
|
+
:param _AutoRegister: 自动注册方式
|
3507
|
+
0:关闭自动注册
|
3508
|
+
1:仅允许现场设备自动注册
|
3509
|
+
2:仅允许远端设备自动注册
|
3510
|
+
3:允许现场和远端设备均自动注册
|
3511
|
+
:type AutoRegister: int
|
3512
|
+
:param _FieldListEnable: 是否允许远端获取现场设备列表(getGwList)
|
3513
|
+
0:不允许
|
3514
|
+
1:允许
|
3515
|
+
:type FieldListEnable: int
|
3516
|
+
"""
|
3517
|
+
self._ProjectId = None
|
3518
|
+
self._Mode = None
|
3519
|
+
self._Key = None
|
3520
|
+
self._AutoRegister = None
|
3521
|
+
self._FieldListEnable = None
|
3522
|
+
|
3523
|
+
@property
|
3524
|
+
def ProjectId(self):
|
3525
|
+
"""项目ID
|
3526
|
+
:rtype: str
|
3527
|
+
"""
|
3528
|
+
return self._ProjectId
|
3529
|
+
|
3530
|
+
@ProjectId.setter
|
3531
|
+
def ProjectId(self, ProjectId):
|
3532
|
+
self._ProjectId = ProjectId
|
3533
|
+
|
3534
|
+
@property
|
3535
|
+
def Mode(self):
|
3536
|
+
"""安全模式
|
3537
|
+
0:关闭项目共享密钥
|
3538
|
+
1:开启项目共享密钥
|
3539
|
+
:rtype: int
|
3540
|
+
"""
|
3541
|
+
return self._Mode
|
3542
|
+
|
3543
|
+
@Mode.setter
|
3544
|
+
def Mode(self, Mode):
|
3545
|
+
self._Mode = Mode
|
3546
|
+
|
3547
|
+
@property
|
3548
|
+
def Key(self):
|
3549
|
+
"""项目密钥 32位 小写英文+数字; 项目密钥模式必填
|
3550
|
+
:rtype: str
|
3551
|
+
"""
|
3552
|
+
return self._Key
|
3553
|
+
|
3554
|
+
@Key.setter
|
3555
|
+
def Key(self, Key):
|
3556
|
+
self._Key = Key
|
3557
|
+
|
3558
|
+
@property
|
3559
|
+
def AutoRegister(self):
|
3560
|
+
"""自动注册方式
|
3561
|
+
0:关闭自动注册
|
3562
|
+
1:仅允许现场设备自动注册
|
3563
|
+
2:仅允许远端设备自动注册
|
3564
|
+
3:允许现场和远端设备均自动注册
|
3565
|
+
:rtype: int
|
3566
|
+
"""
|
3567
|
+
return self._AutoRegister
|
3568
|
+
|
3569
|
+
@AutoRegister.setter
|
3570
|
+
def AutoRegister(self, AutoRegister):
|
3571
|
+
self._AutoRegister = AutoRegister
|
3572
|
+
|
3573
|
+
@property
|
3574
|
+
def FieldListEnable(self):
|
3575
|
+
"""是否允许远端获取现场设备列表(getGwList)
|
3576
|
+
0:不允许
|
3577
|
+
1:允许
|
3578
|
+
:rtype: int
|
3579
|
+
"""
|
3580
|
+
return self._FieldListEnable
|
3581
|
+
|
3582
|
+
@FieldListEnable.setter
|
3583
|
+
def FieldListEnable(self, FieldListEnable):
|
3584
|
+
self._FieldListEnable = FieldListEnable
|
3585
|
+
|
3586
|
+
|
3587
|
+
def _deserialize(self, params):
|
3588
|
+
self._ProjectId = params.get("ProjectId")
|
3589
|
+
self._Mode = params.get("Mode")
|
3590
|
+
self._Key = params.get("Key")
|
3591
|
+
self._AutoRegister = params.get("AutoRegister")
|
3592
|
+
self._FieldListEnable = params.get("FieldListEnable")
|
3593
|
+
memeber_set = set(params.keys())
|
3594
|
+
for name, value in vars(self).items():
|
3595
|
+
property_name = name[1:]
|
3596
|
+
if property_name in memeber_set:
|
3597
|
+
memeber_set.remove(property_name)
|
3598
|
+
if len(memeber_set) > 0:
|
3599
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3600
|
+
|
3601
|
+
|
3602
|
+
|
3603
|
+
class ModifyProjectSecModeResponse(AbstractModel):
|
3604
|
+
"""ModifyProjectSecMode返回参数结构体
|
3605
|
+
|
3606
|
+
"""
|
3607
|
+
|
3608
|
+
def __init__(self):
|
3609
|
+
r"""
|
3610
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3611
|
+
:type RequestId: str
|
3612
|
+
"""
|
3613
|
+
self._RequestId = None
|
3614
|
+
|
3615
|
+
@property
|
3616
|
+
def RequestId(self):
|
3617
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3618
|
+
:rtype: str
|
3619
|
+
"""
|
3620
|
+
return self._RequestId
|
3621
|
+
|
3622
|
+
@RequestId.setter
|
3623
|
+
def RequestId(self, RequestId):
|
3624
|
+
self._RequestId = RequestId
|
3625
|
+
|
3626
|
+
|
3627
|
+
def _deserialize(self, params):
|
3628
|
+
self._RequestId = params.get("RequestId")
|
3629
|
+
|
3630
|
+
|
3491
3631
|
class MultiNet(AbstractModel):
|
3492
3632
|
"""多网的网卡状态信息
|
3493
3633
|
|
@@ -548,6 +548,31 @@ class TrroClient(AbstractClient):
|
|
548
548
|
model = models.ModifyProjectResponse()
|
549
549
|
model._deserialize(response["Response"])
|
550
550
|
return model
|
551
|
+
except Exception as e:
|
552
|
+
if isinstance(e, TencentCloudSDKException):
|
553
|
+
raise
|
554
|
+
else:
|
555
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
556
|
+
|
557
|
+
|
558
|
+
def ModifyProjectSecMode(self, request):
|
559
|
+
"""使用项目共享密钥可动态生成设备登录密钥,登录前无需对设备进行提前注册,适合希望简化业务流程的客户。由于是公共密钥,请务必注意保护项目共享密钥,并及时更新。建议项目共享密钥保存在服务器侧。由服务器生成设备登录密码下发给设备,避免密钥保存在客户端侧产生的密钥泄露风险。
|
560
|
+
|
561
|
+
开启项目共享密钥后,对于已注册的设备,仍可使用原设备密码登录。若希望仅能通过共享密钥生成密码登录,请通过云 API 将设备密码更新为"USEPROJECTKEYPWD"。
|
562
|
+
|
563
|
+
:param request: Request instance for ModifyProjectSecMode.
|
564
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyProjectSecModeRequest`
|
565
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyProjectSecModeResponse`
|
566
|
+
|
567
|
+
"""
|
568
|
+
try:
|
569
|
+
params = request._serialize()
|
570
|
+
headers = request.headers
|
571
|
+
body = self.call("ModifyProjectSecMode", params, headers=headers)
|
572
|
+
response = json.loads(body)
|
573
|
+
model = models.ModifyProjectSecModeResponse()
|
574
|
+
model._deserialize(response["Response"])
|
575
|
+
return model
|
551
576
|
except Exception as e:
|
552
577
|
if isinstance(e, TencentCloudSDKException):
|
553
578
|
raise
|
@@ -536,6 +536,9 @@ INVALIDPARAMETERVALUE_VPNCONNHEALTHCHECKIPCONFLICT = 'InvalidParameterValue.VpnC
|
|
536
536
|
# SPD规则源目IP有重叠。
|
537
537
|
INVALIDPARAMETERVALUE_VPNCONNSPDCIDRCONFLICT = 'InvalidParameterValue.VpnConnSpdCidrConflict'
|
538
538
|
|
539
|
+
# VPN网关路由参数重复。
|
540
|
+
INVALIDPARAMETERVALUE_VPNGATEWAYROUTEDUPLICATE = 'InvalidParameterValue.VpnGatewayRouteDuplicate'
|
541
|
+
|
539
542
|
# 参数Zone的值与CDC所在Zone冲突。
|
540
543
|
INVALIDPARAMETERVALUE_ZONECONFLICT = 'InvalidParameterValue.ZoneConflict'
|
541
544
|
|
@@ -1283,6 +1286,9 @@ UNSUPPORTEDOPERATION_VPCPEERINVALIDSTATECHANGE = 'UnsupportedOperation.VpcPeerIn
|
|
1283
1286
|
# 该账不能发起操作。
|
1284
1287
|
UNSUPPORTEDOPERATION_VPCPEERPURVIEWERROR = 'UnsupportedOperation.VpcPeerPurviewError'
|
1285
1288
|
|
1289
|
+
# VPN SPD通道不支持配置健康检查
|
1290
|
+
UNSUPPORTEDOPERATION_VPNCONNCIDRNOTSUPPORTEDHEALTHCHECK = 'UnsupportedOperation.VpnConnCidrNotSupportedHealthCheck'
|
1291
|
+
|
1286
1292
|
# 当前通道为非可用状态,不支持该操作。
|
1287
1293
|
UNSUPPORTEDOPERATION_VPNCONNINVALIDSTATE = 'UnsupportedOperation.VpnConnInvalidState'
|
1288
1294
|
|
@@ -1307,6 +1313,9 @@ UNSUPPORTEDOPERATION_VPNUNSUPPORTEDMODIFYBGPASN = 'UnsupportedOperation.VpnUnsup
|
|
1307
1313
|
# VPN未配置BGP ASN。
|
1308
1314
|
UNSUPPORTEDOPERATION_VPNUNSUPPORTEDNOTEXISTBGPASN = 'UnsupportedOperation.VpnUnsupportedNotExistBgpAsn'
|
1309
1315
|
|
1316
|
+
# 3.1以下版本VPN网关不支持配置ecmp路由
|
1317
|
+
UNSUPPORTEDOPERATION_VPNUNSUPPORTEDROUTEECMPFORCVMVPN = 'UnsupportedOperation.VpnUnsupportedRouteEcmpForCvmVpn'
|
1318
|
+
|
1310
1319
|
# 指定资源在不同的可用区。
|
1311
1320
|
UNSUPPORTEDOPERATION_ZONEMISMATCH = 'UnsupportedOperation.ZoneMismatch'
|
1312
1321
|
|