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.
41288 41289 41290 41291 41292 41293 41294 41295 41296 41297 |
# File 'lib/v20180228/models.rb', line 41288 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
41286 41287 41288 |
# File 'lib/v20180228/models.rb', line 41286 def HookAddr @HookAddr end |
#HostIds ⇒ Object
41286 41287 41288 |
# File 'lib/v20180228/models.rb', line 41286 def HostIds @HostIds end |
#HostLabels ⇒ Object
41286 41287 41288 |
# File 'lib/v20180228/models.rb', line 41286 def HostLabels @HostLabels end |
#IsDisabled ⇒ Object
41286 41287 41288 |
# File 'lib/v20180228/models.rb', line 41286 def IsDisabled @IsDisabled end |
#RuleId ⇒ Object
41286 41287 41288 |
# File 'lib/v20180228/models.rb', line 41286 def RuleId @RuleId end |
#RuleItems ⇒ Object
41286 41287 41288 |
# File 'lib/v20180228/models.rb', line 41286 def RuleItems @RuleItems end |
#RuleName ⇒ Object
41286 41287 41288 |
# File 'lib/v20180228/models.rb', line 41286 def RuleName @RuleName end |
#RuleRemark ⇒ Object
41286 41287 41288 |
# File 'lib/v20180228/models.rb', line 41286 def RuleRemark @RuleRemark end |
Instance Method Details
#deserialize(params) ⇒ Object
41299 41300 41301 41302 41303 41304 41305 41306 41307 41308 41309 41310 41311 41312 41313 41314 41315 41316 41317 41318 41319 41320 41321 41322 |
# File 'lib/v20180228/models.rb', line 41299 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 |