Skip to content

Commit 1723e0e

Browse files
authored
Merge pull request #185 from Tanc009/master
jdcloud-sdk-java
2 parents b0f1581 + 4498bd9 commit 1723e0e

18 files changed

Lines changed: 1743 additions & 10 deletions

cdn/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# 更新历史 #
2-
API版本:0.10.23
2+
API版本:0.10.24
33

44

55

66

77
| 发布时间 | 版本号 | 更新 | 说明 |
88
| ---------- | ------ | ---------------------------------------------------------- | ---- |
9+
| 2020-11-05 | 0.10.24 |增加控制台获取地域运行商新接口 |
910
| 2020-10-14 | 0.10.23 |增加子账号设置与查询刷新预热额度接口 |
1011
| 2020-08-25 | 0.10.22 |点播域名创建支持指定模板 |
1112
| 2020-08-14 | 0.10.21 |增加头条回源鉴权参数配置和dash鉴权参数配置接口|

cdn/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>cdn</artifactId>
8-
<version>0.10.23</version>
8+
<version>0.10.24</version>
99
<packaging>jar</packaging>
1010
<name>cdn</name>
1111
<url>http://www.jdcloud.com</url>

cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/CdnClient.java

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
import com.jdcloud.sdk.service.cdn.model.SetDomainConfigRequest;
8989
import com.jdcloud.sdk.service.cdn.model.SetDomainConfigResponse;
9090
import com.jdcloud.sdk.service.cdn.client.SetDomainConfigExecutor;
91+
import com.jdcloud.sdk.service.cdn.model.QueryCustomizedDirBandWidthRequest;
92+
import com.jdcloud.sdk.service.cdn.model.QueryCustomizedDirBandWidthResponse;
93+
import com.jdcloud.sdk.service.cdn.client.QueryCustomizedDirBandWidthExecutor;
9194
import com.jdcloud.sdk.service.cdn.model.SetRefreshLimitRequest;
9295
import com.jdcloud.sdk.service.cdn.model.SetRefreshLimitResponse;
9396
import com.jdcloud.sdk.service.cdn.client.SetRefreshLimitExecutor;
@@ -259,6 +262,9 @@
259262
import com.jdcloud.sdk.service.cdn.model.CreateWafWhiteRuleRequest;
260263
import com.jdcloud.sdk.service.cdn.model.CreateWafWhiteRuleResponse;
261264
import com.jdcloud.sdk.service.cdn.client.CreateWafWhiteRuleExecutor;
265+
import com.jdcloud.sdk.service.cdn.model.QueryAreaIspListV2Request;
266+
import com.jdcloud.sdk.service.cdn.model.QueryAreaIspListV2Response;
267+
import com.jdcloud.sdk.service.cdn.client.QueryAreaIspListV2Executor;
262268
import com.jdcloud.sdk.service.cdn.model.QueryAvgBandwidthForPCdnRequest;
263269
import com.jdcloud.sdk.service.cdn.model.QueryAvgBandwidthForPCdnResponse;
264270
import com.jdcloud.sdk.service.cdn.client.QueryAvgBandwidthForPCdnExecutor;
@@ -424,6 +430,9 @@
424430
import com.jdcloud.sdk.service.cdn.model.QueryBackSourcePathRequest;
425431
import com.jdcloud.sdk.service.cdn.model.QueryBackSourcePathResponse;
426432
import com.jdcloud.sdk.service.cdn.client.QueryBackSourcePathExecutor;
433+
import com.jdcloud.sdk.service.cdn.model.QueryJBoxAvgBandwidthRequest;
434+
import com.jdcloud.sdk.service.cdn.model.QueryJBoxAvgBandwidthResponse;
435+
import com.jdcloud.sdk.service.cdn.client.QueryJBoxAvgBandwidthExecutor;
427436
import com.jdcloud.sdk.service.cdn.model.SetSourceAuthConfigRequest;
428437
import com.jdcloud.sdk.service.cdn.model.SetSourceAuthConfigResponse;
429438
import com.jdcloud.sdk.service.cdn.client.SetSourceAuthConfigExecutor;
@@ -836,6 +845,17 @@ public SetDomainConfigResponse setDomainConfig(SetDomainConfigRequest request) t
836845
return new SetDomainConfigExecutor().client(this).execute(request);
837846
}
838847

848+
/**
849+
* 查询定制的目录带宽,仅有部分用户支持该功能
850+
*
851+
* @param request
852+
* @return
853+
* @throws JdcloudSdkException
854+
*/
855+
public QueryCustomizedDirBandWidthResponse queryCustomizedDirBandWidth(QueryCustomizedDirBandWidthRequest request) throws JdcloudSdkException {
856+
return new QueryCustomizedDirBandWidthExecutor().client(this).execute(request);
857+
}
858+
839859
/**
840860
* 设置用户刷新预热限额
841861
*
@@ -1463,6 +1483,17 @@ public CreateWafWhiteRuleResponse createWafWhiteRule(CreateWafWhiteRuleRequest r
14631483
return new CreateWafWhiteRuleExecutor().client(this).execute(request);
14641484
}
14651485

1486+
/**
1487+
* 查找地域运营商列表
1488+
*
1489+
* @param request
1490+
* @return
1491+
* @throws JdcloudSdkException
1492+
*/
1493+
public QueryAreaIspListV2Response queryAreaIspListV2(QueryAreaIspListV2Request request) throws JdcloudSdkException {
1494+
return new QueryAreaIspListV2Executor().client(this).execute(request);
1495+
}
1496+
14661497
/**
14671498
* 查询平均带宽
14681499
*
@@ -2068,6 +2099,17 @@ public QueryBackSourcePathResponse queryBackSourcePath(QueryBackSourcePathReques
20682099
return new QueryBackSourcePathExecutor().client(this).execute(request);
20692100
}
20702101

2102+
/**
2103+
* 查询平均带宽
2104+
*
2105+
* @param request
2106+
* @return
2107+
* @throws JdcloudSdkException
2108+
*/
2109+
public QueryJBoxAvgBandwidthResponse queryJBoxAvgBandwidth(QueryJBoxAvgBandwidthRequest request) throws JdcloudSdkException {
2110+
return new QueryJBoxAvgBandwidthExecutor().client(this).execute(request);
2111+
}
2112+
20712113
/**
20722114
* 回源鉴权设置
20732115
*
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+
* 统计查询类接口
17+
* Openapi For JCLOUD cdn
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact: pid-cdn@jd.com
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.cdn.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.cdn.model.QueryAreaIspListV2Response;
30+
31+
/**
32+
* 查找地域运营商列表
33+
*/
34+
class QueryAreaIspListV2Executor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "GET";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/console:areaIspListV2";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return QueryAreaIspListV2Response.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+
* 统计查询类接口
17+
* Openapi For JCLOUD cdn
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact: pid-cdn@jd.com
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.cdn.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.cdn.model.QueryCustomizedDirBandWidthResponse;
30+
31+
/**
32+
* 查询定制的目录带宽,仅有部分用户支持该功能
33+
*/
34+
class QueryCustomizedDirBandWidthExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "POST";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/statistics:queryCustomizedDirBandWidth";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return QueryCustomizedDirBandWidthResponse.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+
* PCdn统计查询接口
17+
* Openapi For JCLOUD cdn
18+
*
19+
* OpenAPI spec version: v1
20+
* Contact: pid-cdn@jd.com
21+
*
22+
* NOTE: This class is auto generated by the jdcloud code generator program.
23+
*/
24+
25+
package com.jdcloud.sdk.service.cdn.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.cdn.model.QueryJBoxAvgBandwidthResponse;
30+
31+
/**
32+
* 查询平均带宽
33+
*/
34+
class QueryJBoxAvgBandwidthExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "GET";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/jdbox:queryAvgBandwidth";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return QueryJBoxAvgBandwidthResponse.class;
49+
}
50+
}

0 commit comments

Comments
 (0)