tencentcloud-sdk-tcss 3.0.432 → 3.0.433

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: f069385f92c270e6aa914bd72017aa87e26034af
4
- data.tar.gz: e3ee7fc5d0793d09a7d28e66fdc3a8f114688052
3
+ metadata.gz: 78b8f4c9f6528f8e6060259f4d389fa1f9551c12
4
+ data.tar.gz: 8bb4dbf09f575997fc3d13a59e2e58753e49fd5e
5
5
  SHA512:
6
- metadata.gz: b565aebf5fedc5f2b73467122842625fcc34941285e3667bc95da8cb66605a69b6b459719994eda1e5acb3a3b9ca7ed88ac7c0bbbffd41a0856fb13d595a4f99
7
- data.tar.gz: a730549b951790104ca0838fb85d6c7844b9b1c8c00f9336021a6f7f74924fc4a4105aa4d606aa77c89d41b8670b6a7e43f237f4032b8c128d91c37e58c3737f
6
+ metadata.gz: ef2ef72b38af165e28a053444b5a24f764a4f59ced68afcb9fd4081622e33c44023c98287238088908d2c8eeab26a8971c953bd2b4b3ec5c04cd5bfa9a86f2b5
7
+ data.tar.gz: 1dec94a0285c51d372e76376851cccf046a1cf0ecb7062c46741d71e097a06d916e3ebbaffa45b80b627fd7bb17a7f14c6cff2a40b5087bb2699a75970e3b221
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.432
1
+ 3.0.433
@@ -101,6 +101,56 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 新增安全合规忽略(资产+检测项列表)列表,不显示指定的检查项包含的资产内容
105
+ # 参考的AddCompliancePolicyItemToWhitelist,除输入字段外,其它应该是一致的,如果有不同可能是定义的不对
106
+
107
+ # @param request: Request instance for AddComplianceAssetPolicySetToWhitelist.
108
+ # @type request: :class:`Tencentcloud::tcss::V20201101::AddComplianceAssetPolicySetToWhitelistRequest`
109
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::AddComplianceAssetPolicySetToWhitelistResponse`
110
+ def AddComplianceAssetPolicySetToWhitelist(request)
111
+ body = send_request('AddComplianceAssetPolicySetToWhitelist', request.serialize)
112
+ response = JSON.parse(body)
113
+ if response['Response'].key?('Error') == false
114
+ model = AddComplianceAssetPolicySetToWhitelistResponse.new
115
+ model.deserialize(response['Response'])
116
+ model
117
+ else
118
+ code = response['Response']['Error']['Code']
119
+ message = response['Response']['Error']['Message']
120
+ reqid = response['Response']['RequestId']
121
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
122
+ end
123
+ rescue TencentCloud::Common::TencentCloudSDKException => e
124
+ raise e
125
+ rescue StandardError => e
126
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
127
+ end
128
+
129
+ # 新增安全合规忽略(检测项+资产)列表,不显示指定的检查项包含的资产内容
130
+ # 参考的AddCompliancePolicyItemToWhitelist,除输入字段外,其它应该是一致的,如果有不同可能是定义的不对
131
+
132
+ # @param request: Request instance for AddCompliancePolicyAssetSetToWhitelist.
133
+ # @type request: :class:`Tencentcloud::tcss::V20201101::AddCompliancePolicyAssetSetToWhitelistRequest`
134
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::AddCompliancePolicyAssetSetToWhitelistResponse`
135
+ def AddCompliancePolicyAssetSetToWhitelist(request)
136
+ body = send_request('AddCompliancePolicyAssetSetToWhitelist', request.serialize)
137
+ response = JSON.parse(body)
138
+ if response['Response'].key?('Error') == false
139
+ model = AddCompliancePolicyAssetSetToWhitelistResponse.new
140
+ model.deserialize(response['Response'])
141
+ model
142
+ else
143
+ code = response['Response']['Error']['Code']
144
+ message = response['Response']['Error']['Message']
145
+ reqid = response['Response']['RequestId']
146
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
147
+ end
148
+ rescue TencentCloud::Common::TencentCloudSDKException => e
149
+ raise e
150
+ rescue StandardError => e
151
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
152
+ end
153
+
104
154
  # 将指定的检测项添加到白名单中,不显示未通过结果。
105
155
 
106
156
  # @param request: Request instance for AddCompliancePolicyItemToWhitelist.
@@ -1301,6 +1351,55 @@ module TencentCloud
1301
1351
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
1352
  end
1303
1353
 
1354
+ # 移除安全合规忽略(资产+检测项)列表,不显示指定的检查项包含的资产内容
1355
+ # 参考的AddCompliancePolicyAssetSetToWhitelist,除输入字段外,其它应该是一致的,如果有不同可能是定义的不对
1356
+
1357
+ # @param request: Request instance for DeleteComplianceAssetPolicySetFromWhitelist.
1358
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DeleteComplianceAssetPolicySetFromWhitelistRequest`
1359
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DeleteComplianceAssetPolicySetFromWhitelistResponse`
1360
+ def DeleteComplianceAssetPolicySetFromWhitelist(request)
1361
+ body = send_request('DeleteComplianceAssetPolicySetFromWhitelist', request.serialize)
1362
+ response = JSON.parse(body)
1363
+ if response['Response'].key?('Error') == false
1364
+ model = DeleteComplianceAssetPolicySetFromWhitelistResponse.new
1365
+ model.deserialize(response['Response'])
1366
+ model
1367
+ else
1368
+ code = response['Response']['Error']['Code']
1369
+ message = response['Response']['Error']['Message']
1370
+ reqid = response['Response']['RequestId']
1371
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1372
+ end
1373
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1374
+ raise e
1375
+ rescue StandardError => e
1376
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1377
+ end
1378
+
1379
+ # 新增安全合规忽略(检测项+资产)列表,不显示指定的检查项包含的资产内容
1380
+
1381
+ # @param request: Request instance for DeleteCompliancePolicyAssetSetFromWhitelist.
1382
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DeleteCompliancePolicyAssetSetFromWhitelistRequest`
1383
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DeleteCompliancePolicyAssetSetFromWhitelistResponse`
1384
+ def DeleteCompliancePolicyAssetSetFromWhitelist(request)
1385
+ body = send_request('DeleteCompliancePolicyAssetSetFromWhitelist', request.serialize)
1386
+ response = JSON.parse(body)
1387
+ if response['Response'].key?('Error') == false
1388
+ model = DeleteCompliancePolicyAssetSetFromWhitelistResponse.new
1389
+ model.deserialize(response['Response'])
1390
+ model
1391
+ else
1392
+ code = response['Response']['Error']['Code']
1393
+ message = response['Response']['Error']['Message']
1394
+ reqid = response['Response']['RequestId']
1395
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1396
+ end
1397
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1398
+ raise e
1399
+ rescue StandardError => e
1400
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1401
+ end
1402
+
1304
1403
  # 从白名单中删除将指定的检测项。
1305
1404
 
1306
1405
  # @param request: Request instance for DeleteCompliancePolicyItemFromWhitelist.
@@ -3797,6 +3896,30 @@ module TencentCloud
3797
3896
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3798
3897
  end
3799
3898
 
3899
+ # 查询用户镜像仓库下的项目名称列表
3900
+
3901
+ # @param request: Request instance for DescribeImageRegistryNamespaceList.
3902
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeImageRegistryNamespaceListRequest`
3903
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeImageRegistryNamespaceListResponse`
3904
+ def DescribeImageRegistryNamespaceList(request)
3905
+ body = send_request('DescribeImageRegistryNamespaceList', request.serialize)
3906
+ response = JSON.parse(body)
3907
+ if response['Response'].key?('Error') == false
3908
+ model = DescribeImageRegistryNamespaceListResponse.new
3909
+ model.deserialize(response['Response'])
3910
+ model
3911
+ else
3912
+ code = response['Response']['Error']['Code']
3913
+ message = response['Response']['Error']['Message']
3914
+ reqid = response['Response']['RequestId']
3915
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3916
+ end
3917
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3918
+ raise e
3919
+ rescue StandardError => e
3920
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3921
+ end
3922
+
3800
3923
  # 镜像仓库查看定时任务
3801
3924
 
3802
3925
  # @param request: Request instance for DescribeImageRegistryTimingScanTask.
@@ -947,6 +947,81 @@ module TencentCloud
947
947
  end
948
948
  end
949
949
 
950
+ # AddComplianceAssetPolicySetToWhitelist请求参数结构体
951
+ class AddComplianceAssetPolicySetToWhitelistRequest < TencentCloud::Common::AbstractModel
952
+ # @param AssetPolicySetList: 资产ID+检查项IDs. 列表
953
+ # @type AssetPolicySetList: Array
954
+
955
+ attr_accessor :AssetPolicySetList
956
+
957
+ def initialize(assetpolicysetlist=nil)
958
+ @AssetPolicySetList = assetpolicysetlist
959
+ end
960
+
961
+ def deserialize(params)
962
+ unless params['AssetPolicySetList'].nil?
963
+ @AssetPolicySetList = []
964
+ params['AssetPolicySetList'].each do |i|
965
+ complianceassetpolicysetitem_tmp = ComplianceAssetPolicySetItem.new
966
+ complianceassetpolicysetitem_tmp.deserialize(i)
967
+ @AssetPolicySetList << complianceassetpolicysetitem_tmp
968
+ end
969
+ end
970
+ end
971
+ end
972
+
973
+ # AddComplianceAssetPolicySetToWhitelist返回参数结构体
974
+ class AddComplianceAssetPolicySetToWhitelistResponse < TencentCloud::Common::AbstractModel
975
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
976
+ # @type RequestId: String
977
+
978
+ attr_accessor :RequestId
979
+
980
+ def initialize(requestid=nil)
981
+ @RequestId = requestid
982
+ end
983
+
984
+ def deserialize(params)
985
+ @RequestId = params['RequestId']
986
+ end
987
+ end
988
+
989
+ # AddCompliancePolicyAssetSetToWhitelist请求参数结构体
990
+ class AddCompliancePolicyAssetSetToWhitelistRequest < TencentCloud::Common::AbstractModel
991
+ # @param CustomerPolicyItemId: 检查项ID
992
+ # @type CustomerPolicyItemId: Integer
993
+ # @param CustomerAssetItemIdSet: 需要忽略指定检查项内的资产ID列表
994
+ # @type CustomerAssetItemIdSet: Array
995
+
996
+ attr_accessor :CustomerPolicyItemId, :CustomerAssetItemIdSet
997
+
998
+ def initialize(customerpolicyitemid=nil, customerassetitemidset=nil)
999
+ @CustomerPolicyItemId = customerpolicyitemid
1000
+ @CustomerAssetItemIdSet = customerassetitemidset
1001
+ end
1002
+
1003
+ def deserialize(params)
1004
+ @CustomerPolicyItemId = params['CustomerPolicyItemId']
1005
+ @CustomerAssetItemIdSet = params['CustomerAssetItemIdSet']
1006
+ end
1007
+ end
1008
+
1009
+ # AddCompliancePolicyAssetSetToWhitelist返回参数结构体
1010
+ class AddCompliancePolicyAssetSetToWhitelistResponse < TencentCloud::Common::AbstractModel
1011
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1012
+ # @type RequestId: String
1013
+
1014
+ attr_accessor :RequestId
1015
+
1016
+ def initialize(requestid=nil)
1017
+ @RequestId = requestid
1018
+ end
1019
+
1020
+ def deserialize(params)
1021
+ @RequestId = params['RequestId']
1022
+ end
1023
+ end
1024
+
950
1025
  # AddCompliancePolicyItemToWhitelist请求参数结构体
951
1026
  class AddCompliancePolicyItemToWhitelistRequest < TencentCloud::Common::AbstractModel
952
1027
  # @param CustomerPolicyItemIdSet: 要忽略的检测项的ID的列表
@@ -2515,6 +2590,26 @@ module TencentCloud
2515
2590
  end
2516
2591
  end
2517
2592
 
2593
+ # 资产+检查项ids 集合单元
2594
+ class ComplianceAssetPolicySetItem < TencentCloud::Common::AbstractModel
2595
+ # @param CustomerAssetItemId: 资产ID
2596
+ # @type CustomerAssetItemId: Integer
2597
+ # @param CustomerPolicyItemIdSet: 需要忽略指定资产内的检查项ID列表,为空表示所有
2598
+ # @type CustomerPolicyItemIdSet: Array
2599
+
2600
+ attr_accessor :CustomerAssetItemId, :CustomerPolicyItemIdSet
2601
+
2602
+ def initialize(customerassetitemid=nil, customerpolicyitemidset=nil)
2603
+ @CustomerAssetItemId = customerassetitemid
2604
+ @CustomerPolicyItemIdSet = customerpolicyitemidset
2605
+ end
2606
+
2607
+ def deserialize(params)
2608
+ @CustomerAssetItemId = params['CustomerAssetItemId']
2609
+ @CustomerPolicyItemIdSet = params['CustomerPolicyItemIdSet']
2610
+ end
2611
+ end
2612
+
2518
2613
  # 表示一类资产的总览信息。
2519
2614
  class ComplianceAssetSummary < TencentCloud::Common::AbstractModel
2520
2615
  # @param AssetType: 资产类别。
@@ -2871,6 +2966,26 @@ module TencentCloud
2871
2966
  end
2872
2967
  end
2873
2968
 
2969
+ # 检查项+资产ids 的集合单元
2970
+ class CompliancePolicyAssetSetItem < TencentCloud::Common::AbstractModel
2971
+ # @param CustomerPolicyItemId: 检查项ID
2972
+ # @type CustomerPolicyItemId: Integer
2973
+ # @param CustomerAssetItemIdSet: 需要忽略指定检查项内的资产ID列表,为空表示所有
2974
+ # @type CustomerAssetItemIdSet: Array
2975
+
2976
+ attr_accessor :CustomerPolicyItemId, :CustomerAssetItemIdSet
2977
+
2978
+ def initialize(customerpolicyitemid=nil, customerassetitemidset=nil)
2979
+ @CustomerPolicyItemId = customerpolicyitemid
2980
+ @CustomerAssetItemIdSet = customerassetitemidset
2981
+ end
2982
+
2983
+ def deserialize(params)
2984
+ @CustomerPolicyItemId = params['CustomerPolicyItemId']
2985
+ @CustomerAssetItemIdSet = params['CustomerAssetItemIdSet']
2986
+ end
2987
+ end
2988
+
2874
2989
  # 表示一条检测项对应的汇总信息。
2875
2990
  class CompliancePolicyItemSummary < TencentCloud::Common::AbstractModel
2876
2991
  # @param CustomerPolicyItemId: 为客户分配的唯一的检测项的ID。
@@ -5317,6 +5432,81 @@ module TencentCloud
5317
5432
  end
5318
5433
  end
5319
5434
 
5435
+ # DeleteComplianceAssetPolicySetFromWhitelist请求参数结构体
5436
+ class DeleteComplianceAssetPolicySetFromWhitelistRequest < TencentCloud::Common::AbstractModel
5437
+ # @param AssetItemId: 资产ID
5438
+ # @type AssetItemId: Integer
5439
+ # @param CustomerPolicyItemIdSet: 需要忽略指定资产内的检查项ID列表
5440
+ # @type CustomerPolicyItemIdSet: Array
5441
+
5442
+ attr_accessor :AssetItemId, :CustomerPolicyItemIdSet
5443
+
5444
+ def initialize(assetitemid=nil, customerpolicyitemidset=nil)
5445
+ @AssetItemId = assetitemid
5446
+ @CustomerPolicyItemIdSet = customerpolicyitemidset
5447
+ end
5448
+
5449
+ def deserialize(params)
5450
+ @AssetItemId = params['AssetItemId']
5451
+ @CustomerPolicyItemIdSet = params['CustomerPolicyItemIdSet']
5452
+ end
5453
+ end
5454
+
5455
+ # DeleteComplianceAssetPolicySetFromWhitelist返回参数结构体
5456
+ class DeleteComplianceAssetPolicySetFromWhitelistResponse < TencentCloud::Common::AbstractModel
5457
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5458
+ # @type RequestId: String
5459
+
5460
+ attr_accessor :RequestId
5461
+
5462
+ def initialize(requestid=nil)
5463
+ @RequestId = requestid
5464
+ end
5465
+
5466
+ def deserialize(params)
5467
+ @RequestId = params['RequestId']
5468
+ end
5469
+ end
5470
+
5471
+ # DeleteCompliancePolicyAssetSetFromWhitelist请求参数结构体
5472
+ class DeleteCompliancePolicyAssetSetFromWhitelistRequest < TencentCloud::Common::AbstractModel
5473
+ # @param PolicyAssetSetList: (检查项ID+资产ID列表)的列表
5474
+ # @type PolicyAssetSetList: Array
5475
+
5476
+ attr_accessor :PolicyAssetSetList
5477
+
5478
+ def initialize(policyassetsetlist=nil)
5479
+ @PolicyAssetSetList = policyassetsetlist
5480
+ end
5481
+
5482
+ def deserialize(params)
5483
+ unless params['PolicyAssetSetList'].nil?
5484
+ @PolicyAssetSetList = []
5485
+ params['PolicyAssetSetList'].each do |i|
5486
+ compliancepolicyassetsetitem_tmp = CompliancePolicyAssetSetItem.new
5487
+ compliancepolicyassetsetitem_tmp.deserialize(i)
5488
+ @PolicyAssetSetList << compliancepolicyassetsetitem_tmp
5489
+ end
5490
+ end
5491
+ end
5492
+ end
5493
+
5494
+ # DeleteCompliancePolicyAssetSetFromWhitelist返回参数结构体
5495
+ class DeleteCompliancePolicyAssetSetFromWhitelistResponse < TencentCloud::Common::AbstractModel
5496
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5497
+ # @type RequestId: String
5498
+
5499
+ attr_accessor :RequestId
5500
+
5501
+ def initialize(requestid=nil)
5502
+ @RequestId = requestid
5503
+ end
5504
+
5505
+ def deserialize(params)
5506
+ @RequestId = params['RequestId']
5507
+ end
5508
+ end
5509
+
5320
5510
  # DeleteCompliancePolicyItemFromWhitelist请求参数结构体
5321
5511
  class DeleteCompliancePolicyItemFromWhitelistRequest < TencentCloud::Common::AbstractModel
5322
5512
  # @param WhitelistIdSet: 指定的白名单项的ID的列表
@@ -12029,6 +12219,61 @@ module TencentCloud
12029
12219
  end
12030
12220
  end
12031
12221
 
12222
+ # DescribeImageRegistryNamespaceList请求参数结构体
12223
+ class DescribeImageRegistryNamespaceListRequest < TencentCloud::Common::AbstractModel
12224
+ # @param Offset: 本次查询的起始偏移量,默认为0。
12225
+ # @type Offset: Integer
12226
+ # @param Limit: 本次查询的数据量,默认为10,最大值为100。
12227
+ # @type Limit: Integer
12228
+ # @param Filters: 查询的过滤条件。Name字段可取值"Namespace"。
12229
+ # @type Filters: Array
12230
+
12231
+ attr_accessor :Offset, :Limit, :Filters
12232
+
12233
+ def initialize(offset=nil, limit=nil, filters=nil)
12234
+ @Offset = offset
12235
+ @Limit = limit
12236
+ @Filters = filters
12237
+ end
12238
+
12239
+ def deserialize(params)
12240
+ @Offset = params['Offset']
12241
+ @Limit = params['Limit']
12242
+ unless params['Filters'].nil?
12243
+ @Filters = []
12244
+ params['Filters'].each do |i|
12245
+ assetfilters_tmp = AssetFilters.new
12246
+ assetfilters_tmp.deserialize(i)
12247
+ @Filters << assetfilters_tmp
12248
+ end
12249
+ end
12250
+ end
12251
+ end
12252
+
12253
+ # DescribeImageRegistryNamespaceList返回参数结构体
12254
+ class DescribeImageRegistryNamespaceListResponse < TencentCloud::Common::AbstractModel
12255
+ # @param TotalCount: 可返回的项目空间的总量。
12256
+ # @type TotalCount: Integer
12257
+ # @param NamespaceList: 返回的项目空间列表
12258
+ # @type NamespaceList: Array
12259
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
12260
+ # @type RequestId: String
12261
+
12262
+ attr_accessor :TotalCount, :NamespaceList, :RequestId
12263
+
12264
+ def initialize(totalcount=nil, namespacelist=nil, requestid=nil)
12265
+ @TotalCount = totalcount
12266
+ @NamespaceList = namespacelist
12267
+ @RequestId = requestid
12268
+ end
12269
+
12270
+ def deserialize(params)
12271
+ @TotalCount = params['TotalCount']
12272
+ @NamespaceList = params['NamespaceList']
12273
+ @RequestId = params['RequestId']
12274
+ end
12275
+ end
12276
+
12032
12277
  # DescribeImageRegistryTimingScanTask请求参数结构体
12033
12278
  class DescribeImageRegistryTimingScanTaskRequest < TencentCloud::Common::AbstractModel
12034
12279
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tcss
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.432
4
+ version: 3.0.433
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-10-20 00:00:00.000000000 Z
11
+ date: 2022-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common