Class: TencentCloud::Cwp::V20180228::Strategy

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180228/models.rb

Overview

基线安全用户策略信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(strategyname = nil, strategyid = nil, rulecount = nil, hostcount = nil, scancycle = nil, scanat = nil, enabled = nil, passrate = nil, categoryids = nil, isdefault = nil) ⇒ Strategy

Returns a new instance of Strategy.



39383
39384
39385
39386
39387
39388
39389
39390
39391
39392
39393
39394
# File 'lib/v20180228/models.rb', line 39383

def initialize(strategyname=nil, strategyid=nil, rulecount=nil, hostcount=nil, scancycle=nil, scanat=nil, enabled=nil, passrate=nil, categoryids=nil, isdefault=nil)
  @StrategyName = strategyname
  @StrategyId = strategyid
  @RuleCount = rulecount
  @HostCount = hostcount
  @ScanCycle = scancycle
  @ScanAt = scanat
  @Enabled = enabled
  @PassRate = passrate
  @CategoryIds = categoryids
  @IsDefault = isdefault
end

Instance Attribute Details

#CategoryIdsObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def CategoryIds
  @CategoryIds
end

#EnabledObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def Enabled
  @Enabled
end

#HostCountObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def HostCount
  @HostCount
end

#IsDefaultObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def IsDefault
  @IsDefault
end

#PassRateObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def PassRate
  @PassRate
end

#RuleCountObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def RuleCount
  @RuleCount
end

#ScanAtObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def ScanAt
  @ScanAt
end

#ScanCycleObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def ScanCycle
  @ScanCycle
end

#StrategyIdObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def StrategyId
  @StrategyId
end

#StrategyNameObject

Parameters:

  • StrategyName:

    策略名

  • StrategyId:

    策略id

  • RuleCount:

    基线检测项总数

  • HostCount:

    主机数量

  • ScanCycle:

    扫描周期

  • ScanAt:

    扫描时间

  • Enabled:

    是否可用

  • PassRate:

    通过率

  • CategoryIds:

    基线id

  • IsDefault:

    是否默认策略



39381
39382
39383
# File 'lib/v20180228/models.rb', line 39381

def StrategyName
  @StrategyName
end

Instance Method Details

#deserialize(params) ⇒ Object



39396
39397
39398
39399
39400
39401
39402
39403
39404
39405
39406
39407
# File 'lib/v20180228/models.rb', line 39396

def deserialize(params)
  @StrategyName = params['StrategyName']
  @StrategyId = params['StrategyId']
  @RuleCount = params['RuleCount']
  @HostCount = params['HostCount']
  @ScanCycle = params['ScanCycle']
  @ScanAt = params['ScanAt']
  @Enabled = params['Enabled']
  @PassRate = params['PassRate']
  @CategoryIds = params['CategoryIds']
  @IsDefault = params['IsDefault']
end