tencentcloud-sdk-eiam 1.0.223 → 1.0.224

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cc81d04ec4d9f7887d9320cbc601fc611682f8e
4
- data.tar.gz: 437851b1d556ef03b543c9c271f9cfb355c6aec9
3
+ metadata.gz: 4dbc78bf652cf02005c4a1d01d19b4c04c05765c
4
+ data.tar.gz: cf3641f36d77496d22df479978cb8fd105c129d5
5
5
  SHA512:
6
- metadata.gz: d3f4957657a69d3427af0a8ee7e6141697edbb55f419b40b92f3d5ad1f5b8e900c3becc789f05b8b22ad95fa647c3ccb419040336586e93a8b7e232e54416f3e
7
- data.tar.gz: c39cfb5b5382ef5d273c34f2c2c16a24c3b8466ac14bbd42a7e78469751519b2f281968e8521f8094a8604b4e09b46871e37fa5f0087923ac479bc1ff6faf93a
6
+ metadata.gz: 76b27e16c14c7a6fd8eea89fccd30bf47d38a5719f61a1affc3ddfc59df587724c69a42c4b9908f4c83c25d3c05fc41053b82d2393608a3bdecebc221b5fb727
7
+ data.tar.gz: d29a0dcf09a58a6bfceb2d35885a0c7c4d72c886a3e95ef3c19c0e54df0674f0ce95a01035a0d23fd6a79cd64ccb965aef070bec56ddb7b58a3e0fcf862e21a4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.223
1
+ 1.0.224
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 账号组添加账号
33
+
34
+ # @param request: Request instance for AddAccountToAccountGroup.
35
+ # @type request: :class:`Tencentcloud::eiam::V20210420::AddAccountToAccountGroupRequest`
36
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::AddAccountToAccountGroupResponse`
37
+ def AddAccountToAccountGroup(request)
38
+ body = send_request('AddAccountToAccountGroup', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AddAccountToAccountGroupResponse.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
+
32
56
  # 加入用户到用户组
33
57
 
34
58
  # @param request: Request instance for AddUserToUserGroup.
@@ -53,6 +77,54 @@ 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 CreateAccountGroup.
83
+ # @type request: :class:`Tencentcloud::eiam::V20210420::CreateAccountGroupRequest`
84
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::CreateAccountGroupResponse`
85
+ def CreateAccountGroup(request)
86
+ body = send_request('CreateAccountGroup', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateAccountGroupResponse.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 CreateAppAccount.
107
+ # @type request: :class:`Tencentcloud::eiam::V20210420::CreateAppAccountRequest`
108
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::CreateAppAccountResponse`
109
+ def CreateAppAccount(request)
110
+ body = send_request('CreateAppAccount', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateAppAccountResponse.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
+
56
128
  # 新建一个机构节点
57
129
 
58
130
  # @param request: Request instance for CreateOrgNode.
@@ -125,6 +197,54 @@ module TencentCloud
125
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
198
  end
127
199
 
200
+ # 删除账号组
201
+
202
+ # @param request: Request instance for DeleteAccountGroup.
203
+ # @type request: :class:`Tencentcloud::eiam::V20210420::DeleteAccountGroupRequest`
204
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::DeleteAccountGroupResponse`
205
+ def DeleteAccountGroup(request)
206
+ body = send_request('DeleteAccountGroup', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DeleteAccountGroupResponse.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 DeleteAppAccount.
227
+ # @type request: :class:`Tencentcloud::eiam::V20210420::DeleteAppAccountRequest`
228
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::DeleteAppAccountResponse`
229
+ def DeleteAppAccount(request)
230
+ body = send_request('DeleteAppAccount', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DeleteAppAccountResponse.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
+
128
248
  # 删除一个机构节点
129
249
 
130
250
  # @param request: Request instance for DeleteOrgNode.
@@ -197,6 +317,78 @@ module TencentCloud
197
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
318
  end
199
319
 
320
+ # 批量删除当前节点下的用户。如果出现个别用户删除错误,将不影响其余被勾选用户被删除的操作,同时提示未被删除的用户名称/用户ID。
321
+
322
+ # @param request: Request instance for DeleteUsers.
323
+ # @type request: :class:`Tencentcloud::eiam::V20210420::DeleteUsersRequest`
324
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::DeleteUsersResponse`
325
+ def DeleteUsers(request)
326
+ body = send_request('DeleteUsers', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DeleteUsersResponse.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
+
344
+ # 查询账号组列表
345
+
346
+ # @param request: Request instance for DescribeAccountGroup.
347
+ # @type request: :class:`Tencentcloud::eiam::V20210420::DescribeAccountGroupRequest`
348
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::DescribeAccountGroupResponse`
349
+ def DescribeAccountGroup(request)
350
+ body = send_request('DescribeAccountGroup', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DescribeAccountGroupResponse.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 DescribeAppAccount.
371
+ # @type request: :class:`Tencentcloud::eiam::V20210420::DescribeAppAccountRequest`
372
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::DescribeAppAccountResponse`
373
+ def DescribeAppAccount(request)
374
+ body = send_request('DescribeAppAccount', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = DescribeAppAccountResponse.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
+
200
392
  # 获取一个应用的信息。
201
393
 
202
394
  # @param request: Request instance for DescribeApplication.
@@ -389,6 +581,54 @@ module TencentCloud
389
581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
582
  end
391
583
 
584
+ # 通过用户名或用户 id 获取用户的第三方账号绑定信息。
585
+
586
+ # @param request: Request instance for DescribeUserThirdPartyAccountInfo.
587
+ # @type request: :class:`Tencentcloud::eiam::V20210420::DescribeUserThirdPartyAccountInfoRequest`
588
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::DescribeUserThirdPartyAccountInfoResponse`
589
+ def DescribeUserThirdPartyAccountInfo(request)
590
+ body = send_request('DescribeUserThirdPartyAccountInfo', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = DescribeUserThirdPartyAccountInfoResponse.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 ListAccountInAccountGroup.
611
+ # @type request: :class:`Tencentcloud::eiam::V20210420::ListAccountInAccountGroupRequest`
612
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::ListAccountInAccountGroupResponse`
613
+ def ListAccountInAccountGroup(request)
614
+ body = send_request('ListAccountInAccountGroup', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = ListAccountInAccountGroupResponse.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
+
392
632
  # 应用授权关系列表(含搜索条件匹配)。
393
633
 
394
634
  # @param request: Request instance for ListApplicationAuthorizations.
@@ -629,6 +869,54 @@ module TencentCloud
629
869
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
870
  end
631
871
 
872
+ # 修改账号组
873
+
874
+ # @param request: Request instance for ModifyAccountGroup.
875
+ # @type request: :class:`Tencentcloud::eiam::V20210420::ModifyAccountGroupRequest`
876
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::ModifyAccountGroupResponse`
877
+ def ModifyAccountGroup(request)
878
+ body = send_request('ModifyAccountGroup', request.serialize)
879
+ response = JSON.parse(body)
880
+ if response['Response'].key?('Error') == false
881
+ model = ModifyAccountGroupResponse.new
882
+ model.deserialize(response['Response'])
883
+ model
884
+ else
885
+ code = response['Response']['Error']['Code']
886
+ message = response['Response']['Error']['Message']
887
+ reqid = response['Response']['RequestId']
888
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
889
+ end
890
+ rescue TencentCloud::Common::TencentCloudSDKException => e
891
+ raise e
892
+ rescue StandardError => e
893
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
894
+ end
895
+
896
+ # 修改应用账号
897
+
898
+ # @param request: Request instance for ModifyAppAccount.
899
+ # @type request: :class:`Tencentcloud::eiam::V20210420::ModifyAppAccountRequest`
900
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::ModifyAppAccountResponse`
901
+ def ModifyAppAccount(request)
902
+ body = send_request('ModifyAppAccount', request.serialize)
903
+ response = JSON.parse(body)
904
+ if response['Response'].key?('Error') == false
905
+ model = ModifyAppAccountResponse.new
906
+ model.deserialize(response['Response'])
907
+ model
908
+ else
909
+ code = response['Response']['Error']['Code']
910
+ message = response['Response']['Error']['Message']
911
+ reqid = response['Response']['RequestId']
912
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
913
+ end
914
+ rescue TencentCloud::Common::TencentCloudSDKException => e
915
+ raise e
916
+ rescue StandardError => e
917
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
918
+ end
919
+
632
920
  # 更新一个应用的信息
633
921
 
634
922
  # @param request: Request instance for ModifyApplication.
@@ -677,6 +965,30 @@ module TencentCloud
677
965
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
966
  end
679
967
 
968
+ # 从账号组中移除账号
969
+
970
+ # @param request: Request instance for RemoveAccountFromAccountGroup.
971
+ # @type request: :class:`Tencentcloud::eiam::V20210420::RemoveAccountFromAccountGroupRequest`
972
+ # @rtype: :class:`Tencentcloud::eiam::V20210420::RemoveAccountFromAccountGroupResponse`
973
+ def RemoveAccountFromAccountGroup(request)
974
+ body = send_request('RemoveAccountFromAccountGroup', request.serialize)
975
+ response = JSON.parse(body)
976
+ if response['Response'].key?('Error') == false
977
+ model = RemoveAccountFromAccountGroupResponse.new
978
+ model.deserialize(response['Response'])
979
+ model
980
+ else
981
+ code = response['Response']['Error']['Code']
982
+ message = response['Response']['Error']['Message']
983
+ reqid = response['Response']['RequestId']
984
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
985
+ end
986
+ rescue TencentCloud::Common::TencentCloudSDKException => e
987
+ raise e
988
+ rescue StandardError => e
989
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
+ end
991
+
680
992
  # 从用户组中移除用户
681
993
 
682
994
  # @param request: Request instance for RemoveUserFromUserGroup.