Class: TencentCloud::Cwp::V20180228::WebHookRuleDetail
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::WebHookRuleDetail
- Defined in:
- lib/v20180228/models.rb
Overview
企微机器人规则详情
Instance Attribute Summary collapse
- #HookAddr ⇒ Object
- #HostIds ⇒ Object
- #HostLabels ⇒ Object
- #IsDisabled ⇒ Object
- #RuleId ⇒ Object
- #RuleItems ⇒ Object
- #RuleName ⇒ Object
- #RuleRemark ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rulename = nil, hookaddr = nil, ruleitems = nil, ruleid = nil, ruleremark = nil, hostlabels = nil, hostids = nil, isdisabled = nil) ⇒ WebHookRuleDetail
constructor
A new instance of WebHookRuleDetail.
Constructor Details
#initialize(rulename = nil, hookaddr = nil, ruleitems = nil, ruleid = nil, ruleremark = nil, hostlabels = nil, hostids = nil, isdisabled = nil) ⇒ WebHookRuleDetail
Returns a new instance of WebHookRuleDetail.
41662 41663 41664 41665 41666 41667 41668 41669 41670 41671 |
# File 'lib/v20180228/models.rb', line 41662 def initialize(rulename=nil, hookaddr=nil, ruleitems=nil, ruleid=nil, ruleremark=nil, hostlabels=nil, hostids=nil, isdisabled=nil) @RuleName = rulename @HookAddr = hookaddr @RuleItems = ruleitems @RuleId = ruleid @RuleRemark = ruleremark @HostLabels = hostlabels @HostIds = hostids @IsDisabled = isdisabled end |
Instance Attribute Details
#HookAddr ⇒ Object
41660 41661 41662 |
# File 'lib/v20180228/models.rb', line 41660 def HookAddr @HookAddr end |
#HostIds ⇒ Object
41660 41661 41662 |
# File 'lib/v20180228/models.rb', line 41660 def HostIds @HostIds end |
#HostLabels ⇒ Object
41660 41661 41662 |
# File 'lib/v20180228/models.rb', line 41660 def HostLabels @HostLabels end |
#IsDisabled ⇒ Object
41660 41661 41662 |
# File 'lib/v20180228/models.rb', line 41660 def IsDisabled @IsDisabled end |
#RuleId ⇒ Object
41660 41661 41662 |
# File 'lib/v20180228/models.rb', line 41660 def RuleId @RuleId end |
#RuleItems ⇒ Object
41660 41661 41662 |
# File 'lib/v20180228/models.rb', line 41660 def RuleItems @RuleItems end |
#RuleName ⇒ Object
41660 41661 41662 |
# File 'lib/v20180228/models.rb', line 41660 def RuleName @RuleName end |
#RuleRemark ⇒ Object
41660 41661 41662 |
# File 'lib/v20180228/models.rb', line 41660 def RuleRemark @RuleRemark end |
Instance Method Details
#deserialize(params) ⇒ Object
41673 41674 41675 41676 41677 41678 41679 41680 41681 41682 41683 41684 41685 41686 41687 41688 41689 41690 41691 41692 41693 41694 41695 41696 |
# File 'lib/v20180228/models.rb', line 41673 def deserialize(params) @RuleName = params['RuleName'] @HookAddr = params['HookAddr'] unless params['RuleItems'].nil? @RuleItems = [] params['RuleItems'].each do |i| webhookeventkv_tmp = WebHookEventKv.new webhookeventkv_tmp.deserialize(i) @RuleItems << webhookeventkv_tmp end end @RuleId = params['RuleId'] @RuleRemark = params['RuleRemark'] unless params['HostLabels'].nil? @HostLabels = [] params['HostLabels'].each do |i| webhookhostlabel_tmp = WebHookHostLabel.new webhookhostlabel_tmp.deserialize(i) @HostLabels << webhookhostlabel_tmp end end @HostIds = params['HostIds'] @IsDisabled = params['IsDisabled'] end |