tencentcloud-sdk-organization 3.0.803 → 3.0.805

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7818b1019ef63f5ea83106b59d14269f1cebd804
4
- data.tar.gz: 8fe7e8f082072bae63a0fe7f5243a07b985506af
3
+ metadata.gz: 5552b3cd1dd1da53e97c3608ca8bd365e6c156db
4
+ data.tar.gz: b7e665b58327e34149d19ef9ee6d5e4a6170e8a5
5
5
  SHA512:
6
- metadata.gz: 2570793f0bc417a90e205af219e4739e3174448394ee7b9b3881197f30be040df3b936a8cf7100d1f2bcd552b99ab9af538e3ddb362a3454a72b35ea028a93e5
7
- data.tar.gz: fe8692840738400777ba1d180f7f00f61136e18caf7bcad46febcfbbd9be716b085d682b15dc21e1d6bc8bb9645327a7dbe9b37dfb7e87f698857f84642e79f5
6
+ metadata.gz: 5fabb36ad08f598c25e4e4c0382b9ac4ed5b10d9da0af55105d2f795e25e0055a78db6252bc72a9a527f8345f7d963a65892037e2c3ba79527e8c61bf300f233
7
+ data.tar.gz: 6e1f423aeb25663994c79b6f3f08019f5355b5b145fdd8d69d689f4718aa804ace0c848149a5eb2b8468e7be8317465ce2252eecb0046528dddeb652772b40c0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.803
1
+ 3.0.805
@@ -149,6 +149,30 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
+ # 绑定策略
153
+
154
+ # @param request: Request instance for AttachPolicy.
155
+ # @type request: :class:`Tencentcloud::organization::V20210331::AttachPolicyRequest`
156
+ # @rtype: :class:`Tencentcloud::organization::V20210331::AttachPolicyResponse`
157
+ def AttachPolicy(request)
158
+ body = send_request('AttachPolicy', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = AttachPolicyResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
152
176
  # 绑定组织成员和组织管理员子账号的授权关系
153
177
 
154
178
  # @param request: Request instance for BindOrganizationMemberAuthAccount.
@@ -365,6 +389,30 @@ module TencentCloud
365
389
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
390
  end
367
391
 
392
+ # 创建一个特殊类型的策略,你可以关联到企业组织Root节点、企业单元或者企业的成员账号。
393
+
394
+ # @param request: Request instance for CreatePolicy.
395
+ # @type request: :class:`Tencentcloud::organization::V20210331::CreatePolicyRequest`
396
+ # @rtype: :class:`Tencentcloud::organization::V20210331::CreatePolicyResponse`
397
+ def CreatePolicy(request)
398
+ body = send_request('CreatePolicy', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = CreatePolicyResponse.new
402
+ model.deserialize(response['Response'])
403
+ model
404
+ else
405
+ code = response['Response']['Error']['Code']
406
+ message = response['Response']['Error']['Message']
407
+ reqid = response['Response']['RequestId']
408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
409
+ end
410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
411
+ raise e
412
+ rescue StandardError => e
413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
+ end
415
+
368
416
  # 删除成员账号
369
417
 
370
418
  # @param request: Request instance for DeleteAccount.
@@ -533,6 +581,30 @@ module TencentCloud
533
581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
582
  end
535
583
 
584
+ # 删除策略
585
+
586
+ # @param request: Request instance for DeletePolicy.
587
+ # @type request: :class:`Tencentcloud::organization::V20210331::DeletePolicyRequest`
588
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DeletePolicyResponse`
589
+ def DeletePolicy(request)
590
+ body = send_request('DeletePolicy', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = DeletePolicyResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
536
608
  # 删除共享单元。
537
609
 
538
610
  # @param request: Request instance for DeleteShareUnit.
@@ -869,6 +941,54 @@ module TencentCloud
869
941
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
942
  end
871
943
 
944
+ # 本接口(DescribePolicy)可用于查询查看策略详情。
945
+
946
+ # @param request: Request instance for DescribePolicy.
947
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribePolicyRequest`
948
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribePolicyResponse`
949
+ def DescribePolicy(request)
950
+ body = send_request('DescribePolicy', request.serialize)
951
+ response = JSON.parse(body)
952
+ if response['Response'].key?('Error') == false
953
+ model = DescribePolicyResponse.new
954
+ model.deserialize(response['Response'])
955
+ model
956
+ else
957
+ code = response['Response']['Error']['Code']
958
+ message = response['Response']['Error']['Message']
959
+ reqid = response['Response']['RequestId']
960
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
961
+ end
962
+ rescue TencentCloud::Common::TencentCloudSDKException => e
963
+ raise e
964
+ rescue StandardError => e
965
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
966
+ end
967
+
968
+ # 本接口(DescribePolicyConfig)可用于查询企业组织策略配置
969
+
970
+ # @param request: Request instance for DescribePolicyConfig.
971
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribePolicyConfigRequest`
972
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribePolicyConfigResponse`
973
+ def DescribePolicyConfig(request)
974
+ body = send_request('DescribePolicyConfig', request.serialize)
975
+ response = JSON.parse(body)
976
+ if response['Response'].key?('Error') == false
977
+ model = DescribePolicyConfigResponse.new
978
+ model.deserialize(response['Response'])
979
+ model
980
+ else
981
+ code = response['Response']['Error']['Code']
982
+ message = response['Response']['Error']['Message']
983
+ reqid = response['Response']['RequestId']
984
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
985
+ end
986
+ rescue TencentCloud::Common::TencentCloudSDKException => e
987
+ raise e
988
+ rescue StandardError => e
989
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
+ end
991
+
872
992
  # 获取可共享地域列表
873
993
 
874
994
  # @param request: Request instance for DescribeShareAreas.
@@ -965,6 +1085,78 @@ module TencentCloud
965
1085
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
966
1086
  end
967
1087
 
1088
+ # 解绑策略
1089
+
1090
+ # @param request: Request instance for DetachPolicy.
1091
+ # @type request: :class:`Tencentcloud::organization::V20210331::DetachPolicyRequest`
1092
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DetachPolicyResponse`
1093
+ def DetachPolicy(request)
1094
+ body = send_request('DetachPolicy', request.serialize)
1095
+ response = JSON.parse(body)
1096
+ if response['Response'].key?('Error') == false
1097
+ model = DetachPolicyResponse.new
1098
+ model.deserialize(response['Response'])
1099
+ model
1100
+ else
1101
+ code = response['Response']['Error']['Code']
1102
+ message = response['Response']['Error']['Message']
1103
+ reqid = response['Response']['RequestId']
1104
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1105
+ end
1106
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1107
+ raise e
1108
+ rescue StandardError => e
1109
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1110
+ end
1111
+
1112
+ # 禁用策略类型
1113
+
1114
+ # @param request: Request instance for DisablePolicyType.
1115
+ # @type request: :class:`Tencentcloud::organization::V20210331::DisablePolicyTypeRequest`
1116
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DisablePolicyTypeResponse`
1117
+ def DisablePolicyType(request)
1118
+ body = send_request('DisablePolicyType', request.serialize)
1119
+ response = JSON.parse(body)
1120
+ if response['Response'].key?('Error') == false
1121
+ model = DisablePolicyTypeResponse.new
1122
+ model.deserialize(response['Response'])
1123
+ model
1124
+ else
1125
+ code = response['Response']['Error']['Code']
1126
+ message = response['Response']['Error']['Message']
1127
+ reqid = response['Response']['RequestId']
1128
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1129
+ end
1130
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1131
+ raise e
1132
+ rescue StandardError => e
1133
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
+ end
1135
+
1136
+ # 启用策略类型
1137
+
1138
+ # @param request: Request instance for EnablePolicyType.
1139
+ # @type request: :class:`Tencentcloud::organization::V20210331::EnablePolicyTypeRequest`
1140
+ # @rtype: :class:`Tencentcloud::organization::V20210331::EnablePolicyTypeResponse`
1141
+ def EnablePolicyType(request)
1142
+ body = send_request('EnablePolicyType', request.serialize)
1143
+ response = JSON.parse(body)
1144
+ if response['Response'].key?('Error') == false
1145
+ model = EnablePolicyTypeResponse.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
+
968
1160
  # 获取组织成员访问身份列表
969
1161
 
970
1162
  # @param request: Request instance for ListOrganizationIdentity.
@@ -989,6 +1181,78 @@ module TencentCloud
989
1181
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
1182
  end
991
1183
 
1184
+ # 本接口(ListPolicies)可用于查询查看策略列表数据
1185
+
1186
+ # @param request: Request instance for ListPolicies.
1187
+ # @type request: :class:`Tencentcloud::organization::V20210331::ListPoliciesRequest`
1188
+ # @rtype: :class:`Tencentcloud::organization::V20210331::ListPoliciesResponse`
1189
+ def ListPolicies(request)
1190
+ body = send_request('ListPolicies', request.serialize)
1191
+ response = JSON.parse(body)
1192
+ if response['Response'].key?('Error') == false
1193
+ model = ListPoliciesResponse.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
+
1208
+ # 本接口(ListPoliciesForTarget)查询目标关联的策略列表
1209
+
1210
+ # @param request: Request instance for ListPoliciesForTarget.
1211
+ # @type request: :class:`Tencentcloud::organization::V20210331::ListPoliciesForTargetRequest`
1212
+ # @rtype: :class:`Tencentcloud::organization::V20210331::ListPoliciesForTargetResponse`
1213
+ def ListPoliciesForTarget(request)
1214
+ body = send_request('ListPoliciesForTarget', request.serialize)
1215
+ response = JSON.parse(body)
1216
+ if response['Response'].key?('Error') == false
1217
+ model = ListPoliciesForTargetResponse.new
1218
+ model.deserialize(response['Response'])
1219
+ model
1220
+ else
1221
+ code = response['Response']['Error']['Code']
1222
+ message = response['Response']['Error']['Message']
1223
+ reqid = response['Response']['RequestId']
1224
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1225
+ end
1226
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1227
+ raise e
1228
+ rescue StandardError => e
1229
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1230
+ end
1231
+
1232
+ # 本接口(ListTargetsForPolicy)查询某个指定策略关联的目标列表
1233
+
1234
+ # @param request: Request instance for ListTargetsForPolicy.
1235
+ # @type request: :class:`Tencentcloud::organization::V20210331::ListTargetsForPolicyRequest`
1236
+ # @rtype: :class:`Tencentcloud::organization::V20210331::ListTargetsForPolicyResponse`
1237
+ def ListTargetsForPolicy(request)
1238
+ body = send_request('ListTargetsForPolicy', request.serialize)
1239
+ response = JSON.parse(body)
1240
+ if response['Response'].key?('Error') == false
1241
+ model = ListTargetsForPolicyResponse.new
1242
+ model.deserialize(response['Response'])
1243
+ model
1244
+ else
1245
+ code = response['Response']['Error']['Code']
1246
+ message = response['Response']['Error']['Message']
1247
+ reqid = response['Response']['RequestId']
1248
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1249
+ end
1250
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1251
+ raise e
1252
+ rescue StandardError => e
1253
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1254
+ end
1255
+
992
1256
  # 移动成员到指定企业组织节点
993
1257
 
994
1258
  # @param request: Request instance for MoveOrganizationNodeMembers.
@@ -1133,6 +1397,30 @@ module TencentCloud
1133
1397
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
1398
  end
1135
1399
 
1400
+ # 编辑策略
1401
+
1402
+ # @param request: Request instance for UpdatePolicy.
1403
+ # @type request: :class:`Tencentcloud::organization::V20210331::UpdatePolicyRequest`
1404
+ # @rtype: :class:`Tencentcloud::organization::V20210331::UpdatePolicyResponse`
1405
+ def UpdatePolicy(request)
1406
+ body = send_request('UpdatePolicy', request.serialize)
1407
+ response = JSON.parse(body)
1408
+ if response['Response'].key?('Error') == false
1409
+ model = UpdatePolicyResponse.new
1410
+ model.deserialize(response['Response'])
1411
+ model
1412
+ else
1413
+ code = response['Response']['Error']['Code']
1414
+ message = response['Response']['Error']['Message']
1415
+ reqid = response['Response']['RequestId']
1416
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1417
+ end
1418
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1419
+ raise e
1420
+ rescue StandardError => e
1421
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1422
+ end
1423
+
1136
1424
  # 更新共享单元。
1137
1425
 
1138
1426
  # @param request: Request instance for UpdateShareUnit.
@@ -252,6 +252,50 @@ module TencentCloud
252
252
  end
253
253
  end
254
254
 
255
+ # AttachPolicy请求参数结构体
256
+ class AttachPolicyRequest < TencentCloud::Common::AbstractModel
257
+ # @param TargetId: 绑定策略目标ID。成员Uin或部门ID
258
+ # @type TargetId: Integer
259
+ # @param TargetType: 目标类型。取值范围:NODE-部门、MEMBER-成员
260
+ # @type TargetType: String
261
+ # @param PolicyId: 策略ID。
262
+ # @type PolicyId: Integer
263
+ # @param Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
264
+ # @type Type: String
265
+
266
+ attr_accessor :TargetId, :TargetType, :PolicyId, :Type
267
+
268
+ def initialize(targetid=nil, targettype=nil, policyid=nil, type=nil)
269
+ @TargetId = targetid
270
+ @TargetType = targettype
271
+ @PolicyId = policyid
272
+ @Type = type
273
+ end
274
+
275
+ def deserialize(params)
276
+ @TargetId = params['TargetId']
277
+ @TargetType = params['TargetType']
278
+ @PolicyId = params['PolicyId']
279
+ @Type = params['Type']
280
+ end
281
+ end
282
+
283
+ # AttachPolicy返回参数结构体
284
+ class AttachPolicyResponse < TencentCloud::Common::AbstractModel
285
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
286
+ # @type RequestId: String
287
+
288
+ attr_accessor :RequestId
289
+
290
+ def initialize(requestid=nil)
291
+ @RequestId = requestid
292
+ end
293
+
294
+ def deserialize(params)
295
+ @RequestId = params['RequestId']
296
+ end
297
+ end
298
+
255
299
  # 互信主体主要信息
256
300
  class AuthNode < TencentCloud::Common::AbstractModel
257
301
  # @param RelationId: 互信主体关系ID
@@ -699,6 +743,55 @@ module TencentCloud
699
743
  end
700
744
  end
701
745
 
746
+ # CreatePolicy请求参数结构体
747
+ class CreatePolicyRequest < TencentCloud::Common::AbstractModel
748
+ # @param Name: 策略名。
749
+ # 长度为1~128个字符,可以包含汉字、英文字母、数字和下划线(_)
750
+ # @type Name: String
751
+ # @param Content: 策略内容。参考CAM策略语法
752
+ # @type Content: String
753
+ # @param Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
754
+ # @type Type: String
755
+ # @param Description: 策略描述。
756
+ # @type Description: String
757
+
758
+ attr_accessor :Name, :Content, :Type, :Description
759
+
760
+ def initialize(name=nil, content=nil, type=nil, description=nil)
761
+ @Name = name
762
+ @Content = content
763
+ @Type = type
764
+ @Description = description
765
+ end
766
+
767
+ def deserialize(params)
768
+ @Name = params['Name']
769
+ @Content = params['Content']
770
+ @Type = params['Type']
771
+ @Description = params['Description']
772
+ end
773
+ end
774
+
775
+ # CreatePolicy返回参数结构体
776
+ class CreatePolicyResponse < TencentCloud::Common::AbstractModel
777
+ # @param PolicyId: 策略ID
778
+ # @type PolicyId: Integer
779
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
780
+ # @type RequestId: String
781
+
782
+ attr_accessor :PolicyId, :RequestId
783
+
784
+ def initialize(policyid=nil, requestid=nil)
785
+ @PolicyId = policyid
786
+ @RequestId = requestid
787
+ end
788
+
789
+ def deserialize(params)
790
+ @PolicyId = params['PolicyId']
791
+ @RequestId = params['RequestId']
792
+ end
793
+ end
794
+
702
795
  # DeleteAccount请求参数结构体
703
796
  class DeleteAccountRequest < TencentCloud::Common::AbstractModel
704
797
  # @param MemberUin: 成员Uin。
@@ -922,6 +1015,42 @@ module TencentCloud
922
1015
  end
923
1016
  end
924
1017
 
1018
+ # DeletePolicy请求参数结构体
1019
+ class DeletePolicyRequest < TencentCloud::Common::AbstractModel
1020
+ # @param PolicyId: 需要删除的策略ID。可以调用[ListPolicies](https://tcloud4api.woa.com/document/product/1128/79356?!preview&!document=1)获取
1021
+ # @type PolicyId: Integer
1022
+ # @param Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
1023
+ # @type Type: String
1024
+
1025
+ attr_accessor :PolicyId, :Type
1026
+
1027
+ def initialize(policyid=nil, type=nil)
1028
+ @PolicyId = policyid
1029
+ @Type = type
1030
+ end
1031
+
1032
+ def deserialize(params)
1033
+ @PolicyId = params['PolicyId']
1034
+ @Type = params['Type']
1035
+ end
1036
+ end
1037
+
1038
+ # DeletePolicy返回参数结构体
1039
+ class DeletePolicyResponse < TencentCloud::Common::AbstractModel
1040
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1041
+ # @type RequestId: String
1042
+
1043
+ attr_accessor :RequestId
1044
+
1045
+ def initialize(requestid=nil)
1046
+ @RequestId = requestid
1047
+ end
1048
+
1049
+ def deserialize(params)
1050
+ @RequestId = params['RequestId']
1051
+ end
1052
+ end
1053
+
925
1054
  # DeleteShareUnitMembers请求参数结构体
926
1055
  class DeleteShareUnitMembersRequest < TencentCloud::Common::AbstractModel
927
1056
  # @param UnitId: 共享单元ID。
@@ -1321,7 +1450,7 @@ module TencentCloud
1321
1450
  # @type Limit: Integer
1322
1451
  # @param MemberUin: 成员Uin。
1323
1452
  # @type MemberUin: Integer
1324
- # @param PolicyId: 策略ID。可以通过[DescribeOrganizationMemberPolicies](https://cloud.tencent.com/document/product/850/82935)
1453
+ # @param PolicyId: 策略ID。可以通过[DescribeOrganizationMemberPolicies](https://cloud.tencent.com/document/product/850/82935)获取
1325
1454
  # @type PolicyId: Integer
1326
1455
 
1327
1456
  attr_accessor :Offset, :Limit, :MemberUin, :PolicyId
@@ -1816,6 +1945,119 @@ module TencentCloud
1816
1945
  end
1817
1946
  end
1818
1947
 
1948
+ # DescribePolicyConfig请求参数结构体
1949
+ class DescribePolicyConfigRequest < TencentCloud::Common::AbstractModel
1950
+ # @param OrganizationId: 企业组织Id。可以调用[DescribeOrganization](https://cloud.tencent.com/document/product/850/67059)获取
1951
+ # @type OrganizationId: Integer
1952
+ # @param Type: 策略类型。默认值0,取值范围:0-服务控制策略、1-标签策略
1953
+ # @type Type: Integer
1954
+
1955
+ attr_accessor :OrganizationId, :Type
1956
+
1957
+ def initialize(organizationid=nil, type=nil)
1958
+ @OrganizationId = organizationid
1959
+ @Type = type
1960
+ end
1961
+
1962
+ def deserialize(params)
1963
+ @OrganizationId = params['OrganizationId']
1964
+ @Type = params['Type']
1965
+ end
1966
+ end
1967
+
1968
+ # DescribePolicyConfig返回参数结构体
1969
+ class DescribePolicyConfigResponse < TencentCloud::Common::AbstractModel
1970
+ # @param Status: 开启状态。0-未开启、1-开启
1971
+ # @type Status: Integer
1972
+ # @param Type: 策略类型。SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
1973
+ # @type Type: String
1974
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1975
+ # @type RequestId: String
1976
+
1977
+ attr_accessor :Status, :Type, :RequestId
1978
+
1979
+ def initialize(status=nil, type=nil, requestid=nil)
1980
+ @Status = status
1981
+ @Type = type
1982
+ @RequestId = requestid
1983
+ end
1984
+
1985
+ def deserialize(params)
1986
+ @Status = params['Status']
1987
+ @Type = params['Type']
1988
+ @RequestId = params['RequestId']
1989
+ end
1990
+ end
1991
+
1992
+ # DescribePolicy请求参数结构体
1993
+ class DescribePolicyRequest < TencentCloud::Common::AbstractModel
1994
+ # @param PolicyId: 策略Id。
1995
+ # @type PolicyId: Integer
1996
+ # @param PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
1997
+ # @type PolicyType: String
1998
+
1999
+ attr_accessor :PolicyId, :PolicyType
2000
+
2001
+ def initialize(policyid=nil, policytype=nil)
2002
+ @PolicyId = policyid
2003
+ @PolicyType = policytype
2004
+ end
2005
+
2006
+ def deserialize(params)
2007
+ @PolicyId = params['PolicyId']
2008
+ @PolicyType = params['PolicyType']
2009
+ end
2010
+ end
2011
+
2012
+ # DescribePolicy返回参数结构体
2013
+ class DescribePolicyResponse < TencentCloud::Common::AbstractModel
2014
+ # @param PolicyId: 策略Id。
2015
+ # @type PolicyId: Integer
2016
+ # @param PolicyName: 策略名称。
2017
+ # 注意:此字段可能返回 null,表示取不到有效值。
2018
+ # @type PolicyName: String
2019
+ # @param Type: 策略类型。1-自定义 2-预设策略
2020
+ # @type Type: Integer
2021
+ # @param Description: 策略描述。
2022
+ # 注意:此字段可能返回 null,表示取不到有效值。
2023
+ # @type Description: String
2024
+ # @param PolicyDocument: 策略文档。
2025
+ # 注意:此字段可能返回 null,表示取不到有效值。
2026
+ # @type PolicyDocument: String
2027
+ # @param UpdateTime: 策略更新时间。
2028
+ # 注意:此字段可能返回 null,表示取不到有效值。
2029
+ # @type UpdateTime: String
2030
+ # @param AddTime: 策略创建时间。
2031
+ # 注意:此字段可能返回 null,表示取不到有效值。
2032
+ # @type AddTime: String
2033
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2034
+ # @type RequestId: String
2035
+
2036
+ attr_accessor :PolicyId, :PolicyName, :Type, :Description, :PolicyDocument, :UpdateTime, :AddTime, :RequestId
2037
+
2038
+ def initialize(policyid=nil, policyname=nil, type=nil, description=nil, policydocument=nil, updatetime=nil, addtime=nil, requestid=nil)
2039
+ @PolicyId = policyid
2040
+ @PolicyName = policyname
2041
+ @Type = type
2042
+ @Description = description
2043
+ @PolicyDocument = policydocument
2044
+ @UpdateTime = updatetime
2045
+ @AddTime = addtime
2046
+ @RequestId = requestid
2047
+ end
2048
+
2049
+ def deserialize(params)
2050
+ @PolicyId = params['PolicyId']
2051
+ @PolicyName = params['PolicyName']
2052
+ @Type = params['Type']
2053
+ @Description = params['Description']
2054
+ @PolicyDocument = params['PolicyDocument']
2055
+ @UpdateTime = params['UpdateTime']
2056
+ @AddTime = params['AddTime']
2057
+ @RequestId = params['RequestId']
2058
+ end
2059
+ end
2060
+
1819
2061
  # DescribeShareAreas请求参数结构体
1820
2062
  class DescribeShareAreasRequest < TencentCloud::Common::AbstractModel
1821
2063
  # @param Lang: 国际站:en,国内站:zh
@@ -1870,7 +2112,7 @@ module TencentCloud
1870
2112
  # @type Offset: Integer
1871
2113
  # @param Limit: 限制数目。取值范围:1~50。
1872
2114
  # @type Limit: Integer
1873
- # @param SearchKey: 搜索关键字。支持成员uin搜索。
2115
+ # @param SearchKey: 搜索关键字。支持成员Uin搜索。
1874
2116
  # @type SearchKey: String
1875
2117
 
1876
2118
  attr_accessor :UnitId, :Area, :Offset, :Limit, :SearchKey
@@ -2055,6 +2297,122 @@ module TencentCloud
2055
2297
  end
2056
2298
  end
2057
2299
 
2300
+ # DetachPolicy请求参数结构体
2301
+ class DetachPolicyRequest < TencentCloud::Common::AbstractModel
2302
+ # @param TargetId: 解绑策略目标ID。成员Uin或部门ID
2303
+ # @type TargetId: Integer
2304
+ # @param TargetType: 目标类型。取值范围:NODE-部门、MEMBER-成员
2305
+ # @type TargetType: String
2306
+ # @param PolicyId: 策略ID。
2307
+ # @type PolicyId: Integer
2308
+ # @param Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
2309
+ # @type Type: String
2310
+
2311
+ attr_accessor :TargetId, :TargetType, :PolicyId, :Type
2312
+
2313
+ def initialize(targetid=nil, targettype=nil, policyid=nil, type=nil)
2314
+ @TargetId = targetid
2315
+ @TargetType = targettype
2316
+ @PolicyId = policyid
2317
+ @Type = type
2318
+ end
2319
+
2320
+ def deserialize(params)
2321
+ @TargetId = params['TargetId']
2322
+ @TargetType = params['TargetType']
2323
+ @PolicyId = params['PolicyId']
2324
+ @Type = params['Type']
2325
+ end
2326
+ end
2327
+
2328
+ # DetachPolicy返回参数结构体
2329
+ class DetachPolicyResponse < TencentCloud::Common::AbstractModel
2330
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2331
+ # @type RequestId: String
2332
+
2333
+ attr_accessor :RequestId
2334
+
2335
+ def initialize(requestid=nil)
2336
+ @RequestId = requestid
2337
+ end
2338
+
2339
+ def deserialize(params)
2340
+ @RequestId = params['RequestId']
2341
+ end
2342
+ end
2343
+
2344
+ # DisablePolicyType请求参数结构体
2345
+ class DisablePolicyTypeRequest < TencentCloud::Common::AbstractModel
2346
+ # @param OrganizationId: 企业组织Id。可以调用[DescribeOrganization](https://cloud.tencent.com/document/product/850/67059)获取
2347
+ # @type OrganizationId: Integer
2348
+ # @param PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
2349
+ # @type PolicyType: String
2350
+
2351
+ attr_accessor :OrganizationId, :PolicyType
2352
+
2353
+ def initialize(organizationid=nil, policytype=nil)
2354
+ @OrganizationId = organizationid
2355
+ @PolicyType = policytype
2356
+ end
2357
+
2358
+ def deserialize(params)
2359
+ @OrganizationId = params['OrganizationId']
2360
+ @PolicyType = params['PolicyType']
2361
+ end
2362
+ end
2363
+
2364
+ # DisablePolicyType返回参数结构体
2365
+ class DisablePolicyTypeResponse < TencentCloud::Common::AbstractModel
2366
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2367
+ # @type RequestId: String
2368
+
2369
+ attr_accessor :RequestId
2370
+
2371
+ def initialize(requestid=nil)
2372
+ @RequestId = requestid
2373
+ end
2374
+
2375
+ def deserialize(params)
2376
+ @RequestId = params['RequestId']
2377
+ end
2378
+ end
2379
+
2380
+ # EnablePolicyType请求参数结构体
2381
+ class EnablePolicyTypeRequest < TencentCloud::Common::AbstractModel
2382
+ # @param OrganizationId: 企业组织Id。可以调用[DescribeOrganization](https://cloud.tencent.com/document/product/850/67059)获取
2383
+ # @type OrganizationId: Integer
2384
+ # @param PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
2385
+ # @type PolicyType: String
2386
+
2387
+ attr_accessor :OrganizationId, :PolicyType
2388
+
2389
+ def initialize(organizationid=nil, policytype=nil)
2390
+ @OrganizationId = organizationid
2391
+ @PolicyType = policytype
2392
+ end
2393
+
2394
+ def deserialize(params)
2395
+ @OrganizationId = params['OrganizationId']
2396
+ @PolicyType = params['PolicyType']
2397
+ end
2398
+ end
2399
+
2400
+ # EnablePolicyType返回参数结构体
2401
+ class EnablePolicyTypeResponse < TencentCloud::Common::AbstractModel
2402
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2403
+ # @type RequestId: String
2404
+
2405
+ attr_accessor :RequestId
2406
+
2407
+ def initialize(requestid=nil)
2408
+ @RequestId = requestid
2409
+ end
2410
+
2411
+ def deserialize(params)
2412
+ @RequestId = params['RequestId']
2413
+ end
2414
+ end
2415
+
2058
2416
  # 组织身份策略
2059
2417
  class IdentityPolicy < TencentCloud::Common::AbstractModel
2060
2418
  # @param PolicyId: CAM预设策略ID。PolicyType 为预设策略时有效且必选
@@ -2150,6 +2508,328 @@ module TencentCloud
2150
2508
  end
2151
2509
  end
2152
2510
 
2511
+ # 查询目标关联的SCP策略列表
2512
+ class ListPoliciesForTarget < TencentCloud::Common::AbstractModel
2513
+ # @param StrategyId: 策略Id
2514
+ # @type StrategyId: Integer
2515
+ # @param StrategyName: 策略名称
2516
+ # @type StrategyName: String
2517
+ # @param Remark: 备注信息
2518
+ # 注意:此字段可能返回 null,表示取不到有效值。
2519
+ # @type Remark: String
2520
+ # @param Uin: 关联的账号或节点
2521
+ # @type Uin: Integer
2522
+ # @param Type: 关联类型 1-节点 2-用户
2523
+ # @type Type: Integer
2524
+ # @param AddTime: 策略创建时间
2525
+ # 注意:此字段可能返回 null,表示取不到有效值。
2526
+ # @type AddTime: String
2527
+ # @param UpdateTime: 策略更新时间
2528
+ # 注意:此字段可能返回 null,表示取不到有效值。
2529
+ # @type UpdateTime: String
2530
+ # @param Name: 部门名称
2531
+ # 注意:此字段可能返回 null,表示取不到有效值。
2532
+ # @type Name: String
2533
+ # @param AttachTime: 策略绑定时间
2534
+ # 注意:此字段可能返回 null,表示取不到有效值。
2535
+ # @type AttachTime: String
2536
+
2537
+ attr_accessor :StrategyId, :StrategyName, :Remark, :Uin, :Type, :AddTime, :UpdateTime, :Name, :AttachTime
2538
+
2539
+ def initialize(strategyid=nil, strategyname=nil, remark=nil, uin=nil, type=nil, addtime=nil, updatetime=nil, name=nil, attachtime=nil)
2540
+ @StrategyId = strategyid
2541
+ @StrategyName = strategyname
2542
+ @Remark = remark
2543
+ @Uin = uin
2544
+ @Type = type
2545
+ @AddTime = addtime
2546
+ @UpdateTime = updatetime
2547
+ @Name = name
2548
+ @AttachTime = attachtime
2549
+ end
2550
+
2551
+ def deserialize(params)
2552
+ @StrategyId = params['StrategyId']
2553
+ @StrategyName = params['StrategyName']
2554
+ @Remark = params['Remark']
2555
+ @Uin = params['Uin']
2556
+ @Type = params['Type']
2557
+ @AddTime = params['AddTime']
2558
+ @UpdateTime = params['UpdateTime']
2559
+ @Name = params['Name']
2560
+ @AttachTime = params['AttachTime']
2561
+ end
2562
+ end
2563
+
2564
+ # ListPoliciesForTarget请求参数结构体
2565
+ class ListPoliciesForTargetRequest < TencentCloud::Common::AbstractModel
2566
+ # @param TargetId: 账号uin或者节点id。
2567
+ # @type TargetId: Integer
2568
+ # @param Rp: 每页数量。默认值是 20,必须大于 0 且小于或等于 200
2569
+ # @type Rp: Integer
2570
+ # @param Page: 页码。默认值是 1,从 1开始,不能大于 200
2571
+ # @type Page: Integer
2572
+ # @param PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
2573
+ # @type PolicyType: String
2574
+ # @param Keyword: 搜索关键字。按照策略名称搜索
2575
+ # @type Keyword: String
2576
+
2577
+ attr_accessor :TargetId, :Rp, :Page, :PolicyType, :Keyword
2578
+
2579
+ def initialize(targetid=nil, rp=nil, page=nil, policytype=nil, keyword=nil)
2580
+ @TargetId = targetid
2581
+ @Rp = rp
2582
+ @Page = page
2583
+ @PolicyType = policytype
2584
+ @Keyword = keyword
2585
+ end
2586
+
2587
+ def deserialize(params)
2588
+ @TargetId = params['TargetId']
2589
+ @Rp = params['Rp']
2590
+ @Page = params['Page']
2591
+ @PolicyType = params['PolicyType']
2592
+ @Keyword = params['Keyword']
2593
+ end
2594
+ end
2595
+
2596
+ # ListPoliciesForTarget返回参数结构体
2597
+ class ListPoliciesForTargetResponse < TencentCloud::Common::AbstractModel
2598
+ # @param TotalNum: 总数。
2599
+ # @type TotalNum: Integer
2600
+ # @param List: 目标关联的策略列表。
2601
+ # 注意:此字段可能返回 null,表示取不到有效值。
2602
+ # @type List: Array
2603
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2604
+ # @type RequestId: String
2605
+
2606
+ attr_accessor :TotalNum, :List, :RequestId
2607
+
2608
+ def initialize(totalnum=nil, list=nil, requestid=nil)
2609
+ @TotalNum = totalnum
2610
+ @List = list
2611
+ @RequestId = requestid
2612
+ end
2613
+
2614
+ def deserialize(params)
2615
+ @TotalNum = params['TotalNum']
2616
+ unless params['List'].nil?
2617
+ @List = []
2618
+ params['List'].each do |i|
2619
+ listpoliciesfortarget_tmp = ListPoliciesForTarget.new
2620
+ listpoliciesfortarget_tmp.deserialize(i)
2621
+ @List << listpoliciesfortarget_tmp
2622
+ end
2623
+ end
2624
+ @RequestId = params['RequestId']
2625
+ end
2626
+ end
2627
+
2628
+ # ListPolicies请求参数结构体
2629
+ class ListPoliciesRequest < TencentCloud::Common::AbstractModel
2630
+ # @param Rp: 每页数量。默认值是 20,必须大于 0 且小于或等于 200
2631
+ # @type Rp: Integer
2632
+ # @param Page: 页码。默认值是 1,从 1开始,不能大于 200
2633
+ # @type Page: Integer
2634
+ # @param Scope: 查询范围。取值范围: All-获取所有策略、QCS-只获取预设策略、Local-只获取自定义策略,默认值:All
2635
+ # @type Scope: String
2636
+ # @param Keyword: 搜索关键字。按照策略名搜索
2637
+ # @type Keyword: String
2638
+ # @param PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
2639
+ # @type PolicyType: String
2640
+
2641
+ attr_accessor :Rp, :Page, :Scope, :Keyword, :PolicyType
2642
+
2643
+ def initialize(rp=nil, page=nil, scope=nil, keyword=nil, policytype=nil)
2644
+ @Rp = rp
2645
+ @Page = page
2646
+ @Scope = scope
2647
+ @Keyword = keyword
2648
+ @PolicyType = policytype
2649
+ end
2650
+
2651
+ def deserialize(params)
2652
+ @Rp = params['Rp']
2653
+ @Page = params['Page']
2654
+ @Scope = params['Scope']
2655
+ @Keyword = params['Keyword']
2656
+ @PolicyType = params['PolicyType']
2657
+ end
2658
+ end
2659
+
2660
+ # ListPolicies返回参数结构体
2661
+ class ListPoliciesResponse < TencentCloud::Common::AbstractModel
2662
+ # @param TotalNum: 策略总数
2663
+ # @type TotalNum: Integer
2664
+ # @param List: 策略列表数据
2665
+ # 注意:此字段可能返回 null,表示取不到有效值。
2666
+ # @type List: Array
2667
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2668
+ # @type RequestId: String
2669
+
2670
+ attr_accessor :TotalNum, :List, :RequestId
2671
+
2672
+ def initialize(totalnum=nil, list=nil, requestid=nil)
2673
+ @TotalNum = totalnum
2674
+ @List = list
2675
+ @RequestId = requestid
2676
+ end
2677
+
2678
+ def deserialize(params)
2679
+ @TotalNum = params['TotalNum']
2680
+ unless params['List'].nil?
2681
+ @List = []
2682
+ params['List'].each do |i|
2683
+ listpolicynode_tmp = ListPolicyNode.new
2684
+ listpolicynode_tmp.deserialize(i)
2685
+ @List << listpolicynode_tmp
2686
+ end
2687
+ end
2688
+ @RequestId = params['RequestId']
2689
+ end
2690
+ end
2691
+
2692
+ # 企业组织策略列表
2693
+ class ListPolicyNode < TencentCloud::Common::AbstractModel
2694
+ # @param AddTime: 策略创建时间
2695
+ # 注意:此字段可能返回 null,表示取不到有效值。
2696
+ # @type AddTime: String
2697
+ # @param AttachedTimes: 策略绑定次数
2698
+ # 注意:此字段可能返回 null,表示取不到有效值。
2699
+ # @type AttachedTimes: Integer
2700
+ # @param Description: 策略描述信息
2701
+ # 注意:此字段可能返回 null,表示取不到有效值。
2702
+ # @type Description: String
2703
+ # @param PolicyName: 策略名称
2704
+ # @type PolicyName: String
2705
+ # @param PolicyId: 策略Id
2706
+ # @type PolicyId: Integer
2707
+ # @param UpdateTime: 策略更新时间
2708
+ # 注意:此字段可能返回 null,表示取不到有效值。
2709
+ # @type UpdateTime: String
2710
+ # @param Type: 策略类型 1-自定义 2-预设
2711
+ # @type Type: Integer
2712
+
2713
+ attr_accessor :AddTime, :AttachedTimes, :Description, :PolicyName, :PolicyId, :UpdateTime, :Type
2714
+
2715
+ def initialize(addtime=nil, attachedtimes=nil, description=nil, policyname=nil, policyid=nil, updatetime=nil, type=nil)
2716
+ @AddTime = addtime
2717
+ @AttachedTimes = attachedtimes
2718
+ @Description = description
2719
+ @PolicyName = policyname
2720
+ @PolicyId = policyid
2721
+ @UpdateTime = updatetime
2722
+ @Type = type
2723
+ end
2724
+
2725
+ def deserialize(params)
2726
+ @AddTime = params['AddTime']
2727
+ @AttachedTimes = params['AttachedTimes']
2728
+ @Description = params['Description']
2729
+ @PolicyName = params['PolicyName']
2730
+ @PolicyId = params['PolicyId']
2731
+ @UpdateTime = params['UpdateTime']
2732
+ @Type = params['Type']
2733
+ end
2734
+ end
2735
+
2736
+ # 查询某个指定SCP策略关联的目标列表
2737
+ class ListTargetsForPolicyNode < TencentCloud::Common::AbstractModel
2738
+ # @param Uin: scp账号uin或节点Id
2739
+ # @type Uin: Integer
2740
+ # @param RelatedType: 关联类型 1-节点关联 2-用户关联
2741
+ # @type RelatedType: Integer
2742
+ # @param Name: 账号或者节点名称
2743
+ # 注意:此字段可能返回 null,表示取不到有效值。
2744
+ # @type Name: String
2745
+ # @param AddTime: 绑定时间
2746
+ # @type AddTime: String
2747
+
2748
+ attr_accessor :Uin, :RelatedType, :Name, :AddTime
2749
+
2750
+ def initialize(uin=nil, relatedtype=nil, name=nil, addtime=nil)
2751
+ @Uin = uin
2752
+ @RelatedType = relatedtype
2753
+ @Name = name
2754
+ @AddTime = addtime
2755
+ end
2756
+
2757
+ def deserialize(params)
2758
+ @Uin = params['Uin']
2759
+ @RelatedType = params['RelatedType']
2760
+ @Name = params['Name']
2761
+ @AddTime = params['AddTime']
2762
+ end
2763
+ end
2764
+
2765
+ # ListTargetsForPolicy请求参数结构体
2766
+ class ListTargetsForPolicyRequest < TencentCloud::Common::AbstractModel
2767
+ # @param PolicyId: 策略Id。
2768
+ # @type PolicyId: Integer
2769
+ # @param Rp: 每页数量。默认值是 20,必须大于 0 且小于或等于 200
2770
+ # @type Rp: Integer
2771
+ # @param Page: 页码。默认值是 1,从 1开始,不能大于 200
2772
+ # @type Page: Integer
2773
+ # @param TargetType: 策略类型。取值范围:All-全部、User-用户、Node-节点
2774
+ # @type TargetType: String
2775
+ # @param PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
2776
+ # @type PolicyType: String
2777
+ # @param Keyword: 按照多个策略id搜索,空格隔开。
2778
+ # @type Keyword: String
2779
+
2780
+ attr_accessor :PolicyId, :Rp, :Page, :TargetType, :PolicyType, :Keyword
2781
+
2782
+ def initialize(policyid=nil, rp=nil, page=nil, targettype=nil, policytype=nil, keyword=nil)
2783
+ @PolicyId = policyid
2784
+ @Rp = rp
2785
+ @Page = page
2786
+ @TargetType = targettype
2787
+ @PolicyType = policytype
2788
+ @Keyword = keyword
2789
+ end
2790
+
2791
+ def deserialize(params)
2792
+ @PolicyId = params['PolicyId']
2793
+ @Rp = params['Rp']
2794
+ @Page = params['Page']
2795
+ @TargetType = params['TargetType']
2796
+ @PolicyType = params['PolicyType']
2797
+ @Keyword = params['Keyword']
2798
+ end
2799
+ end
2800
+
2801
+ # ListTargetsForPolicy返回参数结构体
2802
+ class ListTargetsForPolicyResponse < TencentCloud::Common::AbstractModel
2803
+ # @param TotalNum: 总数。
2804
+ # @type TotalNum: Integer
2805
+ # @param List: 指定SCP策略关联目标列表。
2806
+ # 注意:此字段可能返回 null,表示取不到有效值。
2807
+ # @type List: Array
2808
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2809
+ # @type RequestId: String
2810
+
2811
+ attr_accessor :TotalNum, :List, :RequestId
2812
+
2813
+ def initialize(totalnum=nil, list=nil, requestid=nil)
2814
+ @TotalNum = totalnum
2815
+ @List = list
2816
+ @RequestId = requestid
2817
+ end
2818
+
2819
+ def deserialize(params)
2820
+ @TotalNum = params['TotalNum']
2821
+ unless params['List'].nil?
2822
+ @List = []
2823
+ params['List'].each do |i|
2824
+ listtargetsforpolicynode_tmp = ListTargetsForPolicyNode.new
2825
+ listtargetsforpolicynode_tmp.deserialize(i)
2826
+ @List << listtargetsforpolicynode_tmp
2827
+ end
2828
+ end
2829
+ @RequestId = params['RequestId']
2830
+ end
2831
+ end
2832
+
2153
2833
  # 我的共享单元列表详情
2154
2834
  class ManagerShareUnit < TencentCloud::Common::AbstractModel
2155
2835
  # @param UnitId: 共享单元ID。
@@ -3204,6 +3884,54 @@ module TencentCloud
3204
3884
  end
3205
3885
  end
3206
3886
 
3887
+ # UpdatePolicy请求参数结构体
3888
+ class UpdatePolicyRequest < TencentCloud::Common::AbstractModel
3889
+ # @param PolicyId: 需要编辑的策略ID。可以调用[ListPolicies](https://tcloud4api.woa.com/document/product/1128/79356?!preview&!document=1)获取
3890
+ # @type PolicyId: Integer
3891
+ # @param Description: 策略描述。
3892
+ # @type Description: String
3893
+ # @param Content: 策略内容。参考CAM策略语法
3894
+ # @type Content: String
3895
+ # @param Name: 策略名。长度为1~128个字符,可以包含汉字、英文字母、数字和下划线(_)
3896
+ # @type Name: String
3897
+ # @param Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
3898
+ # @type Type: String
3899
+
3900
+ attr_accessor :PolicyId, :Description, :Content, :Name, :Type
3901
+
3902
+ def initialize(policyid=nil, description=nil, content=nil, name=nil, type=nil)
3903
+ @PolicyId = policyid
3904
+ @Description = description
3905
+ @Content = content
3906
+ @Name = name
3907
+ @Type = type
3908
+ end
3909
+
3910
+ def deserialize(params)
3911
+ @PolicyId = params['PolicyId']
3912
+ @Description = params['Description']
3913
+ @Content = params['Content']
3914
+ @Name = params['Name']
3915
+ @Type = params['Type']
3916
+ end
3917
+ end
3918
+
3919
+ # UpdatePolicy返回参数结构体
3920
+ class UpdatePolicyResponse < TencentCloud::Common::AbstractModel
3921
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3922
+ # @type RequestId: String
3923
+
3924
+ attr_accessor :RequestId
3925
+
3926
+ def initialize(requestid=nil)
3927
+ @RequestId = requestid
3928
+ end
3929
+
3930
+ def deserialize(params)
3931
+ @RequestId = params['RequestId']
3932
+ end
3933
+ end
3934
+
3207
3935
  # UpdateShareUnit请求参数结构体
3208
3936
  class UpdateShareUnitRequest < TencentCloud::Common::AbstractModel
3209
3937
  # @param UnitId: 共享单元ID。
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.803
4
+ version: 3.0.805
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-15 00:00:00.000000000 Z
11
+ date: 2024-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common