-
Notifications
You must be signed in to change notification settings - Fork 280
/
CiamClient.java
294 lines (266 loc) · 10.6 KB
/
CiamClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.ciam.v20220331;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.ciam.v20220331.models.*;
public class CiamClient extends AbstractClient{
private static String endpoint = "ciam.tencentcloudapi.com";
private static String service = "ciam";
private static String version = "2022-03-31";
public CiamClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public CiamClient(Credential credential, String region, ClientProfile profile) {
super(CiamClient.endpoint, CiamClient.version, credential, region, profile);
}
/**
*新建接口导入用户任务
* @param req CreateApiImportUserJobRequest
* @return CreateApiImportUserJobResponse
* @throws TencentCloudSDKException
*/
public CreateApiImportUserJobResponse CreateApiImportUserJob(CreateApiImportUserJobRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateApiImportUserJob", CreateApiImportUserJobResponse.class);
}
/**
*新建文件导出用户任务
* @param req CreateFileExportUserJobRequest
* @return CreateFileExportUserJobResponse
* @throws TencentCloudSDKException
*/
public CreateFileExportUserJobResponse CreateFileExportUserJob(CreateFileExportUserJobRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateFileExportUserJob", CreateFileExportUserJobResponse.class);
}
/**
*创建用户
* @param req CreateUserRequest
* @return CreateUserResponse
* @throws TencentCloudSDKException
*/
public CreateUserResponse CreateUser(CreateUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateUser", CreateUserResponse.class);
}
/**
*创建用户组
* @param req CreateUserGroupRequest
* @return CreateUserGroupResponse
* @throws TencentCloudSDKException
*/
public CreateUserGroupResponse CreateUserGroup(CreateUserGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateUserGroup", CreateUserGroupResponse.class);
}
/**
*创建用户目录
* @param req CreateUserStoreRequest
* @return CreateUserStoreResponse
* @throws TencentCloudSDKException
*/
public CreateUserStoreResponse CreateUserStore(CreateUserStoreRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateUserStore", CreateUserStoreResponse.class);
}
/**
*批量删除用户组
* @param req DeleteUserGroupsRequest
* @return DeleteUserGroupsResponse
* @throws TencentCloudSDKException
*/
public DeleteUserGroupsResponse DeleteUserGroups(DeleteUserGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteUserGroups", DeleteUserGroupsResponse.class);
}
/**
*删除用户目录
* @param req DeleteUserStoreRequest
* @return DeleteUserStoreResponse
* @throws TencentCloudSDKException
*/
public DeleteUserStoreResponse DeleteUserStore(DeleteUserStoreRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteUserStore", DeleteUserStoreResponse.class);
}
/**
*批量删除用户
* @param req DeleteUsersRequest
* @return DeleteUsersResponse
* @throws TencentCloudSDKException
*/
public DeleteUsersResponse DeleteUsers(DeleteUsersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteUsers", DeleteUsersResponse.class);
}
/**
*多条件查询用户信息
* @param req DescribeUserRequest
* @return DescribeUserResponse
* @throws TencentCloudSDKException
*/
public DescribeUserResponse DescribeUser(DescribeUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeUser", DescribeUserResponse.class);
}
/**
*根据ID查询用户信息
* @param req DescribeUserByIdRequest
* @return DescribeUserByIdResponse
* @throws TencentCloudSDKException
*/
public DescribeUserByIdResponse DescribeUserById(DescribeUserByIdRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeUserById", DescribeUserByIdResponse.class);
}
/**
*账号融合
* @param req LinkAccountRequest
* @return LinkAccountResponse
* @throws TencentCloudSDKException
*/
public LinkAccountResponse LinkAccount(LinkAccountRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "LinkAccount", LinkAccountResponse.class);
}
/**
*查询任务详情
* @param req ListJobsRequest
* @return ListJobsResponse
* @throws TencentCloudSDKException
*/
public ListJobsResponse ListJobs(ListJobsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListJobs", ListJobsResponse.class);
}
/**
*查询日志信息
* @param req ListLogMessageByConditionRequest
* @return ListLogMessageByConditionResponse
* @throws TencentCloudSDKException
*/
public ListLogMessageByConditionResponse ListLogMessageByCondition(ListLogMessageByConditionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListLogMessageByCondition", ListLogMessageByConditionResponse.class);
}
/**
*查询用户列表
* @param req ListUserRequest
* @return ListUserResponse
* @throws TencentCloudSDKException
*/
public ListUserResponse ListUser(ListUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListUser", ListUserResponse.class);
}
/**
*根据属性查询用户列表
* @param req ListUserByPropertyRequest
* @return ListUserByPropertyResponse
* @throws TencentCloudSDKException
*/
public ListUserByPropertyResponse ListUserByProperty(ListUserByPropertyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListUserByProperty", ListUserByPropertyResponse.class);
}
/**
*查询用户组列表
* @param req ListUserGroupsRequest
* @return ListUserGroupsResponse
* @throws TencentCloudSDKException
*/
public ListUserGroupsResponse ListUserGroups(ListUserGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListUserGroups", ListUserGroupsResponse.class);
}
/**
*查询用户目录列表
* @param req ListUserStoreRequest
* @return ListUserStoreResponse
* @throws TencentCloudSDKException
*/
public ListUserStoreResponse ListUserStore(ListUserStoreRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListUserStore", ListUserStoreResponse.class);
}
/**
*重置用户密码
* @param req ResetPasswordRequest
* @return ResetPasswordResponse
* @throws TencentCloudSDKException
*/
public ResetPasswordResponse ResetPassword(ResetPasswordRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ResetPassword", ResetPasswordResponse.class);
}
/**
*设置用户密码
* @param req SetPasswordRequest
* @return SetPasswordResponse
* @throws TencentCloudSDKException
*/
public SetPasswordResponse SetPassword(SetPasswordRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SetPassword", SetPasswordResponse.class);
}
/**
*更新用户
* @param req UpdateUserRequest
* @return UpdateUserResponse
* @throws TencentCloudSDKException
*/
public UpdateUserResponse UpdateUser(UpdateUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateUser", UpdateUserResponse.class);
}
/**
*更新用户组
* @param req UpdateUserGroupRequest
* @return UpdateUserGroupResponse
* @throws TencentCloudSDKException
*/
public UpdateUserGroupResponse UpdateUserGroup(UpdateUserGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateUserGroup", UpdateUserGroupResponse.class);
}
/**
*更新用户状态
* @param req UpdateUserStatusRequest
* @return UpdateUserStatusResponse
* @throws TencentCloudSDKException
*/
public UpdateUserStatusResponse UpdateUserStatus(UpdateUserStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateUserStatus", UpdateUserStatusResponse.class);
}
/**
*更新用户目录
* @param req UpdateUserStoreRequest
* @return UpdateUserStoreResponse
* @throws TencentCloudSDKException
*/
public UpdateUserStoreResponse UpdateUserStore(UpdateUserStoreRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateUserStore", UpdateUserStoreResponse.class);
}
}