Class: TencentCloud::Tke::V20220501::HealthCheckPolicyRule

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

Overview

健康检测规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, enabled = nil, autorepairenabled = nil) ⇒ HealthCheckPolicyRule

Returns a new instance of HealthCheckPolicyRule.



1009
1010
1011
1012
1013
# File 'lib/v20220501/models.rb', line 1009

def initialize(name=nil, enabled=nil, autorepairenabled=nil)
  @Name = name
  @Enabled = enabled
  @AutoRepairEnabled = autorepairenabled
end

Instance Attribute Details

#AutoRepairEnabledObject

Parameters:

  • Name:

    健康检测规则

  • Enabled:

    是否检测此项目

  • AutoRepairEnabled:

    是否启用修复



1007
1008
1009
# File 'lib/v20220501/models.rb', line 1007

def AutoRepairEnabled
  @AutoRepairEnabled
end

#EnabledObject

Parameters:

  • Name:

    健康检测规则

  • Enabled:

    是否检测此项目

  • AutoRepairEnabled:

    是否启用修复



1007
1008
1009
# File 'lib/v20220501/models.rb', line 1007

def Enabled
  @Enabled
end

#NameObject

Parameters:

  • Name:

    健康检测规则

  • Enabled:

    是否检测此项目

  • AutoRepairEnabled:

    是否启用修复



1007
1008
1009
# File 'lib/v20220501/models.rb', line 1007

def Name
  @Name
end

Instance Method Details

#deserialize(params) ⇒ Object



1015
1016
1017
1018
1019
# File 'lib/v20220501/models.rb', line 1015

def deserialize(params)
  @Name = params['Name']
  @Enabled = params['Enabled']
  @AutoRepairEnabled = params['AutoRepairEnabled']
end