Class: TencentCloud::Tke::V20180525::Switch
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::Switch
- Defined in:
- lib/v20180525/models.rb
Overview
集群日志开关集合
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(audit = nil, clusterid = nil, event = nil, log = nil, masterlog = nil) ⇒ Switch
constructor
A new instance of Switch.
Constructor Details
#initialize(audit = nil, clusterid = nil, event = nil, log = nil, masterlog = nil) ⇒ Switch
Returns a new instance of Switch.
20187 20188 20189 20190 20191 20192 20193 |
# File 'lib/v20180525/models.rb', line 20187 def initialize(audit=nil, clusterid=nil, event=nil, log=nil, masterlog=nil) @Audit = audit @ClusterId = clusterid @Event = event @Log = log @MasterLog = masterlog end |
Instance Attribute Details
#Audit ⇒ Object
20185 20186 20187 |
# File 'lib/v20180525/models.rb', line 20185 def Audit @Audit end |
#ClusterId ⇒ Object
20185 20186 20187 |
# File 'lib/v20180525/models.rb', line 20185 def ClusterId @ClusterId end |
#Event ⇒ Object
20185 20186 20187 |
# File 'lib/v20180525/models.rb', line 20185 def Event @Event end |
#Log ⇒ Object
20185 20186 20187 |
# File 'lib/v20180525/models.rb', line 20185 def Log @Log end |
#MasterLog ⇒ Object
20185 20186 20187 |
# File 'lib/v20180525/models.rb', line 20185 def MasterLog @MasterLog end |
Instance Method Details
#deserialize(params) ⇒ Object
20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 |
# File 'lib/v20180525/models.rb', line 20195 def deserialize(params) unless params['Audit'].nil? @Audit = SwitchInfo.new @Audit.deserialize(params['Audit']) end @ClusterId = params['ClusterId'] unless params['Event'].nil? @Event = SwitchInfo.new @Event.deserialize(params['Event']) end unless params['Log'].nil? @Log = SwitchInfo.new @Log.deserialize(params['Log']) end unless params['MasterLog'].nil? @MasterLog = SwitchInfo.new @MasterLog.deserialize(params['MasterLog']) end end |