Skip to content

Commit 09a08f3

Browse files
committed
Add snapshot settings.
1 parent d6fb5bd commit 09a08f3

23 files changed

+1270
-25
lines changed

aliyun-java-sdk-elasticsearch/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2020-07-22 Version: 3.0.17
2+
- Add snapshot settings.
3+
- Add ElasticTask.
4+
15
2020-04-20 Version: 3.0.16
26
- Add kibana network white Ips.
37

aliyun-java-sdk-elasticsearch/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-elasticsearch</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.0.16</version>
7+
<version>3.0.17</version>
88
<name>aliyun-java-sdk-elasticsearch</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-elasticsearch/src/main/java/com/aliyuncs/elasticsearch/model/v20170613/DeleteSnapshotRepoRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public class DeleteSnapshotRepoRequest extends RoaAcsRequest<DeleteSnapshotRepoR
2727

2828
private String instanceId;
2929

30+
private String clientToken;
31+
3032
private String repoPath;
3133
public DeleteSnapshotRepoRequest() {
3234
super("elasticsearch", "2017-06-13", "DeleteSnapshotRepo", "elasticsearch");
@@ -49,6 +51,17 @@ public void setInstanceId(String instanceId) {
4951
}
5052
}
5153

54+
public String getClientToken() {
55+
return this.clientToken;
56+
}
57+
58+
public void setClientToken(String clientToken) {
59+
this.clientToken = clientToken;
60+
if(clientToken != null){
61+
putQueryParameter("clientToken", clientToken);
62+
}
63+
}
64+
5265
public String getRepoPath() {
5366
return this.repoPath;
5467
}

aliyun-java-sdk-elasticsearch/src/main/java/com/aliyuncs/elasticsearch/model/v20170613/DescribeInstanceResponse.java

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ public static class Result {
138138

139139
private AdvancedSetting advancedSetting;
140140

141+
private ElasticDataNodeConfiguration elasticDataNodeConfiguration;
142+
141143
public String getInstanceId() {
142144
return this.instanceId;
143145
}
@@ -498,6 +500,14 @@ public void setAdvancedSetting(AdvancedSetting advancedSetting) {
498500
this.advancedSetting = advancedSetting;
499501
}
500502

503+
public ElasticDataNodeConfiguration getElasticDataNodeConfiguration() {
504+
return this.elasticDataNodeConfiguration;
505+
}
506+
507+
public void setElasticDataNodeConfiguration(ElasticDataNodeConfiguration elasticDataNodeConfiguration) {
508+
this.elasticDataNodeConfiguration = elasticDataNodeConfiguration;
509+
}
510+
501511
public static class DictListItem {
502512

503513
private String name;
@@ -933,6 +943,59 @@ public void setGcName(String gcName) {
933943
this.gcName = gcName;
934944
}
935945
}
946+
947+
public static class ElasticDataNodeConfiguration {
948+
949+
private String spec;
950+
951+
private Integer amount;
952+
953+
private String diskType;
954+
955+
private Integer disk;
956+
957+
private Boolean diskEncryption;
958+
959+
public String getSpec() {
960+
return this.spec;
961+
}
962+
963+
public void setSpec(String spec) {
964+
this.spec = spec;
965+
}
966+
967+
public Integer getAmount() {
968+
return this.amount;
969+
}
970+
971+
public void setAmount(Integer amount) {
972+
this.amount = amount;
973+
}
974+
975+
public String getDiskType() {
976+
return this.diskType;
977+
}
978+
979+
public void setDiskType(String diskType) {
980+
this.diskType = diskType;
981+
}
982+
983+
public Integer getDisk() {
984+
return this.disk;
985+
}
986+
987+
public void setDisk(Integer disk) {
988+
this.disk = disk;
989+
}
990+
991+
public Boolean getDiskEncryption() {
992+
return this.diskEncryption;
993+
}
994+
995+
public void setDiskEncryption(Boolean diskEncryption) {
996+
this.diskEncryption = diskEncryption;
997+
}
998+
}
936999
}
9371000

9381001
@Override
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.elasticsearch.model.v20170613;
16+
17+
import com.aliyuncs.RoaAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.elasticsearch.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DescribeSnapshotSettingRequest extends RoaAcsRequest<DescribeSnapshotSettingResponse> {
26+
27+
28+
private String instanceId;
29+
public DescribeSnapshotSettingRequest() {
30+
super("elasticsearch", "2017-06-13", "DescribeSnapshotSetting", "elasticsearch");
31+
setUriPattern("/openapi/instances/[InstanceId]/snapshot-setting");
32+
setMethod(MethodType.GET);
33+
try {
34+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
36+
} catch (Exception e) {}
37+
}
38+
39+
public String getInstanceId() {
40+
return this.instanceId;
41+
}
42+
43+
public void setInstanceId(String instanceId) {
44+
this.instanceId = instanceId;
45+
if(instanceId != null){
46+
putPathParameter("InstanceId", instanceId);
47+
}
48+
}
49+
50+
@Override
51+
public Class<DescribeSnapshotSettingResponse> getResponseClass() {
52+
return DescribeSnapshotSettingResponse.class;
53+
}
54+
55+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.elasticsearch.model.v20170613;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.elasticsearch.transform.v20170613.DescribeSnapshotSettingResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DescribeSnapshotSettingResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private Result result;
30+
31+
public String getRequestId() {
32+
return this.requestId;
33+
}
34+
35+
public void setRequestId(String requestId) {
36+
this.requestId = requestId;
37+
}
38+
39+
public Result getResult() {
40+
return this.result;
41+
}
42+
43+
public void setResult(Result result) {
44+
this.result = result;
45+
}
46+
47+
public static class Result {
48+
49+
private String quartzRegex;
50+
51+
private Boolean enable;
52+
53+
public String getQuartzRegex() {
54+
return this.quartzRegex;
55+
}
56+
57+
public void setQuartzRegex(String quartzRegex) {
58+
this.quartzRegex = quartzRegex;
59+
}
60+
61+
public Boolean getEnable() {
62+
return this.enable;
63+
}
64+
65+
public void setEnable(Boolean enable) {
66+
this.enable = enable;
67+
}
68+
}
69+
70+
@Override
71+
public DescribeSnapshotSettingResponse getInstance(UnmarshallerContext context) {
72+
return DescribeSnapshotSettingResponseUnmarshaller.unmarshall(this, context);
73+
}
74+
75+
@Override
76+
public boolean checkShowJsonItemName() {
77+
return false;
78+
}
79+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.elasticsearch.model.v20170613;
16+
17+
import com.aliyuncs.RoaAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.elasticsearch.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class GetElastictaskRequest extends RoaAcsRequest<GetElastictaskResponse> {
26+
27+
28+
private String instanceId;
29+
public GetElastictaskRequest() {
30+
super("elasticsearch", "2017-06-13", "GetElastictask", "elasticsearch");
31+
setUriPattern("/openapi/instances/[InstanceId]/elastic-task");
32+
setMethod(MethodType.GET);
33+
try {
34+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
36+
} catch (Exception e) {}
37+
}
38+
39+
public String getInstanceId() {
40+
return this.instanceId;
41+
}
42+
43+
public void setInstanceId(String instanceId) {
44+
this.instanceId = instanceId;
45+
if(instanceId != null){
46+
putPathParameter("InstanceId", instanceId);
47+
}
48+
}
49+
50+
@Override
51+
public Class<GetElastictaskResponse> getResponseClass() {
52+
return GetElastictaskResponse.class;
53+
}
54+
55+
}

0 commit comments

Comments
 (0)