-
Notifications
You must be signed in to change notification settings - Fork 4
/
CamClient.java
934 lines (848 loc) · 38.3 KB
/
CamClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.cam.v20190116;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.cam.v20190116.models.*;
public class CamClient extends AbstractClient{
private static String endpoint = "cam.tencentcloudapi.com";
private static String service = "cam";
private static String version = "2019-01-16";
public CamClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public CamClient(Credential credential, String region, ClientProfile profile) {
super(CamClient.endpoint, CamClient.version, credential, region, profile);
}
/**
*This API is used to create a sub-user.
* @param req AddUserRequest
* @return AddUserResponse
* @throws TencentCloudSDKException
*/
public AddUserResponse AddUser(AddUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AddUser", AddUserResponse.class);
}
/**
*This API is used to add users to a user group.
* @param req AddUserToGroupRequest
* @return AddUserToGroupResponse
* @throws TencentCloudSDKException
*/
public AddUserToGroupResponse AddUserToGroup(AddUserToGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AddUserToGroup", AddUserToGroupResponse.class);
}
/**
*This API (AttachGroupPolicy) is used to associate a policy with a user group.
* @param req AttachGroupPolicyRequest
* @return AttachGroupPolicyResponse
* @throws TencentCloudSDKException
*/
public AttachGroupPolicyResponse AttachGroupPolicy(AttachGroupPolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AttachGroupPolicy", AttachGroupPolicyResponse.class);
}
/**
*This API (AttachRolePolicy) is used to associate a policy with a role.
* @param req AttachRolePolicyRequest
* @return AttachRolePolicyResponse
* @throws TencentCloudSDKException
*/
public AttachRolePolicyResponse AttachRolePolicy(AttachRolePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AttachRolePolicy", AttachRolePolicyResponse.class);
}
/**
*This API (AttachUserPolicy) is used to associates a policy with a user.
* @param req AttachUserPolicyRequest
* @return AttachUserPolicyResponse
* @throws TencentCloudSDKException
*/
public AttachUserPolicyResponse AttachUserPolicy(AttachUserPolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AttachUserPolicy", AttachUserPolicyResponse.class);
}
/**
*This API is used to verify a custom multi-factor Token.
* @param req ConsumeCustomMFATokenRequest
* @return ConsumeCustomMFATokenResponse
* @throws TencentCloudSDKException
*/
public ConsumeCustomMFATokenResponse ConsumeCustomMFAToken(ConsumeCustomMFATokenRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ConsumeCustomMFAToken", ConsumeCustomMFATokenResponse.class);
}
/**
*This API is used to create an access key for a CAM user.
* @param req CreateAccessKeyRequest
* @return CreateAccessKeyResponse
* @throws TencentCloudSDKException
*/
public CreateAccessKeyResponse CreateAccessKey(CreateAccessKeyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAccessKey", CreateAccessKeyResponse.class);
}
/**
*This API is used to create a user group.
* @param req CreateGroupRequest
* @return CreateGroupResponse
* @throws TencentCloudSDKException
*/
public CreateGroupResponse CreateGroup(CreateGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateGroup", CreateGroupResponse.class);
}
/**
*This API is used to create role OIDC configurations.
* @param req CreateOIDCConfigRequest
* @return CreateOIDCConfigResponse
* @throws TencentCloudSDKException
*/
public CreateOIDCConfigResponse CreateOIDCConfig(CreateOIDCConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateOIDCConfig", CreateOIDCConfigResponse.class);
}
/**
*This API (CreatePolicy) is used to create a policy.
* @param req CreatePolicyRequest
* @return CreatePolicyResponse
* @throws TencentCloudSDKException
*/
public CreatePolicyResponse CreatePolicy(CreatePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreatePolicy", CreatePolicyResponse.class);
}
/**
*This API is used to add a policy version. After creating a policy version, you can easily change the policy by changing the policy version.
* @param req CreatePolicyVersionRequest
* @return CreatePolicyVersionResponse
* @throws TencentCloudSDKException
*/
public CreatePolicyVersionResponse CreatePolicyVersion(CreatePolicyVersionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreatePolicyVersion", CreatePolicyVersionResponse.class);
}
/**
*This API (CreateRole) is used to create a role.
* @param req CreateRoleRequest
* @return CreateRoleResponse
* @throws TencentCloudSDKException
*/
public CreateRoleResponse CreateRole(CreateRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateRole", CreateRoleResponse.class);
}
/**
*This API is used to create a SAML identity provider.
* @param req CreateSAMLProviderRequest
* @return CreateSAMLProviderResponse
* @throws TencentCloudSDKException
*/
public CreateSAMLProviderResponse CreateSAMLProvider(CreateSAMLProviderRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSAMLProvider", CreateSAMLProviderResponse.class);
}
/**
*This API is used to create a service-linked role.
* @param req CreateServiceLinkedRoleRequest
* @return CreateServiceLinkedRoleResponse
* @throws TencentCloudSDKException
*/
public CreateServiceLinkedRoleResponse CreateServiceLinkedRole(CreateServiceLinkedRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateServiceLinkedRole", CreateServiceLinkedRoleResponse.class);
}
/**
*This API is used to create a user OIDC configuration. Only one user OIDC IdP can be created, and the user SAML SSO IdP will be automatically disabled after it is created.
* @param req CreateUserOIDCConfigRequest
* @return CreateUserOIDCConfigResponse
* @throws TencentCloudSDKException
*/
public CreateUserOIDCConfigResponse CreateUserOIDCConfig(CreateUserOIDCConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateUserOIDCConfig", CreateUserOIDCConfigResponse.class);
}
/**
*This API is used to create user SAML configurations.
* @param req CreateUserSAMLConfigRequest
* @return CreateUserSAMLConfigResponse
* @throws TencentCloudSDKException
*/
public CreateUserSAMLConfigResponse CreateUserSAMLConfig(CreateUserSAMLConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateUserSAMLConfig", CreateUserSAMLConfigResponse.class);
}
/**
*This API is used to delete an access key for a CAM user.
Calling this API is a high-risk operation because the key cannot be recovered once deleted and Tencent Cloud will deny all requests that use this key. Proceed with caution.
* @param req DeleteAccessKeyRequest
* @return DeleteAccessKeyResponse
* @throws TencentCloudSDKException
*/
public DeleteAccessKeyResponse DeleteAccessKey(DeleteAccessKeyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAccessKey", DeleteAccessKeyResponse.class);
}
/**
*This API is used to delete a user group.
* @param req DeleteGroupRequest
* @return DeleteGroupResponse
* @throws TencentCloudSDKException
*/
public DeleteGroupResponse DeleteGroup(DeleteGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteGroup", DeleteGroupResponse.class);
}
/**
*This API is used to delete OIDC IdPs.
* @param req DeleteOIDCConfigRequest
* @return DeleteOIDCConfigResponse
* @throws TencentCloudSDKException
*/
public DeleteOIDCConfigResponse DeleteOIDCConfig(DeleteOIDCConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteOIDCConfig", DeleteOIDCConfigResponse.class);
}
/**
*This API (DeletePolicy) is used to delete a policy.
* @param req DeletePolicyRequest
* @return DeletePolicyResponse
* @throws TencentCloudSDKException
*/
public DeletePolicyResponse DeletePolicy(DeletePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeletePolicy", DeletePolicyResponse.class);
}
/**
*This API is used to delete a policy version of a policy.
* @param req DeletePolicyVersionRequest
* @return DeletePolicyVersionResponse
* @throws TencentCloudSDKException
*/
public DeletePolicyVersionResponse DeletePolicyVersion(DeletePolicyVersionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeletePolicyVersion", DeletePolicyVersionResponse.class);
}
/**
*This API (DeleteRole) is used to delete a specified role.
* @param req DeleteRoleRequest
* @return DeleteRoleResponse
* @throws TencentCloudSDKException
*/
public DeleteRoleResponse DeleteRole(DeleteRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRole", DeleteRoleResponse.class);
}
/**
*This API is used to delete a role permission boundary.
* @param req DeleteRolePermissionsBoundaryRequest
* @return DeleteRolePermissionsBoundaryResponse
* @throws TencentCloudSDKException
*/
public DeleteRolePermissionsBoundaryResponse DeleteRolePermissionsBoundary(DeleteRolePermissionsBoundaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteRolePermissionsBoundary", DeleteRolePermissionsBoundaryResponse.class);
}
/**
*This API is used to delete a SAML identity provider.
* @param req DeleteSAMLProviderRequest
* @return DeleteSAMLProviderResponse
* @throws TencentCloudSDKException
*/
public DeleteSAMLProviderResponse DeleteSAMLProvider(DeleteSAMLProviderRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSAMLProvider", DeleteSAMLProviderResponse.class);
}
/**
*This API is used to delete a service-linked role.
* @param req DeleteServiceLinkedRoleRequest
* @return DeleteServiceLinkedRoleResponse
* @throws TencentCloudSDKException
*/
public DeleteServiceLinkedRoleResponse DeleteServiceLinkedRole(DeleteServiceLinkedRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteServiceLinkedRole", DeleteServiceLinkedRoleResponse.class);
}
/**
*This API is used to delete a sub-user.
* @param req DeleteUserRequest
* @return DeleteUserResponse
* @throws TencentCloudSDKException
*/
public DeleteUserResponse DeleteUser(DeleteUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteUser", DeleteUserResponse.class);
}
/**
*This API is used to delete a user permission boundary.
* @param req DeleteUserPermissionsBoundaryRequest
* @return DeleteUserPermissionsBoundaryResponse
* @throws TencentCloudSDKException
*/
public DeleteUserPermissionsBoundaryResponse DeleteUserPermissionsBoundary(DeleteUserPermissionsBoundaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteUserPermissionsBoundary", DeleteUserPermissionsBoundaryResponse.class);
}
/**
*This API is used to query role OIDC configurations.
* @param req DescribeOIDCConfigRequest
* @return DescribeOIDCConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeOIDCConfigResponse DescribeOIDCConfig(DescribeOIDCConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeOIDCConfig", DescribeOIDCConfigResponse.class);
}
/**
*This API (DescribeRoleList) is used to get the role list under the account.
* @param req DescribeRoleListRequest
* @return DescribeRoleListResponse
* @throws TencentCloudSDKException
*/
public DescribeRoleListResponse DescribeRoleList(DescribeRoleListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRoleList", DescribeRoleListResponse.class);
}
/**
*This API is used to get a sub-account’s security settings.
* @param req DescribeSafeAuthFlagCollRequest
* @return DescribeSafeAuthFlagCollResponse
* @throws TencentCloudSDKException
*/
public DescribeSafeAuthFlagCollResponse DescribeSafeAuthFlagColl(DescribeSafeAuthFlagCollRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSafeAuthFlagColl", DescribeSafeAuthFlagCollResponse.class);
}
/**
*This API is used to query security settings.
* @param req DescribeSafeAuthFlagIntlRequest
* @return DescribeSafeAuthFlagIntlResponse
* @throws TencentCloudSDKException
*/
public DescribeSafeAuthFlagIntlResponse DescribeSafeAuthFlagIntl(DescribeSafeAuthFlagIntlRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSafeAuthFlagIntl", DescribeSafeAuthFlagIntlResponse.class);
}
/**
*This API is used to query sub-users through the sub-user UIN list.
* @param req DescribeSubAccountsRequest
* @return DescribeSubAccountsResponse
* @throws TencentCloudSDKException
*/
public DescribeSubAccountsResponse DescribeSubAccounts(DescribeSubAccountsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSubAccounts", DescribeSubAccountsResponse.class);
}
/**
*This API is used to query the user OIDC configuration.
* @param req DescribeUserOIDCConfigRequest
* @return DescribeUserOIDCConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeUserOIDCConfigResponse DescribeUserOIDCConfig(DescribeUserOIDCConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeUserOIDCConfig", DescribeUserOIDCConfigResponse.class);
}
/**
*This API is used to query user SAML configurations.
* @param req DescribeUserSAMLConfigRequest
* @return DescribeUserSAMLConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeUserSAMLConfigResponse DescribeUserSAMLConfig(DescribeUserSAMLConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeUserSAMLConfig", DescribeUserSAMLConfigResponse.class);
}
/**
*This API (DetachGroupPolicy) is used to unassociate a policy and a user group.
* @param req DetachGroupPolicyRequest
* @return DetachGroupPolicyResponse
* @throws TencentCloudSDKException
*/
public DetachGroupPolicyResponse DetachGroupPolicy(DetachGroupPolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DetachGroupPolicy", DetachGroupPolicyResponse.class);
}
/**
*This API (DetachRolePolicy) is used to unassociate a policy and a role.
* @param req DetachRolePolicyRequest
* @return DetachRolePolicyResponse
* @throws TencentCloudSDKException
*/
public DetachRolePolicyResponse DetachRolePolicy(DetachRolePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DetachRolePolicy", DetachRolePolicyResponse.class);
}
/**
*This API (DetachUserPolicy) is used to unassociate a policy and a user.
* @param req DetachUserPolicyRequest
* @return DetachUserPolicyResponse
* @throws TencentCloudSDKException
*/
public DetachUserPolicyResponse DetachUserPolicy(DetachUserPolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DetachUserPolicy", DetachUserPolicyResponse.class);
}
/**
*This API is used to disable user SSO.
* @param req DisableUserSSORequest
* @return DisableUserSSOResponse
* @throws TencentCloudSDKException
*/
public DisableUserSSOResponse DisableUserSSO(DisableUserSSORequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisableUserSSO", DisableUserSSOResponse.class);
}
/**
*This API is used to query account summary.
* @param req GetAccountSummaryRequest
* @return GetAccountSummaryResponse
* @throws TencentCloudSDKException
*/
public GetAccountSummaryResponse GetAccountSummary(GetAccountSummaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetAccountSummary", GetAccountSummaryResponse.class);
}
/**
*This API is used to get information associated with a custom multi-factor Token
* @param req GetCustomMFATokenInfoRequest
* @return GetCustomMFATokenInfoResponse
* @throws TencentCloudSDKException
*/
public GetCustomMFATokenInfoResponse GetCustomMFATokenInfo(GetCustomMFATokenInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetCustomMFATokenInfo", GetCustomMFATokenInfoResponse.class);
}
/**
*This API is used to query user group details.
* @param req GetGroupRequest
* @return GetGroupResponse
* @throws TencentCloudSDKException
*/
public GetGroupResponse GetGroup(GetGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetGroup", GetGroupResponse.class);
}
/**
*This API (GetPolicy) is used to query and view policy details.
* @param req GetPolicyRequest
* @return GetPolicyResponse
* @throws TencentCloudSDKException
*/
public GetPolicyResponse GetPolicy(GetPolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetPolicy", GetPolicyResponse.class);
}
/**
*This API is used to query policy version details.
* @param req GetPolicyVersionRequest
* @return GetPolicyVersionResponse
* @throws TencentCloudSDKException
*/
public GetPolicyVersionResponse GetPolicyVersion(GetPolicyVersionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetPolicyVersion", GetPolicyVersionResponse.class);
}
/**
*This API (GetRole) is used to get the details of a specified role.
* @param req GetRoleRequest
* @return GetRoleResponse
* @throws TencentCloudSDKException
*/
public GetRoleResponse GetRole(GetRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetRole", GetRoleResponse.class);
}
/**
*This API is used to query SAML identity provider details.
* @param req GetSAMLProviderRequest
* @return GetSAMLProviderResponse
* @throws TencentCloudSDKException
*/
public GetSAMLProviderResponse GetSAMLProvider(GetSAMLProviderRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetSAMLProvider", GetSAMLProviderResponse.class);
}
/**
*This API is used to get a key’s recent usage details.
* @param req GetSecurityLastUsedRequest
* @return GetSecurityLastUsedResponse
* @throws TencentCloudSDKException
*/
public GetSecurityLastUsedResponse GetSecurityLastUsed(GetSecurityLastUsedRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetSecurityLastUsed", GetSecurityLastUsedResponse.class);
}
/**
*This API is used to get the status of the service-linked role deletion based on the `TaskId`
* @param req GetServiceLinkedRoleDeletionStatusRequest
* @return GetServiceLinkedRoleDeletionStatusResponse
* @throws TencentCloudSDKException
*/
public GetServiceLinkedRoleDeletionStatusResponse GetServiceLinkedRoleDeletionStatus(GetServiceLinkedRoleDeletionStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetServiceLinkedRoleDeletionStatus", GetServiceLinkedRoleDeletionStatusResponse.class);
}
/**
*This API is used to query sub-users.
* @param req GetUserRequest
* @return GetUserResponse
* @throws TencentCloudSDKException
*/
public GetUserResponse GetUser(GetUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetUser", GetUserResponse.class);
}
/**
*This API is used to get the user AppId.
* @param req GetUserAppIdRequest
* @return GetUserAppIdResponse
* @throws TencentCloudSDKException
*/
public GetUserAppIdResponse GetUserAppId(GetUserAppIdRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GetUserAppId", GetUserAppIdResponse.class);
}
/**
*This API is used to list the access keys associated with a specified CAM user.
* @param req ListAccessKeysRequest
* @return ListAccessKeysResponse
* @throws TencentCloudSDKException
*/
public ListAccessKeysResponse ListAccessKeys(ListAccessKeysRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListAccessKeys", ListAccessKeysResponse.class);
}
/**
*This API (ListAttachedGroupPolicies) is used to query the list of policies associated with a user group.
* @param req ListAttachedGroupPoliciesRequest
* @return ListAttachedGroupPoliciesResponse
* @throws TencentCloudSDKException
*/
public ListAttachedGroupPoliciesResponse ListAttachedGroupPolicies(ListAttachedGroupPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListAttachedGroupPolicies", ListAttachedGroupPoliciesResponse.class);
}
/**
*This API (ListAttachedRolePolicies) is used to obtain the list of the policies associated with a role.
* @param req ListAttachedRolePoliciesRequest
* @return ListAttachedRolePoliciesResponse
* @throws TencentCloudSDKException
*/
public ListAttachedRolePoliciesResponse ListAttachedRolePolicies(ListAttachedRolePoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListAttachedRolePolicies", ListAttachedRolePoliciesResponse.class);
}
/**
*This API is used to list policies associated with the user (including those inherited from the user group).
* @param req ListAttachedUserAllPoliciesRequest
* @return ListAttachedUserAllPoliciesResponse
* @throws TencentCloudSDKException
*/
public ListAttachedUserAllPoliciesResponse ListAttachedUserAllPolicies(ListAttachedUserAllPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListAttachedUserAllPolicies", ListAttachedUserAllPoliciesResponse.class);
}
/**
*This API (ListAttachedUserPolicies) is used to query the list of policies associated with a sub-account.
* @param req ListAttachedUserPoliciesRequest
* @return ListAttachedUserPoliciesResponse
* @throws TencentCloudSDKException
*/
public ListAttachedUserPoliciesResponse ListAttachedUserPolicies(ListAttachedUserPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListAttachedUserPolicies", ListAttachedUserPoliciesResponse.class);
}
/**
*This API is used to get the collaborator list.
* @param req ListCollaboratorsRequest
* @return ListCollaboratorsResponse
* @throws TencentCloudSDKException
*/
public ListCollaboratorsResponse ListCollaborators(ListCollaboratorsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListCollaborators", ListCollaboratorsResponse.class);
}
/**
*This API (ListEntitiesForPolicy) is used to query the list of entities associated with a policy.
* @param req ListEntitiesForPolicyRequest
* @return ListEntitiesForPolicyResponse
* @throws TencentCloudSDKException
*/
public ListEntitiesForPolicyResponse ListEntitiesForPolicy(ListEntitiesForPolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListEntitiesForPolicy", ListEntitiesForPolicyResponse.class);
}
/**
*This API is used to query the list of user groups.
* @param req ListGroupsRequest
* @return ListGroupsResponse
* @throws TencentCloudSDKException
*/
public ListGroupsResponse ListGroups(ListGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListGroups", ListGroupsResponse.class);
}
/**
*This API is used to list user groups associated with a user.
* @param req ListGroupsForUserRequest
* @return ListGroupsForUserResponse
* @throws TencentCloudSDKException
*/
public ListGroupsForUserResponse ListGroupsForUser(ListGroupsForUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListGroupsForUser", ListGroupsForUserResponse.class);
}
/**
*This API is used to query the policy list.
* @param req ListPoliciesRequest
* @return ListPoliciesResponse
* @throws TencentCloudSDKException
*/
public ListPoliciesResponse ListPolicies(ListPoliciesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListPolicies", ListPoliciesResponse.class);
}
/**
*This API is used to get the list of policy versions.
* @param req ListPolicyVersionsRequest
* @return ListPolicyVersionsResponse
* @throws TencentCloudSDKException
*/
public ListPolicyVersionsResponse ListPolicyVersions(ListPolicyVersionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListPolicyVersions", ListPolicyVersionsResponse.class);
}
/**
*This API is used to query the list of SAML identity providers.
* @param req ListSAMLProvidersRequest
* @return ListSAMLProvidersResponse
* @throws TencentCloudSDKException
*/
public ListSAMLProvidersResponse ListSAMLProviders(ListSAMLProvidersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListSAMLProviders", ListSAMLProvidersResponse.class);
}
/**
*This API is used to pull sub-users.
* @param req ListUsersRequest
* @return ListUsersResponse
* @throws TencentCloudSDKException
*/
public ListUsersResponse ListUsers(ListUsersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListUsers", ListUsersResponse.class);
}
/**
*This API is used to query the list of users associated with a user group.
* @param req ListUsersForGroupRequest
* @return ListUsersForGroupResponse
* @throws TencentCloudSDKException
*/
public ListUsersForGroupResponse ListUsersForGroup(ListUsersForGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ListUsersForGroup", ListUsersForGroupResponse.class);
}
/**
*This API is used to set a role permission boundary.
* @param req PutRolePermissionsBoundaryRequest
* @return PutRolePermissionsBoundaryResponse
* @throws TencentCloudSDKException
*/
public PutRolePermissionsBoundaryResponse PutRolePermissionsBoundary(PutRolePermissionsBoundaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "PutRolePermissionsBoundary", PutRolePermissionsBoundaryResponse.class);
}
/**
*This API is used to set a user permission boundary.
* @param req PutUserPermissionsBoundaryRequest
* @return PutUserPermissionsBoundaryResponse
* @throws TencentCloudSDKException
*/
public PutUserPermissionsBoundaryResponse PutUserPermissionsBoundary(PutUserPermissionsBoundaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "PutUserPermissionsBoundary", PutUserPermissionsBoundaryResponse.class);
}
/**
*This API is used to delete users from a user group.
* @param req RemoveUserFromGroupRequest
* @return RemoveUserFromGroupResponse
* @throws TencentCloudSDKException
*/
public RemoveUserFromGroupResponse RemoveUserFromGroup(RemoveUserFromGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "RemoveUserFromGroup", RemoveUserFromGroupResponse.class);
}
/**
*This API is used to set the operative policy version.
* @param req SetDefaultPolicyVersionRequest
* @return SetDefaultPolicyVersionResponse
* @throws TencentCloudSDKException
*/
public SetDefaultPolicyVersionResponse SetDefaultPolicyVersion(SetDefaultPolicyVersionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SetDefaultPolicyVersion", SetDefaultPolicyVersionResponse.class);
}
/**
*This API is used to set account verification for login and sensitive operations for sub-users.
* @param req SetMfaFlagRequest
* @return SetMfaFlagResponse
* @throws TencentCloudSDKException
*/
public SetMfaFlagResponse SetMfaFlag(SetMfaFlagRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SetMfaFlag", SetMfaFlagResponse.class);
}
/**
*This API is used to bind tags to a role.
* @param req TagRoleRequest
* @return TagRoleResponse
* @throws TencentCloudSDKException
*/
public TagRoleResponse TagRole(TagRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "TagRole", TagRoleResponse.class);
}
/**
*This API is used to unbind tags from a role.
* @param req UntagRoleRequest
* @return UntagRoleResponse
* @throws TencentCloudSDKException
*/
public UntagRoleResponse UntagRole(UntagRoleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UntagRole", UntagRoleResponse.class);
}
/**
*This API is used to update an access key for a CAM user.
* @param req UpdateAccessKeyRequest
* @return UpdateAccessKeyResponse
* @throws TencentCloudSDKException
*/
public UpdateAccessKeyResponse UpdateAccessKey(UpdateAccessKeyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateAccessKey", UpdateAccessKeyResponse.class);
}
/**
*This API (UpdateAssumeRolePolicy) is used to modify the trust policy of a role.
* @param req UpdateAssumeRolePolicyRequest
* @return UpdateAssumeRolePolicyResponse
* @throws TencentCloudSDKException
*/
public UpdateAssumeRolePolicyResponse UpdateAssumeRolePolicy(UpdateAssumeRolePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateAssumeRolePolicy", UpdateAssumeRolePolicyResponse.class);
}
/**
*This API is used to update a user group.
* @param req UpdateGroupRequest
* @return UpdateGroupResponse
* @throws TencentCloudSDKException
*/
public UpdateGroupResponse UpdateGroup(UpdateGroupRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateGroup", UpdateGroupResponse.class);
}
/**
*This API is used to modify role OIDC configurations.
* @param req UpdateOIDCConfigRequest
* @return UpdateOIDCConfigResponse
* @throws TencentCloudSDKException
*/
public UpdateOIDCConfigResponse UpdateOIDCConfig(UpdateOIDCConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateOIDCConfig", UpdateOIDCConfigResponse.class);
}
/**
*This API is used to update a policy.
This API will update the default version of an existing policy instead of creating a new one. If no policy exists, a default version will be created.
* @param req UpdatePolicyRequest
* @return UpdatePolicyResponse
* @throws TencentCloudSDKException
*/
public UpdatePolicyResponse UpdatePolicy(UpdatePolicyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdatePolicy", UpdatePolicyResponse.class);
}
/**
*This API is used to modify a role's login permissions.
* @param req UpdateRoleConsoleLoginRequest
* @return UpdateRoleConsoleLoginResponse
* @throws TencentCloudSDKException
*/
public UpdateRoleConsoleLoginResponse UpdateRoleConsoleLogin(UpdateRoleConsoleLoginRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateRoleConsoleLogin", UpdateRoleConsoleLoginResponse.class);
}
/**
*This API (UpdateRoleDescription) is used to modify the description of a role.
* @param req UpdateRoleDescriptionRequest
* @return UpdateRoleDescriptionResponse
* @throws TencentCloudSDKException
*/
public UpdateRoleDescriptionResponse UpdateRoleDescription(UpdateRoleDescriptionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateRoleDescription", UpdateRoleDescriptionResponse.class);
}
/**
*This API is used to update SAML identity provider information.
* @param req UpdateSAMLProviderRequest
* @return UpdateSAMLProviderResponse
* @throws TencentCloudSDKException
*/
public UpdateSAMLProviderResponse UpdateSAMLProvider(UpdateSAMLProviderRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateSAMLProvider", UpdateSAMLProviderResponse.class);
}
/**
*This API is used to update a sub-user.
* @param req UpdateUserRequest
* @return UpdateUserResponse
* @throws TencentCloudSDKException
*/
public UpdateUserResponse UpdateUser(UpdateUserRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateUser", UpdateUserResponse.class);
}
/**
*This API is used to modify the user OIDC configuration.
* @param req UpdateUserOIDCConfigRequest
* @return UpdateUserOIDCConfigResponse
* @throws TencentCloudSDKException
*/
public UpdateUserOIDCConfigResponse UpdateUserOIDCConfig(UpdateUserOIDCConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateUserOIDCConfig", UpdateUserOIDCConfigResponse.class);
}
/**
*This API is used to modify user SAML configurations.
* @param req UpdateUserSAMLConfigRequest
* @return UpdateUserSAMLConfigResponse
* @throws TencentCloudSDKException
*/
public UpdateUserSAMLConfigResponse UpdateUserSAMLConfig(UpdateUserSAMLConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateUserSAMLConfig", UpdateUserSAMLConfigResponse.class);
}
}