Class: TencentCloud::Tke::V20220501::HealthCheckPolicy

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, rules = nil) ⇒ HealthCheckPolicy

Returns a new instance of HealthCheckPolicy.



956
957
958
959
# File 'lib/v20220501/models.rb', line 956

def initialize(name=nil, rules=nil)
  @Name = name
  @Rules = rules
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    健康检测策略名称

  • Rules:

    健康检测策略规则列表



954
955
956
# File 'lib/v20220501/models.rb', line 954

def Name
  @Name
end

#RulesObject

Parameters:

  • Name:

    健康检测策略名称

  • Rules:

    健康检测策略规则列表



954
955
956
# File 'lib/v20220501/models.rb', line 954

def Rules
  @Rules
end

Instance Method Details

#deserialize(params) ⇒ Object



961
962
963
964
965
966
967
968
969
970
971
# File 'lib/v20220501/models.rb', line 961

def deserialize(params)
  @Name = params['Name']
  unless params['Rules'].nil?
    @Rules = []
    params['Rules'].each do |i|
      healthcheckpolicyrule_tmp = HealthCheckPolicyRule.new
      healthcheckpolicyrule_tmp.deserialize(i)
      @Rules << healthcheckpolicyrule_tmp
    end
  end
end