Class: TencentCloud::Cwp::V20180228::WebHookRuleSummary
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::WebHookRuleSummary
- Defined in:
- lib/v20180228/models.rb
Overview
企微机器人规则概要
Instance Attribute Summary collapse
- #CreateTime ⇒ Object
- #HookAddr ⇒ Object
- #HostCount ⇒ Object
- #HostLabels ⇒ Object
- #IsDisabled ⇒ Object
- #RuleId ⇒ Object
- #RuleItems ⇒ Object
- #RuleName ⇒ Object
- #RuleRemark ⇒ Object
- #UpdateTime ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ruleid = nil, rulename = nil, hookaddr = nil, ruleremark = nil, ruleitems = nil, hostlabels = nil, isdisabled = nil, createtime = nil, updatetime = nil, hostcount = nil) ⇒ WebHookRuleSummary
constructor
A new instance of WebHookRuleSummary.
Constructor Details
#initialize(ruleid = nil, rulename = nil, hookaddr = nil, ruleremark = nil, ruleitems = nil, hostlabels = nil, isdisabled = nil, createtime = nil, updatetime = nil, hostcount = nil) ⇒ WebHookRuleSummary
Returns a new instance of WebHookRuleSummary.
41724 41725 41726 41727 41728 41729 41730 41731 41732 41733 41734 41735 |
# File 'lib/v20180228/models.rb', line 41724 def initialize(ruleid=nil, rulename=nil, hookaddr=nil, ruleremark=nil, ruleitems=nil, hostlabels=nil, isdisabled=nil, createtime=nil, updatetime=nil, hostcount=nil) @RuleId = ruleid @RuleName = rulename @HookAddr = hookaddr @RuleRemark = ruleremark @RuleItems = ruleitems @HostLabels = hostlabels @IsDisabled = isdisabled @CreateTime = createtime @UpdateTime = updatetime @HostCount = hostcount end |
Instance Attribute Details
#CreateTime ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def CreateTime @CreateTime end |
#HookAddr ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def HookAddr @HookAddr end |
#HostCount ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def HostCount @HostCount end |
#HostLabels ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def HostLabels @HostLabels end |
#IsDisabled ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def IsDisabled @IsDisabled end |
#RuleId ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def RuleId @RuleId end |
#RuleItems ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def RuleItems @RuleItems end |
#RuleName ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def RuleName @RuleName end |
#RuleRemark ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def RuleRemark @RuleRemark end |
#UpdateTime ⇒ Object
41722 41723 41724 |
# File 'lib/v20180228/models.rb', line 41722 def UpdateTime @UpdateTime end |
Instance Method Details
#deserialize(params) ⇒ Object
41737 41738 41739 41740 41741 41742 41743 41744 41745 41746 41747 41748 41749 41750 41751 41752 41753 41754 41755 41756 41757 41758 41759 41760 41761 41762 |
# File 'lib/v20180228/models.rb', line 41737 def deserialize(params) @RuleId = params['RuleId'] @RuleName = params['RuleName'] @HookAddr = params['HookAddr'] @RuleRemark = params['RuleRemark'] unless params['RuleItems'].nil? @RuleItems = [] params['RuleItems'].each do |i| webhookeventkv_tmp = WebHookEventKv.new webhookeventkv_tmp.deserialize(i) @RuleItems << webhookeventkv_tmp end end unless params['HostLabels'].nil? @HostLabels = [] params['HostLabels'].each do |i| webhookhostlabel_tmp = WebHookHostLabel.new webhookhostlabel_tmp.deserialize(i) @HostLabels << webhookhostlabel_tmp end end @IsDisabled = params['IsDisabled'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] @HostCount = params['HostCount'] end |