Skip to content

Commit 021d193

Browse files
committed
Support API ChangeDomainDkimRecord.
1 parent 2906660 commit 021d193

File tree

7 files changed

+256
-1
lines changed

7 files changed

+256
-1
lines changed

dm-20151123/ChangeLog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-06-23 Version: 1.3.0
2+
- Support API ChangeDomainDkimRecord.
3+
- Update API DescDomain: add response parameters Body.DkimRsaLength.
4+
5+
16
2025-06-20 Version: 1.2.6
27
- Update API SingleSendMail: add request parameters Attachments.
38

dm-20151123/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>dm20151123</artifactId>
6-
<version>1.2.6</version>
6+
<version>1.3.0</version>
77
<packaging>jar</packaging>
88
<name>dm20151123</name>
99
<description>Alibaba Cloud Dm (20151123) SDK for Java

dm-20151123/src/main/java/com/aliyun/dm20151123/Client.java

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,66 @@ public BatchSendMailResponse batchSendMail(BatchSendMailRequest request) throws
238238
return this.batchSendMailWithOptions(request, runtime);
239239
}
240240

241+
/**
242+
* <b>summary</b> :
243+
* <p>修改域名DKIM记录</p>
244+
*
245+
* @param request ChangeDomainDkimRecordRequest
246+
* @param runtime runtime options for this request RuntimeOptions
247+
* @return ChangeDomainDkimRecordResponse
248+
*/
249+
public ChangeDomainDkimRecordResponse changeDomainDkimRecordWithOptions(ChangeDomainDkimRecordRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
250+
com.aliyun.teautil.Common.validateModel(request);
251+
java.util.Map<String, Object> query = new java.util.HashMap<>();
252+
if (!com.aliyun.teautil.Common.isUnset(request.dkimRsaLength)) {
253+
query.put("DkimRsaLength", request.dkimRsaLength);
254+
}
255+
256+
if (!com.aliyun.teautil.Common.isUnset(request.domain)) {
257+
query.put("Domain", request.domain);
258+
}
259+
260+
if (!com.aliyun.teautil.Common.isUnset(request.ownerId)) {
261+
query.put("OwnerId", request.ownerId);
262+
}
263+
264+
if (!com.aliyun.teautil.Common.isUnset(request.resourceOwnerAccount)) {
265+
query.put("ResourceOwnerAccount", request.resourceOwnerAccount);
266+
}
267+
268+
if (!com.aliyun.teautil.Common.isUnset(request.resourceOwnerId)) {
269+
query.put("ResourceOwnerId", request.resourceOwnerId);
270+
}
271+
272+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
273+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
274+
));
275+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
276+
new TeaPair("action", "ChangeDomainDkimRecord"),
277+
new TeaPair("version", "2015-11-23"),
278+
new TeaPair("protocol", "HTTPS"),
279+
new TeaPair("pathname", "/"),
280+
new TeaPair("method", "POST"),
281+
new TeaPair("authType", "AK"),
282+
new TeaPair("style", "RPC"),
283+
new TeaPair("reqBodyType", "formData"),
284+
new TeaPair("bodyType", "json")
285+
));
286+
return TeaModel.toModel(this.callApi(params, req, runtime), new ChangeDomainDkimRecordResponse());
287+
}
288+
289+
/**
290+
* <b>summary</b> :
291+
* <p>修改域名DKIM记录</p>
292+
*
293+
* @param request ChangeDomainDkimRecordRequest
294+
* @return ChangeDomainDkimRecordResponse
295+
*/
296+
public ChangeDomainDkimRecordResponse changeDomainDkimRecord(ChangeDomainDkimRecordRequest request) throws Exception {
297+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
298+
return this.changeDomainDkimRecordWithOptions(request, runtime);
299+
}
300+
241301
/**
242302
* <b>summary</b> :
243303
* <p>Check Domain Status</p>
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.dm20151123.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class ChangeDomainDkimRecordRequest extends TeaModel {
7+
@NameInMap("DkimRsaLength")
8+
public Integer dkimRsaLength;
9+
10+
@NameInMap("Domain")
11+
public String domain;
12+
13+
@NameInMap("OwnerId")
14+
public Long ownerId;
15+
16+
@NameInMap("ResourceOwnerAccount")
17+
public String resourceOwnerAccount;
18+
19+
@NameInMap("ResourceOwnerId")
20+
public Long resourceOwnerId;
21+
22+
public static ChangeDomainDkimRecordRequest build(java.util.Map<String, ?> map) throws Exception {
23+
ChangeDomainDkimRecordRequest self = new ChangeDomainDkimRecordRequest();
24+
return TeaModel.build(map, self);
25+
}
26+
27+
public ChangeDomainDkimRecordRequest setDkimRsaLength(Integer dkimRsaLength) {
28+
this.dkimRsaLength = dkimRsaLength;
29+
return this;
30+
}
31+
public Integer getDkimRsaLength() {
32+
return this.dkimRsaLength;
33+
}
34+
35+
public ChangeDomainDkimRecordRequest setDomain(String domain) {
36+
this.domain = domain;
37+
return this;
38+
}
39+
public String getDomain() {
40+
return this.domain;
41+
}
42+
43+
public ChangeDomainDkimRecordRequest setOwnerId(Long ownerId) {
44+
this.ownerId = ownerId;
45+
return this;
46+
}
47+
public Long getOwnerId() {
48+
return this.ownerId;
49+
}
50+
51+
public ChangeDomainDkimRecordRequest setResourceOwnerAccount(String resourceOwnerAccount) {
52+
this.resourceOwnerAccount = resourceOwnerAccount;
53+
return this;
54+
}
55+
public String getResourceOwnerAccount() {
56+
return this.resourceOwnerAccount;
57+
}
58+
59+
public ChangeDomainDkimRecordRequest setResourceOwnerId(Long resourceOwnerId) {
60+
this.resourceOwnerId = resourceOwnerId;
61+
return this;
62+
}
63+
public Long getResourceOwnerId() {
64+
return this.resourceOwnerId;
65+
}
66+
67+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.dm20151123.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class ChangeDomainDkimRecordResponse extends TeaModel {
7+
@NameInMap("headers")
8+
public java.util.Map<String, String> headers;
9+
10+
@NameInMap("statusCode")
11+
public Integer statusCode;
12+
13+
@NameInMap("body")
14+
public ChangeDomainDkimRecordResponseBody body;
15+
16+
public static ChangeDomainDkimRecordResponse build(java.util.Map<String, ?> map) throws Exception {
17+
ChangeDomainDkimRecordResponse self = new ChangeDomainDkimRecordResponse();
18+
return TeaModel.build(map, self);
19+
}
20+
21+
public ChangeDomainDkimRecordResponse setHeaders(java.util.Map<String, String> headers) {
22+
this.headers = headers;
23+
return this;
24+
}
25+
public java.util.Map<String, String> getHeaders() {
26+
return this.headers;
27+
}
28+
29+
public ChangeDomainDkimRecordResponse setStatusCode(Integer statusCode) {
30+
this.statusCode = statusCode;
31+
return this;
32+
}
33+
public Integer getStatusCode() {
34+
return this.statusCode;
35+
}
36+
37+
public ChangeDomainDkimRecordResponse setBody(ChangeDomainDkimRecordResponseBody body) {
38+
this.body = body;
39+
return this;
40+
}
41+
public ChangeDomainDkimRecordResponseBody getBody() {
42+
return this.body;
43+
}
44+
45+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.dm20151123.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class ChangeDomainDkimRecordResponseBody extends TeaModel {
7+
@NameInMap("Changed")
8+
public Boolean changed;
9+
10+
@NameInMap("DkimPublicKey")
11+
public String dkimPublicKey;
12+
13+
@NameInMap("DkimRsaLength")
14+
public Integer dkimRsaLength;
15+
16+
@NameInMap("Hostname")
17+
public String hostname;
18+
19+
@NameInMap("RequestId")
20+
public String requestId;
21+
22+
public static ChangeDomainDkimRecordResponseBody build(java.util.Map<String, ?> map) throws Exception {
23+
ChangeDomainDkimRecordResponseBody self = new ChangeDomainDkimRecordResponseBody();
24+
return TeaModel.build(map, self);
25+
}
26+
27+
public ChangeDomainDkimRecordResponseBody setChanged(Boolean changed) {
28+
this.changed = changed;
29+
return this;
30+
}
31+
public Boolean getChanged() {
32+
return this.changed;
33+
}
34+
35+
public ChangeDomainDkimRecordResponseBody setDkimPublicKey(String dkimPublicKey) {
36+
this.dkimPublicKey = dkimPublicKey;
37+
return this;
38+
}
39+
public String getDkimPublicKey() {
40+
return this.dkimPublicKey;
41+
}
42+
43+
public ChangeDomainDkimRecordResponseBody setDkimRsaLength(Integer dkimRsaLength) {
44+
this.dkimRsaLength = dkimRsaLength;
45+
return this;
46+
}
47+
public Integer getDkimRsaLength() {
48+
return this.dkimRsaLength;
49+
}
50+
51+
public ChangeDomainDkimRecordResponseBody setHostname(String hostname) {
52+
this.hostname = hostname;
53+
return this;
54+
}
55+
public String getHostname() {
56+
return this.hostname;
57+
}
58+
59+
public ChangeDomainDkimRecordResponseBody setRequestId(String requestId) {
60+
this.requestId = requestId;
61+
return this;
62+
}
63+
public String getRequestId() {
64+
return this.requestId;
65+
}
66+
67+
}

dm-20151123/src/main/java/com/aliyun/dm20151123/models/DescDomainResponseBody.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public class DescDomainResponseBody extends TeaModel {
7777
@NameInMap("DkimRR")
7878
public String dkimRR;
7979

80+
@NameInMap("DkimRsaLength")
81+
public Integer dkimRsaLength;
82+
8083
/**
8184
* <p>DMARC verification flag, indicating whether the DMARC record set by the user in DNS has passed validation, 0: Passed, 1: Not passed</p>
8285
*
@@ -339,6 +342,14 @@ public String getDkimRR() {
339342
return this.dkimRR;
340343
}
341344

345+
public DescDomainResponseBody setDkimRsaLength(Integer dkimRsaLength) {
346+
this.dkimRsaLength = dkimRsaLength;
347+
return this;
348+
}
349+
public Integer getDkimRsaLength() {
350+
return this.dkimRsaLength;
351+
}
352+
342353
public DescDomainResponseBody setDmarcAuthStatus(Integer dmarcAuthStatus) {
343354
this.dmarcAuthStatus = dmarcAuthStatus;
344355
return this;

0 commit comments

Comments
 (0)