Class: TencentCloud::Cwp::V20180228::WebHookPolicy
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::WebHookPolicy
- Defined in:
- lib/v20180228/models.rb
Overview
策略
Instance Attribute Summary collapse
- #CustomFields ⇒ Object
- #Events ⇒ Object
- #ExcludedQuuids ⇒ Object
- #Format ⇒ Object
- #HostCount ⇒ Object
- #HostLabels ⇒ Object
- #Id ⇒ Object
- #IsDisabled ⇒ Object
- #MsgLanguage ⇒ Object
- #Name ⇒ Object
- #Quuids ⇒ Object
- #Receivers ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, events = nil, hostlabels = nil, receivers = nil, format = nil, customfields = nil, isdisabled = nil, quuids = nil, hostcount = nil, excludedquuids = nil, msglanguage = nil) ⇒ WebHookPolicy
constructor
A new instance of WebHookPolicy.
Constructor Details
#initialize(id = nil, name = nil, events = nil, hostlabels = nil, receivers = nil, format = nil, customfields = nil, isdisabled = nil, quuids = nil, hostcount = nil, excludedquuids = nil, msglanguage = nil) ⇒ WebHookPolicy
Returns a new instance of WebHookPolicy.
41136 41137 41138 41139 41140 41141 41142 41143 41144 41145 41146 41147 41148 41149 |
# File 'lib/v20180228/models.rb', line 41136 def initialize(id=nil, name=nil, events=nil, hostlabels=nil, receivers=nil, format=nil, customfields=nil, isdisabled=nil, quuids=nil, hostcount=nil, excludedquuids=nil, msglanguage=nil) @Id = id @Name = name @Events = events @HostLabels = hostlabels @Receivers = receivers @Format = format @CustomFields = customfields @IsDisabled = isdisabled @Quuids = quuids @HostCount = hostcount @ExcludedQuuids = excludedquuids @MsgLanguage = msglanguage end |
Instance Attribute Details
#CustomFields ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def CustomFields @CustomFields end |
#Events ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def Events @Events end |
#ExcludedQuuids ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def ExcludedQuuids @ExcludedQuuids end |
#Format ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def Format @Format end |
#HostCount ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def HostCount @HostCount end |
#HostLabels ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def HostLabels @HostLabels end |
#Id ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def Id @Id end |
#IsDisabled ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def IsDisabled @IsDisabled end |
#MsgLanguage ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def MsgLanguage @MsgLanguage end |
#Name ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def Name @Name end |
#Quuids ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def Quuids @Quuids end |
#Receivers ⇒ Object
41134 41135 41136 |
# File 'lib/v20180228/models.rb', line 41134 def Receivers @Receivers end |
Instance Method Details
#deserialize(params) ⇒ Object
41151 41152 41153 41154 41155 41156 41157 41158 41159 41160 41161 41162 41163 41164 41165 41166 41167 41168 41169 41170 41171 41172 41173 41174 41175 41176 41177 41178 41179 41180 41181 41182 41183 41184 41185 41186 41187 41188 41189 41190 41191 41192 |
# File 'lib/v20180228/models.rb', line 41151 def deserialize(params) @Id = params['Id'] @Name = params['Name'] unless params['Events'].nil? @Events = [] params['Events'].each do |i| webhookeventkv_tmp = WebHookEventKv.new webhookeventkv_tmp.deserialize(i) @Events << 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 unless params['Receivers'].nil? @Receivers = [] params['Receivers'].each do |i| webhookreceiver_tmp = WebHookReceiver.new webhookreceiver_tmp.deserialize(i) @Receivers << webhookreceiver_tmp end end @Format = params['Format'] unless params['CustomFields'].nil? @CustomFields = [] params['CustomFields'].each do |i| webhookcustomfield_tmp = WebHookCustomField.new webhookcustomfield_tmp.deserialize(i) @CustomFields << webhookcustomfield_tmp end end @IsDisabled = params['IsDisabled'] @Quuids = params['Quuids'] @HostCount = params['HostCount'] @ExcludedQuuids = params['ExcludedQuuids'] @MsgLanguage = params['MsgLanguage'] end |