tencentcloud-sdk-organization 3.0.805 → 3.0.807
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/v20210331/client.rb +49 -1
- data/lib/v20210331/models.rb +215 -2
- 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: 2547fd9628753d41a8465e29b71291cda8fd28cd
|
4
|
+
data.tar.gz: 57a13fe3ad0bc93b7c0cd18a4209341248666800
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2d8bfffcf53ba61b9c55f719ed7ea98479d6aaa5d23c875f007b7b17f7f0b74a58f53aedf938b4282d6c71212098fd9a15abbb36156f25d4aea0c614d17fdae
|
7
|
+
data.tar.gz: fb67f7eb845c6b0402f9a515542b98abbcf4f3324dbfb8b3a04626497a0989ad2df504c705d8636674fe6163094daa4eaef34806797d2859a40fb7891eca8884
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.807
|
data/lib/v20210331/client.rb
CHANGED
@@ -389,7 +389,7 @@ module TencentCloud
|
|
389
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
390
|
end
|
391
391
|
|
392
|
-
#
|
392
|
+
# 创建一个特殊类型的策略,您可以关联到企业组织Root节点、企业部门节点或者企业的成员账号。
|
393
393
|
|
394
394
|
# @param request: Request instance for CreatePolicy.
|
395
395
|
# @type request: :class:`Tencentcloud::organization::V20210331::CreatePolicyRequest`
|
@@ -677,6 +677,30 @@ module TencentCloud
|
|
677
677
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
678
|
end
|
679
679
|
|
680
|
+
# 查询目标关联的有效策略
|
681
|
+
|
682
|
+
# @param request: Request instance for DescribeEffectivePolicy.
|
683
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DescribeEffectivePolicyRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DescribeEffectivePolicyResponse`
|
685
|
+
def DescribeEffectivePolicy(request)
|
686
|
+
body = send_request('DescribeEffectivePolicy', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DescribeEffectivePolicyResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
680
704
|
# 获取企业组织信息
|
681
705
|
|
682
706
|
# @param request: Request instance for DescribeOrganization.
|
@@ -1157,6 +1181,30 @@ module TencentCloud
|
|
1157
1181
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1158
1182
|
end
|
1159
1183
|
|
1184
|
+
# 获取成员标签检测不合规资源列表
|
1185
|
+
|
1186
|
+
# @param request: Request instance for ListNonCompliantResource.
|
1187
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::ListNonCompliantResourceRequest`
|
1188
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::ListNonCompliantResourceResponse`
|
1189
|
+
def ListNonCompliantResource(request)
|
1190
|
+
body = send_request('ListNonCompliantResource', request.serialize)
|
1191
|
+
response = JSON.parse(body)
|
1192
|
+
if response['Response'].key?('Error') == false
|
1193
|
+
model = ListNonCompliantResourceResponse.new
|
1194
|
+
model.deserialize(response['Response'])
|
1195
|
+
model
|
1196
|
+
else
|
1197
|
+
code = response['Response']['Error']['Code']
|
1198
|
+
message = response['Response']['Error']['Message']
|
1199
|
+
reqid = response['Response']['RequestId']
|
1200
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1201
|
+
end
|
1202
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1203
|
+
raise e
|
1204
|
+
rescue StandardError => e
|
1205
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1206
|
+
end
|
1207
|
+
|
1160
1208
|
# 获取组织成员访问身份列表
|
1161
1209
|
|
1162
1210
|
# @param request: Request instance for ListOrganizationIdentity.
|
data/lib/v20210331/models.rb
CHANGED
@@ -1017,7 +1017,7 @@ module TencentCloud
|
|
1017
1017
|
|
1018
1018
|
# DeletePolicy请求参数结构体
|
1019
1019
|
class DeletePolicyRequest < TencentCloud::Common::AbstractModel
|
1020
|
-
# @param PolicyId: 需要删除的策略ID。可以调用[ListPolicies](https://
|
1020
|
+
# @param PolicyId: 需要删除的策略ID。可以调用[ListPolicies](https://cloud.tencent.com/document/product/850/105311)获取
|
1021
1021
|
# @type PolicyId: Integer
|
1022
1022
|
# @param Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
1023
1023
|
# @type Type: String
|
@@ -1181,6 +1181,46 @@ module TencentCloud
|
|
1181
1181
|
end
|
1182
1182
|
end
|
1183
1183
|
|
1184
|
+
# DescribeEffectivePolicy请求参数结构体
|
1185
|
+
class DescribeEffectivePolicyRequest < TencentCloud::Common::AbstractModel
|
1186
|
+
# @param TargetId: 账号uin或者节点id。
|
1187
|
+
# @type TargetId: Integer
|
1188
|
+
|
1189
|
+
attr_accessor :TargetId
|
1190
|
+
|
1191
|
+
def initialize(targetid=nil)
|
1192
|
+
@TargetId = targetid
|
1193
|
+
end
|
1194
|
+
|
1195
|
+
def deserialize(params)
|
1196
|
+
@TargetId = params['TargetId']
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
|
1200
|
+
# DescribeEffectivePolicy返回参数结构体
|
1201
|
+
class DescribeEffectivePolicyResponse < TencentCloud::Common::AbstractModel
|
1202
|
+
# @param EffectivePolicy: 有效策略。
|
1203
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1204
|
+
# @type EffectivePolicy: :class:`Tencentcloud::Organization.v20210331.models.EffectivePolicy`
|
1205
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1206
|
+
# @type RequestId: String
|
1207
|
+
|
1208
|
+
attr_accessor :EffectivePolicy, :RequestId
|
1209
|
+
|
1210
|
+
def initialize(effectivepolicy=nil, requestid=nil)
|
1211
|
+
@EffectivePolicy = effectivepolicy
|
1212
|
+
@RequestId = requestid
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
def deserialize(params)
|
1216
|
+
unless params['EffectivePolicy'].nil?
|
1217
|
+
@EffectivePolicy = EffectivePolicy.new
|
1218
|
+
@EffectivePolicy.deserialize(params['EffectivePolicy'])
|
1219
|
+
end
|
1220
|
+
@RequestId = params['RequestId']
|
1221
|
+
end
|
1222
|
+
end
|
1223
|
+
|
1184
1224
|
# DescribeOrganizationAuthNode请求参数结构体
|
1185
1225
|
class DescribeOrganizationAuthNodeRequest < TencentCloud::Common::AbstractModel
|
1186
1226
|
# @param Offset: 偏移量。取值是limit的整数倍。默认值 : 0。
|
@@ -2377,6 +2417,30 @@ module TencentCloud
|
|
2377
2417
|
end
|
2378
2418
|
end
|
2379
2419
|
|
2420
|
+
# 有效策略。
|
2421
|
+
class EffectivePolicy < TencentCloud::Common::AbstractModel
|
2422
|
+
# @param TargetId: 目标ID。
|
2423
|
+
# @type TargetId: Integer
|
2424
|
+
# @param PolicyContent: 有效策略内容。
|
2425
|
+
# @type PolicyContent: String
|
2426
|
+
# @param LastUpdatedTimestamp: 有效策略更新时间。
|
2427
|
+
# @type LastUpdatedTimestamp: Integer
|
2428
|
+
|
2429
|
+
attr_accessor :TargetId, :PolicyContent, :LastUpdatedTimestamp
|
2430
|
+
|
2431
|
+
def initialize(targetid=nil, policycontent=nil, lastupdatedtimestamp=nil)
|
2432
|
+
@TargetId = targetid
|
2433
|
+
@PolicyContent = policycontent
|
2434
|
+
@LastUpdatedTimestamp = lastupdatedtimestamp
|
2435
|
+
end
|
2436
|
+
|
2437
|
+
def deserialize(params)
|
2438
|
+
@TargetId = params['TargetId']
|
2439
|
+
@PolicyContent = params['PolicyContent']
|
2440
|
+
@LastUpdatedTimestamp = params['LastUpdatedTimestamp']
|
2441
|
+
end
|
2442
|
+
end
|
2443
|
+
|
2380
2444
|
# EnablePolicyType请求参数结构体
|
2381
2445
|
class EnablePolicyTypeRequest < TencentCloud::Common::AbstractModel
|
2382
2446
|
# @param OrganizationId: 企业组织Id。可以调用[DescribeOrganization](https://cloud.tencent.com/document/product/850/67059)获取
|
@@ -2443,6 +2507,68 @@ module TencentCloud
|
|
2443
2507
|
end
|
2444
2508
|
end
|
2445
2509
|
|
2510
|
+
# ListNonCompliantResource请求参数结构体
|
2511
|
+
class ListNonCompliantResourceRequest < TencentCloud::Common::AbstractModel
|
2512
|
+
# @param MaxResults: 限制数目。取值范围:1~50。
|
2513
|
+
# @type MaxResults: Integer
|
2514
|
+
# @param MemberUin: 成员Uin。
|
2515
|
+
# @type MemberUin: Integer
|
2516
|
+
# @param PaginationToken: 从上一页的响应中获取的下一页的Token值。
|
2517
|
+
# 如果是第一次请求,设置为空。
|
2518
|
+
# @type PaginationToken: String
|
2519
|
+
# @param TagKey: 标签键。
|
2520
|
+
# @type TagKey: String
|
2521
|
+
|
2522
|
+
attr_accessor :MaxResults, :MemberUin, :PaginationToken, :TagKey
|
2523
|
+
|
2524
|
+
def initialize(maxresults=nil, memberuin=nil, paginationtoken=nil, tagkey=nil)
|
2525
|
+
@MaxResults = maxresults
|
2526
|
+
@MemberUin = memberuin
|
2527
|
+
@PaginationToken = paginationtoken
|
2528
|
+
@TagKey = tagkey
|
2529
|
+
end
|
2530
|
+
|
2531
|
+
def deserialize(params)
|
2532
|
+
@MaxResults = params['MaxResults']
|
2533
|
+
@MemberUin = params['MemberUin']
|
2534
|
+
@PaginationToken = params['PaginationToken']
|
2535
|
+
@TagKey = params['TagKey']
|
2536
|
+
end
|
2537
|
+
end
|
2538
|
+
|
2539
|
+
# ListNonCompliantResource返回参数结构体
|
2540
|
+
class ListNonCompliantResourceResponse < TencentCloud::Common::AbstractModel
|
2541
|
+
# @param Items: 资源及标签合规信息。
|
2542
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2543
|
+
# @type Items: Array
|
2544
|
+
# @param PaginationToken: 获取的下一页的Token值。
|
2545
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2546
|
+
# @type PaginationToken: String
|
2547
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2548
|
+
# @type RequestId: String
|
2549
|
+
|
2550
|
+
attr_accessor :Items, :PaginationToken, :RequestId
|
2551
|
+
|
2552
|
+
def initialize(items=nil, paginationtoken=nil, requestid=nil)
|
2553
|
+
@Items = items
|
2554
|
+
@PaginationToken = paginationtoken
|
2555
|
+
@RequestId = requestid
|
2556
|
+
end
|
2557
|
+
|
2558
|
+
def deserialize(params)
|
2559
|
+
unless params['Items'].nil?
|
2560
|
+
@Items = []
|
2561
|
+
params['Items'].each do |i|
|
2562
|
+
resourcetagmapping_tmp = ResourceTagMapping.new
|
2563
|
+
resourcetagmapping_tmp.deserialize(i)
|
2564
|
+
@Items << resourcetagmapping_tmp
|
2565
|
+
end
|
2566
|
+
end
|
2567
|
+
@PaginationToken = params['PaginationToken']
|
2568
|
+
@RequestId = params['RequestId']
|
2569
|
+
end
|
2570
|
+
end
|
2571
|
+
|
2446
2572
|
# ListOrganizationIdentity请求参数结构体
|
2447
2573
|
class ListOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
|
2448
2574
|
# @param Offset: 偏移量。取值是limit的整数倍。默认值 : 0。
|
@@ -3563,6 +3689,44 @@ module TencentCloud
|
|
3563
3689
|
end
|
3564
3690
|
end
|
3565
3691
|
|
3692
|
+
# 资源及关联的标签
|
3693
|
+
class ResourceTagMapping < TencentCloud::Common::AbstractModel
|
3694
|
+
# @param Resource: 资源六段式。腾讯云使用资源六段式描述一个资源。
|
3695
|
+
# 例如:qcs::${ServiceType}:${Region}:${Account}:${ResourcePreifx}/${ResourceId}。
|
3696
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3697
|
+
# @type Resource: String
|
3698
|
+
# @param ComplianceDetails: 合规详情。
|
3699
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3700
|
+
# @type ComplianceDetails: :class:`Tencentcloud::Organization.v20210331.models.TagComplianceDetails`
|
3701
|
+
# @param Tags: 资源标签。
|
3702
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3703
|
+
# @type Tags: Array
|
3704
|
+
|
3705
|
+
attr_accessor :Resource, :ComplianceDetails, :Tags
|
3706
|
+
|
3707
|
+
def initialize(resource=nil, compliancedetails=nil, tags=nil)
|
3708
|
+
@Resource = resource
|
3709
|
+
@ComplianceDetails = compliancedetails
|
3710
|
+
@Tags = tags
|
3711
|
+
end
|
3712
|
+
|
3713
|
+
def deserialize(params)
|
3714
|
+
@Resource = params['Resource']
|
3715
|
+
unless params['ComplianceDetails'].nil?
|
3716
|
+
@ComplianceDetails = TagComplianceDetails.new
|
3717
|
+
@ComplianceDetails.deserialize(params['ComplianceDetails'])
|
3718
|
+
end
|
3719
|
+
unless params['Tags'].nil?
|
3720
|
+
@Tags = []
|
3721
|
+
params['Tags'].each do |i|
|
3722
|
+
tags_tmp = Tags.new
|
3723
|
+
tags_tmp.deserialize(i)
|
3724
|
+
@Tags << tags_tmp
|
3725
|
+
end
|
3726
|
+
end
|
3727
|
+
end
|
3728
|
+
end
|
3729
|
+
|
3566
3730
|
# 共享地域
|
3567
3731
|
class ShareArea < TencentCloud::Common::AbstractModel
|
3568
3732
|
# @param Name: 地域名称。
|
@@ -3692,6 +3856,55 @@ module TencentCloud
|
|
3692
3856
|
end
|
3693
3857
|
end
|
3694
3858
|
|
3859
|
+
# 标签合规信息
|
3860
|
+
class TagComplianceDetails < TencentCloud::Common::AbstractModel
|
3861
|
+
# @param ComplianceStatus: 合规状态。true-合规,false-不合规
|
3862
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3863
|
+
# @type ComplianceStatus: Boolean
|
3864
|
+
# @param KeysWithNonCompliantValues: 值不合规的标签键列表。
|
3865
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3866
|
+
# @type KeysWithNonCompliantValues: Array
|
3867
|
+
# @param NonCompliantKeys: 键不合规的标签键列表。
|
3868
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3869
|
+
# @type NonCompliantKeys: Array
|
3870
|
+
|
3871
|
+
attr_accessor :ComplianceStatus, :KeysWithNonCompliantValues, :NonCompliantKeys
|
3872
|
+
|
3873
|
+
def initialize(compliancestatus=nil, keyswithnoncompliantvalues=nil, noncompliantkeys=nil)
|
3874
|
+
@ComplianceStatus = compliancestatus
|
3875
|
+
@KeysWithNonCompliantValues = keyswithnoncompliantvalues
|
3876
|
+
@NonCompliantKeys = noncompliantkeys
|
3877
|
+
end
|
3878
|
+
|
3879
|
+
def deserialize(params)
|
3880
|
+
@ComplianceStatus = params['ComplianceStatus']
|
3881
|
+
@KeysWithNonCompliantValues = params['KeysWithNonCompliantValues']
|
3882
|
+
@NonCompliantKeys = params['NonCompliantKeys']
|
3883
|
+
end
|
3884
|
+
end
|
3885
|
+
|
3886
|
+
# 标签键值对
|
3887
|
+
class Tags < TencentCloud::Common::AbstractModel
|
3888
|
+
# @param TagKey: 标签键。
|
3889
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3890
|
+
# @type TagKey: String
|
3891
|
+
# @param TagValue: 标签值。
|
3892
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3893
|
+
# @type TagValue: String
|
3894
|
+
|
3895
|
+
attr_accessor :TagKey, :TagValue
|
3896
|
+
|
3897
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
3898
|
+
@TagKey = tagkey
|
3899
|
+
@TagValue = tagvalue
|
3900
|
+
end
|
3901
|
+
|
3902
|
+
def deserialize(params)
|
3903
|
+
@TagKey = params['TagKey']
|
3904
|
+
@TagValue = params['TagValue']
|
3905
|
+
end
|
3906
|
+
end
|
3907
|
+
|
3695
3908
|
# UpdateOrganizationIdentity请求参数结构体
|
3696
3909
|
class UpdateOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
|
3697
3910
|
# @param IdentityId: 身份ID。可以通过[ListOrganizationIdentity](https://cloud.tencent.com/document/product/850/82934)获取
|
@@ -3886,7 +4099,7 @@ module TencentCloud
|
|
3886
4099
|
|
3887
4100
|
# UpdatePolicy请求参数结构体
|
3888
4101
|
class UpdatePolicyRequest < TencentCloud::Common::AbstractModel
|
3889
|
-
# @param PolicyId: 需要编辑的策略ID。可以调用[ListPolicies](https://
|
4102
|
+
# @param PolicyId: 需要编辑的策略ID。可以调用[ListPolicies](https://cloud.tencent.com/document/product/850/105311)获取
|
3890
4103
|
# @type PolicyId: Integer
|
3891
4104
|
# @param Description: 策略描述。
|
3892
4105
|
# @type Description: String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-organization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.807
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|