tencentcloud-sdk-cam 1.0.233 → 1.0.237
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/v20190116/client.rb +24 -0
- data/lib/v20190116/models.rb +145 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4ccbf2fbfedf908c6495920411c8ccda8d6d299
|
4
|
+
data.tar.gz: 9bffc1efdc0fcbd6af66d82ea9390cb79b1e25be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cc729a8dea0407a16d859814a0e3bb8ba49dc25a067c06ea53d825743fbf815300c4c96e35d8dbf87febd2d35fcb3f5ec70eed504692dc0017343be937721cd
|
7
|
+
data.tar.gz: 4789e3c5087c86bcf94b05c86184884db977f9ef237861077aef8806b6ab44b01245cded34a2215127b3cb11d1f302f0b4c8cebb8adf3cfdd4a69d3950fbc3dd
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.237
|
data/lib/v20190116/client.rb
CHANGED
@@ -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.
|
data/lib/v20190116/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 1.0.237
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|