Skip to content

Commit f57f571

Browse files
committed
publish jdcloud-sdk-python 1.6.92
1 parent 7069eb9 commit f57f571

22 files changed

+914
-5
lines changed

jdcloud_sdk/services/ipanti/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# 更新历史 #
2-
API版本:1.9.0
2+
API版本:1.10.0
33

44
| 发布时间 | 版本号 | 更新 | 说明 |
55
| ---------- | ------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
6+
| 2021-03-12 | 1.10.0 | 接口新增 | 1. 新增防护调度规则相关接口<br>2. 新增接口 describeOriginWhiteIpList 查询高防回源 IP 白名单|
67
| 2021-01-29 | 1.9.0 | 接口新增与更新 | 1. 新增接口 describeDDoSIpAttackLogs 查询IP级别的攻击记录<br>2. 新增接口查询新建与并发连接数统计报表, 业务流量报表<br>3. 新增实例全局访问控制配置, 包括全局的IP黑白名单和geo拦截配置接口<br>4. 新增错误码返回自定义页面相关配置接口<br>5. 网站规则回源 IP 支持设置托管区公网 IP(使用 describeCcsIpList 查询可知)|
78
| 2020-11-19 | 1.8.0 | 接口新增与更新 | 1. 新增JS指纹相关接口<br>2. 新增网站类规则的自定义 CC 防护规则总开关接口<br>3. 新增批量创建网站规则接口<br>4. 新增批量创建非网站规则接口|
89
| 2020-06-24 | 1.7.0 | 接口新增与更新 | 1. 新增查询实例高防IP接口<br>2. 创建实例支持BGP线路, 支持购买高防IP数, 端口数, 域名数, 支持同时开通自动续费<br>3. 查询攻击记录黑洞状态更新为未封禁、封禁中、封禁结束<br>4. 告警配置支持HTTP状态码告警 |
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class CreateDispatchRuleRequest(JDCloudRequest):
23+
"""
24+
添加防护调度规则
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateDispatchRuleRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/dispatchRules', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateDispatchRuleParameters(object):
34+
35+
def __init__(self, regionId, instanceId, createDispatchRuleSpec):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param instanceId: 高防实例 Id
39+
:param createDispatchRuleSpec: 添加防护调度规则请求参数
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.createDispatchRuleSpec = createDispatchRuleSpec
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class CreateDispatchRulesRequest(JDCloudRequest):
23+
"""
24+
批量添加防护调度规则
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateDispatchRulesRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}:createDispatchRules', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateDispatchRulesParameters(object):
34+
35+
def __init__(self, regionId, instanceId, dispatchRuleSpecList):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param instanceId: 高防实例 Id
39+
:param dispatchRuleSpecList: 批量添加防护调度规则请求参数
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.dispatchRuleSpecList = dispatchRuleSpecList
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DeleteDispatchRuleRequest(JDCloudRequest):
23+
"""
24+
删除防护调度规则
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DeleteDispatchRuleRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/dispatchRules/{dispatchRuleId}', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteDispatchRuleParameters(object):
34+
35+
def __init__(self, regionId, instanceId, dispatchRuleId, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param instanceId: 高防实例 Id
39+
:param dispatchRuleId: 防护调度规则 Id
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.dispatchRuleId = dispatchRuleId
45+
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeDispatchRulesRequest(JDCloudRequest):
23+
"""
24+
查询某个实例下的防护调度规则
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeDispatchRulesRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/dispatchRules', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeDispatchRulesParameters(object):
34+
35+
def __init__(self, regionId, instanceId, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param instanceId: 高防实例 Id
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+
self.pageNumber = None
44+
self.pageSize = None
45+
self.name = None
46+
self.innerIp = None
47+
self.serviceIp = None
48+
49+
def setPageNumber(self, pageNumber):
50+
"""
51+
:param pageNumber: (Optional) 页码, 默认为1
52+
"""
53+
self.pageNumber = pageNumber
54+
55+
def setPageSize(self, pageSize):
56+
"""
57+
:param pageSize: (Optional) 分页大小, 默认为10, 取值范围[10, 100]
58+
"""
59+
self.pageSize = pageSize
60+
61+
def setName(self, name):
62+
"""
63+
:param name: (Optional) 实例名称, 可模糊匹配
64+
"""
65+
self.name = name
66+
67+
def setInnerIp(self, innerIp):
68+
"""
69+
:param innerIp: (Optional) 云内IP, 可模糊匹配
70+
"""
71+
self.innerIp = innerIp
72+
73+
def setServiceIp(self, serviceIp):
74+
"""
75+
:param serviceIp: (Optional) 高防IP, 可模糊匹配
76+
"""
77+
self.serviceIp = serviceIp
78+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeOriginWhiteIpListRequest(JDCloudRequest):
23+
"""
24+
查询高防实例回源 IP 白名单列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeOriginWhiteIpListRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}:describeOriginWhiteIpList', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeOriginWhiteIpListParameters(object):
34+
35+
def __init__(self, regionId, instanceId, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param instanceId: 实例 ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeProtectionOutlineRequest(JDCloudRequest):
23+
"""
24+
查询高防实例防护概要
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeProtectionOutlineRequest, self).__init__(
29+
'/regions/{regionId}/describeProtectionOutline', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeProtectionOutlineParameters(object):
34+
35+
def __init__(self, regionId, ):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
"""
39+
40+
self.regionId = regionId
41+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class ModifyDispatchRuleRequest(JDCloudRequest):
23+
"""
24+
更新防护调度规则
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ModifyDispatchRuleRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/dispatchRules/{dispatchRuleId}', 'PATCH', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ModifyDispatchRuleParameters(object):
34+
35+
def __init__(self, regionId, instanceId, dispatchRuleId, modifyDispatchRuleSpec):
36+
"""
37+
:param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可
38+
:param instanceId: 高防实例 Id
39+
:param dispatchRuleId: 防护调度规则 Id
40+
:param modifyDispatchRuleSpec: 更新防护调度规则请求参数
41+
"""
42+
43+
self.regionId = regionId
44+
self.instanceId = instanceId
45+
self.dispatchRuleId = dispatchRuleId
46+
self.modifyDispatchRuleSpec = modifyDispatchRuleSpec
47+

0 commit comments

Comments
 (0)