tencentcloud-sdk-organization 3.0.451 → 3.0.453
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210331/client.rb +290 -2
- data/lib/v20210331/models.rb +958 -104
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f6af9d102c27e3601b79cea66f41f0f48c3a20a
|
4
|
+
data.tar.gz: fa4e1217db36a4dd3cc0e58fd7a5c64a852858a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4790e3ce342a2c032ab53491236f40ca5bc0ae09254e15bec825458dc4cc5342c76d59e4c01aa27881c7d0f659ef5c5b8f09273648dc6ac6ef185ef5713aec4
|
7
|
+
data.tar.gz: 9b4b81cf1bda7937b1e4de1c14ad777515cf1b18d72b9aa25899b75ae2f87dd0b97026011887f0b034e9ab48d9427b1ea5670e226cfd3cef186e9dcb66e8d443
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.453
|
data/lib/v20210331/client.rb
CHANGED
@@ -29,7 +29,31 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
#
|
32
|
+
# 添加企业组织节点
|
33
|
+
|
34
|
+
# @param request: Request instance for AddOrganizationNode.
|
35
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::AddOrganizationNodeRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::AddOrganizationNodeResponse`
|
37
|
+
def AddOrganizationNode(request)
|
38
|
+
body = send_request('AddOrganizationNode', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AddOrganizationNodeResponse.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
|
+
# 绑定组织成员和组织管理员子账号的授权关系
|
33
57
|
|
34
58
|
# @param request: Request instance for BindOrganizationMemberAuthAccount.
|
35
59
|
# @type request: :class:`Tencentcloud::organization::V20210331::BindOrganizationMemberAuthAccountRequest`
|
@@ -53,6 +77,30 @@ module TencentCloud
|
|
53
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
78
|
end
|
55
79
|
|
80
|
+
# 取消组织成员和子账号的授权绑定关系
|
81
|
+
|
82
|
+
# @param request: Request instance for CancelOrganizationMemberAuthAccount.
|
83
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::CancelOrganizationMemberAuthAccountRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::CancelOrganizationMemberAuthAccountResponse`
|
85
|
+
def CancelOrganizationMemberAuthAccount(request)
|
86
|
+
body = send_request('CancelOrganizationMemberAuthAccount', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CancelOrganizationMemberAuthAccountResponse.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
|
+
|
56
104
|
# 创建组织成员
|
57
105
|
|
58
106
|
# @param request: Request instance for CreateOrganizationMember.
|
@@ -77,7 +125,7 @@ module TencentCloud
|
|
77
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
126
|
end
|
79
127
|
|
80
|
-
#
|
128
|
+
# 创建组织成员访问授权策略
|
81
129
|
|
82
130
|
# @param request: Request instance for CreateOrganizationMemberPolicy.
|
83
131
|
# @type request: :class:`Tencentcloud::organization::V20210331::CreateOrganizationMemberPolicyRequest`
|
@@ -101,6 +149,54 @@ module TencentCloud
|
|
101
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
150
|
end
|
103
151
|
|
152
|
+
# 批量删除企业组织成员
|
153
|
+
|
154
|
+
# @param request: Request instance for DeleteOrganizationMembers.
|
155
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DeleteOrganizationMembersRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DeleteOrganizationMembersResponse`
|
157
|
+
def DeleteOrganizationMembers(request)
|
158
|
+
body = send_request('DeleteOrganizationMembers', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DeleteOrganizationMembersResponse.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 DeleteOrganizationNodes.
|
179
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DeleteOrganizationNodesRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DeleteOrganizationNodesResponse`
|
181
|
+
def DeleteOrganizationNodes(request)
|
182
|
+
body = send_request('DeleteOrganizationNodes', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DeleteOrganizationNodesResponse.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
|
+
|
104
200
|
# 获取企业组织信息
|
105
201
|
|
106
202
|
# @param request: Request instance for DescribeOrganization.
|
@@ -125,6 +221,102 @@ module TencentCloud
|
|
125
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
222
|
end
|
127
223
|
|
224
|
+
# 获取可创建组织成员的认证主体关系列表
|
225
|
+
|
226
|
+
# @param request: Request instance for DescribeOrganizationAuthNode.
|
227
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationAuthNodeRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationAuthNodeResponse`
|
229
|
+
def DescribeOrganizationAuthNode(request)
|
230
|
+
body = send_request('DescribeOrganizationAuthNode', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DescribeOrganizationAuthNodeResponse.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
|
+
|
248
|
+
# 获取组织成员被绑定的子账号列表
|
249
|
+
|
250
|
+
# @param request: Request instance for DescribeOrganizationMemberAuthAccounts.
|
251
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMemberAuthAccountsRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMemberAuthAccountsResponse`
|
253
|
+
def DescribeOrganizationMemberAuthAccounts(request)
|
254
|
+
body = send_request('DescribeOrganizationMemberAuthAccounts', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = DescribeOrganizationMemberAuthAccountsResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
272
|
+
# 获取组织成员可被管理的身份列表
|
273
|
+
|
274
|
+
# @param request: Request instance for DescribeOrganizationMemberAuthIdentities.
|
275
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMemberAuthIdentitiesRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMemberAuthIdentitiesResponse`
|
277
|
+
def DescribeOrganizationMemberAuthIdentities(request)
|
278
|
+
body = send_request('DescribeOrganizationMemberAuthIdentities', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = DescribeOrganizationMemberAuthIdentitiesResponse.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 DescribeOrganizationMemberPolicies.
|
299
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMemberPoliciesRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMemberPoliciesResponse`
|
301
|
+
def DescribeOrganizationMemberPolicies(request)
|
302
|
+
body = send_request('DescribeOrganizationMemberPolicies', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DescribeOrganizationMemberPoliciesResponse.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
|
+
|
128
320
|
# 获取企业组织成员列表
|
129
321
|
|
130
322
|
# @param request: Request instance for DescribeOrganizationMembers.
|
@@ -149,6 +341,102 @@ module TencentCloud
|
|
149
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
342
|
end
|
151
343
|
|
344
|
+
# 获取组织节点列表
|
345
|
+
|
346
|
+
# @param request: Request instance for DescribeOrganizationNodes.
|
347
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationNodesRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationNodesResponse`
|
349
|
+
def DescribeOrganizationNodes(request)
|
350
|
+
body = send_request('DescribeOrganizationNodes', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = DescribeOrganizationNodesResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
368
|
+
# 获取组织成员访问身份列表
|
369
|
+
|
370
|
+
# @param request: Request instance for ListOrganizationIdentity.
|
371
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListOrganizationIdentityRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListOrganizationIdentityResponse`
|
373
|
+
def ListOrganizationIdentity(request)
|
374
|
+
body = send_request('ListOrganizationIdentity', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = ListOrganizationIdentityResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
392
|
+
# 移动成员到指定企业组织节点
|
393
|
+
|
394
|
+
# @param request: Request instance for MoveOrganizationNodeMembers.
|
395
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::MoveOrganizationNodeMembersRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::MoveOrganizationNodeMembersResponse`
|
397
|
+
def MoveOrganizationNodeMembers(request)
|
398
|
+
body = send_request('MoveOrganizationNodeMembers', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = MoveOrganizationNodeMembersResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
416
|
+
# 更新企业组织节点
|
417
|
+
|
418
|
+
# @param request: Request instance for UpdateOrganizationNode.
|
419
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::UpdateOrganizationNodeRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::UpdateOrganizationNodeResponse`
|
421
|
+
def UpdateOrganizationNode(request)
|
422
|
+
body = send_request('UpdateOrganizationNode', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = UpdateOrganizationNodeResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
152
440
|
|
153
441
|
end
|
154
442
|
end
|