Class: TencentCloud::Cwp::V20180228::BaselineRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::BaselineRule
- Defined in:
- lib/v20180228/models.rb
Overview
基线规则
Instance Attribute Summary collapse
- #AssetType ⇒ Object
- #CategoryId ⇒ Object
- #HostCount ⇒ Object
- #HostIds ⇒ Object
- #HostIps ⇒ Object
- #Items ⇒ Object
- #RuleDesc ⇒ Object
- #RuleId ⇒ Object
- #RuleName ⇒ Object
- #RuleType ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rulename = nil, ruleid = nil, ruletype = nil, categoryid = nil, ruledesc = nil, hostcount = nil, items = nil, assettype = nil, hostids = nil, hostips = nil) ⇒ BaselineRule
constructor
A new instance of BaselineRule.
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
#AssetType ⇒ Object
3679 3680 3681 |
# File 'lib/v20180228/models.rb', line 3679 def AssetType @AssetType end |
#CategoryId ⇒ Object
3679 3680 3681 |
# File 'lib/v20180228/models.rb', line 3679 def CategoryId @CategoryId end |
#HostCount ⇒ Object
3679 3680 3681 |
# File 'lib/v20180228/models.rb', line 3679 def HostCount @HostCount end |
#HostIds ⇒ Object
3679 3680 3681 |
# File 'lib/v20180228/models.rb', line 3679 def HostIds @HostIds end |
#HostIps ⇒ Object
3679 3680 3681 |
# File 'lib/v20180228/models.rb', line 3679 def HostIps @HostIps end |
#Items ⇒ Object
3679 3680 3681 |
# File 'lib/v20180228/models.rb', line 3679 def Items @Items end |
#RuleDesc ⇒ Object
3679 3680 3681 |
# File 'lib/v20180228/models.rb', line 3679 def RuleDesc @RuleDesc end |
#RuleId ⇒ Object
3679 3680 3681 |
# File 'lib/v20180228/models.rb', line 3679 def RuleId @RuleId end |
#RuleName ⇒ Object
3679 3680 3681 |
# File 'lib/v20180228/models.rb', line 3679 def RuleName @RuleName end |
#RuleType ⇒ Object
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 |