tencentcloud-sdk-organization 3.0.883 → 3.0.885
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 +1210 -58
- data/lib/v20210331/models.rb +3834 -380
- metadata +2 -2
data/lib/v20210331/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 添加SAML签名证书
|
57
|
+
|
58
|
+
# @param request: Request instance for AddExternalSAMLIdPCertificate.
|
59
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::AddExternalSAMLIdPCertificateRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::AddExternalSAMLIdPCertificateResponse`
|
61
|
+
def AddExternalSAMLIdPCertificate(request)
|
62
|
+
body = send_request('AddExternalSAMLIdPCertificate', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = AddExternalSAMLIdPCertificateResponse.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
|
+
|
56
80
|
# 添加组织成员邮箱
|
57
81
|
|
58
82
|
# @param request: Request instance for AddOrganizationMemberEmail.
|
@@ -101,6 +125,30 @@ module TencentCloud
|
|
101
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
126
|
end
|
103
127
|
|
128
|
+
# 为权限配置添加策略
|
129
|
+
|
130
|
+
# @param request: Request instance for AddPermissionPolicyToRoleConfiguration.
|
131
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::AddPermissionPolicyToRoleConfigurationRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::AddPermissionPolicyToRoleConfigurationResponse`
|
133
|
+
def AddPermissionPolicyToRoleConfiguration(request)
|
134
|
+
body = send_request('AddPermissionPolicyToRoleConfiguration', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = AddPermissionPolicyToRoleConfigurationResponse.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
|
+
|
104
152
|
# 创建共享单元。
|
105
153
|
|
106
154
|
# @param request: Request instance for AddShareUnit.
|
@@ -173,6 +221,30 @@ module TencentCloud
|
|
173
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
222
|
end
|
175
223
|
|
224
|
+
# 为用户组添加用户
|
225
|
+
|
226
|
+
# @param request: Request instance for AddUserToGroup.
|
227
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::AddUserToGroupRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::AddUserToGroupResponse`
|
229
|
+
def AddUserToGroup(request)
|
230
|
+
body = send_request('AddUserToGroup', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = AddUserToGroupResponse.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
|
+
|
176
248
|
# 绑定策略
|
177
249
|
|
178
250
|
# @param request: Request instance for AttachPolicy.
|
@@ -269,6 +341,54 @@ module TencentCloud
|
|
269
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
342
|
end
|
271
343
|
|
344
|
+
# 清空SAML身份提供商配置信息
|
345
|
+
|
346
|
+
# @param request: Request instance for ClearExternalSAMLIdentityProvider.
|
347
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ClearExternalSAMLIdentityProviderRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ClearExternalSAMLIdentityProviderResponse`
|
349
|
+
def ClearExternalSAMLIdentityProvider(request)
|
350
|
+
body = send_request('ClearExternalSAMLIdentityProvider', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = ClearExternalSAMLIdentityProviderResponse.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 CreateGroup.
|
371
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::CreateGroupRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateGroupResponse`
|
373
|
+
def CreateGroup(request)
|
374
|
+
body = send_request('CreateGroup', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = CreateGroupResponse.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
|
+
|
272
392
|
# 添加集团服务委派管理员
|
273
393
|
|
274
394
|
# @param request: Request instance for CreateOrgServiceAssign.
|
@@ -461,6 +581,102 @@ module TencentCloud
|
|
461
581
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
582
|
end
|
463
583
|
|
584
|
+
# 在成员账号上授权
|
585
|
+
|
586
|
+
# @param request: Request instance for CreateRoleAssignment.
|
587
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::CreateRoleAssignmentRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateRoleAssignmentResponse`
|
589
|
+
def CreateRoleAssignment(request)
|
590
|
+
body = send_request('CreateRoleAssignment', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = CreateRoleAssignmentResponse.new
|
594
|
+
model.deserialize(response['Response'])
|
595
|
+
model
|
596
|
+
else
|
597
|
+
code = response['Response']['Error']['Code']
|
598
|
+
message = response['Response']['Error']['Message']
|
599
|
+
reqid = response['Response']['RequestId']
|
600
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
+
end
|
602
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
+
raise e
|
604
|
+
rescue StandardError => e
|
605
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
+
end
|
607
|
+
|
608
|
+
# 创建权限配置
|
609
|
+
|
610
|
+
# @param request: Request instance for CreateRoleConfiguration.
|
611
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::CreateRoleConfigurationRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateRoleConfigurationResponse`
|
613
|
+
def CreateRoleConfiguration(request)
|
614
|
+
body = send_request('CreateRoleConfiguration', request.serialize)
|
615
|
+
response = JSON.parse(body)
|
616
|
+
if response['Response'].key?('Error') == false
|
617
|
+
model = CreateRoleConfigurationResponse.new
|
618
|
+
model.deserialize(response['Response'])
|
619
|
+
model
|
620
|
+
else
|
621
|
+
code = response['Response']['Error']['Code']
|
622
|
+
message = response['Response']['Error']['Message']
|
623
|
+
reqid = response['Response']['RequestId']
|
624
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
625
|
+
end
|
626
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
627
|
+
raise e
|
628
|
+
rescue StandardError => e
|
629
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
|
+
end
|
631
|
+
|
632
|
+
# 创建用户
|
633
|
+
|
634
|
+
# @param request: Request instance for CreateUser.
|
635
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::CreateUserRequest`
|
636
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateUserResponse`
|
637
|
+
def CreateUser(request)
|
638
|
+
body = send_request('CreateUser', request.serialize)
|
639
|
+
response = JSON.parse(body)
|
640
|
+
if response['Response'].key?('Error') == false
|
641
|
+
model = CreateUserResponse.new
|
642
|
+
model.deserialize(response['Response'])
|
643
|
+
model
|
644
|
+
else
|
645
|
+
code = response['Response']['Error']['Code']
|
646
|
+
message = response['Response']['Error']['Message']
|
647
|
+
reqid = response['Response']['RequestId']
|
648
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
+
end
|
650
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
+
raise e
|
652
|
+
rescue StandardError => e
|
653
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
+
end
|
655
|
+
|
656
|
+
# 创建子用户同步任务
|
657
|
+
|
658
|
+
# @param request: Request instance for CreateUserSyncProvisioning.
|
659
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::CreateUserSyncProvisioningRequest`
|
660
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateUserSyncProvisioningResponse`
|
661
|
+
def CreateUserSyncProvisioning(request)
|
662
|
+
body = send_request('CreateUserSyncProvisioning', request.serialize)
|
663
|
+
response = JSON.parse(body)
|
664
|
+
if response['Response'].key?('Error') == false
|
665
|
+
model = CreateUserSyncProvisioningResponse.new
|
666
|
+
model.deserialize(response['Response'])
|
667
|
+
model
|
668
|
+
else
|
669
|
+
code = response['Response']['Error']['Code']
|
670
|
+
message = response['Response']['Error']['Message']
|
671
|
+
reqid = response['Response']['RequestId']
|
672
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
+
end
|
674
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
+
raise e
|
676
|
+
rescue StandardError => e
|
677
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
+
end
|
679
|
+
|
464
680
|
# 删除成员账号
|
465
681
|
|
466
682
|
# @param request: Request instance for DeleteAccount.
|
@@ -485,6 +701,30 @@ module TencentCloud
|
|
485
701
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
702
|
end
|
487
703
|
|
704
|
+
# 删除用户组
|
705
|
+
|
706
|
+
# @param request: Request instance for DeleteGroup.
|
707
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DeleteGroupRequest`
|
708
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DeleteGroupResponse`
|
709
|
+
def DeleteGroup(request)
|
710
|
+
body = send_request('DeleteGroup', request.serialize)
|
711
|
+
response = JSON.parse(body)
|
712
|
+
if response['Response'].key?('Error') == false
|
713
|
+
model = DeleteGroupResponse.new
|
714
|
+
model.deserialize(response['Response'])
|
715
|
+
model
|
716
|
+
else
|
717
|
+
code = response['Response']['Error']['Code']
|
718
|
+
message = response['Response']['Error']['Message']
|
719
|
+
reqid = response['Response']['RequestId']
|
720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
+
end
|
722
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
+
raise e
|
724
|
+
rescue StandardError => e
|
725
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
+
end
|
727
|
+
|
488
728
|
# 删除集团服务委派管理员
|
489
729
|
|
490
730
|
# @param request: Request instance for DeleteOrgServiceAssign.
|
@@ -677,6 +917,54 @@ module TencentCloud
|
|
677
917
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
918
|
end
|
679
919
|
|
920
|
+
# 移除成员账号上的授权
|
921
|
+
|
922
|
+
# @param request: Request instance for DeleteRoleAssignment.
|
923
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DeleteRoleAssignmentRequest`
|
924
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DeleteRoleAssignmentResponse`
|
925
|
+
def DeleteRoleAssignment(request)
|
926
|
+
body = send_request('DeleteRoleAssignment', request.serialize)
|
927
|
+
response = JSON.parse(body)
|
928
|
+
if response['Response'].key?('Error') == false
|
929
|
+
model = DeleteRoleAssignmentResponse.new
|
930
|
+
model.deserialize(response['Response'])
|
931
|
+
model
|
932
|
+
else
|
933
|
+
code = response['Response']['Error']['Code']
|
934
|
+
message = response['Response']['Error']['Message']
|
935
|
+
reqid = response['Response']['RequestId']
|
936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
937
|
+
end
|
938
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
939
|
+
raise e
|
940
|
+
rescue StandardError => e
|
941
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
|
+
end
|
943
|
+
|
944
|
+
# 删除权限配置信息
|
945
|
+
|
946
|
+
# @param request: Request instance for DeleteRoleConfiguration.
|
947
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DeleteRoleConfigurationRequest`
|
948
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DeleteRoleConfigurationResponse`
|
949
|
+
def DeleteRoleConfiguration(request)
|
950
|
+
body = send_request('DeleteRoleConfiguration', request.serialize)
|
951
|
+
response = JSON.parse(body)
|
952
|
+
if response['Response'].key?('Error') == false
|
953
|
+
model = DeleteRoleConfigurationResponse.new
|
954
|
+
model.deserialize(response['Response'])
|
955
|
+
model
|
956
|
+
else
|
957
|
+
code = response['Response']['Error']['Code']
|
958
|
+
message = response['Response']['Error']['Message']
|
959
|
+
reqid = response['Response']['RequestId']
|
960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
961
|
+
end
|
962
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
963
|
+
raise e
|
964
|
+
rescue StandardError => e
|
965
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
|
+
end
|
967
|
+
|
680
968
|
# 删除共享单元。
|
681
969
|
|
682
970
|
# @param request: Request instance for DeleteShareUnit.
|
@@ -749,6 +1037,54 @@ module TencentCloud
|
|
749
1037
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
1038
|
end
|
751
1039
|
|
1040
|
+
# 删除用户
|
1041
|
+
|
1042
|
+
# @param request: Request instance for DeleteUser.
|
1043
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DeleteUserRequest`
|
1044
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DeleteUserResponse`
|
1045
|
+
def DeleteUser(request)
|
1046
|
+
body = send_request('DeleteUser', request.serialize)
|
1047
|
+
response = JSON.parse(body)
|
1048
|
+
if response['Response'].key?('Error') == false
|
1049
|
+
model = DeleteUserResponse.new
|
1050
|
+
model.deserialize(response['Response'])
|
1051
|
+
model
|
1052
|
+
else
|
1053
|
+
code = response['Response']['Error']['Code']
|
1054
|
+
message = response['Response']['Error']['Message']
|
1055
|
+
reqid = response['Response']['RequestId']
|
1056
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1057
|
+
end
|
1058
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1059
|
+
raise e
|
1060
|
+
rescue StandardError => e
|
1061
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# 删除子用户同步任务
|
1065
|
+
|
1066
|
+
# @param request: Request instance for DeleteUserSyncProvisioning.
|
1067
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DeleteUserSyncProvisioningRequest`
|
1068
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DeleteUserSyncProvisioningResponse`
|
1069
|
+
def DeleteUserSyncProvisioning(request)
|
1070
|
+
body = send_request('DeleteUserSyncProvisioning', request.serialize)
|
1071
|
+
response = JSON.parse(body)
|
1072
|
+
if response['Response'].key?('Error') == false
|
1073
|
+
model = DeleteUserSyncProvisioningResponse.new
|
1074
|
+
model.deserialize(response['Response'])
|
1075
|
+
model
|
1076
|
+
else
|
1077
|
+
code = response['Response']['Error']['Code']
|
1078
|
+
message = response['Response']['Error']['Message']
|
1079
|
+
reqid = response['Response']['RequestId']
|
1080
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1081
|
+
end
|
1082
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1083
|
+
raise e
|
1084
|
+
rescue StandardError => e
|
1085
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1086
|
+
end
|
1087
|
+
|
752
1088
|
# 查询目标关联的有效策略
|
753
1089
|
|
754
1090
|
# @param request: Request instance for DescribeEffectivePolicy.
|
@@ -773,6 +1109,30 @@ module TencentCloud
|
|
773
1109
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
1110
|
end
|
775
1111
|
|
1112
|
+
# 获取cam身份中心服务信息
|
1113
|
+
|
1114
|
+
# @param request: Request instance for DescribeIdentityCenter.
|
1115
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DescribeIdentityCenterRequest`
|
1116
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DescribeIdentityCenterResponse`
|
1117
|
+
def DescribeIdentityCenter(request)
|
1118
|
+
body = send_request('DescribeIdentityCenter', request.serialize)
|
1119
|
+
response = JSON.parse(body)
|
1120
|
+
if response['Response'].key?('Error') == false
|
1121
|
+
model = DescribeIdentityCenterResponse.new
|
1122
|
+
model.deserialize(response['Response'])
|
1123
|
+
model
|
1124
|
+
else
|
1125
|
+
code = response['Response']['Error']['Code']
|
1126
|
+
message = response['Response']['Error']['Message']
|
1127
|
+
reqid = response['Response']['RequestId']
|
1128
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1129
|
+
end
|
1130
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1131
|
+
raise e
|
1132
|
+
rescue StandardError => e
|
1133
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
|
+
end
|
1135
|
+
|
776
1136
|
# 获取企业组织信息
|
777
1137
|
|
778
1138
|
# @param request: Request instance for DescribeOrganization.
|
@@ -1229,7 +1589,31 @@ module TencentCloud
|
|
1229
1589
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
1590
|
end
|
1231
1591
|
|
1232
|
-
#
|
1592
|
+
# 解除权限配置在成员账号上的部署
|
1593
|
+
|
1594
|
+
# @param request: Request instance for DismantleRoleConfiguration.
|
1595
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DismantleRoleConfigurationRequest`
|
1596
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DismantleRoleConfigurationResponse`
|
1597
|
+
def DismantleRoleConfiguration(request)
|
1598
|
+
body = send_request('DismantleRoleConfiguration', request.serialize)
|
1599
|
+
response = JSON.parse(body)
|
1600
|
+
if response['Response'].key?('Error') == false
|
1601
|
+
model = DismantleRoleConfigurationResponse.new
|
1602
|
+
model.deserialize(response['Response'])
|
1603
|
+
model
|
1604
|
+
else
|
1605
|
+
code = response['Response']['Error']['Code']
|
1606
|
+
message = response['Response']['Error']['Message']
|
1607
|
+
reqid = response['Response']['RequestId']
|
1608
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1609
|
+
end
|
1610
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1611
|
+
raise e
|
1612
|
+
rescue StandardError => e
|
1613
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# 启用策略类型
|
1233
1617
|
|
1234
1618
|
# @param request: Request instance for EnablePolicyType.
|
1235
1619
|
# @type request: :class:`Tencentcloud::organization::V20210331::EnablePolicyTypeRequest`
|
@@ -1238,7 +1622,535 @@ module TencentCloud
|
|
1238
1622
|
body = send_request('EnablePolicyType', request.serialize)
|
1239
1623
|
response = JSON.parse(body)
|
1240
1624
|
if response['Response'].key?('Error') == false
|
1241
|
-
model = EnablePolicyTypeResponse.new
|
1625
|
+
model = EnablePolicyTypeResponse.new
|
1626
|
+
model.deserialize(response['Response'])
|
1627
|
+
model
|
1628
|
+
else
|
1629
|
+
code = response['Response']['Error']['Code']
|
1630
|
+
message = response['Response']['Error']['Message']
|
1631
|
+
reqid = response['Response']['RequestId']
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1633
|
+
end
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1635
|
+
raise e
|
1636
|
+
rescue StandardError => e
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
|
+
end
|
1639
|
+
|
1640
|
+
# 查询SAML身份提供商配置信息
|
1641
|
+
|
1642
|
+
# @param request: Request instance for GetExternalSAMLIdentityProvider.
|
1643
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::GetExternalSAMLIdentityProviderRequest`
|
1644
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::GetExternalSAMLIdentityProviderResponse`
|
1645
|
+
def GetExternalSAMLIdentityProvider(request)
|
1646
|
+
body = send_request('GetExternalSAMLIdentityProvider', request.serialize)
|
1647
|
+
response = JSON.parse(body)
|
1648
|
+
if response['Response'].key?('Error') == false
|
1649
|
+
model = GetExternalSAMLIdentityProviderResponse.new
|
1650
|
+
model.deserialize(response['Response'])
|
1651
|
+
model
|
1652
|
+
else
|
1653
|
+
code = response['Response']['Error']['Code']
|
1654
|
+
message = response['Response']['Error']['Message']
|
1655
|
+
reqid = response['Response']['RequestId']
|
1656
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1657
|
+
end
|
1658
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1659
|
+
raise e
|
1660
|
+
rescue StandardError => e
|
1661
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1662
|
+
end
|
1663
|
+
|
1664
|
+
# 查询用户组信息
|
1665
|
+
|
1666
|
+
# @param request: Request instance for GetGroup.
|
1667
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::GetGroupRequest`
|
1668
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::GetGroupResponse`
|
1669
|
+
def GetGroup(request)
|
1670
|
+
body = send_request('GetGroup', request.serialize)
|
1671
|
+
response = JSON.parse(body)
|
1672
|
+
if response['Response'].key?('Error') == false
|
1673
|
+
model = GetGroupResponse.new
|
1674
|
+
model.deserialize(response['Response'])
|
1675
|
+
model
|
1676
|
+
else
|
1677
|
+
code = response['Response']['Error']['Code']
|
1678
|
+
message = response['Response']['Error']['Message']
|
1679
|
+
reqid = response['Response']['RequestId']
|
1680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1681
|
+
end
|
1682
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1683
|
+
raise e
|
1684
|
+
rescue StandardError => e
|
1685
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1686
|
+
end
|
1687
|
+
|
1688
|
+
# 查询用户同步异步任务的状态
|
1689
|
+
|
1690
|
+
# @param request: Request instance for GetProvisioningTaskStatus.
|
1691
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::GetProvisioningTaskStatusRequest`
|
1692
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::GetProvisioningTaskStatusResponse`
|
1693
|
+
def GetProvisioningTaskStatus(request)
|
1694
|
+
body = send_request('GetProvisioningTaskStatus', request.serialize)
|
1695
|
+
response = JSON.parse(body)
|
1696
|
+
if response['Response'].key?('Error') == false
|
1697
|
+
model = GetProvisioningTaskStatusResponse.new
|
1698
|
+
model.deserialize(response['Response'])
|
1699
|
+
model
|
1700
|
+
else
|
1701
|
+
code = response['Response']['Error']['Code']
|
1702
|
+
message = response['Response']['Error']['Message']
|
1703
|
+
reqid = response['Response']['RequestId']
|
1704
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1705
|
+
end
|
1706
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1707
|
+
raise e
|
1708
|
+
rescue StandardError => e
|
1709
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
# 查询权限配置信息
|
1713
|
+
|
1714
|
+
# @param request: Request instance for GetRoleConfiguration.
|
1715
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::GetRoleConfigurationRequest`
|
1716
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::GetRoleConfigurationResponse`
|
1717
|
+
def GetRoleConfiguration(request)
|
1718
|
+
body = send_request('GetRoleConfiguration', request.serialize)
|
1719
|
+
response = JSON.parse(body)
|
1720
|
+
if response['Response'].key?('Error') == false
|
1721
|
+
model = GetRoleConfigurationResponse.new
|
1722
|
+
model.deserialize(response['Response'])
|
1723
|
+
model
|
1724
|
+
else
|
1725
|
+
code = response['Response']['Error']['Code']
|
1726
|
+
message = response['Response']['Error']['Message']
|
1727
|
+
reqid = response['Response']['RequestId']
|
1728
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1729
|
+
end
|
1730
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1731
|
+
raise e
|
1732
|
+
rescue StandardError => e
|
1733
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
# 查询异步任务的状态
|
1737
|
+
|
1738
|
+
# @param request: Request instance for GetTaskStatus.
|
1739
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::GetTaskStatusRequest`
|
1740
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::GetTaskStatusResponse`
|
1741
|
+
def GetTaskStatus(request)
|
1742
|
+
body = send_request('GetTaskStatus', request.serialize)
|
1743
|
+
response = JSON.parse(body)
|
1744
|
+
if response['Response'].key?('Error') == false
|
1745
|
+
model = GetTaskStatusResponse.new
|
1746
|
+
model.deserialize(response['Response'])
|
1747
|
+
model
|
1748
|
+
else
|
1749
|
+
code = response['Response']['Error']['Code']
|
1750
|
+
message = response['Response']['Error']['Message']
|
1751
|
+
reqid = response['Response']['RequestId']
|
1752
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1753
|
+
end
|
1754
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1755
|
+
raise e
|
1756
|
+
rescue StandardError => e
|
1757
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
# 查询用户信息
|
1761
|
+
|
1762
|
+
# @param request: Request instance for GetUser.
|
1763
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::GetUserRequest`
|
1764
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::GetUserResponse`
|
1765
|
+
def GetUser(request)
|
1766
|
+
body = send_request('GetUser', request.serialize)
|
1767
|
+
response = JSON.parse(body)
|
1768
|
+
if response['Response'].key?('Error') == false
|
1769
|
+
model = GetUserResponse.new
|
1770
|
+
model.deserialize(response['Response'])
|
1771
|
+
model
|
1772
|
+
else
|
1773
|
+
code = response['Response']['Error']['Code']
|
1774
|
+
message = response['Response']['Error']['Message']
|
1775
|
+
reqid = response['Response']['RequestId']
|
1776
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1777
|
+
end
|
1778
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1779
|
+
raise e
|
1780
|
+
rescue StandardError => e
|
1781
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1782
|
+
end
|
1783
|
+
|
1784
|
+
# 查询CAM用户同步
|
1785
|
+
|
1786
|
+
# @param request: Request instance for GetUserSyncProvisioning.
|
1787
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::GetUserSyncProvisioningRequest`
|
1788
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::GetUserSyncProvisioningResponse`
|
1789
|
+
def GetUserSyncProvisioning(request)
|
1790
|
+
body = send_request('GetUserSyncProvisioning', request.serialize)
|
1791
|
+
response = JSON.parse(body)
|
1792
|
+
if response['Response'].key?('Error') == false
|
1793
|
+
model = GetUserSyncProvisioningResponse.new
|
1794
|
+
model.deserialize(response['Response'])
|
1795
|
+
model
|
1796
|
+
else
|
1797
|
+
code = response['Response']['Error']['Code']
|
1798
|
+
message = response['Response']['Error']['Message']
|
1799
|
+
reqid = response['Response']['RequestId']
|
1800
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1801
|
+
end
|
1802
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1803
|
+
raise e
|
1804
|
+
rescue StandardError => e
|
1805
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1806
|
+
end
|
1807
|
+
|
1808
|
+
# 查询SAML服务提供商配置信息
|
1809
|
+
|
1810
|
+
# @param request: Request instance for GetZoneSAMLServiceProviderInfo.
|
1811
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::GetZoneSAMLServiceProviderInfoRequest`
|
1812
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::GetZoneSAMLServiceProviderInfoResponse`
|
1813
|
+
def GetZoneSAMLServiceProviderInfo(request)
|
1814
|
+
body = send_request('GetZoneSAMLServiceProviderInfo', request.serialize)
|
1815
|
+
response = JSON.parse(body)
|
1816
|
+
if response['Response'].key?('Error') == false
|
1817
|
+
model = GetZoneSAMLServiceProviderInfoResponse.new
|
1818
|
+
model.deserialize(response['Response'])
|
1819
|
+
model
|
1820
|
+
else
|
1821
|
+
code = response['Response']['Error']['Code']
|
1822
|
+
message = response['Response']['Error']['Message']
|
1823
|
+
reqid = response['Response']['RequestId']
|
1824
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1825
|
+
end
|
1826
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1827
|
+
raise e
|
1828
|
+
rescue StandardError => e
|
1829
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
# 查询空间的统计信息
|
1833
|
+
|
1834
|
+
# @param request: Request instance for GetZoneStatistics.
|
1835
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::GetZoneStatisticsRequest`
|
1836
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::GetZoneStatisticsResponse`
|
1837
|
+
def GetZoneStatistics(request)
|
1838
|
+
body = send_request('GetZoneStatistics', request.serialize)
|
1839
|
+
response = JSON.parse(body)
|
1840
|
+
if response['Response'].key?('Error') == false
|
1841
|
+
model = GetZoneStatisticsResponse.new
|
1842
|
+
model.deserialize(response['Response'])
|
1843
|
+
model
|
1844
|
+
else
|
1845
|
+
code = response['Response']['Error']['Code']
|
1846
|
+
message = response['Response']['Error']['Message']
|
1847
|
+
reqid = response['Response']['RequestId']
|
1848
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1849
|
+
end
|
1850
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1851
|
+
raise e
|
1852
|
+
rescue StandardError => e
|
1853
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1854
|
+
end
|
1855
|
+
|
1856
|
+
# 查询SAML签名证书列表
|
1857
|
+
|
1858
|
+
# @param request: Request instance for ListExternalSAMLIdPCertificates.
|
1859
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListExternalSAMLIdPCertificatesRequest`
|
1860
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListExternalSAMLIdPCertificatesResponse`
|
1861
|
+
def ListExternalSAMLIdPCertificates(request)
|
1862
|
+
body = send_request('ListExternalSAMLIdPCertificates', request.serialize)
|
1863
|
+
response = JSON.parse(body)
|
1864
|
+
if response['Response'].key?('Error') == false
|
1865
|
+
model = ListExternalSAMLIdPCertificatesResponse.new
|
1866
|
+
model.deserialize(response['Response'])
|
1867
|
+
model
|
1868
|
+
else
|
1869
|
+
code = response['Response']['Error']['Code']
|
1870
|
+
message = response['Response']['Error']['Message']
|
1871
|
+
reqid = response['Response']['RequestId']
|
1872
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1873
|
+
end
|
1874
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1875
|
+
raise e
|
1876
|
+
rescue StandardError => e
|
1877
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1878
|
+
end
|
1879
|
+
|
1880
|
+
# 查询用户组中的用户列表
|
1881
|
+
|
1882
|
+
# @param request: Request instance for ListGroupMembers.
|
1883
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListGroupMembersRequest`
|
1884
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListGroupMembersResponse`
|
1885
|
+
def ListGroupMembers(request)
|
1886
|
+
body = send_request('ListGroupMembers', request.serialize)
|
1887
|
+
response = JSON.parse(body)
|
1888
|
+
if response['Response'].key?('Error') == false
|
1889
|
+
model = ListGroupMembersResponse.new
|
1890
|
+
model.deserialize(response['Response'])
|
1891
|
+
model
|
1892
|
+
else
|
1893
|
+
code = response['Response']['Error']['Code']
|
1894
|
+
message = response['Response']['Error']['Message']
|
1895
|
+
reqid = response['Response']['RequestId']
|
1896
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1897
|
+
end
|
1898
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1899
|
+
raise e
|
1900
|
+
rescue StandardError => e
|
1901
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1902
|
+
end
|
1903
|
+
|
1904
|
+
# 查询用户组列表
|
1905
|
+
|
1906
|
+
# @param request: Request instance for ListGroups.
|
1907
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListGroupsRequest`
|
1908
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListGroupsResponse`
|
1909
|
+
def ListGroups(request)
|
1910
|
+
body = send_request('ListGroups', request.serialize)
|
1911
|
+
response = JSON.parse(body)
|
1912
|
+
if response['Response'].key?('Error') == false
|
1913
|
+
model = ListGroupsResponse.new
|
1914
|
+
model.deserialize(response['Response'])
|
1915
|
+
model
|
1916
|
+
else
|
1917
|
+
code = response['Response']['Error']['Code']
|
1918
|
+
message = response['Response']['Error']['Message']
|
1919
|
+
reqid = response['Response']['RequestId']
|
1920
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1921
|
+
end
|
1922
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1923
|
+
raise e
|
1924
|
+
rescue StandardError => e
|
1925
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1926
|
+
end
|
1927
|
+
|
1928
|
+
# 查询用户加入的用户组
|
1929
|
+
|
1930
|
+
# @param request: Request instance for ListJoinedGroupsForUser.
|
1931
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListJoinedGroupsForUserRequest`
|
1932
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListJoinedGroupsForUserResponse`
|
1933
|
+
def ListJoinedGroupsForUser(request)
|
1934
|
+
body = send_request('ListJoinedGroupsForUser', request.serialize)
|
1935
|
+
response = JSON.parse(body)
|
1936
|
+
if response['Response'].key?('Error') == false
|
1937
|
+
model = ListJoinedGroupsForUserResponse.new
|
1938
|
+
model.deserialize(response['Response'])
|
1939
|
+
model
|
1940
|
+
else
|
1941
|
+
code = response['Response']['Error']['Code']
|
1942
|
+
message = response['Response']['Error']['Message']
|
1943
|
+
reqid = response['Response']['RequestId']
|
1944
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1945
|
+
end
|
1946
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1947
|
+
raise e
|
1948
|
+
rescue StandardError => e
|
1949
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1950
|
+
end
|
1951
|
+
|
1952
|
+
# 获取成员标签检测不合规资源列表
|
1953
|
+
|
1954
|
+
# @param request: Request instance for ListNonCompliantResource.
|
1955
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListNonCompliantResourceRequest`
|
1956
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListNonCompliantResourceResponse`
|
1957
|
+
def ListNonCompliantResource(request)
|
1958
|
+
body = send_request('ListNonCompliantResource', request.serialize)
|
1959
|
+
response = JSON.parse(body)
|
1960
|
+
if response['Response'].key?('Error') == false
|
1961
|
+
model = ListNonCompliantResourceResponse.new
|
1962
|
+
model.deserialize(response['Response'])
|
1963
|
+
model
|
1964
|
+
else
|
1965
|
+
code = response['Response']['Error']['Code']
|
1966
|
+
message = response['Response']['Error']['Message']
|
1967
|
+
reqid = response['Response']['RequestId']
|
1968
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1969
|
+
end
|
1970
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1971
|
+
raise e
|
1972
|
+
rescue StandardError => e
|
1973
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1974
|
+
end
|
1975
|
+
|
1976
|
+
# 获取集团服务委派管理员列表
|
1977
|
+
|
1978
|
+
# @param request: Request instance for ListOrgServiceAssignMember.
|
1979
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListOrgServiceAssignMemberRequest`
|
1980
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListOrgServiceAssignMemberResponse`
|
1981
|
+
def ListOrgServiceAssignMember(request)
|
1982
|
+
body = send_request('ListOrgServiceAssignMember', request.serialize)
|
1983
|
+
response = JSON.parse(body)
|
1984
|
+
if response['Response'].key?('Error') == false
|
1985
|
+
model = ListOrgServiceAssignMemberResponse.new
|
1986
|
+
model.deserialize(response['Response'])
|
1987
|
+
model
|
1988
|
+
else
|
1989
|
+
code = response['Response']['Error']['Code']
|
1990
|
+
message = response['Response']['Error']['Message']
|
1991
|
+
reqid = response['Response']['RequestId']
|
1992
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1993
|
+
end
|
1994
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1995
|
+
raise e
|
1996
|
+
rescue StandardError => e
|
1997
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
# 获取组织成员访问身份列表
|
2001
|
+
|
2002
|
+
# @param request: Request instance for ListOrganizationIdentity.
|
2003
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListOrganizationIdentityRequest`
|
2004
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListOrganizationIdentityResponse`
|
2005
|
+
def ListOrganizationIdentity(request)
|
2006
|
+
body = send_request('ListOrganizationIdentity', request.serialize)
|
2007
|
+
response = JSON.parse(body)
|
2008
|
+
if response['Response'].key?('Error') == false
|
2009
|
+
model = ListOrganizationIdentityResponse.new
|
2010
|
+
model.deserialize(response['Response'])
|
2011
|
+
model
|
2012
|
+
else
|
2013
|
+
code = response['Response']['Error']['Code']
|
2014
|
+
message = response['Response']['Error']['Message']
|
2015
|
+
reqid = response['Response']['RequestId']
|
2016
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2017
|
+
end
|
2018
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2019
|
+
raise e
|
2020
|
+
rescue StandardError => e
|
2021
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2022
|
+
end
|
2023
|
+
|
2024
|
+
# 获取集团服务设置列表
|
2025
|
+
|
2026
|
+
# @param request: Request instance for ListOrganizationService.
|
2027
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListOrganizationServiceRequest`
|
2028
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListOrganizationServiceResponse`
|
2029
|
+
def ListOrganizationService(request)
|
2030
|
+
body = send_request('ListOrganizationService', request.serialize)
|
2031
|
+
response = JSON.parse(body)
|
2032
|
+
if response['Response'].key?('Error') == false
|
2033
|
+
model = ListOrganizationServiceResponse.new
|
2034
|
+
model.deserialize(response['Response'])
|
2035
|
+
model
|
2036
|
+
else
|
2037
|
+
code = response['Response']['Error']['Code']
|
2038
|
+
message = response['Response']['Error']['Message']
|
2039
|
+
reqid = response['Response']['RequestId']
|
2040
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2041
|
+
end
|
2042
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2043
|
+
raise e
|
2044
|
+
rescue StandardError => e
|
2045
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2046
|
+
end
|
2047
|
+
|
2048
|
+
# 获取权限配置中的策略列表
|
2049
|
+
|
2050
|
+
# @param request: Request instance for ListPermissionPoliciesInRoleConfiguration.
|
2051
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListPermissionPoliciesInRoleConfigurationRequest`
|
2052
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListPermissionPoliciesInRoleConfigurationResponse`
|
2053
|
+
def ListPermissionPoliciesInRoleConfiguration(request)
|
2054
|
+
body = send_request('ListPermissionPoliciesInRoleConfiguration', request.serialize)
|
2055
|
+
response = JSON.parse(body)
|
2056
|
+
if response['Response'].key?('Error') == false
|
2057
|
+
model = ListPermissionPoliciesInRoleConfigurationResponse.new
|
2058
|
+
model.deserialize(response['Response'])
|
2059
|
+
model
|
2060
|
+
else
|
2061
|
+
code = response['Response']['Error']['Code']
|
2062
|
+
message = response['Response']['Error']['Message']
|
2063
|
+
reqid = response['Response']['RequestId']
|
2064
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2065
|
+
end
|
2066
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2067
|
+
raise e
|
2068
|
+
rescue StandardError => e
|
2069
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2070
|
+
end
|
2071
|
+
|
2072
|
+
# 本接口(ListPolicies)可用于查询查看策略列表数据
|
2073
|
+
|
2074
|
+
# @param request: Request instance for ListPolicies.
|
2075
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListPoliciesRequest`
|
2076
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListPoliciesResponse`
|
2077
|
+
def ListPolicies(request)
|
2078
|
+
body = send_request('ListPolicies', request.serialize)
|
2079
|
+
response = JSON.parse(body)
|
2080
|
+
if response['Response'].key?('Error') == false
|
2081
|
+
model = ListPoliciesResponse.new
|
2082
|
+
model.deserialize(response['Response'])
|
2083
|
+
model
|
2084
|
+
else
|
2085
|
+
code = response['Response']['Error']['Code']
|
2086
|
+
message = response['Response']['Error']['Message']
|
2087
|
+
reqid = response['Response']['RequestId']
|
2088
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2089
|
+
end
|
2090
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2091
|
+
raise e
|
2092
|
+
rescue StandardError => e
|
2093
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2094
|
+
end
|
2095
|
+
|
2096
|
+
# 本接口(ListPoliciesForTarget)查询目标关联的策略列表
|
2097
|
+
|
2098
|
+
# @param request: Request instance for ListPoliciesForTarget.
|
2099
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListPoliciesForTargetRequest`
|
2100
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListPoliciesForTargetResponse`
|
2101
|
+
def ListPoliciesForTarget(request)
|
2102
|
+
body = send_request('ListPoliciesForTarget', request.serialize)
|
2103
|
+
response = JSON.parse(body)
|
2104
|
+
if response['Response'].key?('Error') == false
|
2105
|
+
model = ListPoliciesForTargetResponse.new
|
2106
|
+
model.deserialize(response['Response'])
|
2107
|
+
model
|
2108
|
+
else
|
2109
|
+
code = response['Response']['Error']['Code']
|
2110
|
+
message = response['Response']['Error']['Message']
|
2111
|
+
reqid = response['Response']['RequestId']
|
2112
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2113
|
+
end
|
2114
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2115
|
+
raise e
|
2116
|
+
rescue StandardError => e
|
2117
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2118
|
+
end
|
2119
|
+
|
2120
|
+
# 查询授权列表
|
2121
|
+
|
2122
|
+
# @param request: Request instance for ListRoleAssignments.
|
2123
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListRoleAssignmentsRequest`
|
2124
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListRoleAssignmentsResponse`
|
2125
|
+
def ListRoleAssignments(request)
|
2126
|
+
body = send_request('ListRoleAssignments', request.serialize)
|
2127
|
+
response = JSON.parse(body)
|
2128
|
+
if response['Response'].key?('Error') == false
|
2129
|
+
model = ListRoleAssignmentsResponse.new
|
2130
|
+
model.deserialize(response['Response'])
|
2131
|
+
model
|
2132
|
+
else
|
2133
|
+
code = response['Response']['Error']['Code']
|
2134
|
+
message = response['Response']['Error']['Message']
|
2135
|
+
reqid = response['Response']['RequestId']
|
2136
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2137
|
+
end
|
2138
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2139
|
+
raise e
|
2140
|
+
rescue StandardError => e
|
2141
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2142
|
+
end
|
2143
|
+
|
2144
|
+
# 查询权限配置部署列表
|
2145
|
+
|
2146
|
+
# @param request: Request instance for ListRoleConfigurationProvisionings.
|
2147
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListRoleConfigurationProvisioningsRequest`
|
2148
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListRoleConfigurationProvisioningsResponse`
|
2149
|
+
def ListRoleConfigurationProvisionings(request)
|
2150
|
+
body = send_request('ListRoleConfigurationProvisionings', request.serialize)
|
2151
|
+
response = JSON.parse(body)
|
2152
|
+
if response['Response'].key?('Error') == false
|
2153
|
+
model = ListRoleConfigurationProvisioningsResponse.new
|
1242
2154
|
model.deserialize(response['Response'])
|
1243
2155
|
model
|
1244
2156
|
else
|
@@ -1253,16 +2165,16 @@ module TencentCloud
|
|
1253
2165
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1254
2166
|
end
|
1255
2167
|
|
1256
|
-
#
|
2168
|
+
# 查询权限配置列表
|
1257
2169
|
|
1258
|
-
# @param request: Request instance for
|
1259
|
-
# @type request: :class:`Tencentcloud::organization::V20210331::
|
1260
|
-
# @rtype: :class:`Tencentcloud::organization::V20210331::
|
1261
|
-
def
|
1262
|
-
body = send_request('
|
2170
|
+
# @param request: Request instance for ListRoleConfigurations.
|
2171
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListRoleConfigurationsRequest`
|
2172
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListRoleConfigurationsResponse`
|
2173
|
+
def ListRoleConfigurations(request)
|
2174
|
+
body = send_request('ListRoleConfigurations', request.serialize)
|
1263
2175
|
response = JSON.parse(body)
|
1264
2176
|
if response['Response'].key?('Error') == false
|
1265
|
-
model =
|
2177
|
+
model = ListRoleConfigurationsResponse.new
|
1266
2178
|
model.deserialize(response['Response'])
|
1267
2179
|
model
|
1268
2180
|
else
|
@@ -1277,16 +2189,16 @@ module TencentCloud
|
|
1277
2189
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1278
2190
|
end
|
1279
2191
|
|
1280
|
-
#
|
2192
|
+
# 本接口(ListTargetsForPolicy)查询某个指定策略关联的目标列表
|
1281
2193
|
|
1282
|
-
# @param request: Request instance for
|
1283
|
-
# @type request: :class:`Tencentcloud::organization::V20210331::
|
1284
|
-
# @rtype: :class:`Tencentcloud::organization::V20210331::
|
1285
|
-
def
|
1286
|
-
body = send_request('
|
2194
|
+
# @param request: Request instance for ListTargetsForPolicy.
|
2195
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListTargetsForPolicyRequest`
|
2196
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListTargetsForPolicyResponse`
|
2197
|
+
def ListTargetsForPolicy(request)
|
2198
|
+
body = send_request('ListTargetsForPolicy', request.serialize)
|
1287
2199
|
response = JSON.parse(body)
|
1288
2200
|
if response['Response'].key?('Error') == false
|
1289
|
-
model =
|
2201
|
+
model = ListTargetsForPolicyResponse.new
|
1290
2202
|
model.deserialize(response['Response'])
|
1291
2203
|
model
|
1292
2204
|
else
|
@@ -1301,16 +2213,16 @@ module TencentCloud
|
|
1301
2213
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1302
2214
|
end
|
1303
2215
|
|
1304
|
-
#
|
2216
|
+
# 查询异步任务列表
|
1305
2217
|
|
1306
|
-
# @param request: Request instance for
|
1307
|
-
# @type request: :class:`Tencentcloud::organization::V20210331::
|
1308
|
-
# @rtype: :class:`Tencentcloud::organization::V20210331::
|
1309
|
-
def
|
1310
|
-
body = send_request('
|
2218
|
+
# @param request: Request instance for ListTasks.
|
2219
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListTasksRequest`
|
2220
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListTasksResponse`
|
2221
|
+
def ListTasks(request)
|
2222
|
+
body = send_request('ListTasks', request.serialize)
|
1311
2223
|
response = JSON.parse(body)
|
1312
2224
|
if response['Response'].key?('Error') == false
|
1313
|
-
model =
|
2225
|
+
model = ListTasksResponse.new
|
1314
2226
|
model.deserialize(response['Response'])
|
1315
2227
|
model
|
1316
2228
|
else
|
@@ -1325,16 +2237,16 @@ module TencentCloud
|
|
1325
2237
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1326
2238
|
end
|
1327
2239
|
|
1328
|
-
#
|
2240
|
+
# 查询CAM用户同步列表
|
1329
2241
|
|
1330
|
-
# @param request: Request instance for
|
1331
|
-
# @type request: :class:`Tencentcloud::organization::V20210331::
|
1332
|
-
# @rtype: :class:`Tencentcloud::organization::V20210331::
|
1333
|
-
def
|
1334
|
-
body = send_request('
|
2242
|
+
# @param request: Request instance for ListUserSyncProvisionings.
|
2243
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListUserSyncProvisioningsRequest`
|
2244
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListUserSyncProvisioningsResponse`
|
2245
|
+
def ListUserSyncProvisionings(request)
|
2246
|
+
body = send_request('ListUserSyncProvisionings', request.serialize)
|
1335
2247
|
response = JSON.parse(body)
|
1336
2248
|
if response['Response'].key?('Error') == false
|
1337
|
-
model =
|
2249
|
+
model = ListUserSyncProvisioningsResponse.new
|
1338
2250
|
model.deserialize(response['Response'])
|
1339
2251
|
model
|
1340
2252
|
else
|
@@ -1349,16 +2261,16 @@ module TencentCloud
|
|
1349
2261
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1350
2262
|
end
|
1351
2263
|
|
1352
|
-
#
|
2264
|
+
# 查询用户列表
|
1353
2265
|
|
1354
|
-
# @param request: Request instance for
|
1355
|
-
# @type request: :class:`Tencentcloud::organization::V20210331::
|
1356
|
-
# @rtype: :class:`Tencentcloud::organization::V20210331::
|
1357
|
-
def
|
1358
|
-
body = send_request('
|
2266
|
+
# @param request: Request instance for ListUsers.
|
2267
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListUsersRequest`
|
2268
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListUsersResponse`
|
2269
|
+
def ListUsers(request)
|
2270
|
+
body = send_request('ListUsers', request.serialize)
|
1359
2271
|
response = JSON.parse(body)
|
1360
2272
|
if response['Response'].key?('Error') == false
|
1361
|
-
model =
|
2273
|
+
model = ListUsersResponse.new
|
1362
2274
|
model.deserialize(response['Response'])
|
1363
2275
|
model
|
1364
2276
|
else
|
@@ -1373,16 +2285,16 @@ module TencentCloud
|
|
1373
2285
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1374
2286
|
end
|
1375
2287
|
|
1376
|
-
#
|
2288
|
+
# 移动成员到指定企业组织节点
|
1377
2289
|
|
1378
|
-
# @param request: Request instance for
|
1379
|
-
# @type request: :class:`Tencentcloud::organization::V20210331::
|
1380
|
-
# @rtype: :class:`Tencentcloud::organization::V20210331::
|
1381
|
-
def
|
1382
|
-
body = send_request('
|
2290
|
+
# @param request: Request instance for MoveOrganizationNodeMembers.
|
2291
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::MoveOrganizationNodeMembersRequest`
|
2292
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::MoveOrganizationNodeMembersResponse`
|
2293
|
+
def MoveOrganizationNodeMembers(request)
|
2294
|
+
body = send_request('MoveOrganizationNodeMembers', request.serialize)
|
1383
2295
|
response = JSON.parse(body)
|
1384
2296
|
if response['Response'].key?('Error') == false
|
1385
|
-
model =
|
2297
|
+
model = MoveOrganizationNodeMembersResponse.new
|
1386
2298
|
model.deserialize(response['Response'])
|
1387
2299
|
model
|
1388
2300
|
else
|
@@ -1397,16 +2309,16 @@ module TencentCloud
|
|
1397
2309
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1398
2310
|
end
|
1399
2311
|
|
1400
|
-
#
|
2312
|
+
# 开通CIC服务
|
1401
2313
|
|
1402
|
-
# @param request: Request instance for
|
1403
|
-
# @type request: :class:`Tencentcloud::organization::V20210331::
|
1404
|
-
# @rtype: :class:`Tencentcloud::organization::V20210331::
|
1405
|
-
def
|
1406
|
-
body = send_request('
|
2314
|
+
# @param request: Request instance for OpenIdentityCenter.
|
2315
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::OpenIdentityCenterRequest`
|
2316
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::OpenIdentityCenterResponse`
|
2317
|
+
def OpenIdentityCenter(request)
|
2318
|
+
body = send_request('OpenIdentityCenter', request.serialize)
|
1407
2319
|
response = JSON.parse(body)
|
1408
2320
|
if response['Response'].key?('Error') == false
|
1409
|
-
model =
|
2321
|
+
model = OpenIdentityCenterResponse.new
|
1410
2322
|
model.deserialize(response['Response'])
|
1411
2323
|
model
|
1412
2324
|
else
|
@@ -1421,16 +2333,16 @@ module TencentCloud
|
|
1421
2333
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1422
2334
|
end
|
1423
2335
|
|
1424
|
-
#
|
2336
|
+
# 将权限配置部署到成员账号上
|
1425
2337
|
|
1426
|
-
# @param request: Request instance for
|
1427
|
-
# @type request: :class:`Tencentcloud::organization::V20210331::
|
1428
|
-
# @rtype: :class:`Tencentcloud::organization::V20210331::
|
1429
|
-
def
|
1430
|
-
body = send_request('
|
2338
|
+
# @param request: Request instance for ProvisionRoleConfiguration.
|
2339
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ProvisionRoleConfigurationRequest`
|
2340
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ProvisionRoleConfigurationResponse`
|
2341
|
+
def ProvisionRoleConfiguration(request)
|
2342
|
+
body = send_request('ProvisionRoleConfiguration', request.serialize)
|
1431
2343
|
response = JSON.parse(body)
|
1432
2344
|
if response['Response'].key?('Error') == false
|
1433
|
-
model =
|
2345
|
+
model = ProvisionRoleConfigurationResponse.new
|
1434
2346
|
model.deserialize(response['Response'])
|
1435
2347
|
model
|
1436
2348
|
else
|
@@ -1493,6 +2405,126 @@ module TencentCloud
|
|
1493
2405
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1494
2406
|
end
|
1495
2407
|
|
2408
|
+
# 移除SAML签名证书
|
2409
|
+
|
2410
|
+
# @param request: Request instance for RemoveExternalSAMLIdPCertificate.
|
2411
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::RemoveExternalSAMLIdPCertificateRequest`
|
2412
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::RemoveExternalSAMLIdPCertificateResponse`
|
2413
|
+
def RemoveExternalSAMLIdPCertificate(request)
|
2414
|
+
body = send_request('RemoveExternalSAMLIdPCertificate', request.serialize)
|
2415
|
+
response = JSON.parse(body)
|
2416
|
+
if response['Response'].key?('Error') == false
|
2417
|
+
model = RemoveExternalSAMLIdPCertificateResponse.new
|
2418
|
+
model.deserialize(response['Response'])
|
2419
|
+
model
|
2420
|
+
else
|
2421
|
+
code = response['Response']['Error']['Code']
|
2422
|
+
message = response['Response']['Error']['Message']
|
2423
|
+
reqid = response['Response']['RequestId']
|
2424
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2425
|
+
end
|
2426
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2427
|
+
raise e
|
2428
|
+
rescue StandardError => e
|
2429
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2430
|
+
end
|
2431
|
+
|
2432
|
+
# 为权限配置移除策略
|
2433
|
+
|
2434
|
+
# @param request: Request instance for RemovePermissionPolicyFromRoleConfiguration.
|
2435
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::RemovePermissionPolicyFromRoleConfigurationRequest`
|
2436
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::RemovePermissionPolicyFromRoleConfigurationResponse`
|
2437
|
+
def RemovePermissionPolicyFromRoleConfiguration(request)
|
2438
|
+
body = send_request('RemovePermissionPolicyFromRoleConfiguration', request.serialize)
|
2439
|
+
response = JSON.parse(body)
|
2440
|
+
if response['Response'].key?('Error') == false
|
2441
|
+
model = RemovePermissionPolicyFromRoleConfigurationResponse.new
|
2442
|
+
model.deserialize(response['Response'])
|
2443
|
+
model
|
2444
|
+
else
|
2445
|
+
code = response['Response']['Error']['Code']
|
2446
|
+
message = response['Response']['Error']['Message']
|
2447
|
+
reqid = response['Response']['RequestId']
|
2448
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2449
|
+
end
|
2450
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2451
|
+
raise e
|
2452
|
+
rescue StandardError => e
|
2453
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2454
|
+
end
|
2455
|
+
|
2456
|
+
# 从用户组中移除用户
|
2457
|
+
|
2458
|
+
# @param request: Request instance for RemoveUserFromGroup.
|
2459
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::RemoveUserFromGroupRequest`
|
2460
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::RemoveUserFromGroupResponse`
|
2461
|
+
def RemoveUserFromGroup(request)
|
2462
|
+
body = send_request('RemoveUserFromGroup', request.serialize)
|
2463
|
+
response = JSON.parse(body)
|
2464
|
+
if response['Response'].key?('Error') == false
|
2465
|
+
model = RemoveUserFromGroupResponse.new
|
2466
|
+
model.deserialize(response['Response'])
|
2467
|
+
model
|
2468
|
+
else
|
2469
|
+
code = response['Response']['Error']['Code']
|
2470
|
+
message = response['Response']['Error']['Message']
|
2471
|
+
reqid = response['Response']['RequestId']
|
2472
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2473
|
+
end
|
2474
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2475
|
+
raise e
|
2476
|
+
rescue StandardError => e
|
2477
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2478
|
+
end
|
2479
|
+
|
2480
|
+
# 配置SAML身份提供商信息
|
2481
|
+
|
2482
|
+
# @param request: Request instance for SetExternalSAMLIdentityProvider.
|
2483
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::SetExternalSAMLIdentityProviderRequest`
|
2484
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::SetExternalSAMLIdentityProviderResponse`
|
2485
|
+
def SetExternalSAMLIdentityProvider(request)
|
2486
|
+
body = send_request('SetExternalSAMLIdentityProvider', request.serialize)
|
2487
|
+
response = JSON.parse(body)
|
2488
|
+
if response['Response'].key?('Error') == false
|
2489
|
+
model = SetExternalSAMLIdentityProviderResponse.new
|
2490
|
+
model.deserialize(response['Response'])
|
2491
|
+
model
|
2492
|
+
else
|
2493
|
+
code = response['Response']['Error']['Code']
|
2494
|
+
message = response['Response']['Error']['Message']
|
2495
|
+
reqid = response['Response']['RequestId']
|
2496
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2497
|
+
end
|
2498
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2499
|
+
raise e
|
2500
|
+
rescue StandardError => e
|
2501
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2502
|
+
end
|
2503
|
+
|
2504
|
+
# 修改用户组信息
|
2505
|
+
|
2506
|
+
# @param request: Request instance for UpdateGroup.
|
2507
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::UpdateGroupRequest`
|
2508
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::UpdateGroupResponse`
|
2509
|
+
def UpdateGroup(request)
|
2510
|
+
body = send_request('UpdateGroup', request.serialize)
|
2511
|
+
response = JSON.parse(body)
|
2512
|
+
if response['Response'].key?('Error') == false
|
2513
|
+
model = UpdateGroupResponse.new
|
2514
|
+
model.deserialize(response['Response'])
|
2515
|
+
model
|
2516
|
+
else
|
2517
|
+
code = response['Response']['Error']['Code']
|
2518
|
+
message = response['Response']['Error']['Message']
|
2519
|
+
reqid = response['Response']['RequestId']
|
2520
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2521
|
+
end
|
2522
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2523
|
+
raise e
|
2524
|
+
rescue StandardError => e
|
2525
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2526
|
+
end
|
2527
|
+
|
1496
2528
|
# 更新组织身份
|
1497
2529
|
|
1498
2530
|
# @param request: Request instance for UpdateOrganizationIdentity.
|
@@ -1613,6 +2645,30 @@ module TencentCloud
|
|
1613
2645
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1614
2646
|
end
|
1615
2647
|
|
2648
|
+
# 修改权限配置信息
|
2649
|
+
|
2650
|
+
# @param request: Request instance for UpdateRoleConfiguration.
|
2651
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::UpdateRoleConfigurationRequest`
|
2652
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::UpdateRoleConfigurationResponse`
|
2653
|
+
def UpdateRoleConfiguration(request)
|
2654
|
+
body = send_request('UpdateRoleConfiguration', request.serialize)
|
2655
|
+
response = JSON.parse(body)
|
2656
|
+
if response['Response'].key?('Error') == false
|
2657
|
+
model = UpdateRoleConfigurationResponse.new
|
2658
|
+
model.deserialize(response['Response'])
|
2659
|
+
model
|
2660
|
+
else
|
2661
|
+
code = response['Response']['Error']['Code']
|
2662
|
+
message = response['Response']['Error']['Message']
|
2663
|
+
reqid = response['Response']['RequestId']
|
2664
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2665
|
+
end
|
2666
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2667
|
+
raise e
|
2668
|
+
rescue StandardError => e
|
2669
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2670
|
+
end
|
2671
|
+
|
1616
2672
|
# 更新共享单元。
|
1617
2673
|
|
1618
2674
|
# @param request: Request instance for UpdateShareUnit.
|
@@ -1637,6 +2693,102 @@ module TencentCloud
|
|
1637
2693
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
2694
|
end
|
1639
2695
|
|
2696
|
+
# 修改用户信息
|
2697
|
+
|
2698
|
+
# @param request: Request instance for UpdateUser.
|
2699
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::UpdateUserRequest`
|
2700
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::UpdateUserResponse`
|
2701
|
+
def UpdateUser(request)
|
2702
|
+
body = send_request('UpdateUser', request.serialize)
|
2703
|
+
response = JSON.parse(body)
|
2704
|
+
if response['Response'].key?('Error') == false
|
2705
|
+
model = UpdateUserResponse.new
|
2706
|
+
model.deserialize(response['Response'])
|
2707
|
+
model
|
2708
|
+
else
|
2709
|
+
code = response['Response']['Error']['Code']
|
2710
|
+
message = response['Response']['Error']['Message']
|
2711
|
+
reqid = response['Response']['RequestId']
|
2712
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2713
|
+
end
|
2714
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2715
|
+
raise e
|
2716
|
+
rescue StandardError => e
|
2717
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2718
|
+
end
|
2719
|
+
|
2720
|
+
# 修改用户状态
|
2721
|
+
|
2722
|
+
# @param request: Request instance for UpdateUserStatus.
|
2723
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::UpdateUserStatusRequest`
|
2724
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::UpdateUserStatusResponse`
|
2725
|
+
def UpdateUserStatus(request)
|
2726
|
+
body = send_request('UpdateUserStatus', request.serialize)
|
2727
|
+
response = JSON.parse(body)
|
2728
|
+
if response['Response'].key?('Error') == false
|
2729
|
+
model = UpdateUserStatusResponse.new
|
2730
|
+
model.deserialize(response['Response'])
|
2731
|
+
model
|
2732
|
+
else
|
2733
|
+
code = response['Response']['Error']['Code']
|
2734
|
+
message = response['Response']['Error']['Message']
|
2735
|
+
reqid = response['Response']['RequestId']
|
2736
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2737
|
+
end
|
2738
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2739
|
+
raise e
|
2740
|
+
rescue StandardError => e
|
2741
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2742
|
+
end
|
2743
|
+
|
2744
|
+
# 创建子用户同步任务
|
2745
|
+
|
2746
|
+
# @param request: Request instance for UpdateUserSyncProvisioning.
|
2747
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::UpdateUserSyncProvisioningRequest`
|
2748
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::UpdateUserSyncProvisioningResponse`
|
2749
|
+
def UpdateUserSyncProvisioning(request)
|
2750
|
+
body = send_request('UpdateUserSyncProvisioning', request.serialize)
|
2751
|
+
response = JSON.parse(body)
|
2752
|
+
if response['Response'].key?('Error') == false
|
2753
|
+
model = UpdateUserSyncProvisioningResponse.new
|
2754
|
+
model.deserialize(response['Response'])
|
2755
|
+
model
|
2756
|
+
else
|
2757
|
+
code = response['Response']['Error']['Code']
|
2758
|
+
message = response['Response']['Error']['Message']
|
2759
|
+
reqid = response['Response']['RequestId']
|
2760
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2761
|
+
end
|
2762
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2763
|
+
raise e
|
2764
|
+
rescue StandardError => e
|
2765
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2766
|
+
end
|
2767
|
+
|
2768
|
+
# 更新用户空间名
|
2769
|
+
|
2770
|
+
# @param request: Request instance for UpdateZone.
|
2771
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::UpdateZoneRequest`
|
2772
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::UpdateZoneResponse`
|
2773
|
+
def UpdateZone(request)
|
2774
|
+
body = send_request('UpdateZone', request.serialize)
|
2775
|
+
response = JSON.parse(body)
|
2776
|
+
if response['Response'].key?('Error') == false
|
2777
|
+
model = UpdateZoneResponse.new
|
2778
|
+
model.deserialize(response['Response'])
|
2779
|
+
model
|
2780
|
+
else
|
2781
|
+
code = response['Response']['Error']['Code']
|
2782
|
+
message = response['Response']['Error']['Message']
|
2783
|
+
reqid = response['Response']['RequestId']
|
2784
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2785
|
+
end
|
2786
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2787
|
+
raise e
|
2788
|
+
rescue StandardError => e
|
2789
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2790
|
+
end
|
2791
|
+
|
1640
2792
|
|
1641
2793
|
end
|
1642
2794
|
end
|