Skip to content

Commit aa271a9

Browse files
committed
Add ModifyWhiteIps.
1 parent dae6162 commit aa271a9

File tree

10 files changed

+194
-2
lines changed

10 files changed

+194
-2
lines changed

aliyun-java-sdk-elasticsearch/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-04-16 Version: 3.0.15
2+
- Add ModifyWhiteIps.
3+
14
2020-02-26 Version: 3.0.14
25
- Fix tag upper case parameters.
36
- Fix patch.

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.14</version>
7+
<version>3.0.15</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/DescribeInstanceResponse.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ public static class Result {
9898

9999
private Boolean haveKibana;
100100

101+
private String resourceGroupId;
102+
101103
private List<DictListItem> dictList;
102104

103105
private List<SynonymsDictsItem> synonymsDicts;
@@ -332,6 +334,14 @@ public void setHaveKibana(Boolean haveKibana) {
332334
this.haveKibana = haveKibana;
333335
}
334336

337+
public String getResourceGroupId() {
338+
return this.resourceGroupId;
339+
}
340+
341+
public void setResourceGroupId(String resourceGroupId) {
342+
this.resourceGroupId = resourceGroupId;
343+
}
344+
335345
public List<DictListItem> getDictList() {
336346
return this.dictList;
337347
}

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
* @version
2424
*/
2525
public class GetRegionConfigurationRequest extends RoaAcsRequest<GetRegionConfigurationResponse> {
26-
26+
27+
28+
private String zoneId;
2729
public GetRegionConfigurationRequest() {
2830
super("elasticsearch", "2017-06-13", "GetRegionConfiguration", "elasticsearch");
2931
setUriPattern("/openapi/region");
@@ -32,6 +34,17 @@ public GetRegionConfigurationRequest() {
3234
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
3335
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
3436
} catch (Exception e) {}
37+
}
38+
39+
public String getZoneId() {
40+
return this.zoneId;
41+
}
42+
43+
public void setZoneId(String zoneId) {
44+
this.zoneId = zoneId;
45+
if(zoneId != null){
46+
putQueryParameter("zoneId", zoneId);
47+
}
3548
}
3649

3750
@Override

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public static class Instance {
7777

7878
private Boolean dedicateMaster;
7979

80+
private String resourceGroupId;
81+
8082
private List<Tag> tags;
8183

8284
private NodeSpec nodeSpec;
@@ -167,6 +169,14 @@ public void setDedicateMaster(Boolean dedicateMaster) {
167169
this.dedicateMaster = dedicateMaster;
168170
}
169171

172+
public String getResourceGroupId() {
173+
return this.resourceGroupId;
174+
}
175+
176+
public void setResourceGroupId(String resourceGroupId) {
177+
this.resourceGroupId = resourceGroupId;
178+
}
179+
170180
public List<Tag> getTags() {
171181
return this.tags;
172182
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 ModifyWhiteIpsRequest extends RoaAcsRequest<ModifyWhiteIpsResponse> {
26+
27+
28+
private String instanceId;
29+
30+
private String clientToken;
31+
public ModifyWhiteIpsRequest() {
32+
super("elasticsearch", "2017-06-13", "ModifyWhiteIps", "elasticsearch");
33+
setUriPattern("/openapi/instances/[InstanceId]/actions/modify-white-ips");
34+
setMethod(MethodType.POST);
35+
try {
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
37+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
38+
} catch (Exception e) {}
39+
}
40+
41+
public String getInstanceId() {
42+
return this.instanceId;
43+
}
44+
45+
public void setInstanceId(String instanceId) {
46+
this.instanceId = instanceId;
47+
if(instanceId != null){
48+
putPathParameter("InstanceId", instanceId);
49+
}
50+
}
51+
52+
public String getClientToken() {
53+
return this.clientToken;
54+
}
55+
56+
public void setClientToken(String clientToken) {
57+
this.clientToken = clientToken;
58+
if(clientToken != null){
59+
putQueryParameter("clientToken", clientToken);
60+
}
61+
}
62+
63+
@Override
64+
public Class<ModifyWhiteIpsResponse> getResponseClass() {
65+
return ModifyWhiteIpsResponse.class;
66+
}
67+
68+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.ModifyWhiteIpsResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class ModifyWhiteIpsResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private Boolean 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 Boolean getResult() {
40+
return this.result;
41+
}
42+
43+
public void setResult(Boolean result) {
44+
this.result = result;
45+
}
46+
47+
@Override
48+
public ModifyWhiteIpsResponse getInstance(UnmarshallerContext context) {
49+
return ModifyWhiteIpsResponseUnmarshaller.unmarshall(this, context);
50+
}
51+
52+
@Override
53+
public boolean checkShowJsonItemName() {
54+
return false;
55+
}
56+
}

aliyun-java-sdk-elasticsearch/src/main/java/com/aliyuncs/elasticsearch/transform/v20170613/DescribeInstanceResponseUnmarshaller.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public static DescribeInstanceResponse unmarshall(DescribeInstanceResponse descr
6767
result.setBizProtocol(_ctx.stringValue("DescribeInstanceResponse.Result.protocol"));
6868
result.setEnableKibanaPublicNetwork(_ctx.booleanValue("DescribeInstanceResponse.Result.enableKibanaPublicNetwork"));
6969
result.setHaveKibana(_ctx.booleanValue("DescribeInstanceResponse.Result.haveKibana"));
70+
result.setResourceGroupId(_ctx.stringValue("DescribeInstanceResponse.Result.resourceGroupId"));
7071

7172
List<String> esIPWhitelist = new ArrayList<String>();
7273
for (int i = 0; i < _ctx.lengthValue("DescribeInstanceResponse.Result.esIPWhitelist.Length"); i++) {

aliyun-java-sdk-elasticsearch/src/main/java/com/aliyuncs/elasticsearch/transform/v20170613/ListInstanceResponseUnmarshaller.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public static ListInstanceResponse unmarshall(ListInstanceResponse listInstanceR
5151
instance.setUpdatedAt(_ctx.stringValue("ListInstanceResponse.Result["+ i +"].updatedAt"));
5252
instance.setAdvancedDedicateMaster(_ctx.booleanValue("ListInstanceResponse.Result["+ i +"].advancedDedicateMaster"));
5353
instance.setDedicateMaster(_ctx.booleanValue("ListInstanceResponse.Result["+ i +"].dedicateMaster"));
54+
instance.setResourceGroupId(_ctx.stringValue("ListInstanceResponse.Result["+ i +"].resourceGroupId"));
5455

5556
NodeSpec nodeSpec = new NodeSpec();
5657
nodeSpec.setSpec(_ctx.stringValue("ListInstanceResponse.Result["+ i +"].nodeSpec.spec"));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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.transform.v20170613;
16+
17+
import com.aliyuncs.elasticsearch.model.v20170613.ModifyWhiteIpsResponse;
18+
import com.aliyuncs.transform.UnmarshallerContext;
19+
20+
21+
public class ModifyWhiteIpsResponseUnmarshaller {
22+
23+
public static ModifyWhiteIpsResponse unmarshall(ModifyWhiteIpsResponse modifyWhiteIpsResponse, UnmarshallerContext _ctx) {
24+
25+
modifyWhiteIpsResponse.setRequestId(_ctx.stringValue("ModifyWhiteIpsResponse.RequestId"));
26+
modifyWhiteIpsResponse.setResult(_ctx.booleanValue("ModifyWhiteIpsResponse.Result"));
27+
28+
return modifyWhiteIpsResponse;
29+
}
30+
}

0 commit comments

Comments
 (0)