Skip to content

Commit aa507bf

Browse files
committed
支持私有池
1 parent c7f2067 commit aa507bf

File tree

113 files changed

+16462
-2377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+16462
-2377
lines changed

aliyun-java-sdk-ess/ChangeLog.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-26 Version: 1.0.1
2+
- 支持私有池
3+
14
2021-08-06 Version: 2.3.6
25
1. add new OpenAPI ScaleWithAdjustment
36
2. add new OpenAPI AttachAlbServerGroups

aliyun-java-sdk-ess/pom.xml

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-ess</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.3.6</version>
7+
<version>1.0.1</version>
88
<name>aliyun-java-sdk-ess</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -37,9 +37,8 @@ http://www.aliyun.com</description>
3737
</dependencies>
3838
<licenses>
3939
<license>
40-
<name/>
41-
<url/>
42-
<distribution/>
40+
<name>The Apache License, Version 2.0</name>
41+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
4342
</license>
4443
</licenses>
4544
<scm>
@@ -92,7 +91,7 @@ http://www.aliyun.com</description>
9291
<plugin>
9392
<groupId>org.apache.maven.plugins</groupId>
9493
<artifactId>maven-gpg-plugin</artifactId>
95-
<version>1.5</version>
94+
<version>3.1.0</version>
9695
<executions>
9796
<execution>
9897
<id>sign-artifacts</id>
@@ -116,4 +115,4 @@ http://www.aliyun.com</description>
116115
</plugin>
117116
</plugins>
118117
</build>
119-
</project>
118+
</project>

aliyun-java-sdk-ess/src/main/java/com/aliyuncs/ess/Endpoint.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,28 @@ public class Endpoint {
3838
put("cn-beijing-finance-pop", "ess.aliyuncs.com");
3939
put("cn-wuhan", "ess.aliyuncs.com");
4040
put("us-west-1", "ess.aliyuncs.com");
41+
put("cn-zhangbei", "ess.aliyuncs.com");
4142
put("cn-shenzhen", "ess.aliyuncs.com");
4243
put("cn-zhengzhou-nebula-1", "ess.aliyuncs.com");
43-
put("rus-west-1-pop", "ess.ap-northeast-1.aliyuncs.com");
44+
put("rus-west-1-pop", "ess.aliyuncs.com");
4445
put("cn-shanghai-et15-b01", "ess.aliyuncs.com");
4546
put("cn-hangzhou-bj-b01", "ess.aliyuncs.com");
4647
put("cn-hangzhou-internal-test-1", "ess.aliyuncs.com");
47-
put("eu-west-1-oxs", "ess.ap-northeast-1.aliyuncs.com");
48+
put("eu-west-1-oxs", "ess.aliyuncs.com");
4849
put("cn-zhangbei-na61-b01", "ess.aliyuncs.com");
49-
put("cn-beijing-finance-1", "ess.aliyuncs.com");
5050
put("cn-hangzhou-internal-test-3", "ess.aliyuncs.com");
5151
put("cn-shenzhen-finance-1", "ess.aliyuncs.com");
5252
put("cn-hangzhou-internal-test-2", "ess.aliyuncs.com");
5353
put("cn-hangzhou-test-306", "ess.aliyuncs.com");
54+
put("cn-huhehaote-nebula-1", "ess.aliyuncs.com");
5455
put("cn-shanghai-et2-b01", "ess.aliyuncs.com");
5556
put("cn-hangzhou-finance", "ess.aliyuncs.com");
5657
put("ap-southeast-1", "ess.aliyuncs.com");
5758
put("cn-beijing-nu16-b01", "ess.aliyuncs.com");
5859
put("cn-edge-1", "ess.aliyuncs.com");
5960
put("us-east-1", "ess.aliyuncs.com");
6061
put("cn-fujian", "ess.aliyuncs.com");
61-
put("ap-northeast-2-pop", "ess.ap-northeast-1.aliyuncs.com");
62+
put("ap-northeast-2-pop", "ess.aliyuncs.com");
6263
put("cn-shenzhen-inner", "ess.aliyuncs.com");
6364
put("cn-zhangjiakou-na62-a01", "ess.aliyuncs.com");
6465
put("cn-hangzhou", "ess.aliyuncs.com");

aliyun-java-sdk-ess/src/main/java/com/aliyuncs/ess/model/v20140828/AttachAlbServerGroupsResponse.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,9 @@
2424
*/
2525
public class AttachAlbServerGroupsResponse extends AcsResponse {
2626

27-
private String requestId;
28-
2927
private String scalingActivityId;
3028

31-
public String getRequestId() {
32-
return this.requestId;
33-
}
34-
35-
public void setRequestId(String requestId) {
36-
this.requestId = requestId;
37-
}
29+
private String requestId;
3830

3931
public String getScalingActivityId() {
4032
return this.scalingActivityId;
@@ -44,6 +36,14 @@ public void setScalingActivityId(String scalingActivityId) {
4436
this.scalingActivityId = scalingActivityId;
4537
}
4638

39+
public String getRequestId() {
40+
return this.requestId;
41+
}
42+
43+
public void setRequestId(String requestId) {
44+
this.requestId = requestId;
45+
}
46+
4747
@Override
4848
public AttachAlbServerGroupsResponse getInstance(UnmarshallerContext context) {
4949
return AttachAlbServerGroupsResponseUnmarshaller.unmarshall(this, context);

aliyun-java-sdk-ess/src/main/java/com/aliyuncs/ess/model/v20140828/AttachDBInstancesRequest.java

+26
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public class AttachDBInstancesRequest extends RpcAcsRequest<AttachDBInstancesRes
3232

3333
private Boolean forceAttach;
3434

35+
private String type;
36+
37+
private String attachMode;
38+
3539
private String resourceOwnerAccount;
3640

3741
private List<String> dBInstances;
@@ -79,6 +83,28 @@ public void setForceAttach(Boolean forceAttach) {
7983
}
8084
}
8185

86+
public String getType() {
87+
return this.type;
88+
}
89+
90+
public void setType(String type) {
91+
this.type = type;
92+
if(type != null){
93+
putQueryParameter("Type", type);
94+
}
95+
}
96+
97+
public String getAttachMode() {
98+
return this.attachMode;
99+
}
100+
101+
public void setAttachMode(String attachMode) {
102+
this.attachMode = attachMode;
103+
if(attachMode != null){
104+
putQueryParameter("AttachMode", attachMode);
105+
}
106+
}
107+
82108
public String getResourceOwnerAccount() {
83109
return this.resourceOwnerAccount;
84110
}

aliyun-java-sdk-ess/src/main/java/com/aliyuncs/ess/model/v20140828/AttachInstancesRequest.java

+40-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ public class AttachInstancesRequest extends RpcAcsRequest<AttachInstancesRespons
2828

2929
private Long resourceOwnerId;
3030

31+
private String clientToken;
32+
3133
private String scalingGroupId;
3234

35+
private Boolean ignoreInvalidInstance;
36+
3337
private String resourceOwnerAccount;
3438

3539
private String ownerAccount;
@@ -40,7 +44,9 @@ public class AttachInstancesRequest extends RpcAcsRequest<AttachInstancesRespons
4044

4145
private List<String> instanceIds;
4246

43-
private List<Integer> loadBalancerWeights;
47+
private List<Integer> loadBalancerWeights;
48+
49+
private Boolean lifecycleHook;
4450
public AttachInstancesRequest() {
4551
super("Ess", "2014-08-28", "AttachInstances", "ess");
4652
setMethod(MethodType.POST);
@@ -61,6 +67,17 @@ public void setResourceOwnerId(Long resourceOwnerId) {
6167
}
6268
}
6369

70+
public String getClientToken() {
71+
return this.clientToken;
72+
}
73+
74+
public void setClientToken(String clientToken) {
75+
this.clientToken = clientToken;
76+
if(clientToken != null){
77+
putQueryParameter("ClientToken", clientToken);
78+
}
79+
}
80+
6481
public String getScalingGroupId() {
6582
return this.scalingGroupId;
6683
}
@@ -72,6 +89,17 @@ public void setScalingGroupId(String scalingGroupId) {
7289
}
7390
}
7491

92+
public Boolean getIgnoreInvalidInstance() {
93+
return this.ignoreInvalidInstance;
94+
}
95+
96+
public void setIgnoreInvalidInstance(Boolean ignoreInvalidInstance) {
97+
this.ignoreInvalidInstance = ignoreInvalidInstance;
98+
if(ignoreInvalidInstance != null){
99+
putQueryParameter("IgnoreInvalidInstance", ignoreInvalidInstance.toString());
100+
}
101+
}
102+
75103
public String getResourceOwnerAccount() {
76104
return this.resourceOwnerAccount;
77105
}
@@ -140,6 +168,17 @@ public void setLoadBalancerWeights(List<Integer> loadBalancerWeights) {
140168
putQueryParameter("LoadBalancerWeight." + (i + 1) , loadBalancerWeights.get(i));
141169
}
142170
}
171+
}
172+
173+
public Boolean getLifecycleHook() {
174+
return this.lifecycleHook;
175+
}
176+
177+
public void setLifecycleHook(Boolean lifecycleHook) {
178+
this.lifecycleHook = lifecycleHook;
179+
if(lifecycleHook != null){
180+
putQueryParameter("LifecycleHook", lifecycleHook.toString());
181+
}
143182
}
144183

145184
@Override

aliyun-java-sdk-ess/src/main/java/com/aliyuncs/ess/model/v20140828/AttachLoadBalancersRequest.java

+39
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public class AttachLoadBalancersRequest extends RpcAcsRequest<AttachLoadBalancer
3232

3333
private Boolean forceAttach;
3434

35+
private List<LoadBalancerConfig> loadBalancerConfigs;
36+
3537
private List<String> loadBalancers;
3638

3739
private String resourceOwnerAccount;
@@ -81,6 +83,20 @@ public void setForceAttach(Boolean forceAttach) {
8183
}
8284
}
8385

86+
public List<LoadBalancerConfig> getLoadBalancerConfigs() {
87+
return this.loadBalancerConfigs;
88+
}
89+
90+
public void setLoadBalancerConfigs(List<LoadBalancerConfig> loadBalancerConfigs) {
91+
this.loadBalancerConfigs = loadBalancerConfigs;
92+
if (loadBalancerConfigs != null) {
93+
for (int depth1 = 0; depth1 < loadBalancerConfigs.size(); depth1++) {
94+
putQueryParameter("LoadBalancerConfig." + (depth1 + 1) + ".LoadBalancerId" , loadBalancerConfigs.get(depth1).getLoadBalancerId());
95+
putQueryParameter("LoadBalancerConfig." + (depth1 + 1) + ".Weight" , loadBalancerConfigs.get(depth1).getWeight());
96+
}
97+
}
98+
}
99+
84100
public List<String> getLoadBalancers() {
85101
return this.loadBalancers;
86102
}
@@ -125,6 +141,29 @@ public void setAsync(Boolean async) {
125141
if(async != null){
126142
putQueryParameter("Async", async.toString());
127143
}
144+
}
145+
146+
public static class LoadBalancerConfig {
147+
148+
private String loadBalancerId;
149+
150+
private Integer weight;
151+
152+
public String getLoadBalancerId() {
153+
return this.loadBalancerId;
154+
}
155+
156+
public void setLoadBalancerId(String loadBalancerId) {
157+
this.loadBalancerId = loadBalancerId;
158+
}
159+
160+
public Integer getWeight() {
161+
return this.weight;
162+
}
163+
164+
public void setWeight(Integer weight) {
165+
this.weight = weight;
166+
}
128167
}
129168

130169
@Override

aliyun-java-sdk-ess/src/main/java/com/aliyuncs/ess/model/v20140828/AttachLoadBalancersResponse.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,9 @@
2424
*/
2525
public class AttachLoadBalancersResponse extends AcsResponse {
2626

27-
private String requestId;
28-
2927
private String scalingActivityId;
3028

31-
public String getRequestId() {
32-
return this.requestId;
33-
}
34-
35-
public void setRequestId(String requestId) {
36-
this.requestId = requestId;
37-
}
29+
private String requestId;
3830

3931
public String getScalingActivityId() {
4032
return this.scalingActivityId;
@@ -44,6 +36,14 @@ public void setScalingActivityId(String scalingActivityId) {
4436
this.scalingActivityId = scalingActivityId;
4537
}
4638

39+
public String getRequestId() {
40+
return this.requestId;
41+
}
42+
43+
public void setRequestId(String requestId) {
44+
this.requestId = requestId;
45+
}
46+
4747
@Override
4848
public AttachLoadBalancersResponse getInstance(UnmarshallerContext context) {
4949
return AttachLoadBalancersResponseUnmarshaller.unmarshall(this, context);

0 commit comments

Comments
 (0)