Skip to content

Commit 0a4bc9b

Browse files
wb549296yndu13
authored andcommitted
release version 1.5.5
1 parent 5987275 commit 0a4bc9b

File tree

11 files changed

+760
-1
lines changed

11 files changed

+760
-1
lines changed

aliyun-java-sdk-eci/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-09-11 Version 1.5.5
2+
1、Api support: TagResources、UntagResources、ListTagResources
3+
14
2024-06-05 Version 1.5.4
25
1、CreateContainerGroup support gpuDriverVersion
36

aliyun-java-sdk-eci/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-eci</artifactId>
55
<packaging>jar</packaging>
6-
<version>1.5.4</version>
6+
<version>1.5.5</version>
77
<name>aliyun-java-sdk-eci</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
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.eci.model.v20180808;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
19+
import java.util.List;
20+
21+
22+
public class ListTagResourcesRequest extends RpcAcsRequest<ListTagResourcesResponse> {
23+
24+
public ListTagResourcesRequest() {
25+
super("Eci", "2018-08-08", "ListTagResources", "eci");
26+
}
27+
28+
private Long resourceOwnerId;
29+
30+
private String resourceOwnerAccount;
31+
32+
private Long ownerId;
33+
34+
private String ownerAccount;
35+
36+
private List<String> resourceId;
37+
38+
private List<Tag> tags;
39+
40+
private String resourceType;
41+
42+
private String limit;
43+
44+
private String nextToken;
45+
46+
public List<String> getResourceId() {
47+
return resourceId;
48+
}
49+
50+
public void setResourceId(List<String> resourceId) {
51+
this.resourceId = resourceId;
52+
if (resourceId != null) {
53+
for (int i = 0; i < resourceId.size(); i++) {
54+
putQueryParameter("ResourceId." + (i + 1) , resourceId.get(i));
55+
}
56+
}
57+
}
58+
59+
public List<Tag> getTags() {
60+
return tags;
61+
}
62+
63+
public void setTags(List<Tag> tags) {
64+
this.tags = tags;
65+
if (tags != null) {
66+
for (int i = 0; i < tags.size(); i++) {
67+
putQueryParameter("Tag." + (i + 1) + ".Key" , tags.get(i).getKey());
68+
putQueryParameter("Tag." + (i + 1) + ".Value" , tags.get(i).getValue());
69+
}
70+
}
71+
}
72+
73+
public String getResourceType() {
74+
return resourceType;
75+
}
76+
77+
public void setResourceType(String resourceType) {
78+
this.resourceType = resourceType;
79+
if (resourceType != null) {
80+
putQueryParameter("ResourceType", resourceType);
81+
}
82+
}
83+
84+
public String getLimit() {
85+
return limit;
86+
}
87+
88+
public void setLimit(String limit) {
89+
this.limit = limit;
90+
if (limit != null) {
91+
putQueryParameter("Limit", limit);
92+
}
93+
}
94+
95+
public String getNextToken() {
96+
return nextToken;
97+
}
98+
99+
public void setNextToken(String nextToken) {
100+
this.nextToken = nextToken;
101+
if (nextToken != null) {
102+
putQueryParameter("NextToken", nextToken);
103+
}
104+
}
105+
106+
public Long getResourceOwnerId() {
107+
return resourceOwnerId;
108+
}
109+
110+
public void setResourceOwnerId(Long resourceOwnerId) {
111+
this.resourceOwnerId = resourceOwnerId;
112+
if (resourceOwnerId != null) {
113+
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
114+
}
115+
}
116+
117+
public String getResourceOwnerAccount() {
118+
return resourceOwnerAccount;
119+
}
120+
121+
public void setResourceOwnerAccount(String resourceOwnerAccount) {
122+
this.resourceOwnerAccount = resourceOwnerAccount;
123+
if (resourceOwnerAccount != null) {
124+
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
125+
}
126+
}
127+
128+
public Long getOwnerId() {
129+
return ownerId;
130+
}
131+
132+
public void setOwnerId(Long ownerId) {
133+
this.ownerId = ownerId;
134+
if (ownerId != null) {
135+
putQueryParameter("OwnerId", ownerId.toString());
136+
}
137+
}
138+
139+
public String getOwnerAccount() {
140+
return ownerAccount;
141+
}
142+
143+
public void setOwnerAccount(String ownerAccount) {
144+
this.ownerAccount = ownerAccount;
145+
if (ownerAccount != null) {
146+
putQueryParameter("OwnerAccount", ownerAccount);
147+
}
148+
}
149+
150+
public static class Tag {
151+
152+
private String key;
153+
154+
private String value;
155+
156+
public String getKey() {
157+
return this.key;
158+
}
159+
160+
public void setKey(String key) {
161+
this.key = key;
162+
}
163+
164+
public String getValue() {
165+
return this.value;
166+
}
167+
168+
public void setValue(String value) {
169+
this.value = value;
170+
}
171+
}
172+
173+
@Override
174+
public Class<ListTagResourcesResponse> getResponseClass() {
175+
return ListTagResourcesResponse.class;
176+
}
177+
178+
}
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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.eci.model.v20180808;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.eci.transform.v20180808.ListTagResourcesResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
import java.util.List;
22+
23+
public class ListTagResourcesResponse extends AcsResponse {
24+
25+
private String requestId;
26+
27+
private String nextToken;
28+
29+
private List<TagResource> tagResources;
30+
31+
public String getRequestId() {
32+
return requestId;
33+
}
34+
35+
public void setRequestId(String requestId) {
36+
this.requestId = requestId;
37+
}
38+
39+
public String getNextToken() {
40+
return nextToken;
41+
}
42+
43+
public void setNextToken(String nextToken) {
44+
this.nextToken = nextToken;
45+
}
46+
47+
public List<TagResource> getTagResources() {
48+
return tagResources;
49+
}
50+
51+
public void setTagResources(List<TagResource> tagResources) {
52+
this.tagResources = tagResources;
53+
}
54+
55+
public static class TagResource {
56+
private String resourceType;
57+
58+
private String resourceId;
59+
60+
private String tagKey;
61+
62+
private String tagValue;
63+
64+
public String getResourceType() {
65+
return resourceType;
66+
}
67+
68+
public void setResourceType(String resourceType) {
69+
this.resourceType = resourceType;
70+
}
71+
72+
public String getResourceId() {
73+
return resourceId;
74+
}
75+
76+
public void setResourceId(String resourceId) {
77+
this.resourceId = resourceId;
78+
}
79+
80+
public String getTagKey() {
81+
return tagKey;
82+
}
83+
84+
public void setTagKey(String tagKey) {
85+
this.tagKey = tagKey;
86+
}
87+
88+
public String getTagValue() {
89+
return tagValue;
90+
}
91+
92+
public void setTagValue(String tagValue) {
93+
this.tagValue = tagValue;
94+
}
95+
}
96+
97+
@Override
98+
public ListTagResourcesResponse getInstance(UnmarshallerContext context) {
99+
return ListTagResourcesResponseUnmarshaller.unmarshall(this, context);
100+
}
101+
102+
@Override
103+
public boolean checkShowJsonItemName() {
104+
return false;
105+
}
106+
}

0 commit comments

Comments
 (0)