Class: TencentCloud::Tke::V20220501::CreateHealthCheckPolicyRequest

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

Overview

CreateHealthCheckPolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, healthcheckpolicy = nil) ⇒ CreateHealthCheckPolicyRequest

Returns a new instance of CreateHealthCheckPolicyRequest.



104
105
106
107
# File 'lib/v20220501/models.rb', line 104

def initialize(clusterid=nil, healthcheckpolicy=nil)
  @ClusterId = clusterid
  @HealthCheckPolicy = healthcheckpolicy
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • HealthCheckPolicy:

    健康检测策略



102
103
104
# File 'lib/v20220501/models.rb', line 102

def ClusterId
  @ClusterId
end

#HealthCheckPolicyObject

Parameters:

  • ClusterId:

    集群ID

  • HealthCheckPolicy:

    健康检测策略



102
103
104
# File 'lib/v20220501/models.rb', line 102

def HealthCheckPolicy
  @HealthCheckPolicy
end

Instance Method Details

#deserialize(params) ⇒ Object



109
110
111
112
113
114
115
# File 'lib/v20220501/models.rb', line 109

def deserialize(params)
  @ClusterId = params['ClusterId']
  unless params['HealthCheckPolicy'].nil?
    @HealthCheckPolicy = HealthCheckPolicy.new
    @HealthCheckPolicy.deserialize(params['HealthCheckPolicy'])
  end
end