tencentcloud-sdk-nodejs-cam 4.0.264 → 4.0.268

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -548,21 +548,17 @@ export interface DetachGroupPolicyRequest {
548
548
  DetachGroupId: number;
549
549
  }
550
550
  /**
551
- * UpdateAssumeRolePolicy请求参数结构体
551
+ * 用户关联策略(随组管理)信息
552
552
  */
553
- export interface UpdateAssumeRolePolicyRequest {
553
+ export interface AttachedUserPolicyGroupInfo {
554
554
  /**
555
- * 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
556
- */
557
- PolicyDocument: string;
558
- /**
559
- * 角色ID,用于指定角色,入参 RoleId 与 RoleName 二选一
555
+ * 分组ID
560
556
  */
561
- RoleId?: string;
557
+ GroupId: number;
562
558
  /**
563
- * 角色名称,用于指定角色,入参 RoleId 与 RoleName 二选一
559
+ * 分组名称
564
560
  */
565
- RoleName?: string;
561
+ GroupName: string;
566
562
  }
567
563
  /**
568
564
  * ListGroupsForUser返回参数结构体
@@ -880,6 +876,23 @@ export interface SecretIdLastUsed {
880
876
  */
881
877
  LastUsedDate: string;
882
878
  }
879
+ /**
880
+ * ListAttachedUserAllPolicies返回参数结构体
881
+ */
882
+ export interface ListAttachedUserAllPoliciesResponse {
883
+ /**
884
+ * 策略列表数据
885
+ */
886
+ PolicyList: Array<AttachedUserPolicy>;
887
+ /**
888
+ * 策略总数
889
+ */
890
+ TotalNum: number;
891
+ /**
892
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
893
+ */
894
+ RequestId?: string;
895
+ }
883
896
  /**
884
897
  * DeleteGroup请求参数结构体
885
898
  */
@@ -1166,6 +1179,23 @@ export interface AddUserRequest {
1166
1179
  */
1167
1180
  Email?: string;
1168
1181
  }
1182
+ /**
1183
+ * UpdateAssumeRolePolicy请求参数结构体
1184
+ */
1185
+ export interface UpdateAssumeRolePolicyRequest {
1186
+ /**
1187
+ * 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
1188
+ */
1189
+ PolicyDocument: string;
1190
+ /**
1191
+ * 角色ID,用于指定角色,入参 RoleId 与 RoleName 二选一
1192
+ */
1193
+ RoleId?: string;
1194
+ /**
1195
+ * 角色名称,用于指定角色,入参 RoleId 与 RoleName 二选一
1196
+ */
1197
+ RoleName?: string;
1198
+ }
1169
1199
  /**
1170
1200
  * 登录和敏感操作flag
1171
1201
  */
@@ -1966,6 +1996,35 @@ export interface CreatePolicyRequest {
1966
1996
  */
1967
1997
  Description?: string;
1968
1998
  }
1999
+ /**
2000
+ * ListAttachedUserAllPolicies请求参数结构体
2001
+ */
2002
+ export interface ListAttachedUserAllPoliciesRequest {
2003
+ /**
2004
+ * 目标用户ID
2005
+ */
2006
+ TargetUin: number;
2007
+ /**
2008
+ * 每页数量,必须大于 0 且小于或等于 200
2009
+ */
2010
+ Rp: number;
2011
+ /**
2012
+ * 页码,从 1开始,不能大于 200
2013
+ */
2014
+ Page: number;
2015
+ /**
2016
+ * 0:返回直接关联和随组关联策略,1:只返回直接关联策略,2:只返回随组关联策略
2017
+ */
2018
+ AttachType: number;
2019
+ /**
2020
+ * 策略类型
2021
+ */
2022
+ StrategyType?: number;
2023
+ /**
2024
+ * 搜索关键字
2025
+ */
2026
+ Keyword?: string;
2027
+ }
1969
2028
  /**
1970
2029
  * DeletePolicyVersion请求参数结构体
1971
2030
  */
@@ -2332,6 +2391,50 @@ export interface CreateRoleRequest {
2332
2391
  */
2333
2392
  SessionDuration?: number;
2334
2393
  }
2394
+ /**
2395
+ * 用户关联的策略详情
2396
+ */
2397
+ export interface AttachedUserPolicy {
2398
+ /**
2399
+ * 策略ID
2400
+ */
2401
+ PolicyId: string;
2402
+ /**
2403
+ * 策略名
2404
+ */
2405
+ PolicyName: string;
2406
+ /**
2407
+ * 策略描述
2408
+ */
2409
+ Description: string;
2410
+ /**
2411
+ * 创建时间
2412
+ */
2413
+ AddTime: string;
2414
+ /**
2415
+ * 策略类型(1表示自定义策略,2表示预设策略)
2416
+ */
2417
+ StrategyType: string;
2418
+ /**
2419
+ * 创建模式(1表示按产品或项目权限创建的策略,其他表示策略语法创建的策略)
2420
+ */
2421
+ CreateMode: string;
2422
+ /**
2423
+ * 随组关联信息
2424
+ 注意:此字段可能返回 null,表示取不到有效值。
2425
+ */
2426
+ Groups: Array<AttachedUserPolicyGroupInfo>;
2427
+ /**
2428
+ * 是否已下线(0:否 1:是)
2429
+ 注意:此字段可能返回 null,表示取不到有效值。
2430
+ */
2431
+ Deactived: number;
2432
+ /**
2433
+ * 已下线的产品列表
2434
+ 注意:此字段可能返回 null,表示取不到有效值。
2435
+ */
2436
+ DeactivedDetail: Array<string>;
2437
+ }
2335
2438
  /**
2336
2439
  * DeleteServiceLinkedRole返回参数结构体
2337
2440
  */