tencentcloud-sdk-tcss 1.0.246 → 1.0.247

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20201101/models.rb +423 -14
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4f864c533c9e4054a846f29f7a7782caa633353
4
- data.tar.gz: dac01c711944d980ac408738367d19d85e86acc1
3
+ metadata.gz: 62b20f4493b5cc82cf90a77135956bf8a469a208
4
+ data.tar.gz: be28bc5706a1bcfdf54089f5713bd16f381afa52
5
5
  SHA512:
6
- metadata.gz: 18c0416f134c7c6547ef66c97ad7f3dd050137b22b218704c8fc2e0595af114a116ea2d6c45d1ca8308dcd369b1dc592e1cfef698718744d4c208052d42ac6e8
7
- data.tar.gz: 11908c0b05d49c05b7345f5463b6cffafc68004ecca0df7db5077329a738588d084a1cb04748505d37b3d5f14676d563e1177b35027934089f766d2a0ad43046
6
+ metadata.gz: f7f235ebee84f60ca86e7f0c1e30bdf7f597f9dccd5c113ac225a3a9f49beea26942ab1db0e5ef0ee642aa535d2823fbd0b8da2772b3b156846c9fcb474dd6df
7
+ data.tar.gz: 306890396b9f01faa105c1b9cbe03da672a278e7928f775188e5b2262201a49fd64997c8575a3067e5231e85bdbb458084ac34eb2a9fe2610f8281de12ecc31e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.246
1
+ 1.0.247
@@ -2349,16 +2349,25 @@ module TencentCloud
2349
2349
  # @type Images: Array
2350
2350
  # @param ScanType: 扫描类型数组
2351
2351
  # @type ScanType: Array
2352
- # @param Id: 扫描的镜像列表Id
2352
+ # @param Id: 扫描的镜像列表
2353
2353
  # @type Id: Array
2354
+ # @param Filters: 过滤条件
2355
+ # @type Filters: Array
2356
+ # @param ExcludeImageList: 不需要扫描的镜像列表, 与Filters配合使用
2357
+ # @type ExcludeImageList: Array
2358
+ # @param OnlyScanLatest: 是否仅扫描各repository最新版的镜像, 与Filters配合使用
2359
+ # @type OnlyScanLatest: Boolean
2354
2360
 
2355
- attr_accessor :All, :Images, :ScanType, :Id
2361
+ attr_accessor :All, :Images, :ScanType, :Id, :Filters, :ExcludeImageList, :OnlyScanLatest
2356
2362
 
2357
- def initialize(all=nil, images=nil, scantype=nil, id=nil)
2363
+ def initialize(all=nil, images=nil, scantype=nil, id=nil, filters=nil, excludeimagelist=nil, onlyscanlatest=nil)
2358
2364
  @All = all
2359
2365
  @Images = images
2360
2366
  @ScanType = scantype
2361
2367
  @Id = id
2368
+ @Filters = filters
2369
+ @ExcludeImageList = excludeimagelist
2370
+ @OnlyScanLatest = onlyscanlatest
2362
2371
  end
2363
2372
 
2364
2373
  def deserialize(params)
@@ -2373,6 +2382,16 @@ module TencentCloud
2373
2382
  end
2374
2383
  @ScanType = params['ScanType']
2375
2384
  @Id = params['Id']
2385
+ unless params['Filters'].nil?
2386
+ @Filters = []
2387
+ params['Filters'].each do |i|
2388
+ assetfilters_tmp = AssetFilters.new
2389
+ assetfilters_tmp.deserialize(i)
2390
+ @Filters << assetfilters_tmp
2391
+ end
2392
+ end
2393
+ @ExcludeImageList = params['ExcludeImageList']
2394
+ @OnlyScanLatest = params['OnlyScanLatest']
2376
2395
  end
2377
2396
  end
2378
2397
 
@@ -5037,12 +5056,17 @@ module TencentCloud
5037
5056
 
5038
5057
  # DescribeAssetImageRegistryDetail请求参数结构体
5039
5058
  class DescribeAssetImageRegistryDetailRequest < TencentCloud::Common::AbstractModel
5059
+ # @param Id: 仓库列表id
5060
+ # @type Id: Integer
5040
5061
 
5062
+ attr_accessor :Id
5041
5063
 
5042
- def initialize()
5064
+ def initialize(id=nil)
5065
+ @Id = id
5043
5066
  end
5044
5067
 
5045
5068
  def deserialize(params)
5069
+ @Id = params['Id']
5046
5070
  end
5047
5071
  end
5048
5072
 
@@ -5054,20 +5078,170 @@ module TencentCloud
5054
5078
  # @param ImageRepoAddress: 镜像地址
5055
5079
  # 注意:此字段可能返回 null,表示取不到有效值。
5056
5080
  # @type ImageRepoAddress: String
5081
+ # @param RegistryType: 镜像类型
5082
+ # 注意:此字段可能返回 null,表示取不到有效值。
5083
+ # @type RegistryType: String
5084
+ # @param ImageName: 仓库名称
5085
+ # 注意:此字段可能返回 null,表示取不到有效值。
5086
+ # @type ImageName: String
5087
+ # @param ImageTag: 镜像版本
5088
+ # 注意:此字段可能返回 null,表示取不到有效值。
5089
+ # @type ImageTag: String
5090
+ # @param ScanTime: 扫描时间
5091
+ # 注意:此字段可能返回 null,表示取不到有效值。
5092
+ # @type ScanTime: String
5093
+ # @param ScanStatus: 扫描状态
5094
+ # 注意:此字段可能返回 null,表示取不到有效值。
5095
+ # @type ScanStatus: String
5096
+ # @param VulCnt: 安全漏洞数
5097
+ # 注意:此字段可能返回 null,表示取不到有效值。
5098
+ # @type VulCnt: Integer
5099
+ # @param VirusCnt: 木马病毒数
5100
+ # 注意:此字段可能返回 null,表示取不到有效值。
5101
+ # @type VirusCnt: Integer
5102
+ # @param RiskCnt: 风险行为数
5103
+ # 注意:此字段可能返回 null,表示取不到有效值。
5104
+ # @type RiskCnt: Integer
5105
+ # @param SentiveInfoCnt: 敏感信息数
5106
+ # 注意:此字段可能返回 null,表示取不到有效值。
5107
+ # @type SentiveInfoCnt: Integer
5108
+ # @param OsName: 镜像系统
5109
+ # 注意:此字段可能返回 null,表示取不到有效值。
5110
+ # @type OsName: String
5111
+ # @param ScanVirusError: 木马扫描错误
5112
+ # 注意:此字段可能返回 null,表示取不到有效值。
5113
+ # @type ScanVirusError: String
5114
+ # @param ScanVulError: 漏洞扫描错误
5115
+ # 注意:此字段可能返回 null,表示取不到有效值。
5116
+ # @type ScanVulError: String
5117
+ # @param LayerInfo: 层文件信息
5118
+ # 注意:此字段可能返回 null,表示取不到有效值。
5119
+ # @type LayerInfo: String
5120
+ # @param InstanceId: 实例id
5121
+ # 注意:此字段可能返回 null,表示取不到有效值。
5122
+ # @type InstanceId: String
5123
+ # @param InstanceName: 实例名称
5124
+ # 注意:此字段可能返回 null,表示取不到有效值。
5125
+ # @type InstanceName: String
5126
+ # @param Namespace: 命名空间
5127
+ # 注意:此字段可能返回 null,表示取不到有效值。
5128
+ # @type Namespace: String
5129
+ # @param ScanRiskError: 高危扫描错误
5130
+ # 注意:此字段可能返回 null,表示取不到有效值。
5131
+ # @type ScanRiskError: String
5132
+ # @param ScanVirusProgress: 木马信息扫描进度
5133
+ # 注意:此字段可能返回 null,表示取不到有效值。
5134
+ # @type ScanVirusProgress: Integer
5135
+ # @param ScanVulProgress: 漏洞扫描进度
5136
+ # 注意:此字段可能返回 null,表示取不到有效值。
5137
+ # @type ScanVulProgress: Integer
5138
+ # @param ScanRiskProgress: 敏感扫描进度
5139
+ # 注意:此字段可能返回 null,表示取不到有效值。
5140
+ # @type ScanRiskProgress: Integer
5141
+ # @param ScanRemainTime: 剩余扫描时间秒
5142
+ # 注意:此字段可能返回 null,表示取不到有效值。
5143
+ # @type ScanRemainTime: Integer
5144
+ # @param CveStatus: cve扫描状态
5145
+ # 注意:此字段可能返回 null,表示取不到有效值。
5146
+ # @type CveStatus: String
5147
+ # @param RiskStatus: 高危扫描状态
5148
+ # 注意:此字段可能返回 null,表示取不到有效值。
5149
+ # @type RiskStatus: String
5150
+ # @param VirusStatus: 木马扫描状态
5151
+ # 注意:此字段可能返回 null,表示取不到有效值。
5152
+ # @type VirusStatus: String
5153
+ # @param Progress: 总进度
5154
+ # 注意:此字段可能返回 null,表示取不到有效值。
5155
+ # @type Progress: Integer
5156
+ # @param IsAuthorized: 授权状态
5157
+ # 注意:此字段可能返回 null,表示取不到有效值。
5158
+ # @type IsAuthorized: Integer
5159
+ # @param ImageSize: 镜像大小
5160
+ # 注意:此字段可能返回 null,表示取不到有效值。
5161
+ # @type ImageSize: Integer
5162
+ # @param ImageId: 镜像Id
5163
+ # 注意:此字段可能返回 null,表示取不到有效值。
5164
+ # @type ImageId: String
5165
+ # @param RegistryRegion: 镜像区域
5166
+ # 注意:此字段可能返回 null,表示取不到有效值。
5167
+ # @type RegistryRegion: String
5168
+ # @param ImageCreateTime: 镜像创建的时间
5169
+ # 注意:此字段可能返回 null,表示取不到有效值。
5170
+ # @type ImageCreateTime: String
5057
5171
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5058
5172
  # @type RequestId: String
5059
5173
 
5060
- attr_accessor :ImageDigest, :ImageRepoAddress, :RequestId
5174
+ attr_accessor :ImageDigest, :ImageRepoAddress, :RegistryType, :ImageName, :ImageTag, :ScanTime, :ScanStatus, :VulCnt, :VirusCnt, :RiskCnt, :SentiveInfoCnt, :OsName, :ScanVirusError, :ScanVulError, :LayerInfo, :InstanceId, :InstanceName, :Namespace, :ScanRiskError, :ScanVirusProgress, :ScanVulProgress, :ScanRiskProgress, :ScanRemainTime, :CveStatus, :RiskStatus, :VirusStatus, :Progress, :IsAuthorized, :ImageSize, :ImageId, :RegistryRegion, :ImageCreateTime, :RequestId
5061
5175
 
5062
- def initialize(imagedigest=nil, imagerepoaddress=nil, requestid=nil)
5176
+ def initialize(imagedigest=nil, imagerepoaddress=nil, registrytype=nil, imagename=nil, imagetag=nil, scantime=nil, scanstatus=nil, vulcnt=nil, viruscnt=nil, riskcnt=nil, sentiveinfocnt=nil, osname=nil, scanviruserror=nil, scanvulerror=nil, layerinfo=nil, instanceid=nil, instancename=nil, namespace=nil, scanriskerror=nil, scanvirusprogress=nil, scanvulprogress=nil, scanriskprogress=nil, scanremaintime=nil, cvestatus=nil, riskstatus=nil, virusstatus=nil, progress=nil, isauthorized=nil, imagesize=nil, imageid=nil, registryregion=nil, imagecreatetime=nil, requestid=nil)
5063
5177
  @ImageDigest = imagedigest
5064
5178
  @ImageRepoAddress = imagerepoaddress
5179
+ @RegistryType = registrytype
5180
+ @ImageName = imagename
5181
+ @ImageTag = imagetag
5182
+ @ScanTime = scantime
5183
+ @ScanStatus = scanstatus
5184
+ @VulCnt = vulcnt
5185
+ @VirusCnt = viruscnt
5186
+ @RiskCnt = riskcnt
5187
+ @SentiveInfoCnt = sentiveinfocnt
5188
+ @OsName = osname
5189
+ @ScanVirusError = scanviruserror
5190
+ @ScanVulError = scanvulerror
5191
+ @LayerInfo = layerinfo
5192
+ @InstanceId = instanceid
5193
+ @InstanceName = instancename
5194
+ @Namespace = namespace
5195
+ @ScanRiskError = scanriskerror
5196
+ @ScanVirusProgress = scanvirusprogress
5197
+ @ScanVulProgress = scanvulprogress
5198
+ @ScanRiskProgress = scanriskprogress
5199
+ @ScanRemainTime = scanremaintime
5200
+ @CveStatus = cvestatus
5201
+ @RiskStatus = riskstatus
5202
+ @VirusStatus = virusstatus
5203
+ @Progress = progress
5204
+ @IsAuthorized = isauthorized
5205
+ @ImageSize = imagesize
5206
+ @ImageId = imageid
5207
+ @RegistryRegion = registryregion
5208
+ @ImageCreateTime = imagecreatetime
5065
5209
  @RequestId = requestid
5066
5210
  end
5067
5211
 
5068
5212
  def deserialize(params)
5069
5213
  @ImageDigest = params['ImageDigest']
5070
5214
  @ImageRepoAddress = params['ImageRepoAddress']
5215
+ @RegistryType = params['RegistryType']
5216
+ @ImageName = params['ImageName']
5217
+ @ImageTag = params['ImageTag']
5218
+ @ScanTime = params['ScanTime']
5219
+ @ScanStatus = params['ScanStatus']
5220
+ @VulCnt = params['VulCnt']
5221
+ @VirusCnt = params['VirusCnt']
5222
+ @RiskCnt = params['RiskCnt']
5223
+ @SentiveInfoCnt = params['SentiveInfoCnt']
5224
+ @OsName = params['OsName']
5225
+ @ScanVirusError = params['ScanVirusError']
5226
+ @ScanVulError = params['ScanVulError']
5227
+ @LayerInfo = params['LayerInfo']
5228
+ @InstanceId = params['InstanceId']
5229
+ @InstanceName = params['InstanceName']
5230
+ @Namespace = params['Namespace']
5231
+ @ScanRiskError = params['ScanRiskError']
5232
+ @ScanVirusProgress = params['ScanVirusProgress']
5233
+ @ScanVulProgress = params['ScanVulProgress']
5234
+ @ScanRiskProgress = params['ScanRiskProgress']
5235
+ @ScanRemainTime = params['ScanRemainTime']
5236
+ @CveStatus = params['CveStatus']
5237
+ @RiskStatus = params['RiskStatus']
5238
+ @VirusStatus = params['VirusStatus']
5239
+ @Progress = params['Progress']
5240
+ @IsAuthorized = params['IsAuthorized']
5241
+ @ImageSize = params['ImageSize']
5242
+ @ImageId = params['ImageId']
5243
+ @RegistryRegion = params['RegistryRegion']
5244
+ @ImageCreateTime = params['ImageCreateTime']
5071
5245
  @RequestId = params['RequestId']
5072
5246
  end
5073
5247
  end
@@ -5086,16 +5260,19 @@ module TencentCloud
5086
5260
  # @type By: String
5087
5261
  # @param Order: 排序方式,asc,desc
5088
5262
  # @type Order: String
5263
+ # @param OnlyShowLatest: 是否仅展示repository版本最新的镜像,默认为false
5264
+ # @type OnlyShowLatest: Boolean
5089
5265
 
5090
- attr_accessor :ExportField, :Limit, :Offset, :Filters, :By, :Order
5266
+ attr_accessor :ExportField, :Limit, :Offset, :Filters, :By, :Order, :OnlyShowLatest
5091
5267
 
5092
- def initialize(exportfield=nil, limit=nil, offset=nil, filters=nil, by=nil, order=nil)
5268
+ def initialize(exportfield=nil, limit=nil, offset=nil, filters=nil, by=nil, order=nil, onlyshowlatest=nil)
5093
5269
  @ExportField = exportfield
5094
5270
  @Limit = limit
5095
5271
  @Offset = offset
5096
5272
  @Filters = filters
5097
5273
  @By = by
5098
5274
  @Order = order
5275
+ @OnlyShowLatest = onlyshowlatest
5099
5276
  end
5100
5277
 
5101
5278
  def deserialize(params)
@@ -5112,6 +5289,7 @@ module TencentCloud
5112
5289
  end
5113
5290
  @By = params['By']
5114
5291
  @Order = params['Order']
5292
+ @OnlyShowLatest = params['OnlyShowLatest']
5115
5293
  end
5116
5294
  end
5117
5295
 
@@ -5138,27 +5316,77 @@ module TencentCloud
5138
5316
 
5139
5317
  # DescribeAssetImageRegistryList请求参数结构体
5140
5318
  class DescribeAssetImageRegistryListRequest < TencentCloud::Common::AbstractModel
5319
+ # @param Limit: 需要返回的数量,默认为10,最大值为100
5320
+ # @type Limit: Integer
5321
+ # @param Offset: 偏移量,默认为0
5322
+ # @type Offset: Integer
5323
+ # @param Filters: 过滤字段
5324
+ # IsAuthorized是否授权,取值全部all,未授权0,已授权1
5325
+ # @type Filters: Array
5326
+ # @param By: 排序字段
5327
+ # @type By: String
5328
+ # @param Order: 排序方式,asc,desc
5329
+ # @type Order: String
5330
+ # @param OnlyShowLatest: 是否仅展示各repository最新的镜像, 默认为false
5331
+ # @type OnlyShowLatest: Boolean
5141
5332
 
5333
+ attr_accessor :Limit, :Offset, :Filters, :By, :Order, :OnlyShowLatest
5142
5334
 
5143
- def initialize()
5335
+ def initialize(limit=nil, offset=nil, filters=nil, by=nil, order=nil, onlyshowlatest=nil)
5336
+ @Limit = limit
5337
+ @Offset = offset
5338
+ @Filters = filters
5339
+ @By = by
5340
+ @Order = order
5341
+ @OnlyShowLatest = onlyshowlatest
5144
5342
  end
5145
5343
 
5146
5344
  def deserialize(params)
5345
+ @Limit = params['Limit']
5346
+ @Offset = params['Offset']
5347
+ unless params['Filters'].nil?
5348
+ @Filters = []
5349
+ params['Filters'].each do |i|
5350
+ assetfilters_tmp = AssetFilters.new
5351
+ assetfilters_tmp.deserialize(i)
5352
+ @Filters << assetfilters_tmp
5353
+ end
5354
+ end
5355
+ @By = params['By']
5356
+ @Order = params['Order']
5357
+ @OnlyShowLatest = params['OnlyShowLatest']
5147
5358
  end
5148
5359
  end
5149
5360
 
5150
5361
  # DescribeAssetImageRegistryList返回参数结构体
5151
5362
  class DescribeAssetImageRegistryListResponse < TencentCloud::Common::AbstractModel
5363
+ # @param List: 镜像仓库列表
5364
+ # 注意:此字段可能返回 null,表示取不到有效值。
5365
+ # @type List: Array
5366
+ # @param TotalCount: 总数量
5367
+ # 注意:此字段可能返回 null,表示取不到有效值。
5368
+ # @type TotalCount: Integer
5152
5369
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5153
5370
  # @type RequestId: String
5154
5371
 
5155
- attr_accessor :RequestId
5372
+ attr_accessor :List, :TotalCount, :RequestId
5156
5373
 
5157
- def initialize(requestid=nil)
5374
+ def initialize(list=nil, totalcount=nil, requestid=nil)
5375
+ @List = list
5376
+ @TotalCount = totalcount
5158
5377
  @RequestId = requestid
5159
5378
  end
5160
5379
 
5161
5380
  def deserialize(params)
5381
+ unless params['List'].nil?
5382
+ @List = []
5383
+ params['List'].each do |i|
5384
+ imagerepoinfo_tmp = ImageRepoInfo.new
5385
+ imagerepoinfo_tmp.deserialize(i)
5386
+ @List << imagerepoinfo_tmp
5387
+ end
5388
+ end
5389
+ @TotalCount = params['TotalCount']
5162
5390
  @RequestId = params['RequestId']
5163
5391
  end
5164
5392
  end
@@ -10661,6 +10889,168 @@ module TencentCloud
10661
10889
  end
10662
10890
  end
10663
10891
 
10892
+ # 容器安全镜像仓库列表
10893
+ class ImageRepoInfo < TencentCloud::Common::AbstractModel
10894
+ # @param ImageDigest: 镜像Digest
10895
+ # @type ImageDigest: String
10896
+ # @param ImageRepoAddress: 镜像仓库地址
10897
+ # @type ImageRepoAddress: String
10898
+ # @param RegistryType: 仓库类型
10899
+ # @type RegistryType: String
10900
+ # @param ImageName: 镜像名称
10901
+ # @type ImageName: String
10902
+ # @param ImageTag: 镜像版本
10903
+ # @type ImageTag: String
10904
+ # @param ImageSize: 镜像大小
10905
+ # @type ImageSize: Integer
10906
+ # @param ScanTime: 最近扫描时间
10907
+ # @type ScanTime: String
10908
+ # @param ScanStatus: 扫描状态
10909
+ # @type ScanStatus: String
10910
+ # @param VulCnt: 安全漏洞数
10911
+ # @type VulCnt: Integer
10912
+ # @param VirusCnt: 木马病毒数
10913
+ # @type VirusCnt: Integer
10914
+ # @param RiskCnt: 风险行为数
10915
+ # @type RiskCnt: Integer
10916
+ # @param SentiveInfoCnt: 敏感信息数
10917
+ # @type SentiveInfoCnt: Integer
10918
+ # @param IsTrustImage: 是否可信镜像
10919
+ # @type IsTrustImage: Boolean
10920
+ # @param OsName: 镜像系统
10921
+ # @type OsName: String
10922
+ # @param ScanVirusError: 木马扫描错误
10923
+ # 注意:此字段可能返回 null,表示取不到有效值。
10924
+ # @type ScanVirusError: String
10925
+ # @param ScanVulError: 漏洞扫描错误
10926
+ # 注意:此字段可能返回 null,表示取不到有效值。
10927
+ # @type ScanVulError: String
10928
+ # @param InstanceId: 实例id
10929
+ # @type InstanceId: String
10930
+ # @param InstanceName: 实例名称
10931
+ # @type InstanceName: String
10932
+ # @param Namespace: 命名空间
10933
+ # @type Namespace: String
10934
+ # @param ScanRiskError: 高危扫描错误
10935
+ # 注意:此字段可能返回 null,表示取不到有效值。
10936
+ # @type ScanRiskError: String
10937
+ # @param ScanVirusProgress: 敏感信息扫描进度
10938
+ # 注意:此字段可能返回 null,表示取不到有效值。
10939
+ # @type ScanVirusProgress: Integer
10940
+ # @param ScanVulProgress: 木马扫描进度
10941
+ # 注意:此字段可能返回 null,表示取不到有效值。
10942
+ # @type ScanVulProgress: Integer
10943
+ # @param ScanRiskProgress: 漏洞扫描进度
10944
+ # 注意:此字段可能返回 null,表示取不到有效值。
10945
+ # @type ScanRiskProgress: Integer
10946
+ # @param ScanRemainTime: 剩余扫描时间秒
10947
+ # 注意:此字段可能返回 null,表示取不到有效值。
10948
+ # @type ScanRemainTime: Integer
10949
+ # @param CveStatus: cve扫描状态
10950
+ # 注意:此字段可能返回 null,表示取不到有效值。
10951
+ # @type CveStatus: String
10952
+ # @param RiskStatus: 高危扫描状态
10953
+ # 注意:此字段可能返回 null,表示取不到有效值。
10954
+ # @type RiskStatus: String
10955
+ # @param VirusStatus: 木马扫描状态
10956
+ # 注意:此字段可能返回 null,表示取不到有效值。
10957
+ # @type VirusStatus: String
10958
+ # @param Progress: 总进度
10959
+ # 注意:此字段可能返回 null,表示取不到有效值。
10960
+ # @type Progress: Integer
10961
+ # @param IsAuthorized: 授权状态
10962
+ # @type IsAuthorized: Integer
10963
+ # @param RegistryRegion: 仓库区域
10964
+ # @type RegistryRegion: String
10965
+ # @param Id: 列表id
10966
+ # @type Id: Integer
10967
+ # @param ImageId: 镜像Id
10968
+ # 注意:此字段可能返回 null,表示取不到有效值。
10969
+ # @type ImageId: String
10970
+ # @param ImageCreateTime: 镜像创建的时间
10971
+ # 注意:此字段可能返回 null,表示取不到有效值。
10972
+ # @type ImageCreateTime: String
10973
+ # @param IsLatestImage: 是否为镜像的最新版本
10974
+ # 注意:此字段可能返回 null,表示取不到有效值。
10975
+ # @type IsLatestImage: Boolean
10976
+
10977
+ attr_accessor :ImageDigest, :ImageRepoAddress, :RegistryType, :ImageName, :ImageTag, :ImageSize, :ScanTime, :ScanStatus, :VulCnt, :VirusCnt, :RiskCnt, :SentiveInfoCnt, :IsTrustImage, :OsName, :ScanVirusError, :ScanVulError, :InstanceId, :InstanceName, :Namespace, :ScanRiskError, :ScanVirusProgress, :ScanVulProgress, :ScanRiskProgress, :ScanRemainTime, :CveStatus, :RiskStatus, :VirusStatus, :Progress, :IsAuthorized, :RegistryRegion, :Id, :ImageId, :ImageCreateTime, :IsLatestImage
10978
+
10979
+ def initialize(imagedigest=nil, imagerepoaddress=nil, registrytype=nil, imagename=nil, imagetag=nil, imagesize=nil, scantime=nil, scanstatus=nil, vulcnt=nil, viruscnt=nil, riskcnt=nil, sentiveinfocnt=nil, istrustimage=nil, osname=nil, scanviruserror=nil, scanvulerror=nil, instanceid=nil, instancename=nil, namespace=nil, scanriskerror=nil, scanvirusprogress=nil, scanvulprogress=nil, scanriskprogress=nil, scanremaintime=nil, cvestatus=nil, riskstatus=nil, virusstatus=nil, progress=nil, isauthorized=nil, registryregion=nil, id=nil, imageid=nil, imagecreatetime=nil, islatestimage=nil)
10980
+ @ImageDigest = imagedigest
10981
+ @ImageRepoAddress = imagerepoaddress
10982
+ @RegistryType = registrytype
10983
+ @ImageName = imagename
10984
+ @ImageTag = imagetag
10985
+ @ImageSize = imagesize
10986
+ @ScanTime = scantime
10987
+ @ScanStatus = scanstatus
10988
+ @VulCnt = vulcnt
10989
+ @VirusCnt = viruscnt
10990
+ @RiskCnt = riskcnt
10991
+ @SentiveInfoCnt = sentiveinfocnt
10992
+ @IsTrustImage = istrustimage
10993
+ @OsName = osname
10994
+ @ScanVirusError = scanviruserror
10995
+ @ScanVulError = scanvulerror
10996
+ @InstanceId = instanceid
10997
+ @InstanceName = instancename
10998
+ @Namespace = namespace
10999
+ @ScanRiskError = scanriskerror
11000
+ @ScanVirusProgress = scanvirusprogress
11001
+ @ScanVulProgress = scanvulprogress
11002
+ @ScanRiskProgress = scanriskprogress
11003
+ @ScanRemainTime = scanremaintime
11004
+ @CveStatus = cvestatus
11005
+ @RiskStatus = riskstatus
11006
+ @VirusStatus = virusstatus
11007
+ @Progress = progress
11008
+ @IsAuthorized = isauthorized
11009
+ @RegistryRegion = registryregion
11010
+ @Id = id
11011
+ @ImageId = imageid
11012
+ @ImageCreateTime = imagecreatetime
11013
+ @IsLatestImage = islatestimage
11014
+ end
11015
+
11016
+ def deserialize(params)
11017
+ @ImageDigest = params['ImageDigest']
11018
+ @ImageRepoAddress = params['ImageRepoAddress']
11019
+ @RegistryType = params['RegistryType']
11020
+ @ImageName = params['ImageName']
11021
+ @ImageTag = params['ImageTag']
11022
+ @ImageSize = params['ImageSize']
11023
+ @ScanTime = params['ScanTime']
11024
+ @ScanStatus = params['ScanStatus']
11025
+ @VulCnt = params['VulCnt']
11026
+ @VirusCnt = params['VirusCnt']
11027
+ @RiskCnt = params['RiskCnt']
11028
+ @SentiveInfoCnt = params['SentiveInfoCnt']
11029
+ @IsTrustImage = params['IsTrustImage']
11030
+ @OsName = params['OsName']
11031
+ @ScanVirusError = params['ScanVirusError']
11032
+ @ScanVulError = params['ScanVulError']
11033
+ @InstanceId = params['InstanceId']
11034
+ @InstanceName = params['InstanceName']
11035
+ @Namespace = params['Namespace']
11036
+ @ScanRiskError = params['ScanRiskError']
11037
+ @ScanVirusProgress = params['ScanVirusProgress']
11038
+ @ScanVulProgress = params['ScanVulProgress']
11039
+ @ScanRiskProgress = params['ScanRiskProgress']
11040
+ @ScanRemainTime = params['ScanRemainTime']
11041
+ @CveStatus = params['CveStatus']
11042
+ @RiskStatus = params['RiskStatus']
11043
+ @VirusStatus = params['VirusStatus']
11044
+ @Progress = params['Progress']
11045
+ @IsAuthorized = params['IsAuthorized']
11046
+ @RegistryRegion = params['RegistryRegion']
11047
+ @Id = params['Id']
11048
+ @ImageId = params['ImageId']
11049
+ @ImageCreateTime = params['ImageCreateTime']
11050
+ @IsLatestImage = params['IsLatestImage']
11051
+ end
11052
+ end
11053
+
10664
11054
  # 容器安全镜像高危行为信息
10665
11055
  class ImageRisk < TencentCloud::Common::AbstractModel
10666
11056
  # @param Behavior: 高危行为
@@ -11508,15 +11898,24 @@ module TencentCloud
11508
11898
  # @type All: Boolean
11509
11899
  # @param Images: 扫描的镜像列表
11510
11900
  # @type Images: Array
11511
- # @param Id: 扫描的镜像列表Id
11901
+ # @param Id: 扫描的镜像列表
11512
11902
  # @type Id: Array
11903
+ # @param Filters: 过滤条件
11904
+ # @type Filters: Array
11905
+ # @param ExcludeImageList: 不要扫描的镜像列表,与Filters配合使用
11906
+ # @type ExcludeImageList: Array
11907
+ # @param OnlyScanLatest: 是否仅扫描各repository最新版本的镜像
11908
+ # @type OnlyScanLatest: Boolean
11513
11909
 
11514
- attr_accessor :All, :Images, :Id
11910
+ attr_accessor :All, :Images, :Id, :Filters, :ExcludeImageList, :OnlyScanLatest
11515
11911
 
11516
- def initialize(all=nil, images=nil, id=nil)
11912
+ def initialize(all=nil, images=nil, id=nil, filters=nil, excludeimagelist=nil, onlyscanlatest=nil)
11517
11913
  @All = all
11518
11914
  @Images = images
11519
11915
  @Id = id
11916
+ @Filters = filters
11917
+ @ExcludeImageList = excludeimagelist
11918
+ @OnlyScanLatest = onlyscanlatest
11520
11919
  end
11521
11920
 
11522
11921
  def deserialize(params)
@@ -11530,6 +11929,16 @@ module TencentCloud
11530
11929
  end
11531
11930
  end
11532
11931
  @Id = params['Id']
11932
+ unless params['Filters'].nil?
11933
+ @Filters = []
11934
+ params['Filters'].each do |i|
11935
+ assetfilters_tmp = AssetFilters.new
11936
+ assetfilters_tmp.deserialize(i)
11937
+ @Filters << assetfilters_tmp
11938
+ end
11939
+ end
11940
+ @ExcludeImageList = params['ExcludeImageList']
11941
+ @OnlyScanLatest = params['OnlyScanLatest']
11533
11942
  end
11534
11943
  end
11535
11944
 
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: 1.0.246
4
+ version: 1.0.247
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-01-20 00:00:00.000000000 Z
11
+ date: 2022-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common