Skip to content

Commit be4ff8f

Browse files
authored
Merge pull request #188 from Tanc009/master
jdcloud-sdk-java updates
2 parents 1a16396 + 2443527 commit be4ff8f

242 files changed

Lines changed: 28935 additions & 229 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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.8.0
2+
API版本:1.9.0
33

44
| 发布时间 | 版本号 | 更新 | 说明 |
55
| ---------- | ------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
6+
| 2021-01-29 | 1.9.0 | 接口新增与更新 | 1. 新增接口 describeDDoSIpAttackLogs 查询IP级别的攻击记录<br>2. 新增接口查询新建与并发连接数统计报表, 业务流量报表<br>3. 新增实例全局访问控制配置, 包括全局的IP黑白名单和geo拦截配置接口<br>4. 新增错误码返回自定义页面相关配置接口<br>5. 网站规则回源 IP 支持设置托管区公网 IP(使用 describeCcsIpList 查询可知)|
67
| 2020-11-19 | 1.8.0 | 接口新增与更新 | 1. 新增JS指纹相关接口<br>2. 新增网站类规则的自定义 CC 防护规则总开关接口<br>3. 新增批量创建网站规则接口<br>4. 新增批量创建非网站规则接口|
78
| 2020-06-24 | 1.7.0 | 接口新增与更新 | 1. 新增查询实例高防IP接口<br>2. 创建实例支持BGP线路, 支持购买高防IP数, 端口数, 域名数, 支持同时开通自动续费<br>3. 查询攻击记录黑洞状态更新为未封禁、封禁中、封禁结束<br>4. 告警配置支持HTTP状态码告警 |
89
| 2020-03-05 | 1.6.12 | 接口新增与更新 | 1. 网站规则创建与编辑不再支持上传证书, IP 高防已对接 SSL 数字证书, 新增网站规则绑定证书接口 bindCert <br>2. 网站类规则支持按地域回源, 新增接口查询网站类转发规则按地域回源配置 geoRsRoute 参数可设置的区域 |

ipanti/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.jdcloud.sdk</groupId>
77
<artifactId>ipanti</artifactId>
8-
<version>1.8.0</version>
8+
<version>1.9.0</version>
99
<packaging>jar</packaging>
1010
<name>ipanti</name>
1111
<url>http://www.jdcloud.com</url>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2018 JDCLOUD.COM
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http:#www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* Anti DDos Pro Instance APIs
17+
* Anti DDos Pro Instance APIs
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact:
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.ipanti.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.ipanti.model.CreateCustomPageResponse;
30+
31+
/**
32+
* 添加自定义页面
33+
*/
34+
class CreateCustomPageExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "POST";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/instances/{instanceId}/customPages";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return CreateCustomPageResponse.class;
49+
}
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2018 JDCLOUD.COM
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http:#www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* Anti DDos Pro Instance APIs
17+
* Anti DDos Pro Instance APIs
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact:
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.ipanti.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.ipanti.model.DeleteCustomPageResponse;
30+
31+
/**
32+
* 删除自定义页面, 使用中的不允许删除
33+
*/
34+
class DeleteCustomPageExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "DELETE";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/instances/{instanceId}/customPages/{pageId}";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DeleteCustomPageResponse.class;
49+
}
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2018 JDCLOUD.COM
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http:#www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* Anti DDoS Pro Flow APIs
17+
* Anti DDoS Pro Flow APIs
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact:
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.ipanti.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.ipanti.model.DescribeBusinessGraphResponse;
30+
31+
/**
32+
* 业务流量报表
33+
*/
34+
class DescribeBusinessGraphExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "GET";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/charts:businessGraph";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DescribeBusinessGraphResponse.class;
49+
}
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2018 JDCLOUD.COM
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http:#www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* Anti DDos Pro Instance APIs
17+
* Anti DDos Pro Instance APIs
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact:
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.ipanti.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.ipanti.model.DescribeCcsIpListResponse;
30+
31+
/**
32+
* 查询用户可设置为网站类规则回源 IP 的京东云托管区公网 IP 资源
33+
*/
34+
class DescribeCcsIpListExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "GET";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/ccsIpResources";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DescribeCcsIpListResponse.class;
49+
}
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2018 JDCLOUD.COM
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http:#www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* Anti DDoS Pro Flow APIs
17+
* Anti DDoS Pro Flow APIs
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact:
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.ipanti.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.ipanti.model.DescribeConnStatGraphResponse;
30+
31+
/**
32+
* 新建与并发连接数统计报表
33+
*/
34+
class DescribeConnStatGraphExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "GET";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/charts:connStatGraph";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DescribeConnStatGraphResponse.class;
49+
}
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2018 JDCLOUD.COM
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http:#www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* Anti DDos Pro Instance APIs
17+
* Anti DDos Pro Instance APIs
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact:
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.ipanti.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.ipanti.model.DescribeCustomPagesResponse;
30+
31+
/**
32+
* 查询自定义页面列表
33+
*/
34+
class DescribeCustomPagesExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "GET";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/instances/{instanceId}/customPages";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DescribeCustomPagesResponse.class;
49+
}
50+
}

ipanti/src/main/java/com/jdcloud/sdk/service/ipanti/client/DescribeDDoSAttackLogsExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import com.jdcloud.sdk.service.ipanti.model.DescribeDDoSAttackLogsResponse;
3030

3131
/**
32-
* 查询 DDoS 攻击日志
32+
* 查询 DDoS 攻击日志, 仅能查询非BGP实例的攻击记录, 同时查询BGP和非BGP实例请使用 &lt;a href&#x3D;&#39;http://docs.jdcloud.com/anti-ddos-pro/api/describeDDoSIpAttackLogs&#39;&gt;describeDDoSIpAttackLogs&lt;/a&gt;
3333
*/
3434
class DescribeDDoSAttackLogsExecutor extends JdcloudExecutor {
3535

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2018 JDCLOUD.COM
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http:#www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* Anti DDoS Pro Attack Log APIs
17+
* Anti DDoS Pro Attack Log APIs
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact:
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.ipanti.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.ipanti.model.DescribeDDoSIpAttackLogsResponse;
30+
31+
/**
32+
* 查询高防IP的 DDoS 攻击日志, 仅BGP实例返回的是IP级别的攻击记录, 非BGP实例返回的仍是实例级别的攻击记录(serviceIp 字段为空)
33+
*/
34+
class DescribeDDoSIpAttackLogsExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "GET";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/attacklog:describeDDoSIpAttackLogs";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DescribeDDoSIpAttackLogsResponse.class;
49+
}
50+
}

0 commit comments

Comments
 (0)