Class: TencentCloud::Tke::V20180525::PrometheusClusterAgentPodConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::PrometheusClusterAgentPodConfig
- Defined in:
- lib/v20180525/models.rb
Overview
关联集群时在集群内部署组件的pod额外配置
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(hostnet = nil, nodeselector = nil, tolerations = nil) ⇒ PrometheusClusterAgentPodConfig
constructor
A new instance of PrometheusClusterAgentPodConfig.
Constructor Details
#initialize(hostnet = nil, nodeselector = nil, tolerations = nil) ⇒ PrometheusClusterAgentPodConfig
Returns a new instance of PrometheusClusterAgentPodConfig.
16381 16382 16383 16384 16385 |
# File 'lib/v20180525/models.rb', line 16381 def initialize(hostnet=nil, nodeselector=nil, tolerations=nil) @HostNet = hostnet @NodeSelector = nodeselector @Tolerations = tolerations end |
Instance Attribute Details
#HostNet ⇒ Object
16379 16380 16381 |
# File 'lib/v20180525/models.rb', line 16379 def HostNet @HostNet end |
#NodeSelector ⇒ Object
16379 16380 16381 |
# File 'lib/v20180525/models.rb', line 16379 def NodeSelector @NodeSelector end |
#Tolerations ⇒ Object
16379 16380 16381 |
# File 'lib/v20180525/models.rb', line 16379 def Tolerations @Tolerations end |
Instance Method Details
#deserialize(params) ⇒ Object
16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 |
# File 'lib/v20180525/models.rb', line 16387 def deserialize(params) @HostNet = params['HostNet'] unless params['NodeSelector'].nil? @NodeSelector = [] params['NodeSelector'].each do |i| label_tmp = Label.new label_tmp.deserialize(i) @NodeSelector << label_tmp end end unless params['Tolerations'].nil? @Tolerations = [] params['Tolerations'].each do |i| toleration_tmp = Toleration.new toleration_tmp.deserialize(i) @Tolerations << toleration_tmp end end end |