Skip to content

Commit 0ba4903

Browse files
authored
Merge pull request #191 from Tanc009/master
jdcloud-sdk-java
2 parents 3340d55 + c09d45f commit 0ba4903

108 files changed

Lines changed: 11513 additions & 37 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.

disk/ChangeLog.md

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

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
| 2020-03-02|0.12.6|新增接口|新增quota查询和快照策略相关接口|
67
| 2020-02-12|0.12.5|新增接口|新增批量删除快照接口|
78
| 2019-10-21|0.12.4|升级|升级charge版本|
89
| 2019-06-27|0.12.3|新增接口|新增续费系统查询资源名称/资源绑定关系接口|

disk/pom.xml

Lines changed: 2 additions & 2 deletions
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>disk</artifactId>
8-
<version>0.12.5</version>
8+
<version>0.12.6</version>
99
<packaging>jar</packaging>
1010
<name>disk</name>
1111
<url>http://www.jdcloud.com</url>
@@ -49,7 +49,7 @@
4949
<dependency>
5050
<groupId>com.jdcloud.sdk</groupId>
5151
<artifactId>core</artifactId>
52-
<version>1.2.0</version>
52+
<version>1.2.3</version>
5353
</dependency>
5454
<dependency>
5555
<groupId>com.jdcloud.sdk</groupId>
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+
* 云硬盘相关接口,快照策略的创建,更新,删除,查询,绑定/解绑磁盘等接口。
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.disk.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.disk.model.ApplySnapshotPoliciesResponse;
30+
31+
/**
32+
* 绑定/解绑快照策略与磁盘关系
33+
*/
34+
class ApplySnapshotPoliciesExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "POST";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/snapshotPolicies:apply";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return ApplySnapshotPoliciesResponse.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+
* 云硬盘相关接口,快照策略的创建,更新,删除,查询,绑定/解绑磁盘等接口。
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.disk.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.disk.model.CreateSnapshotPolicyResponse;
30+
31+
/**
32+
* 创建快照策略
33+
*/
34+
class CreateSnapshotPolicyExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "POST";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/snapshotPolicy";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return CreateSnapshotPolicyResponse.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+
* 云硬盘相关接口,快照策略的创建,更新,删除,查询,绑定/解绑磁盘等接口。
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.disk.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.disk.model.DeleteSnapshotPolicyResponse;
30+
31+
/**
32+
* 删除快照策略
33+
*/
34+
class DeleteSnapshotPolicyExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "DELETE";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/snapshotPolicy/{policyId}";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DeleteSnapshotPolicyResponse.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+
* 查询资源的配额
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.disk.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.disk.model.DescribeQuotaResponse;
30+
31+
/**
32+
* 查询云硬盘和快照资源的配额
33+
*/
34+
class DescribeQuotaExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "GET";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/quotas";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DescribeQuotaResponse.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+
* 云硬盘相关接口,快照策略的创建,更新,删除,查询,绑定/解绑磁盘等接口。
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.disk.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.disk.model.DescribeSnapPolicesResponse;
30+
31+
/**
32+
* 查询快照策略
33+
*/
34+
class DescribeSnapPolicesExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "POST";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/snapPolicies:describe";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DescribeSnapPolicesResponse.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+
* 快照相关接口,提供创建快照,查询快照信息,删除快照,修改快照信息等功能。
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.disk.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.disk.model.DescribeSnapshotChainResponse;
30+
31+
/**
32+
* 查询快照链的快照个数和快照总容量
33+
*/
34+
class DescribeSnapshotChainExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "GET";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/snapshots:chain";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DescribeSnapshotChainResponse.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+
* 云硬盘相关接口,快照策略的创建,更新,删除,查询,绑定/解绑磁盘等接口。
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.disk.client;
26+
27+
import com.jdcloud.sdk.client.JdcloudExecutor;
28+
import com.jdcloud.sdk.service.JdcloudResponse;
29+
import com.jdcloud.sdk.service.disk.model.DescribeSnapshotPoliciesResponse;
30+
31+
/**
32+
* 查询快照策略
33+
*/
34+
class DescribeSnapshotPoliciesExecutor extends JdcloudExecutor {
35+
36+
@Override
37+
public String method() {
38+
return "POST";
39+
}
40+
41+
@Override
42+
public String url() {
43+
return "/regions/{regionId}/snapshotPolicies:describe";
44+
}
45+
46+
@Override
47+
public Class<? extends JdcloudResponse> returnType() {
48+
return DescribeSnapshotPoliciesResponse.class;
49+
}
50+
}

0 commit comments

Comments
 (0)