Skip to content

Commit 9f41fd4

Browse files
committed
Generated 2020-06-01 for SWAS-OPEN.
1 parent 7c4cc33 commit 9f41fd4

35 files changed

+1417
-22
lines changed

aliyun-java-sdk-swas-open/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-06-17 Version: 1.8.11
2+
- Generated 2020-06-01 for `SWAS-OPEN`.
3+
14
2024-05-22 Version: 1.8.10
25
- Generated 2020-06-01 for `SWAS-OPEN`.
36

aliyun-java-sdk-swas-open/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-swas-open</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.8.10</version>
7+
<version>1.8.11</version>
88
<name>aliyun-java-sdk-swas-open</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,80 @@
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.swas_open.model.v20200601;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.ProtocolType;
20+
import com.aliyuncs.http.MethodType;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class AttachKeyPairRequest extends RpcAcsRequest<AttachKeyPairResponse> {
27+
28+
29+
private String clientToken;
30+
31+
private String keyPairName;
32+
33+
private List<String> instanceIdss;
34+
public AttachKeyPairRequest() {
35+
super("SWAS-OPEN", "2020-06-01", "AttachKeyPair", "SWAS-OPEN");
36+
setProtocol(ProtocolType.HTTPS);
37+
setMethod(MethodType.POST);
38+
}
39+
40+
public String getClientToken() {
41+
return this.clientToken;
42+
}
43+
44+
public void setClientToken(String clientToken) {
45+
this.clientToken = clientToken;
46+
if(clientToken != null){
47+
putQueryParameter("ClientToken", clientToken);
48+
}
49+
}
50+
51+
public String getKeyPairName() {
52+
return this.keyPairName;
53+
}
54+
55+
public void setKeyPairName(String keyPairName) {
56+
this.keyPairName = keyPairName;
57+
if(keyPairName != null){
58+
putQueryParameter("KeyPairName", keyPairName);
59+
}
60+
}
61+
62+
public List<String> getInstanceIdss() {
63+
return this.instanceIdss;
64+
}
65+
66+
public void setInstanceIdss(List<String> instanceIdss) {
67+
this.instanceIdss = instanceIdss;
68+
if (instanceIdss != null) {
69+
for (int i = 0; i < instanceIdss.size(); i++) {
70+
putQueryParameter("InstanceIds." + (i + 1) , instanceIdss.get(i));
71+
}
72+
}
73+
}
74+
75+
@Override
76+
public Class<AttachKeyPairResponse> getResponseClass() {
77+
return AttachKeyPairResponse.class;
78+
}
79+
80+
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
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.swas_open.model.v20200601;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.swas_open.transform.v20200601.AttachKeyPairResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class AttachKeyPairResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private Integer totalCount;
31+
32+
private Integer failCount;
33+
34+
private List<Result> results;
35+
36+
public String getRequestId() {
37+
return this.requestId;
38+
}
39+
40+
public void setRequestId(String requestId) {
41+
this.requestId = requestId;
42+
}
43+
44+
public Integer getTotalCount() {
45+
return this.totalCount;
46+
}
47+
48+
public void setTotalCount(Integer totalCount) {
49+
this.totalCount = totalCount;
50+
}
51+
52+
public Integer getFailCount() {
53+
return this.failCount;
54+
}
55+
56+
public void setFailCount(Integer failCount) {
57+
this.failCount = failCount;
58+
}
59+
60+
public List<Result> getResults() {
61+
return this.results;
62+
}
63+
64+
public void setResults(List<Result> results) {
65+
this.results = results;
66+
}
67+
68+
public static class Result {
69+
70+
private String code;
71+
72+
private String message;
73+
74+
private String success;
75+
76+
private String instanceId;
77+
78+
public String getCode() {
79+
return this.code;
80+
}
81+
82+
public void setCode(String code) {
83+
this.code = code;
84+
}
85+
86+
public String getMessage() {
87+
return this.message;
88+
}
89+
90+
public void setMessage(String message) {
91+
this.message = message;
92+
}
93+
94+
public String getSuccess() {
95+
return this.success;
96+
}
97+
98+
public void setSuccess(String success) {
99+
this.success = success;
100+
}
101+
102+
public String getInstanceId() {
103+
return this.instanceId;
104+
}
105+
106+
public void setInstanceId(String instanceId) {
107+
this.instanceId = instanceId;
108+
}
109+
}
110+
111+
@Override
112+
public AttachKeyPairResponse getInstance(UnmarshallerContext context) {
113+
return AttachKeyPairResponseUnmarshaller.unmarshall(this, context);
114+
}
115+
116+
@Override
117+
public boolean checkShowJsonItemName() {
118+
return false;
119+
}
120+
}

aliyun-java-sdk-swas-open/src/main/java/com/aliyuncs/swas_open/model/v20200601/CreateCommandRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public class CreateCommandRequest extends RpcAcsRequest<CreateCommandResponse> {
3535

3636
private Long timeout;
3737

38+
private String resourceGroupId;
39+
3840
private List<Tag> tags;
3941

4042
private String name;
@@ -100,6 +102,17 @@ public void setTimeout(Long timeout) {
100102
}
101103
}
102104

105+
public String getResourceGroupId() {
106+
return this.resourceGroupId;
107+
}
108+
109+
public void setResourceGroupId(String resourceGroupId) {
110+
this.resourceGroupId = resourceGroupId;
111+
if(resourceGroupId != null){
112+
putQueryParameter("ResourceGroupId", resourceGroupId);
113+
}
114+
}
115+
103116
public List<Tag> getTags() {
104117
return this.tags;
105118
}

aliyun-java-sdk-swas-open/src/main/java/com/aliyuncs/swas_open/model/v20200601/CreateCustomImageRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public class CreateCustomImageRequest extends RpcAcsRequest<CreateCustomImageRes
3333

3434
private String description;
3535

36+
private String resoureGroupId;
37+
3638
private String imageName;
3739

3840
private List<Tag> tags;
@@ -87,6 +89,17 @@ public void setDescription(String description) {
8789
}
8890
}
8991

92+
public String getResoureGroupId() {
93+
return this.resoureGroupId;
94+
}
95+
96+
public void setResoureGroupId(String resoureGroupId) {
97+
this.resoureGroupId = resoureGroupId;
98+
if(resoureGroupId != null){
99+
putQueryParameter("ResoureGroupId", resoureGroupId);
100+
}
101+
}
102+
90103
public String getImageName() {
91104
return this.imageName;
92105
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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.swas_open.model.v20200601;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateKeyPairRequest extends RpcAcsRequest<CreateKeyPairResponse> {
26+
27+
28+
private String clientToken;
29+
30+
private String keyPairName;
31+
public CreateKeyPairRequest() {
32+
super("SWAS-OPEN", "2020-06-01", "CreateKeyPair", "SWAS-OPEN");
33+
setProtocol(ProtocolType.HTTPS);
34+
setMethod(MethodType.POST);
35+
}
36+
37+
public String getClientToken() {
38+
return this.clientToken;
39+
}
40+
41+
public void setClientToken(String clientToken) {
42+
this.clientToken = clientToken;
43+
if(clientToken != null){
44+
putQueryParameter("ClientToken", clientToken);
45+
}
46+
}
47+
48+
public String getKeyPairName() {
49+
return this.keyPairName;
50+
}
51+
52+
public void setKeyPairName(String keyPairName) {
53+
this.keyPairName = keyPairName;
54+
if(keyPairName != null){
55+
putQueryParameter("KeyPairName", keyPairName);
56+
}
57+
}
58+
59+
@Override
60+
public Class<CreateKeyPairResponse> getResponseClass() {
61+
return CreateKeyPairResponse.class;
62+
}
63+
64+
}

0 commit comments

Comments
 (0)