Class: TencentCloud::Cwp::V20180228::BaselineRule

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(rulename = nil, ruleid = nil, ruletype = nil, categoryid = nil, ruledesc = nil, hostcount = nil, items = nil, assettype = nil, hostids = nil, hostips = nil) ⇒ BaselineRule

Returns a new instance of BaselineRule.



3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
# File 'lib/v20180228/models.rb', line 3681

def initialize(rulename=nil, ruleid=nil, ruletype=nil, categoryid=nil, ruledesc=nil, hostcount=nil, items=nil, assettype=nil, hostids=nil, hostips=nil)
  @RuleName = rulename
  @RuleId = ruleid
  @RuleType = ruletype
  @CategoryId = categoryid
  @RuleDesc = ruledesc
  @HostCount = hostcount
  @Items = items
  @AssetType = assettype
  @HostIds = hostids
  @HostIps = hostips
end

Instance Attribute Details

#AssetTypeObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def AssetType
  @AssetType
end

#CategoryIdObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def CategoryId
  @CategoryId
end

#HostCountObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def HostCount
  @HostCount
end

#HostIdsObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def HostIds
  @HostIds
end

#HostIpsObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def HostIps
  @HostIps
end

#ItemsObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def Items
  @Items
end

#RuleDescObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def RuleDesc
  @RuleDesc
end

#RuleIdObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def RuleId
  @RuleId
end

#RuleNameObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def RuleName
  @RuleName
end

#RuleTypeObject

Parameters:

  • RuleName:

    规则名称,长度不超过128英文字符

  • RuleId:

    规则Id

  • RuleType:

    规则类型 [0:系统|1:自定义]

  • CategoryId:

    规则分类

  • RuleDesc:

    规则描述

  • HostCount:

    主机数

  • Items:

    适配项ID列表

  • AssetType: (0:所有专业版旗舰版|1:hostID|2:ip)
  • HostIds:

    主机Id集合

  • HostIps:

    主机IP



3679
3680
3681
# File 'lib/v20180228/models.rb', line 3679

def RuleType
  @RuleType
end

Instance Method Details

#deserialize(params) ⇒ Object



3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
# File 'lib/v20180228/models.rb', line 3694

def deserialize(params)
  @RuleName = params['RuleName']
  @RuleId = params['RuleId']
  @RuleType = params['RuleType']
  @CategoryId = params['CategoryId']
  @RuleDesc = params['RuleDesc']
  @HostCount = params['HostCount']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      item_tmp = Item.new
      item_tmp.deserialize(i)
      @Items << item_tmp
    end
  end
  @AssetType = params['AssetType']
  @HostIds = params['HostIds']
  @HostIps = params['HostIps']
end