tencentcloud-sdk-cam 1.0.235 → 1.0.239

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: fb433144919226bb7f2e8e790741e3a762213df7
4
- data.tar.gz: 6b4b1041f1d207791ece3de828eb6cabae9c6078
3
+ metadata.gz: 2c8825c910cda1f8067e465938a4db9064565464
4
+ data.tar.gz: 1c617cb894c4c83f2f2627a4a2fe56e1c44494bb
5
5
  SHA512:
6
- metadata.gz: 9f976cffa5a34034ac0c9c309c8c3a94ed1b4a6b5f8509b4972df5a3440ed58f592b68df5748f3afb59233bcfb0a8ea81a8f41d9eb3c451b6d16e91bcd7dd69f
7
- data.tar.gz: 27aa2fddc33e796a9be83eff5df6f6e33d8ddaba64443c3bd66ddf5653db2aa762b5d0a3f76ae77cbbbb463afec70b5e054e567fe832f452aa7c81c291213c9a
6
+ metadata.gz: 5105487b85f36e0acfaaef2397d8ca8d499cb8e1e107b618e828c2ecd78fbad0f68e4e755b4be114ae69df15de53774fcebfa13cd9f789853f8477ec920bdc84
7
+ data.tar.gz: 74fd654a4869770b2d333715a79e61ac685abc0c3b94e2b1c6448f4c4292d69cc5a24ac00e8ad091bd8b6366ff45e6281165a2c984d2cda12de05023eb75d6c5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.235
1
+ 1.0.239
@@ -1133,6 +1133,30 @@ module TencentCloud
1133
1133
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
1134
  end
1135
1135
 
1136
+ # 列出用户关联的策略(包括随组关联)
1137
+
1138
+ # @param request: Request instance for ListAttachedUserAllPolicies.
1139
+ # @type request: :class:`Tencentcloud::cam::V20190116::ListAttachedUserAllPoliciesRequest`
1140
+ # @rtype: :class:`Tencentcloud::cam::V20190116::ListAttachedUserAllPoliciesResponse`
1141
+ def ListAttachedUserAllPolicies(request)
1142
+ body = send_request('ListAttachedUserAllPolicies', request.serialize)
1143
+ response = JSON.parse(body)
1144
+ if response['Response'].key?('Error') == false
1145
+ model = ListAttachedUserAllPoliciesResponse.new
1146
+ model.deserialize(response['Response'])
1147
+ model
1148
+ else
1149
+ code = response['Response']['Error']['Code']
1150
+ message = response['Response']['Error']['Message']
1151
+ reqid = response['Response']['RequestId']
1152
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1153
+ end
1154
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1155
+ raise e
1156
+ rescue StandardError => e
1157
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1158
+ end
1159
+
1136
1160
  # 本接口(ListAttachedUserPolicies)可用于查询子账号关联的策略列表。
1137
1161
 
1138
1162
  # @param request: Request instance for ListAttachedUserPolicies.
@@ -433,6 +433,84 @@ module TencentCloud
433
433
  end
434
434
  end
435
435
 
436
+ # 用户关联的策略详情
437
+ class AttachedUserPolicy < TencentCloud::Common::AbstractModel
438
+ # @param PolicyId: 策略ID
439
+ # @type PolicyId: String
440
+ # @param PolicyName: 策略名
441
+ # @type PolicyName: String
442
+ # @param Description: 策略描述
443
+ # @type Description: String
444
+ # @param AddTime: 创建时间
445
+ # @type AddTime: String
446
+ # @param StrategyType: 策略类型(1表示自定义策略,2表示预设策略)
447
+ # @type StrategyType: String
448
+ # @param CreateMode: 创建模式(1表示按产品或项目权限创建的策略,其他表示策略语法创建的策略)
449
+ # @type CreateMode: String
450
+ # @param Groups: 随组关联信息
451
+ # 注意:此字段可能返回 null,表示取不到有效值。
452
+ # @type Groups: Array
453
+ # @param Deactived: 是否已下线(0:否 1:是)
454
+ # 注意:此字段可能返回 null,表示取不到有效值。
455
+ # @type Deactived: Integer
456
+ # @param DeactivedDetail: 已下线的产品列表
457
+ # 注意:此字段可能返回 null,表示取不到有效值。
458
+ # @type DeactivedDetail: Array
459
+
460
+ attr_accessor :PolicyId, :PolicyName, :Description, :AddTime, :StrategyType, :CreateMode, :Groups, :Deactived, :DeactivedDetail
461
+
462
+ def initialize(policyid=nil, policyname=nil, description=nil, addtime=nil, strategytype=nil, createmode=nil, groups=nil, deactived=nil, deactiveddetail=nil)
463
+ @PolicyId = policyid
464
+ @PolicyName = policyname
465
+ @Description = description
466
+ @AddTime = addtime
467
+ @StrategyType = strategytype
468
+ @CreateMode = createmode
469
+ @Groups = groups
470
+ @Deactived = deactived
471
+ @DeactivedDetail = deactiveddetail
472
+ end
473
+
474
+ def deserialize(params)
475
+ @PolicyId = params['PolicyId']
476
+ @PolicyName = params['PolicyName']
477
+ @Description = params['Description']
478
+ @AddTime = params['AddTime']
479
+ @StrategyType = params['StrategyType']
480
+ @CreateMode = params['CreateMode']
481
+ unless params['Groups'].nil?
482
+ @Groups = []
483
+ params['Groups'].each do |i|
484
+ attacheduserpolicygroupinfo_tmp = AttachedUserPolicyGroupInfo.new
485
+ attacheduserpolicygroupinfo_tmp.deserialize(i)
486
+ @Groups << attacheduserpolicygroupinfo_tmp
487
+ end
488
+ end
489
+ @Deactived = params['Deactived']
490
+ @DeactivedDetail = params['DeactivedDetail']
491
+ end
492
+ end
493
+
494
+ # 用户关联策略(随组管理)信息
495
+ class AttachedUserPolicyGroupInfo < TencentCloud::Common::AbstractModel
496
+ # @param GroupId: 分组ID
497
+ # @type GroupId: Integer
498
+ # @param GroupName: 分组名称
499
+ # @type GroupName: String
500
+
501
+ attr_accessor :GroupId, :GroupName
502
+
503
+ def initialize(groupid=nil, groupname=nil)
504
+ @GroupId = groupid
505
+ @GroupName = groupname
506
+ end
507
+
508
+ def deserialize(params)
509
+ @GroupId = params['GroupId']
510
+ @GroupName = params['GroupName']
511
+ end
512
+ end
513
+
436
514
  # ConsumeCustomMFAToken请求参数结构体
437
515
  class ConsumeCustomMFATokenRequest < TencentCloud::Common::AbstractModel
438
516
  # @param MFAToken: 自定义多因子验证Token
@@ -2380,6 +2458,73 @@ module TencentCloud
2380
2458
  end
2381
2459
  end
2382
2460
 
2461
+ # ListAttachedUserAllPolicies请求参数结构体
2462
+ class ListAttachedUserAllPoliciesRequest < TencentCloud::Common::AbstractModel
2463
+ # @param TargetUin: 目标用户ID
2464
+ # @type TargetUin: Integer
2465
+ # @param Rp: 每页数量,必须大于 0 且小于或等于 200
2466
+ # @type Rp: Integer
2467
+ # @param Page: 页码,从 1开始,不能大于 200
2468
+ # @type Page: Integer
2469
+ # @param AttachType: 0:返回直接关联和随组关联策略,1:只返回直接关联策略,2:只返回随组关联策略
2470
+ # @type AttachType: Integer
2471
+ # @param StrategyType: 策略类型
2472
+ # @type StrategyType: Integer
2473
+ # @param Keyword: 搜索关键字
2474
+ # @type Keyword: String
2475
+
2476
+ attr_accessor :TargetUin, :Rp, :Page, :AttachType, :StrategyType, :Keyword
2477
+
2478
+ def initialize(targetuin=nil, rp=nil, page=nil, attachtype=nil, strategytype=nil, keyword=nil)
2479
+ @TargetUin = targetuin
2480
+ @Rp = rp
2481
+ @Page = page
2482
+ @AttachType = attachtype
2483
+ @StrategyType = strategytype
2484
+ @Keyword = keyword
2485
+ end
2486
+
2487
+ def deserialize(params)
2488
+ @TargetUin = params['TargetUin']
2489
+ @Rp = params['Rp']
2490
+ @Page = params['Page']
2491
+ @AttachType = params['AttachType']
2492
+ @StrategyType = params['StrategyType']
2493
+ @Keyword = params['Keyword']
2494
+ end
2495
+ end
2496
+
2497
+ # ListAttachedUserAllPolicies返回参数结构体
2498
+ class ListAttachedUserAllPoliciesResponse < TencentCloud::Common::AbstractModel
2499
+ # @param PolicyList: 策略列表数据
2500
+ # @type PolicyList: Array
2501
+ # @param TotalNum: 策略总数
2502
+ # @type TotalNum: Integer
2503
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2504
+ # @type RequestId: String
2505
+
2506
+ attr_accessor :PolicyList, :TotalNum, :RequestId
2507
+
2508
+ def initialize(policylist=nil, totalnum=nil, requestid=nil)
2509
+ @PolicyList = policylist
2510
+ @TotalNum = totalnum
2511
+ @RequestId = requestid
2512
+ end
2513
+
2514
+ def deserialize(params)
2515
+ unless params['PolicyList'].nil?
2516
+ @PolicyList = []
2517
+ params['PolicyList'].each do |i|
2518
+ attacheduserpolicy_tmp = AttachedUserPolicy.new
2519
+ attacheduserpolicy_tmp.deserialize(i)
2520
+ @PolicyList << attacheduserpolicy_tmp
2521
+ end
2522
+ end
2523
+ @TotalNum = params['TotalNum']
2524
+ @RequestId = params['RequestId']
2525
+ end
2526
+ end
2527
+
2383
2528
  # ListAttachedUserPolicies请求参数结构体
2384
2529
  class ListAttachedUserPoliciesRequest < TencentCloud::Common::AbstractModel
2385
2530
  # @param TargetUin: 子账号 uin
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.235
4
+ version: 1.0.239
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-05 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common