lib/v20201101/models.rb in tencentcloud-sdk-tcss-3.0.881 vs lib/v20201101/models.rb in tencentcloud-sdk-tcss-3.0.882
- old
+ new
@@ -1052,15 +1052,18 @@
# AddComplianceAssetPolicySetToWhitelist请求参数结构体
class AddComplianceAssetPolicySetToWhitelistRequest < TencentCloud::Common::AbstractModel
# @param AssetPolicySetList: 资产ID+检查项IDs. 列表
# @type AssetPolicySetList: Array
+ # @param AssetType: 扫描资产类型 <li>ASSET_CONTAINER Docker容器</li> <li>ASSET_IMAGE Docker镜像</li> <li>ASSET_HOST Docker主机</li> <li>ASSET_K8S Kubernetes</li> <li>ASSET_CONTAINERD Containerd主机</li> <li>ASSET_CONTAINERD_CONTAINER Containerd容器</li>
+ # @type AssetType: String
- attr_accessor :AssetPolicySetList
+ attr_accessor :AssetPolicySetList, :AssetType
- def initialize(assetpolicysetlist=nil)
+ def initialize(assetpolicysetlist=nil, assettype=nil)
@AssetPolicySetList = assetpolicysetlist
+ @AssetType = assettype
end
def deserialize(params)
unless params['AssetPolicySetList'].nil?
@AssetPolicySetList = []
@@ -1068,10 +1071,11 @@
complianceassetpolicysetitem_tmp = ComplianceAssetPolicySetItem.new
complianceassetpolicysetitem_tmp.deserialize(i)
@AssetPolicySetList << complianceassetpolicysetitem_tmp
end
end
+ @AssetType = params['AssetType']
end
end
# AddComplianceAssetPolicySetToWhitelist返回参数结构体
class AddComplianceAssetPolicySetToWhitelistResponse < TencentCloud::Common::AbstractModel
@@ -3111,14 +3115,23 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OpenPolicyItemCount: Integer
# @param IgnoredPolicyItemCount: 已忽略的检查项总数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IgnoredPolicyItemCount: Integer
+ # @param TotalPolicyItemCount: 总检测项数
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type TotalPolicyItemCount: Integer
+ # @param DetectHostCount: 检测主机数
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type DetectHostCount: Integer
+ # @param LeftTime: 当前任务剩余时间,单位秒
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type LeftTime: Integer
- attr_accessor :AssetType, :IsCustomerFirstCheck, :CheckStatus, :CheckProgress, :PassedPolicyItemCount, :FailedPolicyItemCount, :FailedCriticalPolicyItemCount, :FailedHighRiskPolicyItemCount, :FailedMediumRiskPolicyItemCount, :FailedLowRiskPolicyItemCount, :NoticePolicyItemCount, :PassedAssetCount, :FailedAssetCount, :AssetPassedRate, :ScanFailedAssetCount, :CheckCostTime, :LastCheckTime, :PeriodRule, :OpenPolicyItemCount, :IgnoredPolicyItemCount
+ attr_accessor :AssetType, :IsCustomerFirstCheck, :CheckStatus, :CheckProgress, :PassedPolicyItemCount, :FailedPolicyItemCount, :FailedCriticalPolicyItemCount, :FailedHighRiskPolicyItemCount, :FailedMediumRiskPolicyItemCount, :FailedLowRiskPolicyItemCount, :NoticePolicyItemCount, :PassedAssetCount, :FailedAssetCount, :AssetPassedRate, :ScanFailedAssetCount, :CheckCostTime, :LastCheckTime, :PeriodRule, :OpenPolicyItemCount, :IgnoredPolicyItemCount, :TotalPolicyItemCount, :DetectHostCount, :LeftTime
- def initialize(assettype=nil, iscustomerfirstcheck=nil, checkstatus=nil, checkprogress=nil, passedpolicyitemcount=nil, failedpolicyitemcount=nil, failedcriticalpolicyitemcount=nil, failedhighriskpolicyitemcount=nil, failedmediumriskpolicyitemcount=nil, failedlowriskpolicyitemcount=nil, noticepolicyitemcount=nil, passedassetcount=nil, failedassetcount=nil, assetpassedrate=nil, scanfailedassetcount=nil, checkcosttime=nil, lastchecktime=nil, periodrule=nil, openpolicyitemcount=nil, ignoredpolicyitemcount=nil)
+ def initialize(assettype=nil, iscustomerfirstcheck=nil, checkstatus=nil, checkprogress=nil, passedpolicyitemcount=nil, failedpolicyitemcount=nil, failedcriticalpolicyitemcount=nil, failedhighriskpolicyitemcount=nil, failedmediumriskpolicyitemcount=nil, failedlowriskpolicyitemcount=nil, noticepolicyitemcount=nil, passedassetcount=nil, failedassetcount=nil, assetpassedrate=nil, scanfailedassetcount=nil, checkcosttime=nil, lastchecktime=nil, periodrule=nil, openpolicyitemcount=nil, ignoredpolicyitemcount=nil, totalpolicyitemcount=nil, detecthostcount=nil, lefttime=nil)
@AssetType = assettype
@IsCustomerFirstCheck = iscustomerfirstcheck
@CheckStatus = checkstatus
@CheckProgress = checkprogress
@PassedPolicyItemCount = passedpolicyitemcount
@@ -3135,10 +3148,13 @@
@CheckCostTime = checkcosttime
@LastCheckTime = lastchecktime
@PeriodRule = periodrule
@OpenPolicyItemCount = openpolicyitemcount
@IgnoredPolicyItemCount = ignoredpolicyitemcount
+ @TotalPolicyItemCount = totalpolicyitemcount
+ @DetectHostCount = detecthostcount
+ @LeftTime = lefttime
end
def deserialize(params)
@AssetType = params['AssetType']
@IsCustomerFirstCheck = params['IsCustomerFirstCheck']
@@ -3161,10 +3177,13 @@
@PeriodRule = CompliancePeriodTaskRule.new
@PeriodRule.deserialize(params['PeriodRule'])
end
@OpenPolicyItemCount = params['OpenPolicyItemCount']
@IgnoredPolicyItemCount = params['IgnoredPolicyItemCount']
+ @TotalPolicyItemCount = params['TotalPolicyItemCount']
+ @DetectHostCount = params['DetectHostCount']
+ @LeftTime = params['LeftTime']
end
end
# 表示一个合规标准的信息。
class ComplianceBenchmarkStandard < TencentCloud::Common::AbstractModel
@@ -3491,14 +3510,19 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Description: String
# @param AuditProcedure: 检查项审计方法
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AuditProcedure: String
+ # @param IsEnable: 是否开启
+ # <li>0 关闭</li>
+ # <li>1 开启</li>
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type IsEnable: Integer
- attr_accessor :CustomerPolicyItemId, :BasePolicyItemId, :Name, :Category, :BenchmarkStandardName, :RiskLevel, :AssetType, :LastCheckTime, :CheckStatus, :CheckResult, :PassedAssetCount, :FailedAssetCount, :WhitelistId, :FixSuggestion, :BenchmarkStandardId, :ApplicableVersion, :Description, :AuditProcedure
+ attr_accessor :CustomerPolicyItemId, :BasePolicyItemId, :Name, :Category, :BenchmarkStandardName, :RiskLevel, :AssetType, :LastCheckTime, :CheckStatus, :CheckResult, :PassedAssetCount, :FailedAssetCount, :WhitelistId, :FixSuggestion, :BenchmarkStandardId, :ApplicableVersion, :Description, :AuditProcedure, :IsEnable
- def initialize(customerpolicyitemid=nil, basepolicyitemid=nil, name=nil, category=nil, benchmarkstandardname=nil, risklevel=nil, assettype=nil, lastchecktime=nil, checkstatus=nil, checkresult=nil, passedassetcount=nil, failedassetcount=nil, whitelistid=nil, fixsuggestion=nil, benchmarkstandardid=nil, applicableversion=nil, description=nil, auditprocedure=nil)
+ def initialize(customerpolicyitemid=nil, basepolicyitemid=nil, name=nil, category=nil, benchmarkstandardname=nil, risklevel=nil, assettype=nil, lastchecktime=nil, checkstatus=nil, checkresult=nil, passedassetcount=nil, failedassetcount=nil, whitelistid=nil, fixsuggestion=nil, benchmarkstandardid=nil, applicableversion=nil, description=nil, auditprocedure=nil, isenable=nil)
@CustomerPolicyItemId = customerpolicyitemid
@BasePolicyItemId = basepolicyitemid
@Name = name
@Category = category
@BenchmarkStandardName = benchmarkstandardname
@@ -3513,10 +3537,11 @@
@FixSuggestion = fixsuggestion
@BenchmarkStandardId = benchmarkstandardid
@ApplicableVersion = applicableversion
@Description = description
@AuditProcedure = auditprocedure
+ @IsEnable = isenable
end
def deserialize(params)
@CustomerPolicyItemId = params['CustomerPolicyItemId']
@BasePolicyItemId = params['BasePolicyItemId']
@@ -3534,10 +3559,11 @@
@FixSuggestion = params['FixSuggestion']
@BenchmarkStandardId = params['BenchmarkStandardId']
@ApplicableVersion = params['ApplicableVersion']
@Description = params['Description']
@AuditProcedure = params['AuditProcedure']
+ @IsEnable = params['IsEnable']
end
end
# 表示检测失败的资产的信息。
class ComplianceScanFailedAsset < TencentCloud::Common::AbstractModel
@@ -3668,12 +3694,12 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Name: String
attr_accessor :Component, :Version, :FixedVersion, :Path, :Type, :Name
extend Gem::Deprecate
- deprecate :Component, :none, 2024, 7
- deprecate :Component=, :none, 2024, 7
+ deprecate :Component, :none, 2024, 8
+ deprecate :Component=, :none, 2024, 8
def initialize(component=nil, version=nil, fixedversion=nil, path=nil, type=nil, name=nil)
@Component = component
@Version = version
@FixedVersion = fixedversion
@@ -4122,12 +4148,12 @@
# @param Timeout: 任务超时时长单位s
# @type Timeout: Integer
attr_accessor :All, :Images, :ScanType, :Id, :IsLatest, :ScanScope, :RegistryType, :Namespace, :ContainerRunning, :Timeout
extend Gem::Deprecate
- deprecate :All, :none, 2024, 7
- deprecate :All=, :none, 2024, 7
+ deprecate :All, :none, 2024, 8
+ deprecate :All=, :none, 2024, 8
def initialize(all=nil, images=nil, scantype=nil, id=nil, islatest=nil, scanscope=nil, registrytype=nil, namespace=nil, containerrunning=nil, timeout=nil)
@All = all
@Images = images
@ScanType = scantype
@@ -4284,12 +4310,12 @@
# @param ExcludeImages: 排除扫描的镜像
# @type ExcludeImages: Array
attr_accessor :Enable, :ScanTime, :ScanPeriod, :ScanVirus, :ScanRisk, :ScanVul, :All, :Images, :ContainerRunning, :ScanScope, :ScanEndTime, :ExcludeImages
extend Gem::Deprecate
- deprecate :All, :none, 2024, 7
- deprecate :All=, :none, 2024, 7
+ deprecate :All, :none, 2024, 8
+ deprecate :All=, :none, 2024, 8
def initialize(enable=nil, scantime=nil, scanperiod=nil, scanvirus=nil, scanrisk=nil, scanvul=nil, all=nil, images=nil, containerrunning=nil, scanscope=nil, scanendtime=nil, excludeimages=nil)
@Enable = enable
@ScanTime = scantime
@ScanPeriod = scanperiod
@@ -4359,12 +4385,12 @@
# @param Timeout: 任务超时时长单位秒,默认1小时
# @type Timeout: Integer
attr_accessor :All, :Images, :ScanVul, :ScanVirus, :ScanRisk, :Filters, :ExcludeImageIds, :ContainerRunning, :ScanScope, :Timeout
extend Gem::Deprecate
- deprecate :All, :none, 2024, 7
- deprecate :All=, :none, 2024, 7
+ deprecate :All, :none, 2024, 8
+ deprecate :All=, :none, 2024, 8
def initialize(all=nil, images=nil, scanvul=nil, scanvirus=nil, scanrisk=nil, filters=nil, excludeimageids=nil, containerrunning=nil, scanscope=nil, timeout=nil)
@All = all
@Images = images
@ScanVul = scanvul
@@ -6446,21 +6472,25 @@
class DeleteComplianceAssetPolicySetFromWhitelistRequest < TencentCloud::Common::AbstractModel
# @param AssetItemId: 资产ID
# @type AssetItemId: Integer
# @param CustomerPolicyItemIdSet: 需要忽略指定资产内的检查项ID列表
# @type CustomerPolicyItemIdSet: Array
+ # @param AssetType: 扫描资产类型 <li>ASSET_CONTAINER Docker容器</li> <li>ASSET_IMAGE Docker镜像</li> <li>ASSET_HOST Docker主机</li> <li>ASSET_K8S Kubernetes</li> <li>ASSET_CONTAINERD Containerd主机</li> <li>ASSET_CONTAINERD_CONTAINER Containerd容器</li>
+ # @type AssetType: String
- attr_accessor :AssetItemId, :CustomerPolicyItemIdSet
+ attr_accessor :AssetItemId, :CustomerPolicyItemIdSet, :AssetType
- def initialize(assetitemid=nil, customerpolicyitemidset=nil)
+ def initialize(assetitemid=nil, customerpolicyitemidset=nil, assettype=nil)
@AssetItemId = assetitemid
@CustomerPolicyItemIdSet = customerpolicyitemidset
+ @AssetType = assettype
end
def deserialize(params)
@AssetItemId = params['AssetItemId']
@CustomerPolicyItemIdSet = params['CustomerPolicyItemIdSet']
+ @AssetType = params['AssetType']
end
end
# DeleteComplianceAssetPolicySetFromWhitelist返回参数结构体
class DeleteComplianceAssetPolicySetFromWhitelistResponse < TencentCloud::Common::AbstractModel
@@ -9515,12 +9545,12 @@
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
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, :SensitiveInfoCnt, :Id, :RequestId
extend Gem::Deprecate
- deprecate :SentiveInfoCnt, :none, 2024, 7
- deprecate :SentiveInfoCnt=, :none, 2024, 7
+ deprecate :SentiveInfoCnt, :none, 2024, 8
+ deprecate :SentiveInfoCnt=, :none, 2024, 8
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, sensitiveinfocnt=nil, id=nil, requestid=nil)
@ImageDigest = imagedigest
@ImageRepoAddress = imagerepoaddress
@RegistryType = registrytype
@@ -10613,12 +10643,12 @@
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Enable, :ScanTime, :ScanPeriod, :ScanVirus, :ScanRisk, :ScanVul, :All, :Images, :ContainerRunning, :ScanScope, :ScanEndTime, :ExcludeImages, :RequestId
extend Gem::Deprecate
- deprecate :All, :none, 2024, 7
- deprecate :All=, :none, 2024, 7
+ deprecate :All, :none, 2024, 8
+ deprecate :All=, :none, 2024, 8
def initialize(enable=nil, scantime=nil, scanperiod=nil, scanvirus=nil, scanrisk=nil, scanvul=nil, all=nil, images=nil, containerrunning=nil, scanscope=nil, scanendtime=nil, excludeimages=nil, requestid=nil)
@Enable = enable
@ScanTime = scantime
@ScanPeriod = scanperiod
@@ -11990,19 +12020,23 @@
# DescribeComplianceAssetDetailInfo请求参数结构体
class DescribeComplianceAssetDetailInfoRequest < TencentCloud::Common::AbstractModel
# @param CustomerAssetId: 客户资产ID。
# @type CustomerAssetId: Integer
+ # @param AssetType: 资产类型 <li>ASSET_CONTAINER Docker容器</li> <li>ASSET_IMAGE Docker镜像</li> <li>ASSET_HOST Docker主机</li> <li>ASSET_K8S Kubernetes</li> <li>ASSET_CONTAINERD Containerd主机</li> <li>ASSET_CONTAINERD_CONTAINER Containerd容器</li>
+ # @type AssetType: String
- attr_accessor :CustomerAssetId
+ attr_accessor :CustomerAssetId, :AssetType
- def initialize(customerassetid=nil)
+ def initialize(customerassetid=nil, assettype=nil)
@CustomerAssetId = customerassetid
+ @AssetType = assettype
end
def deserialize(params)
@CustomerAssetId = params['CustomerAssetId']
+ @AssetType = params['AssetType']
end
end
# DescribeComplianceAssetDetailInfo返回参数结构体
class DescribeComplianceAssetDetailInfoResponse < TencentCloud::Common::AbstractModel
@@ -12133,20 +12167,23 @@
# @param Offset: 起始偏移量,默认为0。
# @type Offset: Integer
# @param Limit: 要获取的数据量,默认为10,最大为100。
# @type Limit: Integer
# @param Filters: 过滤器列表。Name字段支持
- # RiskLevel
+ # RiskLevel, AppId
# @type Filters: Array
+ # @param AssetType: 资产类型 <li>ASSET_CONTAINER Docker容器</li> <li>ASSET_IMAGE Docker镜像</li> <li>ASSET_HOST Docker主机</li> <li>ASSET_K8S Kubernetes</li> <li>ASSET_CONTAINERD Containerd主机</li> <li>ASSET_CONTAINERD_CONTAINER Containerd容器</li>
+ # @type AssetType: String
- attr_accessor :CustomerAssetId, :Offset, :Limit, :Filters
+ attr_accessor :CustomerAssetId, :Offset, :Limit, :Filters, :AssetType
- def initialize(customerassetid=nil, offset=nil, limit=nil, filters=nil)
+ def initialize(customerassetid=nil, offset=nil, limit=nil, filters=nil, assettype=nil)
@CustomerAssetId = customerassetid
@Offset = offset
@Limit = limit
@Filters = filters
+ @AssetType = assettype
end
def deserialize(params)
@CustomerAssetId = params['CustomerAssetId']
@Offset = params['Offset']
@@ -12157,10 +12194,11 @@
compliancefilters_tmp = ComplianceFilters.new
compliancefilters_tmp.deserialize(i)
@Filters << compliancefilters_tmp
end
end
+ @AssetType = params['AssetType']
end
end
# DescribeComplianceAssetPolicyItemList返回参数结构体
class DescribeComplianceAssetPolicyItemListResponse < TencentCloud::Common::AbstractModel
@@ -12499,14 +12537,11 @@
# @type AssetType: String
# @param Offset: 起始偏移量,默认为0。
# @type Offset: Integer
# @param Limit: 需要返回的数量,默认为10,最大值为100。
# @type Limit: Integer
- # @param Filters: 过滤条件。
- # Name - String
- # Name 可取值:ItemType, StandardId, RiskLevel。
- # 当为K8S资产时,还可取ClusterName。
+ # @param Filters: 过滤条件 <li>Name string 检测项名字</li> <li>ItemType string 检测项类型</li> <li>RiskLevel string 威胁等级</li> <li>IsOpen int 是否开启</li>
# @type Filters: Array
attr_accessor :AssetType, :Offset, :Limit, :Filters
def initialize(assettype=nil, offset=nil, limit=nil, filters=nil)
@@ -14082,12 +14117,12 @@
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Enable, :ScanTime, :ScanPeriod, :ScanType, :All, :Images, :Id, :Latest, :ScanEndTime, :RegistryType, :ContainerRunning, :ScanScope, :Namespace, :ExcludeImageAssetIds, :RequestId
extend Gem::Deprecate
- deprecate :All, :none, 2024, 7
- deprecate :All=, :none, 2024, 7
+ deprecate :All, :none, 2024, 8
+ deprecate :All=, :none, 2024, 8
def initialize(enable=nil, scantime=nil, scanperiod=nil, scantype=nil, all=nil, images=nil, id=nil, latest=nil, scanendtime=nil, registrytype=nil, containerrunning=nil, scanscope=nil, namespace=nil, excludeimageassetids=nil, requestid=nil)
@Enable = enable
@ScanTime = scantime
@ScanPeriod = scanperiod
@@ -22174,12 +22209,12 @@
# @param RecommendedFix: 是否推荐处置
# @type RecommendedFix: Boolean
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, :LowLevelVulCnt, :MediumLevelVulCnt, :HighLevelVulCnt, :CriticalLevelVulCnt, :ContainerCnt, :ComponentCnt, :IsRunning, :HasNeedFixVul, :SensitiveInfoCnt, :RecommendedFix
extend Gem::Deprecate
- deprecate :SentiveInfoCnt, :none, 2024, 7
- deprecate :SentiveInfoCnt=, :none, 2024, 7
+ deprecate :SentiveInfoCnt, :none, 2024, 8
+ deprecate :SentiveInfoCnt=, :none, 2024, 8
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, lowlevelvulcnt=nil, mediumlevelvulcnt=nil, highlevelvulcnt=nil, criticallevelvulcnt=nil, containercnt=nil, componentcnt=nil, isrunning=nil, hasneedfixvul=nil, sensitiveinfocnt=nil, recommendedfix=nil)
@ImageDigest = imagedigest
@ImageRepoAddress = imagerepoaddress
@RegistryType = registrytype
@@ -26836,21 +26871,25 @@
class ScanComplianceAssetsByPolicyItemRequest < TencentCloud::Common::AbstractModel
# @param CustomerPolicyItemId: 指定的检测项的ID
# @type CustomerPolicyItemId: Integer
# @param CustomerAssetIdSet: 要重新扫描的客户资产项ID的列表。
# @type CustomerAssetIdSet: Array
+ # @param AssetType: 扫描资产类型 <li>ASSET_CONTAINER Docker容器</li> <li>ASSET_IMAGE Docker镜像</li> <li>ASSET_HOST Docker主机</li> <li>ASSET_K8S Kubernetes</li> <li>ASSET_CONTAINERD Containerd主机</li> <li>ASSET_CONTAINERD_CONTAINER Containerd容器</li>
+ # @type AssetType: String
- attr_accessor :CustomerPolicyItemId, :CustomerAssetIdSet
+ attr_accessor :CustomerPolicyItemId, :CustomerAssetIdSet, :AssetType
- def initialize(customerpolicyitemid=nil, customerassetidset=nil)
+ def initialize(customerpolicyitemid=nil, customerassetidset=nil, assettype=nil)
@CustomerPolicyItemId = customerpolicyitemid
@CustomerAssetIdSet = customerassetidset
+ @AssetType = assettype
end
def deserialize(params)
@CustomerPolicyItemId = params['CustomerPolicyItemId']
@CustomerAssetIdSet = params['CustomerAssetIdSet']
+ @AssetType = params['AssetType']
end
end
# ScanComplianceAssetsByPolicyItem返回参数结构体
class ScanComplianceAssetsByPolicyItemResponse < TencentCloud::Common::AbstractModel
@@ -26874,19 +26913,23 @@
# ScanComplianceAssets请求参数结构体
class ScanComplianceAssetsRequest < TencentCloud::Common::AbstractModel
# @param CustomerAssetIdSet: 要重新扫描的客户资产项ID的列表。
# @type CustomerAssetIdSet: Array
+ # @param AssetType: 扫描资产类型 <li>ASSET_CONTAINER Docker容器</li> <li>ASSET_IMAGE Docker镜像</li> <li>ASSET_HOST Docker主机</li> <li>ASSET_K8S Kubernetes</li> <li>ASSET_CONTAINERD Containerd主机</li> <li>ASSET_CONTAINERD_CONTAINER Containerd容器</li>
+ # @type AssetType: String
- attr_accessor :CustomerAssetIdSet
+ attr_accessor :CustomerAssetIdSet, :AssetType
- def initialize(customerassetidset=nil)
+ def initialize(customerassetidset=nil, assettype=nil)
@CustomerAssetIdSet = customerassetidset
+ @AssetType = assettype
end
def deserialize(params)
@CustomerAssetIdSet = params['CustomerAssetIdSet']
+ @AssetType = params['AssetType']
end
end
# ScanComplianceAssets返回参数结构体
class ScanComplianceAssetsResponse < TencentCloud::Common::AbstractModel
@@ -26946,19 +26989,23 @@
# ScanComplianceScanFailedAssets请求参数结构体
class ScanComplianceScanFailedAssetsRequest < TencentCloud::Common::AbstractModel
# @param CustomerAssetIdSet: 要重新扫描的客户资产项ID的列表。
# @type CustomerAssetIdSet: Array
+ # @param AssetType: 扫描资产类型 <li>ASSET_CONTAINER Docker容器</li> <li>ASSET_IMAGE Docker镜像</li> <li>ASSET_HOST Docker主机</li> <li>ASSET_K8S Kubernetes</li> <li>ASSET_CONTAINERD Containerd主机</li> <li>ASSET_CONTAINERD_CONTAINER Containerd容器</li>
+ # @type AssetType: String
- attr_accessor :CustomerAssetIdSet
+ attr_accessor :CustomerAssetIdSet, :AssetType
- def initialize(customerassetidset=nil)
+ def initialize(customerassetidset=nil, assettype=nil)
@CustomerAssetIdSet = customerassetidset
+ @AssetType = assettype
end
def deserialize(params)
@CustomerAssetIdSet = params['CustomerAssetIdSet']
+ @AssetType = params['AssetType']
end
end
# ScanComplianceScanFailedAssets返回参数结构体
class ScanComplianceScanFailedAssetsResponse < TencentCloud::Common::AbstractModel
@@ -28129,11 +28176,11 @@
# @param ExcludeImageAssetIds: 排除的镜像资产id
# @type ExcludeImageAssetIds: Array
attr_accessor :ScanPeriod, :Enable, :ScanTime, :ScanType, :Images, :All, :Id, :Latest, :ContainerRunning, :ScanEndTime, :ScanScope, :RegistryType, :Namespace, :ExcludeImageAssetIds
extend Gem::Deprecate
- deprecate :All, :none, 2024, 7
- deprecate :All=, :none, 2024, 7
+ deprecate :All, :none, 2024, 8
+ deprecate :All=, :none, 2024, 8
def initialize(scanperiod=nil, enable=nil, scantime=nil, scantype=nil, images=nil, all=nil, id=nil, latest=nil, containerrunning=nil, scanendtime=nil, scanscope=nil, registrytype=nil, namespace=nil, excludeimageassetids=nil)
@ScanPeriod = scanperiod
@Enable = enable
@ScanTime = scantime