Class: TencentCloud::Tke::V20220501::HealthCheckTemplate
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20220501::HealthCheckTemplate
- Defined in:
- lib/v20220501/models.rb
Overview
健康检测模板
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rules = nil) ⇒ HealthCheckTemplate
constructor
A new instance of HealthCheckTemplate.
Constructor Details
#initialize(rules = nil) ⇒ HealthCheckTemplate
Returns a new instance of HealthCheckTemplate.
1029 1030 1031 |
# File 'lib/v20220501/models.rb', line 1029 def initialize(rules=nil) @Rules = rules end |
Instance Attribute Details
#Rules ⇒ Object
1027 1028 1029 |
# File 'lib/v20220501/models.rb', line 1027 def Rules @Rules end |
Instance Method Details
#deserialize(params) ⇒ Object
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 |
# File 'lib/v20220501/models.rb', line 1033 def deserialize(params) unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| healthchecktemplaterule_tmp = HealthCheckTemplateRule.new healthchecktemplaterule_tmp.deserialize(i) @Rules << healthchecktemplaterule_tmp end end end |