tencentcloud-sdk-ciam 1.0.333 → 1.0.336
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220331/client.rb +288 -0
- data/lib/v20220331/models.rb +1275 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5e9dbfc0b494415edfb95e70c12deec4e904dae
|
4
|
+
data.tar.gz: 976839ac7725e7444e54c0bdd6e9049aeeb8253d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f5e589594541f7d8bd5e34d0486f2215eac8a031d1cbf1ae696a8c0a0fd49a6e71d2daa16630d5152bec63cfcb4ed76fefa4c8799ccd9d46a794a7197b68471
|
7
|
+
data.tar.gz: c07df3e7c99a70f797060a8d5ef12219fa2b11b898dae1cc5c597ad19692cbb3e324f60fe0c7b6a1aaf99194ebdfe5d46757d9eb12ea0ff5ef9bb8916492579b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.336
|
data/lib/v20220331/client.rb
CHANGED
@@ -29,6 +29,222 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 新建接口导入用户任务
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateApiImportUserJob.
|
35
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::CreateApiImportUserJobRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::CreateApiImportUserJobResponse`
|
37
|
+
def CreateApiImportUserJob(request)
|
38
|
+
body = send_request('CreateApiImportUserJob', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateApiImportUserJobResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 新建文件导出用户任务
|
57
|
+
|
58
|
+
# @param request: Request instance for CreateFileExportUserJob.
|
59
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::CreateFileExportUserJobRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::CreateFileExportUserJobResponse`
|
61
|
+
def CreateFileExportUserJob(request)
|
62
|
+
body = send_request('CreateFileExportUserJob', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateFileExportUserJobResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
# 创建用户
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateUser.
|
83
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::CreateUserRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::CreateUserResponse`
|
85
|
+
def CreateUser(request)
|
86
|
+
body = send_request('CreateUser', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateUserResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
104
|
+
# 批量删除用户
|
105
|
+
|
106
|
+
# @param request: Request instance for DeleteUsers.
|
107
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::DeleteUsersRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::DeleteUsersResponse`
|
109
|
+
def DeleteUsers(request)
|
110
|
+
body = send_request('DeleteUsers', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = DeleteUsersResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
128
|
+
# 根据ID查询用户信息
|
129
|
+
|
130
|
+
# @param request: Request instance for DescribeUserById.
|
131
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::DescribeUserByIdRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::DescribeUserByIdResponse`
|
133
|
+
def DescribeUserById(request)
|
134
|
+
body = send_request('DescribeUserById', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DescribeUserByIdResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
# 账号融合
|
153
|
+
|
154
|
+
# @param request: Request instance for LinkAccount.
|
155
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::LinkAccountRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::LinkAccountResponse`
|
157
|
+
def LinkAccount(request)
|
158
|
+
body = send_request('LinkAccount', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = LinkAccountResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
176
|
+
# 查询任务详情
|
177
|
+
|
178
|
+
# @param request: Request instance for ListJobs.
|
179
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::ListJobsRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::ListJobsResponse`
|
181
|
+
def ListJobs(request)
|
182
|
+
body = send_request('ListJobs', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = ListJobsResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
200
|
+
# 查询用户列表
|
201
|
+
|
202
|
+
# @param request: Request instance for ListUser.
|
203
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::ListUserRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::ListUserResponse`
|
205
|
+
def ListUser(request)
|
206
|
+
body = send_request('ListUser', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = ListUserResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
224
|
+
# 根据属性查询用户列表
|
225
|
+
|
226
|
+
# @param request: Request instance for ListUserByProperty.
|
227
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::ListUserByPropertyRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::ListUserByPropertyResponse`
|
229
|
+
def ListUserByProperty(request)
|
230
|
+
body = send_request('ListUserByProperty', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = ListUserByPropertyResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
32
248
|
# 重置用户密码
|
33
249
|
|
34
250
|
# @param request: Request instance for ResetPassword.
|
@@ -53,6 +269,78 @@ module TencentCloud
|
|
53
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
270
|
end
|
55
271
|
|
272
|
+
# 设置用户密码
|
273
|
+
|
274
|
+
# @param request: Request instance for SetPassword.
|
275
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::SetPasswordRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::SetPasswordResponse`
|
277
|
+
def SetPassword(request)
|
278
|
+
body = send_request('SetPassword', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = SetPasswordResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
296
|
+
# 更新用户
|
297
|
+
|
298
|
+
# @param request: Request instance for UpdateUser.
|
299
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::UpdateUserRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::UpdateUserResponse`
|
301
|
+
def UpdateUser(request)
|
302
|
+
body = send_request('UpdateUser', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = UpdateUserResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
320
|
+
# 更新用户状态
|
321
|
+
|
322
|
+
# @param request: Request instance for UpdateUserStatus.
|
323
|
+
# @type request: :class:`Tencentcloud::ciam::V20220331::UpdateUserStatusRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::ciam::V20220331::UpdateUserStatusResponse`
|
325
|
+
def UpdateUserStatus(request)
|
326
|
+
body = send_request('UpdateUserStatus', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = UpdateUserStatusResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
56
344
|
|
57
345
|
end
|
58
346
|
end
|