Class: TencentCloud::Cwp::V20180228::ProtectHostConfig

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180228/models.rb

Overview

防护机器信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(quuid = nil, protectswitch = nil, autorecovery = nil) ⇒ ProtectHostConfig

Returns a new instance of ProtectHostConfig.



35603
35604
35605
35606
35607
# File 'lib/v20180228/models.rb', line 35603

def initialize(quuid=nil, protectswitch=nil, autorecovery=nil)
  @Quuid = quuid
  @ProtectSwitch = protectswitch
  @AutoRecovery = autorecovery
end

Instance Attribute Details

#AutoRecoveryObject

Parameters:

  • 机器唯一ID

  • 防护开关 0 关闭 1开启

  • 自动恢复开关 0 关闭 1开启



35601
35602
35603
# File 'lib/v20180228/models.rb', line 35601

def AutoRecovery
  @AutoRecovery
end

#ProtectSwitchObject

Parameters:

  • 机器唯一ID

  • 防护开关 0 关闭 1开启

  • 自动恢复开关 0 关闭 1开启



35601
35602
35603
# File 'lib/v20180228/models.rb', line 35601

def ProtectSwitch
  @ProtectSwitch
end

#QuuidObject

Parameters:

  • 机器唯一ID

  • 防护开关 0 关闭 1开启

  • 自动恢复开关 0 关闭 1开启



35601
35602
35603
# File 'lib/v20180228/models.rb', line 35601

def Quuid
  @Quuid
end

Instance Method Details

#deserialize(params) ⇒ Object



35609
35610
35611
35612
35613
# File 'lib/v20180228/models.rb', line 35609

def deserialize(params)
  @Quuid = params['Quuid']
  @ProtectSwitch = params['ProtectSwitch']
  @AutoRecovery = params['AutoRecovery']
end