Skip to content

Commit ce8adb7

Browse files
committed
Support elastic network interface.
1 parent 1c1b860 commit ce8adb7

17 files changed

+1469
-1
lines changed

aliyun-java-sdk-eflo/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-08-28 Version: 1.0.5
2+
- Support elastic network interface.
3+
14
2023-08-01 Version: 1.0.4
25
- Support second cidr for vpd.
36
- Support ignore 32 routeentry.

aliyun-java-sdk-eflo/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-eflo</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.4</version>
7+
<version>1.0.5</version>
88
<name>aliyun-java-sdk-eflo</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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.eflo.model.v20220530;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class CreateElasticNetworkInterfaceRequest extends RpcAcsRequest<CreateElasticNetworkInterfaceResponse> {
25+
26+
27+
private String description;
28+
29+
private String vSwitchId;
30+
31+
private String vpcId;
32+
33+
private String zoneId;
34+
35+
private String nodeId;
36+
public CreateElasticNetworkInterfaceRequest() {
37+
super("eflo", "2022-05-30", "CreateElasticNetworkInterface", "eflo");
38+
setMethod(MethodType.POST);
39+
}
40+
41+
public String getDescription() {
42+
return this.description;
43+
}
44+
45+
public void setDescription(String description) {
46+
this.description = description;
47+
if(description != null){
48+
putBodyParameter("Description", description);
49+
}
50+
}
51+
52+
public String getVSwitchId() {
53+
return this.vSwitchId;
54+
}
55+
56+
public void setVSwitchId(String vSwitchId) {
57+
this.vSwitchId = vSwitchId;
58+
if(vSwitchId != null){
59+
putBodyParameter("VSwitchId", vSwitchId);
60+
}
61+
}
62+
63+
public String getVpcId() {
64+
return this.vpcId;
65+
}
66+
67+
public void setVpcId(String vpcId) {
68+
this.vpcId = vpcId;
69+
if(vpcId != null){
70+
putBodyParameter("VpcId", vpcId);
71+
}
72+
}
73+
74+
public String getZoneId() {
75+
return this.zoneId;
76+
}
77+
78+
public void setZoneId(String zoneId) {
79+
this.zoneId = zoneId;
80+
if(zoneId != null){
81+
putBodyParameter("ZoneId", zoneId);
82+
}
83+
}
84+
85+
public String getNodeId() {
86+
return this.nodeId;
87+
}
88+
89+
public void setNodeId(String nodeId) {
90+
this.nodeId = nodeId;
91+
if(nodeId != null){
92+
putBodyParameter("NodeId", nodeId);
93+
}
94+
}
95+
96+
@Override
97+
public Class<CreateElasticNetworkInterfaceResponse> getResponseClass() {
98+
return CreateElasticNetworkInterfaceResponse.class;
99+
}
100+
101+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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.eflo.model.v20220530;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.eflo.transform.v20220530.CreateElasticNetworkInterfaceResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateElasticNetworkInterfaceResponse extends AcsResponse {
26+
27+
private Integer code;
28+
29+
private String message;
30+
31+
private String requestId;
32+
33+
private Content content;
34+
35+
public Integer getCode() {
36+
return this.code;
37+
}
38+
39+
public void setCode(Integer code) {
40+
this.code = code;
41+
}
42+
43+
public String getMessage() {
44+
return this.message;
45+
}
46+
47+
public void setMessage(String message) {
48+
this.message = message;
49+
}
50+
51+
public String getRequestId() {
52+
return this.requestId;
53+
}
54+
55+
public void setRequestId(String requestId) {
56+
this.requestId = requestId;
57+
}
58+
59+
public Content getContent() {
60+
return this.content;
61+
}
62+
63+
public void setContent(Content content) {
64+
this.content = content;
65+
}
66+
67+
public static class Content {
68+
69+
private String nodeId;
70+
71+
private String elasticNetworkInterfaceId;
72+
73+
public String getNodeId() {
74+
return this.nodeId;
75+
}
76+
77+
public void setNodeId(String nodeId) {
78+
this.nodeId = nodeId;
79+
}
80+
81+
public String getElasticNetworkInterfaceId() {
82+
return this.elasticNetworkInterfaceId;
83+
}
84+
85+
public void setElasticNetworkInterfaceId(String elasticNetworkInterfaceId) {
86+
this.elasticNetworkInterfaceId = elasticNetworkInterfaceId;
87+
}
88+
}
89+
90+
@Override
91+
public CreateElasticNetworkInterfaceResponse getInstance(UnmarshallerContext context) {
92+
return CreateElasticNetworkInterfaceResponseUnmarshaller.unmarshall(this, context);
93+
}
94+
95+
@Override
96+
public boolean checkShowJsonItemName() {
97+
return false;
98+
}
99+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.eflo.model.v20220530;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class DeleteElasticNetworkInterfaceRequest extends RpcAcsRequest<DeleteElasticNetworkInterfaceResponse> {
25+
26+
27+
private String elasticNetworkInterfaceId;
28+
public DeleteElasticNetworkInterfaceRequest() {
29+
super("eflo", "2022-05-30", "DeleteElasticNetworkInterface", "eflo");
30+
setMethod(MethodType.POST);
31+
}
32+
33+
public String getElasticNetworkInterfaceId() {
34+
return this.elasticNetworkInterfaceId;
35+
}
36+
37+
public void setElasticNetworkInterfaceId(String elasticNetworkInterfaceId) {
38+
this.elasticNetworkInterfaceId = elasticNetworkInterfaceId;
39+
if(elasticNetworkInterfaceId != null){
40+
putBodyParameter("ElasticNetworkInterfaceId", elasticNetworkInterfaceId);
41+
}
42+
}
43+
44+
@Override
45+
public Class<DeleteElasticNetworkInterfaceResponse> getResponseClass() {
46+
return DeleteElasticNetworkInterfaceResponse.class;
47+
}
48+
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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.eflo.model.v20220530;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.eflo.transform.v20220530.DeleteElasticNetworkInterfaceResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DeleteElasticNetworkInterfaceResponse extends AcsResponse {
26+
27+
private Integer code;
28+
29+
private String message;
30+
31+
private String requestId;
32+
33+
private Content content;
34+
35+
public Integer getCode() {
36+
return this.code;
37+
}
38+
39+
public void setCode(Integer code) {
40+
this.code = code;
41+
}
42+
43+
public String getMessage() {
44+
return this.message;
45+
}
46+
47+
public void setMessage(String message) {
48+
this.message = message;
49+
}
50+
51+
public String getRequestId() {
52+
return this.requestId;
53+
}
54+
55+
public void setRequestId(String requestId) {
56+
this.requestId = requestId;
57+
}
58+
59+
public Content getContent() {
60+
return this.content;
61+
}
62+
63+
public void setContent(Content content) {
64+
this.content = content;
65+
}
66+
67+
public static class Content {
68+
69+
private String nodeId;
70+
71+
private String elasticNetworkInterfaceId;
72+
73+
public String getNodeId() {
74+
return this.nodeId;
75+
}
76+
77+
public void setNodeId(String nodeId) {
78+
this.nodeId = nodeId;
79+
}
80+
81+
public String getElasticNetworkInterfaceId() {
82+
return this.elasticNetworkInterfaceId;
83+
}
84+
85+
public void setElasticNetworkInterfaceId(String elasticNetworkInterfaceId) {
86+
this.elasticNetworkInterfaceId = elasticNetworkInterfaceId;
87+
}
88+
}
89+
90+
@Override
91+
public DeleteElasticNetworkInterfaceResponse getInstance(UnmarshallerContext context) {
92+
return DeleteElasticNetworkInterfaceResponseUnmarshaller.unmarshall(this, context);
93+
}
94+
95+
@Override
96+
public boolean checkShowJsonItemName() {
97+
return false;
98+
}
99+
}

0 commit comments

Comments
 (0)