tencentcloud-sdk-organization 3.0.806 → 3.0.808

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: 3b592d12cbe8b38af609a2dc738dfde93aaba9e8
4
- data.tar.gz: 0bd6c6f9cf5ec18234d2d9d1781ac676ea2b8238
3
+ metadata.gz: f21a0b2a5535d4f54cc2dab2fda90a42bf8ba222
4
+ data.tar.gz: 94f5a33dc21530c81958ed54eed0541fb497ba60
5
5
  SHA512:
6
- metadata.gz: d94d9d716057098aae2c481f65ba7d700b37403b38c137d890e31f1a040b5bdbaecc0f4ba32299be02cb12e681d95c2051e1dc03d293bcd1c07a04cb8af621c1
7
- data.tar.gz: 285e7489418bfe0b33b100621f3993026ae7fb4663eceec0c45c007ee1ab59b2e163be9b852aa883d3b26e6a83d0a86d7aad6f7d35de91d14c4de4ef95129f83
6
+ metadata.gz: 0bca9733968764fdd78fd64876f5f95b50f65cc8767eb55defb3c4f3d7ab20caccc4a32a352687b3096842d7ee0fe0573a94a569bf73a19c7bc7604ab1bef3a1
7
+ data.tar.gz: fd18a9cb98122dfd61b560ff71e65d0d3042c0a2cae23374c6f46d35bf8994007b17be906eb9bbd51acbd65a06d5d2c3255f6733a8e7cf2d8207157136e70d33
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.806
1
+ 3.0.808
@@ -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.
@@ -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)获取
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.806
4
+ version: 3.0.808
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-18 00:00:00.000000000 Z
11
+ date: 2024-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common