tencentcloud-sdk-python-cfw 3.0.838__tar.gz → 3.0.840__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.
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud/cfw/v20190904/cfw_client.py +69 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud/cfw/v20190904/models.py +187 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/README.rst +0 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/setup.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud/cfw/__init__.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud/cfw/v20190904/__init__.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud/cfw/v20190904/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cfw-3.0.838 → tencentcloud-sdk-python-cfw-3.0.840}/tencentcloud_sdk_python_cfw.egg-info/top_level.txt +0 -0
|
@@ -1156,6 +1156,52 @@ class CfwClient(AbstractClient):
|
|
|
1156
1156
|
raise TencentCloudSDKException(e.message, e.message)
|
|
1157
1157
|
|
|
1158
1158
|
|
|
1159
|
+
def ModifyEnterpriseSecurityDispatchStatus(self, request):
|
|
1160
|
+
"""修改企业安全组下发状态
|
|
1161
|
+
|
|
1162
|
+
:param request: Request instance for ModifyEnterpriseSecurityDispatchStatus.
|
|
1163
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.ModifyEnterpriseSecurityDispatchStatusRequest`
|
|
1164
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.ModifyEnterpriseSecurityDispatchStatusResponse`
|
|
1165
|
+
|
|
1166
|
+
"""
|
|
1167
|
+
try:
|
|
1168
|
+
params = request._serialize()
|
|
1169
|
+
headers = request.headers
|
|
1170
|
+
body = self.call("ModifyEnterpriseSecurityDispatchStatus", params, headers=headers)
|
|
1171
|
+
response = json.loads(body)
|
|
1172
|
+
model = models.ModifyEnterpriseSecurityDispatchStatusResponse()
|
|
1173
|
+
model._deserialize(response["Response"])
|
|
1174
|
+
return model
|
|
1175
|
+
except Exception as e:
|
|
1176
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1177
|
+
raise
|
|
1178
|
+
else:
|
|
1179
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
def ModifyEnterpriseSecurityGroupRule(self, request):
|
|
1183
|
+
"""编辑新企业安全组规则
|
|
1184
|
+
|
|
1185
|
+
:param request: Request instance for ModifyEnterpriseSecurityGroupRule.
|
|
1186
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.ModifyEnterpriseSecurityGroupRuleRequest`
|
|
1187
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.ModifyEnterpriseSecurityGroupRuleResponse`
|
|
1188
|
+
|
|
1189
|
+
"""
|
|
1190
|
+
try:
|
|
1191
|
+
params = request._serialize()
|
|
1192
|
+
headers = request.headers
|
|
1193
|
+
body = self.call("ModifyEnterpriseSecurityGroupRule", params, headers=headers)
|
|
1194
|
+
response = json.loads(body)
|
|
1195
|
+
model = models.ModifyEnterpriseSecurityGroupRuleResponse()
|
|
1196
|
+
model._deserialize(response["Response"])
|
|
1197
|
+
return model
|
|
1198
|
+
except Exception as e:
|
|
1199
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1200
|
+
raise
|
|
1201
|
+
else:
|
|
1202
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
1203
|
+
|
|
1204
|
+
|
|
1159
1205
|
def ModifyNatAcRule(self, request):
|
|
1160
1206
|
"""修改NAT访问控制规则
|
|
1161
1207
|
|
|
@@ -1248,6 +1294,29 @@ class CfwClient(AbstractClient):
|
|
|
1248
1294
|
raise TencentCloudSDKException(e.message, e.message)
|
|
1249
1295
|
|
|
1250
1296
|
|
|
1297
|
+
def ModifyNatSequenceRules(self, request):
|
|
1298
|
+
"""NAT防火墙规则快速排序
|
|
1299
|
+
|
|
1300
|
+
:param request: Request instance for ModifyNatSequenceRules.
|
|
1301
|
+
:type request: :class:`tencentcloud.cfw.v20190904.models.ModifyNatSequenceRulesRequest`
|
|
1302
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.ModifyNatSequenceRulesResponse`
|
|
1303
|
+
|
|
1304
|
+
"""
|
|
1305
|
+
try:
|
|
1306
|
+
params = request._serialize()
|
|
1307
|
+
headers = request.headers
|
|
1308
|
+
body = self.call("ModifyNatSequenceRules", params, headers=headers)
|
|
1309
|
+
response = json.loads(body)
|
|
1310
|
+
model = models.ModifyNatSequenceRulesResponse()
|
|
1311
|
+
model._deserialize(response["Response"])
|
|
1312
|
+
return model
|
|
1313
|
+
except Exception as e:
|
|
1314
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1315
|
+
raise
|
|
1316
|
+
else:
|
|
1317
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
1318
|
+
|
|
1319
|
+
|
|
1251
1320
|
def ModifyPublicIPSwitchStatus(self, request):
|
|
1252
1321
|
"""单个修改互联网边界防火墙开关
|
|
1253
1322
|
|
|
@@ -4134,6 +4134,115 @@ class ModifyBlockTopResponse(AbstractModel):
|
|
|
4134
4134
|
self.RequestId = params.get("RequestId")
|
|
4135
4135
|
|
|
4136
4136
|
|
|
4137
|
+
class ModifyEnterpriseSecurityDispatchStatusRequest(AbstractModel):
|
|
4138
|
+
"""ModifyEnterpriseSecurityDispatchStatus请求参数结构体
|
|
4139
|
+
|
|
4140
|
+
"""
|
|
4141
|
+
|
|
4142
|
+
def __init__(self):
|
|
4143
|
+
r"""
|
|
4144
|
+
:param Status: 状态,0:立即下发,1:停止下发
|
|
4145
|
+
:type Status: int
|
|
4146
|
+
"""
|
|
4147
|
+
self.Status = None
|
|
4148
|
+
|
|
4149
|
+
|
|
4150
|
+
def _deserialize(self, params):
|
|
4151
|
+
self.Status = params.get("Status")
|
|
4152
|
+
memeber_set = set(params.keys())
|
|
4153
|
+
for name, value in vars(self).items():
|
|
4154
|
+
if name in memeber_set:
|
|
4155
|
+
memeber_set.remove(name)
|
|
4156
|
+
if len(memeber_set) > 0:
|
|
4157
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
|
|
4161
|
+
class ModifyEnterpriseSecurityDispatchStatusResponse(AbstractModel):
|
|
4162
|
+
"""ModifyEnterpriseSecurityDispatchStatus返回参数结构体
|
|
4163
|
+
|
|
4164
|
+
"""
|
|
4165
|
+
|
|
4166
|
+
def __init__(self):
|
|
4167
|
+
r"""
|
|
4168
|
+
:param Status: 0: 修改成功, 其他: 修改失败
|
|
4169
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4170
|
+
:type Status: int
|
|
4171
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4172
|
+
:type RequestId: str
|
|
4173
|
+
"""
|
|
4174
|
+
self.Status = None
|
|
4175
|
+
self.RequestId = None
|
|
4176
|
+
|
|
4177
|
+
|
|
4178
|
+
def _deserialize(self, params):
|
|
4179
|
+
self.Status = params.get("Status")
|
|
4180
|
+
self.RequestId = params.get("RequestId")
|
|
4181
|
+
|
|
4182
|
+
|
|
4183
|
+
class ModifyEnterpriseSecurityGroupRuleRequest(AbstractModel):
|
|
4184
|
+
"""ModifyEnterpriseSecurityGroupRule请求参数结构体
|
|
4185
|
+
|
|
4186
|
+
"""
|
|
4187
|
+
|
|
4188
|
+
def __init__(self):
|
|
4189
|
+
r"""
|
|
4190
|
+
:param RuleUuid: 规则的uuid,可通过查询规则列表获取
|
|
4191
|
+
:type RuleUuid: int
|
|
4192
|
+
:param ModifyType: 修改类型,0:修改规则内容;1:修改单条规则开关状态;2:修改所有规则开关状态
|
|
4193
|
+
:type ModifyType: int
|
|
4194
|
+
:param Data: 编辑后的企业安全组规则数据;修改规则状态不用填该字段
|
|
4195
|
+
:type Data: :class:`tencentcloud.cfw.v20190904.models.SecurityGroupRule`
|
|
4196
|
+
:param Enable: 0是关闭,1是开启
|
|
4197
|
+
:type Enable: int
|
|
4198
|
+
"""
|
|
4199
|
+
self.RuleUuid = None
|
|
4200
|
+
self.ModifyType = None
|
|
4201
|
+
self.Data = None
|
|
4202
|
+
self.Enable = None
|
|
4203
|
+
|
|
4204
|
+
|
|
4205
|
+
def _deserialize(self, params):
|
|
4206
|
+
self.RuleUuid = params.get("RuleUuid")
|
|
4207
|
+
self.ModifyType = params.get("ModifyType")
|
|
4208
|
+
if params.get("Data") is not None:
|
|
4209
|
+
self.Data = SecurityGroupRule()
|
|
4210
|
+
self.Data._deserialize(params.get("Data"))
|
|
4211
|
+
self.Enable = params.get("Enable")
|
|
4212
|
+
memeber_set = set(params.keys())
|
|
4213
|
+
for name, value in vars(self).items():
|
|
4214
|
+
if name in memeber_set:
|
|
4215
|
+
memeber_set.remove(name)
|
|
4216
|
+
if len(memeber_set) > 0:
|
|
4217
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4218
|
+
|
|
4219
|
+
|
|
4220
|
+
|
|
4221
|
+
class ModifyEnterpriseSecurityGroupRuleResponse(AbstractModel):
|
|
4222
|
+
"""ModifyEnterpriseSecurityGroupRule返回参数结构体
|
|
4223
|
+
|
|
4224
|
+
"""
|
|
4225
|
+
|
|
4226
|
+
def __init__(self):
|
|
4227
|
+
r"""
|
|
4228
|
+
:param Status: 状态值,0:编辑成功,非0:编辑失败
|
|
4229
|
+
:type Status: int
|
|
4230
|
+
:param NewRuleUuid: 编辑后新生成规则的Id
|
|
4231
|
+
:type NewRuleUuid: int
|
|
4232
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4233
|
+
:type RequestId: str
|
|
4234
|
+
"""
|
|
4235
|
+
self.Status = None
|
|
4236
|
+
self.NewRuleUuid = None
|
|
4237
|
+
self.RequestId = None
|
|
4238
|
+
|
|
4239
|
+
|
|
4240
|
+
def _deserialize(self, params):
|
|
4241
|
+
self.Status = params.get("Status")
|
|
4242
|
+
self.NewRuleUuid = params.get("NewRuleUuid")
|
|
4243
|
+
self.RequestId = params.get("RequestId")
|
|
4244
|
+
|
|
4245
|
+
|
|
4137
4246
|
class ModifyNatAcRuleRequest(AbstractModel):
|
|
4138
4247
|
"""ModifyNatAcRule请求参数结构体
|
|
4139
4248
|
|
|
@@ -4351,6 +4460,56 @@ class ModifyNatFwVpcDnsSwitchResponse(AbstractModel):
|
|
|
4351
4460
|
self.RequestId = params.get("RequestId")
|
|
4352
4461
|
|
|
4353
4462
|
|
|
4463
|
+
class ModifyNatSequenceRulesRequest(AbstractModel):
|
|
4464
|
+
"""ModifyNatSequenceRules请求参数结构体
|
|
4465
|
+
|
|
4466
|
+
"""
|
|
4467
|
+
|
|
4468
|
+
def __init__(self):
|
|
4469
|
+
r"""
|
|
4470
|
+
:param RuleChangeItems: 规则快速排序:OrderIndex,原始序号;NewOrderIndex:新序号
|
|
4471
|
+
:type RuleChangeItems: list of RuleChangeItem
|
|
4472
|
+
:param Direction: 规则方向:1,入站;0,出站
|
|
4473
|
+
:type Direction: int
|
|
4474
|
+
"""
|
|
4475
|
+
self.RuleChangeItems = None
|
|
4476
|
+
self.Direction = None
|
|
4477
|
+
|
|
4478
|
+
|
|
4479
|
+
def _deserialize(self, params):
|
|
4480
|
+
if params.get("RuleChangeItems") is not None:
|
|
4481
|
+
self.RuleChangeItems = []
|
|
4482
|
+
for item in params.get("RuleChangeItems"):
|
|
4483
|
+
obj = RuleChangeItem()
|
|
4484
|
+
obj._deserialize(item)
|
|
4485
|
+
self.RuleChangeItems.append(obj)
|
|
4486
|
+
self.Direction = params.get("Direction")
|
|
4487
|
+
memeber_set = set(params.keys())
|
|
4488
|
+
for name, value in vars(self).items():
|
|
4489
|
+
if name in memeber_set:
|
|
4490
|
+
memeber_set.remove(name)
|
|
4491
|
+
if len(memeber_set) > 0:
|
|
4492
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4493
|
+
|
|
4494
|
+
|
|
4495
|
+
|
|
4496
|
+
class ModifyNatSequenceRulesResponse(AbstractModel):
|
|
4497
|
+
"""ModifyNatSequenceRules返回参数结构体
|
|
4498
|
+
|
|
4499
|
+
"""
|
|
4500
|
+
|
|
4501
|
+
def __init__(self):
|
|
4502
|
+
r"""
|
|
4503
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4504
|
+
:type RequestId: str
|
|
4505
|
+
"""
|
|
4506
|
+
self.RequestId = None
|
|
4507
|
+
|
|
4508
|
+
|
|
4509
|
+
def _deserialize(self, params):
|
|
4510
|
+
self.RequestId = params.get("RequestId")
|
|
4511
|
+
|
|
4512
|
+
|
|
4354
4513
|
class ModifyPublicIPSwitchStatusRequest(AbstractModel):
|
|
4355
4514
|
"""ModifyPublicIPSwitchStatus请求参数结构体
|
|
4356
4515
|
|
|
@@ -5213,6 +5372,34 @@ class RemoveNatAcRuleResponse(AbstractModel):
|
|
|
5213
5372
|
self.RequestId = params.get("RequestId")
|
|
5214
5373
|
|
|
5215
5374
|
|
|
5375
|
+
class RuleChangeItem(AbstractModel):
|
|
5376
|
+
"""规则顺序变更项,由原始id值变为新的id值。
|
|
5377
|
+
|
|
5378
|
+
"""
|
|
5379
|
+
|
|
5380
|
+
def __init__(self):
|
|
5381
|
+
r"""
|
|
5382
|
+
:param OrderIndex: 原始sequence 值
|
|
5383
|
+
:type OrderIndex: int
|
|
5384
|
+
:param NewOrderIndex: 新的sequence 值
|
|
5385
|
+
:type NewOrderIndex: int
|
|
5386
|
+
"""
|
|
5387
|
+
self.OrderIndex = None
|
|
5388
|
+
self.NewOrderIndex = None
|
|
5389
|
+
|
|
5390
|
+
|
|
5391
|
+
def _deserialize(self, params):
|
|
5392
|
+
self.OrderIndex = params.get("OrderIndex")
|
|
5393
|
+
self.NewOrderIndex = params.get("NewOrderIndex")
|
|
5394
|
+
memeber_set = set(params.keys())
|
|
5395
|
+
for name, value in vars(self).items():
|
|
5396
|
+
if name in memeber_set:
|
|
5397
|
+
memeber_set.remove(name)
|
|
5398
|
+
if len(memeber_set) > 0:
|
|
5399
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5400
|
+
|
|
5401
|
+
|
|
5402
|
+
|
|
5216
5403
|
class RuleInfoData(AbstractModel):
|
|
5217
5404
|
"""规则输入对象
|
|
5218
5405
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|