Skip to content

Commit 6dc544b

Browse files
committed
Add API BatchAddFeishuUsers.
1 parent eb3ca8d commit 6dc544b

File tree

5 files changed

+311
-1
lines changed

5 files changed

+311
-1
lines changed

aliyun-java-sdk-quickbi-public/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022-09-08 Version: 2.1.1
2+
- Add API BatchAddFeishuUsers.
3+
14
2022-09-08 Version: 2.1.0
25
- Update API Error Code And Some Parameters Checks.
36
- Update API CreateTicket QPS.

aliyun-java-sdk-quickbi-public/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-quickbi-public</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.1.0</version>
7+
<version>2.1.1</version>
88
<name>aliyun-java-sdk-quickbi-public</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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.quickbi_public.model.v20220101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class BatchAddFeishuUsersRequest extends RpcAcsRequest<BatchAddFeishuUsersResponse> {
25+
26+
27+
private Boolean isAdmin;
28+
29+
private String feishuUsers;
30+
31+
private Integer userType;
32+
33+
private String userGroupIds;
34+
35+
private Boolean isAuthAdmin;
36+
public BatchAddFeishuUsersRequest() {
37+
super("quickbi-public", "2022-01-01", "BatchAddFeishuUsers", "quickbi");
38+
setMethod(MethodType.POST);
39+
}
40+
41+
public Boolean getIsAdmin() {
42+
return this.isAdmin;
43+
}
44+
45+
public void setIsAdmin(Boolean isAdmin) {
46+
this.isAdmin = isAdmin;
47+
if(isAdmin != null){
48+
putQueryParameter("IsAdmin", isAdmin.toString());
49+
}
50+
}
51+
52+
public String getFeishuUsers() {
53+
return this.feishuUsers;
54+
}
55+
56+
public void setFeishuUsers(String feishuUsers) {
57+
this.feishuUsers = feishuUsers;
58+
if(feishuUsers != null){
59+
putQueryParameter("FeishuUsers", feishuUsers);
60+
}
61+
}
62+
63+
public Integer getUserType() {
64+
return this.userType;
65+
}
66+
67+
public void setUserType(Integer userType) {
68+
this.userType = userType;
69+
if(userType != null){
70+
putQueryParameter("UserType", userType.toString());
71+
}
72+
}
73+
74+
public String getUserGroupIds() {
75+
return this.userGroupIds;
76+
}
77+
78+
public void setUserGroupIds(String userGroupIds) {
79+
this.userGroupIds = userGroupIds;
80+
if(userGroupIds != null){
81+
putQueryParameter("UserGroupIds", userGroupIds);
82+
}
83+
}
84+
85+
public Boolean getIsAuthAdmin() {
86+
return this.isAuthAdmin;
87+
}
88+
89+
public void setIsAuthAdmin(Boolean isAuthAdmin) {
90+
this.isAuthAdmin = isAuthAdmin;
91+
if(isAuthAdmin != null){
92+
putQueryParameter("IsAuthAdmin", isAuthAdmin.toString());
93+
}
94+
}
95+
96+
@Override
97+
public Class<BatchAddFeishuUsersResponse> getResponseClass() {
98+
return BatchAddFeishuUsersResponse.class;
99+
}
100+
101+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
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.quickbi_public.model.v20220101;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.quickbi_public.transform.v20220101.BatchAddFeishuUsersResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class BatchAddFeishuUsersResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private Boolean success;
31+
32+
private Result result;
33+
34+
public String getRequestId() {
35+
return this.requestId;
36+
}
37+
38+
public void setRequestId(String requestId) {
39+
this.requestId = requestId;
40+
}
41+
42+
public Boolean getSuccess() {
43+
return this.success;
44+
}
45+
46+
public void setSuccess(Boolean success) {
47+
this.success = success;
48+
}
49+
50+
public Result getResult() {
51+
return this.result;
52+
}
53+
54+
public void setResult(Result result) {
55+
this.result = result;
56+
}
57+
58+
public static class Result {
59+
60+
private Integer okCount;
61+
62+
private Integer failCount;
63+
64+
private List<FailResultsItem> failResults;
65+
66+
public Integer getOkCount() {
67+
return this.okCount;
68+
}
69+
70+
public void setOkCount(Integer okCount) {
71+
this.okCount = okCount;
72+
}
73+
74+
public Integer getFailCount() {
75+
return this.failCount;
76+
}
77+
78+
public void setFailCount(Integer failCount) {
79+
this.failCount = failCount;
80+
}
81+
82+
public List<FailResultsItem> getFailResults() {
83+
return this.failResults;
84+
}
85+
86+
public void setFailResults(List<FailResultsItem> failResults) {
87+
this.failResults = failResults;
88+
}
89+
90+
public static class FailResultsItem {
91+
92+
private List<FailInfosItem> failInfos;
93+
94+
public List<FailInfosItem> getFailInfos() {
95+
return this.failInfos;
96+
}
97+
98+
public void setFailInfos(List<FailInfosItem> failInfos) {
99+
this.failInfos = failInfos;
100+
}
101+
102+
public static class FailInfosItem {
103+
104+
private String code;
105+
106+
private String input;
107+
108+
private String codeDesc;
109+
110+
public String getCode() {
111+
return this.code;
112+
}
113+
114+
public void setCode(String code) {
115+
this.code = code;
116+
}
117+
118+
public String getInput() {
119+
return this.input;
120+
}
121+
122+
public void setInput(String input) {
123+
this.input = input;
124+
}
125+
126+
public String getCodeDesc() {
127+
return this.codeDesc;
128+
}
129+
130+
public void setCodeDesc(String codeDesc) {
131+
this.codeDesc = codeDesc;
132+
}
133+
}
134+
}
135+
}
136+
137+
@Override
138+
public BatchAddFeishuUsersResponse getInstance(UnmarshallerContext context) {
139+
return BatchAddFeishuUsersResponseUnmarshaller.unmarshall(this, context);
140+
}
141+
142+
@Override
143+
public boolean checkShowJsonItemName() {
144+
return false;
145+
}
146+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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.quickbi_public.transform.v20220101;
16+
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
import com.aliyuncs.quickbi_public.model.v20220101.BatchAddFeishuUsersResponse;
21+
import com.aliyuncs.quickbi_public.model.v20220101.BatchAddFeishuUsersResponse.Result;
22+
import com.aliyuncs.quickbi_public.model.v20220101.BatchAddFeishuUsersResponse.Result.FailResultsItem;
23+
import com.aliyuncs.quickbi_public.model.v20220101.BatchAddFeishuUsersResponse.Result.FailResultsItem.FailInfosItem;
24+
import com.aliyuncs.transform.UnmarshallerContext;
25+
26+
27+
public class BatchAddFeishuUsersResponseUnmarshaller {
28+
29+
public static BatchAddFeishuUsersResponse unmarshall(BatchAddFeishuUsersResponse batchAddFeishuUsersResponse, UnmarshallerContext _ctx) {
30+
31+
batchAddFeishuUsersResponse.setRequestId(_ctx.stringValue("BatchAddFeishuUsersResponse.RequestId"));
32+
batchAddFeishuUsersResponse.setSuccess(_ctx.booleanValue("BatchAddFeishuUsersResponse.Success"));
33+
34+
Result result = new Result();
35+
result.setOkCount(_ctx.integerValue("BatchAddFeishuUsersResponse.Result.OkCount"));
36+
result.setFailCount(_ctx.integerValue("BatchAddFeishuUsersResponse.Result.FailCount"));
37+
38+
List<FailResultsItem> failResults = new ArrayList<FailResultsItem>();
39+
for (int i = 0; i < _ctx.lengthValue("BatchAddFeishuUsersResponse.Result.FailResults.Length"); i++) {
40+
FailResultsItem failResultsItem = new FailResultsItem();
41+
42+
List<FailInfosItem> failInfos = new ArrayList<FailInfosItem>();
43+
for (int j = 0; j < _ctx.lengthValue("BatchAddFeishuUsersResponse.Result.FailResults["+ i +"].FailInfos.Length"); j++) {
44+
FailInfosItem failInfosItem = new FailInfosItem();
45+
failInfosItem.setCode(_ctx.stringValue("BatchAddFeishuUsersResponse.Result.FailResults["+ i +"].FailInfos["+ j +"].Code"));
46+
failInfosItem.setInput(_ctx.stringValue("BatchAddFeishuUsersResponse.Result.FailResults["+ i +"].FailInfos["+ j +"].Input"));
47+
failInfosItem.setCodeDesc(_ctx.stringValue("BatchAddFeishuUsersResponse.Result.FailResults["+ i +"].FailInfos["+ j +"].CodeDesc"));
48+
49+
failInfos.add(failInfosItem);
50+
}
51+
failResultsItem.setFailInfos(failInfos);
52+
53+
failResults.add(failResultsItem);
54+
}
55+
result.setFailResults(failResults);
56+
batchAddFeishuUsersResponse.setResult(result);
57+
58+
return batchAddFeishuUsersResponse;
59+
}
60+
}

0 commit comments

Comments
 (0)