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.
17798 17799 17800 17801 17802 |
# File 'lib/v20180525/models.rb', line 17798 def initialize(hostnet=nil, nodeselector=nil, tolerations=nil) @HostNet = hostnet @NodeSelector = nodeselector @Tolerations = tolerations end |
Instance Attribute Details
#HostNet ⇒ Object
17796 17797 17798 |
# File 'lib/v20180525/models.rb', line 17796 def HostNet @HostNet end |
#NodeSelector ⇒ Object
17796 17797 17798 |
# File 'lib/v20180525/models.rb', line 17796 def NodeSelector @NodeSelector end |
#Tolerations ⇒ Object
17796 17797 17798 |
# File 'lib/v20180525/models.rb', line 17796 def Tolerations @Tolerations end |
Instance Method Details
#deserialize(params) ⇒ Object
17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 |
# File 'lib/v20180525/models.rb', line 17804 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 |