Skip to content

Commit 0e71330

Browse files
committed
Supported Custom Privacy Policy.
1 parent 852ef7d commit 0e71330

File tree

32 files changed

+2168
-1
lines changed

32 files changed

+2168
-1
lines changed

aliyun-java-sdk-eiam/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-10-30 Version: 1.0.13
2+
- Supported Custom Privacy Policy.
3+
14
2025-10-20 Version: 1.0.12
25
- Supported Brand.
36

aliyun-java-sdk-eiam/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-eiam</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.12</version>
7+
<version>1.0.13</version>
88
<name>aliyun-java-sdk-eiam</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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.eiam.model.v20211201;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.ProtocolType;
20+
import com.aliyuncs.http.MethodType;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class AddCustomPrivacyPoliciesToBrandRequest extends RpcAcsRequest<AddCustomPrivacyPoliciesToBrandResponse> {
27+
28+
29+
private String brandId;
30+
31+
private List<String> customPrivacyPolicyIds;
32+
33+
private String instanceId;
34+
public AddCustomPrivacyPoliciesToBrandRequest() {
35+
super("Eiam", "2021-12-01", "AddCustomPrivacyPoliciesToBrand", "eiam");
36+
setProtocol(ProtocolType.HTTPS);
37+
setMethod(MethodType.POST);
38+
}
39+
40+
public String getBrandId() {
41+
return this.brandId;
42+
}
43+
44+
public void setBrandId(String brandId) {
45+
this.brandId = brandId;
46+
if(brandId != null){
47+
putQueryParameter("BrandId", brandId);
48+
}
49+
}
50+
51+
public List<String> getCustomPrivacyPolicyIds() {
52+
return this.customPrivacyPolicyIds;
53+
}
54+
55+
public void setCustomPrivacyPolicyIds(List<String> customPrivacyPolicyIds) {
56+
this.customPrivacyPolicyIds = customPrivacyPolicyIds;
57+
if (customPrivacyPolicyIds != null) {
58+
for (int depth1 = 0; depth1 < customPrivacyPolicyIds.size(); depth1++) {
59+
putQueryParameter("CustomPrivacyPolicyIds." + (depth1 + 1) , customPrivacyPolicyIds.get(depth1));
60+
}
61+
}
62+
}
63+
64+
public String getInstanceId() {
65+
return this.instanceId;
66+
}
67+
68+
public void setInstanceId(String instanceId) {
69+
this.instanceId = instanceId;
70+
if(instanceId != null){
71+
putQueryParameter("InstanceId", instanceId);
72+
}
73+
}
74+
75+
@Override
76+
public Class<AddCustomPrivacyPoliciesToBrandResponse> getResponseClass() {
77+
return AddCustomPrivacyPoliciesToBrandResponse.class;
78+
}
79+
80+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.eiam.model.v20211201;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.eiam.transform.v20211201.AddCustomPrivacyPoliciesToBrandResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class AddCustomPrivacyPoliciesToBrandResponse 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 AddCustomPrivacyPoliciesToBrandResponse getInstance(UnmarshallerContext context) {
39+
return AddCustomPrivacyPoliciesToBrandResponseUnmarshaller.unmarshall(this, context);
40+
}
41+
42+
@Override
43+
public boolean checkShowJsonItemName() {
44+
return false;
45+
}
46+
}
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
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.eiam.model.v20211201;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.ProtocolType;
20+
import com.aliyuncs.http.MethodType;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class CreateCustomPrivacyPolicyRequest extends RpcAcsRequest<CreateCustomPrivacyPolicyResponse> {
27+
28+
29+
private String clientToken;
30+
31+
private String defaultLanguageCode;
32+
33+
private String userConsentType;
34+
35+
private List<CustomPrivacyPolicyContents> customPrivacyPolicyContents;
36+
37+
private String instanceId;
38+
39+
private String customPrivacyPolicyName;
40+
41+
private String status;
42+
public CreateCustomPrivacyPolicyRequest() {
43+
super("Eiam", "2021-12-01", "CreateCustomPrivacyPolicy", "eiam");
44+
setProtocol(ProtocolType.HTTPS);
45+
setMethod(MethodType.POST);
46+
}
47+
48+
public String getClientToken() {
49+
return this.clientToken;
50+
}
51+
52+
public void setClientToken(String clientToken) {
53+
this.clientToken = clientToken;
54+
if(clientToken != null){
55+
putQueryParameter("ClientToken", clientToken);
56+
}
57+
}
58+
59+
public String getDefaultLanguageCode() {
60+
return this.defaultLanguageCode;
61+
}
62+
63+
public void setDefaultLanguageCode(String defaultLanguageCode) {
64+
this.defaultLanguageCode = defaultLanguageCode;
65+
if(defaultLanguageCode != null){
66+
putQueryParameter("DefaultLanguageCode", defaultLanguageCode);
67+
}
68+
}
69+
70+
public String getUserConsentType() {
71+
return this.userConsentType;
72+
}
73+
74+
public void setUserConsentType(String userConsentType) {
75+
this.userConsentType = userConsentType;
76+
if(userConsentType != null){
77+
putQueryParameter("UserConsentType", userConsentType);
78+
}
79+
}
80+
81+
public List<CustomPrivacyPolicyContents> getCustomPrivacyPolicyContents() {
82+
return this.customPrivacyPolicyContents;
83+
}
84+
85+
public void setCustomPrivacyPolicyContents(List<CustomPrivacyPolicyContents> customPrivacyPolicyContents) {
86+
this.customPrivacyPolicyContents = customPrivacyPolicyContents;
87+
if (customPrivacyPolicyContents != null) {
88+
for (int depth1 = 0; depth1 < customPrivacyPolicyContents.size(); depth1++) {
89+
if (customPrivacyPolicyContents.get(depth1) != null) {
90+
91+
putQueryParameter("CustomPrivacyPolicyContents." + (depth1 + 1) + ".CustomPrivacyPolicyTip" , customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyTip());
92+
putQueryParameter("CustomPrivacyPolicyContents." + (depth1 + 1) + ".LanguageCode" , customPrivacyPolicyContents.get(depth1).getLanguageCode());
93+
if (customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems() != null) {
94+
for (int depth2 = 0; depth2 < customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems().size(); depth2++) {
95+
if (customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems().get(depth2) != null) {
96+
97+
putQueryParameter("CustomPrivacyPolicyContents." + (depth1 + 1) + ".CustomPrivacyPolicyItems." + (depth2 + 1) + ".CustomPrivacyPolicyItemUrl" , customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems().get(depth2).getCustomPrivacyPolicyItemUrl());
98+
putQueryParameter("CustomPrivacyPolicyContents." + (depth1 + 1) + ".CustomPrivacyPolicyItems." + (depth2 + 1) + ".CustomPrivacyPolicyItemName" , customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems().get(depth2).getCustomPrivacyPolicyItemName());
99+
}
100+
}
101+
}
102+
}
103+
}
104+
}
105+
}
106+
107+
public String getInstanceId() {
108+
return this.instanceId;
109+
}
110+
111+
public void setInstanceId(String instanceId) {
112+
this.instanceId = instanceId;
113+
if(instanceId != null){
114+
putQueryParameter("InstanceId", instanceId);
115+
}
116+
}
117+
118+
public String getCustomPrivacyPolicyName() {
119+
return this.customPrivacyPolicyName;
120+
}
121+
122+
public void setCustomPrivacyPolicyName(String customPrivacyPolicyName) {
123+
this.customPrivacyPolicyName = customPrivacyPolicyName;
124+
if(customPrivacyPolicyName != null){
125+
putQueryParameter("CustomPrivacyPolicyName", customPrivacyPolicyName);
126+
}
127+
}
128+
129+
public String getStatus() {
130+
return this.status;
131+
}
132+
133+
public void setStatus(String status) {
134+
this.status = status;
135+
if(status != null){
136+
putQueryParameter("Status", status);
137+
}
138+
}
139+
140+
public static class CustomPrivacyPolicyContents {
141+
142+
private String customPrivacyPolicyTip;
143+
144+
private String languageCode;
145+
146+
private List<CustomPrivacyPolicyItemsItem> customPrivacyPolicyItems;
147+
148+
public String getCustomPrivacyPolicyTip() {
149+
return this.customPrivacyPolicyTip;
150+
}
151+
152+
public void setCustomPrivacyPolicyTip(String customPrivacyPolicyTip) {
153+
this.customPrivacyPolicyTip = customPrivacyPolicyTip;
154+
}
155+
156+
public String getLanguageCode() {
157+
return this.languageCode;
158+
}
159+
160+
public void setLanguageCode(String languageCode) {
161+
this.languageCode = languageCode;
162+
}
163+
164+
public List<CustomPrivacyPolicyItemsItem> getCustomPrivacyPolicyItems() {
165+
return this.customPrivacyPolicyItems;
166+
}
167+
168+
public void setCustomPrivacyPolicyItems(List<CustomPrivacyPolicyItemsItem> customPrivacyPolicyItems) {
169+
this.customPrivacyPolicyItems = customPrivacyPolicyItems;
170+
}
171+
172+
public static class CustomPrivacyPolicyItemsItem {
173+
174+
private String customPrivacyPolicyItemUrl;
175+
176+
private String customPrivacyPolicyItemName;
177+
178+
public String getCustomPrivacyPolicyItemUrl() {
179+
return this.customPrivacyPolicyItemUrl;
180+
}
181+
182+
public void setCustomPrivacyPolicyItemUrl(String customPrivacyPolicyItemUrl) {
183+
this.customPrivacyPolicyItemUrl = customPrivacyPolicyItemUrl;
184+
}
185+
186+
public String getCustomPrivacyPolicyItemName() {
187+
return this.customPrivacyPolicyItemName;
188+
}
189+
190+
public void setCustomPrivacyPolicyItemName(String customPrivacyPolicyItemName) {
191+
this.customPrivacyPolicyItemName = customPrivacyPolicyItemName;
192+
}
193+
}
194+
}
195+
196+
@Override
197+
public Class<CreateCustomPrivacyPolicyResponse> getResponseClass() {
198+
return CreateCustomPrivacyPolicyResponse.class;
199+
}
200+
201+
}

0 commit comments

Comments
 (0)