Skip to content

Commit 2d0d8f6

Browse files
committed
Support Spot Instance.
1 parent 8861d1c commit 2d0d8f6

File tree

55 files changed

+1429
-1013
lines changed

Some content is hidden

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

55 files changed

+1429
-1013
lines changed

aliyun-java-sdk-ens/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-05-22 Version: 3.0.15
2+
- Support Spot Instance.
3+
14
2023-11-27 Version: 3.0.14
25
- Support AIC Instance.
36

aliyun-java-sdk-ens/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-ens</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.0.14</version>
7+
<version>3.0.15</version>
88
<name>aliyun-java-sdk-ens</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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.ens.model.v20171110;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class CreateSDGRequest extends RpcAcsRequest<CreateSDGResponse> {
25+
26+
27+
private String fromSDGId;
28+
29+
private String description;
30+
31+
private String instanceId;
32+
33+
private String size;
34+
public CreateSDGRequest() {
35+
super("Ens", "2017-11-10", "CreateSDG", "ens");
36+
setMethod(MethodType.GET);
37+
}
38+
39+
public String getFromSDGId() {
40+
return this.fromSDGId;
41+
}
42+
43+
public void setFromSDGId(String fromSDGId) {
44+
this.fromSDGId = fromSDGId;
45+
if(fromSDGId != null){
46+
putQueryParameter("FromSDGId", fromSDGId);
47+
}
48+
}
49+
50+
public String getDescription() {
51+
return this.description;
52+
}
53+
54+
public void setDescription(String description) {
55+
this.description = description;
56+
if(description != null){
57+
putQueryParameter("Description", description);
58+
}
59+
}
60+
61+
public String getInstanceId() {
62+
return this.instanceId;
63+
}
64+
65+
public void setInstanceId(String instanceId) {
66+
this.instanceId = instanceId;
67+
if(instanceId != null){
68+
putQueryParameter("InstanceId", instanceId);
69+
}
70+
}
71+
72+
public String getSize() {
73+
return this.size;
74+
}
75+
76+
public void setSize(String size) {
77+
this.size = size;
78+
if(size != null){
79+
putQueryParameter("Size", size);
80+
}
81+
}
82+
83+
@Override
84+
public Class<CreateSDGResponse> getResponseClass() {
85+
return CreateSDGResponse.class;
86+
}
87+
88+
}
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@
1515
package com.aliyuncs.ens.model.v20171110;
1616

1717
import com.aliyuncs.AcsResponse;
18-
import com.aliyuncs.ens.transform.v20171110.TerminateWorkflowResponseUnmarshaller;
18+
import com.aliyuncs.ens.transform.v20171110.CreateSDGResponseUnmarshaller;
1919
import com.aliyuncs.transform.UnmarshallerContext;
2020

2121
/**
2222
* @author auto create
2323
* @version
2424
*/
25-
public class TerminateWorkflowResponse extends AcsResponse {
25+
public class CreateSDGResponse extends AcsResponse {
2626

2727
private String requestId;
2828

29+
private String sDGId;
30+
2931
public String getRequestId() {
3032
return this.requestId;
3133
}
@@ -34,9 +36,17 @@ public void setRequestId(String requestId) {
3436
this.requestId = requestId;
3537
}
3638

39+
public String getSDGId() {
40+
return this.sDGId;
41+
}
42+
43+
public void setSDGId(String sDGId) {
44+
this.sDGId = sDGId;
45+
}
46+
3747
@Override
38-
public TerminateWorkflowResponse getInstance(UnmarshallerContext context) {
39-
return TerminateWorkflowResponseUnmarshaller.unmarshall(this, context);
48+
public CreateSDGResponse getInstance(UnmarshallerContext context) {
49+
return CreateSDGResponseUnmarshaller.unmarshall(this, context);
4050
}
4151

4252
@Override

aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteKeyPairsRequest.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
public class DeleteKeyPairsRequest extends RpcAcsRequest<DeleteKeyPairsResponse> {
2525

2626

27-
private String keyPairName;
27+
private String keyPairName;
28+
29+
private String keyPairId;
2830
public DeleteKeyPairsRequest() {
2931
super("Ens", "2017-11-10", "DeleteKeyPairs", "ens");
3032
setMethod(MethodType.POST);
@@ -39,6 +41,17 @@ public void setKeyPairName(String keyPairName) {
3941
if(keyPairName != null){
4042
putQueryParameter("KeyPairName", keyPairName);
4143
}
44+
}
45+
46+
public String getKeyPairId() {
47+
return this.keyPairId;
48+
}
49+
50+
public void setKeyPairId(String keyPairId) {
51+
this.keyPairId = keyPairId;
52+
if(keyPairId != null){
53+
putQueryParameter("KeyPairId", keyPairId);
54+
}
4255
}
4356

4457
@Override
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,30 @@
2424
* @author auto create
2525
* @version
2626
*/
27-
public class RestartWorkflowRequest extends RpcAcsRequest<RestartWorkflowResponse> {
27+
public class DeleteSDGRequest extends RpcAcsRequest<DeleteSDGResponse> {
2828

2929

30-
@SerializedName("workflowIds")
31-
private List<String> workflowIds;
32-
public RestartWorkflowRequest() {
33-
super("Ens", "2017-11-10", "RestartWorkflow", "ens");
34-
setMethod(MethodType.POST);
30+
@SerializedName("sDGId")
31+
private List<String> sDGId;
32+
public DeleteSDGRequest() {
33+
super("Ens", "2017-11-10", "DeleteSDG", "ens");
34+
setMethod(MethodType.GET);
3535
}
3636

37-
public List<String> getWorkflowIds() {
38-
return this.workflowIds;
37+
public List<String> getSDGId() {
38+
return this.sDGId;
3939
}
4040

41-
public void setWorkflowIds(List<String> workflowIds) {
42-
this.workflowIds = workflowIds;
43-
if (workflowIds != null) {
44-
putQueryParameter("WorkflowIds" , new Gson().toJson(workflowIds));
41+
public void setSDGId(List<String> sDGId) {
42+
this.sDGId = sDGId;
43+
if (sDGId != null) {
44+
putQueryParameter("SDGId" , new Gson().toJson(sDGId));
4545
}
4646
}
4747

4848
@Override
49-
public Class<RestartWorkflowResponse> getResponseClass() {
50-
return RestartWorkflowResponse.class;
49+
public Class<DeleteSDGResponse> getResponseClass() {
50+
return DeleteSDGResponse.class;
5151
}
5252

5353
}

aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/RetryWorkflowResponse.java renamed to aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteSDGResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
package com.aliyuncs.ens.model.v20171110;
1616

1717
import com.aliyuncs.AcsResponse;
18-
import com.aliyuncs.ens.transform.v20171110.RetryWorkflowResponseUnmarshaller;
18+
import com.aliyuncs.ens.transform.v20171110.DeleteSDGResponseUnmarshaller;
1919
import com.aliyuncs.transform.UnmarshallerContext;
2020

2121
/**
2222
* @author auto create
2323
* @version
2424
*/
25-
public class RetryWorkflowResponse extends AcsResponse {
25+
public class DeleteSDGResponse extends AcsResponse {
2626

2727
private String requestId;
2828

@@ -35,8 +35,8 @@ public void setRequestId(String requestId) {
3535
}
3636

3737
@Override
38-
public RetryWorkflowResponse getInstance(UnmarshallerContext context) {
39-
return RetryWorkflowResponseUnmarshaller.unmarshall(this, context);
38+
public DeleteSDGResponse getInstance(UnmarshallerContext context) {
39+
return DeleteSDGResponseUnmarshaller.unmarshall(this, context);
4040
}
4141

4242
@Override

aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeApplicationRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
public class DescribeApplicationRequest extends RpcAcsRequest<DescribeApplicationResponse> {
2525

2626

27+
private String resourceSelector;
28+
2729
private String appVersions;
2830

2931
private String outDetailStatParams;
@@ -36,6 +38,17 @@ public DescribeApplicationRequest() {
3638
setMethod(MethodType.POST);
3739
}
3840

41+
public String getResourceSelector() {
42+
return this.resourceSelector;
43+
}
44+
45+
public void setResourceSelector(String resourceSelector) {
46+
this.resourceSelector = resourceSelector;
47+
if(resourceSelector != null){
48+
putQueryParameter("ResourceSelector", resourceSelector);
49+
}
50+
}
51+
3952
public String getAppVersions() {
4053
return this.appVersions;
4154
}

aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstancesRequest.java

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
package com.aliyuncs.ens.model.v20171110;
1616

1717
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.google.gson.Gson;
20+
import com.google.gson.annotations.SerializedName;
1821
import com.aliyuncs.http.MethodType;
1922

2023
/**
@@ -32,6 +35,9 @@ public class DescribeInstancesRequest extends RpcAcsRequest<DescribeInstancesRes
3235

3336
private String ensServiceId;
3437

38+
@SerializedName("tags")
39+
private List<Tags> tags;
40+
3541
private String vSwitchId;
3642

3743
private String instanceId;
@@ -106,6 +112,17 @@ public void setEnsServiceId(String ensServiceId) {
106112
}
107113
}
108114

115+
public List<Tags> getTags() {
116+
return this.tags;
117+
}
118+
119+
public void setTags(List<Tags> tags) {
120+
this.tags = tags;
121+
if (tags != null) {
122+
putQueryParameter("Tags" , new Gson().toJson(tags));
123+
}
124+
}
125+
109126
public String getVSwitchId() {
110127
return this.vSwitchId;
111128
}
@@ -247,6 +264,31 @@ public void setEnsRegionIds(String ensRegionIds) {
247264
if(ensRegionIds != null){
248265
putQueryParameter("EnsRegionIds", ensRegionIds);
249266
}
267+
}
268+
269+
public static class Tags {
270+
271+
@SerializedName("Value")
272+
private String value;
273+
274+
@SerializedName("Key")
275+
private String key;
276+
277+
public String getValue() {
278+
return this.value;
279+
}
280+
281+
public void setValue(String value) {
282+
this.value = value;
283+
}
284+
285+
public String getKey() {
286+
return this.key;
287+
}
288+
289+
public void setKey(String key) {
290+
this.key = key;
291+
}
250292
}
251293

252294
@Override

0 commit comments

Comments
 (0)