Skip to content

Commit a5ba1e7

Browse files
committed
ECS SDK Auto Released By luomeng.lxp,Version:4.16.2
发布日志: 1, Add three APIs for tag. APIs : TagResources, UntagResources, ListTagResources.
1 parent 0fe4514 commit a5ba1e7

14 files changed

+825
-67
lines changed

aliyun-java-sdk-ecs/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-02-27 Version: 4.16.2
2+
1, Add three APIs for tag. APIs : TagResources, UntagResources, ListTagResources.
3+
14
2019-02-18 Version: 4.16.1
25
1, Add DryRun into StartInstance, StopInstance and RebootInstance.
36
2, Add snapshot operations: ExportSnapshot and ImportSnapshot

aliyun-java-sdk-ecs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-ecs</artifactId>
55
<packaging>jar</packaging>
6-
<version>4.16.1</version>
6+
<version>4.16.2</version>
77
<name>aliyun-java-sdk-ecs</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopyImageRequest.java

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ public CopyImageRequest() {
3131

3232
private String imageId;
3333

34-
private Boolean encrypted;
35-
3634
private String resourceOwnerAccount;
3735

3836
private String destinationImageName;
@@ -41,10 +39,12 @@ public CopyImageRequest() {
4139

4240
private String ownerAccount;
4341

44-
private List<Tag> tags;
45-
4642
private Long ownerId;
4743

44+
private Boolean encrypted;
45+
46+
private List<Tag> tags;
47+
4848
private String destinationDescription;
4949

5050
public Long getResourceOwnerId() {
@@ -69,17 +69,6 @@ public void setImageId(String imageId) {
6969
}
7070
}
7171

72-
public Boolean getEncrypted() {
73-
return this.encrypted;
74-
}
75-
76-
public void setEncrypted(Boolean encrypted) {
77-
this.encrypted = encrypted;
78-
if(encrypted != null){
79-
putQueryParameter("Encrypted", encrypted.toString());
80-
}
81-
}
82-
8372
public String getResourceOwnerAccount() {
8473
return this.resourceOwnerAccount;
8574
}
@@ -124,6 +113,28 @@ public void setOwnerAccount(String ownerAccount) {
124113
}
125114
}
126115

116+
public Long getOwnerId() {
117+
return this.ownerId;
118+
}
119+
120+
public void setOwnerId(Long ownerId) {
121+
this.ownerId = ownerId;
122+
if(ownerId != null){
123+
putQueryParameter("OwnerId", ownerId.toString());
124+
}
125+
}
126+
127+
public Boolean getEncrypted() {
128+
return this.encrypted;
129+
}
130+
131+
public void setEncrypted(Boolean encrypted) {
132+
this.encrypted = encrypted;
133+
if(encrypted != null){
134+
putQueryParameter("Encrypted", encrypted.toString());
135+
}
136+
}
137+
127138
public List<Tag> getTags() {
128139
return this.tags;
129140
}
@@ -138,17 +149,6 @@ public void setTags(List<Tag> tags) {
138149
}
139150
}
140151

141-
public Long getOwnerId() {
142-
return this.ownerId;
143-
}
144-
145-
public void setOwnerId(Long ownerId) {
146-
this.ownerId = ownerId;
147-
if(ownerId != null){
148-
putQueryParameter("OwnerId", ownerId.toString());
149-
}
150-
}
151-
152152
public String getDestinationDescription() {
153153
return this.destinationDescription;
154154
}

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSecurityGroupRequest.java

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,25 @@ public CreateSecurityGroupRequest() {
2727
super("Ecs", "2014-05-26", "CreateSecurityGroup", "ecs");
2828
}
2929

30-
private String resourceGroupId;
31-
3230
private Long resourceOwnerId;
3331

3432
private String resourceOwnerAccount;
3533

3634
private String clientToken;
3735

38-
private String vpcId;
39-
4036
private String ownerAccount;
4137

4238
private String description;
4339

44-
private List<Tag> tags;
45-
4640
private Long ownerId;
4741

4842
private String securityGroupName;
4943

50-
public String getResourceGroupId() {
51-
return this.resourceGroupId;
52-
}
44+
private String resourceGroupId;
5345

54-
public void setResourceGroupId(String resourceGroupId) {
55-
this.resourceGroupId = resourceGroupId;
56-
if(resourceGroupId != null){
57-
putQueryParameter("ResourceGroupId", resourceGroupId);
58-
}
59-
}
46+
private String vpcId;
47+
48+
private List<Tag> tags;
6049

6150
public Long getResourceOwnerId() {
6251
return this.resourceOwnerId;
@@ -91,17 +80,6 @@ public void setClientToken(String clientToken) {
9180
}
9281
}
9382

94-
public String getVpcId() {
95-
return this.vpcId;
96-
}
97-
98-
public void setVpcId(String vpcId) {
99-
this.vpcId = vpcId;
100-
if(vpcId != null){
101-
putQueryParameter("VpcId", vpcId);
102-
}
103-
}
104-
10583
public String getOwnerAccount() {
10684
return this.ownerAccount;
10785
}
@@ -124,20 +102,6 @@ public void setDescription(String description) {
124102
}
125103
}
126104

127-
public List<Tag> getTags() {
128-
return this.tags;
129-
}
130-
131-
public void setTags(List<Tag> tags) {
132-
this.tags = tags;
133-
if (tags != null) {
134-
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
135-
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
136-
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
137-
}
138-
}
139-
}
140-
141105
public Long getOwnerId() {
142106
return this.ownerId;
143107
}
@@ -160,6 +124,42 @@ public void setSecurityGroupName(String securityGroupName) {
160124
}
161125
}
162126

127+
public String getResourceGroupId() {
128+
return this.resourceGroupId;
129+
}
130+
131+
public void setResourceGroupId(String resourceGroupId) {
132+
this.resourceGroupId = resourceGroupId;
133+
if(resourceGroupId != null){
134+
putQueryParameter("ResourceGroupId", resourceGroupId);
135+
}
136+
}
137+
138+
public String getVpcId() {
139+
return this.vpcId;
140+
}
141+
142+
public void setVpcId(String vpcId) {
143+
this.vpcId = vpcId;
144+
if(vpcId != null){
145+
putQueryParameter("VpcId", vpcId);
146+
}
147+
}
148+
149+
public List<Tag> getTags() {
150+
return this.tags;
151+
}
152+
153+
public void setTags(List<Tag> tags) {
154+
this.tags = tags;
155+
if (tags != null) {
156+
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
157+
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
158+
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
159+
}
160+
}
161+
}
162+
163163
public static class Tag {
164164

165165
private String value;
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
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.ecs.model.v20140526;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class ListTagResourcesRequest extends RpcAcsRequest<ListTagResourcesResponse> {
25+
26+
public ListTagResourcesRequest() {
27+
super("Ecs", "2014-05-26", "ListTagResources", "ecs");
28+
}
29+
30+
private Long resourceOwnerId;
31+
32+
private String nextToken;
33+
34+
private List<Tag> tags;
35+
36+
private List<String> resourceIds;
37+
38+
private String resourceOwnerAccount;
39+
40+
private String ownerAccount;
41+
42+
private Long ownerId;
43+
44+
private String resourceType;
45+
46+
public Long getResourceOwnerId() {
47+
return this.resourceOwnerId;
48+
}
49+
50+
public void setResourceOwnerId(Long resourceOwnerId) {
51+
this.resourceOwnerId = resourceOwnerId;
52+
if(resourceOwnerId != null){
53+
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
54+
}
55+
}
56+
57+
public String getNextToken() {
58+
return this.nextToken;
59+
}
60+
61+
public void setNextToken(String nextToken) {
62+
this.nextToken = nextToken;
63+
if(nextToken != null){
64+
putQueryParameter("NextToken", nextToken);
65+
}
66+
}
67+
68+
public List<Tag> getTags() {
69+
return this.tags;
70+
}
71+
72+
public void setTags(List<Tag> tags) {
73+
this.tags = tags;
74+
if (tags != null) {
75+
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
76+
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
77+
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
78+
}
79+
}
80+
}
81+
82+
public List<String> getResourceIds() {
83+
return this.resourceIds;
84+
}
85+
86+
public void setResourceIds(List<String> resourceIds) {
87+
this.resourceIds = resourceIds;
88+
if (resourceIds != null) {
89+
for (int i = 0; i < resourceIds.size(); i++) {
90+
putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i));
91+
}
92+
}
93+
}
94+
95+
public String getResourceOwnerAccount() {
96+
return this.resourceOwnerAccount;
97+
}
98+
99+
public void setResourceOwnerAccount(String resourceOwnerAccount) {
100+
this.resourceOwnerAccount = resourceOwnerAccount;
101+
if(resourceOwnerAccount != null){
102+
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
103+
}
104+
}
105+
106+
public String getOwnerAccount() {
107+
return this.ownerAccount;
108+
}
109+
110+
public void setOwnerAccount(String ownerAccount) {
111+
this.ownerAccount = ownerAccount;
112+
if(ownerAccount != null){
113+
putQueryParameter("OwnerAccount", ownerAccount);
114+
}
115+
}
116+
117+
public Long getOwnerId() {
118+
return this.ownerId;
119+
}
120+
121+
public void setOwnerId(Long ownerId) {
122+
this.ownerId = ownerId;
123+
if(ownerId != null){
124+
putQueryParameter("OwnerId", ownerId.toString());
125+
}
126+
}
127+
128+
public String getResourceType() {
129+
return this.resourceType;
130+
}
131+
132+
public void setResourceType(String resourceType) {
133+
this.resourceType = resourceType;
134+
if(resourceType != null){
135+
putQueryParameter("ResourceType", resourceType);
136+
}
137+
}
138+
139+
public static class Tag {
140+
141+
private String key;
142+
143+
private String value;
144+
145+
public String getKey() {
146+
return this.key;
147+
}
148+
149+
public void setKey(String key) {
150+
this.key = key;
151+
}
152+
153+
public String getValue() {
154+
return this.value;
155+
}
156+
157+
public void setValue(String value) {
158+
this.value = value;
159+
}
160+
}
161+
162+
@Override
163+
public Class<ListTagResourcesResponse> getResponseClass() {
164+
return ListTagResourcesResponse.class;
165+
}
166+
167+
}

0 commit comments

Comments
 (0)