Skip to content

Commit

Permalink
release version 1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
wb549296 committed Sep 11, 2024
1 parent 5987275 commit 0212097
Show file tree
Hide file tree
Showing 11 changed files with 760 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-eci/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-09-11 Version 1.5.5
1、Api support: TagResources、UntagResources、ListTagResources

2024-06-05 Version 1.5.4
1、CreateContainerGroup support gpuDriverVersion

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-eci/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-eci</artifactId>
<packaging>jar</packaging>
<version>1.5.4</version>
<version>1.5.5</version>
<name>aliyun-java-sdk-eci</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.eci.model.v20180808;

import com.aliyuncs.RpcAcsRequest;

import java.util.List;


public class ListTagResourcesRequest extends RpcAcsRequest<ListTagResourcesResponse> {

public ListTagResourcesRequest() {
super("Eci", "2018-08-08", "ListTagResources", "eci");
}

private Long resourceOwnerId;

private String resourceOwnerAccount;

private Long ownerId;

private String ownerAccount;

private List<String> resourceId;

private List<Tag> tags;

private String resourceType;

private String limit;

private String nextToken;

public List<String> getResourceId() {
return resourceId;
}

public void setResourceId(List<String> resourceId) {
this.resourceId = resourceId;
if (resourceId != null) {
for (int i = 0; i < resourceId.size(); i++) {
putQueryParameter("ResourceId." + (i + 1) , resourceId.get(i));
}
}
}

public List<Tag> getTags() {
return tags;
}

public void setTags(List<Tag> tags) {
this.tags = tags;
if (tags != null) {
for (int i = 0; i < tags.size(); i++) {
putQueryParameter("Tag." + (i + 1) + ".Key" , tags.get(i).getKey());
putQueryParameter("Tag." + (i + 1) + ".Value" , tags.get(i).getValue());
}
}
}

public String getResourceType() {
return resourceType;
}

public void setResourceType(String resourceType) {
this.resourceType = resourceType;
if (resourceType != null) {
putQueryParameter("ResourceType", resourceType);
}
}

public String getLimit() {
return limit;
}

public void setLimit(String limit) {
this.limit = limit;
if (limit != null) {
putQueryParameter("Limit", limit);
}
}

public String getNextToken() {
return nextToken;
}

public void setNextToken(String nextToken) {
this.nextToken = nextToken;
if (nextToken != null) {
putQueryParameter("NextToken", nextToken);
}
}

public Long getResourceOwnerId() {
return resourceOwnerId;
}

public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if (resourceOwnerId != null) {
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}

public String getResourceOwnerAccount() {
return resourceOwnerAccount;
}

public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if (resourceOwnerAccount != null) {
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}

public Long getOwnerId() {
return ownerId;
}

public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if (ownerId != null) {
putQueryParameter("OwnerId", ownerId.toString());
}
}

public String getOwnerAccount() {
return ownerAccount;
}

public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
if (ownerAccount != null) {
putQueryParameter("OwnerAccount", ownerAccount);
}
}

public static class Tag {

private String key;

private String value;

public String getKey() {
return this.key;
}

public void setKey(String key) {
this.key = key;
}

public String getValue() {
return this.value;
}

public void setValue(String value) {
this.value = value;
}
}

@Override
public Class<ListTagResourcesResponse> getResponseClass() {
return ListTagResourcesResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.eci.model.v20180808;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.eci.transform.v20180808.ListTagResourcesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

import java.util.List;

public class ListTagResourcesResponse extends AcsResponse {

private String requestId;

private String nextToken;

private List<TagResource> tagResources;

public String getRequestId() {
return requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getNextToken() {
return nextToken;
}

public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}

public List<TagResource> getTagResources() {
return tagResources;
}

public void setTagResources(List<TagResource> tagResources) {
this.tagResources = tagResources;
}

public static class TagResource {
private String resourceType;

private String resourceId;

private String tagKey;

private String tagValue;

public String getResourceType() {
return resourceType;
}

public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}

public String getResourceId() {
return resourceId;
}

public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}

public String getTagKey() {
return tagKey;
}

public void setTagKey(String tagKey) {
this.tagKey = tagKey;
}

public String getTagValue() {
return tagValue;
}

public void setTagValue(String tagValue) {
this.tagValue = tagValue;
}
}

@Override
public ListTagResourcesResponse getInstance(UnmarshallerContext context) {
return ListTagResourcesResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit 0212097

Please sign in to comment.