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.
41350 41351 41352 41353 41354 41355 41356 41357 41358 41359 41360 41361 |
# File 'lib/v20180228/models.rb', line 41350 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
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def CreateTime @CreateTime end |
#HookAddr ⇒ Object
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def HookAddr @HookAddr end |
#HostCount ⇒ Object
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def HostCount @HostCount end |
#HostLabels ⇒ Object
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def HostLabels @HostLabels end |
#IsDisabled ⇒ Object
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def IsDisabled @IsDisabled end |
#RuleId ⇒ Object
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def RuleId @RuleId end |
#RuleItems ⇒ Object
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def RuleItems @RuleItems end |
#RuleName ⇒ Object
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def RuleName @RuleName end |
#RuleRemark ⇒ Object
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def RuleRemark @RuleRemark end |
#UpdateTime ⇒ Object
41348 41349 41350 |
# File 'lib/v20180228/models.rb', line 41348 def UpdateTime @UpdateTime end |
Instance Method Details
#deserialize(params) ⇒ Object
41363 41364 41365 41366 41367 41368 41369 41370 41371 41372 41373 41374 41375 41376 41377 41378 41379 41380 41381 41382 41383 41384 41385 41386 41387 41388 |
# File 'lib/v20180228/models.rb', line 41363 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 |