Class: TencentCloud::Tke::V20220501::HealthCheckPolicy
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20220501::HealthCheckPolicy
- Defined in:
- lib/v20220501/models.rb
Overview
健康检测规则
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, rules = nil) ⇒ HealthCheckPolicy
constructor
A new instance of HealthCheckPolicy.
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
#Name ⇒ Object
954 955 956 |
# File 'lib/v20220501/models.rb', line 954 def Name @Name end |
#Rules ⇒ Object
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 |