Skip to content

Commit bdbca6c

Browse files
committed
Added query domain real time price API.
1 parent 473d680 commit bdbca6c

18 files changed

+516
-62
lines changed

aliyun-java-sdk-domain/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-11-05 Version: 3.15.11
2+
- Added query domain real time price API.
3+
14
2024-10-18 Version: 3.15.10
25
- 基于转移码的转出接口
36
- SaveSingleTaskForTransferOutByAuthorizationCode

aliyun-java-sdk-domain/pom.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-domain</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.15.10</version>
7+
<version>3.15.11</version>
88
<name>aliyun-java-sdk-domain</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -91,7 +91,7 @@ http://www.aliyun.com</description>
9191
<plugin>
9292
<groupId>org.apache.maven.plugins</groupId>
9393
<artifactId>maven-gpg-plugin</artifactId>
94-
<version>1.5</version>
94+
<version>3.1.0</version>
9595
<executions>
9696
<execution>
9797
<id>sign-artifacts</id>
@@ -103,14 +103,13 @@ http://www.aliyun.com</description>
103103
</executions>
104104
</plugin>
105105
<plugin>
106-
<groupId>org.sonatype.plugins</groupId>
107-
<artifactId>nexus-staging-maven-plugin</artifactId>
108-
<version>1.6.3</version>
106+
<groupId>org.sonatype.central</groupId>
107+
<artifactId>central-publishing-maven-plugin</artifactId>
108+
<version>0.9.0</version>
109109
<extensions>true</extensions>
110110
<configuration>
111-
<serverId>sonatype-nexus-staging</serverId>
112-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
113-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
111+
<publishingServerId>central</publishingServerId>
112+
<autoPublish>true</autoPublish>
114113
</configuration>
115114
</plugin>
116115
</plugins>

aliyun-java-sdk-domain/src/main/java/com/aliyuncs/domain/model/v20180129/QueryChangeLogListResponse.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ public static class ChangeLog {
129129

130130
private String details;
131131

132+
private String remark;
133+
132134
public String getOperation() {
133135
return this.operation;
134136
}
@@ -176,6 +178,14 @@ public String getDetails() {
176178
public void setDetails(String details) {
177179
this.details = details;
178180
}
181+
182+
public String getRemark() {
183+
return this.remark;
184+
}
185+
186+
public void setRemark(String remark) {
187+
this.remark = remark;
188+
}
179189
}
180190

181191
@Override

aliyun-java-sdk-domain/src/main/java/com/aliyuncs/domain/model/v20180129/QueryDomainByInstanceIdResponse.java

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

9090
private String resourceGroupId;
9191

92+
private String domainLifecycleStatus;
93+
94+
private String privacyServiceStatus;
95+
9296
private List<TagItem> tag;
9397

9498
private List<String> dnsList;
@@ -349,6 +353,22 @@ public void setResourceGroupId(String resourceGroupId) {
349353
this.resourceGroupId = resourceGroupId;
350354
}
351355

356+
public String getDomainLifecycleStatus() {
357+
return this.domainLifecycleStatus;
358+
}
359+
360+
public void setDomainLifecycleStatus(String domainLifecycleStatus) {
361+
this.domainLifecycleStatus = domainLifecycleStatus;
362+
}
363+
364+
public String getPrivacyServiceStatus() {
365+
return this.privacyServiceStatus;
366+
}
367+
368+
public void setPrivacyServiceStatus(String privacyServiceStatus) {
369+
this.privacyServiceStatus = privacyServiceStatus;
370+
}
371+
352372
public List<TagItem> getTag() {
353373
return this.tag;
354374
}

aliyun-java-sdk-domain/src/main/java/com/aliyuncs/domain/model/v20180129/QueryDomainListRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public class QueryDomainListRequest extends RpcAcsRequest<QueryDomainListRespons
3232

3333
private String orderKeyType;
3434

35+
private String registrar;
36+
3537
private Integer pageNum;
3638

3739
private String orderByType;
@@ -101,6 +103,17 @@ public void setOrderKeyType(String orderKeyType) {
101103
}
102104
}
103105

106+
public String getRegistrar() {
107+
return this.registrar;
108+
}
109+
110+
public void setRegistrar(String registrar) {
111+
this.registrar = registrar;
112+
if(registrar != null){
113+
putQueryParameter("Registrar", registrar);
114+
}
115+
}
116+
104117
public Integer getPageNum() {
105118
return this.pageNum;
106119
}

aliyun-java-sdk-domain/src/main/java/com/aliyuncs/domain/model/v20180129/QueryDomainListResponse.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public static class Domain {
147147

148148
private String chgholderStatus;
149149

150+
private String registrar;
151+
150152
private List<TagItem> tag;
151153

152154
public String getDomainAuditStatus() {
@@ -309,6 +311,14 @@ public void setChgholderStatus(String chgholderStatus) {
309311
this.chgholderStatus = chgholderStatus;
310312
}
311313

314+
public String getRegistrar() {
315+
return this.registrar;
316+
}
317+
318+
public void setRegistrar(String registrar) {
319+
this.registrar = registrar;
320+
}
321+
312322
public List<TagItem> getTag() {
313323
return this.tag;
314324
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
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.domain.model.v20180129;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.google.gson.Gson;
20+
import com.google.gson.annotations.SerializedName;
21+
import com.aliyuncs.http.ProtocolType;
22+
import com.aliyuncs.http.MethodType;
23+
import com.aliyuncs.domain.Endpoint;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class QueryDomainRealTimePriceRequest extends RpcAcsRequest<QueryDomainRealTimePriceResponse> {
30+
31+
32+
@SerializedName("domainItem")
33+
private List<DomainItem> domainItem;
34+
35+
private String currency;
36+
public QueryDomainRealTimePriceRequest() {
37+
super("Domain", "2018-01-29", "QueryDomainRealTimePrice", "domain");
38+
setProtocol(ProtocolType.HTTPS);
39+
setMethod(MethodType.POST);
40+
try {
41+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
42+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
43+
} catch (Exception e) {}
44+
}
45+
46+
public List<DomainItem> getDomainItem() {
47+
return this.domainItem;
48+
}
49+
50+
public void setDomainItem(List<DomainItem> domainItem) {
51+
this.domainItem = domainItem;
52+
if (domainItem != null) {
53+
putQueryParameter("DomainItem" , new Gson().toJson(domainItem));
54+
}
55+
}
56+
57+
public String getCurrency() {
58+
return this.currency;
59+
}
60+
61+
public void setCurrency(String currency) {
62+
this.currency = currency;
63+
if(currency != null){
64+
putQueryParameter("Currency", currency);
65+
}
66+
}
67+
68+
public static class DomainItem {
69+
70+
@SerializedName("Period")
71+
private Integer period;
72+
73+
@SerializedName("DomainName")
74+
private String domainName;
75+
76+
@SerializedName("Action")
77+
private String action;
78+
79+
@SerializedName("Suffix")
80+
private String suffix;
81+
82+
public Integer getPeriod() {
83+
return this.period;
84+
}
85+
86+
public void setPeriod(Integer period) {
87+
this.period = period;
88+
}
89+
90+
public String getDomainName() {
91+
return this.domainName;
92+
}
93+
94+
public void setDomainName(String domainName) {
95+
this.domainName = domainName;
96+
}
97+
98+
public String getAction() {
99+
return this.action;
100+
}
101+
102+
public void setAction(String action) {
103+
this.action = action;
104+
}
105+
106+
public String getSuffix() {
107+
return this.suffix;
108+
}
109+
110+
public void setSuffix(String suffix) {
111+
this.suffix = suffix;
112+
}
113+
}
114+
115+
@Override
116+
public Class<QueryDomainRealTimePriceResponse> getResponseClass() {
117+
return QueryDomainRealTimePriceResponse.class;
118+
}
119+
120+
}

0 commit comments

Comments
 (0)