Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b3d629

Browse files
committed
Supported API for DescribeTags.
1 parent 2eeb7b3 commit 6b3d629

21 files changed

+1166
-3
lines changed

aliyun-java-sdk-alidns/ChangeLog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2020-04-21 Version: 2.0.18
2+
- Supported API for DescribeTags.
3+
- Supported API for ListTagResources.
4+
- Supported API for TagResources.
5+
- Supported API for UntagResources.
6+
17
2020-03-18 Version: 2.0.17
28
- Supported API for DescribeInstanceDomains.
39

aliyun-java-sdk-alidns/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-alidns</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.0.17</version>
7+
<version>2.0.18</version>
88
<name>aliyun-java-sdk-alidns</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.alidns.model.v20150109;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.alidns.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CopyGtmConfigRequest extends RpcAcsRequest<CopyGtmConfigResponse> {
26+
27+
28+
private String sourceId;
29+
30+
private String targetId;
31+
32+
private String copyType;
33+
34+
private String lang;
35+
public CopyGtmConfigRequest() {
36+
super("Alidns", "2015-01-09", "CopyGtmConfig", "alidns");
37+
setMethod(MethodType.POST);
38+
try {
39+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
40+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
41+
} catch (Exception e) {}
42+
}
43+
44+
public String getSourceId() {
45+
return this.sourceId;
46+
}
47+
48+
public void setSourceId(String sourceId) {
49+
this.sourceId = sourceId;
50+
if(sourceId != null){
51+
putQueryParameter("SourceId", sourceId);
52+
}
53+
}
54+
55+
public String getTargetId() {
56+
return this.targetId;
57+
}
58+
59+
public void setTargetId(String targetId) {
60+
this.targetId = targetId;
61+
if(targetId != null){
62+
putQueryParameter("TargetId", targetId);
63+
}
64+
}
65+
66+
public String getCopyType() {
67+
return this.copyType;
68+
}
69+
70+
public void setCopyType(String copyType) {
71+
this.copyType = copyType;
72+
if(copyType != null){
73+
putQueryParameter("CopyType", copyType);
74+
}
75+
}
76+
77+
public String getLang() {
78+
return this.lang;
79+
}
80+
81+
public void setLang(String lang) {
82+
this.lang = lang;
83+
if(lang != null){
84+
putQueryParameter("Lang", lang);
85+
}
86+
}
87+
88+
@Override
89+
public Class<CopyGtmConfigResponse> getResponseClass() {
90+
return CopyGtmConfigResponse.class;
91+
}
92+
93+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.alidns.model.v20150109;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.alidns.transform.v20150109.CopyGtmConfigResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CopyGtmConfigResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
public String getRequestId() {
30+
return this.requestId;
31+
}
32+
33+
public void setRequestId(String requestId) {
34+
this.requestId = requestId;
35+
}
36+
37+
@Override
38+
public CopyGtmConfigResponse getInstance(UnmarshallerContext context) {
39+
return CopyGtmConfigResponseUnmarshaller.unmarshall(this, context);
40+
}
41+
}

aliyun-java-sdk-alidns/src/main/java/com/aliyuncs/alidns/model/v20150109/DescribeDomainsResponse.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ public static class Domain {
111111

112112
private Long createTimestamp;
113113

114+
private List<Tag> tags;
115+
114116
private List<String> dnsServers;
115117

116118
public String getDomainId() {
@@ -249,13 +251,44 @@ public void setCreateTimestamp(Long createTimestamp) {
249251
this.createTimestamp = createTimestamp;
250252
}
251253

254+
public List<Tag> getTags() {
255+
return this.tags;
256+
}
257+
258+
public void setTags(List<Tag> tags) {
259+
this.tags = tags;
260+
}
261+
252262
public List<String> getDnsServers() {
253263
return this.dnsServers;
254264
}
255265

256266
public void setDnsServers(List<String> dnsServers) {
257267
this.dnsServers = dnsServers;
258268
}
269+
270+
public static class Tag {
271+
272+
private String key;
273+
274+
private String value;
275+
276+
public String getKey() {
277+
return this.key;
278+
}
279+
280+
public void setKey(String key) {
281+
this.key = key;
282+
}
283+
284+
public String getValue() {
285+
return this.value;
286+
}
287+
288+
public void setValue(String value) {
289+
this.value = value;
290+
}
291+
}
259292
}
260293

261294
@Override

aliyun-java-sdk-alidns/src/main/java/com/aliyuncs/alidns/model/v20150109/DescribeGtmInstanceStatusResponse.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public class DescribeGtmInstanceStatusResponse extends AcsResponse {
3434

3535
private Integer strategyNotAvailableNum;
3636

37+
private String status;
38+
39+
private String statusReason;
40+
3741
public String getRequestId() {
3842
return this.requestId;
3943
}
@@ -74,6 +78,22 @@ public void setStrategyNotAvailableNum(Integer strategyNotAvailableNum) {
7478
this.strategyNotAvailableNum = strategyNotAvailableNum;
7579
}
7680

81+
public String getStatus() {
82+
return this.status;
83+
}
84+
85+
public void setStatus(String status) {
86+
this.status = status;
87+
}
88+
89+
public String getStatusReason() {
90+
return this.statusReason;
91+
}
92+
93+
public void setStatusReason(String statusReason) {
94+
this.statusReason = statusReason;
95+
}
96+
7797
@Override
7898
public DescribeGtmInstanceStatusResponse getInstance(UnmarshallerContext context) {
7999
return DescribeGtmInstanceStatusResponseUnmarshaller.unmarshall(this, context);
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.alidns.model.v20150109;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.alidns.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DescribeTagsRequest extends RpcAcsRequest<DescribeTagsResponse> {
26+
27+
28+
private String resourceType;
29+
30+
private Long pageNumber;
31+
32+
private Long pageSize;
33+
34+
private String lang;
35+
public DescribeTagsRequest() {
36+
super("Alidns", "2015-01-09", "DescribeTags", "alidns");
37+
setMethod(MethodType.POST);
38+
try {
39+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
40+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
41+
} catch (Exception e) {}
42+
}
43+
44+
public String getResourceType() {
45+
return this.resourceType;
46+
}
47+
48+
public void setResourceType(String resourceType) {
49+
this.resourceType = resourceType;
50+
if(resourceType != null){
51+
putQueryParameter("ResourceType", resourceType);
52+
}
53+
}
54+
55+
public Long getPageNumber() {
56+
return this.pageNumber;
57+
}
58+
59+
public void setPageNumber(Long pageNumber) {
60+
this.pageNumber = pageNumber;
61+
if(pageNumber != null){
62+
putQueryParameter("PageNumber", pageNumber.toString());
63+
}
64+
}
65+
66+
public Long getPageSize() {
67+
return this.pageSize;
68+
}
69+
70+
public void setPageSize(Long pageSize) {
71+
this.pageSize = pageSize;
72+
if(pageSize != null){
73+
putQueryParameter("PageSize", pageSize.toString());
74+
}
75+
}
76+
77+
public String getLang() {
78+
return this.lang;
79+
}
80+
81+
public void setLang(String lang) {
82+
this.lang = lang;
83+
if(lang != null){
84+
putQueryParameter("Lang", lang);
85+
}
86+
}
87+
88+
@Override
89+
public Class<DescribeTagsResponse> getResponseClass() {
90+
return DescribeTagsResponse.class;
91+
}
92+
93+
}

0 commit comments

Comments
 (0)