Skip to content

Commit 48f694c

Browse files
committed
Support API ListTagResources.
1 parent 2fbd9d6 commit 48f694c

15 files changed

+1084
-1
lines changed

cas-20200630/ChangeLog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2025-12-09 Version: 1.5.0
2+
- Support API ListTagResources.
3+
- Support API MoveResourceGroup.
4+
- Support API TagResources.
5+
- Support API UntagResources.
6+
7+
18
2025-12-08 Version: 1.4.0
29
- Support API AssignCertificateCount.
310
- Support API ListAllEndEntityInstance.

cas-20200630/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>cas20200630</artifactId>
6-
<version>1.4.0</version>
6+
<version>1.5.0</version>
77
<packaging>jar</packaging>
88
<name>cas20200630</name>
99
<description>Alibaba Cloud SSL Certificates Service (20200630) SDK for Java

cas-20200630/src/main/java/com/aliyun/cas20200630/Client.java

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,6 +1893,242 @@ public ListRevokeCertificateResponse listRevokeCertificate(ListRevokeCertificate
18931893
return this.listRevokeCertificateWithOptions(request, runtime);
18941894
}
18951895

1896+
/**
1897+
* <b>summary</b> :
1898+
* <p>获取资源对应的标签</p>
1899+
*
1900+
* @param request ListTagResourcesRequest
1901+
* @param runtime runtime options for this request RuntimeOptions
1902+
* @return ListTagResourcesResponse
1903+
*/
1904+
public ListTagResourcesResponse listTagResourcesWithOptions(ListTagResourcesRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
1905+
com.aliyun.teautil.Common.validateModel(request);
1906+
java.util.Map<String, Object> query = new java.util.HashMap<>();
1907+
if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) {
1908+
query.put("MaxResults", request.maxResults);
1909+
}
1910+
1911+
if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) {
1912+
query.put("NextToken", request.nextToken);
1913+
}
1914+
1915+
if (!com.aliyun.teautil.Common.isUnset(request.regionId)) {
1916+
query.put("RegionId", request.regionId);
1917+
}
1918+
1919+
if (!com.aliyun.teautil.Common.isUnset(request.resourceId)) {
1920+
query.put("ResourceId", request.resourceId);
1921+
}
1922+
1923+
if (!com.aliyun.teautil.Common.isUnset(request.resourceType)) {
1924+
query.put("ResourceType", request.resourceType);
1925+
}
1926+
1927+
if (!com.aliyun.teautil.Common.isUnset(request.tag)) {
1928+
query.put("Tag", request.tag);
1929+
}
1930+
1931+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
1932+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
1933+
));
1934+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
1935+
new TeaPair("action", "ListTagResources"),
1936+
new TeaPair("version", "2020-06-30"),
1937+
new TeaPair("protocol", "HTTPS"),
1938+
new TeaPair("pathname", "/"),
1939+
new TeaPair("method", "POST"),
1940+
new TeaPair("authType", "AK"),
1941+
new TeaPair("style", "RPC"),
1942+
new TeaPair("reqBodyType", "formData"),
1943+
new TeaPair("bodyType", "json")
1944+
));
1945+
return TeaModel.toModel(this.callApi(params, req, runtime), new ListTagResourcesResponse());
1946+
}
1947+
1948+
/**
1949+
* <b>summary</b> :
1950+
* <p>获取资源对应的标签</p>
1951+
*
1952+
* @param request ListTagResourcesRequest
1953+
* @return ListTagResourcesResponse
1954+
*/
1955+
public ListTagResourcesResponse listTagResources(ListTagResourcesRequest request) throws Exception {
1956+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
1957+
return this.listTagResourcesWithOptions(request, runtime);
1958+
}
1959+
1960+
/**
1961+
* <b>summary</b> :
1962+
* <p>变更资源的资源组</p>
1963+
*
1964+
* @param request MoveResourceGroupRequest
1965+
* @param runtime runtime options for this request RuntimeOptions
1966+
* @return MoveResourceGroupResponse
1967+
*/
1968+
public MoveResourceGroupResponse moveResourceGroupWithOptions(MoveResourceGroupRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
1969+
com.aliyun.teautil.Common.validateModel(request);
1970+
java.util.Map<String, Object> query = new java.util.HashMap<>();
1971+
if (!com.aliyun.teautil.Common.isUnset(request.regionId)) {
1972+
query.put("RegionId", request.regionId);
1973+
}
1974+
1975+
if (!com.aliyun.teautil.Common.isUnset(request.resourceGroupId)) {
1976+
query.put("ResourceGroupId", request.resourceGroupId);
1977+
}
1978+
1979+
if (!com.aliyun.teautil.Common.isUnset(request.resourceId)) {
1980+
query.put("ResourceId", request.resourceId);
1981+
}
1982+
1983+
if (!com.aliyun.teautil.Common.isUnset(request.resourceType)) {
1984+
query.put("ResourceType", request.resourceType);
1985+
}
1986+
1987+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
1988+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
1989+
));
1990+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
1991+
new TeaPair("action", "MoveResourceGroup"),
1992+
new TeaPair("version", "2020-06-30"),
1993+
new TeaPair("protocol", "HTTPS"),
1994+
new TeaPair("pathname", "/"),
1995+
new TeaPair("method", "POST"),
1996+
new TeaPair("authType", "AK"),
1997+
new TeaPair("style", "RPC"),
1998+
new TeaPair("reqBodyType", "formData"),
1999+
new TeaPair("bodyType", "json")
2000+
));
2001+
return TeaModel.toModel(this.callApi(params, req, runtime), new MoveResourceGroupResponse());
2002+
}
2003+
2004+
/**
2005+
* <b>summary</b> :
2006+
* <p>变更资源的资源组</p>
2007+
*
2008+
* @param request MoveResourceGroupRequest
2009+
* @return MoveResourceGroupResponse
2010+
*/
2011+
public MoveResourceGroupResponse moveResourceGroup(MoveResourceGroupRequest request) throws Exception {
2012+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
2013+
return this.moveResourceGroupWithOptions(request, runtime);
2014+
}
2015+
2016+
/**
2017+
* <b>summary</b> :
2018+
* <p>新增资源标签</p>
2019+
*
2020+
* @param request TagResourcesRequest
2021+
* @param runtime runtime options for this request RuntimeOptions
2022+
* @return TagResourcesResponse
2023+
*/
2024+
public TagResourcesResponse tagResourcesWithOptions(TagResourcesRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
2025+
com.aliyun.teautil.Common.validateModel(request);
2026+
java.util.Map<String, Object> query = new java.util.HashMap<>();
2027+
if (!com.aliyun.teautil.Common.isUnset(request.regionId)) {
2028+
query.put("RegionId", request.regionId);
2029+
}
2030+
2031+
if (!com.aliyun.teautil.Common.isUnset(request.resourceId)) {
2032+
query.put("ResourceId", request.resourceId);
2033+
}
2034+
2035+
if (!com.aliyun.teautil.Common.isUnset(request.resourceType)) {
2036+
query.put("ResourceType", request.resourceType);
2037+
}
2038+
2039+
if (!com.aliyun.teautil.Common.isUnset(request.tag)) {
2040+
query.put("Tag", request.tag);
2041+
}
2042+
2043+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
2044+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
2045+
));
2046+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
2047+
new TeaPair("action", "TagResources"),
2048+
new TeaPair("version", "2020-06-30"),
2049+
new TeaPair("protocol", "HTTPS"),
2050+
new TeaPair("pathname", "/"),
2051+
new TeaPair("method", "POST"),
2052+
new TeaPair("authType", "AK"),
2053+
new TeaPair("style", "RPC"),
2054+
new TeaPair("reqBodyType", "formData"),
2055+
new TeaPair("bodyType", "json")
2056+
));
2057+
return TeaModel.toModel(this.callApi(params, req, runtime), new TagResourcesResponse());
2058+
}
2059+
2060+
/**
2061+
* <b>summary</b> :
2062+
* <p>新增资源标签</p>
2063+
*
2064+
* @param request TagResourcesRequest
2065+
* @return TagResourcesResponse
2066+
*/
2067+
public TagResourcesResponse tagResources(TagResourcesRequest request) throws Exception {
2068+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
2069+
return this.tagResourcesWithOptions(request, runtime);
2070+
}
2071+
2072+
/**
2073+
* <b>summary</b> :
2074+
* <p>移除标签</p>
2075+
*
2076+
* @param request UntagResourcesRequest
2077+
* @param runtime runtime options for this request RuntimeOptions
2078+
* @return UntagResourcesResponse
2079+
*/
2080+
public UntagResourcesResponse untagResourcesWithOptions(UntagResourcesRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
2081+
com.aliyun.teautil.Common.validateModel(request);
2082+
java.util.Map<String, Object> query = new java.util.HashMap<>();
2083+
if (!com.aliyun.teautil.Common.isUnset(request.all)) {
2084+
query.put("All", request.all);
2085+
}
2086+
2087+
if (!com.aliyun.teautil.Common.isUnset(request.regionId)) {
2088+
query.put("RegionId", request.regionId);
2089+
}
2090+
2091+
if (!com.aliyun.teautil.Common.isUnset(request.resourceId)) {
2092+
query.put("ResourceId", request.resourceId);
2093+
}
2094+
2095+
if (!com.aliyun.teautil.Common.isUnset(request.resourceType)) {
2096+
query.put("ResourceType", request.resourceType);
2097+
}
2098+
2099+
if (!com.aliyun.teautil.Common.isUnset(request.tagKey)) {
2100+
query.put("TagKey", request.tagKey);
2101+
}
2102+
2103+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
2104+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
2105+
));
2106+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
2107+
new TeaPair("action", "UntagResources"),
2108+
new TeaPair("version", "2020-06-30"),
2109+
new TeaPair("protocol", "HTTPS"),
2110+
new TeaPair("pathname", "/"),
2111+
new TeaPair("method", "POST"),
2112+
new TeaPair("authType", "AK"),
2113+
new TeaPair("style", "RPC"),
2114+
new TeaPair("reqBodyType", "formData"),
2115+
new TeaPair("bodyType", "json")
2116+
));
2117+
return TeaModel.toModel(this.callApi(params, req, runtime), new UntagResourcesResponse());
2118+
}
2119+
2120+
/**
2121+
* <b>summary</b> :
2122+
* <p>移除标签</p>
2123+
*
2124+
* @param request UntagResourcesRequest
2125+
* @return UntagResourcesResponse
2126+
*/
2127+
public UntagResourcesResponse untagResources(UntagResourcesRequest request) throws Exception {
2128+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
2129+
return this.untagResourcesWithOptions(request, runtime);
2130+
}
2131+
18962132
/**
18972133
* <b>description</b> :
18982134
* <p>After a CA certificate is created, the CA certificate is in the ISSUE state by default. You can call the UpdateCACertificateStatus operation to change the status of a CA certificate from ISSUE to REVOKE. If a CA certificate is in the ISSUE state, the CA certificate can be used to issue certificates. If a CA certificate is in the REVOKE state, the CA certificate cannot be used to issue certificates, and the certificates that are issued from the CA certificate become invalid.
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.cas20200630.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class ListTagResourcesRequest extends TeaModel {
7+
/**
8+
* <strong>example:</strong>
9+
* <p>1000</p>
10+
*/
11+
@NameInMap("MaxResults")
12+
public Integer maxResults;
13+
14+
/**
15+
* <strong>example:</strong>
16+
* <p>1d2db86sca4384811e0b5e8707e68181f</p>
17+
*/
18+
@NameInMap("NextToken")
19+
public String nextToken;
20+
21+
/**
22+
* <p>This parameter is required.</p>
23+
*
24+
* <strong>example:</strong>
25+
* <p>cn-hangzhou</p>
26+
*/
27+
@NameInMap("RegionId")
28+
public String regionId;
29+
30+
@NameInMap("ResourceId")
31+
public java.util.List<String> resourceId;
32+
33+
/**
34+
* <p>This parameter is required.</p>
35+
*
36+
* <strong>example:</strong>
37+
* <p>instance</p>
38+
*/
39+
@NameInMap("ResourceType")
40+
public String resourceType;
41+
42+
@NameInMap("Tag")
43+
public java.util.List<ListTagResourcesRequestTag> tag;
44+
45+
public static ListTagResourcesRequest build(java.util.Map<String, ?> map) throws Exception {
46+
ListTagResourcesRequest self = new ListTagResourcesRequest();
47+
return TeaModel.build(map, self);
48+
}
49+
50+
public ListTagResourcesRequest setMaxResults(Integer maxResults) {
51+
this.maxResults = maxResults;
52+
return this;
53+
}
54+
public Integer getMaxResults() {
55+
return this.maxResults;
56+
}
57+
58+
public ListTagResourcesRequest setNextToken(String nextToken) {
59+
this.nextToken = nextToken;
60+
return this;
61+
}
62+
public String getNextToken() {
63+
return this.nextToken;
64+
}
65+
66+
public ListTagResourcesRequest setRegionId(String regionId) {
67+
this.regionId = regionId;
68+
return this;
69+
}
70+
public String getRegionId() {
71+
return this.regionId;
72+
}
73+
74+
public ListTagResourcesRequest setResourceId(java.util.List<String> resourceId) {
75+
this.resourceId = resourceId;
76+
return this;
77+
}
78+
public java.util.List<String> getResourceId() {
79+
return this.resourceId;
80+
}
81+
82+
public ListTagResourcesRequest setResourceType(String resourceType) {
83+
this.resourceType = resourceType;
84+
return this;
85+
}
86+
public String getResourceType() {
87+
return this.resourceType;
88+
}
89+
90+
public ListTagResourcesRequest setTag(java.util.List<ListTagResourcesRequestTag> tag) {
91+
this.tag = tag;
92+
return this;
93+
}
94+
public java.util.List<ListTagResourcesRequestTag> getTag() {
95+
return this.tag;
96+
}
97+
98+
public static class ListTagResourcesRequestTag extends TeaModel {
99+
/**
100+
* <strong>example:</strong>
101+
* <p>testKey1</p>
102+
*/
103+
@NameInMap("Key")
104+
public String key;
105+
106+
/**
107+
* <strong>example:</strong>
108+
* <p>testValue1</p>
109+
*/
110+
@NameInMap("Value")
111+
public String value;
112+
113+
public static ListTagResourcesRequestTag build(java.util.Map<String, ?> map) throws Exception {
114+
ListTagResourcesRequestTag self = new ListTagResourcesRequestTag();
115+
return TeaModel.build(map, self);
116+
}
117+
118+
public ListTagResourcesRequestTag setKey(String key) {
119+
this.key = key;
120+
return this;
121+
}
122+
public String getKey() {
123+
return this.key;
124+
}
125+
126+
public ListTagResourcesRequestTag setValue(String value) {
127+
this.value = value;
128+
return this;
129+
}
130+
public String getValue() {
131+
return this.value;
132+
}
133+
134+
}
135+
136+
}

0 commit comments

Comments
 (0)