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.
18684 18685 18686 18687 18688 18689 18690 |
# File 'lib/v20180525/models.rb', line 18684 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
18682 18683 18684 |
# File 'lib/v20180525/models.rb', line 18682 def Audit @Audit end |
#ClusterId ⇒ Object
18682 18683 18684 |
# File 'lib/v20180525/models.rb', line 18682 def ClusterId @ClusterId end |
#Event ⇒ Object
18682 18683 18684 |
# File 'lib/v20180525/models.rb', line 18682 def Event @Event end |
#Log ⇒ Object
18682 18683 18684 |
# File 'lib/v20180525/models.rb', line 18682 def Log @Log end |
#MasterLog ⇒ Object
18682 18683 18684 |
# File 'lib/v20180525/models.rb', line 18682 def MasterLog @MasterLog end |
Instance Method Details
#deserialize(params) ⇒ Object
18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 |
# File 'lib/v20180525/models.rb', line 18692 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 |